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
package/typings/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export
|
|
2
|
-
export {
|
|
3
|
-
export
|
|
4
|
-
export type {
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export {
|
|
1
|
+
export { RedocStandalone, prepareApiDocs } from './RedocStandalone.js';
|
|
2
|
+
export type { RedocStandaloneProps } from './RedocStandalone.js';
|
|
3
|
+
export { RedoclyApiDocsStandalone } from './RedoclyApiDocsStandalone.js';
|
|
4
|
+
export type { RedoclyApiDocsStandaloneProps } from './RedoclyApiDocsStandalone.js';
|
|
5
|
+
export { convertSwagger2OpenAPI } from './adapters/utils/convertSwagger2OpenAPI.js';
|
|
6
|
+
export { logoFromSpec } from './utils/x-logo.js';
|
|
7
|
+
export { ServerStyleSheet } from 'styled-components';
|
|
8
|
+
export { RedoclyApiDocs as Redoc } from './RedoclyApiDocs.js';
|
|
9
|
+
export type { RedoclyApiDocsProps as RedocProps } from './RedoclyApiDocs.js';
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { LayoutVariant } from '@redocly/config';
|
|
2
|
+
import type { AsyncLocalStorage } from 'node:async_hooks';
|
|
3
|
+
declare global {
|
|
4
|
+
var redoclyCookieStorage: AsyncLocalStorage<string> | undefined;
|
|
5
|
+
}
|
|
6
|
+
export type TabType<T extends object = object> = {
|
|
7
|
+
title: string;
|
|
8
|
+
key: string;
|
|
9
|
+
} & T;
|
|
10
|
+
export type AppSessionStore = {
|
|
11
|
+
collapsedSidebar: boolean;
|
|
12
|
+
unsupportedFeatureScreen: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type AppStore = {
|
|
15
|
+
activeMimeName: string;
|
|
16
|
+
layout: LayoutVariant;
|
|
17
|
+
colorMode: string;
|
|
18
|
+
language: string;
|
|
19
|
+
environment: string;
|
|
20
|
+
environments: Record<string, Record<string, string>>;
|
|
21
|
+
allowedEnvironments: string[] | null;
|
|
22
|
+
};
|
|
23
|
+
type LanguageAtom = {
|
|
24
|
+
languages?: (TabType & {
|
|
25
|
+
order?: number;
|
|
26
|
+
lang: string;
|
|
27
|
+
})[];
|
|
28
|
+
activeLanguage: string;
|
|
29
|
+
};
|
|
30
|
+
/** Raw `light` | `dark`; localStorage so it survives on `file://`, where cookies are dropped. */
|
|
31
|
+
export declare const COLOR_MODE_STORAGE_KEY = "redoc.colorMode";
|
|
32
|
+
export declare const appStore: import("jotai").WritableAtom<AppStore, [typeof import("jotai/utils").RESET | AppStore | ((prev: AppStore) => typeof import("jotai/utils").RESET | AppStore)], void>;
|
|
33
|
+
export declare const environmentsAtom: import("jotai").Atom<import("../utils/environments.js").EnvironmentData>;
|
|
34
|
+
export declare const environmentAtom: import("jotai").WritableAtom<[Record<string, string>, string], [{
|
|
35
|
+
environment?: string;
|
|
36
|
+
environments?: Record<string, Record<string, string>>;
|
|
37
|
+
}], void>;
|
|
38
|
+
export declare const savedEnvironmentNameAtom: import("jotai").Atom<string>;
|
|
39
|
+
export declare const activeMimeNameAtom: import("jotai").WritableAtom<string, [string], void>;
|
|
40
|
+
export declare const mediaTypeOverrideAtom: import("jotai").PrimitiveAtom<string | undefined> & {
|
|
41
|
+
init: string | undefined;
|
|
42
|
+
};
|
|
43
|
+
export declare const activeMediaTypeAtom: import("jotai").WritableAtom<string | undefined, [string | undefined], void>;
|
|
44
|
+
export declare const layoutAtom: import("jotai").WritableAtom<LayoutVariant, LayoutVariant[], void>;
|
|
45
|
+
export declare const allowedEnvironmentsAtom: import("jotai").WritableAtom<string[] | null, [string[] | null], void>;
|
|
46
|
+
/**
|
|
47
|
+
* appSessionStore saved to session storage
|
|
48
|
+
*/
|
|
49
|
+
export declare const appSessionStore: import("jotai").WritableAtom<AppSessionStore, [typeof import("jotai/utils").RESET | AppSessionStore | ((prev: AppSessionStore) => typeof import("jotai/utils").RESET | AppSessionStore)], void>;
|
|
50
|
+
/** Mobile sidebar drawer — open state is per-view, never persisted. */
|
|
51
|
+
export declare const isSidebarOpenedAtom: import("jotai").PrimitiveAtom<boolean> & {
|
|
52
|
+
init: boolean;
|
|
53
|
+
};
|
|
54
|
+
export declare const colorModeAtom: import("jotai").WritableAtom<string, string[], void>;
|
|
55
|
+
export declare const collapsedSidebarAtom: import("jotai").WritableAtom<boolean, boolean[], void>;
|
|
56
|
+
export declare const languageAtom: import("jotai").WritableAtom<LanguageAtom, [string], void>;
|
|
57
|
+
export declare const requestValuesAtom: import("jotai").PrimitiveAtom<Record<string, Record<string, unknown>>> & {
|
|
58
|
+
init: Record<string, Record<string, unknown>>;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* The `data-section-id` of whatever section is currently nearest the top of
|
|
62
|
+
* the viewport (computed by `useScrollSpyUrlSync` via `useActiveSectionId`).
|
|
63
|
+
* Used only for the standalone API docs with sidebar.
|
|
64
|
+
*/
|
|
65
|
+
export declare const activeScrollSectionAtom: import("jotai").PrimitiveAtom<string | null> & {
|
|
66
|
+
init: string | null;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Lowercased pathnames visited this session. Written only by the root-mounted
|
|
70
|
+
* `useVisitedChannelsTracker` so per-item panels don't subscribe to the router.
|
|
71
|
+
*/
|
|
72
|
+
export declare const visitedChannelsAtom: import("jotai").PrimitiveAtom<string[]> & {
|
|
73
|
+
init: string[];
|
|
74
|
+
};
|
|
75
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ExampleEntry } from '../types/store.js';
|
|
2
|
+
export declare const exampleStoreAtom: import("jotai").Atom<Record<string, ExampleEntry>>;
|
|
3
|
+
export declare const itemSpecForSamplerAtom: import("jotai-family").AtomFamily<string, import("jotai").Atom<Record<string, unknown>>>;
|
|
4
|
+
export declare function buildExampleAtomKey(schemaId: string, context?: 'request' | 'response', mediaType?: string, itemId?: string): string;
|
|
5
|
+
export declare const generatedExampleAtom: import("jotai-family").AtomFamily<string, import("jotai").Atom<unknown>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { GraphqlDirectiveData, GraphqlStoreFieldData, GraphqlTypeData, GraphqlTypeReference } from '../types/graphql-store.js';
|
|
2
|
+
import type { GraphqlTypeLookup } from '../utils/graphql-samples.js';
|
|
3
|
+
export declare const graphqlTypeLookupAtom: import("jotai").Atom<GraphqlTypeLookup>;
|
|
4
|
+
export declare const graphqlTypeDataAtom: import("jotai-family").AtomFamily<string, import("jotai").Atom<GraphqlTypeData | undefined>>;
|
|
5
|
+
export declare const graphqlDirectiveDataAtom: import("jotai-family").AtomFamily<string, import("jotai").Atom<GraphqlDirectiveData | undefined>>;
|
|
6
|
+
export type GraphqlOperationType = 'query' | 'mutation' | 'subscription';
|
|
7
|
+
export declare function graphqlOperationKey(operationType: GraphqlOperationType | undefined, operationName: string | undefined): string;
|
|
8
|
+
export declare const graphqlOperationAtom: import("jotai-family").AtomFamily<string, import("jotai").Atom<GraphqlStoreFieldData | undefined>>;
|
|
9
|
+
export declare const graphqlTypeSlugMapAtom: import("jotai").Atom<Record<string, string>>;
|
|
10
|
+
export declare const graphqlReferenceMapAtom: import("jotai").Atom<Record<string, GraphqlTypeReference[]>>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { Atom } from 'jotai';
|
|
2
|
+
export type ItemStore = {
|
|
3
|
+
activeDiscriminator: Record<string, number>;
|
|
4
|
+
activeOneOf: Record<string, number>;
|
|
5
|
+
activeResponseCode: string;
|
|
6
|
+
activeExampleKey: string;
|
|
7
|
+
activeMessageKey: string;
|
|
8
|
+
selectedCallback: string;
|
|
9
|
+
expandableSections: Record<string, boolean | undefined>;
|
|
10
|
+
collapsibles: Record<string, boolean>;
|
|
11
|
+
};
|
|
12
|
+
export type ItemStoreKey = keyof ItemStore;
|
|
13
|
+
export type ItemStoreFieldParams<K extends ItemStoreKey = ItemStoreKey> = {
|
|
14
|
+
itemId: string;
|
|
15
|
+
key: K;
|
|
16
|
+
};
|
|
17
|
+
type ItemStoreUpdate = Partial<ItemStore> | ((current: ItemStore) => Partial<ItemStore>);
|
|
18
|
+
export declare const itemStoreAtom: import("jotai-family").AtomFamily<string, import("jotai").WritableAtom<ItemStore, [update: ItemStoreUpdate], void>>;
|
|
19
|
+
export declare function itemStoreFieldAtom<K extends ItemStoreKey>(params: ItemStoreFieldParams<K>): Atom<ItemStore[K]>;
|
|
20
|
+
export declare function buildVariantStateKey(parentPath: ReadonlyArray<string> | undefined, localPart: string): string;
|
|
21
|
+
export type DeepLinkSectionData = {
|
|
22
|
+
/** Route-level item id (slug) */
|
|
23
|
+
id: string;
|
|
24
|
+
/** "request" | "response" for OpenAPI body/param sections */
|
|
25
|
+
t?: string;
|
|
26
|
+
/** "query" | "header" | "path" | "cookie" for OpenAPI parameter location */
|
|
27
|
+
in?: string;
|
|
28
|
+
/** Response status code */
|
|
29
|
+
c?: string;
|
|
30
|
+
/** Callback id */
|
|
31
|
+
cb?: string;
|
|
32
|
+
/** Content-type name (when multiple media types) */
|
|
33
|
+
ct?: string;
|
|
34
|
+
/** When true, nested field deep-links use `path=<field>` only */
|
|
35
|
+
pathOnly?: boolean;
|
|
36
|
+
/** AsyncAPI message key */
|
|
37
|
+
messageKey?: string;
|
|
38
|
+
/** AsyncAPI sub-section: "headers" | "payload" | "send" | "receive" | "parameters" | "messages" */
|
|
39
|
+
asyncSection?: string;
|
|
40
|
+
/** GraphQL type section: "field" | "argument" | "return-type" | "possible-types" | "implements" | "enum-value" */
|
|
41
|
+
graphqlType?: string;
|
|
42
|
+
/** GraphQL parent type name (e.g. "Query", "User") */
|
|
43
|
+
graphqlTypeName?: string;
|
|
44
|
+
};
|
|
45
|
+
export declare function activeDiscriminatorSelectAtom(itemId: string): Atom<ItemStore['activeDiscriminator']>;
|
|
46
|
+
export declare function activeOneOfSelectAtom(itemId: string): Atom<ItemStore['activeOneOf']>;
|
|
47
|
+
export declare function expandableSectionAtom(itemId: string, key: string): Atom<boolean | undefined>;
|
|
48
|
+
export declare function buildCollapsibleEntryKey(sectionKey: string, instanceId: string): string;
|
|
49
|
+
export declare function collapsibleEntrySection(entryKey: string): string;
|
|
50
|
+
export declare function expandableSectionKeysAtom(itemId: string): Atom<string[]>;
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ApiItem, ApiStore } from '../types/store.js';
|
|
2
|
+
import type { ApiSpecType } from '../types/common.js';
|
|
3
|
+
import type { ApiDocsOptions } from '../types/options.js';
|
|
4
|
+
export type GlobalStoreAtom = {
|
|
5
|
+
items: ApiItem[];
|
|
6
|
+
store: ApiStore;
|
|
7
|
+
options: ApiDocsOptions;
|
|
8
|
+
definition?: Record<string, unknown> | string;
|
|
9
|
+
definitionUrl?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const globalStoreAtom: import("jotai").PrimitiveAtom<GlobalStoreAtom> & {
|
|
12
|
+
init: GlobalStoreAtom;
|
|
13
|
+
};
|
|
14
|
+
export declare const globalItemsAtom: import("jotai").Atom<ApiItem[]>;
|
|
15
|
+
/** Maps a component-schema name to the route slug of its schema-definition page (if it has one). */
|
|
16
|
+
export declare const schemaDefinitionSlugMapAtom: import("jotai").Atom<Record<string, string>>;
|
|
17
|
+
export declare const globalOptionsAtom: import("jotai").Atom<ApiDocsOptions>;
|
|
18
|
+
export declare const specTypeAtom: import("jotai").Atom<ApiSpecType>;
|
|
19
|
+
export declare const routingBasePathAtom: import("jotai").Atom<string>;
|
|
20
|
+
export declare const storeAtom: import("jotai").Atom<ApiStore>;
|
|
21
|
+
export declare const definitionAtom: import("jotai").Atom<string | Record<string, unknown> | undefined>;
|
|
22
|
+
export declare const definitionUrlAtom: import("jotai").Atom<string | undefined>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { EventType } from '@redocly/redoc-opentelemetry';
|
|
2
|
+
export type NavigationCause = 'sidebar' | 'search' | 'referencedIn' | 'history';
|
|
3
|
+
export type TelemetrySession = {
|
|
4
|
+
firstInteractionMs?: number;
|
|
5
|
+
sections: ReadonlySet<string>;
|
|
6
|
+
sidebarClicks: number;
|
|
7
|
+
schemaExpands: number;
|
|
8
|
+
maxSchemaDepth: number;
|
|
9
|
+
searches: number;
|
|
10
|
+
interactions: number;
|
|
11
|
+
hiddenCount: number;
|
|
12
|
+
hiddenMs: number;
|
|
13
|
+
hiddenSince?: number;
|
|
14
|
+
schemaExpandEvents: number;
|
|
15
|
+
cappedEvents: boolean;
|
|
16
|
+
};
|
|
17
|
+
/** Per-load cap on `schemaField.expanded` events sent over the network; counters stay complete. */
|
|
18
|
+
export declare const SCHEMA_EXPAND_EVENT_CAP = 50;
|
|
19
|
+
export declare const telemetrySessionAtom: import("jotai").PrimitiveAtom<TelemetrySession> & {
|
|
20
|
+
init: TelemetrySession;
|
|
21
|
+
};
|
|
22
|
+
/** Counts one UI event; returns `false` when the event is over the per-load cap and must not be sent. */
|
|
23
|
+
export declare const recordTelemetryEventAtom: import("jotai").WritableAtom<null, [{
|
|
24
|
+
event: EventType;
|
|
25
|
+
data: unknown[];
|
|
26
|
+
}], boolean> & {
|
|
27
|
+
init: null;
|
|
28
|
+
};
|
|
29
|
+
export declare const recordSectionViewedAtom: import("jotai").WritableAtom<null, [sectionId: string], void> & {
|
|
30
|
+
init: null;
|
|
31
|
+
};
|
|
32
|
+
export declare const recordVisibilityAtom: import("jotai").WritableAtom<null, [hidden: boolean], void> & {
|
|
33
|
+
init: null;
|
|
34
|
+
};
|
|
35
|
+
export declare const navigationCauseAtom: import("jotai").PrimitiveAtom<{
|
|
36
|
+
via: NavigationCause;
|
|
37
|
+
at: number;
|
|
38
|
+
} | null> & {
|
|
39
|
+
init: {
|
|
40
|
+
via: NavigationCause;
|
|
41
|
+
at: number;
|
|
42
|
+
} | null;
|
|
43
|
+
};
|
|
44
|
+
export declare const markNavigationCauseAtom: import("jotai").WritableAtom<null, [via: NavigationCause], void> & {
|
|
45
|
+
init: null;
|
|
46
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LayoutVariant } from '@redocly/config';
|
|
2
|
+
export declare const DEFAULT_LAYOUT = LayoutVariant.THREE_PANEL;
|
|
3
|
+
export declare const DEFAULT_MAX_DISPLAYED_ENUM_VALUES = 10;
|
|
4
|
+
export declare const DEFAULT_ROUTING_BASE_PATH = "";
|
|
5
|
+
export declare const GRAPHQL_DEFAULT_JSON_SAMPLES_DEPTH = 1;
|
|
6
|
+
export declare const ASYNCAPI_DEFAULT_JSON_SAMPLES_DEPTH = 3;
|
|
7
|
+
export declare const GRAPHQL_DEFAULT_SAMPLES_MAX_INLINE_ARGS = 2;
|
|
8
|
+
export declare const GRAPHQL_DEFAULT_FIELD_EXPAND_LEVEL = 4;
|
|
9
|
+
export declare const JSON_SAMPLES_EXPAND_LEVEL_DEFAULT = 2;
|
|
10
|
+
export declare const GENERATED_SAMPLES_MAX_DEPTH_DEFAULT = 8;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { RawApiDocsOptions } from '../types/options.js';
|
|
2
|
+
/** Option overrides applied on top of host options in `normalizeOptions`. The community edition forces enterprise options off here. */
|
|
3
|
+
export declare const EDITION_OPTION_OVERRIDES: Partial<RawApiDocsOptions>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LayoutVariant, type RedocConfig } from '@redocly/config';
|
|
2
|
+
import type { ApiSpecType } from '../types/common.js';
|
|
3
|
+
import type { RawApiDocsOptions } from '../types/options.js';
|
|
4
|
+
import type { CodeSamplesConfig } from '../types/code-samples-config.js';
|
|
5
|
+
export declare function argValueToBoolean(val?: string | boolean, defaultValue?: boolean): boolean;
|
|
6
|
+
export declare function argValueToNumber(value: number | string | undefined, defaultValue?: number): number;
|
|
7
|
+
export declare function argValueToInt(value: number | string | undefined, defaultValue?: number): number;
|
|
8
|
+
export declare function argValueToExpandLevel(value?: number | string | undefined, defaultValue?: number): number | undefined;
|
|
9
|
+
export declare function normalizePath(path: string): string;
|
|
10
|
+
export declare function normalizeShowExtensions(value: RedocConfig['showExtensions']): string[] | boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Normalize scrollYOffset for OpenAPI options. Safe for SSR: no DOM (querySelector).
|
|
13
|
+
* In browser, openapi-docs version also supports CSS selector strings.
|
|
14
|
+
*/
|
|
15
|
+
export declare function normalizeScrollYOffset(value: RedocConfig['scrollYOffset']): () => number;
|
|
16
|
+
export declare function normalizeCodeSamples(value?: RedocConfig['codeSamples']): CodeSamplesConfig;
|
|
17
|
+
export declare function normalizeIgnoreNamedSchemas(value: RawApiDocsOptions['ignoreNamedSchemas']): string[];
|
|
18
|
+
export declare function normalizeDownloadUrls(downloadUrls: {
|
|
19
|
+
title?: string;
|
|
20
|
+
url: string;
|
|
21
|
+
}[], type: ApiSpecType): {
|
|
22
|
+
title: string;
|
|
23
|
+
url: string;
|
|
24
|
+
}[];
|
|
25
|
+
export declare function normalizeLayout(layout: RawApiDocsOptions['layout']): LayoutVariant;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const ATTR_EXCEPTION_MESSAGE = "exception.message";
|
|
2
|
+
export declare const ATTR_EXCEPTION_STACKTRACE = "exception.stacktrace";
|
|
3
|
+
export declare const ATTR_EXCEPTION_TYPE = "exception.type";
|
|
4
|
+
export declare const ATTR_SERVICE_NAME = "service.name";
|
|
5
|
+
export declare const ATTR_SERVICE_VERSION = "service.version";
|
|
6
|
+
export declare const ATTR_TELEMETRY_SDK_LANGUAGE = "telemetry.sdk.language";
|
|
7
|
+
export declare const ATTR_TELEMETRY_SDK_NAME = "telemetry.sdk.name";
|
|
8
|
+
export declare const ATTR_TELEMETRY_SDK_VERSION = "telemetry.sdk.version";
|
|
9
|
+
export declare const TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS = "nodejs";
|
|
10
|
+
export declare const TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS = "webjs";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { RouteIndex } from '../utils/routing.js';
|
|
3
|
+
type EntryPageProps = {
|
|
4
|
+
routeIndex: RouteIndex;
|
|
5
|
+
basePath: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Renders the whole API as one persistent tree with two layers of laziness:
|
|
9
|
+
*
|
|
10
|
+
* 1. **Top-level LazySections** — one per top-level entry (root page,
|
|
11
|
+
* every top-level tag, any standalone non-tag route). Each
|
|
12
|
+
* observer-mounts when scrolled near the viewport and stays mounted.
|
|
13
|
+
*
|
|
14
|
+
* 2. **Ops inside a tag** — when the tag is in scope (active route OR an
|
|
15
|
+
* ancestor of the active route), every op renders as a nested
|
|
16
|
+
* LazySection. The active op is eager; the rest are placeholders that
|
|
17
|
+
* observer-mount on scroll. When the tag goes out of scope, its ops
|
|
18
|
+
* unmount; the active op of the new tag becomes eager.
|
|
19
|
+
*
|
|
20
|
+
* Section pointer routes (`route.content === null`) live inside the root
|
|
21
|
+
* page's overview body — when one is active, the root page is eager.
|
|
22
|
+
*/
|
|
23
|
+
declare function EntryPageComponent({ routeIndex, basePath }: EntryPageProps): ReactElement;
|
|
24
|
+
export declare const EntryPage: import("react").MemoExoticComponent<typeof EntryPageComponent>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GroupPage: import("react").FC<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ItemPage: import("react").FC<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OverviewPage: import("react").FC<any>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { TopLevelEntry } from '../utils/routing.js';
|
|
3
|
+
type TopLevelEntryViewProps = {
|
|
4
|
+
entry: TopLevelEntry;
|
|
5
|
+
activePath: string | undefined;
|
|
6
|
+
entryEager: boolean;
|
|
7
|
+
eagerOpSlug: string | null;
|
|
8
|
+
shouldRenderOps: boolean;
|
|
9
|
+
opsStartIndex?: number;
|
|
10
|
+
renderEntrySection?: boolean;
|
|
11
|
+
};
|
|
12
|
+
/** Renders one top-level entry as a LazySection plus, when in scope, its op
|
|
13
|
+
* LazySections. The op LazySections are siblings (not children) of the
|
|
14
|
+
* entry's LazySection so the entry's memo bail doesn't keep a stale `eager`
|
|
15
|
+
* prop on the active op during sibling-op navigation. */
|
|
16
|
+
export declare const TopLevelEntryView: import("react").MemoExoticComponent<({ entry, activePath, entryEager, eagerOpSlug, shouldRenderOps, opsStartIndex, renderEntrySection, }: TopLevelEntryViewProps) => ReactElement>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AgentTool, ApiDocsAgentToolsParams } from './types.js';
|
|
2
|
+
export { collectOperations } from './operations.js';
|
|
3
|
+
export { MAX_AGENT_RESULT_CHARS, agentErrorResult, agentJsonResult, agentTextResult, } from './results.js';
|
|
4
|
+
export { registerAgentTools } from './webmcp.js';
|
|
5
|
+
export { createSpecSliceOperationDetail } from './spec-slice-detail.js';
|
|
6
|
+
export type { AgentTool, AgentToolAnnotations, AgentToolOutcome, AgentToolResult, AgentToolsTelemetry, ApiDocsAgentToolsParams, ApiOperationSummary, } from './types.js';
|
|
7
|
+
/**
|
|
8
|
+
* Tools describing the API rendered on the current page. A host supplies how its URLs are shaped
|
|
9
|
+
* and where operation detail comes from; everything else is read from the item tree and store.
|
|
10
|
+
*/
|
|
11
|
+
export declare function buildApiDocsAgentTools({ items, store, resolveDocUrl, getOperationDetail }: ApiDocsAgentToolsParams): AgentTool[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ApiItem } from '../../types/store.js';
|
|
2
|
+
import type { ApiOperationSummary } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Request path of an OpenAPI operation, from its pointer: `/paths/~1museum-hours/get` is
|
|
5
|
+
* `GET /museum-hours`. AsyncAPI channel pointers hold an identifier rather than an address,
|
|
6
|
+
* so they are left without a path.
|
|
7
|
+
*/
|
|
8
|
+
export declare function pathFromPointer(pointer: string | undefined): string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Flattens the navigation tree into the operations it documents: HTTP operations, webhooks,
|
|
11
|
+
* AsyncAPI channel operations, `x-mcp` entities, and GraphQL queries, mutations and subscriptions.
|
|
12
|
+
*/
|
|
13
|
+
export declare function collectOperations(items: ApiItem[], resolveDocUrl?: (link: string) => string): ApiOperationSummary[];
|
|
14
|
+
/** Matches on a documentation URL when given one, otherwise on method and path or title. */
|
|
15
|
+
export declare function findOperation(operations: ApiOperationSummary[], criteria: {
|
|
16
|
+
url?: string;
|
|
17
|
+
method?: string;
|
|
18
|
+
path?: string;
|
|
19
|
+
}): ApiOperationSummary | undefined;
|
|
20
|
+
export declare function filterOperations(operations: ApiOperationSummary[], query: string): ApiOperationSummary[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AgentToolResult } from './types.js';
|
|
2
|
+
/** Longest text one tool result may carry. */
|
|
3
|
+
export declare const MAX_AGENT_RESULT_CHARS = 24000;
|
|
4
|
+
export declare function agentTextResult(text: string): AgentToolResult;
|
|
5
|
+
export declare function agentJsonResult(value: unknown): AgentToolResult;
|
|
6
|
+
export declare function agentErrorResult(message: string): AgentToolResult;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ApiStore } from '../../types/store.js';
|
|
2
|
+
type ApiSecuritySummary = {
|
|
3
|
+
servers: Array<{
|
|
4
|
+
url: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
}>;
|
|
7
|
+
securitySchemes: Array<Record<string, unknown> & {
|
|
8
|
+
id: string;
|
|
9
|
+
}>;
|
|
10
|
+
};
|
|
11
|
+
/** Servers and security schemes of the documented API, with every stored credential removed. */
|
|
12
|
+
export declare function summarizeSecurity(store: ApiStore): ApiSecuritySummary;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ApiSpecType } from '../../types/common.js';
|
|
2
|
+
import type { ApiItem } from '../../types/store.js';
|
|
3
|
+
import type { ApiOperationSummary } from './types.js';
|
|
4
|
+
type SpecSliceDetailParams = {
|
|
5
|
+
items: ApiItem[];
|
|
6
|
+
specType: ApiSpecType;
|
|
7
|
+
/** The bundled definition, or GraphQL SDL. */
|
|
8
|
+
definition: Record<string, unknown> | string;
|
|
9
|
+
};
|
|
10
|
+
/** Operation detail for hosts that hold the definition: the slice the page actions copy. */
|
|
11
|
+
export declare function createSpecSliceOperationDetail({ items, specType, definition }: SpecSliceDetailParams): (operation: ApiOperationSummary) => Promise<string | undefined>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { ApiItem, ApiStore } from '../../types/store.js';
|
|
2
|
+
/** One operation of the documented API, flattened out of the navigation tree. */
|
|
3
|
+
export type ApiOperationSummary = {
|
|
4
|
+
/** Upper-case HTTP method, or the entity kind for items such as `x-mcp` tools. */
|
|
5
|
+
method: string;
|
|
6
|
+
title: string;
|
|
7
|
+
/** Documentation URL, already in the host's URL space. */
|
|
8
|
+
url: string;
|
|
9
|
+
path?: string;
|
|
10
|
+
/** Tag or group the operation is listed under. */
|
|
11
|
+
section?: string;
|
|
12
|
+
deprecated?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type AgentToolResult = {
|
|
15
|
+
content: Array<{
|
|
16
|
+
type: 'text';
|
|
17
|
+
text: string;
|
|
18
|
+
}>;
|
|
19
|
+
isError?: boolean;
|
|
20
|
+
};
|
|
21
|
+
/** Hints an agent uses to decide whether a tool is safe to call unattended. */
|
|
22
|
+
export type AgentToolAnnotations = {
|
|
23
|
+
readOnlyHint?: boolean;
|
|
24
|
+
untrustedContentHint?: boolean;
|
|
25
|
+
/** The tool changes something outside the page, so an agent should confirm before calling it. */
|
|
26
|
+
consequentialHint?: boolean;
|
|
27
|
+
};
|
|
28
|
+
/** A tool an agent can read and call, in the shape both WebMCP and MCP accept. */
|
|
29
|
+
export type AgentTool = {
|
|
30
|
+
name: string;
|
|
31
|
+
title: string;
|
|
32
|
+
description: string;
|
|
33
|
+
inputSchema?: Record<string, unknown>;
|
|
34
|
+
annotations?: AgentToolAnnotations;
|
|
35
|
+
execute: (input: Record<string, unknown>, options?: {
|
|
36
|
+
signal?: AbortSignal;
|
|
37
|
+
}) => Promise<AgentToolResult>;
|
|
38
|
+
};
|
|
39
|
+
export type ApiDocsAgentToolsParams = {
|
|
40
|
+
items: ApiItem[];
|
|
41
|
+
store: ApiStore;
|
|
42
|
+
/** Rewrites an item link into the host's URL space; identity when omitted. */
|
|
43
|
+
resolveDocUrl?: (link: string) => string;
|
|
44
|
+
/** Full reference text for one operation; without it `get_api_operation` returns the summary. */
|
|
45
|
+
getOperationDetail?: (operation: ApiOperationSummary, options?: {
|
|
46
|
+
signal?: AbortSignal;
|
|
47
|
+
}) => Promise<string | undefined>;
|
|
48
|
+
};
|
|
49
|
+
export type AgentToolOutcome = 'answered' | 'rejected' | 'failed';
|
|
50
|
+
/** How a host records use of the tools. */
|
|
51
|
+
export type AgentToolsTelemetry = {
|
|
52
|
+
registered: (toolCount: number) => void;
|
|
53
|
+
called: (toolName: string, outcome: AgentToolOutcome) => void;
|
|
54
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AgentTool, AgentToolsTelemetry } from './types.js';
|
|
2
|
+
type ModelContextLike = {
|
|
3
|
+
registerTool: (tool: Record<string, unknown>, options?: {
|
|
4
|
+
signal?: AbortSignal;
|
|
5
|
+
}) => Promise<void> | void;
|
|
6
|
+
};
|
|
7
|
+
/** The browser's WebMCP entry point: `document.modelContext`, then `navigator.modelContext`. */
|
|
8
|
+
export declare function getModelContext(): ModelContextLike | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Registers every tool with the browser; aborting the shared signal unregisters them all.
|
|
11
|
+
* Returns the names that registered; none when the browser has no WebMCP.
|
|
12
|
+
*/
|
|
13
|
+
export declare function registerAgentTools(tools: AgentTool[], signal: AbortSignal, telemetry?: AgentToolsTelemetry): Promise<string[]>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CodeSampleRequestValues } from './source.js';
|
|
2
|
+
/**
|
|
3
|
+
* Substitutes `{{name}}` environment-variable placeholders in a sample using
|
|
4
|
+
* the base env variables plus the active server's scoped overrides.
|
|
5
|
+
* `requestValues.serverEnvVariables` is keyed by the raw (templated) spec
|
|
6
|
+
* server URL.
|
|
7
|
+
*/
|
|
8
|
+
export declare function applyEnvVariables(sample: string, requestValues: CodeSampleRequestValues | undefined, activeServerSpecUrl: string | undefined): string;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { SchemaEntry } from '../../types/store.js';
|
|
2
|
+
export type EffectiveDiscriminator = {
|
|
3
|
+
propertyName: string;
|
|
4
|
+
mapping: Record<string, string>;
|
|
5
|
+
defaultMapping?: string;
|
|
6
|
+
variantsNode?: Record<string, unknown>;
|
|
7
|
+
};
|
|
8
|
+
export declare function findEffectiveDiscriminator(schemaData: Record<string, unknown> | undefined, schemaStore: Record<string, SchemaEntry>, visited?: Set<string>): EffectiveDiscriminator | undefined;
|
|
9
|
+
export declare function applyDiscriminatorValue(sample: Record<string, unknown>, variantSchemaId: string, schemaStore: Record<string, SchemaEntry>, mappingKey?: string): void;
|
|
10
|
+
export type SchemaVariantOption = {
|
|
11
|
+
label: string;
|
|
12
|
+
schemaId: string;
|
|
13
|
+
mappingKey?: string;
|
|
14
|
+
isDefaultMapping?: boolean;
|
|
15
|
+
isDeprecated?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export type HoistedVariant = {
|
|
18
|
+
schema: Record<string, unknown>;
|
|
19
|
+
variantSchemaId: string;
|
|
20
|
+
mappingKey?: string;
|
|
21
|
+
};
|
|
22
|
+
export type SchemaVariantAxis = {
|
|
23
|
+
kind: 'discriminator' | 'oneOf' | 'anyOf';
|
|
24
|
+
stateKey: string;
|
|
25
|
+
options: SchemaVariantOption[];
|
|
26
|
+
localPart: string;
|
|
27
|
+
parentPath: string[];
|
|
28
|
+
};
|
|
29
|
+
export declare function collectNestedVariantAxes(schemaData: Record<string, unknown> | undefined, schemaStore: Record<string, SchemaEntry>, out?: Map<string, SchemaVariantAxis>, visitedRefs?: Set<string>, path?: string[]): Map<string, SchemaVariantAxis>;
|
|
30
|
+
export declare function findSchemaVariantAxis(schemaId: string, schemaStore: Record<string, SchemaEntry>, { includeNested }?: {
|
|
31
|
+
includeNested?: boolean;
|
|
32
|
+
}): SchemaVariantAxis | undefined;
|
|
33
|
+
export declare function resolveActiveVariantIndex(axis: SchemaVariantAxis, activeDiscriminator?: Record<string, number>, activeOneOf?: Record<string, number>): number;
|
|
34
|
+
export type SchemaVariantPick = {
|
|
35
|
+
axis: SchemaVariantAxis;
|
|
36
|
+
idx: number;
|
|
37
|
+
};
|
|
38
|
+
export type SchemaVariantLeaf = SchemaVariantOption & {
|
|
39
|
+
key: string;
|
|
40
|
+
/** The option to select on each axis, outermost first. */
|
|
41
|
+
picks: SchemaVariantPick[];
|
|
42
|
+
};
|
|
43
|
+
type VariantState = {
|
|
44
|
+
activeDiscriminator?: Record<string, number>;
|
|
45
|
+
activeOneOf?: Record<string, number>;
|
|
46
|
+
};
|
|
47
|
+
export declare function collectVariantLeaves(axis: SchemaVariantAxis, schemaStore: Record<string, SchemaEntry>, visited?: ReadonlySet<string>): SchemaVariantLeaf[];
|
|
48
|
+
export declare function findSchemaVariantLeaves(schemaId: string, schemaStore: Record<string, SchemaEntry>, options?: {
|
|
49
|
+
includeNested?: boolean;
|
|
50
|
+
}): SchemaVariantLeaf[] | undefined;
|
|
51
|
+
/** The state fields selecting `picks` changes: each axis writes to the record its kind owns. */
|
|
52
|
+
export declare function withVariantPicks(state: VariantState, picks: readonly SchemaVariantPick[]): VariantState;
|
|
53
|
+
export declare function resolveActiveVariantLeafIndex(leaves: SchemaVariantLeaf[], activeDiscriminator?: Record<string, number>, activeOneOf?: Record<string, number>): number;
|
|
54
|
+
export declare function resolveActiveVariantSchemaId(schemaId: string, schemaStore: Record<string, SchemaEntry>, activeDiscriminator?: Record<string, number>, activeOneOf?: Record<string, number>): string;
|
|
55
|
+
export declare function hoistActiveVariantSchemaForSampling(schemaId: string, schemaStore: Record<string, SchemaEntry>, activeDiscriminator?: Record<string, number>, activeOneOf?: Record<string, number>): HoistedVariant | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Deep-collapse inline nested variant axes to the active option so generated
|
|
58
|
+
* samples follow the switcher: oneOf/anyOf collapse to the active branch
|
|
59
|
+
* (default 0) — so null branches sample as `null`: the sampler turns any
|
|
60
|
+
* surviving `oneOf: [{type: 'null'}]` wrapper into `{}` — and inline
|
|
61
|
+
* discriminator hosts collapse to the active variant with its mapping key
|
|
62
|
+
* stamped. Returns a structural clone.
|
|
63
|
+
*/
|
|
64
|
+
export declare function applyActiveVariantsToSchema(data: Record<string, unknown>, schemaStore: Record<string, SchemaEntry>, activeDiscriminator?: Record<string, number>, activeOneOf?: Record<string, number>, parentPath?: string[]): Record<string, unknown>;
|
|
65
|
+
export declare function applyActiveVariantsToStore(schemaStore: Record<string, SchemaEntry>, activeDiscriminator?: Record<string, number>, activeOneOf?: Record<string, number>): Record<string, Record<string, unknown>>;
|
|
66
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type ResolveExample = (id: string) => {
|
|
2
|
+
key?: string;
|
|
3
|
+
} | undefined;
|
|
4
|
+
type ResponseCodeExamples = {
|
|
5
|
+
exampleIds?: string[];
|
|
6
|
+
mediaTypeContent?: Record<string, {
|
|
7
|
+
exampleIds?: string[];
|
|
8
|
+
}>;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Resolves an `exampleKey` from a pluggable tag to a store example id.
|
|
12
|
+
* Spec-level keys (e.g. `beta` under `examples:`) never equal the generated
|
|
13
|
+
* store ids (`example_N`), so the lookup goes through the entry's `key`;
|
|
14
|
+
* direct id equality is kept for callers that already hold a store id.
|
|
15
|
+
* Keys are matched across the whole list before falling back to id equality,
|
|
16
|
+
* so an author key that happens to look like a store id can't be shadowed.
|
|
17
|
+
*/
|
|
18
|
+
export declare function findExampleIdByKey(exampleIds: string[] | undefined, key: string | undefined, resolveExample: ResolveExample): string | undefined;
|
|
19
|
+
/** Response code entries whose examples (in any media type) contain `key`. */
|
|
20
|
+
export declare function responseCodesContainingKey<T extends ResponseCodeExamples>(responseCodes: T[] | undefined, key: string | undefined, resolveExample: ResolveExample): T[];
|
|
21
|
+
/** Media type of a request-body map (mediaType → { exampleIds }) whose examples contain `key`. */
|
|
22
|
+
export declare function mediaTypeContainingKey(requestBody: Record<string, {
|
|
23
|
+
exampleIds?: string[];
|
|
24
|
+
}> | undefined, key: string | undefined, resolveExample: ResolveExample): string | undefined;
|
|
25
|
+
export {};
|