redoc 2.5.4 → 3.0.0-rc.1
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 +2 -2
- package/README.md +90 -52
- package/bundles/redoc.d.ts +1860 -0
- package/bundles/redoc.js +13775 -0
- package/bundles/redoc.standalone.d.ts +1574 -0
- package/bundles/redoc.standalone.js +13547 -1562
- package/package.json +107 -186
- package/typings/.tsbuildinfo +1 -0
- package/typings/RedocStandalone.d.ts +36 -0
- package/typings/RedoclyApiDocs.d.ts +23 -0
- package/typings/RedoclyApiDocsStandalone.d.ts +22 -0
- package/typings/adapters/asyncapi/build/context.d.ts +9 -0
- package/typings/adapters/asyncapi/build/navigation.d.ts +2 -0
- package/typings/adapters/asyncapi/build/utils.d.ts +3 -0
- package/typings/adapters/asyncapi/buildContext.d.ts +2 -0
- package/typings/adapters/asyncapi/index.d.ts +13 -0
- package/typings/adapters/asyncapi/items/channel/content.d.ts +5 -0
- package/typings/adapters/asyncapi/items/channel/item.d.ts +13 -0
- package/typings/adapters/asyncapi/items/operation/content.d.ts +4 -0
- package/typings/adapters/asyncapi/items/operation/item.d.ts +15 -0
- package/typings/adapters/asyncapi/items/overview/content.d.ts +10 -0
- package/typings/adapters/asyncapi/items/overview/item.d.ts +16 -0
- package/typings/adapters/asyncapi/panels/brokers.d.ts +4 -0
- package/typings/adapters/asyncapi/panels/download.d.ts +3 -0
- package/typings/adapters/asyncapi/panels/group.d.ts +16 -0
- package/typings/adapters/asyncapi/panels/overview.d.ts +3 -0
- package/typings/adapters/asyncapi/store.d.ts +3 -0
- package/typings/adapters/asyncapi/utils/avro-to-json-schema.d.ts +4 -0
- package/typings/adapters/asyncapi/utils/get-channel-label.d.ts +3 -0
- package/typings/adapters/asyncapi/utils/get-protocol-labels.d.ts +24 -0
- package/typings/adapters/asyncapi/utils/get-server-host.d.ts +3 -0
- package/typings/adapters/asyncapi/utils/resolve-schema.d.ts +2 -0
- package/typings/adapters/asyncapi/utils/resolveInDoc.d.ts +2 -0
- package/typings/adapters/build.d.ts +31 -0
- package/typings/adapters/graphql/build/context.d.ts +9 -0
- package/typings/adapters/graphql/buildContext.d.ts +2 -0
- package/typings/adapters/graphql/buildStoreFromSdl.d.ts +2 -0
- package/typings/adapters/graphql/group/custom.d.ts +2 -0
- package/typings/adapters/graphql/group/default.d.ts +2 -0
- package/typings/adapters/graphql/group/errors.d.ts +1 -0
- package/typings/adapters/graphql/group/itemBuilders.d.ts +5 -0
- package/typings/adapters/graphql/group/utils.d.ts +8 -0
- package/typings/adapters/graphql/index.d.ts +10 -0
- package/typings/adapters/graphql/items/directive/content.d.ts +4 -0
- package/typings/adapters/graphql/items/directive/item.d.ts +3 -0
- package/typings/adapters/graphql/items/enum/content.d.ts +4 -0
- package/typings/adapters/graphql/items/enum/item.d.ts +3 -0
- package/typings/adapters/graphql/items/input/content.d.ts +4 -0
- package/typings/adapters/graphql/items/input/item.d.ts +3 -0
- package/typings/adapters/graphql/items/interface/content.d.ts +4 -0
- package/typings/adapters/graphql/items/interface/item.d.ts +3 -0
- package/typings/adapters/graphql/items/mutation/content.d.ts +4 -0
- package/typings/adapters/graphql/items/mutation/item.d.ts +3 -0
- package/typings/adapters/graphql/items/object/content.d.ts +4 -0
- package/typings/adapters/graphql/items/object/item.d.ts +3 -0
- package/typings/adapters/graphql/items/operation/content.d.ts +7 -0
- package/typings/adapters/graphql/items/overview/content.d.ts +11 -0
- package/typings/adapters/graphql/items/overview/item.d.ts +4 -0
- package/typings/adapters/graphql/items/query/content.d.ts +4 -0
- package/typings/adapters/graphql/items/query/item.d.ts +3 -0
- package/typings/adapters/graphql/items/scalar/content.d.ts +4 -0
- package/typings/adapters/graphql/items/scalar/item.d.ts +3 -0
- package/typings/adapters/graphql/items/subscription/content.d.ts +4 -0
- package/typings/adapters/graphql/items/subscription/item.d.ts +3 -0
- package/typings/adapters/graphql/items/types.d.ts +7 -0
- package/typings/adapters/graphql/items/union/content.d.ts +4 -0
- package/typings/adapters/graphql/items/union/item.d.ts +3 -0
- package/typings/adapters/graphql/panels/download.d.ts +3 -0
- package/typings/adapters/graphql/panels/group-items.d.ts +4 -0
- package/typings/adapters/graphql/panels/overview.d.ts +3 -0
- package/typings/adapters/graphql/serializeType.d.ts +5 -0
- package/typings/adapters/graphql/store.d.ts +3 -0
- package/typings/adapters/graphql/utils/configMetadataRows.d.ts +3 -0
- package/typings/adapters/graphql/utils/constants.d.ts +23 -0
- package/typings/adapters/graphql/utils/createApiItem.d.ts +15 -0
- package/typings/adapters/graphql/utils/getBadges.d.ts +4 -0
- package/typings/adapters/graphql/utils/ignoreInternalItems.d.ts +3 -0
- package/typings/adapters/graphql/utils/isRootType.d.ts +2 -0
- package/typings/adapters/graphql/utils/menuSlashRegex.d.ts +1 -0
- package/typings/adapters/graphql/utils/normalizeMenu.d.ts +3 -0
- package/typings/adapters/graphql/utils/shouldIncludeItem.d.ts +2 -0
- package/typings/adapters/graphql/utils/summary.d.ts +4 -0
- package/typings/adapters/graphql/utils/validateMenuConfig.d.ts +3 -0
- package/typings/adapters/helpers.d.ts +40 -0
- package/typings/adapters/openapi/build/context.d.ts +13 -0
- package/typings/adapters/openapi/build-code-sample-source.d.ts +4 -0
- package/typings/adapters/openapi/buildContext.d.ts +2 -0
- package/typings/adapters/openapi/configure/apply-request-values.d.ts +3 -0
- package/typings/adapters/openapi/configure/index.d.ts +3 -0
- package/typings/adapters/openapi/configure/merge-utils.d.ts +30 -0
- package/typings/adapters/openapi/configure/resolve-request-values.d.ts +15 -0
- package/typings/adapters/openapi/constants.d.ts +4 -0
- package/typings/adapters/openapi/group/content.d.ts +25 -0
- package/typings/adapters/openapi/group/item.d.ts +8 -0
- package/typings/adapters/openapi/index.d.ts +13 -0
- package/typings/adapters/openapi/items/mcp/content.d.ts +5 -0
- package/typings/adapters/openapi/items/mcp/item.d.ts +9 -0
- package/typings/adapters/openapi/items/operation/content.d.ts +12 -0
- package/typings/adapters/openapi/items/operation/item.d.ts +9 -0
- package/typings/adapters/openapi/items/overview/content.d.ts +17 -0
- package/typings/adapters/openapi/items/overview/item.d.ts +3 -0
- package/typings/adapters/openapi/items/schema/content.d.ts +3 -0
- package/typings/adapters/openapi/items/schema/item.d.ts +9 -0
- package/typings/adapters/openapi/panels/download.d.ts +3 -0
- package/typings/adapters/openapi/panels/mcp.d.ts +3 -0
- package/typings/adapters/openapi/panels/overview.d.ts +3 -0
- package/typings/adapters/openapi/panels/servers.d.ts +3 -0
- package/typings/adapters/openapi/resolve-openapi-example-value.d.ts +3 -0
- package/typings/adapters/openapi/store.d.ts +4 -0
- package/typings/{utils → adapters/openapi/utils}/JsonPointer.d.ts +6 -6
- package/typings/adapters/openapi/utils/applyIgnoreNamedSchemasDeep.d.ts +1 -0
- package/typings/adapters/openapi/utils/helpers.d.ts +14 -0
- package/typings/adapters/openapi/utils/merge-mock-server.d.ts +8 -0
- package/typings/adapters/openapi/utils/operation.d.ts +23 -0
- package/typings/adapters/openapi/utils/resolvePathItemRef.d.ts +2 -0
- package/typings/adapters/openapi/utils/url.d.ts +2 -0
- package/typings/adapters/rbac.d.ts +10 -0
- package/typings/adapters/scopedContext.d.ts +5 -0
- package/typings/adapters/utils/convertSwagger2OpenAPI.d.ts +2 -0
- package/typings/adapters/utils/dompurify.d.ts +5 -0
- package/typings/adapters/utils/isPlainText.d.ts +6 -0
- package/typings/adapters/utils/markdoc.d.ts +55 -0
- package/typings/adapters/utils/parseMarkdown.d.ts +8 -0
- package/typings/adapters/utils/seo.d.ts +3 -0
- package/typings/adapters/utils/simplifyAstStructure.d.ts +2 -0
- package/typings/components/AdmonitionItem.d.ts +6 -0
- package/typings/components/ChannelAddressItem.d.ts +7 -0
- package/typings/components/ContainerItem.d.ts +9 -0
- package/typings/components/EmptyMessageItem.d.ts +6 -0
- package/typings/components/ErrorBoundary.d.ts +19 -7
- package/typings/components/ExtensionsItem.d.ts +7 -0
- package/typings/components/ExternalDocsItem.d.ts +8 -0
- package/typings/components/Header/HeaderItem.d.ts +10 -0
- package/typings/components/Header/HeaderPageActions.d.ts +4 -0
- package/typings/components/Header/HeaderResponseCodeTabs.d.ts +8 -0
- package/typings/components/Header/PageActions.d.ts +4 -0
- package/typings/components/Header/ResponseDeepLinkAnchor.d.ts +9 -0
- package/typings/components/Header/hooks.d.ts +5 -0
- package/typings/components/InfoMetadataItem.d.ts +7 -0
- package/typings/components/ItemContent/ItemContentRenderer.d.ts +8 -0
- package/typings/components/ItemContent/SectionHeader.d.ts +8 -0
- package/typings/components/ItemContent/hooks.d.ts +16 -0
- package/typings/components/ItemContent/sections/BodyMimeTypeField.d.ts +12 -0
- package/typings/components/ItemContent/sections/BodySection.d.ts +7 -0
- package/typings/components/ItemContent/sections/CallbacksSection.d.ts +5 -0
- package/typings/components/ItemContent/sections/FieldsSection.d.ts +7 -0
- package/typings/components/ItemContent/sections/MessagesSection.d.ts +5 -0
- package/typings/components/ItemContent/sections/ParametersSection.d.ts +6 -0
- package/typings/components/ItemContent/sections/ResponsesSection.d.ts +5 -0
- package/typings/components/ItemContent/sections/ValuesSection.d.ts +5 -0
- package/typings/components/Mapper.d.ts +25 -0
- package/typings/components/MarkdownItem.d.ts +6 -0
- package/typings/components/Mcp/McpPrompt.d.ts +8 -0
- package/typings/components/Mcp/McpResource.d.ts +8 -0
- package/typings/components/Mcp/McpTool.d.ts +8 -0
- package/typings/components/Mcp/styled.d.ts +22 -0
- package/typings/components/Mcp/utils.d.ts +7 -0
- package/typings/components/MessageLinksItem.d.ts +7 -0
- package/typings/components/PrePaintColorModeScript.d.ts +12 -0
- package/typings/components/Schema/SchemaDescription.d.ts +5 -0
- package/typings/components/Schema/SchemaView.d.ts +20 -0
- package/typings/components/Schema/helpers.d.ts +1 -0
- package/typings/components/Schema/hooks/useSchemaDocument.d.ts +7 -0
- package/typings/components/Schema/hooks/useSchemaFieldDeepLink.d.ts +5 -0
- package/typings/components/Schema/hooks/useVariantIndexFromHash.d.ts +1 -0
- package/typings/components/Schema/styled.d.ts +235 -0
- package/typings/components/Schema/utils.d.ts +26 -0
- package/typings/components/Schema/views/ArrayRenderer.d.ts +13 -0
- package/typings/components/Schema/views/CollapsibleNestedFields.d.ts +25 -0
- package/typings/components/Schema/views/DefaultMappingOptionLabel.d.ts +5 -0
- package/typings/components/Schema/views/DiscriminatorPropertyRow.d.ts +13 -0
- package/typings/components/Schema/views/Examples.d.ts +7 -0
- package/typings/components/Schema/views/ExpandableExample.d.ts +4 -0
- package/typings/components/Schema/views/ObjectRenderer.d.ts +14 -0
- package/typings/components/Schema/views/Pattern.d.ts +6 -0
- package/typings/components/Schema/views/PrimitiveRenderer.d.ts +5 -0
- package/typings/components/Schema/views/PropertyFieldRow.d.ts +16 -0
- package/typings/components/Schema/views/PropertyRenderer.d.ts +15 -0
- package/typings/components/Schema/views/SchemaEnumDescriptions.d.ts +9 -0
- package/typings/components/Schema/views/SchemaEnumValues.d.ts +8 -0
- package/typings/components/Schema/views/SchemaTitleLabel.d.ts +5 -0
- package/typings/components/Schema/views/SchemaVariantSelector.d.ts +11 -0
- package/typings/components/Schema/views/SwitcherRenderer.d.ts +14 -0
- package/typings/components/Schema/views/VariantDropdown.d.ts +14 -0
- package/typings/components/Search/Search.d.ts +10 -0
- package/typings/components/Search/SearchDialog.d.ts +7 -0
- package/typings/components/Search/SearchTrigger.d.ts +9 -0
- package/typings/components/Search/index.d.ts +3 -0
- package/typings/components/Security/Divider.d.ts +4 -0
- package/typings/components/Security/RequiredScopes.d.ts +4 -0
- package/typings/components/Security/ScopeTagWithTooltip.d.ts +11 -0
- package/typings/components/Security/SecurityButtonPanel.d.ts +5 -0
- package/typings/components/Security/SecurityFlowDetail.d.ts +5 -0
- package/typings/components/Security/SecurityModal.d.ts +6 -0
- package/typings/components/Security/SecuritySection.d.ts +3 -0
- package/typings/components/Security/styled.d.ts +127 -0
- package/typings/components/Security/types.d.ts +3 -0
- package/typings/components/SideMenu/SideMenu.d.ts +6 -14
- package/typings/components/SideMenu/buildMenuItems.d.ts +29 -0
- package/typings/components/SideMenu/useMenuItems.d.ts +14 -0
- package/typings/components/StickySidebar/FloatingButton.d.ts +1 -0
- package/typings/components/StickySidebar/RedoclyAttributionLogo.d.ts +5 -0
- package/typings/components/StickySidebar/SidebarActions.d.ts +2 -0
- package/typings/components/StickySidebar/StickySidebar.d.ts +7 -0
- package/typings/components/common/Badge.d.ts +32 -0
- package/typings/components/common/Breadcrumbs.d.ts +11 -0
- package/typings/components/common/ContentWrapper.d.ts +24 -0
- package/typings/components/common/DeepLinkAnchor.d.ts +20 -0
- package/typings/components/common/ExpandAllButton.d.ts +6 -0
- package/typings/components/common/ExternalDocumentation.d.ts +10 -0
- package/typings/components/common/LazyMount.d.ts +9 -0
- package/typings/components/common/LazySection.d.ts +14 -0
- package/typings/components/common/Markdown.d.ts +7 -0
- package/typings/components/common/MoreDetailsButton.d.ts +5 -0
- package/typings/components/common/NestedToggleButton.d.ts +10 -0
- package/typings/components/common/PanelItem.d.ts +65 -0
- package/typings/components/common/ResponseCodeTabs.d.ts +9 -0
- package/typings/components/common/Tag.d.ts +3 -0
- package/typings/components/common/VendorExtensions.d.ts +7 -0
- package/typings/components/common/ViewNested.d.ts +16 -0
- package/typings/components/graphql/ArrowIcon.d.ts +7 -0
- package/typings/components/graphql/GraphQLArgumentsSection.d.ts +10 -0
- package/typings/components/graphql/GraphQLEnumEmbedded.d.ts +5 -0
- package/typings/components/graphql/GraphQLFieldView.d.ts +12 -0
- package/typings/components/graphql/GraphQLFieldsEmbedded.d.ts +9 -0
- package/typings/components/graphql/GraphQLGroupTypeList.d.ts +5 -0
- package/typings/components/graphql/GraphQLHeaderExtras.d.ts +7 -0
- package/typings/components/graphql/GraphQLReturnTypeDetails.d.ts +11 -0
- package/typings/components/graphql/GraphQLTypeView.d.ts +9 -0
- package/typings/components/graphql/GraphQLUnionEmbedded.d.ts +5 -0
- package/typings/components/graphql/RequiresScopesButton.d.ts +9 -0
- package/typings/components/graphql/RequiresScopesModal.d.ts +9 -0
- package/typings/components/graphql/ViewNested.d.ts +14 -0
- package/typings/components/graphql/renderDescription.d.ts +2 -0
- package/typings/components/graphql/sections/GraphQLArgsSection.d.ts +5 -0
- package/typings/components/graphql/sections/GraphQLFieldsSection.d.ts +5 -0
- package/typings/components/graphql/sections/ImplementedBySection.d.ts +5 -0
- package/typings/components/graphql/sections/ImplementsSection.d.ts +5 -0
- package/typings/components/graphql/sections/PossibleTypesSection.d.ts +5 -0
- package/typings/components/graphql/sections/RequiresScopesSection.d.ts +5 -0
- package/typings/components/graphql/sections/ReturnTypeSection.d.ts +5 -0
- package/typings/components/graphql/styled.d.ts +62 -0
- package/typings/components/markdoc/Heading.d.ts +11 -0
- package/typings/components/markdoc/SchemaDefinition.d.ts +11 -0
- package/typings/components/markdoc/apiDocsMarkdocComponents.d.ts +6 -0
- package/typings/components/markdoc/buildMarkdocOptions.d.ts +9 -0
- package/typings/components/markdoc/defaultMarkdocConfig.d.ts +14 -0
- package/typings/components/markdoc/html/html-jsx-attribute-mapping.d.ts +5 -0
- package/typings/components/markdoc/html/process-html-tokens.d.ts +1 -0
- package/typings/components/markdoc/markdocAdapter.d.ts +11 -0
- package/typings/components/markdoc/markdocParser.d.ts +8 -0
- package/typings/components/markdoc/markdocRenderer.d.ts +8 -0
- package/typings/components/markdoc/tags/mcp-tag-schemas.d.ts +2 -0
- package/typings/components/markdoc/tags/schema-definition-tag.d.ts +2 -0
- package/typings/components/panels/ConnectMcpButton.d.ts +5 -0
- package/typings/components/panels/DownloadPanelItem.d.ts +5 -0
- package/typings/components/panels/ExampleItem/CallbackPayloadItem.d.ts +5 -0
- package/typings/components/panels/ExampleItem/CodeSampleItem.d.ts +5 -0
- package/typings/components/panels/ExampleItem/ExamplesPanelItem.d.ts +3 -0
- package/typings/components/panels/ExampleItem/GraphQLQueryItem.d.ts +5 -0
- package/typings/components/panels/ExampleItem/GraphQLResponseItem.d.ts +5 -0
- package/typings/components/panels/ExampleItem/GraphQLTypeSampleItem.d.ts +5 -0
- package/typings/components/panels/ExampleItem/GraphQLVariablesItem.d.ts +5 -0
- package/typings/components/panels/ExampleItem/PayloadExampleItem.d.ts +5 -0
- package/typings/components/panels/ExampleItem/ResponseExampleItem.d.ts +5 -0
- package/typings/components/panels/ExampleItem/ServerDropdown.d.ts +17 -0
- package/typings/components/panels/ExampleItem/hooks.d.ts +25 -0
- package/typings/components/panels/ExampleItem/selectors.d.ts +39 -0
- package/typings/components/panels/ExampleItem/styled.d.ts +101 -0
- package/typings/components/panels/ExampleItem/types.d.ts +9 -0
- package/typings/components/panels/ExampleItem/useActiveServer.d.ts +17 -0
- package/typings/components/panels/ExampleItem/useCodeSampleLanguages.d.ts +23 -0
- package/typings/components/panels/GroupPanelItem.d.ts +5 -0
- package/typings/components/panels/LanguageItem/LanguageDropdown.d.ts +15 -0
- package/typings/components/panels/LanguageItem/LanguageItem.d.ts +11 -0
- package/typings/components/panels/LanguageItem/LanguageListSkeleton.d.ts +4 -0
- package/typings/components/panels/LanguageItem/constants.d.ts +2 -0
- package/typings/components/panels/LanguageItem/styled.d.ts +71 -0
- package/typings/components/panels/LocationsPanelItem.d.ts +5 -0
- package/typings/components/panels/McpExamplePanelItem.d.ts +5 -0
- package/typings/components/panels/McpPanelItem.d.ts +3 -0
- package/typings/components/panels/OverviewPanelItem.d.ts +3 -0
- package/typings/components/panels/PanelMapper.d.ts +5 -0
- package/typings/components/panels/PanelNodeProps.d.ts +4 -0
- package/typings/components/panels/ReferencesPanelItem.d.ts +5 -0
- package/typings/components/panels/ServerItem/ServerDescriptionTooltip.d.ts +4 -0
- package/typings/components/panels/ServerItem/ServerItem.d.ts +5 -0
- package/typings/components/panels/ServerItem/ServerPanelItem.d.ts +5 -0
- package/typings/components/panels/asyncapi/BrokerItem/BrokerBindingsSection.d.ts +7 -0
- package/typings/components/panels/asyncapi/BrokerItem/BrokerModal.d.ts +8 -0
- package/typings/components/panels/asyncapi/BrokerItem/BrokerOverviewSection.d.ts +6 -0
- package/typings/components/panels/asyncapi/BrokerItem/BrokerPanel.styled.d.ts +21 -0
- package/typings/components/panels/asyncapi/BrokerItem/BrokerPanelItem.d.ts +5 -0
- package/typings/components/panels/asyncapi/ChannelBindingItem/ChannelBindingItem.d.ts +5 -0
- package/typings/components/panels/asyncapi/MessageBindingItem/MessageBindingItem.d.ts +5 -0
- package/typings/components/panels/asyncapi/MessageReferencesItem/MessageReferencesItem.d.ts +5 -0
- package/typings/components/panels/asyncapi/OperationBindingItem/OperationBindingItem.d.ts +5 -0
- package/typings/components/panels/asyncapi/common/bindingPanel.d.ts +30 -0
- package/typings/components/panels/shared-panel-styles.d.ts +16 -0
- package/typings/components/panels/styled.d.ts +18 -0
- package/typings/constants/openapi.d.ts +30 -0
- package/typings/constants/rendering.d.ts +8 -0
- package/typings/contexts/markdownAdapter.d.ts +21 -0
- package/typings/contexts/telemetry.d.ts +4 -0
- package/typings/crypto-compat.d.ts +5 -0
- package/typings/crypto-uuid-compat.d.ts +1 -0
- package/typings/empty-linkedom.d.ts +1 -0
- package/typings/empty.d.ts +7 -0
- package/typings/events/codeSampleCopy.d.ts +2 -0
- package/typings/events/creator.d.ts +2 -0
- package/typings/events/index.d.ts +6 -0
- package/typings/events/languageSwitch.d.ts +2 -0
- package/typings/events/panelToggle.d.ts +2 -0
- package/typings/events/serverSwitch.d.ts +2 -0
- package/typings/events/types.d.ts +7 -0
- package/typings/hoc/withItemId.d.ts +6 -0
- package/typings/hoc/withRouter.d.ts +4 -0
- package/typings/hoc/withStoreProvider.d.ts +24 -0
- package/typings/hooks/deepLinkHash.d.ts +7 -0
- package/typings/hooks/useAgentTools.d.ts +6 -0
- package/typings/hooks/useApiDocsRoutes.d.ts +8 -0
- package/typings/hooks/useApiDocsScroll.d.ts +9 -0
- package/typings/hooks/useBodyScrollLock.d.ts +1 -0
- package/typings/{utils/highlight.d.ts → hooks/useCodeHighlight.d.ts} +17 -23
- package/typings/hooks/useCopyCodeTelemetry.d.ts +14 -0
- package/typings/hooks/useCopySpecSlice.d.ts +9 -0
- package/typings/hooks/useDeepLinkSection.d.ts +23 -0
- package/typings/hooks/useExpandableSection.d.ts +4 -0
- package/typings/hooks/useHashLinkRedirect.d.ts +4 -0
- package/typings/hooks/useInitialTelemetry.d.ts +3 -0
- package/typings/hooks/useIsExpanded.d.ts +1 -0
- package/typings/hooks/useIsHydrated.d.ts +4 -0
- package/typings/hooks/useManualScrollAnchor.d.ts +19 -0
- package/typings/hooks/useModalDismiss.d.ts +2 -0
- package/typings/hooks/useNormalizeUrl.d.ts +2 -0
- package/typings/hooks/usePageTelemetry.d.ts +3 -0
- package/typings/hooks/usePageViewTelemetry.d.ts +2 -0
- package/typings/hooks/usePerformanceMetricsTelemetry.d.ts +5 -0
- package/typings/hooks/useRouterHashBridge.d.ts +25 -0
- package/typings/hooks/useScrollSpyUrlSync.d.ts +3 -0
- package/typings/hooks/useSearchEngine.d.ts +7 -0
- package/typings/hooks/useSessionSummaryTelemetry.d.ts +7 -0
- package/typings/hooks/useTelemetry.d.ts +2 -0
- package/typings/hooks/useTranslate.d.ts +5 -0
- package/typings/hooks/useUrlHash.d.ts +8 -0
- package/typings/hooks/useUrlHashReassert.d.ts +2 -0
- package/typings/hooks/useUserScrollIntent.d.ts +18 -0
- package/typings/hooks/useVisitedChannelsTracker.d.ts +6 -0
- package/typings/icons/CSharpIcon/CSharpIcon.d.ts +4 -0
- package/typings/icons/CSharpIcon/index.d.ts +1 -0
- package/typings/icons/CurlIcon/CurlIcon.d.ts +6 -0
- package/typings/icons/CurlIcon/index.d.ts +1 -0
- package/typings/icons/DefaultMappingIcon/DefaultMappingIcon.d.ts +6 -0
- package/typings/icons/DefaultMappingIcon/index.d.ts +1 -0
- package/typings/icons/GOIcon/GOIcon.d.ts +4 -0
- package/typings/icons/GOIcon/index.d.ts +1 -0
- package/typings/icons/JavaIcon/JavaIcon.d.ts +4 -0
- package/typings/icons/JavaIcon/index.d.ts +1 -0
- package/typings/icons/JavaScriptIcon/JavaScriptIcon.d.ts +4 -0
- package/typings/icons/JavaScriptIcon/index.d.ts +1 -0
- package/typings/icons/ListIcon/ListIcon.d.ts +10 -0
- package/typings/icons/NodeJSIcon/NodeJSIcon.d.ts +4 -0
- package/typings/icons/NodeJSIcon/index.d.ts +1 -0
- package/typings/icons/PHPIcon/PHPIcon.d.ts +4 -0
- package/typings/icons/PHPIcon/index.d.ts +1 -0
- package/typings/icons/PayloadIcon/PayloadIcon.d.ts +4 -0
- package/typings/icons/PayloadIcon/index.d.ts +1 -0
- package/typings/icons/PlusCircleIcon/PlusCircleIcon.d.ts +7 -0
- package/typings/icons/PythonIcon/PythonIcon.d.ts +4 -0
- package/typings/icons/PythonIcon/index.d.ts +1 -0
- package/typings/icons/RIcon/RIcon.d.ts +4 -0
- package/typings/icons/RIcon/index.d.ts +1 -0
- package/typings/icons/RubyIcon/RubyIcon.d.ts +4 -0
- package/typings/icons/RubyIcon/index.d.ts +1 -0
- package/typings/index.d.ts +9 -8
- package/typings/jotai/app.d.ts +75 -0
- package/typings/jotai/examples.d.ts +5 -0
- package/typings/jotai/graphql.d.ts +10 -0
- package/typings/jotai/itemStore.d.ts +51 -0
- package/typings/jotai/routes.d.ts +4 -0
- package/typings/jotai/schema.d.ts +3 -0
- package/typings/jotai/store.d.ts +22 -0
- package/typings/jotai/telemetry.d.ts +46 -0
- package/typings/options/constants.d.ts +10 -0
- package/typings/options/editionOverrides.d.ts +3 -0
- package/typings/options/helpers.d.ts +25 -0
- package/typings/options/normalizeOptions.d.ts +2 -0
- package/typings/options/standaloneLayoutVars.d.ts +3 -0
- package/typings/otel-semantic-conventions.d.ts +10 -0
- package/typings/pages/EntryPage.d.ts +25 -0
- package/typings/pages/GroupPage.d.ts +1 -0
- package/typings/pages/ItemPage.d.ts +1 -0
- package/typings/pages/NotFoundPage.d.ts +6 -0
- package/typings/pages/OverviewPage.d.ts +1 -0
- package/typings/pages/TopLevelEntryView.d.ts +17 -0
- package/typings/services/agent-tools/index.d.ts +11 -0
- package/typings/services/agent-tools/operations.d.ts +20 -0
- package/typings/services/agent-tools/results.d.ts +6 -0
- package/typings/services/agent-tools/security.d.ts +13 -0
- package/typings/services/agent-tools/spec-slice-detail.d.ts +12 -0
- package/typings/services/agent-tools/types.d.ts +54 -0
- package/typings/services/agent-tools/webmcp.d.ts +14 -0
- package/typings/services/code-samples/apply-env-variables.d.ts +8 -0
- package/typings/services/code-samples/convertSampleToString.d.ts +3 -0
- package/typings/services/code-samples/discriminator.d.ts +66 -0
- package/typings/services/code-samples/example-key.d.ts +25 -0
- package/typings/services/code-samples/index.d.ts +2 -0
- package/typings/services/code-samples/language-availability.d.ts +4 -0
- package/typings/services/code-samples/normalize-servers.d.ts +3 -0
- package/typings/services/code-samples/server-env.d.ts +3 -0
- package/typings/services/code-samples/server-variables.d.ts +11 -0
- package/typings/services/code-samples/source.d.ts +104 -0
- package/typings/services/schema/dialects/graphqlSchema.d.ts +1 -0
- package/typings/services/schema/dialects/jsonSchema.d.ts +7 -0
- package/typings/services/schema/index.d.ts +1 -0
- package/typings/services/schema/propertyBuilder.d.ts +32 -0
- package/typings/services/schema/propertyTreeBuilder.d.ts +21 -0
- package/typings/services/schema/schemaProcessor.d.ts +2 -0
- package/typings/services/schema/variant-label.d.ts +6 -0
- package/typings/services/search/engine/collapse.d.ts +5 -0
- package/typings/services/search/engine/constants.d.ts +22 -0
- package/typings/services/search/engine/flexsearch.d.ts +6 -0
- package/typings/services/search/engine/index.d.ts +11 -0
- package/typings/services/search/engine/lowered.d.ts +34 -0
- package/typings/services/search/engine/match.d.ts +12 -0
- package/typings/services/search/engine/present.d.ts +5 -0
- package/typings/services/search/engine/query.d.ts +6 -0
- package/typings/services/search/engine/score.d.ts +7 -0
- package/typings/services/search/engine/text.d.ts +3 -0
- package/typings/services/search/engine/types.d.ts +19 -0
- package/typings/services/search/highlight.d.ts +3 -0
- package/typings/services/search/index.d.ts +4 -0
- package/typings/services/search/indexer/context.d.ts +8 -0
- package/typings/services/search/indexer/deep-links.d.ts +12 -0
- package/typings/services/search/indexer/extractors/asyncapi.d.ts +8 -0
- package/typings/services/search/indexer/extractors/body.d.ts +2 -0
- package/typings/services/search/indexer/extractors/callbacks.d.ts +4 -0
- package/typings/services/search/indexer/extractors/context.d.ts +25 -0
- package/typings/services/search/indexer/extractors/examples.d.ts +3 -0
- package/typings/services/search/indexer/extractors/graphql.d.ts +2 -0
- package/typings/services/search/indexer/extractors/heading-sections.d.ts +3 -0
- package/typings/services/search/indexer/extractors/index.d.ts +12 -0
- package/typings/services/search/indexer/extractors/mcp.d.ts +9 -0
- package/typings/services/search/indexer/extractors/named-rows.d.ts +9 -0
- package/typings/services/search/indexer/extractors/panels.d.ts +10 -0
- package/typings/services/search/indexer/extractors/parameters.d.ts +2 -0
- package/typings/services/search/indexer/extractors/responses.d.ts +2 -0
- package/typings/services/search/indexer/extractors/schema-page.d.ts +9 -0
- package/typings/services/search/indexer/extractors/security.d.ts +4 -0
- package/typings/services/search/indexer/index.d.ts +14 -0
- package/typings/services/search/indexer/param.d.ts +7 -0
- package/typings/services/search/indexer/places.d.ts +42 -0
- package/typings/services/search/indexer/schema-walker.d.ts +29 -0
- package/typings/services/search/indexer/text.d.ts +2 -0
- package/typings/services/search/init.d.ts +7 -0
- package/typings/services/search/text-match.d.ts +5 -0
- package/typings/services/search/types.d.ts +32 -0
- package/typings/services/spec-slice/assistant-links.d.ts +9 -0
- package/typings/services/spec-slice/asyncapi-slice.d.ts +5 -0
- package/typings/services/spec-slice/clone-strip.d.ts +1 -0
- package/typings/services/spec-slice/component-closure.d.ts +6 -0
- package/typings/services/spec-slice/graphql-slice.d.ts +2 -0
- package/typings/services/spec-slice/index.d.ts +6 -0
- package/typings/services/spec-slice/openapi-slice.d.ts +6 -0
- package/typings/services/spec-slice/resolve-scope.d.ts +4 -0
- package/typings/services/spec-slice/types.d.ts +37 -0
- package/typings/standalone.d.ts +20 -0
- package/typings/standaloneThemeConfig.d.ts +3 -0
- package/typings/telemetry/RedocTelemetry.d.ts +22 -0
- package/typings/telemetry/TypeOfUsageContext.d.ts +3 -0
- package/typings/telemetry/defaults.d.ts +7 -0
- package/typings/telemetry/events.d.ts +42 -0
- package/typings/telemetry/fields.d.ts +7 -0
- package/typings/telemetry/index.d.ts +15 -0
- package/typings/telemetry/initialPayload.d.ts +56 -0
- package/typings/telemetry/page.d.ts +5 -0
- package/typings/telemetry/reportDefinitionLoadFailed.d.ts +9 -0
- package/typings/telemetry/sanitizeError.d.ts +4 -0
- package/typings/telemetry/security.d.ts +15 -0
- package/typings/telemetry/useRedocTelemetryInstance.d.ts +3 -0
- package/typings/telemetry/useSchemaFieldTelemetry.d.ts +4 -0
- package/typings/telemetry/useSidebarItemTelemetry.d.ts +11 -0
- package/typings/types/asyncapi.d.ts +348 -0
- package/typings/types/code-samples-config.d.ts +12 -0
- package/typings/types/common.d.ts +162 -0
- package/typings/types/content.d.ts +503 -0
- package/typings/types/edition-config.d.ts +6 -0
- package/typings/types/events.d.ts +64 -0
- package/typings/types/graphql-store.d.ts +60 -0
- package/typings/types/graphql.d.ts +54 -0
- package/typings/types/index.d.ts +10 -2
- package/typings/types/openapi.d.ts +556 -0
- package/typings/types/options.d.ts +132 -0
- package/typings/types/pluggable.d.ts +4 -0
- package/typings/types/schema.d.ts +156 -0
- package/typings/types/store.d.ts +176 -0
- package/typings/url-compat.d.ts +22 -0
- package/typings/utils/calculateMaxLength.d.ts +6 -0
- package/typings/utils/compose.d.ts +8 -0
- package/typings/utils/cookies.d.ts +7 -0
- package/typings/utils/deep-link.d.ts +171 -0
- package/typings/utils/definitionLoadError.d.ts +7 -0
- package/typings/utils/environments.d.ts +6 -0
- package/typings/utils/expansion.d.ts +3 -0
- package/typings/utils/extract-extensions.d.ts +4 -0
- package/typings/utils/form-urlencoded.d.ts +6 -0
- package/typings/utils/graphql-directive-utils.d.ts +6 -0
- package/typings/utils/graphql-parse.d.ts +1 -0
- package/typings/utils/graphql-reference-map.d.ts +3 -0
- package/typings/utils/graphql-samples.d.ts +25 -0
- package/typings/utils/graphql-scopes.d.ts +6 -0
- package/typings/utils/graphql-type-expansion.d.ts +5 -0
- package/typings/utils/http-methods.d.ts +8 -0
- package/typings/utils/is-record.d.ts +1 -0
- package/typings/utils/languages.d.ts +18 -0
- package/typings/utils/loadAndBundleSpec.d.ts +4 -3
- package/typings/utils/logo.d.ts +8 -0
- package/typings/utils/media-type.d.ts +7 -0
- package/typings/utils/multipart.d.ts +7 -0
- package/typings/utils/overview-partial-sections.d.ts +7 -0
- package/typings/utils/refPointer.d.ts +2 -0
- package/typings/utils/resolveText.d.ts +2 -0
- package/typings/utils/routeKind.d.ts +6 -0
- package/typings/utils/routing.d.ts +51 -0
- package/typings/utils/scroll-anchoring.d.ts +4 -0
- package/typings/utils/security-scope.d.ts +3 -0
- package/typings/utils/serialize-parameter.d.ts +8 -0
- package/typings/utils/serialize-querystring.d.ts +6 -0
- package/typings/utils/session-storage.d.ts +2 -0
- package/typings/utils/split-badges-by-position.d.ts +5 -0
- package/typings/utils/status-code.d.ts +1 -0
- package/typings/utils/string.d.ts +18 -0
- package/typings/utils/telemetry.d.ts +1 -0
- package/typings/utils/url.d.ts +9 -0
- package/typings/utils/x-logo.d.ts +13 -0
- package/typings/utils/xml.d.ts +1 -0
- package/typings/yaml-compat.d.ts +7 -0
- package/bundles/d87bcbdbea8f8f5aa26f.worker.js.LICENSE.txt +0 -68
- package/bundles/d87bcbdbea8f8f5aa26f.worker.js.map +0 -1
- package/bundles/redoc.browser.lib.js +0 -1845
- package/bundles/redoc.browser.lib.js.LICENSE.txt +0 -6
- package/bundles/redoc.browser.lib.js.map +0 -1
- package/bundles/redoc.lib.js +0 -1845
- package/bundles/redoc.lib.js.LICENSE.txt +0 -6
- package/bundles/redoc.lib.js.map +0 -1
- package/bundles/redoc.standalone.js.LICENSE.txt +0 -102
- package/bundles/redoc.standalone.js.map +0 -1
- package/typings/common-elements/CopyButtonWrapper.d.ts +0 -10
- package/typings/common-elements/Dropdown/Dropdown.d.ts +0 -3
- package/typings/common-elements/Dropdown/index.d.ts +0 -2
- package/typings/common-elements/Dropdown/styled.d.ts +0 -7
- package/typings/common-elements/Dropdown/types.d.ts +0 -23
- package/typings/common-elements/PrismDiv.d.ts +0 -1
- package/typings/common-elements/Tooltip.d.ts +0 -8
- package/typings/common-elements/fields-layout.d.ts +0 -14
- package/typings/common-elements/fields.d.ts +0 -20
- package/typings/common-elements/headers.d.ts +0 -6
- package/typings/common-elements/index.d.ts +0 -11
- package/typings/common-elements/linkify.d.ts +0 -10
- package/typings/common-elements/mixins.d.ts +0 -1
- package/typings/common-elements/panels.d.ts +0 -11
- package/typings/common-elements/perfect-scrollbar.d.ts +0 -19
- package/typings/common-elements/samples.d.ts +0 -5
- package/typings/common-elements/schema.d.ts +0 -8
- package/typings/common-elements/shelfs.d.ts +0 -13
- package/typings/common-elements/tabs.d.ts +0 -3
- package/typings/components/ApiInfo/ApiInfo.d.ts +0 -8
- package/typings/components/ApiInfo/index.d.ts +0 -1
- package/typings/components/ApiInfo/styled.elements.d.ts +0 -8
- package/typings/components/ApiLogo/ApiLogo.d.ts +0 -7
- package/typings/components/ApiLogo/styled.elements.d.ts +0 -4
- package/typings/components/CallbackSamples/CallbackReqSamples.d.ts +0 -11
- package/typings/components/CallbackSamples/CallbackSamples.d.ts +0 -13
- package/typings/components/Callbacks/CallbackDetails.d.ts +0 -8
- package/typings/components/Callbacks/CallbackOperation.d.ts +0 -8
- package/typings/components/Callbacks/CallbackTitle.d.ts +0 -10
- package/typings/components/Callbacks/CallbacksList.d.ts +0 -8
- package/typings/components/Callbacks/index.d.ts +0 -3
- package/typings/components/Callbacks/styled.elements.d.ts +0 -2
- package/typings/components/ContentItems/ContentItems.d.ts +0 -22
- package/typings/components/DropdownOrLabel/DropdownOrLabel.d.ts +0 -10
- package/typings/components/Endpoint/Endpoint.d.ts +0 -16
- package/typings/components/Endpoint/styled.elements.d.ts +0 -17
- package/typings/components/ExternalDocumentation/ExternalDocumentation.d.ts +0 -8
- package/typings/components/Fields/ArrayItemDetails.d.ts +0 -5
- package/typings/components/Fields/EnumValues.d.ts +0 -17
- package/typings/components/Fields/Examples.d.ts +0 -5
- package/typings/components/Fields/Extensions.d.ts +0 -9
- package/typings/components/Fields/Field.d.ts +0 -20
- package/typings/components/Fields/FieldConstraints.d.ts +0 -7
- package/typings/components/Fields/FieldDetail.d.ts +0 -7
- package/typings/components/Fields/FieldDetails.d.ts +0 -4
- package/typings/components/Fields/Pattern.d.ts +0 -5
- package/typings/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +0 -22
- package/typings/components/JsonViewer/JsonViewer.d.ts +0 -6
- package/typings/components/JsonViewer/index.d.ts +0 -1
- package/typings/components/JsonViewer/style.d.ts +0 -1
- package/typings/components/Loading/Loading.d.ts +0 -7
- package/typings/components/Loading/Spinner.svg.d.ts +0 -5
- package/typings/components/Markdown/AdvancedMarkdown.d.ts +0 -11
- package/typings/components/Markdown/Markdown.d.ts +0 -17
- package/typings/components/Markdown/SanitizedMdBlock.d.ts +0 -7
- package/typings/components/Markdown/styled.elements.d.ts +0 -7
- package/typings/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +0 -17
- package/typings/components/Operation/Operation.d.ts +0 -5
- package/typings/components/OptionsProvider.d.ts +0 -5
- package/typings/components/Parameters/Parameters.d.ts +0 -16
- package/typings/components/Parameters/ParametersGroup.d.ts +0 -9
- package/typings/components/PayloadSamples/Example.d.ts +0 -8
- package/typings/components/PayloadSamples/ExampleValue.d.ts +0 -6
- package/typings/components/PayloadSamples/MediaTypeSamples.d.ts +0 -18
- package/typings/components/PayloadSamples/PayloadSamples.d.ts +0 -9
- package/typings/components/PayloadSamples/exernalExampleHook.d.ts +0 -2
- package/typings/components/PayloadSamples/styled.elements.d.ts +0 -7
- package/typings/components/Redoc/Redoc.d.ts +0 -14
- package/typings/components/Redoc/styled.elements.d.ts +0 -3
- package/typings/components/RedocStandalone.d.ts +0 -9
- package/typings/components/RequestSamples/RequestSamples.d.ts +0 -11
- package/typings/components/ResponseSamples/ResponseSamples.d.ts +0 -9
- package/typings/components/Responses/Response.d.ts +0 -6
- package/typings/components/Responses/ResponseDetails.d.ts +0 -8
- package/typings/components/Responses/ResponseHeaders.d.ts +0 -8
- package/typings/components/Responses/ResponseTitle.d.ts +0 -11
- package/typings/components/Responses/ResponsesList.d.ts +0 -9
- package/typings/components/Responses/styled.elements.d.ts +0 -6
- package/typings/components/Schema/ArraySchema.d.ts +0 -5
- package/typings/components/Schema/DiscriminatorDropdown.d.ts +0 -11
- package/typings/components/Schema/ObjectSchema.d.ts +0 -11
- package/typings/components/Schema/OneOfSchema.d.ts +0 -15
- package/typings/components/Schema/RecursiveSchema.d.ts +0 -3
- package/typings/components/Schema/Schema.d.ts +0 -15
- package/typings/components/Schema/index.d.ts +0 -5
- package/typings/components/SchemaDefinition/SchemaDefinition.d.ts +0 -18
- package/typings/components/SearchBox/SearchBox.d.ts +0 -32
- package/typings/components/SearchBox/styled.elements.d.ts +0 -12
- package/typings/components/SecurityRequirement/OAuthFlow.d.ts +0 -9
- package/typings/components/SecurityRequirement/RequiredScopesRow.d.ts +0 -3
- package/typings/components/SecurityRequirement/SecurityDetails.d.ts +0 -8
- package/typings/components/SecurityRequirement/SecurityHeader.d.ts +0 -8
- package/typings/components/SecurityRequirement/SecurityRequirement.d.ts +0 -6
- package/typings/components/SecurityRequirement/styled.elements.d.ts +0 -17
- package/typings/components/SecuritySchemes/SecuritySchemes.d.ts +0 -14
- package/typings/components/SeeMore/SeeMore.d.ts +0 -7
- package/typings/components/SelectOnClick/SelectOnClick.d.ts +0 -6
- package/typings/components/SideMenu/Logo.d.ts +0 -1
- package/typings/components/SideMenu/MenuItem.d.ts +0 -22
- package/typings/components/SideMenu/MenuItems.d.ts +0 -13
- package/typings/components/SideMenu/index.d.ts +0 -4
- package/typings/components/SideMenu/styled.elements.d.ts +0 -30
- package/typings/components/SourceCode/SourceCode.d.ts +0 -7
- package/typings/components/StickySidebar/ChevronSvg.d.ts +0 -4
- package/typings/components/StickySidebar/StickyResponsiveSidebar.d.ts +0 -23
- package/typings/components/StoreBuilder.d.ts +0 -26
- package/typings/components/index.d.ts +0 -34
- package/typings/services/AppStore.d.ts +0 -33
- package/typings/services/ClipboardService.d.ts +0 -8
- package/typings/services/HistoryService.d.ts +0 -12
- package/typings/services/Labels.d.ts +0 -3
- package/typings/services/MarkdownRenderer.d.ts +0 -26
- package/typings/services/MarkerService.d.ts +0 -11
- package/typings/services/MenuBuilder.d.ts +0 -50
- package/typings/services/MenuStore.d.ts +0 -89
- package/typings/services/OpenAPIParser.d.ts +0 -50
- package/typings/services/RedocNormalizedOptions.d.ts +0 -123
- package/typings/services/ScrollService.d.ts +0 -17
- package/typings/services/SearchStore.d.ts +0 -16
- package/typings/services/SearchWorker.worker.d.ts +0 -20
- package/typings/services/SpecStore.d.ts +0 -20
- package/typings/services/index.d.ts +0 -14
- package/typings/services/models/ApiInfo.d.ts +0 -23
- package/typings/services/models/Callback.d.ts +0 -11
- package/typings/services/models/Example.d.ts +0 -13
- package/typings/services/models/Field.d.ts +0 -32
- package/typings/services/models/Group.model.d.ts +0 -25
- package/typings/services/models/MediaContent.d.ts +0 -24
- package/typings/services/models/MediaType.d.ts +0 -20
- package/typings/services/models/Operation.d.ts +0 -72
- package/typings/services/models/RequestBody.d.ts +0 -17
- package/typings/services/models/Response.d.ts +0 -26
- package/typings/services/models/Schema.d.ts +0 -62
- package/typings/services/models/SecurityRequirement.d.ts +0 -12
- package/typings/services/models/SecuritySchemes.d.ts +0 -26
- package/typings/services/models/Webhook.d.ts +0 -9
- package/typings/services/models/index.d.ts +0 -13
- package/typings/services/types.d.ts +0 -106
- package/typings/styled-components.d.ts +0 -12
- package/typings/styled-patch.d.ts +0 -22
- package/typings/theme.d.ts +0 -163
- package/typings/types/index.ts +0 -3
- package/typings/types/open-api.d.ts +0 -314
- package/typings/types/open-api.ts +0 -304
- package/typings/utils/debug.d.ts +0 -2
- package/typings/utils/decorators.d.ts +0 -1
- package/typings/utils/dom.d.ts +0 -9
- package/typings/utils/helpers.d.ts +0 -43
- package/typings/utils/index.d.ts +0 -10
- package/typings/utils/jsonToHtml.d.ts +0 -1
- package/typings/utils/memoize.d.ts +0 -1
- package/typings/utils/openapi.d.ts +0 -43
- package/typings/utils/sort.d.ts +0 -6
|
@@ -0,0 +1,556 @@
|
|
|
1
|
+
import type { Node } from '@markdoc/markdoc';
|
|
2
|
+
import type { SecurityDetails as ThemeSecurityDetails } from '@redocly/theme/ext/configure';
|
|
3
|
+
import type { OpenAPIRef, RawLogo, Referenced, ExternalDocsData, SecuritySchemeType, SecuritySchemeIn, ObjectValues } from './common.js';
|
|
4
|
+
import type { StoreContext } from './store.js';
|
|
5
|
+
import type { ApiDocsOptions, NormalizedDownloadUrl } from './options.js';
|
|
6
|
+
import type { securitySchemeType } from './common.js';
|
|
7
|
+
import type { ExampleType } from './schema.js';
|
|
8
|
+
export type MergedOpenAPISchema = OpenAPISchema & {
|
|
9
|
+
'x-refsStack'?: string[];
|
|
10
|
+
'x-parentRefs'?: string[];
|
|
11
|
+
'x-circular-ref'?: boolean;
|
|
12
|
+
'x-allof-cycle'?: boolean;
|
|
13
|
+
'x-complex'?: boolean;
|
|
14
|
+
absolutePointer?: string;
|
|
15
|
+
};
|
|
16
|
+
export type OpenAPIDefinition = {
|
|
17
|
+
openapi: string;
|
|
18
|
+
info: OpenAPIInfo;
|
|
19
|
+
servers?: OpenAPIServer[];
|
|
20
|
+
paths: OpenAPIPaths;
|
|
21
|
+
components?: OpenAPIComponents;
|
|
22
|
+
security?: OpenAPISecurityRequirement[];
|
|
23
|
+
tags?: OpenAPITag[];
|
|
24
|
+
externalDocs?: OpenAPIExternalDocumentation;
|
|
25
|
+
webhooks?: OpenAPIPaths;
|
|
26
|
+
'x-mcp'?: OpenAPIMcp;
|
|
27
|
+
'x-webhooks'?: OpenAPIPaths;
|
|
28
|
+
'x-tagGroups'?: Array<{
|
|
29
|
+
name: string;
|
|
30
|
+
tags: Array<string>;
|
|
31
|
+
}>;
|
|
32
|
+
'x-keywords'?: unknown;
|
|
33
|
+
'x-root'?: OpenAPISchema;
|
|
34
|
+
};
|
|
35
|
+
export type OpenAPIInfo = {
|
|
36
|
+
title: string;
|
|
37
|
+
version: string;
|
|
38
|
+
description?: string | Node[] | Node;
|
|
39
|
+
summary?: string;
|
|
40
|
+
termsOfService?: string;
|
|
41
|
+
contact?: OpenAPIContact;
|
|
42
|
+
license?: OpenAPILicense;
|
|
43
|
+
externalDocs?: OpenAPIExternalDocumentation;
|
|
44
|
+
'x-logo'?: XLogo;
|
|
45
|
+
};
|
|
46
|
+
export type XLogo = RawLogo;
|
|
47
|
+
export type OpenAPIServer = {
|
|
48
|
+
url: string;
|
|
49
|
+
description?: string | Node | Node[];
|
|
50
|
+
name?: string;
|
|
51
|
+
variables?: OpenAPIServerVariables;
|
|
52
|
+
/** Set on entries injected by `mergeInMockServer` (never present in specs). */
|
|
53
|
+
isMockServer?: boolean;
|
|
54
|
+
};
|
|
55
|
+
export type OpenAPIServerVariables = {
|
|
56
|
+
[name: string]: OpenAPIServerVariable;
|
|
57
|
+
};
|
|
58
|
+
export type OpenAPIServerVariable = {
|
|
59
|
+
enum?: string[];
|
|
60
|
+
default: string;
|
|
61
|
+
description?: string | Node[] | Node;
|
|
62
|
+
};
|
|
63
|
+
export type OpenAPIPaths = {
|
|
64
|
+
[path: string]: OpenAPIPath;
|
|
65
|
+
};
|
|
66
|
+
export { type OpenAPIRef } from './common.js';
|
|
67
|
+
export type OpenAPIPath = Partial<OpenAPIRef> & {
|
|
68
|
+
summary?: string;
|
|
69
|
+
description?: string | Node[] | Node;
|
|
70
|
+
get?: OpenAPIOperation;
|
|
71
|
+
put?: OpenAPIOperation;
|
|
72
|
+
post?: OpenAPIOperation;
|
|
73
|
+
query?: OpenAPIOperation;
|
|
74
|
+
'x-query'?: OpenAPIOperation;
|
|
75
|
+
delete?: OpenAPIOperation;
|
|
76
|
+
options?: OpenAPIOperation;
|
|
77
|
+
head?: OpenAPIOperation;
|
|
78
|
+
patch?: OpenAPIOperation;
|
|
79
|
+
trace?: OpenAPIOperation;
|
|
80
|
+
additionalOperations?: Record<string, OpenAPIOperation>;
|
|
81
|
+
servers?: OpenAPIServer[];
|
|
82
|
+
parameters?: Array<Referenced<OpenAPIParameter>>;
|
|
83
|
+
};
|
|
84
|
+
export type Sample = {
|
|
85
|
+
lang: string;
|
|
86
|
+
label?: string;
|
|
87
|
+
};
|
|
88
|
+
export type OpenAPIXCodeSample = Sample & {
|
|
89
|
+
source: string;
|
|
90
|
+
};
|
|
91
|
+
export type OpenAPIXBadges = {
|
|
92
|
+
name: string;
|
|
93
|
+
color?: string;
|
|
94
|
+
position?: 'before' | 'after';
|
|
95
|
+
icon?: string;
|
|
96
|
+
description?: string;
|
|
97
|
+
};
|
|
98
|
+
export type OpenAPIOperation = {
|
|
99
|
+
tags?: string[];
|
|
100
|
+
summary?: string;
|
|
101
|
+
description?: string | Node[];
|
|
102
|
+
externalDocs?: OpenAPIExternalDocumentation;
|
|
103
|
+
operationId?: string;
|
|
104
|
+
parameters?: Array<Referenced<OpenAPIParameter>>;
|
|
105
|
+
requestBody?: Referenced<OpenAPIRequestBody>;
|
|
106
|
+
responses: OpenAPIResponses;
|
|
107
|
+
callbacks?: {
|
|
108
|
+
[name: string]: Referenced<OpenAPICallback>;
|
|
109
|
+
};
|
|
110
|
+
deprecated?: boolean;
|
|
111
|
+
security?: OpenAPISecurityRequirement[];
|
|
112
|
+
servers?: OpenAPIServer[];
|
|
113
|
+
'x-codeSamples'?: OpenAPIXCodeSample[];
|
|
114
|
+
'x-badges'?: OpenAPIXBadges[];
|
|
115
|
+
};
|
|
116
|
+
export type OpenAPIParameter = {
|
|
117
|
+
name: string;
|
|
118
|
+
in?: OpenAPIParameterLocation;
|
|
119
|
+
description?: string | Node[] | Node;
|
|
120
|
+
required?: boolean;
|
|
121
|
+
deprecated?: boolean;
|
|
122
|
+
allowEmptyValue?: boolean;
|
|
123
|
+
style?: OpenAPIParameterStyle;
|
|
124
|
+
explode?: boolean;
|
|
125
|
+
allowReserved?: boolean;
|
|
126
|
+
schema?: Referenced<OpenAPISchema>;
|
|
127
|
+
example?: unknown;
|
|
128
|
+
examples?: {
|
|
129
|
+
[media: string]: Referenced<OpenAPIExample>;
|
|
130
|
+
};
|
|
131
|
+
content?: {
|
|
132
|
+
[media: string]: OpenAPIMediaType;
|
|
133
|
+
};
|
|
134
|
+
encoding?: Record<string, OpenAPIEncoding>;
|
|
135
|
+
const?: unknown;
|
|
136
|
+
};
|
|
137
|
+
export type OpenAPIExample = {
|
|
138
|
+
value?: unknown;
|
|
139
|
+
dataValue?: unknown;
|
|
140
|
+
serializedValue?: string;
|
|
141
|
+
summary?: string;
|
|
142
|
+
description?: string | Node[] | Node;
|
|
143
|
+
externalValue?: string;
|
|
144
|
+
};
|
|
145
|
+
export type XMLNodeType = 'element' | 'attribute' | 'text' | 'cdata' | 'none';
|
|
146
|
+
export type XMLObject = {
|
|
147
|
+
nodeType?: XMLNodeType;
|
|
148
|
+
name?: string;
|
|
149
|
+
namespace?: string;
|
|
150
|
+
prefix?: string;
|
|
151
|
+
/** @deprecated Use nodeType: "attribute" instead */
|
|
152
|
+
attribute?: boolean;
|
|
153
|
+
/** @deprecated Use nodeType: "element" instead (for wrapped arrays) */
|
|
154
|
+
wrapped?: boolean;
|
|
155
|
+
};
|
|
156
|
+
export type OpenAPISchema = {
|
|
157
|
+
$ref?: string;
|
|
158
|
+
type?: string | string[];
|
|
159
|
+
properties?: {
|
|
160
|
+
[name: string]: OpenAPISchema;
|
|
161
|
+
};
|
|
162
|
+
patternProperties?: {
|
|
163
|
+
[name: string]: OpenAPISchema;
|
|
164
|
+
};
|
|
165
|
+
additionalProperties?: boolean | OpenAPISchema;
|
|
166
|
+
unevaluatedProperties?: boolean | OpenAPISchema;
|
|
167
|
+
description?: string | Node[] | Node;
|
|
168
|
+
default?: unknown;
|
|
169
|
+
items?: OpenAPISchema | OpenAPISchema[] | boolean;
|
|
170
|
+
required?: string[];
|
|
171
|
+
readOnly?: boolean;
|
|
172
|
+
writeOnly?: boolean;
|
|
173
|
+
deprecated?: boolean;
|
|
174
|
+
format?: string;
|
|
175
|
+
externalDocs?: OpenAPIExternalDocumentation;
|
|
176
|
+
discriminator?: OpenAPIDiscriminator;
|
|
177
|
+
nullable?: boolean;
|
|
178
|
+
oneOf?: OpenAPISchema[];
|
|
179
|
+
anyOf?: OpenAPISchema[];
|
|
180
|
+
allOf?: OpenAPISchema[];
|
|
181
|
+
not?: OpenAPISchema;
|
|
182
|
+
title?: string;
|
|
183
|
+
multipleOf?: number;
|
|
184
|
+
maximum?: number;
|
|
185
|
+
exclusiveMaximum?: boolean | number;
|
|
186
|
+
minimum?: number;
|
|
187
|
+
exclusiveMinimum?: boolean | number;
|
|
188
|
+
maxLength?: number;
|
|
189
|
+
minLength?: number;
|
|
190
|
+
pattern?: string;
|
|
191
|
+
maxItems?: number;
|
|
192
|
+
minItems?: number;
|
|
193
|
+
uniqueItems?: boolean;
|
|
194
|
+
maxProperties?: number;
|
|
195
|
+
minProperties?: number;
|
|
196
|
+
enum?: unknown[];
|
|
197
|
+
example?: unknown;
|
|
198
|
+
examples?: unknown[] | Record<string, ExampleType>;
|
|
199
|
+
const?: string;
|
|
200
|
+
contentEncoding?: string;
|
|
201
|
+
contentMediaType?: string;
|
|
202
|
+
if?: OpenAPISchema;
|
|
203
|
+
else?: OpenAPISchema;
|
|
204
|
+
then?: OpenAPISchema;
|
|
205
|
+
prefixItems?: OpenAPISchema[];
|
|
206
|
+
additionalItems?: OpenAPISchema | boolean;
|
|
207
|
+
xml?: XMLObject;
|
|
208
|
+
};
|
|
209
|
+
export type OpenAPIDiscriminator = {
|
|
210
|
+
propertyName: string;
|
|
211
|
+
mapping?: {
|
|
212
|
+
[name: string]: string;
|
|
213
|
+
};
|
|
214
|
+
'x-explicitMappingOnly'?: boolean;
|
|
215
|
+
defaultMapping?: string;
|
|
216
|
+
};
|
|
217
|
+
export type OpenAPIMediaType = {
|
|
218
|
+
schema?: Referenced<OpenAPISchema>;
|
|
219
|
+
itemSchema?: Referenced<OpenAPISchema>;
|
|
220
|
+
example?: unknown;
|
|
221
|
+
examples?: {
|
|
222
|
+
[name: string]: Referenced<OpenAPIExample>;
|
|
223
|
+
};
|
|
224
|
+
encoding?: {
|
|
225
|
+
[field: string]: OpenAPIEncoding;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
export type OpenAPIEncoding = {
|
|
229
|
+
contentType: string;
|
|
230
|
+
headers?: {
|
|
231
|
+
[name: string]: Referenced<OpenAPIHeader>;
|
|
232
|
+
};
|
|
233
|
+
style: OpenAPIParameterStyle;
|
|
234
|
+
explode: boolean;
|
|
235
|
+
allowReserved: boolean;
|
|
236
|
+
};
|
|
237
|
+
export declare const parameterLocation: {
|
|
238
|
+
readonly QUERY: 'query';
|
|
239
|
+
readonly HEADER: 'header';
|
|
240
|
+
readonly PATH: 'path';
|
|
241
|
+
readonly COOKIE: 'cookie';
|
|
242
|
+
readonly QUERYSTRING: 'querystring';
|
|
243
|
+
};
|
|
244
|
+
export type OpenAPIParameterLocation = ObjectValues<typeof parameterLocation>;
|
|
245
|
+
export type OpenAPIParameterStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject';
|
|
246
|
+
export type OpenAPIRequestBody = {
|
|
247
|
+
$ref?: string;
|
|
248
|
+
description?: string | Node[] | Node;
|
|
249
|
+
required?: boolean;
|
|
250
|
+
content?: {
|
|
251
|
+
[mime: string]: OpenAPIMediaType;
|
|
252
|
+
};
|
|
253
|
+
'x-examples'?: {
|
|
254
|
+
[mime: string]: {
|
|
255
|
+
[name: string]: Referenced<OpenAPIExample>;
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
'x-example'?: {
|
|
259
|
+
[mime: string]: unknown;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
export type OpenAPIResponses = {
|
|
263
|
+
[code: string]: OpenAPIResponse;
|
|
264
|
+
};
|
|
265
|
+
export type OpenAPIResponse = {
|
|
266
|
+
description?: string | Node[] | Node;
|
|
267
|
+
headers?: {
|
|
268
|
+
[name: string]: Referenced<OpenAPIHeader>;
|
|
269
|
+
};
|
|
270
|
+
content?: {
|
|
271
|
+
[mime: string]: OpenAPIMediaType;
|
|
272
|
+
};
|
|
273
|
+
links?: {
|
|
274
|
+
[name: string]: Referenced<OpenAPILink>;
|
|
275
|
+
};
|
|
276
|
+
$ref?: string;
|
|
277
|
+
'x-examples'?: {
|
|
278
|
+
[mime: string]: {
|
|
279
|
+
[name: string]: Referenced<OpenAPIExample>;
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
'x-example'?: {
|
|
283
|
+
[mime: string]: unknown;
|
|
284
|
+
};
|
|
285
|
+
'x-summary'?: string;
|
|
286
|
+
};
|
|
287
|
+
export type OpenAPILink = {
|
|
288
|
+
$ref?: string;
|
|
289
|
+
};
|
|
290
|
+
export type OpenAPIHeader = Omit<OpenAPIParameter, 'in' | 'name'>;
|
|
291
|
+
export type OpenAPICallback = {
|
|
292
|
+
[name: string]: OpenAPIPath;
|
|
293
|
+
};
|
|
294
|
+
export type OpenAPIComponents = {
|
|
295
|
+
schemas?: {
|
|
296
|
+
[name: string]: Referenced<OpenAPISchema>;
|
|
297
|
+
};
|
|
298
|
+
responses?: {
|
|
299
|
+
[name: string]: Referenced<OpenAPIResponse>;
|
|
300
|
+
};
|
|
301
|
+
parameters?: {
|
|
302
|
+
[name: string]: Referenced<OpenAPIParameter>;
|
|
303
|
+
};
|
|
304
|
+
examples?: {
|
|
305
|
+
[name: string]: Referenced<OpenAPIExample>;
|
|
306
|
+
};
|
|
307
|
+
requestBodies?: {
|
|
308
|
+
[name: string]: Referenced<OpenAPIRequestBody>;
|
|
309
|
+
};
|
|
310
|
+
headers?: {
|
|
311
|
+
[name: string]: Referenced<OpenAPIHeader>;
|
|
312
|
+
};
|
|
313
|
+
securitySchemes?: {
|
|
314
|
+
[name: string]: Referenced<OpenAPISecurityScheme>;
|
|
315
|
+
};
|
|
316
|
+
links?: {
|
|
317
|
+
[name: string]: Referenced<OpenAPILink>;
|
|
318
|
+
};
|
|
319
|
+
callbacks?: {
|
|
320
|
+
[name: string]: Referenced<OpenAPICallback>;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
export type OpenAPISecurityRequirement = {
|
|
324
|
+
[name: string]: string[];
|
|
325
|
+
};
|
|
326
|
+
export type OpenAPISecurityScheme = {
|
|
327
|
+
type: Exclude<SecuritySchemeType, typeof securitySchemeType.MUTUAL_TLS>;
|
|
328
|
+
description?: string | Node[] | Node;
|
|
329
|
+
name?: string;
|
|
330
|
+
in?: SecuritySchemeIn;
|
|
331
|
+
scheme?: string;
|
|
332
|
+
bearerFormat: string;
|
|
333
|
+
'x-defaultClientId'?: string;
|
|
334
|
+
deprecated?: boolean;
|
|
335
|
+
oauth2MetadataUrl?: string;
|
|
336
|
+
flows: {
|
|
337
|
+
implicit?: {
|
|
338
|
+
refreshUrl?: string;
|
|
339
|
+
scopes: Record<string, string>;
|
|
340
|
+
authorizationUrl: string;
|
|
341
|
+
'x-defaultClientId'?: string;
|
|
342
|
+
};
|
|
343
|
+
deviceAuthorization?: {
|
|
344
|
+
deviceAuthorizationUrl: string;
|
|
345
|
+
scopes: Record<string, string>;
|
|
346
|
+
tokenUrl: string;
|
|
347
|
+
refreshUrl?: string;
|
|
348
|
+
'x-defaultClientId'?: string;
|
|
349
|
+
};
|
|
350
|
+
password?: {
|
|
351
|
+
refreshUrl?: string;
|
|
352
|
+
scopes: Record<string, string>;
|
|
353
|
+
tokenUrl: string;
|
|
354
|
+
'x-defaultClientId'?: string;
|
|
355
|
+
};
|
|
356
|
+
clientCredentials?: {
|
|
357
|
+
refreshUrl?: string;
|
|
358
|
+
scopes: Record<string, string>;
|
|
359
|
+
tokenUrl: string;
|
|
360
|
+
'x-defaultClientId'?: string;
|
|
361
|
+
};
|
|
362
|
+
authorizationCode?: {
|
|
363
|
+
refreshUrl?: string;
|
|
364
|
+
scopes: Record<string, string>;
|
|
365
|
+
authorizationUrl: string;
|
|
366
|
+
tokenUrl: string;
|
|
367
|
+
'x-defaultClientId'?: string;
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
openIdConnectUrl?: string;
|
|
371
|
+
};
|
|
372
|
+
export type OpenAPITag = {
|
|
373
|
+
name: string;
|
|
374
|
+
description?: string | Node[] | Node;
|
|
375
|
+
summary?: string;
|
|
376
|
+
externalDocs?: OpenAPIExternalDocumentation;
|
|
377
|
+
parent?: string;
|
|
378
|
+
kind?: 'badge' | 'audience' | 'nav';
|
|
379
|
+
'x-displayName'?: string;
|
|
380
|
+
'x-keywords'?: unknown;
|
|
381
|
+
};
|
|
382
|
+
export type OpenAPIExternalDocumentation = {
|
|
383
|
+
description?: string | Node[] | Node;
|
|
384
|
+
url: string;
|
|
385
|
+
};
|
|
386
|
+
export type OpenAPIContact = {
|
|
387
|
+
name?: string;
|
|
388
|
+
url?: string;
|
|
389
|
+
email?: string;
|
|
390
|
+
};
|
|
391
|
+
export type OpenAPILicense = {
|
|
392
|
+
name: string;
|
|
393
|
+
url?: string;
|
|
394
|
+
identifier?: string;
|
|
395
|
+
};
|
|
396
|
+
export type ParsedDocument = OpenAPIDefinition & {
|
|
397
|
+
swagger: unknown;
|
|
398
|
+
};
|
|
399
|
+
export type OpenAPIMcp = {
|
|
400
|
+
protocolVersion: string;
|
|
401
|
+
capabilities: McpCapabilities;
|
|
402
|
+
servers: OpenAPIServer[];
|
|
403
|
+
tools: McpTool[];
|
|
404
|
+
resources: McpResource[];
|
|
405
|
+
prompts: McpPrompt[];
|
|
406
|
+
};
|
|
407
|
+
export type McpCapabilities = {
|
|
408
|
+
[key: string]: boolean | {
|
|
409
|
+
listChanged?: boolean;
|
|
410
|
+
subscribe?: boolean;
|
|
411
|
+
[key: string]: unknown;
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
export type McpTool = {
|
|
415
|
+
name: string;
|
|
416
|
+
title?: string;
|
|
417
|
+
description?: string | Node[] | Node;
|
|
418
|
+
inputSchema: OpenAPISchema;
|
|
419
|
+
outputSchema?: OpenAPISchema;
|
|
420
|
+
security?: OpenAPISecurityRequirement[];
|
|
421
|
+
tags?: string[];
|
|
422
|
+
'x-badges'?: OpenAPIXBadges[];
|
|
423
|
+
};
|
|
424
|
+
export type McpResource = {
|
|
425
|
+
name: string;
|
|
426
|
+
title?: string;
|
|
427
|
+
description?: string | Node[] | Node;
|
|
428
|
+
uri: string;
|
|
429
|
+
mimeType: string;
|
|
430
|
+
blob?: string;
|
|
431
|
+
text?: string;
|
|
432
|
+
security?: OpenAPISecurityRequirement[];
|
|
433
|
+
tags?: string[];
|
|
434
|
+
'x-badges'?: OpenAPIXBadges[];
|
|
435
|
+
};
|
|
436
|
+
export type McpPrompt = {
|
|
437
|
+
name: string;
|
|
438
|
+
title?: string;
|
|
439
|
+
description: string | Node[] | Node;
|
|
440
|
+
arguments: McpPromptArgument[];
|
|
441
|
+
security?: OpenAPISecurityRequirement[];
|
|
442
|
+
tags?: string[];
|
|
443
|
+
'x-badges'?: OpenAPIXBadges[];
|
|
444
|
+
};
|
|
445
|
+
export type McpPromptArgument = {
|
|
446
|
+
name: string;
|
|
447
|
+
description: string | Node[] | Node;
|
|
448
|
+
required: boolean;
|
|
449
|
+
example?: string;
|
|
450
|
+
};
|
|
451
|
+
export type SecurityDetails = {
|
|
452
|
+
password?: string;
|
|
453
|
+
username?: string;
|
|
454
|
+
token?: {
|
|
455
|
+
token_type?: string;
|
|
456
|
+
access_token: string;
|
|
457
|
+
};
|
|
458
|
+
client_id?: string;
|
|
459
|
+
client_secret?: string;
|
|
460
|
+
scopes?: string;
|
|
461
|
+
};
|
|
462
|
+
export type RouterType = 'history' | 'memory' | 'hash';
|
|
463
|
+
export type OperationRequestValues = {
|
|
464
|
+
security?: Record<string, ThemeSecurityDetails>;
|
|
465
|
+
envVariables?: Record<string, string>;
|
|
466
|
+
body?: unknown;
|
|
467
|
+
serverRequestValues?: Record<string, {
|
|
468
|
+
headers?: Record<string, string>;
|
|
469
|
+
queryString?: Record<string, string>;
|
|
470
|
+
cookies?: Record<string, string>;
|
|
471
|
+
security?: Record<string, ThemeSecurityDetails>;
|
|
472
|
+
envVariables?: Record<string, string>;
|
|
473
|
+
body?: unknown;
|
|
474
|
+
}>;
|
|
475
|
+
};
|
|
476
|
+
export type OpenAPITagExtended = OpenAPITag & {
|
|
477
|
+
'x-traitTag'?: boolean;
|
|
478
|
+
'x-displayName'?: string;
|
|
479
|
+
parent?: string;
|
|
480
|
+
summary?: string;
|
|
481
|
+
kind?: string;
|
|
482
|
+
};
|
|
483
|
+
export type NormalizedCallbackOperation = {
|
|
484
|
+
httpVerb: string;
|
|
485
|
+
pathName: string;
|
|
486
|
+
summary?: string;
|
|
487
|
+
operationId?: string;
|
|
488
|
+
description?: string | Node[] | Node;
|
|
489
|
+
deprecated?: boolean;
|
|
490
|
+
requestBody?: Referenced<OpenAPIRequestBody>;
|
|
491
|
+
responses?: OpenAPIResponses;
|
|
492
|
+
security?: OpenAPISecurityRequirement[];
|
|
493
|
+
servers?: OpenAPIServer[];
|
|
494
|
+
parameters?: Array<Referenced<OpenAPIParameter>>;
|
|
495
|
+
externalDocs?: {
|
|
496
|
+
url: string;
|
|
497
|
+
description?: string | Node | Node[];
|
|
498
|
+
};
|
|
499
|
+
[key: string]: unknown;
|
|
500
|
+
};
|
|
501
|
+
export type NormalizedCallback = {
|
|
502
|
+
name: string;
|
|
503
|
+
url?: string;
|
|
504
|
+
operations?: NormalizedCallbackOperation[];
|
|
505
|
+
};
|
|
506
|
+
export type OperationInfo = {
|
|
507
|
+
pointer: string;
|
|
508
|
+
pathName: string;
|
|
509
|
+
httpVerb: string;
|
|
510
|
+
operationId?: string;
|
|
511
|
+
summary?: string;
|
|
512
|
+
description?: string | Node[] | Node;
|
|
513
|
+
deprecated?: boolean;
|
|
514
|
+
isWebhook: boolean;
|
|
515
|
+
isAdditionalOperation: boolean;
|
|
516
|
+
tags: string[];
|
|
517
|
+
parameters?: Array<Referenced<OpenAPIParameter>>;
|
|
518
|
+
requestBody?: Referenced<OpenAPIRequestBody>;
|
|
519
|
+
responses?: OpenAPIResponses;
|
|
520
|
+
servers?: OpenAPIServer[];
|
|
521
|
+
security?: OpenAPISecurityRequirement[];
|
|
522
|
+
callbacks?: NormalizedCallback[];
|
|
523
|
+
externalDocs?: ExternalDocsData;
|
|
524
|
+
'x-badges'?: OpenAPIXBadges[];
|
|
525
|
+
'x-codeSamples'?: OpenAPIXCodeSample[];
|
|
526
|
+
requestValues?: OperationRequestValues;
|
|
527
|
+
};
|
|
528
|
+
export type MarkdownHeading = {
|
|
529
|
+
id: string;
|
|
530
|
+
name: string;
|
|
531
|
+
level: number;
|
|
532
|
+
items: MarkdownHeading[];
|
|
533
|
+
ast: Node[];
|
|
534
|
+
};
|
|
535
|
+
export type TagData = {
|
|
536
|
+
tag: OpenAPITagExtended;
|
|
537
|
+
operations: OperationInfo[];
|
|
538
|
+
description?: string | Node[] | Node;
|
|
539
|
+
children: string[];
|
|
540
|
+
};
|
|
541
|
+
export type OpenApiBuildContext = {
|
|
542
|
+
document: OpenAPIDefinition;
|
|
543
|
+
options: ApiDocsOptions;
|
|
544
|
+
downloadUrls?: NormalizedDownloadUrl[];
|
|
545
|
+
basePath: string;
|
|
546
|
+
tagsMap: Map<string, TagData>;
|
|
547
|
+
collectedTagOrder: string[];
|
|
548
|
+
storeCtx: StoreContext;
|
|
549
|
+
badgeTags: OpenAPITag[];
|
|
550
|
+
processContent: boolean;
|
|
551
|
+
};
|
|
552
|
+
export type Language = {
|
|
553
|
+
key: string;
|
|
554
|
+
label: string;
|
|
555
|
+
lang: string;
|
|
556
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import type { LayoutVariant } from '@redocly/config';
|
|
2
|
+
import type { EditionAsyncApiConfig, EditionGraphQLConfig, EditionRedocConfig } from './edition-config.js';
|
|
3
|
+
import type { ConfigFunction, Node, Schema } from '@markdoc/markdoc';
|
|
4
|
+
import type { MarkdocTagSchema } from '@redocly/theme/markdoc/tags/types';
|
|
5
|
+
import type { ConfigureRequestValues, ConfigureServerRequestValues } from '@redocly/theme/ext/configure';
|
|
6
|
+
import type { ComponentType } from 'react';
|
|
7
|
+
import type { ApiSpecType, SidebarLogo, Referenced } from './common.js';
|
|
8
|
+
import type { ProtocolVariant } from './asyncapi.js';
|
|
9
|
+
import type { GraphQLOptions } from './graphql.js';
|
|
10
|
+
import type { Events } from './events.js';
|
|
11
|
+
import type { CodeSamplesConfig } from './code-samples-config.js';
|
|
12
|
+
import type { OpenAPIOperation as OpenAPIOperationType, OpenAPIParameter, OpenAPIServer, OpenAPITag } from './openapi.js';
|
|
13
|
+
export type * from './code-samples-config.js';
|
|
14
|
+
export type Operation = {
|
|
15
|
+
id: string;
|
|
16
|
+
path: string;
|
|
17
|
+
httpVerb: string;
|
|
18
|
+
name: string;
|
|
19
|
+
};
|
|
20
|
+
export type DownloadUrl = {
|
|
21
|
+
title?: string;
|
|
22
|
+
url: string;
|
|
23
|
+
};
|
|
24
|
+
export type NormalizedDownloadUrl = DownloadUrl & {
|
|
25
|
+
title: string;
|
|
26
|
+
};
|
|
27
|
+
export type ApiDocsMetadata = {
|
|
28
|
+
title?: string;
|
|
29
|
+
description?: string | Node[] | Node;
|
|
30
|
+
summary?: string;
|
|
31
|
+
version?: string;
|
|
32
|
+
[key: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
export type MarkdocOptions = {
|
|
35
|
+
tags: Record<string, MarkdocTagSchema>;
|
|
36
|
+
nodes: Record<string, Schema>;
|
|
37
|
+
components: Record<string, ComponentType<any>>;
|
|
38
|
+
variables?: Record<string, unknown>;
|
|
39
|
+
partials?: Record<string, unknown>;
|
|
40
|
+
functions?: Record<string, ConfigFunction>;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Turns a raw markdown string into an AST. api-docs core does not bundle a markdown engine — the
|
|
44
|
+
* host supplies the parser (the standalone build supplies a Markdoc-based one; see
|
|
45
|
+
* `markdocParser`). It is the single seam where markdown text becomes an AST.
|
|
46
|
+
*/
|
|
47
|
+
export type MarkdownParser = (markdown: string, sanitizeOptions?: {
|
|
48
|
+
sanitize?: ApiDocsOptions['sanitize'];
|
|
49
|
+
}) => Node | Node[] | undefined;
|
|
50
|
+
export type ApiDocsOptions = {
|
|
51
|
+
schemaDefinitionsTagName?: string;
|
|
52
|
+
jsonSamplesExpandLevel: number;
|
|
53
|
+
generatedSamplesMaxDepth: number;
|
|
54
|
+
hideDownloadButtons: boolean;
|
|
55
|
+
hideSchemaTitles: boolean;
|
|
56
|
+
hideSchemaPattern: boolean;
|
|
57
|
+
maxDisplayedEnumValues: number;
|
|
58
|
+
onlyRequiredInSamples: boolean;
|
|
59
|
+
onDeepLinkClick: ((link: string) => void) | undefined | null;
|
|
60
|
+
schemasExpansionLevel?: number;
|
|
61
|
+
sortRequiredPropsFirst: boolean;
|
|
62
|
+
sanitize: boolean;
|
|
63
|
+
showExtensions: string[] | boolean;
|
|
64
|
+
ignoreNamedSchemas: Set<string>;
|
|
65
|
+
markdownParser: MarkdownParser;
|
|
66
|
+
codeSamples?: CodeSamplesConfig;
|
|
67
|
+
events: Events;
|
|
68
|
+
hidePropertiesPrefix: boolean;
|
|
69
|
+
dynamicRequestValues?: ConfigureRequestValues | ConfigureServerRequestValues;
|
|
70
|
+
protocol?: ProtocolVariant;
|
|
71
|
+
scrollYOffset: () => number;
|
|
72
|
+
hideLoading: boolean;
|
|
73
|
+
skipBundle: boolean;
|
|
74
|
+
basePath: string;
|
|
75
|
+
specType: ApiSpecType;
|
|
76
|
+
metadata: ApiDocsMetadata;
|
|
77
|
+
downloadUrls?: NormalizedDownloadUrl[];
|
|
78
|
+
layout: LayoutVariant;
|
|
79
|
+
apiLogo?: SidebarLogo;
|
|
80
|
+
jsonSamplesDepth: number;
|
|
81
|
+
samplesMaxInlineArgs: number;
|
|
82
|
+
fieldExpandLevel: number;
|
|
83
|
+
} & GraphQLOptions;
|
|
84
|
+
export type RawApiDocsOptions = EditionRedocConfig & EditionAsyncApiConfig & EditionGraphQLConfig & {
|
|
85
|
+
specType: ApiSpecType;
|
|
86
|
+
markdownParser: MarkdownParser;
|
|
87
|
+
basePath?: string;
|
|
88
|
+
hideSchemaPattern?: boolean;
|
|
89
|
+
disableTelemetry?: boolean;
|
|
90
|
+
requiredPropsFirst?: boolean;
|
|
91
|
+
protocol?: ProtocolVariant;
|
|
92
|
+
dynamicRequestValues?: ConfigureRequestValues | ConfigureServerRequestValues;
|
|
93
|
+
layout?: EditionRedocConfig['layout'] | EditionAsyncApiConfig['layout'] | EditionGraphQLConfig['layout'];
|
|
94
|
+
};
|
|
95
|
+
export type Normalized<T> = {
|
|
96
|
+
[P in keyof T]-?: T[P];
|
|
97
|
+
};
|
|
98
|
+
export type ExternalLink = ExternalLinkLink | ExternalLinkSeparator;
|
|
99
|
+
export type ExternalLinkLink = {
|
|
100
|
+
label: string;
|
|
101
|
+
link: string;
|
|
102
|
+
target?: string;
|
|
103
|
+
separatorLine?: boolean;
|
|
104
|
+
};
|
|
105
|
+
export type ExternalLinkSeparator = {
|
|
106
|
+
separator?: string;
|
|
107
|
+
separatorLine?: boolean;
|
|
108
|
+
};
|
|
109
|
+
export type MenuItemGroupType = 'group' | 'tag' | 'section' | 'schema' | 'tool' | 'rsrc' | 'prompt';
|
|
110
|
+
export type MenuItemType = MenuItemGroupType | 'operation';
|
|
111
|
+
export type TagInfo = OpenAPITag & {
|
|
112
|
+
operations: ExtendedOpenAPIOperation[];
|
|
113
|
+
used?: boolean;
|
|
114
|
+
schemaRendersInTag?: boolean;
|
|
115
|
+
isSchema?: boolean;
|
|
116
|
+
};
|
|
117
|
+
export type ExtendedOpenAPIOperation = {
|
|
118
|
+
pointer: string;
|
|
119
|
+
pathName: string;
|
|
120
|
+
httpVerb: string;
|
|
121
|
+
pathParameters: Array<Referenced<OpenAPIParameter>>;
|
|
122
|
+
pathServers: Array<OpenAPIServer> | undefined;
|
|
123
|
+
isWebhook: boolean;
|
|
124
|
+
isAdditionalOperation: boolean;
|
|
125
|
+
defaultSampleName?: string | false;
|
|
126
|
+
keywords?: unknown;
|
|
127
|
+
} & OpenAPIOperationType;
|
|
128
|
+
export type TagsInfoMap = Record<string, TagInfo>;
|
|
129
|
+
export type TagGroup = {
|
|
130
|
+
name: string;
|
|
131
|
+
tags: string[];
|
|
132
|
+
};
|