@apiboost/omnispec 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +202 -0
- package/README.md +166 -0
- package/core/package.json +5 -0
- package/dist/cjs/asyncapi/index.js +17 -0
- package/dist/cjs/asyncapi/index.js.map +1 -0
- package/dist/cjs/chunks/AsyncApiSpec-TBlyRxTP.js +819 -0
- package/dist/cjs/chunks/AsyncApiSpec-TBlyRxTP.js.map +1 -0
- package/dist/cjs/chunks/Collapsible-BHAHk_Ep.js +7527 -0
- package/dist/cjs/chunks/Collapsible-BHAHk_Ep.js.map +1 -0
- package/dist/cjs/chunks/ErrorBoundary-c1piU8da.js +36 -0
- package/dist/cjs/chunks/ErrorBoundary-c1piU8da.js.map +1 -0
- package/dist/cjs/chunks/OmniSpecRenderer-CE4wxVTL.js +104 -0
- package/dist/cjs/chunks/OmniSpecRenderer-CE4wxVTL.js.map +1 -0
- package/dist/cjs/chunks/OpenApiSpec-D0JtmOVQ.js +3157 -0
- package/dist/cjs/chunks/OpenApiSpec-D0JtmOVQ.js.map +1 -0
- package/dist/cjs/chunks/OpenIdConnectManual-oEnN0QJ-.js +2416 -0
- package/dist/cjs/chunks/OpenIdConnectManual-oEnN0QJ-.js.map +1 -0
- package/dist/cjs/chunks/RendererRegistry-DQ7JBLMT.js +24 -0
- package/dist/cjs/chunks/RendererRegistry-DQ7JBLMT.js.map +1 -0
- package/dist/cjs/chunks/binary-response-CSrPCI-1.js +77 -0
- package/dist/cjs/chunks/binary-response-CSrPCI-1.js.map +1 -0
- package/dist/cjs/chunks/ref-resolver-DWu6Q6E5.js +7108 -0
- package/dist/cjs/chunks/ref-resolver-DWu6Q6E5.js.map +1 -0
- package/dist/cjs/chunks/ssrf-guard-B6T2A7Ho.js +25 -0
- package/dist/cjs/chunks/ssrf-guard-B6T2A7Ho.js.map +1 -0
- package/dist/cjs/chunks/useSpecDetector-A4OwYrmY.js +252 -0
- package/dist/cjs/chunks/useSpecDetector-A4OwYrmY.js.map +1 -0
- package/dist/cjs/chunks/useSpecFetcher-BKz1jHTV.js +13669 -0
- package/dist/cjs/chunks/useSpecFetcher-BKz1jHTV.js.map +1 -0
- package/dist/cjs/core/public.js +198 -0
- package/dist/cjs/core/public.js.map +1 -0
- package/dist/cjs/index.js +36 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/openapi/index.js +19 -0
- package/dist/cjs/openapi/index.js.map +1 -0
- package/dist/cjs/server/index.js +154 -0
- package/dist/cjs/server/index.js.map +1 -0
- package/dist/cjs/wc/index.js +428 -0
- package/dist/cjs/wc/index.js.map +1 -0
- package/dist/esm/asyncapi/index.js +11 -0
- package/dist/esm/asyncapi/index.js.map +1 -0
- package/dist/esm/chunks/AsyncApiSpec-C3lsUpZk.js +817 -0
- package/dist/esm/chunks/AsyncApiSpec-C3lsUpZk.js.map +1 -0
- package/dist/esm/chunks/Collapsible-DA6-nS46.js +7482 -0
- package/dist/esm/chunks/Collapsible-DA6-nS46.js.map +1 -0
- package/dist/esm/chunks/ErrorBoundary-posRNrbt.js +34 -0
- package/dist/esm/chunks/ErrorBoundary-posRNrbt.js.map +1 -0
- package/dist/esm/chunks/OmniSpecRenderer-MqsQFXro.js +102 -0
- package/dist/esm/chunks/OmniSpecRenderer-MqsQFXro.js.map +1 -0
- package/dist/esm/chunks/OpenApiSpec-Cy-oW6jA.js +3153 -0
- package/dist/esm/chunks/OpenApiSpec-Cy-oW6jA.js.map +1 -0
- package/dist/esm/chunks/OpenIdConnectManual-COfITasf.js +2393 -0
- package/dist/esm/chunks/OpenIdConnectManual-COfITasf.js.map +1 -0
- package/dist/esm/chunks/RendererRegistry-zlh-WYbU.js +21 -0
- package/dist/esm/chunks/RendererRegistry-zlh-WYbU.js.map +1 -0
- package/dist/esm/chunks/binary-response-Cre_H-Rt.js +72 -0
- package/dist/esm/chunks/binary-response-Cre_H-Rt.js.map +1 -0
- package/dist/esm/chunks/ref-resolver-BIrHJOjz.js +7105 -0
- package/dist/esm/chunks/ref-resolver-BIrHJOjz.js.map +1 -0
- package/dist/esm/chunks/ssrf-guard-CsZoYdEq.js +23 -0
- package/dist/esm/chunks/ssrf-guard-CsZoYdEq.js.map +1 -0
- package/dist/esm/chunks/useSpecDetector-5SGcKnJx.js +248 -0
- package/dist/esm/chunks/useSpecDetector-5SGcKnJx.js.map +1 -0
- package/dist/esm/chunks/useSpecFetcher-CZvAnU7Z.js +13625 -0
- package/dist/esm/chunks/useSpecFetcher-CZvAnU7Z.js.map +1 -0
- package/dist/esm/core/public.js +102 -0
- package/dist/esm/core/public.js.map +1 -0
- package/dist/esm/index.js +17 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/openapi/index.js +13 -0
- package/dist/esm/openapi/index.js.map +1 -0
- package/dist/esm/server/index.js +152 -0
- package/dist/esm/server/index.js.map +1 -0
- package/dist/esm/wc/index.js +403 -0
- package/dist/esm/wc/index.js.map +1 -0
- package/dist/types/asyncapi/AsyncApiSpec.d.ts +12 -0
- package/dist/types/asyncapi/AsyncApiSpec.d.ts.map +1 -0
- package/dist/types/asyncapi/components/AsyncOverview.d.ts +16 -0
- package/dist/types/asyncapi/components/AsyncOverview.d.ts.map +1 -0
- package/dist/types/asyncapi/components/ChannelDetail.d.ts +19 -0
- package/dist/types/asyncapi/components/ChannelDetail.d.ts.map +1 -0
- package/dist/types/asyncapi/components/ComponentsSection.d.ts +16 -0
- package/dist/types/asyncapi/components/ComponentsSection.d.ts.map +1 -0
- package/dist/types/asyncapi/components/ProtocolBadge.d.ts +16 -0
- package/dist/types/asyncapi/components/ProtocolBadge.d.ts.map +1 -0
- package/dist/types/asyncapi/components/ServerList.d.ts +16 -0
- package/dist/types/asyncapi/components/ServerList.d.ts.map +1 -0
- package/dist/types/asyncapi/hooks/useAsyncApiSpec.d.ts +12 -0
- package/dist/types/asyncapi/hooks/useAsyncApiSpec.d.ts.map +1 -0
- package/dist/types/asyncapi/index.d.ts +11 -0
- package/dist/types/asyncapi/index.d.ts.map +1 -0
- package/dist/types/asyncapi/parser/asyncapi-parser.d.ts +12 -0
- package/dist/types/asyncapi/parser/asyncapi-parser.d.ts.map +1 -0
- package/dist/types/asyncapi/types/asyncapi.types.d.ts +125 -0
- package/dist/types/asyncapi/types/asyncapi.types.d.ts.map +1 -0
- package/dist/types/core/components/Auth/ApiKeyAuth.d.ts +30 -0
- package/dist/types/core/components/Auth/ApiKeyAuth.d.ts.map +1 -0
- package/dist/types/core/components/Auth/AuthPanel.d.ts +18 -0
- package/dist/types/core/components/Auth/AuthPanel.d.ts.map +1 -0
- package/dist/types/core/components/Auth/AuthPanelModal.d.ts +24 -0
- package/dist/types/core/components/Auth/AuthPanelModal.d.ts.map +1 -0
- package/dist/types/core/components/Auth/BasicAuth.d.ts +20 -0
- package/dist/types/core/components/Auth/BasicAuth.d.ts.map +1 -0
- package/dist/types/core/components/Auth/BearerAuth.d.ts +20 -0
- package/dist/types/core/components/Auth/BearerAuth.d.ts.map +1 -0
- package/dist/types/core/components/Auth/OAuth2AuthManual.d.ts +37 -0
- package/dist/types/core/components/Auth/OAuth2AuthManual.d.ts.map +1 -0
- package/dist/types/core/components/Auth/OpenIdConnectManual.d.ts +33 -0
- package/dist/types/core/components/Auth/OpenIdConnectManual.d.ts.map +1 -0
- package/dist/types/core/components/Auth/SecretInput.d.ts +27 -0
- package/dist/types/core/components/Auth/SecretInput.d.ts.map +1 -0
- package/dist/types/core/components/Auth/index.d.ts +16 -0
- package/dist/types/core/components/Auth/index.d.ts.map +1 -0
- package/dist/types/core/components/CodeBlock/CodeBlock.d.ts +32 -0
- package/dist/types/core/components/CodeBlock/CodeBlock.d.ts.map +1 -0
- package/dist/types/core/components/CodeBlock/index.d.ts +12 -0
- package/dist/types/core/components/CodeBlock/index.d.ts.map +1 -0
- package/dist/types/core/components/Layout/DocLayout.d.ts +24 -0
- package/dist/types/core/components/Layout/DocLayout.d.ts.map +1 -0
- package/dist/types/core/components/Layout/MobileDrawerDismissContext.d.ts +20 -0
- package/dist/types/core/components/Layout/MobileDrawerDismissContext.d.ts.map +1 -0
- package/dist/types/core/components/Layout/SpecStatusScreen.d.ts +38 -0
- package/dist/types/core/components/Layout/SpecStatusScreen.d.ts.map +1 -0
- package/dist/types/core/components/Layout/index.d.ts +11 -0
- package/dist/types/core/components/Layout/index.d.ts.map +1 -0
- package/dist/types/core/components/MarkdownRenderer/MarkdownRenderer.d.ts +16 -0
- package/dist/types/core/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -0
- package/dist/types/core/components/MarkdownRenderer/index.d.ts +11 -0
- package/dist/types/core/components/MarkdownRenderer/index.d.ts.map +1 -0
- package/dist/types/core/components/Navigation/CustomNavSection.d.ts +16 -0
- package/dist/types/core/components/Navigation/CustomNavSection.d.ts.map +1 -0
- package/dist/types/core/components/Navigation/NavTree.d.ts +32 -0
- package/dist/types/core/components/Navigation/NavTree.d.ts.map +1 -0
- package/dist/types/core/components/Navigation/SearchBar.d.ts +16 -0
- package/dist/types/core/components/Navigation/SearchBar.d.ts.map +1 -0
- package/dist/types/core/components/Navigation/buildSidebar.d.ts +13 -0
- package/dist/types/core/components/Navigation/buildSidebar.d.ts.map +1 -0
- package/dist/types/core/components/Navigation/index.d.ts +13 -0
- package/dist/types/core/components/Navigation/index.d.ts.map +1 -0
- package/dist/types/core/components/Reference/ReferenceLayout.d.ts +19 -0
- package/dist/types/core/components/Reference/ReferenceLayout.d.ts.map +1 -0
- package/dist/types/core/components/Reference/ReferenceOperationDetail.d.ts +42 -0
- package/dist/types/core/components/Reference/ReferenceOperationDetail.d.ts.map +1 -0
- package/dist/types/core/components/Reference/SamplesPanel.d.ts +33 -0
- package/dist/types/core/components/Reference/SamplesPanel.d.ts.map +1 -0
- package/dist/types/core/components/SchemaViewer/SchemaPresentation.d.ts +147 -0
- package/dist/types/core/components/SchemaViewer/SchemaPresentation.d.ts.map +1 -0
- package/dist/types/core/components/SchemaViewer/SchemaPrimitives.d.ts +66 -0
- package/dist/types/core/components/SchemaViewer/SchemaPrimitives.d.ts.map +1 -0
- package/dist/types/core/components/SchemaViewer/SchemaTable.d.ts +16 -0
- package/dist/types/core/components/SchemaViewer/SchemaTable.d.ts.map +1 -0
- package/dist/types/core/components/SchemaViewer/SchemaTree.d.ts +26 -0
- package/dist/types/core/components/SchemaViewer/SchemaTree.d.ts.map +1 -0
- package/dist/types/core/components/SchemaViewer/index.d.ts +16 -0
- package/dist/types/core/components/SchemaViewer/index.d.ts.map +1 -0
- package/dist/types/core/components/SchemaViewer/schema-style.d.ts +45 -0
- package/dist/types/core/components/SchemaViewer/schema-style.d.ts.map +1 -0
- package/dist/types/core/components/SchemaViewer/schema-utils.d.ts +83 -0
- package/dist/types/core/components/SchemaViewer/schema-utils.d.ts.map +1 -0
- package/dist/types/core/components/TryIt/CodeSamples.d.ts +26 -0
- package/dist/types/core/components/TryIt/CodeSamples.d.ts.map +1 -0
- package/dist/types/core/components/TryIt/CustomHeaders.d.ts +24 -0
- package/dist/types/core/components/TryIt/CustomHeaders.d.ts.map +1 -0
- package/dist/types/core/components/TryIt/InlineTryIt.d.ts +26 -0
- package/dist/types/core/components/TryIt/InlineTryIt.d.ts.map +1 -0
- package/dist/types/core/components/TryIt/ParameterForm.d.ts +34 -0
- package/dist/types/core/components/TryIt/ParameterForm.d.ts.map +1 -0
- package/dist/types/core/components/TryIt/RequestBodyEditor.d.ts +34 -0
- package/dist/types/core/components/TryIt/RequestBodyEditor.d.ts.map +1 -0
- package/dist/types/core/components/TryIt/ResponseViewer.d.ts +18 -0
- package/dist/types/core/components/TryIt/ResponseViewer.d.ts.map +1 -0
- package/dist/types/core/components/TryIt/TryItPanel.d.ts +38 -0
- package/dist/types/core/components/TryIt/TryItPanel.d.ts.map +1 -0
- package/dist/types/core/components/TryIt/code-generators.d.ts +23 -0
- package/dist/types/core/components/TryIt/code-generators.d.ts.map +1 -0
- package/dist/types/core/components/TryIt/curl-generator.d.ts +12 -0
- package/dist/types/core/components/TryIt/curl-generator.d.ts.map +1 -0
- package/dist/types/core/components/TryIt/index.d.ts +16 -0
- package/dist/types/core/components/TryIt/index.d.ts.map +1 -0
- package/dist/types/core/components/common/Badge.d.ts +19 -0
- package/dist/types/core/components/common/Badge.d.ts.map +1 -0
- package/dist/types/core/components/common/Button.d.ts +44 -0
- package/dist/types/core/components/common/Button.d.ts.map +1 -0
- package/dist/types/core/components/common/Collapsible.d.ts +23 -0
- package/dist/types/core/components/common/Collapsible.d.ts.map +1 -0
- package/dist/types/core/components/common/CopyButton.d.ts +16 -0
- package/dist/types/core/components/common/CopyButton.d.ts.map +1 -0
- package/dist/types/core/components/common/ErrorBoundary.d.ts +40 -0
- package/dist/types/core/components/common/ErrorBoundary.d.ts.map +1 -0
- package/dist/types/core/components/common/ErrorMessage.d.ts +16 -0
- package/dist/types/core/components/common/ErrorMessage.d.ts.map +1 -0
- package/dist/types/core/components/common/ExampleSelector.d.ts +29 -0
- package/dist/types/core/components/common/ExampleSelector.d.ts.map +1 -0
- package/dist/types/core/components/common/ExpandableCard.d.ts +27 -0
- package/dist/types/core/components/common/ExpandableCard.d.ts.map +1 -0
- package/dist/types/core/components/common/Icon.d.ts +53 -0
- package/dist/types/core/components/common/Icon.d.ts.map +1 -0
- package/dist/types/core/components/common/LinkableHeading.d.ts +19 -0
- package/dist/types/core/components/common/LinkableHeading.d.ts.map +1 -0
- package/dist/types/core/components/common/LoadingScreen.d.ts +13 -0
- package/dist/types/core/components/common/LoadingScreen.d.ts.map +1 -0
- package/dist/types/core/components/common/MethodBar.d.ts +18 -0
- package/dist/types/core/components/common/MethodBar.d.ts.map +1 -0
- package/dist/types/core/components/common/Modal.d.ts +19 -0
- package/dist/types/core/components/common/Modal.d.ts.map +1 -0
- package/dist/types/core/components/common/ResponsiveColumns.d.ts +17 -0
- package/dist/types/core/components/common/ResponsiveColumns.d.ts.map +1 -0
- package/dist/types/core/components/common/SpecToolbar.d.ts +27 -0
- package/dist/types/core/components/common/SpecToolbar.d.ts.map +1 -0
- package/dist/types/core/components/common/Tabs.d.ts +29 -0
- package/dist/types/core/components/common/Tabs.d.ts.map +1 -0
- package/dist/types/core/components/common/Tooltip.d.ts +17 -0
- package/dist/types/core/components/common/Tooltip.d.ts.map +1 -0
- package/dist/types/core/components/common/UpgradePrompt.d.ts +18 -0
- package/dist/types/core/components/common/UpgradePrompt.d.ts.map +1 -0
- package/dist/types/core/components/common/index.d.ts +18 -0
- package/dist/types/core/components/common/index.d.ts.map +1 -0
- package/dist/types/core/context/AuthContext.d.ts +35 -0
- package/dist/types/core/context/AuthContext.d.ts.map +1 -0
- package/dist/types/core/context/ConfigContext.d.ts +55 -0
- package/dist/types/core/context/ConfigContext.d.ts.map +1 -0
- package/dist/types/core/context/ExpandContext.d.ts +33 -0
- package/dist/types/core/context/ExpandContext.d.ts.map +1 -0
- package/dist/types/core/context/RendererRegistry.d.ts +24 -0
- package/dist/types/core/context/RendererRegistry.d.ts.map +1 -0
- package/dist/types/core/context/index.d.ts +14 -0
- package/dist/types/core/context/index.d.ts.map +1 -0
- package/dist/types/core/hooks/index.d.ts +12 -0
- package/dist/types/core/hooks/index.d.ts.map +1 -0
- package/dist/types/core/hooks/useHashScroll.d.ts +15 -0
- package/dist/types/core/hooks/useHashScroll.d.ts.map +1 -0
- package/dist/types/core/hooks/useScrollSpy.d.ts +33 -0
- package/dist/types/core/hooks/useScrollSpy.d.ts.map +1 -0
- package/dist/types/core/hooks/useSegmentedRouter.d.ts +19 -0
- package/dist/types/core/hooks/useSegmentedRouter.d.ts.map +1 -0
- package/dist/types/core/hooks/useSpecDetector.d.ts +13 -0
- package/dist/types/core/hooks/useSpecDetector.d.ts.map +1 -0
- package/dist/types/core/hooks/useSpecFetcher.d.ts +17 -0
- package/dist/types/core/hooks/useSpecFetcher.d.ts.map +1 -0
- package/dist/types/core/public.d.ts +86 -0
- package/dist/types/core/public.d.ts.map +1 -0
- package/dist/types/core/styles/breakpoints.d.ts +33 -0
- package/dist/types/core/styles/breakpoints.d.ts.map +1 -0
- package/dist/types/core/styles/css.d.ts +17 -0
- package/dist/types/core/styles/css.d.ts.map +1 -0
- package/dist/types/core/styles/styled.d.ts +25 -0
- package/dist/types/core/styles/styled.d.ts.map +1 -0
- package/dist/types/core/themes/ThemeProvider.d.ts +25 -0
- package/dist/types/core/themes/ThemeProvider.d.ts.map +1 -0
- package/dist/types/core/themes/index.d.ts +12 -0
- package/dist/types/core/themes/index.d.ts.map +1 -0
- package/dist/types/core/themes/tokens.d.ts +13 -0
- package/dist/types/core/themes/tokens.d.ts.map +1 -0
- package/dist/types/core/types/auth.types.d.ts +83 -0
- package/dist/types/core/types/auth.types.d.ts.map +1 -0
- package/dist/types/core/types/common.types.d.ts +141 -0
- package/dist/types/core/types/common.types.d.ts.map +1 -0
- package/dist/types/core/types/index.d.ts +16 -0
- package/dist/types/core/types/index.d.ts.map +1 -0
- package/dist/types/core/types/interactive-auth.types.d.ts +37 -0
- package/dist/types/core/types/interactive-auth.types.d.ts.map +1 -0
- package/dist/types/core/types/sidebar-nav.types.d.ts +41 -0
- package/dist/types/core/types/sidebar-nav.types.d.ts.map +1 -0
- package/dist/types/core/types/spec-detection.types.d.ts +26 -0
- package/dist/types/core/types/spec-detection.types.d.ts.map +1 -0
- package/dist/types/core/types/theme.types.d.ts +119 -0
- package/dist/types/core/types/theme.types.d.ts.map +1 -0
- package/dist/types/core/types/try-it.types.d.ts +50 -0
- package/dist/types/core/types/try-it.types.d.ts.map +1 -0
- package/dist/types/core/utils/binary-response.d.ts +24 -0
- package/dist/types/core/utils/binary-response.d.ts.map +1 -0
- package/dist/types/core/utils/detect-spec.d.ts +12 -0
- package/dist/types/core/utils/detect-spec.d.ts.map +1 -0
- package/dist/types/core/utils/direct-client.d.ts +20 -0
- package/dist/types/core/utils/direct-client.d.ts.map +1 -0
- package/dist/types/core/utils/fetch-spec.d.ts +15 -0
- package/dist/types/core/utils/fetch-spec.d.ts.map +1 -0
- package/dist/types/core/utils/index.d.ts +14 -0
- package/dist/types/core/utils/index.d.ts.map +1 -0
- package/dist/types/core/utils/proxy-client.d.ts +19 -0
- package/dist/types/core/utils/proxy-client.d.ts.map +1 -0
- package/dist/types/core/utils/ref-security.d.ts +78 -0
- package/dist/types/core/utils/ref-security.d.ts.map +1 -0
- package/dist/types/core/utils/resolve-download-link.d.ts +23 -0
- package/dist/types/core/utils/resolve-download-link.d.ts.map +1 -0
- package/dist/types/core/utils/sanitize-html.d.ts +16 -0
- package/dist/types/core/utils/sanitize-html.d.ts.map +1 -0
- package/dist/types/core/utils/tryit-storage.d.ts +45 -0
- package/dist/types/core/utils/tryit-storage.d.ts.map +1 -0
- package/dist/types/index.d.ts +29 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/openapi/OpenApiSpec.d.ts +12 -0
- package/dist/types/openapi/OpenApiSpec.d.ts.map +1 -0
- package/dist/types/openapi/components/ApiOverview.d.ts +19 -0
- package/dist/types/openapi/components/ApiOverview.d.ts.map +1 -0
- package/dist/types/openapi/components/CallbacksSection.d.ts +19 -0
- package/dist/types/openapi/components/CallbacksSection.d.ts.map +1 -0
- package/dist/types/openapi/components/ComponentsSection.d.ts +19 -0
- package/dist/types/openapi/components/ComponentsSection.d.ts.map +1 -0
- package/dist/types/openapi/components/EndpointCard.d.ts +20 -0
- package/dist/types/openapi/components/EndpointCard.d.ts.map +1 -0
- package/dist/types/openapi/components/OperationDetail.d.ts +28 -0
- package/dist/types/openapi/components/OperationDetail.d.ts.map +1 -0
- package/dist/types/openapi/components/OperationView.d.ts +19 -0
- package/dist/types/openapi/components/OperationView.d.ts.map +1 -0
- package/dist/types/openapi/components/SegmentedContent.d.ts +22 -0
- package/dist/types/openapi/components/SegmentedContent.d.ts.map +1 -0
- package/dist/types/openapi/components/ServerSelector.d.ts +18 -0
- package/dist/types/openapi/components/ServerSelector.d.ts.map +1 -0
- package/dist/types/openapi/components/TagGroup.d.ts +19 -0
- package/dist/types/openapi/components/TagGroup.d.ts.map +1 -0
- package/dist/types/openapi/hooks/useOpenApiSpec.d.ts +13 -0
- package/dist/types/openapi/hooks/useOpenApiSpec.d.ts.map +1 -0
- package/dist/types/openapi/index.d.ts +11 -0
- package/dist/types/openapi/index.d.ts.map +1 -0
- package/dist/types/openapi/parser/openapi-parser.d.ts +13 -0
- package/dist/types/openapi/parser/openapi-parser.d.ts.map +1 -0
- package/dist/types/openapi/parser/ref-resolver.d.ts +18 -0
- package/dist/types/openapi/parser/ref-resolver.d.ts.map +1 -0
- package/dist/types/openapi/search.d.ts +16 -0
- package/dist/types/openapi/search.d.ts.map +1 -0
- package/dist/types/openapi/types/openapi.types.d.ts +139 -0
- package/dist/types/openapi/types/openapi.types.d.ts.map +1 -0
- package/dist/types/server/index.d.ts +12 -0
- package/dist/types/server/index.d.ts.map +1 -0
- package/dist/types/server/proxy-router.d.ts +44 -0
- package/dist/types/server/proxy-router.d.ts.map +1 -0
- package/dist/types/server/ssrf-guard.d.ts +20 -0
- package/dist/types/server/ssrf-guard.d.ts.map +1 -0
- package/dist/types/test-setup.d.ts +11 -0
- package/dist/types/test-setup.d.ts.map +1 -0
- package/dist/types/unified/OmniSpecRenderer.d.ts +18 -0
- package/dist/types/unified/OmniSpecRenderer.d.ts.map +1 -0
- package/dist/types/unified/index.d.ts +12 -0
- package/dist/types/unified/index.d.ts.map +1 -0
- package/dist/types/wc/OmniSpecRendererElement.d.ts +48 -0
- package/dist/types/wc/OmniSpecRendererElement.d.ts.map +1 -0
- package/dist/types/wc/attribute-bridge.d.ts +96 -0
- package/dist/types/wc/attribute-bridge.d.ts.map +1 -0
- package/dist/types/wc/index.d.ts +42 -0
- package/dist/types/wc/index.d.ts.map +1 -0
- package/dist/types/wc/style-injection.d.ts +24 -0
- package/dist/types/wc/style-injection.d.ts.map +1 -0
- package/dist/wc/standalone.js +3 -0
- package/dist/wc/standalone.js.LICENSE.txt +65 -0
- package/dist/wc/standalone.js.map +1 -0
- package/package.json +167 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
export declare enum SpecType {
|
|
11
|
+
OPENAPI_2 = "openapi-2",
|
|
12
|
+
OPENAPI_3 = "openapi-3",
|
|
13
|
+
ASYNCAPI_2 = "asyncapi-2",
|
|
14
|
+
ASYNCAPI_3 = "asyncapi-3",
|
|
15
|
+
SOAP_WSDL = "soap-wsdl",
|
|
16
|
+
GRAPHQL_SDL = "graphql-sdl",
|
|
17
|
+
GRAPHQL_INTROSPECTION = "graphql-introspection",
|
|
18
|
+
GRPC_PROTO = "grpc-proto"
|
|
19
|
+
}
|
|
20
|
+
export interface SpecDetectionResult {
|
|
21
|
+
type: SpecType;
|
|
22
|
+
confidence: 'high' | 'medium' | 'low';
|
|
23
|
+
version?: string;
|
|
24
|
+
}
|
|
25
|
+
export type ContentFormat = 'json' | 'yaml' | 'xml' | 'graphql-sdl' | 'graphql-introspection';
|
|
26
|
+
//# sourceMappingURL=spec-detection.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spec-detection.types.d.ts","sourceRoot":"","sources":["../../../../src/core/types/spec-detection.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,oBAAY,QAAQ;IAClB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,qBAAqB,0BAA0B;IAC/C,UAAU,eAAe;CAC1B;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAA;IACrC,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,aAAa,GAAG,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
import type { ReactNode } from 'react';
|
|
11
|
+
export interface ThemeTokens {
|
|
12
|
+
'--omnispec-bg-primary': string;
|
|
13
|
+
'--omnispec-bg-secondary': string;
|
|
14
|
+
'--omnispec-bg-tertiary': string;
|
|
15
|
+
'--omnispec-bg-code': string;
|
|
16
|
+
'--omnispec-fg-primary': string;
|
|
17
|
+
'--omnispec-fg-secondary': string;
|
|
18
|
+
'--omnispec-fg-muted': string;
|
|
19
|
+
'--omnispec-fg-code': string;
|
|
20
|
+
'--omnispec-fg-link': string;
|
|
21
|
+
'--omnispec-color-primary': string;
|
|
22
|
+
'--omnispec-color-primary-hover': string;
|
|
23
|
+
'--omnispec-color-primary-text': string;
|
|
24
|
+
'--omnispec-color-get': string;
|
|
25
|
+
'--omnispec-color-post': string;
|
|
26
|
+
'--omnispec-color-put': string;
|
|
27
|
+
'--omnispec-color-delete': string;
|
|
28
|
+
'--omnispec-color-patch': string;
|
|
29
|
+
'--omnispec-color-publish': string;
|
|
30
|
+
'--omnispec-color-subscribe': string;
|
|
31
|
+
'--omnispec-color-success': string;
|
|
32
|
+
'--omnispec-color-warning': string;
|
|
33
|
+
'--omnispec-color-error': string;
|
|
34
|
+
'--omnispec-color-info': string;
|
|
35
|
+
'--omnispec-border-color': string;
|
|
36
|
+
'--omnispec-border-radius': string;
|
|
37
|
+
'--omnispec-input-bg': string;
|
|
38
|
+
'--omnispec-input-border': string;
|
|
39
|
+
'--omnispec-nav-bg': string;
|
|
40
|
+
'--omnispec-nav-text': string;
|
|
41
|
+
'--omnispec-nav-hover-bg': string;
|
|
42
|
+
'--omnispec-nav-accent': string;
|
|
43
|
+
'--omnispec-nav-active-bg': string;
|
|
44
|
+
'--omnispec-nav-active-border-width': string;
|
|
45
|
+
'--omnispec-nav-item-padding-v': string;
|
|
46
|
+
'--omnispec-nav-item-padding-h': string;
|
|
47
|
+
'--omnispec-nav-indent': string;
|
|
48
|
+
'--omnispec-nav-item-gap': string;
|
|
49
|
+
'--omnispec-nav-item-radius': string;
|
|
50
|
+
'--omnispec-nav-group-font-size': string;
|
|
51
|
+
'--omnispec-nav-group-font-weight': string;
|
|
52
|
+
'--omnispec-nav-group-letter-spacing': string;
|
|
53
|
+
'--omnispec-nav-group-text-transform': string;
|
|
54
|
+
'--omnispec-nav-badge-radius': string;
|
|
55
|
+
'--omnispec-nav-badge-text': string;
|
|
56
|
+
'--omnispec-nav-width': string;
|
|
57
|
+
'--omnispec-nav-divider-color': string;
|
|
58
|
+
'--omnispec-nav-heading-color': string;
|
|
59
|
+
'--omnispec-scrollbar-width': string;
|
|
60
|
+
'--omnispec-scrollbar-track': string;
|
|
61
|
+
'--omnispec-scrollbar-thumb': string;
|
|
62
|
+
'--omnispec-scrollbar-thumb-hover': string;
|
|
63
|
+
'--omnispec-font-sans': string;
|
|
64
|
+
'--omnispec-font-mono': string;
|
|
65
|
+
'--omnispec-font-size-base': string;
|
|
66
|
+
'--omnispec-font-size-md': string;
|
|
67
|
+
'--omnispec-font-size-sm': string;
|
|
68
|
+
'--omnispec-font-size-xs': string;
|
|
69
|
+
'--omnispec-font-size-xxs': string;
|
|
70
|
+
'--omnispec-font-size-lg': string;
|
|
71
|
+
'--omnispec-font-size-xl': string;
|
|
72
|
+
'--omnispec-h1-font-size': string;
|
|
73
|
+
'--omnispec-h1-font-weight': string;
|
|
74
|
+
'--omnispec-h1-color': string;
|
|
75
|
+
'--omnispec-h2-font-size': string;
|
|
76
|
+
'--omnispec-h2-font-weight': string;
|
|
77
|
+
'--omnispec-h2-color': string;
|
|
78
|
+
'--omnispec-h3-font-size': string;
|
|
79
|
+
'--omnispec-h3-font-weight': string;
|
|
80
|
+
'--omnispec-h3-color': string;
|
|
81
|
+
'--omnispec-btn-font-size': string;
|
|
82
|
+
'--omnispec-btn-radius': string;
|
|
83
|
+
'--omnispec-btn-primary-bg': string;
|
|
84
|
+
'--omnispec-btn-primary-text': string;
|
|
85
|
+
'--omnispec-btn-primary-bg-hover': string;
|
|
86
|
+
'--omnispec-btn-primary-text-hover': string;
|
|
87
|
+
'--omnispec-btn-primary-shadow': string;
|
|
88
|
+
'--omnispec-btn-primary-shadow-hover': string;
|
|
89
|
+
'--omnispec-btn-secondary-bg': string;
|
|
90
|
+
'--omnispec-btn-secondary-text': string;
|
|
91
|
+
'--omnispec-btn-secondary-bg-hover': string;
|
|
92
|
+
'--omnispec-btn-secondary-text-hover': string;
|
|
93
|
+
'--omnispec-btn-secondary-shadow': string;
|
|
94
|
+
'--omnispec-btn-secondary-shadow-hover': string;
|
|
95
|
+
}
|
|
96
|
+
export interface ThemeConfig {
|
|
97
|
+
/** 'light' or 'dark' for controlled mode. 'auto' detects system preference and manages state internally. */
|
|
98
|
+
base: 'light' | 'dark' | 'auto';
|
|
99
|
+
overrides?: Partial<ThemeTokens>;
|
|
100
|
+
/** Show built-in theme toggle. Only applies when base is 'auto'. Defaults to true. */
|
|
101
|
+
themeToggle?: boolean;
|
|
102
|
+
/** Called when the resolved theme changes (useful with 'auto' to sync external UI). */
|
|
103
|
+
onThemeChange?: (theme: 'light' | 'dark') => void;
|
|
104
|
+
}
|
|
105
|
+
export interface SlotOverrides {
|
|
106
|
+
/** Content placed above the entire doc renderer (e.g., app header, banners) */
|
|
107
|
+
header?: ReactNode;
|
|
108
|
+
/** Content placed below the entire doc renderer */
|
|
109
|
+
footer?: ReactNode;
|
|
110
|
+
/** Content placed above the main content area, below the header (e.g., breadcrumbs) */
|
|
111
|
+
contentHeader?: ReactNode;
|
|
112
|
+
/** Content injected at the top of the sidebar, above the search/nav tree (e.g., parent navigation, back links) */
|
|
113
|
+
sidebarHeader?: ReactNode;
|
|
114
|
+
/** Content injected at the bottom of the sidebar, below the nav tree */
|
|
115
|
+
sidebarFooter?: ReactNode;
|
|
116
|
+
/** Logo or brand element */
|
|
117
|
+
logo?: ReactNode;
|
|
118
|
+
}
|
|
119
|
+
//# sourceMappingURL=theme.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.types.d.ts","sourceRoot":"","sources":["../../../../src/core/types/theme.types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
export interface TryItRequest {
|
|
11
|
+
url: string;
|
|
12
|
+
method: string;
|
|
13
|
+
headers: Record<string, string>;
|
|
14
|
+
queryParams: Record<string, string | string[]>;
|
|
15
|
+
pathParams: Record<string, string>;
|
|
16
|
+
body?: string | FormData;
|
|
17
|
+
bodyType?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface TryItResponse {
|
|
20
|
+
status: number;
|
|
21
|
+
statusText: string;
|
|
22
|
+
headers: Record<string, string>;
|
|
23
|
+
body: string;
|
|
24
|
+
/** 'base64' for binary responses (body is base64-encoded bytes). Default 'utf-8'. */
|
|
25
|
+
bodyEncoding?: 'utf-8' | 'base64';
|
|
26
|
+
contentType: string;
|
|
27
|
+
duration: number;
|
|
28
|
+
}
|
|
29
|
+
export interface ProxyRequest {
|
|
30
|
+
url: string;
|
|
31
|
+
method: string;
|
|
32
|
+
headers: Record<string, string>;
|
|
33
|
+
body?: string;
|
|
34
|
+
bodyEncoding?: 'utf-8' | 'base64';
|
|
35
|
+
timeout?: number;
|
|
36
|
+
}
|
|
37
|
+
export interface ProxyResponse {
|
|
38
|
+
status: number;
|
|
39
|
+
statusText: string;
|
|
40
|
+
headers: Record<string, string>;
|
|
41
|
+
body: string;
|
|
42
|
+
bodyEncoding: 'utf-8' | 'base64';
|
|
43
|
+
duration: number;
|
|
44
|
+
}
|
|
45
|
+
export interface TryItConfig {
|
|
46
|
+
proxyUrl?: string;
|
|
47
|
+
beforeRequest?: (req: TryItRequest) => TryItRequest | Promise<TryItRequest>;
|
|
48
|
+
afterResponse?: (res: TryItResponse) => void;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=try-it.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"try-it.types.d.ts","sourceRoot":"","sources":["../../../../src/core/types/try-it.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;IAC9C,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAClC,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,qFAAqF;IACrF,YAAY,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IACjC,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IACjC,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,OAAO,GAAG,QAAQ,CAAA;IAChC,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,YAAY,KAAK,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAAA;IAC3E,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,CAAA;CAC7C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Returns true when a response content type should be treated as binary
|
|
12
|
+
* (downloaded rather than displayed as text).
|
|
13
|
+
*/
|
|
14
|
+
export declare function isBinaryContentType(contentType: string): boolean;
|
|
15
|
+
/** Chunked bytes → base64 (avoids call-stack limits on large payloads). */
|
|
16
|
+
export declare function bytesToBase64(bytes: Uint8Array): string;
|
|
17
|
+
/** base64 → Blob with the given content type. */
|
|
18
|
+
export declare function base64ToBlob(base64: string, contentType: string): Blob;
|
|
19
|
+
/**
|
|
20
|
+
* Derives a download filename: Content-Disposition `filename` when present,
|
|
21
|
+
* otherwise `response.{ext}` from the content type.
|
|
22
|
+
*/
|
|
23
|
+
export declare function filenameForResponse(headers: Record<string, string>, contentType: string): string;
|
|
24
|
+
//# sourceMappingURL=binary-response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"binary-response.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/binary-response.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAkBH;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAchE;AAED,2EAA2E;AAC3E,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAOvD;AAED,iDAAiD;AACjD,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI,CAOtE;AAgBD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAiBhG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
import type { SpecDetectionResult } from '../types/spec-detection.types';
|
|
11
|
+
export declare function detectSpecType(content: string | Record<string, unknown>): SpecDetectionResult | null;
|
|
12
|
+
//# sourceMappingURL=detect-spec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detect-spec.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/detect-spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA;AAExE,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,mBAAmB,GAAG,IAAI,CAyCpG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
import type { TryItRequest, TryItResponse } from '../types/try-it.types';
|
|
11
|
+
export declare function sendDirectRequest(request: TryItRequest): Promise<TryItResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Upgrade an `http://` target to `https://` when the page itself is served over
|
|
14
|
+
* https. Browsers block plain-http requests from an https page as mixed content
|
|
15
|
+
* (the fetch never leaves the browser), and many specs still declare a stale
|
|
16
|
+
* `http://` server URL. Only upgrades on secure pages — on an http page a real
|
|
17
|
+
* http-only API (e.g. a local dev server) must still be reachable.
|
|
18
|
+
*/
|
|
19
|
+
export declare function upgradeMixedContent(url: string): string;
|
|
20
|
+
//# sourceMappingURL=direct-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direct-client.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/direct-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAGxE,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,aAAa,CAAC,CA4CxB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CASvD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
export interface FetchSpecOptions {
|
|
11
|
+
headers?: Record<string, string>;
|
|
12
|
+
timeout?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare function fetchSpec(url: string, options?: FetchSpecOptions): Promise<string>;
|
|
15
|
+
//# sourceMappingURL=fetch-spec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-spec.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/fetch-spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,wBAAsB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,CAoBxF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
export { detectSpecType } from './detect-spec';
|
|
11
|
+
export { fetchSpec } from './fetch-spec';
|
|
12
|
+
export { sendProxiedRequest } from './proxy-client';
|
|
13
|
+
export { sendDirectRequest } from './direct-client';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
import type { TryItRequest, TryItResponse } from '../types/try-it.types';
|
|
11
|
+
export declare function sendProxiedRequest(proxyUrl: string, request: TryItRequest,
|
|
12
|
+
/**
|
|
13
|
+
* Headers attached to the request the BROWSER sends TO the proxy
|
|
14
|
+
* endpoint — not to the upstream target. Use for custom auth /
|
|
15
|
+
* referer guards on the consumer's own backend. `Content-Type` is
|
|
16
|
+
* always set; anything here takes precedence.
|
|
17
|
+
*/
|
|
18
|
+
proxyHeaders?: Record<string, string>): Promise<TryItResponse>;
|
|
19
|
+
//# sourceMappingURL=proxy-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy-client.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/proxy-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAA+B,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAErG,wBAAsB,kBAAkB,CACtC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,YAAY;AACrB;;;;;GAKG;AACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACpC,OAAO,CAAC,aAAa,CAAC,CAiDxB"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Maximum number of external files that can be resolved in a single spec.
|
|
12
|
+
*/
|
|
13
|
+
export declare const MAX_EXTERNAL_FILES = 20;
|
|
14
|
+
/**
|
|
15
|
+
* Maximum depth for nested external $ref resolution.
|
|
16
|
+
*/
|
|
17
|
+
export declare const MAX_EXTERNAL_DEPTH = 5;
|
|
18
|
+
/**
|
|
19
|
+
* Timeout for fetching external references (milliseconds).
|
|
20
|
+
*/
|
|
21
|
+
export declare const FETCH_TIMEOUT_MS = 5000;
|
|
22
|
+
/**
|
|
23
|
+
* Maximum file size for external references (2 MB).
|
|
24
|
+
*/
|
|
25
|
+
export declare const MAX_FILE_SIZE_BYTES: number;
|
|
26
|
+
/**
|
|
27
|
+
* Configuration options for external $ref resolution security checks.
|
|
28
|
+
*/
|
|
29
|
+
export interface ExternalRefOptions {
|
|
30
|
+
/**
|
|
31
|
+
* The origin of the specification being rendered.
|
|
32
|
+
* References to this origin are automatically allowed.
|
|
33
|
+
*/
|
|
34
|
+
specOrigin: string;
|
|
35
|
+
/**
|
|
36
|
+
* List of additional origins that are allowed for external references.
|
|
37
|
+
* Origins must match exactly (scheme + host + port).
|
|
38
|
+
*/
|
|
39
|
+
allowedOrigins: string[];
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Checks if an origin is allowed for external reference resolution.
|
|
43
|
+
*
|
|
44
|
+
* Blocks:
|
|
45
|
+
* - Private/reserved IP addresses (RFC 1918, loopback, link-local, IPv6 equivalents)
|
|
46
|
+
* - Origins not matching specOrigin or allowedOrigins
|
|
47
|
+
*
|
|
48
|
+
* Allows:
|
|
49
|
+
* - The spec's own origin (specOrigin)
|
|
50
|
+
* - Any origin in allowedOrigins
|
|
51
|
+
*
|
|
52
|
+
* @param refUrl - The full URL of the external reference.
|
|
53
|
+
* @param options - Configuration with specOrigin and allowedOrigins.
|
|
54
|
+
* @returns True if the origin is allowed, false otherwise.
|
|
55
|
+
*/
|
|
56
|
+
export declare const isOriginAllowed: (refUrl: string, options: ExternalRefOptions) => boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Resolves a $ref URL relative to a base URL.
|
|
59
|
+
*
|
|
60
|
+
* @param ref - The $ref string (can be relative or absolute).
|
|
61
|
+
* @param baseUrl - The base URL to resolve relative refs against.
|
|
62
|
+
* @returns The absolute URL, or the original ref if resolution fails.
|
|
63
|
+
*/
|
|
64
|
+
export declare const resolveRefUrl: (ref: string, baseUrl: string) => string;
|
|
65
|
+
/**
|
|
66
|
+
* Fetches an external reference with security and size constraints.
|
|
67
|
+
*
|
|
68
|
+
* Enforces:
|
|
69
|
+
* - Timeout: FETCH_TIMEOUT_MS
|
|
70
|
+
* - Content-Length header check against MAX_FILE_SIZE_BYTES
|
|
71
|
+
* - Response body size check against MAX_FILE_SIZE_BYTES
|
|
72
|
+
*
|
|
73
|
+
* @param url - The URL to fetch.
|
|
74
|
+
* @returns Promise that resolves to the response text.
|
|
75
|
+
* @throws If fetch fails, times out, or exceeds size limits.
|
|
76
|
+
*/
|
|
77
|
+
export declare const fetchExternalRef: (url: string) => Promise<string>;
|
|
78
|
+
//# sourceMappingURL=ref-security.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ref-security.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/ref-security.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH;;GAEG;AACH,eAAO,MAAM,kBAAkB,KAAK,CAAA;AAEpC;;GAEG;AACH,eAAO,MAAM,kBAAkB,IAAI,CAAA;AAEnC;;GAEG;AACH,eAAO,MAAM,gBAAgB,OAAO,CAAA;AAEpC;;GAEG;AACH,eAAO,MAAM,mBAAmB,QAAkB,CAAA;AAElD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,cAAc,EAAE,MAAM,EAAE,CAAA;CACzB;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,GAAI,QAAQ,MAAM,EAAE,SAAS,kBAAkB,KAAG,OA2B7E,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM,EAAE,SAAS,MAAM,KAAG,MAO5D,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB,GAAU,KAAK,MAAM,KAAG,OAAO,CAAC,MAAM,CAwClE,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Resolves the `downloadLink` prop into the concrete URL string the toolbar
|
|
12
|
+
* download button should point at (or `undefined` to hide it).
|
|
13
|
+
*
|
|
14
|
+
* - `true` → the spec URL, when `spec` is a URL string (object specs have no URL)
|
|
15
|
+
* - string → that URL, verbatim
|
|
16
|
+
* - `false` / `undefined` → hidden
|
|
17
|
+
*
|
|
18
|
+
* Every spec renderer must use this so the Download button behaves identically
|
|
19
|
+
* across OpenAPI, AsyncAPI, GraphQL, SOAP, and gRPC. Do not re-implement the
|
|
20
|
+
* branching inline in a renderer.
|
|
21
|
+
*/
|
|
22
|
+
export declare function resolveDownloadLink(downloadLink: string | boolean | undefined, spec: string | Record<string, unknown>): string | undefined;
|
|
23
|
+
//# sourceMappingURL=resolve-download-link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-download-link.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/resolve-download-link.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,EAC1C,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACrC,MAAM,GAAG,SAAS,CAKpB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Sanitizes an HTML string. In DOM environments uses a detached document via
|
|
12
|
+
* DOMParser; in SSR (no DOMParser) falls back to a conservative regex strip —
|
|
13
|
+
* the client re-sanitizes properly on hydration.
|
|
14
|
+
*/
|
|
15
|
+
export declare function sanitizeHtml(html: string): string;
|
|
16
|
+
//# sourceMappingURL=sanitize-html.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sanitize-html.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/sanitize-html.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA+DH;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAcjD"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Try-It input persistence.
|
|
12
|
+
*
|
|
13
|
+
* Non-sensitive form state (parameter values, request body, content type,
|
|
14
|
+
* custom headers) is persisted to localStorage, namespaced per spec and
|
|
15
|
+
* operation, so it survives navigation and reloads. Auth tokens are NOT
|
|
16
|
+
* stored here — they live in sessionStorage only (see AuthContext).
|
|
17
|
+
*/
|
|
18
|
+
export interface PersistedTryItState {
|
|
19
|
+
paramValues?: Record<string, string>;
|
|
20
|
+
body?: string;
|
|
21
|
+
contentType?: string;
|
|
22
|
+
/** Text-only form field values (files are never persisted). */
|
|
23
|
+
formFields?: Record<string, string>;
|
|
24
|
+
/** Custom user-added headers. */
|
|
25
|
+
customHeaders?: Array<{
|
|
26
|
+
name: string;
|
|
27
|
+
value: string;
|
|
28
|
+
}>;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Loads persisted Try-It state.
|
|
32
|
+
*
|
|
33
|
+
* `ttlSeconds` bounds the age of restored entries: entries older than the TTL
|
|
34
|
+
* (and legacy entries with no timestamp, whose age is unknowable) are removed
|
|
35
|
+
* and treated as absent. `0` disables persistence — nothing is restored.
|
|
36
|
+
* `undefined` means no expiration.
|
|
37
|
+
*/
|
|
38
|
+
export declare function loadTryItState(specKey: string | undefined, operationKey: string, ttlSeconds?: number): PersistedTryItState | null;
|
|
39
|
+
export declare function saveTryItState(specKey: string | undefined, operationKey: string, state: PersistedTryItState): void;
|
|
40
|
+
/** Loads the persisted Try-It panel width in pixels (global, not per operation). */
|
|
41
|
+
export declare function loadPanelWidth(): number | null;
|
|
42
|
+
/** Persists the Try-It panel width in pixels. */
|
|
43
|
+
export declare function savePanelWidth(width: number): void;
|
|
44
|
+
export declare function clearTryItState(specKey: string | undefined, operationKey: string): void;
|
|
45
|
+
//# sourceMappingURL=tryit-storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tryit-storage.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/tryit-storage.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;GAOG;AAEH,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACpC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,+DAA+D;IAC/D,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACnC,iCAAiC;IACjC,aAAa,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACvD;AAsCD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,YAAY,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,MAAM,GAClB,mBAAmB,GAAG,IAAI,CA8B5B;AAED,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,mBAAmB,GACzB,IAAI,CAUN;AAID,oFAAoF;AACpF,wBAAgB,cAAc,IAAI,MAAM,GAAG,IAAI,CAW9C;AAED,iDAAiD;AACjD,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAQlD;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI,CASvF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
export { OpenApiSpec } from './openapi/OpenApiSpec';
|
|
11
|
+
export { AsyncApiSpec } from './asyncapi/AsyncApiSpec';
|
|
12
|
+
export { OmniSpecRenderer } from './unified/OmniSpecRenderer';
|
|
13
|
+
export type { OmniSpecRendererProps } from './unified/OmniSpecRenderer';
|
|
14
|
+
export { RendererRegistryProvider, useRendererRegistry } from './core/context/RendererRegistry';
|
|
15
|
+
export type { RendererRegistryValue } from './core/context/RendererRegistry';
|
|
16
|
+
export { ThemeProvider, useTheme } from './core/themes';
|
|
17
|
+
export { lightTheme, darkTheme } from './core/themes';
|
|
18
|
+
export type { BaseSpecProps, ProFeatures, SpecResponse, SpecMetadata, SpecLoadedInfo, LoadingState, } from './core/types/common.types';
|
|
19
|
+
export { SpecType } from './core/types/spec-detection.types';
|
|
20
|
+
export type { SpecDetectionResult, ContentFormat, } from './core/types/spec-detection.types';
|
|
21
|
+
export type { ThemeConfig, ThemeTokens, SlotOverrides, } from './core/types/theme.types';
|
|
22
|
+
export type { AuthScheme, AuthSchemeType, OAuth2Flows, OAuth2Flow, OAuthConfig, AppliedAuthValue, } from './core/types/auth.types';
|
|
23
|
+
export { authSchemeLabel } from './core/types/auth.types';
|
|
24
|
+
export type { TryItRequest, TryItResponse, ProxyRequest, ProxyResponse, TryItConfig, } from './core/types/try-it.types';
|
|
25
|
+
export type { SidebarNavItem, SidebarNavGroup, SidebarNavConfig, SidebarNavPlacement, } from './core/types/sidebar-nav.types';
|
|
26
|
+
export { isSidebarNavGroup } from './core/types/sidebar-nav.types';
|
|
27
|
+
export { detectSpecType } from './core/utils/detect-spec';
|
|
28
|
+
export { fetchSpec } from './core/utils/fetch-spec';
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,YAAY,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAGvE,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAA;AAC/F,YAAY,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAA;AAG5E,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAGrD,YAAY,EACV,aAAa,EACb,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,YAAY,GACb,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAA;AAC5D,YAAY,EACV,mBAAmB,EACnB,aAAa,GACd,MAAM,mCAAmC,CAAA;AAC1C,YAAY,EACV,WAAW,EACX,WAAW,EACX,aAAa,GACd,MAAM,0BAA0B,CAAA;AACjC,YAAY,EACV,UAAU,EACV,cAAc,EACd,WAAW,EACX,UAAU,EACV,WAAW,EACX,gBAAgB,GACjB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,YAAY,EACV,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,aAAa,EACb,WAAW,GACZ,MAAM,2BAA2B,CAAA;AAClC,YAAY,EACV,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAGlE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
import type { BaseSpecProps } from '@core/types/common.types';
|
|
11
|
+
export declare function OpenApiSpec({ spec, theme, proxyUrl, proxyHeaders, oauth, interactiveOAuth, allowTryIt, downloadLink, layout, sidebarPosition, tryItLayout, defaultExpandOperations, displayMode, schemaStyle, externalRefOrigins, serverUrl: serverUrlOverride, servers: serversOverride, tryItPersistTtl, navigationMode, pro, sidebarNav, slots, onSpecLoaded, onTryItRequest: _onTryItRequest, onTryItResponse: _onTryItResponse, className, }: BaseSpecProps): import("react").JSX.Element | null;
|
|
12
|
+
//# sourceMappingURL=OpenApiSpec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenApiSpec.d.ts","sourceRoot":"","sources":["../../../src/openapi/OpenApiSpec.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAwC7D,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,gBAAuB,EACvB,UAAiB,EACjB,YAAY,EACZ,MAAkB,EAClB,eAAwB,EAGxB,WAAqB,EACrB,uBAA+B,EAC/B,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,SAAS,EAAE,iBAAiB,EAC5B,OAAO,EAAE,eAAe,EACxB,eAAe,EACf,cAAc,EACd,GAAG,EACH,UAAU,EACV,KAAU,EACV,YAAY,EACZ,cAAc,EAAE,eAAe,EAC/B,eAAe,EAAE,gBAAgB,EACjC,SAAS,GACV,EAAE,aAAa,sCA0Xf"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
import type { ParsedOpenApiSpec } from '../types/openapi.types';
|
|
11
|
+
interface ApiOverviewProps {
|
|
12
|
+
spec: ParsedOpenApiSpec;
|
|
13
|
+
}
|
|
14
|
+
export declare function ApiVersionBadge({ version }: {
|
|
15
|
+
version: string;
|
|
16
|
+
}): import("react").JSX.Element;
|
|
17
|
+
export declare function ApiOverview({ spec }: ApiOverviewProps): import("react").JSX.Element;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=ApiOverview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiOverview.d.ts","sourceRoot":"","sources":["../../../../src/openapi/components/ApiOverview.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAG/D,UAAU,gBAAgB;IACxB,IAAI,EAAE,iBAAiB,CAAA;CACxB;AAED,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,+BAE/D;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,EAAE,gBAAgB,+BAwDrD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
interface CallbacksSectionProps {
|
|
11
|
+
callbacks: Record<string, unknown>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Renders the "Callbacks" section for an OAS 3.0 operation.
|
|
15
|
+
* Each callback name maps to one or more CallbackCard components.
|
|
16
|
+
*/
|
|
17
|
+
export declare function CallbacksSection({ callbacks }: CallbacksSectionProps): import("react").JSX.Element | null;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=CallbacksSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CallbacksSection.d.ts","sourceRoot":"","sources":["../../../../src/openapi/components/CallbacksSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAUH,UAAU,qBAAqB;IAC7B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAkKD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,EAAE,qBAAqB,sCAcpE"}
|