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,15 @@
|
|
|
1
|
+
import type { GraphqlItemVariant, TypeGroupFilter } from '../../../types/graphql.js';
|
|
2
|
+
import type { ApiItem } from '../../../types/store.js';
|
|
3
|
+
type CreateApiItemParams<T> = {
|
|
4
|
+
name: string;
|
|
5
|
+
variant: GraphqlItemVariant;
|
|
6
|
+
processedItems?: Set<string>;
|
|
7
|
+
filter?: TypeGroupFilter;
|
|
8
|
+
menuCommonFilter?: TypeGroupFilter;
|
|
9
|
+
label?: string;
|
|
10
|
+
deprecated?: boolean;
|
|
11
|
+
source: T;
|
|
12
|
+
parentPath?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function createApiItem<T>(params: CreateApiItemParams<T>): ApiItem | null;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GraphQLSchema } from 'graphql';
|
|
2
|
+
import type { Badge } from '../../../types/common.js';
|
|
3
|
+
import type { GraphqlItemVariant } from '../../../types/graphql.js';
|
|
4
|
+
export declare function getBadges(schema: GraphQLSchema, item: string, typeGroup?: GraphqlItemVariant): Badge[] | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MENU_SLASH_DELIMITED_REGEX: RegExp;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GraphQLSchema } from 'graphql';
|
|
2
|
+
import type { GraphqlItemVariant } from '../../../types/graphql.js';
|
|
3
|
+
import type { ParseMarkdownOptions } from '../../utils/parseMarkdown.js';
|
|
4
|
+
export declare function getSummary(schema: GraphQLSchema, item: string, markdownOptions: ParseMarkdownOptions, typeGroup?: GraphqlItemVariant): string | undefined;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { SchemaEntry, ExampleEntry, SecuritySchemeEntry, StoreContext } from '../types/store.js';
|
|
2
|
+
import type { OpenAPIRef, Referenced } from '../types/common.js';
|
|
3
|
+
import type { OpenAPIMediaType, OpenAPIExample } from '../types/openapi.js';
|
|
4
|
+
import { isRecord } from '../utils/is-record.js';
|
|
5
|
+
export { isRecord };
|
|
6
|
+
export declare function resetStoreCounters(): void;
|
|
7
|
+
export declare function stableStringify(data: unknown, seen?: Set<unknown>): string;
|
|
8
|
+
export declare function registerSchema(schemaStore: Record<string, SchemaEntry>, hashIndex: Record<string, string>, entry: Omit<SchemaEntry, 'id'> & {
|
|
9
|
+
id?: string;
|
|
10
|
+
}): string;
|
|
11
|
+
/** Accepts a raw markdown string or a host-pre-parsed AST node; drops anything else. */
|
|
12
|
+
export declare function pickRenderableDescription(value: unknown): ExampleEntry['description'];
|
|
13
|
+
export declare function registerExample(exampleStore: Record<string, ExampleEntry>, entry: Omit<ExampleEntry, 'id'> & {
|
|
14
|
+
id?: string;
|
|
15
|
+
}): string;
|
|
16
|
+
export declare function registerSecurityScheme(securitySchemeStore: Record<string, SecuritySchemeEntry>, entry: SecuritySchemeEntry): string;
|
|
17
|
+
export declare function createStoreContext(document: Record<string, unknown>): StoreContext;
|
|
18
|
+
/**
|
|
19
|
+
* Safely coerce a value to Record<string, unknown>.
|
|
20
|
+
* Returns an empty object if the value is not a valid record.
|
|
21
|
+
*/
|
|
22
|
+
export declare function toRecord(value: unknown): Record<string, unknown>;
|
|
23
|
+
export declare function resolveRef<T>(spec: Record<string, unknown>, value: Referenced<T>, ignoreNamedSchemas?: Set<string>): T | undefined;
|
|
24
|
+
export type MediaTypesMap = {
|
|
25
|
+
[mime: string]: OpenAPIMediaType;
|
|
26
|
+
};
|
|
27
|
+
export declare function isOpenAPIRef(value: unknown): value is OpenAPIRef;
|
|
28
|
+
type LegacyExampleHost = {
|
|
29
|
+
content?: Referenced<MediaTypesMap>;
|
|
30
|
+
'x-examples'?: {
|
|
31
|
+
[mime: string]: {
|
|
32
|
+
[name: string]: Referenced<OpenAPIExample>;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
'x-example'?: {
|
|
36
|
+
[mime: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare function resolveContent(spec: Record<string, unknown>, info: LegacyExampleHost | null | undefined, ignoreNamedSchemas?: Set<string>): MediaTypesMap | undefined;
|
|
40
|
+
export declare function resolveJsonPointer(spec: Record<string, unknown>, ref: string): Record<string, unknown> | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { OpenAPIDefinition, OpenAPICallback, OpenApiBuildContext as BuildContext, NormalizedCallback } from '../../../types/openapi.js';
|
|
2
|
+
import type { Referenced } from '../../../types/common.js';
|
|
3
|
+
import type { AdapterBuildContextInput, StoreContext } from '../../../types/store.js';
|
|
4
|
+
type BuildContextWithDocument = AdapterBuildContextInput & {
|
|
5
|
+
document: OpenAPIDefinition;
|
|
6
|
+
storeCtx: StoreContext;
|
|
7
|
+
processContent?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function createBuildContext({ document, options, basePath, storeCtx, processContent }: BuildContextWithDocument): BuildContext;
|
|
10
|
+
export declare function normalizeCallbacks(callbacks: {
|
|
11
|
+
[name: string]: Referenced<OpenAPICallback>;
|
|
12
|
+
} | undefined, document: Record<string, unknown>, ignoreNamedSchemas?: Set<string>): NormalizedCallback[] | undefined;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { OperationInfo } from '../../types/openapi.js';
|
|
2
|
+
import type { StoreContext } from '../../types/store.js';
|
|
3
|
+
import type { CodeSampleSource } from '../../services/code-samples/index.js';
|
|
4
|
+
export declare function buildCodeSampleSource(operationInfo: OperationInfo, storeCtx: StoreContext, ignoreNamedSchemas?: Set<string>, isWebhook?: boolean, href?: string): CodeSampleSource;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ConfigureRequestValues, ConfigureServerRequestValues } from '@redocly/theme/ext/configure';
|
|
2
|
+
import type { OperationInfo, OpenAPIServer } from '../../../types/openapi.js';
|
|
3
|
+
export declare function applyRequestValuesToOperationInfo(operationInfo: OperationInfo, requestValues: ConfigureRequestValues | ConfigureServerRequestValues, mergedServers?: OpenAPIServer[]): void;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ConfigureRequestValues, ConfigureServerRequestValues, SecurityDetails } from '@redocly/theme/ext/configure';
|
|
2
|
+
import type { OpenAPIParameterLocation, OpenAPIServer } from '../../../types/openapi.js';
|
|
3
|
+
import type { SecuritySchemeCredentials } from '../../../services/code-samples/source.js';
|
|
4
|
+
export declare function getParamValueMap(loc: OpenAPIParameterLocation, source: ConfigureRequestValues): Record<string, string> | undefined;
|
|
5
|
+
export declare function mergeBodyValue(base: unknown, overlay: unknown): unknown;
|
|
6
|
+
export type SchemeForCredentials = {
|
|
7
|
+
id: string;
|
|
8
|
+
type?: string;
|
|
9
|
+
scheme?: string;
|
|
10
|
+
scopes?: string[];
|
|
11
|
+
serverValues?: Record<string, SecuritySchemeCredentials>;
|
|
12
|
+
};
|
|
13
|
+
export declare function updateObjectProperties(original: unknown, updates: unknown): unknown;
|
|
14
|
+
export declare function isDirectRequestValues(value: ConfigureRequestValues | ConfigureServerRequestValues | undefined | null): value is ConfigureRequestValues;
|
|
15
|
+
export declare function getEffectiveRequestValues(requestValues: ConfigureRequestValues | ConfigureServerRequestValues | undefined, servers: readonly {
|
|
16
|
+
url: string;
|
|
17
|
+
}[] | undefined): ConfigureRequestValues | undefined;
|
|
18
|
+
export declare function createSecurityUpdates(scheme: SchemeForCredentials, securityValues: Record<string, SecurityDetails>): SecuritySchemeCredentials;
|
|
19
|
+
export declare function mergeSecurityIntoScheme<S extends SchemeForCredentials>(scheme: S, securityValues: Record<string, SecurityDetails>): S & SecuritySchemeCredentials;
|
|
20
|
+
export declare function mergeSecurityIntoScheme<S extends SchemeForCredentials>(scheme: S, securityValues: Record<string, SecurityDetails>, serverUrl: string): S & {
|
|
21
|
+
serverValues: Record<string, SecuritySchemeCredentials>;
|
|
22
|
+
};
|
|
23
|
+
export declare function applyServerVariableDefaults(servers: OpenAPIServer[] | undefined, serverVariables: Record<string, string> | undefined, targetServerUrl?: string): void;
|
|
24
|
+
/** Immutable variant of {@link applyServerVariableDefaults} for runtime callers that must not mutate. */
|
|
25
|
+
export declare function withServerVariableDefaults<T extends {
|
|
26
|
+
url: string;
|
|
27
|
+
variables?: Record<string, {
|
|
28
|
+
default?: string;
|
|
29
|
+
}>;
|
|
30
|
+
}>(servers: readonly T[], serverVariables: Record<string, string> | undefined, targetServerUrl?: string): T[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ConfigureRequestValues, type ConfigureServerRequestValues } from '@redocly/theme/ext/configure';
|
|
2
|
+
import type { OpenAPIServer } from '@redocly/theme/core/types';
|
|
3
|
+
import type { OperationInfo } from '../../../types/openapi.js';
|
|
4
|
+
export type ResolveRequestValuesParams = {
|
|
5
|
+
operationInfo: OperationInfo;
|
|
6
|
+
info: Record<string, unknown>;
|
|
7
|
+
servers: OpenAPIServer[];
|
|
8
|
+
basePath: string;
|
|
9
|
+
dynamicRequestValues?: ConfigureRequestValues | ConfigureServerRequestValues;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Builds configure context, calls the ejected configure() function, and returns
|
|
13
|
+
* merged request values: dynamicRequestValues ?? configResult.requestValues ?? {}.
|
|
14
|
+
*/
|
|
15
|
+
export declare function resolveRequestValues(params: ResolveRequestValuesParams): ConfigureRequestValues | ConfigureServerRequestValues;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const SUPPORTED_MCP_TYPES: readonly ['tools', 'resources', 'prompts'];
|
|
2
|
+
export type McpCollectionType = (typeof SUPPORTED_MCP_TYPES)[number];
|
|
3
|
+
export declare const MCP_SERVER_EXPERIMENTAL_CAPABILITIES = "experimental";
|
|
4
|
+
export declare const PAGE_ACTIONS_MCP: ("mcp-cursor" | "mcp-vscode")[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Node } from '@markdoc/markdoc';
|
|
2
|
+
import type { ApiItemContent } from '../../../types/content.js';
|
|
3
|
+
import type { BreadcrumbItem, GroupItem } from '../../../types/store.js';
|
|
4
|
+
import type { OpenAPITagExtended, OperationInfo } from '../../../types/openapi.js';
|
|
5
|
+
import type { ParseMarkdownOptions } from '../../utils/parseMarkdown.js';
|
|
6
|
+
import type { McpGroupItems } from '../items/mcp/item.js';
|
|
7
|
+
export type ChildTagInfo = {
|
|
8
|
+
displayName: string;
|
|
9
|
+
summary?: string;
|
|
10
|
+
slug: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function buildGroupContent({ tag, tagName, headerLabel, description, operations, schemasItems, mcpItems, tagSlug, basePath, breadcrumbs, childTags, markdownOptions }: {
|
|
13
|
+
tag: OpenAPITagExtended;
|
|
14
|
+
tagName: string;
|
|
15
|
+
headerLabel?: string;
|
|
16
|
+
description?: string | Node[] | Node;
|
|
17
|
+
operations: OperationInfo[];
|
|
18
|
+
schemasItems?: GroupItem[];
|
|
19
|
+
mcpItems?: McpGroupItems;
|
|
20
|
+
tagSlug: string;
|
|
21
|
+
basePath: string;
|
|
22
|
+
breadcrumbs?: BreadcrumbItem[];
|
|
23
|
+
childTags?: ChildTagInfo[];
|
|
24
|
+
markdownOptions: ParseMarkdownOptions;
|
|
25
|
+
}): ApiItemContent;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ApiItem } from '../../../types/store.js';
|
|
2
|
+
import type { OpenAPIDefinition } from '../../../types/openapi.js';
|
|
3
|
+
export declare function addTagItems(document: OpenAPIDefinition, result: ApiItem[]): void;
|
|
4
|
+
export declare function processTagGroups(xTagGroups: Array<{
|
|
5
|
+
name: string;
|
|
6
|
+
tags: string[];
|
|
7
|
+
}>, result: ApiItem[]): void;
|
|
8
|
+
export declare function processRootTags(tagOrder: string[], childTagNames: Set<string>, result: ApiItem[]): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ApiDocAdapterProps, ApiItem, ApiStore } from '../../types/store.js';
|
|
2
|
+
import type { OpenAPIDefinition } from '../../types/openapi.js';
|
|
3
|
+
import type { ApiDocsOptions } from '../../types/options.js';
|
|
4
|
+
export type { OpenApiBuildContext as BuildContext, TagData } from '../../types/openapi.js';
|
|
5
|
+
export declare function processOpenApiDocument({ document, basePath, options, processContent }: ApiDocAdapterProps & {
|
|
6
|
+
document: OpenAPIDefinition;
|
|
7
|
+
options: ApiDocsOptions;
|
|
8
|
+
processContent?: boolean;
|
|
9
|
+
}): Promise<{
|
|
10
|
+
items: ApiItem[];
|
|
11
|
+
store: ApiStore;
|
|
12
|
+
}>;
|
|
13
|
+
export declare function buildOpenApiItems(): ApiItem[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ApiItemContent } from '../../../../types/content.js';
|
|
2
|
+
import type { ApiDocsOptions } from '../../../../types/options.js';
|
|
3
|
+
type McpItemType = 'tool' | 'rsrc' | 'prompt';
|
|
4
|
+
export declare function buildMcpItemContent(mcpType: McpItemType, name: string, id: string, title: string, options: ApiDocsOptions): ApiItemContent;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ApiItem, GroupItem } from '../../../../types/store.js';
|
|
2
|
+
import { type McpCollectionType } from '../../constants.js';
|
|
3
|
+
export declare function addMcpItems({ tagName, tagSlug, result, groupItems }: {
|
|
4
|
+
tagName: string;
|
|
5
|
+
tagSlug: string;
|
|
6
|
+
result: ApiItem[];
|
|
7
|
+
groupItems?: McpGroupItems;
|
|
8
|
+
}): void;
|
|
9
|
+
export type McpGroupItems = Record<McpCollectionType, GroupItem[]>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ApiItemContent } from '../../../../types/content.js';
|
|
2
|
+
import type { OperationInfo } from '../../../../types/openapi.js';
|
|
3
|
+
/**
|
|
4
|
+
* Callback ids in the legacy openapi-docs shape, `<name>/<verb>`, so links shared from it
|
|
5
|
+
* still resolve. One entry is emitted per url expression, so that pair can repeat within an
|
|
6
|
+
* operation — later duplicates take a `~<n>` suffix, which legacy lacked and collided on.
|
|
7
|
+
*
|
|
8
|
+
* The separator is deliberately not `/`: an id must never be a path-segment prefix of a
|
|
9
|
+
* sibling's, or hash matching would treat `<name>/<verb>` as also naming `<name>/<verb>~1`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function createCallbackIdFactory(): (name: string, httpVerb: string) => string;
|
|
12
|
+
export declare function buildItemContent(operationInfo: OperationInfo, pageSlug: string): ApiItemContent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ApiItem } from '../../../../types/store.js';
|
|
2
|
+
import type { OperationInfo } from '../../../../types/openapi.js';
|
|
3
|
+
import { type RbacScope } from '../../../rbac.js';
|
|
4
|
+
export declare function addOperationItems({ operations, result, basePath: basePathOverride, parentRbac }: {
|
|
5
|
+
operations: OperationInfo[];
|
|
6
|
+
result: ApiItem[];
|
|
7
|
+
basePath?: string;
|
|
8
|
+
parentRbac?: RbacScope;
|
|
9
|
+
}): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Node } from '@markdoc/markdoc';
|
|
2
|
+
import type { ContentNode, ApiItemContent } from '../../../../types/content.js';
|
|
3
|
+
import type { OpenAPIDefinition } from '../../../../types/openapi.js';
|
|
4
|
+
import type { ApiDocsOptions, NormalizedDownloadUrl } from '../../../../types/options.js';
|
|
5
|
+
type OverviewContentOptions = {
|
|
6
|
+
downloadUrls?: NormalizedDownloadUrl[];
|
|
7
|
+
basePath: string;
|
|
8
|
+
sanitize: ApiDocsOptions['sanitize'];
|
|
9
|
+
markdownParser: ApiDocsOptions['markdownParser'];
|
|
10
|
+
} & Partial<ApiDocsOptions>;
|
|
11
|
+
export declare function buildOverviewContent({ document, description, sectionChildren, options }: {
|
|
12
|
+
document: OpenAPIDefinition;
|
|
13
|
+
description: string | Node[] | undefined;
|
|
14
|
+
sectionChildren: ContentNode[];
|
|
15
|
+
options: OverviewContentOptions;
|
|
16
|
+
}): ApiItemContent;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ApiItemContent } from '../../../../types/content.js';
|
|
2
|
+
import type { ApiDocsOptions } from '../../../../types/options.js';
|
|
3
|
+
export declare function buildSchemaDefinitionContent(schemaName: string, title: string | undefined, options: ApiDocsOptions): ApiItemContent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ApiItem, GroupItem } from '../../../../types/store.js';
|
|
2
|
+
import type { OpenAPIDefinition } from '../../../../types/openapi.js';
|
|
3
|
+
export declare function getSchemaNamesForTag(tagName: string, document: OpenAPIDefinition, schemaDefinitionsTagName: string | undefined): string[];
|
|
4
|
+
export declare function addSchemaDefinitionItems({ tagName, tagSlug, result, groupItems }: {
|
|
5
|
+
tagName: string;
|
|
6
|
+
tagSlug: string;
|
|
7
|
+
result: ApiItem[];
|
|
8
|
+
groupItems?: GroupItem[];
|
|
9
|
+
}): void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ApiStore, StoreContext } from '../../types/store.js';
|
|
2
|
+
import type { OpenAPIDefinition } from '../../types/openapi.js';
|
|
3
|
+
import type { ApiDocsOptions } from '../../types/options.js';
|
|
4
|
+
export declare function populateOpenApiStore(document: OpenAPIDefinition, storeCtx: StoreContext, options: ApiDocsOptions): ApiStore;
|
|
@@ -11,7 +11,7 @@ export declare class JsonPointer {
|
|
|
11
11
|
* // returns foo
|
|
12
12
|
* JsonPointerHelper.baseName('/path/foo/subpath', 2)
|
|
13
13
|
*/
|
|
14
|
-
static baseName(pointer
|
|
14
|
+
static baseName(pointer?: string, level?: number): string;
|
|
15
15
|
/**
|
|
16
16
|
* returns dirname of pointer
|
|
17
17
|
* if level > 1 returns corresponding dirname in the hierarchy
|
|
@@ -21,7 +21,7 @@ export declare class JsonPointer {
|
|
|
21
21
|
* // returns /path
|
|
22
22
|
* JsonPointerHelper.dirName('/path/foo/subpath', 2)
|
|
23
23
|
*/
|
|
24
|
-
static dirName(pointer:
|
|
24
|
+
static dirName(pointer: string, level?: number): string;
|
|
25
25
|
/**
|
|
26
26
|
* returns relative path tokens
|
|
27
27
|
* @example
|
|
@@ -30,12 +30,12 @@ export declare class JsonPointer {
|
|
|
30
30
|
* // returns ['foo', 'subpath']
|
|
31
31
|
* JsonPointerHelper.relative('/path', '/path/foo/subpath')
|
|
32
32
|
*/
|
|
33
|
-
static relative(from:
|
|
33
|
+
static relative(from: string, to: string): string[];
|
|
34
34
|
/**
|
|
35
35
|
* overridden JsonPointer original parse to take care of prefixing '#' symbol
|
|
36
36
|
* that is not valid JsonPointer
|
|
37
37
|
*/
|
|
38
|
-
static parse(pointer
|
|
38
|
+
static parse(pointer?: string): string[];
|
|
39
39
|
/**
|
|
40
40
|
* Creates a JSON pointer path, by joining one or more tokens to a base path.
|
|
41
41
|
*
|
|
@@ -43,8 +43,8 @@ export declare class JsonPointer {
|
|
|
43
43
|
* @param {string|string[]} tokens - The token(s) to append (e.g. ["name", "first"])
|
|
44
44
|
* @returns {string}
|
|
45
45
|
*/
|
|
46
|
-
static join(base:
|
|
47
|
-
static get(object:
|
|
46
|
+
static join(base: string, tokens: string | string[]): string;
|
|
47
|
+
static get<T>(object: GenericObject, pointer: string): T;
|
|
48
48
|
static compile(tokens: string[]): string;
|
|
49
49
|
static escape(pointer: string): string;
|
|
50
50
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function applyIgnoreNamedSchemasDeep(value: unknown, ignoreNamedSchemas?: Set<string>): unknown;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare function stripTrailingSlash(path: string): string;
|
|
2
|
+
export declare function isNumeric(value: unknown): value is number;
|
|
3
|
+
export declare function isAbsoluteUrl(url: string): boolean;
|
|
4
|
+
/**
|
|
5
|
+
* simple resolve URL which doesn't break on strings with url fragments
|
|
6
|
+
* e.g. resolveUrl('http://test.com:{port}', 'path') results in http://test.com:{port}/path
|
|
7
|
+
*/
|
|
8
|
+
export declare function resolveUrl(url: string, to: string): string;
|
|
9
|
+
export declare function titleize(text: string): string;
|
|
10
|
+
export declare function removeQueryStringAndHash(serverUrl: string): string;
|
|
11
|
+
export declare function escapeHTMLAttrChars(str: string): string;
|
|
12
|
+
export declare function sanitizeItemId(id: string): string;
|
|
13
|
+
export declare function get<T = unknown>(object: GenericObject | undefined, path: string | Array<string>, defval?: T): T | unknown;
|
|
14
|
+
export declare function getDefinitionName(pointer?: string): string | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Operation servers win when non-empty; an empty array falls through to the
|
|
2
|
+
* document servers (see the empty-array test — a `??` fallback would not). */
|
|
3
|
+
export declare function pickOperationServers<T>(operationServers: T[] | undefined, documentServers: T[] | undefined): T[];
|
|
4
|
+
/** Strips servers flagged as mock servers. Returns the same reference when
|
|
5
|
+
* nothing is flagged. */
|
|
6
|
+
export declare function excludeMockServers<T extends {
|
|
7
|
+
isMockServer?: boolean;
|
|
8
|
+
}>(servers: T[]): T[];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { OperationInfo, OpenAPIXBadges } from '../../../types/openapi.js';
|
|
2
|
+
import type { SeoData } from '../../../types/common.js';
|
|
3
|
+
import type { ParseMarkdownOptions } from '../../utils/parseMarkdown.js';
|
|
4
|
+
type OperationData = {
|
|
5
|
+
slug: string;
|
|
6
|
+
label: string;
|
|
7
|
+
badges?: OpenAPIXBadges[];
|
|
8
|
+
deprecated: boolean;
|
|
9
|
+
isAdditionalOperation?: boolean;
|
|
10
|
+
httpVerb: string;
|
|
11
|
+
httpPath: string;
|
|
12
|
+
isWebhook: boolean;
|
|
13
|
+
seo?: SeoData;
|
|
14
|
+
};
|
|
15
|
+
export declare function getOperationData(operation: OperationInfo, basePath: string): OperationData;
|
|
16
|
+
export declare function getOperationSummary(operation: OperationInfo, markdownOptions: ParseMarkdownOptions): string | undefined;
|
|
17
|
+
type OperationColorProps = {
|
|
18
|
+
deprecated?: boolean;
|
|
19
|
+
isAdditionalOperation?: boolean;
|
|
20
|
+
httpVerb: string;
|
|
21
|
+
};
|
|
22
|
+
export declare function getOperationColor({ deprecated, isAdditionalOperation, httpVerb }: OperationColorProps): string;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type RbacScope = Record<string, string>;
|
|
2
|
+
export declare function readRbacScope(_source: unknown): RbacScope | undefined;
|
|
3
|
+
export declare function hasRbacScope(_source: unknown): boolean;
|
|
4
|
+
export type RbacProp = Record<never, never>;
|
|
5
|
+
export declare function rbacProp(_scope: RbacScope | undefined): RbacProp;
|
|
6
|
+
export declare function isRbacKey(_key: string): boolean;
|
|
7
|
+
export declare function splitRbacSection<T>(map: Record<string, T> | undefined): {
|
|
8
|
+
sectionRbac: RbacScope | undefined;
|
|
9
|
+
entries: [string, T][];
|
|
10
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* True when a description string contains no markdown/markdoc/HTML syntax, so parsing it would
|
|
3
|
+
* only wrap it in a paragraph. Such strings can stay plain in the items/store JSON (an AST is
|
|
4
|
+
* ~10x the raw size) and render as-is on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare function isPlainText(value: string): boolean;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { Node } from '@markdoc/markdoc';
|
|
2
|
+
import type { ContentNode } from '../../types/content.js';
|
|
3
|
+
import type { ApiItem } from '../../types/store.js';
|
|
4
|
+
import type { ApiDocsOptions } from '../../types/options.js';
|
|
5
|
+
import type { MarkdownHeading } from '../../types/openapi.js';
|
|
6
|
+
import type { ParseMarkdownOptions } from './parseMarkdown.js';
|
|
7
|
+
export type { MarkdownHeading };
|
|
8
|
+
export type MarkdownSanitizeOptions = {
|
|
9
|
+
sanitize?: ApiDocsOptions['sanitize'];
|
|
10
|
+
};
|
|
11
|
+
export type DescriptionSegment = {
|
|
12
|
+
kind: 'markdoc';
|
|
13
|
+
node: ContentNode;
|
|
14
|
+
} | {
|
|
15
|
+
kind: 'schemaDefinition';
|
|
16
|
+
node: ContentNode;
|
|
17
|
+
};
|
|
18
|
+
type ExtractDescriptionSegmentsOptions = {
|
|
19
|
+
sliceAtFirstHeading?: boolean;
|
|
20
|
+
};
|
|
21
|
+
export declare function extractContentUntilFirstHeading(ast: Node | Node[] | string | undefined, options?: ParseMarkdownOptions): Node[] | string | undefined;
|
|
22
|
+
export declare function extractDescriptionSegments(ast: Node | Node[] | string | undefined, options?: ParseMarkdownOptions, { sliceAtFirstHeading }?: ExtractDescriptionSegmentsOptions): DescriptionSegment[];
|
|
23
|
+
export declare function resolveMarkdocHeadingDeepSuffix(id: string, operationId: string, deepLinkSuffix?: string): string;
|
|
24
|
+
export declare const HEADING_SCOPE_VARIABLE = "$$apiDocsHeadingScope";
|
|
25
|
+
export type HeadingScope = {
|
|
26
|
+
operationId: string;
|
|
27
|
+
deepLinkSuffix?: string;
|
|
28
|
+
};
|
|
29
|
+
/** Scope of a partial outside any `#` section of the overview: the ids inline headings get. */
|
|
30
|
+
export declare const OVERVIEW_ROOT_SCOPE: HeadingScope;
|
|
31
|
+
export declare function scopedHeadingAttributes(relativeId: string, { operationId, deepLinkSuffix }: HeadingScope): {
|
|
32
|
+
id: string;
|
|
33
|
+
deepLinkHash: string;
|
|
34
|
+
};
|
|
35
|
+
export declare function resolveMarkdocHeadingIds(ast: Node | Node[] | string, operationId: string, deepLinkSuffix?: string): void;
|
|
36
|
+
export declare function extractMarkdownSections(description: Node | Node[] | string | undefined, options?: ParseMarkdownOptions, operationId?: string, isTagContext?: boolean): MarkdownHeading[];
|
|
37
|
+
export declare function buildMarkdownSectionItem({ heading, basePath }: {
|
|
38
|
+
heading: MarkdownHeading;
|
|
39
|
+
basePath: string;
|
|
40
|
+
}): ApiItem;
|
|
41
|
+
export declare function collectMarkdownSections(description: Node | Node[] | string | undefined, basePath: string, options: ParseMarkdownOptions): {
|
|
42
|
+
sectionItems: ApiItem[];
|
|
43
|
+
sectionChildren: ContentNode[];
|
|
44
|
+
};
|
|
45
|
+
export declare function stripMarkdown(text: string): string;
|
|
46
|
+
export declare function extractFullText(ast: Node | Node[] | string): string;
|
|
47
|
+
export declare function extractFirstParagraphText(ast: Node | Node[] | string, maxLength?: number): string | undefined;
|
|
48
|
+
export declare function extractSummaryText(description: string | Node | Node[] | undefined | null, options?: ParseMarkdownOptions): string | undefined;
|
|
49
|
+
export declare function extractSeoDescriptionText(description: string | Node | Node[] | undefined | null, options?: ParseMarkdownOptions): string | undefined;
|
|
50
|
+
/** One Markdoc node, or a non-empty list of them. */
|
|
51
|
+
export declare function isMarkdocAst(value: unknown): value is Node | Node[];
|
|
52
|
+
export declare function collectTextContent(node: Node): string;
|
|
53
|
+
export declare function collectMarkdownPlainText(ast: Node | Node[] | string): string;
|
|
54
|
+
export declare function unescapeHTMLChars(str: string): string;
|
|
55
|
+
export declare function sanitizeMarkdownSource(source: string, options?: MarkdownSanitizeOptions): string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Node } from '@markdoc/markdoc';
|
|
2
|
+
import type { MarkdownParser } from '../../types/options.js';
|
|
3
|
+
import type { MarkdownSanitizeOptions } from './markdoc.js';
|
|
4
|
+
export type { MarkdownParser };
|
|
5
|
+
export type ParseMarkdownOptions = MarkdownSanitizeOptions & {
|
|
6
|
+
markdownParser: MarkdownParser;
|
|
7
|
+
};
|
|
8
|
+
export declare function parseMarkdown(markdown: string | undefined | null | Node | Node[], options?: ParseMarkdownOptions): string | Node | Node[] | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { ChannelAddressNode } from '../types/content.js';
|
|
3
|
+
declare function ChannelAddressItemComponent({ node }: {
|
|
4
|
+
node: ChannelAddressNode;
|
|
5
|
+
}): ReactElement;
|
|
6
|
+
export declare const ChannelAddressItem: import("react").MemoExoticComponent<typeof ChannelAddressItemComponent>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { ContainerNode } from '../types/content.js';
|
|
3
|
+
declare function ContainerItemComponent({ node, itemPath, sectionId }: {
|
|
4
|
+
node: ContainerNode;
|
|
5
|
+
itemPath?: string;
|
|
6
|
+
sectionId?: string;
|
|
7
|
+
}): ReactElement;
|
|
8
|
+
export declare const ContainerItem: import("react").MemoExoticComponent<typeof ContainerItemComponent>;
|
|
9
|
+
export {};
|