redoc 3.0.0-rc.3 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/redoc.d.ts +328 -31
- package/bundles/redoc.js +1078 -1349
- package/bundles/redoc.standalone.d.ts +327 -31
- package/bundles/redoc.standalone.js +1003 -1087
- package/package.json +42 -36
- package/typings/.tsbuildinfo +0 -1
- package/typings/RedocStandalone.d.ts +0 -43
- package/typings/RedoclyApiDocs.d.ts +0 -22
- package/typings/RedoclyApiDocsStandalone.d.ts +0 -22
- package/typings/adapters/asyncapi/build/context.d.ts +0 -9
- package/typings/adapters/asyncapi/build/navigation.d.ts +0 -2
- package/typings/adapters/asyncapi/build/utils.d.ts +0 -3
- package/typings/adapters/asyncapi/buildContext.d.ts +0 -2
- package/typings/adapters/asyncapi/index.d.ts +0 -13
- package/typings/adapters/asyncapi/items/channel/content.d.ts +0 -5
- package/typings/adapters/asyncapi/items/channel/item.d.ts +0 -13
- package/typings/adapters/asyncapi/items/operation/content.d.ts +0 -4
- package/typings/adapters/asyncapi/items/operation/item.d.ts +0 -15
- package/typings/adapters/asyncapi/items/overview/content.d.ts +0 -10
- package/typings/adapters/asyncapi/items/overview/item.d.ts +0 -16
- package/typings/adapters/asyncapi/panels/brokers.d.ts +0 -7
- package/typings/adapters/asyncapi/panels/download.d.ts +0 -3
- package/typings/adapters/asyncapi/panels/group.d.ts +0 -16
- package/typings/adapters/asyncapi/panels/overview.d.ts +0 -3
- package/typings/adapters/asyncapi/store.d.ts +0 -4
- package/typings/adapters/asyncapi/utils/avro-to-json-schema.d.ts +0 -4
- package/typings/adapters/asyncapi/utils/get-channel-label.d.ts +0 -3
- package/typings/adapters/asyncapi/utils/get-protocol-labels.d.ts +0 -24
- package/typings/adapters/asyncapi/utils/resolve-schema.d.ts +0 -2
- package/typings/adapters/asyncapi/utils/resolve-server-variables.d.ts +0 -3
- package/typings/adapters/asyncapi/utils/resolveInDoc.d.ts +0 -2
- package/typings/adapters/asyncapi/utils/security.d.ts +0 -12
- package/typings/adapters/build.d.ts +0 -15
- package/typings/adapters/graphql/build/context.d.ts +0 -9
- package/typings/adapters/graphql/buildContext.d.ts +0 -2
- package/typings/adapters/graphql/buildStoreFromSdl.d.ts +0 -2
- package/typings/adapters/graphql/group/custom.d.ts +0 -2
- package/typings/adapters/graphql/group/default.d.ts +0 -2
- package/typings/adapters/graphql/group/errors.d.ts +0 -1
- package/typings/adapters/graphql/group/itemBuilders.d.ts +0 -5
- package/typings/adapters/graphql/group/utils.d.ts +0 -8
- package/typings/adapters/graphql/index.d.ts +0 -9
- package/typings/adapters/graphql/items/directive/content.d.ts +0 -4
- package/typings/adapters/graphql/items/directive/item.d.ts +0 -3
- package/typings/adapters/graphql/items/enum/content.d.ts +0 -4
- package/typings/adapters/graphql/items/enum/item.d.ts +0 -3
- package/typings/adapters/graphql/items/input/content.d.ts +0 -4
- package/typings/adapters/graphql/items/input/item.d.ts +0 -3
- package/typings/adapters/graphql/items/interface/content.d.ts +0 -4
- package/typings/adapters/graphql/items/interface/item.d.ts +0 -3
- package/typings/adapters/graphql/items/mutation/content.d.ts +0 -4
- package/typings/adapters/graphql/items/mutation/item.d.ts +0 -3
- package/typings/adapters/graphql/items/object/content.d.ts +0 -4
- package/typings/adapters/graphql/items/object/item.d.ts +0 -3
- package/typings/adapters/graphql/items/operation/content.d.ts +0 -7
- package/typings/adapters/graphql/items/overview/content.d.ts +0 -11
- package/typings/adapters/graphql/items/overview/item.d.ts +0 -4
- package/typings/adapters/graphql/items/query/content.d.ts +0 -4
- package/typings/adapters/graphql/items/query/item.d.ts +0 -3
- package/typings/adapters/graphql/items/scalar/content.d.ts +0 -4
- package/typings/adapters/graphql/items/scalar/item.d.ts +0 -3
- package/typings/adapters/graphql/items/subscription/content.d.ts +0 -4
- package/typings/adapters/graphql/items/subscription/item.d.ts +0 -3
- package/typings/adapters/graphql/items/types.d.ts +0 -7
- package/typings/adapters/graphql/items/union/content.d.ts +0 -4
- package/typings/adapters/graphql/items/union/item.d.ts +0 -3
- package/typings/adapters/graphql/panels/download.d.ts +0 -3
- package/typings/adapters/graphql/panels/group-items.d.ts +0 -4
- package/typings/adapters/graphql/panels/overview.d.ts +0 -3
- package/typings/adapters/graphql/serializeType.d.ts +0 -4
- package/typings/adapters/graphql/store.d.ts +0 -3
- package/typings/adapters/graphql/utils/configMetadataRows.d.ts +0 -3
- package/typings/adapters/graphql/utils/constants.d.ts +0 -24
- package/typings/adapters/graphql/utils/createApiItem.d.ts +0 -15
- package/typings/adapters/graphql/utils/getBadges.d.ts +0 -4
- package/typings/adapters/graphql/utils/ignoreInternalItems.d.ts +0 -3
- package/typings/adapters/graphql/utils/isRootType.d.ts +0 -2
- package/typings/adapters/graphql/utils/menuSlashRegex.d.ts +0 -1
- package/typings/adapters/graphql/utils/normalizeMenu.d.ts +0 -3
- package/typings/adapters/graphql/utils/shouldIncludeItem.d.ts +0 -2
- package/typings/adapters/graphql/utils/summary.d.ts +0 -4
- package/typings/adapters/graphql/utils/validateMenuConfig.d.ts +0 -3
- package/typings/adapters/helpers.d.ts +0 -44
- package/typings/adapters/openapi/build/context.d.ts +0 -13
- package/typings/adapters/openapi/build-code-sample-source.d.ts +0 -4
- package/typings/adapters/openapi/buildContext.d.ts +0 -2
- package/typings/adapters/openapi/constants.d.ts +0 -4
- package/typings/adapters/openapi/group/content.d.ts +0 -25
- package/typings/adapters/openapi/group/item.d.ts +0 -8
- package/typings/adapters/openapi/index.d.ts +0 -11
- package/typings/adapters/openapi/items/mcp/content.d.ts +0 -5
- package/typings/adapters/openapi/items/mcp/item.d.ts +0 -9
- package/typings/adapters/openapi/items/operation/content.d.ts +0 -12
- package/typings/adapters/openapi/items/operation/item.d.ts +0 -9
- package/typings/adapters/openapi/items/overview/content.d.ts +0 -17
- package/typings/adapters/openapi/items/overview/item.d.ts +0 -3
- package/typings/adapters/openapi/items/schema/content.d.ts +0 -3
- package/typings/adapters/openapi/items/schema/item.d.ts +0 -9
- package/typings/adapters/openapi/panels/download.d.ts +0 -3
- package/typings/adapters/openapi/panels/mcp.d.ts +0 -3
- package/typings/adapters/openapi/panels/overview.d.ts +0 -3
- package/typings/adapters/openapi/panels/servers.d.ts +0 -3
- package/typings/adapters/openapi/resolve-openapi-example-value.d.ts +0 -3
- package/typings/adapters/openapi/store.d.ts +0 -4
- package/typings/adapters/openapi/utils/JsonPointer.d.ts +0 -50
- package/typings/adapters/openapi/utils/applyIgnoreNamedSchemasDeep.d.ts +0 -1
- package/typings/adapters/openapi/utils/helpers.d.ts +0 -12
- package/typings/adapters/openapi/utils/operation.d.ts +0 -24
- package/typings/adapters/openapi/utils/resolvePathItemRef.d.ts +0 -2
- package/typings/adapters/openapi/utils/url.d.ts +0 -2
- package/typings/adapters/rbac.d.ts +0 -10
- package/typings/adapters/scopedContext.d.ts +0 -5
- package/typings/adapters/utils/dompurify.d.ts +0 -5
- package/typings/adapters/utils/isPlainText.d.ts +0 -6
- package/typings/adapters/utils/markdoc.d.ts +0 -54
- package/typings/adapters/utils/parseMarkdown.d.ts +0 -8
- package/typings/adapters/utils/simplifyAstStructure.d.ts +0 -2
- package/typings/ajv-stub.d.ts +0 -4
- package/typings/components/AdmonitionItem.d.ts +0 -6
- package/typings/components/ChannelAddressItem.d.ts +0 -7
- package/typings/components/ContainerItem.d.ts +0 -9
- package/typings/components/EmptyMessageItem.d.ts +0 -6
- package/typings/components/ErrorBoundary.d.ts +0 -20
- package/typings/components/ExtensionsItem.d.ts +0 -7
- package/typings/components/ExternalDocsItem.d.ts +0 -8
- package/typings/components/Header/HeaderItem.d.ts +0 -10
- package/typings/components/Header/HeaderPageActions.d.ts +0 -4
- package/typings/components/Header/HeaderResponseCodeTabs.d.ts +0 -8
- package/typings/components/Header/PageActions.d.ts +0 -4
- package/typings/components/Header/ResponseDeepLinkAnchor.d.ts +0 -9
- package/typings/components/Header/hooks.d.ts +0 -5
- package/typings/components/InfoMetadataItem.d.ts +0 -7
- package/typings/components/ItemContent/ItemContentRenderer.d.ts +0 -8
- package/typings/components/ItemContent/SectionHeader.d.ts +0 -8
- package/typings/components/ItemContent/hooks.d.ts +0 -17
- package/typings/components/ItemContent/sections/BodyMimeTypeField.d.ts +0 -12
- package/typings/components/ItemContent/sections/BodySection.d.ts +0 -7
- package/typings/components/ItemContent/sections/CallbacksSection.d.ts +0 -5
- package/typings/components/ItemContent/sections/FieldsSection.d.ts +0 -7
- package/typings/components/ItemContent/sections/MessagesSection.d.ts +0 -5
- package/typings/components/ItemContent/sections/ParametersSection.d.ts +0 -6
- package/typings/components/ItemContent/sections/ResponsesSection.d.ts +0 -5
- package/typings/components/ItemContent/sections/ValuesSection.d.ts +0 -5
- package/typings/components/Mapper.d.ts +0 -22
- package/typings/components/MarkdownItem.d.ts +0 -6
- package/typings/components/Mcp/McpPrompt.d.ts +0 -8
- package/typings/components/Mcp/McpResource.d.ts +0 -8
- package/typings/components/Mcp/McpTool.d.ts +0 -8
- package/typings/components/Mcp/styled.d.ts +0 -22
- package/typings/components/Mcp/utils.d.ts +0 -7
- package/typings/components/MessageLinksItem.d.ts +0 -7
- package/typings/components/PrePaintColorModeScript.d.ts +0 -12
- package/typings/components/Schema/SchemaDescription.d.ts +0 -5
- package/typings/components/Schema/SchemaView.d.ts +0 -20
- package/typings/components/Schema/helpers.d.ts +0 -1
- package/typings/components/Schema/hooks/useSchemaDocument.d.ts +0 -7
- package/typings/components/Schema/hooks/useSchemaFieldDeepLink.d.ts +0 -5
- package/typings/components/Schema/hooks/useVariantIndexFromHash.d.ts +0 -1
- package/typings/components/Schema/styled.d.ts +0 -235
- package/typings/components/Schema/utils.d.ts +0 -15
- package/typings/components/Schema/views/ArrayRenderer.d.ts +0 -12
- package/typings/components/Schema/views/CollapsibleNestedFields.d.ts +0 -24
- package/typings/components/Schema/views/DefaultMappingOptionLabel.d.ts +0 -5
- package/typings/components/Schema/views/DiscriminatorPropertyRow.d.ts +0 -13
- package/typings/components/Schema/views/Examples.d.ts +0 -7
- package/typings/components/Schema/views/ExpandableExample.d.ts +0 -4
- package/typings/components/Schema/views/ObjectRenderer.d.ts +0 -13
- package/typings/components/Schema/views/Pattern.d.ts +0 -6
- package/typings/components/Schema/views/PrimitiveRenderer.d.ts +0 -5
- package/typings/components/Schema/views/PropertyFieldRow.d.ts +0 -15
- package/typings/components/Schema/views/PropertyRenderer.d.ts +0 -14
- package/typings/components/Schema/views/SchemaEnumDescriptions.d.ts +0 -9
- package/typings/components/Schema/views/SchemaEnumValues.d.ts +0 -8
- package/typings/components/Schema/views/SchemaTitleLabel.d.ts +0 -5
- package/typings/components/Schema/views/SchemaVariantSelector.d.ts +0 -11
- package/typings/components/Schema/views/SwitcherRenderer.d.ts +0 -13
- package/typings/components/Schema/views/VariantDropdown.d.ts +0 -14
- package/typings/components/Search/Search.d.ts +0 -10
- package/typings/components/Search/SearchDialog.d.ts +0 -7
- package/typings/components/Search/SearchTrigger.d.ts +0 -9
- package/typings/components/Search/index.d.ts +0 -1
- package/typings/components/Security/Divider.d.ts +0 -4
- package/typings/components/Security/RequiredScopes.d.ts +0 -4
- package/typings/components/Security/ScopeTagWithTooltip.d.ts +0 -11
- package/typings/components/Security/SecurityButtonPanel.d.ts +0 -5
- package/typings/components/Security/SecurityFlowDetail.d.ts +0 -5
- package/typings/components/Security/SecurityModal.d.ts +0 -6
- package/typings/components/Security/SecuritySection.d.ts +0 -3
- package/typings/components/Security/styled.d.ts +0 -127
- package/typings/components/Security/types.d.ts +0 -3
- package/typings/components/SideMenu/SideMenu.d.ts +0 -7
- package/typings/components/SideMenu/buildMenuItems.d.ts +0 -29
- package/typings/components/SideMenu/useMenuItems.d.ts +0 -14
- package/typings/components/StickySidebar/FloatingButton.d.ts +0 -1
- package/typings/components/StickySidebar/RedoclyAttributionLogo.d.ts +0 -5
- package/typings/components/StickySidebar/SidebarActions.d.ts +0 -2
- package/typings/components/StickySidebar/StickySidebar.d.ts +0 -7
- package/typings/components/common/Badge.d.ts +0 -32
- package/typings/components/common/Breadcrumbs.d.ts +0 -11
- package/typings/components/common/ContentWrapper.d.ts +0 -13
- package/typings/components/common/DeepLinkAnchor.d.ts +0 -20
- package/typings/components/common/ExpandAllButton.d.ts +0 -6
- package/typings/components/common/ExternalDocumentation.d.ts +0 -10
- package/typings/components/common/LazyMount.d.ts +0 -9
- package/typings/components/common/LazySection.d.ts +0 -14
- package/typings/components/common/Markdown.d.ts +0 -7
- package/typings/components/common/MoreDetailsButton.d.ts +0 -5
- package/typings/components/common/NestedToggleButton.d.ts +0 -10
- package/typings/components/common/PanelItem.d.ts +0 -27
- package/typings/components/common/ResponseCodeTabs.d.ts +0 -9
- package/typings/components/common/Tag.d.ts +0 -3
- package/typings/components/common/VendorExtensions.d.ts +0 -7
- package/typings/components/common/ViewNested.d.ts +0 -13
- package/typings/components/graphql/ArrowIcon.d.ts +0 -7
- package/typings/components/graphql/GraphQLArgumentsSection.d.ts +0 -10
- package/typings/components/graphql/GraphQLEnumEmbedded.d.ts +0 -5
- package/typings/components/graphql/GraphQLFieldView.d.ts +0 -12
- package/typings/components/graphql/GraphQLFieldsEmbedded.d.ts +0 -9
- package/typings/components/graphql/GraphQLGroupTypeList.d.ts +0 -5
- package/typings/components/graphql/GraphQLHeaderExtras.d.ts +0 -7
- package/typings/components/graphql/GraphQLReturnTypeDetails.d.ts +0 -11
- package/typings/components/graphql/GraphQLTypeView.d.ts +0 -9
- package/typings/components/graphql/GraphQLUnionEmbedded.d.ts +0 -5
- package/typings/components/graphql/RequiresScopesButton.d.ts +0 -9
- package/typings/components/graphql/RequiresScopesModal.d.ts +0 -9
- package/typings/components/graphql/ViewNested.d.ts +0 -14
- package/typings/components/graphql/renderDescription.d.ts +0 -2
- package/typings/components/graphql/sections/GraphQLArgsSection.d.ts +0 -5
- package/typings/components/graphql/sections/GraphQLFieldsSection.d.ts +0 -5
- package/typings/components/graphql/sections/ImplementedBySection.d.ts +0 -5
- package/typings/components/graphql/sections/ImplementsSection.d.ts +0 -5
- package/typings/components/graphql/sections/PossibleTypesSection.d.ts +0 -5
- package/typings/components/graphql/sections/RequiresScopesSection.d.ts +0 -5
- package/typings/components/graphql/sections/ReturnTypeSection.d.ts +0 -5
- package/typings/components/graphql/styled.d.ts +0 -55
- package/typings/components/markdoc/Heading.d.ts +0 -11
- package/typings/components/markdoc/SchemaDefinition.d.ts +0 -11
- package/typings/components/markdoc/apiDocsMarkdocComponents.d.ts +0 -6
- package/typings/components/markdoc/buildMarkdocOptions.d.ts +0 -9
- package/typings/components/markdoc/defaultMarkdocConfig.d.ts +0 -4
- package/typings/components/markdoc/html/html-jsx-attribute-mapping.d.ts +0 -5
- package/typings/components/markdoc/html/process-html-tokens.d.ts +0 -2
- package/typings/components/markdoc/markdocAdapter.d.ts +0 -12
- package/typings/components/markdoc/markdocParser.d.ts +0 -8
- package/typings/components/markdoc/markdocRenderer.d.ts +0 -8
- package/typings/components/markdoc/tags/mcp-tag-schemas.d.ts +0 -2
- package/typings/components/markdoc/tags/schema-definition-tag.d.ts +0 -2
- package/typings/components/panels/ConnectMcpButton.d.ts +0 -5
- package/typings/components/panels/DownloadPanelItem.d.ts +0 -5
- package/typings/components/panels/ExampleItem/CallbackPayloadItem.d.ts +0 -5
- package/typings/components/panels/ExampleItem/CodeSampleItem.d.ts +0 -5
- package/typings/components/panels/ExampleItem/ExamplesPanelItem.d.ts +0 -3
- package/typings/components/panels/ExampleItem/GraphQLQueryItem.d.ts +0 -5
- package/typings/components/panels/ExampleItem/GraphQLResponseItem.d.ts +0 -5
- package/typings/components/panels/ExampleItem/GraphQLTypeSampleItem.d.ts +0 -5
- package/typings/components/panels/ExampleItem/GraphQLVariablesItem.d.ts +0 -5
- package/typings/components/panels/ExampleItem/PayloadExampleItem.d.ts +0 -5
- package/typings/components/panels/ExampleItem/ResponseExampleItem.d.ts +0 -5
- package/typings/components/panels/ExampleItem/ServerDropdown.d.ts +0 -17
- package/typings/components/panels/ExampleItem/hooks.d.ts +0 -28
- package/typings/components/panels/ExampleItem/selectors.d.ts +0 -42
- package/typings/components/panels/ExampleItem/styled.d.ts +0 -98
- package/typings/components/panels/ExampleItem/types.d.ts +0 -6
- package/typings/components/panels/ExampleItem/useCodeSampleLanguages.d.ts +0 -22
- package/typings/components/panels/GroupPanelItem.d.ts +0 -5
- package/typings/components/panels/LanguageItem/LanguageDropdown.d.ts +0 -15
- package/typings/components/panels/LanguageItem/LanguageItem.d.ts +0 -11
- package/typings/components/panels/LanguageItem/styled.d.ts +0 -58
- package/typings/components/panels/LocationsPanelItem.d.ts +0 -5
- package/typings/components/panels/McpExamplePanelItem.d.ts +0 -5
- package/typings/components/panels/McpPanelItem.d.ts +0 -3
- package/typings/components/panels/OverviewPanelItem.d.ts +0 -3
- package/typings/components/panels/PanelMapper.d.ts +0 -5
- package/typings/components/panels/PanelNodeProps.d.ts +0 -4
- package/typings/components/panels/ReferencesPanelItem.d.ts +0 -5
- package/typings/components/panels/ServerItem/ServerDescriptionTooltip.d.ts +0 -4
- package/typings/components/panels/ServerItem/ServerItem.d.ts +0 -5
- package/typings/components/panels/ServerItem/ServerPanelItem.d.ts +0 -5
- package/typings/components/panels/asyncapi/BrokerItem/BrokerBindingsSection.d.ts +0 -7
- package/typings/components/panels/asyncapi/BrokerItem/BrokerModal.d.ts +0 -8
- package/typings/components/panels/asyncapi/BrokerItem/BrokerOverviewSection.d.ts +0 -6
- package/typings/components/panels/asyncapi/BrokerItem/BrokerPanel.styled.d.ts +0 -21
- package/typings/components/panels/asyncapi/BrokerItem/BrokerPanelItem.d.ts +0 -5
- package/typings/components/panels/asyncapi/ChannelBindingItem/ChannelBindingItem.d.ts +0 -5
- package/typings/components/panels/asyncapi/MessageBindingItem/MessageBindingItem.d.ts +0 -5
- package/typings/components/panels/asyncapi/MessageReferencesItem/MessageReferencesItem.d.ts +0 -5
- package/typings/components/panels/asyncapi/OperationBindingItem/OperationBindingItem.d.ts +0 -5
- package/typings/components/panels/asyncapi/common/bindingPanel.d.ts +0 -30
- package/typings/components/panels/shared-panel-styles.d.ts +0 -13
- package/typings/components/panels/styled.d.ts +0 -12
- package/typings/constants/openapi.d.ts +0 -25
- package/typings/constants/rendering.d.ts +0 -8
- package/typings/contexts/markdownAdapter.d.ts +0 -21
- package/typings/contexts/telemetry.d.ts +0 -4
- package/typings/crypto-compat.d.ts +0 -5
- package/typings/crypto-uuid-compat.d.ts +0 -1
- package/typings/empty-linkedom.d.ts +0 -1
- package/typings/empty.d.ts +0 -7
- package/typings/events/codeSampleCopy.d.ts +0 -2
- package/typings/events/creator.d.ts +0 -2
- package/typings/events/languageSwitch.d.ts +0 -2
- package/typings/events/serverSwitch.d.ts +0 -2
- package/typings/events/types.d.ts +0 -6
- package/typings/hoc/withItemId.d.ts +0 -6
- package/typings/hoc/withRouter.d.ts +0 -4
- package/typings/hoc/withStoreProvider.d.ts +0 -24
- package/typings/hooks/code-highlight-languages.d.ts +0 -6
- package/typings/hooks/deepLinkHash.d.ts +0 -7
- package/typings/hooks/useAgentTools.d.ts +0 -6
- package/typings/hooks/useApiDocsRoutes.d.ts +0 -8
- package/typings/hooks/useApiDocsScroll.d.ts +0 -9
- package/typings/hooks/useBodyScrollLock.d.ts +0 -1
- package/typings/hooks/useCodeHighlight.d.ts +0 -15
- package/typings/hooks/useCopyCodeTelemetry.d.ts +0 -14
- package/typings/hooks/useCopySpecSlice.d.ts +0 -9
- package/typings/hooks/useDeepLinkSection.d.ts +0 -16
- package/typings/hooks/useExpandableSection.d.ts +0 -4
- package/typings/hooks/useHashLinkRedirect.d.ts +0 -4
- package/typings/hooks/useInitialTelemetry.d.ts +0 -3
- package/typings/hooks/useIsExpanded.d.ts +0 -1
- package/typings/hooks/useIsHydrated.d.ts +0 -4
- package/typings/hooks/useManualScrollAnchor.d.ts +0 -19
- package/typings/hooks/useModalDismiss.d.ts +0 -2
- package/typings/hooks/useNormalizeUrl.d.ts +0 -2
- package/typings/hooks/usePageTelemetry.d.ts +0 -3
- package/typings/hooks/usePageViewTelemetry.d.ts +0 -2
- package/typings/hooks/usePerformanceMetricsTelemetry.d.ts +0 -5
- package/typings/hooks/useRouterHashBridge.d.ts +0 -24
- package/typings/hooks/useScrollSpyUrlSync.d.ts +0 -3
- package/typings/hooks/useSearchEngine.d.ts +0 -7
- package/typings/hooks/useSessionSummaryTelemetry.d.ts +0 -7
- package/typings/hooks/useTelemetry.d.ts +0 -2
- package/typings/hooks/useTranslate.d.ts +0 -5
- package/typings/hooks/useUrlHash.d.ts +0 -8
- package/typings/hooks/useUrlHashReassert.d.ts +0 -2
- package/typings/hooks/useUserScrollIntent.d.ts +0 -18
- package/typings/hooks/useVisitedChannelsTracker.d.ts +0 -6
- package/typings/icons/CSharpIcon/CSharpIcon.d.ts +0 -3
- package/typings/icons/CurlIcon/CurlIcon.d.ts +0 -13
- package/typings/icons/DefaultMappingIcon/DefaultMappingIcon.d.ts +0 -13
- package/typings/icons/GOIcon/GOIcon.d.ts +0 -3
- package/typings/icons/JavaIcon/JavaIcon.d.ts +0 -3
- package/typings/icons/JavaScriptIcon/JavaScriptIcon.d.ts +0 -3
- package/typings/icons/ListIcon/ListIcon.d.ts +0 -9
- package/typings/icons/NodeJSIcon/NodeJSIcon.d.ts +0 -3
- package/typings/icons/PHPIcon/PHPIcon.d.ts +0 -3
- package/typings/icons/PayloadIcon/PayloadIcon.d.ts +0 -3
- package/typings/icons/PlusCircleIcon/PlusCircleIcon.d.ts +0 -7
- package/typings/icons/PythonIcon/PythonIcon.d.ts +0 -3
- package/typings/icons/RIcon/RIcon.d.ts +0 -3
- package/typings/icons/RubyIcon/RubyIcon.d.ts +0 -3
- package/typings/index.d.ts +0 -9
- package/typings/jotai/app.d.ts +0 -66
- package/typings/jotai/examples.d.ts +0 -5
- package/typings/jotai/graphql.d.ts +0 -10
- package/typings/jotai/itemStore.d.ts +0 -60
- package/typings/jotai/routes.d.ts +0 -4
- package/typings/jotai/schema.d.ts +0 -3
- package/typings/jotai/store.d.ts +0 -22
- package/typings/jotai/telemetry.d.ts +0 -46
- package/typings/options/constants.d.ts +0 -10
- package/typings/options/editionOverrides.d.ts +0 -3
- package/typings/options/helpers.d.ts +0 -19
- package/typings/options/normalizeOptions.d.ts +0 -2
- package/typings/options/standaloneLayoutVars.d.ts +0 -3
- package/typings/otel-semantic-conventions.d.ts +0 -10
- package/typings/pages/EntryPage.d.ts +0 -25
- package/typings/pages/GroupPage.d.ts +0 -1
- package/typings/pages/ItemPage.d.ts +0 -1
- package/typings/pages/NotFoundPage.d.ts +0 -6
- package/typings/pages/OverviewPage.d.ts +0 -1
- package/typings/pages/TopLevelEntryView.d.ts +0 -17
- package/typings/services/agent-tools/index.d.ts +0 -10
- package/typings/services/agent-tools/operations.d.ts +0 -20
- package/typings/services/agent-tools/results.d.ts +0 -6
- package/typings/services/agent-tools/security.d.ts +0 -13
- package/typings/services/agent-tools/spec-slice-detail.d.ts +0 -12
- package/typings/services/agent-tools/types.d.ts +0 -55
- package/typings/services/agent-tools/webmcp.d.ts +0 -14
- package/typings/services/code-samples/convertSampleToString.d.ts +0 -3
- package/typings/services/code-samples/discriminator.d.ts +0 -65
- package/typings/services/code-samples/example-key.d.ts +0 -13
- package/typings/services/code-samples/index.d.ts +0 -2
- package/typings/services/code-samples/language-availability.d.ts +0 -4
- package/typings/services/code-samples/normalize-servers.d.ts +0 -3
- package/typings/services/code-samples/server-env.d.ts +0 -3
- package/typings/services/code-samples/server-variables.d.ts +0 -9
- package/typings/services/code-samples/source.d.ts +0 -81
- package/typings/services/schema/dialects/graphqlSchema.d.ts +0 -1
- package/typings/services/schema/dialects/jsonSchema.d.ts +0 -7
- package/typings/services/schema/index.d.ts +0 -1
- package/typings/services/schema/propertyBuilder.d.ts +0 -31
- package/typings/services/schema/propertyTreeBuilder.d.ts +0 -21
- package/typings/services/schema/schemaProcessor.d.ts +0 -2
- package/typings/services/schema/variant-label.d.ts +0 -6
- package/typings/services/search/engine/collapse.d.ts +0 -5
- package/typings/services/search/engine/constants.d.ts +0 -22
- package/typings/services/search/engine/flexsearch.d.ts +0 -6
- package/typings/services/search/engine/index.d.ts +0 -11
- package/typings/services/search/engine/lowered.d.ts +0 -34
- package/typings/services/search/engine/match.d.ts +0 -12
- package/typings/services/search/engine/present.d.ts +0 -5
- package/typings/services/search/engine/query.d.ts +0 -6
- package/typings/services/search/engine/score.d.ts +0 -7
- package/typings/services/search/engine/text.d.ts +0 -3
- package/typings/services/search/engine/types.d.ts +0 -19
- package/typings/services/search/highlight.d.ts +0 -3
- package/typings/services/search/indexer/context.d.ts +0 -8
- package/typings/services/search/indexer/deep-links.d.ts +0 -12
- package/typings/services/search/indexer/extractors/asyncapi.d.ts +0 -8
- package/typings/services/search/indexer/extractors/body.d.ts +0 -2
- package/typings/services/search/indexer/extractors/callbacks.d.ts +0 -4
- package/typings/services/search/indexer/extractors/context.d.ts +0 -25
- package/typings/services/search/indexer/extractors/examples.d.ts +0 -3
- package/typings/services/search/indexer/extractors/graphql.d.ts +0 -2
- package/typings/services/search/indexer/extractors/heading-sections.d.ts +0 -3
- package/typings/services/search/indexer/extractors/index.d.ts +0 -11
- package/typings/services/search/indexer/extractors/mcp.d.ts +0 -9
- package/typings/services/search/indexer/extractors/named-rows.d.ts +0 -2
- package/typings/services/search/indexer/extractors/panels.d.ts +0 -10
- package/typings/services/search/indexer/extractors/parameters.d.ts +0 -2
- package/typings/services/search/indexer/extractors/responses.d.ts +0 -2
- package/typings/services/search/indexer/extractors/schema-page.d.ts +0 -9
- package/typings/services/search/indexer/extractors/security.d.ts +0 -4
- package/typings/services/search/indexer/index.d.ts +0 -14
- package/typings/services/search/indexer/param.d.ts +0 -7
- package/typings/services/search/indexer/places.d.ts +0 -36
- package/typings/services/search/indexer/schema-walker.d.ts +0 -29
- package/typings/services/search/indexer/text.d.ts +0 -2
- package/typings/services/search/init.d.ts +0 -7
- package/typings/services/search/text-match.d.ts +0 -5
- package/typings/services/search/types.d.ts +0 -31
- package/typings/services/spec-convert/asyncapi.d.ts +0 -11
- package/typings/services/spec-convert/index.d.ts +0 -5
- package/typings/services/spec-convert/swagger/parameters.d.ts +0 -6
- package/typings/services/spec-convert/swagger/refs.d.ts +0 -34
- package/typings/services/spec-convert/swagger/responses.d.ts +0 -2
- package/typings/services/spec-convert/swagger/schema.d.ts +0 -1
- package/typings/services/spec-convert/swagger.d.ts +0 -7
- package/typings/services/spec-slice/assistant-links.d.ts +0 -9
- package/typings/services/spec-slice/asyncapi-slice.d.ts +0 -5
- package/typings/services/spec-slice/clone-strip.d.ts +0 -1
- package/typings/services/spec-slice/component-closure.d.ts +0 -6
- package/typings/services/spec-slice/graphql-slice.d.ts +0 -2
- package/typings/services/spec-slice/index.d.ts +0 -6
- package/typings/services/spec-slice/openapi-slice.d.ts +0 -6
- package/typings/services/spec-slice/resolve-scope.d.ts +0 -4
- package/typings/services/spec-slice/types.d.ts +0 -37
- package/typings/standalone.d.ts +0 -20
- package/typings/standaloneThemeConfig.d.ts +0 -3
- package/typings/telemetry/RedocTelemetry.d.ts +0 -22
- package/typings/telemetry/TypeOfUsageContext.d.ts +0 -3
- package/typings/telemetry/defaults.d.ts +0 -7
- package/typings/telemetry/events.d.ts +0 -41
- package/typings/telemetry/fields.d.ts +0 -7
- package/typings/telemetry/index.d.ts +0 -15
- package/typings/telemetry/initialPayload.d.ts +0 -56
- package/typings/telemetry/page.d.ts +0 -5
- package/typings/telemetry/reportDefinitionLoadFailed.d.ts +0 -9
- package/typings/telemetry/sanitizeError.d.ts +0 -4
- package/typings/telemetry/security.d.ts +0 -14
- package/typings/telemetry/useRedocTelemetryInstance.d.ts +0 -3
- package/typings/telemetry/useSchemaFieldTelemetry.d.ts +0 -4
- package/typings/telemetry/useSidebarItemTelemetry.d.ts +0 -11
- package/typings/types/asyncapi.d.ts +0 -314
- package/typings/types/code-samples-config.d.ts +0 -12
- package/typings/types/common.d.ts +0 -163
- package/typings/types/content.d.ts +0 -479
- package/typings/types/edition-config.d.ts +0 -6
- package/typings/types/events.d.ts +0 -48
- package/typings/types/graphql-store.d.ts +0 -60
- package/typings/types/graphql.d.ts +0 -53
- package/typings/types/openapi.d.ts +0 -515
- package/typings/types/options.d.ts +0 -90
- package/typings/types/schema.d.ts +0 -162
- package/typings/types/store.d.ts +0 -160
- package/typings/utils/calculateMaxLength.d.ts +0 -6
- package/typings/utils/compose.d.ts +0 -7
- package/typings/utils/cookies.d.ts +0 -7
- package/typings/utils/deep-link.d.ts +0 -163
- package/typings/utils/definitionLoadError.d.ts +0 -7
- package/typings/utils/environments.d.ts +0 -6
- package/typings/utils/expansion.d.ts +0 -3
- package/typings/utils/extract-extensions.d.ts +0 -4
- package/typings/utils/form-urlencoded.d.ts +0 -9
- package/typings/utils/graphql-directive-utils.d.ts +0 -6
- package/typings/utils/graphql-parse.d.ts +0 -1
- package/typings/utils/graphql-reference-map.d.ts +0 -3
- package/typings/utils/graphql-samples.d.ts +0 -29
- package/typings/utils/graphql-scopes.d.ts +0 -6
- package/typings/utils/graphql-type-expansion.d.ts +0 -5
- package/typings/utils/http-methods.d.ts +0 -8
- package/typings/utils/is-record.d.ts +0 -1
- package/typings/utils/languages.d.ts +0 -18
- package/typings/utils/loadAndBundleSpec.d.ts +0 -4
- package/typings/utils/logo.d.ts +0 -8
- package/typings/utils/media-type.d.ts +0 -5
- package/typings/utils/refPointer.d.ts +0 -2
- package/typings/utils/resolveSpec.d.ts +0 -20
- package/typings/utils/resolveText.d.ts +0 -2
- package/typings/utils/routeKind.d.ts +0 -6
- package/typings/utils/routing.d.ts +0 -49
- package/typings/utils/scroll-anchoring.d.ts +0 -4
- package/typings/utils/security-scope.d.ts +0 -3
- package/typings/utils/serialize-parameter.d.ts +0 -8
- package/typings/utils/session-storage.d.ts +0 -2
- package/typings/utils/split-badges-by-position.d.ts +0 -5
- package/typings/utils/status-code.d.ts +0 -1
- package/typings/utils/string.d.ts +0 -14
- package/typings/utils/url.d.ts +0 -9
- package/typings/utils/x-logo.d.ts +0 -13
- package/typings/utils/xml.d.ts +0 -1
- package/typings/utils/yaml.d.ts +0 -2
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import type { Node } from '@markdoc/markdoc';
|
|
2
|
-
import type { AsyncApiDefinition } from './asyncapi';
|
|
3
|
-
import type { ObjectValues } from './common';
|
|
4
|
-
import type { OpenAPIDefinition } from './openapi';
|
|
5
|
-
export type DiscriminatorObject = {
|
|
6
|
-
propertyName?: string;
|
|
7
|
-
mapping?: Record<string, string>;
|
|
8
|
-
defaultMapping?: string;
|
|
9
|
-
'x-explicitMappingOnly'?: boolean;
|
|
10
|
-
};
|
|
11
|
-
export type SchemaNode = {
|
|
12
|
-
type?: string | string[];
|
|
13
|
-
format?: string;
|
|
14
|
-
title?: string;
|
|
15
|
-
description?: string | Node | Node[];
|
|
16
|
-
pattern?: string;
|
|
17
|
-
default?: unknown;
|
|
18
|
-
example?: unknown;
|
|
19
|
-
const?: unknown;
|
|
20
|
-
enum?: string[];
|
|
21
|
-
deprecated?: boolean;
|
|
22
|
-
nullable?: boolean;
|
|
23
|
-
readOnly?: boolean;
|
|
24
|
-
writeOnly?: boolean;
|
|
25
|
-
minimum?: number;
|
|
26
|
-
maximum?: number;
|
|
27
|
-
exclusiveMinimum?: number | boolean;
|
|
28
|
-
exclusiveMaximum?: number | boolean;
|
|
29
|
-
multipleOf?: number;
|
|
30
|
-
minLength?: number;
|
|
31
|
-
maxLength?: number;
|
|
32
|
-
contentEncoding?: string;
|
|
33
|
-
contentMediaType?: string;
|
|
34
|
-
properties?: Record<string, SchemaNode>;
|
|
35
|
-
additionalProperties?: SchemaNode | boolean;
|
|
36
|
-
unevaluatedProperties?: SchemaNode | boolean;
|
|
37
|
-
patternProperties?: Record<string, SchemaNode>;
|
|
38
|
-
required?: string[];
|
|
39
|
-
minProperties?: number;
|
|
40
|
-
maxProperties?: number;
|
|
41
|
-
items?: SchemaNode | SchemaNode[] | boolean;
|
|
42
|
-
prefixItems?: SchemaNode[];
|
|
43
|
-
additionalItems?: SchemaNode | boolean;
|
|
44
|
-
minItems?: number;
|
|
45
|
-
maxItems?: number;
|
|
46
|
-
uniqueItems?: boolean;
|
|
47
|
-
oneOf?: SchemaNode[];
|
|
48
|
-
anyOf?: SchemaNode[];
|
|
49
|
-
allOf?: SchemaNode[];
|
|
50
|
-
if?: SchemaNode;
|
|
51
|
-
then?: SchemaNode;
|
|
52
|
-
else?: SchemaNode;
|
|
53
|
-
discriminator?: DiscriminatorObject;
|
|
54
|
-
$ref?: string;
|
|
55
|
-
externalDocs?: {
|
|
56
|
-
url?: string;
|
|
57
|
-
description?: string;
|
|
58
|
-
};
|
|
59
|
-
'x-circular-ref'?: boolean;
|
|
60
|
-
'x-allof-cycle'?: boolean;
|
|
61
|
-
'x-complex'?: boolean;
|
|
62
|
-
'x-nullable'?: boolean;
|
|
63
|
-
'x-original-ref'?: string;
|
|
64
|
-
'x-badges'?: BadgeType[];
|
|
65
|
-
'x-enumDescriptions'?: Record<string, string | Node | Node[]>;
|
|
66
|
-
'x-additionalPropertiesName'?: string;
|
|
67
|
-
'x-discriminator'?: DiscriminatorObject;
|
|
68
|
-
'x-displayName'?: string;
|
|
69
|
-
'x-parentRefs'?: string[];
|
|
70
|
-
'x-refsStack'?: string[];
|
|
71
|
-
[key: string]: unknown;
|
|
72
|
-
};
|
|
73
|
-
export type AccessMode = 'read-only' | 'write-only' | undefined;
|
|
74
|
-
export type Document = OpenAPIDefinition | AsyncApiDefinition;
|
|
75
|
-
export declare function isSchemaNode(value: unknown): value is SchemaNode;
|
|
76
|
-
export declare function isStructuredExample(example: unknown): example is object;
|
|
77
|
-
export type PropertyType = {
|
|
78
|
-
type: string;
|
|
79
|
-
title?: string;
|
|
80
|
-
schemaName?: string;
|
|
81
|
-
isAdditionalProperty?: boolean;
|
|
82
|
-
isAdditionalItems?: boolean;
|
|
83
|
-
isTupleItem?: boolean;
|
|
84
|
-
isPatternProperty?: boolean;
|
|
85
|
-
isCircular?: boolean;
|
|
86
|
-
isComplex?: boolean;
|
|
87
|
-
isExpandable?: boolean;
|
|
88
|
-
isRequired?: boolean;
|
|
89
|
-
isDeprecated?: boolean;
|
|
90
|
-
description?: string | Node | Node[];
|
|
91
|
-
pattern?: string;
|
|
92
|
-
example?: string | object;
|
|
93
|
-
badges?: BadgeType[];
|
|
94
|
-
default?: string;
|
|
95
|
-
accessMode?: AccessMode;
|
|
96
|
-
enum?: Record<string, string | Node | Node[]> | string[];
|
|
97
|
-
examples?: Record<string, ExampleType>;
|
|
98
|
-
extensions?: Record<string, string>;
|
|
99
|
-
externalDocs?: ExternalDocsType;
|
|
100
|
-
const?: string;
|
|
101
|
-
properties?: Record<string, PropertyType>;
|
|
102
|
-
items?: PropertyType[];
|
|
103
|
-
switcher?: SwitcherType;
|
|
104
|
-
};
|
|
105
|
-
export type BadgeType = {
|
|
106
|
-
name: string;
|
|
107
|
-
position: 'before' | 'after';
|
|
108
|
-
color: string;
|
|
109
|
-
};
|
|
110
|
-
export type ExampleType = {
|
|
111
|
-
summary?: string;
|
|
112
|
-
description?: string;
|
|
113
|
-
value?: string;
|
|
114
|
-
};
|
|
115
|
-
export type ExternalDocsType = {
|
|
116
|
-
description: string;
|
|
117
|
-
url: string;
|
|
118
|
-
};
|
|
119
|
-
export declare const switcherLabel: {
|
|
120
|
-
readonly DISCRIMINATOR: 'Discriminator';
|
|
121
|
-
readonly ONE_OF: 'One of:';
|
|
122
|
-
readonly ANY_OF: 'Any of:';
|
|
123
|
-
};
|
|
124
|
-
export type SwitcherLabel = ObjectValues<typeof switcherLabel>;
|
|
125
|
-
export type OneOfChangeParams = {
|
|
126
|
-
pointer: string;
|
|
127
|
-
index: number;
|
|
128
|
-
};
|
|
129
|
-
export type SwitcherType = {
|
|
130
|
-
type: 'discriminator' | 'oneOf';
|
|
131
|
-
label: SwitcherLabel;
|
|
132
|
-
propertyName?: string;
|
|
133
|
-
jsonPointer?: string;
|
|
134
|
-
options: Record<string, SwitcherOptionType>;
|
|
135
|
-
/** The host is itself one of the variants: only its discriminator property is shared. */
|
|
136
|
-
sharesOnlyDiscriminator?: boolean;
|
|
137
|
-
};
|
|
138
|
-
export type SwitcherOptionType = {
|
|
139
|
-
isDeprecated: boolean;
|
|
140
|
-
isDefaultMapping: boolean;
|
|
141
|
-
isCircular?: boolean;
|
|
142
|
-
description?: string | Node | Node[];
|
|
143
|
-
constraints?: string[];
|
|
144
|
-
properties?: Record<string, PropertyType>;
|
|
145
|
-
items?: PropertyType[];
|
|
146
|
-
switcher?: SwitcherType;
|
|
147
|
-
typeLabel?: string;
|
|
148
|
-
title?: string;
|
|
149
|
-
schemaName?: string;
|
|
150
|
-
accessMode?: AccessMode;
|
|
151
|
-
enum?: Record<string, string | Node | Node[]> | string[];
|
|
152
|
-
};
|
|
153
|
-
export type SchemaProcessorDialect = {
|
|
154
|
-
readonly id: string;
|
|
155
|
-
process(schema: SchemaNode, document: Document, options?: SchemaProcessorOptions): PropertyType;
|
|
156
|
-
};
|
|
157
|
-
export type SchemaProcessorOptions = {
|
|
158
|
-
dialectId?: string;
|
|
159
|
-
rootJsonPointer?: string;
|
|
160
|
-
exampleSerializer?: (value: unknown) => string;
|
|
161
|
-
sortRequiredPropsFirst?: boolean;
|
|
162
|
-
};
|
package/typings/types/store.d.ts
DELETED
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import type { ResolvedNavItem } from '@redocly/config';
|
|
2
|
-
import type { DocumentNode } from 'graphql';
|
|
3
|
-
import type { Node } from '@markdoc/markdoc';
|
|
4
|
-
import type { ApiSpecType, AsyncApiSecuritySchemeType, Badge, BadgeData, ContentType, ItemVariant, SecuritySchemeIn, SecuritySchemeType, ServerData, SidebarLogo, SchemaKind } from './common.js';
|
|
5
|
-
import type { McpTool, McpResource, McpPrompt, OpenAPIDefinition } from './openapi.js';
|
|
6
|
-
import type { AsyncApiDefinition } from './asyncapi.js';
|
|
7
|
-
import type { ApiDocsOptions } from './options.js';
|
|
8
|
-
import type { ContentNode } from './content.js';
|
|
9
|
-
import type { GraphqlStoreMeta } from './graphql-store.js';
|
|
10
|
-
export type AdapterBuildContextInput = {
|
|
11
|
-
options: ApiDocsOptions;
|
|
12
|
-
basePath: string;
|
|
13
|
-
};
|
|
14
|
-
export type ApiDocAdapterProps = {
|
|
15
|
-
type: ApiSpecType;
|
|
16
|
-
document: OpenAPIDefinition | AsyncApiDefinition | DocumentNode;
|
|
17
|
-
options: ApiDocsOptions;
|
|
18
|
-
basePath: string;
|
|
19
|
-
};
|
|
20
|
-
export type StoreContext = {
|
|
21
|
-
schemaStore: Record<string, SchemaEntry>;
|
|
22
|
-
exampleStore: Record<string, ExampleEntry>;
|
|
23
|
-
securitySchemeStore: Record<string, SecuritySchemeEntry>;
|
|
24
|
-
hashIndex: Record<string, string>;
|
|
25
|
-
document: Record<string, unknown>;
|
|
26
|
-
};
|
|
27
|
-
export type ApiItemContent = {
|
|
28
|
-
contentType: ContentType;
|
|
29
|
-
itemVariant?: ItemVariant;
|
|
30
|
-
meta?: ItemMeta;
|
|
31
|
-
children: ContentNode[];
|
|
32
|
-
showDivider?: boolean;
|
|
33
|
-
};
|
|
34
|
-
export type BreadcrumbItem = {
|
|
35
|
-
label: string;
|
|
36
|
-
};
|
|
37
|
-
export type ItemMeta = {
|
|
38
|
-
name?: string;
|
|
39
|
-
deprecated?: boolean;
|
|
40
|
-
isWebhook?: boolean;
|
|
41
|
-
hasSamples?: boolean;
|
|
42
|
-
badges?: BadgeData[];
|
|
43
|
-
pointer?: string;
|
|
44
|
-
position?: {
|
|
45
|
-
start: {
|
|
46
|
-
lineNumber: number;
|
|
47
|
-
column: number;
|
|
48
|
-
};
|
|
49
|
-
end?: {
|
|
50
|
-
lineNumber: number;
|
|
51
|
-
column: number;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
protocolTag?: {
|
|
55
|
-
label: string;
|
|
56
|
-
color: string;
|
|
57
|
-
};
|
|
58
|
-
breadcrumbs?: BreadcrumbItem[];
|
|
59
|
-
action?: 'send' | 'receive';
|
|
60
|
-
actionLabel?: string;
|
|
61
|
-
channelBindings?: Record<string, unknown>;
|
|
62
|
-
returnType?: string;
|
|
63
|
-
};
|
|
64
|
-
export type ApiItem = ResolvedNavItem & {
|
|
65
|
-
content: ApiItemContent | null;
|
|
66
|
-
httpVerb?: string;
|
|
67
|
-
};
|
|
68
|
-
export type SchemaEntry = {
|
|
69
|
-
id: string;
|
|
70
|
-
kind: SchemaKind;
|
|
71
|
-
title?: string;
|
|
72
|
-
data: Record<string, unknown>;
|
|
73
|
-
};
|
|
74
|
-
export type ExampleEntry = {
|
|
75
|
-
id: string;
|
|
76
|
-
value: unknown;
|
|
77
|
-
key?: string;
|
|
78
|
-
summary?: string;
|
|
79
|
-
description?: string | Node | Node[];
|
|
80
|
-
mediaType?: string;
|
|
81
|
-
externalValue?: string;
|
|
82
|
-
/** Header values of an AsyncAPI message example. */
|
|
83
|
-
headers?: Record<string, unknown>;
|
|
84
|
-
};
|
|
85
|
-
export type OAuthFlowEntry = {
|
|
86
|
-
authorizationUrl?: string;
|
|
87
|
-
tokenUrl?: string;
|
|
88
|
-
refreshUrl?: string;
|
|
89
|
-
deviceAuthorizationUrl?: string;
|
|
90
|
-
scopes?: Record<string, string>;
|
|
91
|
-
};
|
|
92
|
-
export type OAuthFlowsData = {
|
|
93
|
-
implicit?: {
|
|
94
|
-
authorizationUrl?: string;
|
|
95
|
-
refreshUrl?: string;
|
|
96
|
-
scopes: Record<string, string>;
|
|
97
|
-
};
|
|
98
|
-
password?: {
|
|
99
|
-
tokenUrl: string;
|
|
100
|
-
refreshUrl?: string;
|
|
101
|
-
scopes: Record<string, string>;
|
|
102
|
-
};
|
|
103
|
-
clientCredentials?: {
|
|
104
|
-
tokenUrl: string;
|
|
105
|
-
refreshUrl?: string;
|
|
106
|
-
scopes: Record<string, string>;
|
|
107
|
-
};
|
|
108
|
-
authorizationCode?: {
|
|
109
|
-
authorizationUrl: string;
|
|
110
|
-
tokenUrl: string;
|
|
111
|
-
refreshUrl?: string;
|
|
112
|
-
scopes: Record<string, string>;
|
|
113
|
-
'x-usePkce'?: boolean;
|
|
114
|
-
};
|
|
115
|
-
deviceAuthorization?: {
|
|
116
|
-
deviceAuthorizationUrl: string;
|
|
117
|
-
tokenUrl: string;
|
|
118
|
-
refreshUrl?: string;
|
|
119
|
-
scopes: Record<string, string>;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
export type SecuritySchemeEntry = {
|
|
123
|
-
id: string;
|
|
124
|
-
type: SecuritySchemeType | AsyncApiSecuritySchemeType;
|
|
125
|
-
scheme?: string;
|
|
126
|
-
bearerFormat?: string;
|
|
127
|
-
description?: string | Node[] | Node;
|
|
128
|
-
in?: SecuritySchemeIn | 'user' | 'password';
|
|
129
|
-
paramName?: string;
|
|
130
|
-
scopes?: string[];
|
|
131
|
-
openIdConnectUrl?: string;
|
|
132
|
-
deprecated?: boolean;
|
|
133
|
-
oauth2MetadataUrl?: string;
|
|
134
|
-
flows?: OAuthFlowsData;
|
|
135
|
-
};
|
|
136
|
-
export type GroupItem = {
|
|
137
|
-
title: string;
|
|
138
|
-
summary?: string;
|
|
139
|
-
prefix?: Badge;
|
|
140
|
-
badges?: Badge[];
|
|
141
|
-
link: string;
|
|
142
|
-
deprecated: boolean;
|
|
143
|
-
childTag?: boolean;
|
|
144
|
-
};
|
|
145
|
-
export type McpData = {
|
|
146
|
-
tools?: McpTool[];
|
|
147
|
-
resources?: McpResource[];
|
|
148
|
-
prompts?: McpPrompt[];
|
|
149
|
-
};
|
|
150
|
-
export type ApiStore = {
|
|
151
|
-
schemaStore: Record<string, SchemaEntry>;
|
|
152
|
-
exampleStore: Record<string, ExampleEntry>;
|
|
153
|
-
securitySchemeStore: Record<string, SecuritySchemeEntry>;
|
|
154
|
-
graphqlMeta?: GraphqlStoreMeta;
|
|
155
|
-
servers?: ServerData[];
|
|
156
|
-
mcp?: McpData;
|
|
157
|
-
/** From OpenAPI `info.x-logo`. Rendered by the standalone sidebar. */
|
|
158
|
-
logo?: SidebarLogo;
|
|
159
|
-
specType?: ApiSpecType;
|
|
160
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ComponentType, FC } from 'react';
|
|
2
|
-
type HOC<P> = (Component: ComponentType<P>) => FC<P>;
|
|
3
|
-
export declare function compose<P>(f: HOC<P>): (Component: ComponentType<P>) => FC<P>;
|
|
4
|
-
export declare function compose<P>(f: HOC<P>, g: HOC<P>): (Component: ComponentType<P>) => FC<P>;
|
|
5
|
-
export declare function compose<P>(f: HOC<P>, g: HOC<P>, h: HOC<P>): (Component: ComponentType<P>) => FC<P>;
|
|
6
|
-
export declare function compose<P>(f: HOC<P>, g: HOC<P>, h: HOC<P>, i: HOC<P>): (Component: ComponentType<P>) => FC<P>;
|
|
7
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare function setCookie(name: string | number | boolean, value: string, attributes?: {
|
|
2
|
-
[x: string]: string | number | Date | boolean;
|
|
3
|
-
}): string | undefined;
|
|
4
|
-
export declare function getCookie(name: string, serverString?: string): string;
|
|
5
|
-
export declare function removeCookie(name: string, attributes?: {
|
|
6
|
-
[x: string]: string | number | Date | boolean;
|
|
7
|
-
}): void;
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import type { RouteIndex } from './routing.js';
|
|
2
|
-
/**
|
|
3
|
-
* Serialize key-value params into a query-string fragment:
|
|
4
|
-
* keys in insertion order, no encoding, undefined values omitted.
|
|
5
|
-
*/
|
|
6
|
-
export declare function serializeFieldParams(params: Record<string, string | undefined>): string;
|
|
7
|
-
/**
|
|
8
|
-
* Build a deep-link path+hash string for a given operation slug and suffix:
|
|
9
|
-
* `/{operationId}#{operationId}/{suffix}` (all lowercased, backslashes encoded).
|
|
10
|
-
*
|
|
11
|
-
* `operationId` must be a basePath-free slug (e.g. `cafe/placeorder`) — a
|
|
12
|
-
* leading slash is stripped defensively so the output is well-formed even
|
|
13
|
-
* if a caller hands in `/cafe/placeorder`.
|
|
14
|
-
*/
|
|
15
|
-
export declare function makeDeepLink(operationId: string, suffix: string): string;
|
|
16
|
-
/**
|
|
17
|
-
* Build a full deep-link URL by combining routing base, operation id, and suffix.
|
|
18
|
-
*/
|
|
19
|
-
export declare function buildDeepLinkUrl(routingBasePath: string, operationId: string, suffix: string): string;
|
|
20
|
-
/**
|
|
21
|
-
* Extract element id from a URL hash (strip `#`, decode, lowercase).
|
|
22
|
-
* The returned value can be passed to `document.getElementById`.
|
|
23
|
-
*/
|
|
24
|
-
export declare function hashToElementId(hash: string): string;
|
|
25
|
-
/**
|
|
26
|
-
* Extract the hash fragment from a deep link URL for use as an element id.
|
|
27
|
-
* Given `/petstore/pet/getpetbyid#pet/getpetbyid/request`, returns `pet/getpetbyid/request`.
|
|
28
|
-
* Returns empty string if no hash is present.
|
|
29
|
-
*/
|
|
30
|
-
export declare function deepLinkToId(deepLink: string): string;
|
|
31
|
-
interface OpenApiFieldParams {
|
|
32
|
-
/** "request" | "response" */
|
|
33
|
-
t?: string;
|
|
34
|
-
/** "query" | "header" | "path" | "cookie" */
|
|
35
|
-
in?: string;
|
|
36
|
-
/** Response status code (responses only) */
|
|
37
|
-
c?: string;
|
|
38
|
-
/** Callback id (callbacks only) */
|
|
39
|
-
cb?: string;
|
|
40
|
-
/** Content-type name (when multiple media types) */
|
|
41
|
-
ct?: string;
|
|
42
|
-
/** Field deep path */
|
|
43
|
-
path?: string;
|
|
44
|
-
}
|
|
45
|
-
/** Build a suffix for an OpenAPI request/response/callback field. */
|
|
46
|
-
export declare function buildOpenApiFieldSuffix(params: OpenApiFieldParams): string;
|
|
47
|
-
/**
|
|
48
|
-
* Build section-level suffix for OpenAPI requests/responses.
|
|
49
|
-
*
|
|
50
|
-
* Examples:
|
|
51
|
-
* buildOpenApiSectionSuffix('request') -> "request"
|
|
52
|
-
* buildOpenApiSectionSuffix('request', 'query') -> "request/query"
|
|
53
|
-
* buildOpenApiSectionSuffix('response', undefined, '200') -> "response&c=200"
|
|
54
|
-
* buildOpenApiSectionSuffix('response', 'body', '200') -> "response&c=200/body"
|
|
55
|
-
* buildOpenApiSectionSuffix('response', 'headers', '200') -> "response&c=200/headers"
|
|
56
|
-
* buildOpenApiSectionSuffix('callbacks') -> "callbacks"
|
|
57
|
-
* buildOpenApiSectionSuffix('callbacks', 'myCallback') -> "callbacks/myCallback"
|
|
58
|
-
*/
|
|
59
|
-
export declare function buildOpenApiSectionSuffix(section: string, subSection?: string, responseCode?: string): string;
|
|
60
|
-
export interface AsyncApiSuffixParams {
|
|
61
|
-
/** "send" | "receive" | "parameters" | "messages" */
|
|
62
|
-
section: string;
|
|
63
|
-
/** Message key/name (when linking to a specific message) */
|
|
64
|
-
messageKey?: string;
|
|
65
|
-
/** Sub-section: "headers" | "payload" */
|
|
66
|
-
subsection?: string;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Build a suffix for AsyncAPI sections.
|
|
70
|
-
*
|
|
71
|
-
* Examples:
|
|
72
|
-
* { section: 'send' } -> "send"
|
|
73
|
-
* { section: 'parameters' } -> "parameters"
|
|
74
|
-
* { section: 'messages', messageKey: 'userSignedUp' } -> "messages&m=userSignedUp"
|
|
75
|
-
* { section: 'messages', messageKey: 'msg1', subsection: 'headers' }
|
|
76
|
-
* -> "messages&m=msg1&t=headers"
|
|
77
|
-
* { section: 'messages', messageKey: 'msg1', subsection: 'payload' }
|
|
78
|
-
* -> "messages&m=msg1&t=payload"
|
|
79
|
-
*/
|
|
80
|
-
export declare function buildAsyncApiSuffix(params: AsyncApiSuffixParams): string;
|
|
81
|
-
export interface GraphqlSuffixParams {
|
|
82
|
-
/** Section type: "field" | "argument" | "return-type" | "possible-types" |
|
|
83
|
-
* "implements" | "directive" | "enum-value" | "scalar" */
|
|
84
|
-
t: string;
|
|
85
|
-
/** Stable path: e.g. "Query.hero", "User.friends" */
|
|
86
|
-
path?: string;
|
|
87
|
-
/** Argument name (when t=argument or nested under a field) */
|
|
88
|
-
arg?: string;
|
|
89
|
-
/** Return-type anchor ("1" or nested path when expanded) */
|
|
90
|
-
rt?: string;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Build a suffix for GraphQL deep links.
|
|
94
|
-
*
|
|
95
|
-
* Examples:
|
|
96
|
-
* { t: 'field', path: 'Query.hero' } -> "t=field&path=Query.hero"
|
|
97
|
-
* { t: 'argument', path: 'Query.hero', arg: 'id' }
|
|
98
|
-
* -> "t=argument&path=Query.hero&arg=id"
|
|
99
|
-
* { t: 'return-type', path: 'Query.hero', rt: '1' }
|
|
100
|
-
* -> "t=return-type&path=Query.hero&rt=1"
|
|
101
|
-
*/
|
|
102
|
-
export declare function buildGraphqlSuffix(params: GraphqlSuffixParams): string;
|
|
103
|
-
export declare function isGraphqlDeepLinkAncestor(hash: string, path: string): boolean;
|
|
104
|
-
/**
|
|
105
|
-
* Convert a deep-link URL to an element id, returning `undefined` for empty/missing links.
|
|
106
|
-
* Shorthand for the common pattern `id={url ? deepLinkToId(url) : undefined}`.
|
|
107
|
-
*/
|
|
108
|
-
export declare function getDeepLinkId(deepLink: string | undefined): string | undefined;
|
|
109
|
-
export declare function appendVariantSuffix(fieldParentsName: string[] | undefined, suffix: string): string[];
|
|
110
|
-
export declare function appendArraySuffix(fieldParentsName: string[]): string[];
|
|
111
|
-
/**
|
|
112
|
-
* Remove variant deep-link markers (`&oneof=N`, `&d=N`) from a field-parent path
|
|
113
|
-
* piece, leaving the human-readable name(s). The markers can sit mid-path
|
|
114
|
-
* (e.g. `_embedded.quote&d=0.order` -> `_embedded.quote.order`), so they must be
|
|
115
|
-
* stripped in place rather than split off. Returns `''` when the piece was only a
|
|
116
|
-
* marker (e.g. `&d=0`), so callers can skip it in the breadcrumb.
|
|
117
|
-
*/
|
|
118
|
-
export declare function stripVariantMarkers(name: string): string;
|
|
119
|
-
/** Remove `[]` array-item markers from a deep-link path piece; legacy links carry none. */
|
|
120
|
-
export declare function stripArrayMarkers(value: string): string;
|
|
121
|
-
/**
|
|
122
|
-
* Keep only the variant markers (`&oneof=N` / `&d=N`) from each parent path piece,
|
|
123
|
-
* dropping plain field-name bases. Used at shallow render levels where breadcrumbs are
|
|
124
|
-
* suppressed, so a switched tab stays reload-reachable without showing a field prefix.
|
|
125
|
-
*/
|
|
126
|
-
export declare function variantMarkersOnly(fieldParentsName: string[] | undefined): string[];
|
|
127
|
-
/**
|
|
128
|
-
* Extract a deep-link parameter value from a URL hash.
|
|
129
|
-
* The search is case-insensitive and values are returned lowercased.
|
|
130
|
-
*/
|
|
131
|
-
export declare function extractDeepLinkParamFromHash(hash: string, key: 'c' | 'm' | 'ct' | 'ex'): string | undefined;
|
|
132
|
-
/** Section name owning a callback's suffixes: `callbacks/<callbackId>[/…]`. */
|
|
133
|
-
export declare const CALLBACKS_SECTION = "callbacks";
|
|
134
|
-
/** Sub-section anchors a callback owns. Emitted by `CallbacksSection` and matched here, so
|
|
135
|
-
* the spelling is a contract — legacy links use these exact names. */
|
|
136
|
-
export declare const CALLBACK_REQUEST_SECTION = "callback-request";
|
|
137
|
-
export declare const CALLBACK_RESPONSE_SECTION = "callback-response";
|
|
138
|
-
export declare function stripCallbacksSegment(id: string): string;
|
|
139
|
-
/** Whether a hash id addresses the given item at all — it, or anything beneath it. */
|
|
140
|
-
export declare function hashIsForItem(hashId: string, itemId: string): boolean;
|
|
141
|
-
/** `itemId` must be in hash shape (basePath-free, lowercased); two operations can hold a
|
|
142
|
-
* callback with the same id, so the item has to match before the callback does. Any missing
|
|
143
|
-
* argument answers `false`, so callers needn't pre-check. */
|
|
144
|
-
export declare function hashTargetsCallback(hash: string, itemId: string, callbackId: string | undefined): boolean;
|
|
145
|
-
/** Whether a hash id addresses something inside the given callback.
|
|
146
|
-
* `hashId` and `itemId` are expected lowercased, as `hashToElementId` returns them. */
|
|
147
|
-
export declare function hashIsInsideCallback(hashId: string, itemId: string, callbackId: string): boolean;
|
|
148
|
-
/**
|
|
149
|
-
* Whether a hash id addresses the operation level, outside every callback. Only the part of
|
|
150
|
-
* the hash *after* the item id is examined, so an operation or tag whose own slug contains a
|
|
151
|
-
* marker (`/callback-response`) can't be mistaken for one either.
|
|
152
|
-
*/
|
|
153
|
-
export declare function hashIsOutsideCallbacks(hashId: string, itemId: string): boolean;
|
|
154
|
-
/**
|
|
155
|
-
* Detect legacy openapi hash patterns and return normalized suffix.
|
|
156
|
-
* Matches: #tag/..., #operation/..., #paths/...
|
|
157
|
-
*/
|
|
158
|
-
export declare function getLegacyHash(hash: string): string;
|
|
159
|
-
/** Map a legacy single-page hash (`#section/…`, `#tag/…`, `#operation/…`) to its route URL in
|
|
160
|
-
* the multi-page engine; `undefined` for a genuine in-page anchor (e.g. a field deep link).
|
|
161
|
-
* A sub-section tail past the route (`#operation/<id>/callbacks`) becomes the element-id hash. */
|
|
162
|
-
export declare function resolveLegacyHashToRoute(hash: string, basePath: string, routeIndex: RouteIndex): string | undefined;
|
|
163
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type DefinitionLoadStage = 'fetch' | 'parse' | 'bundle' | 'unsupported';
|
|
2
|
-
export declare class DefinitionLoadError extends Error {
|
|
3
|
-
readonly stage: DefinitionLoadStage;
|
|
4
|
-
readonly httpStatus: number | undefined;
|
|
5
|
-
constructor(stage: DefinitionLoadStage, message: string, httpStatus?: number);
|
|
6
|
-
}
|
|
7
|
-
export declare function errorMessage(error: unknown): string;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { Node } from '@markdoc/markdoc';
|
|
2
|
-
import type { OpenAPIServer } from '../types/openapi.js';
|
|
3
|
-
export type EnvironmentData = Record<string, Record<string, string>>;
|
|
4
|
-
export declare function mergeEnvData(env1: EnvironmentData, env2?: EnvironmentData): EnvironmentData;
|
|
5
|
-
export declare function getServerEnvName(server: Pick<OpenAPIServer, 'name' | 'description' | 'url'>): string | Node[] | Node;
|
|
6
|
-
export declare const IS_BROWSER: boolean;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare function isWithinExpansionLevel(level: number, schemasExpansionLevel: number | undefined, fallbackLevel: number): boolean;
|
|
2
|
-
export declare const REQUIRED_EXPAND_LEVEL = 4;
|
|
3
|
-
export declare function isRequiredAutoExpanded(level: number, required: boolean | undefined, schemasExpansionLevel: number | undefined): boolean;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export type GenericObject = Record<string, unknown>;
|
|
2
|
-
export declare function isRedocExtension(key: string): boolean;
|
|
3
|
-
export declare function extractExtensions(obj: GenericObject, showExtensions: string[] | true): GenericObject;
|
|
4
|
-
export declare function getExtensionsForDisplay(obj: GenericObject, showExtensions: string[] | boolean): GenericObject;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export type FormFieldEncoding = {
|
|
2
|
-
contentType?: string;
|
|
3
|
-
style?: string;
|
|
4
|
-
explode?: boolean;
|
|
5
|
-
allowReserved?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare function pickFormEncoding(encoding: Record<string, FormFieldEncoding | null> | undefined): Record<string, FormFieldEncoding> | undefined;
|
|
8
|
-
export declare function formUrlEncodeValue(value: unknown, encoding?: Record<string, FormFieldEncoding>): string;
|
|
9
|
-
export declare function stringifyFormFieldValue(value: unknown): string;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { GraphQLNamedType, GraphQLEnumValue, GraphQLField, GraphQLArgument, GraphQLInputField, GraphQLSchema } from 'graphql';
|
|
2
|
-
import type { GraphQLInfo } from '../types/graphql.js';
|
|
3
|
-
import type { RequiresScopesDirective } from './graphql-scopes.js';
|
|
4
|
-
export type DirectiveTarget = GraphQLNamedType | GraphQLEnumValue | GraphQLField<any, any> | GraphQLArgument | GraphQLInputField;
|
|
5
|
-
export declare function getRequiresScopesDirective(type: DirectiveTarget): RequiresScopesDirective | null;
|
|
6
|
-
export declare function extractInfoFromDirectives(schema: GraphQLSchema): GraphQLInfo | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { parse } from 'graphql';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { SchemaEntry } from '../types/store.js';
|
|
2
|
-
import type { GraphqlStoreMeta, GraphqlTypeReference } from '../types/graphql-store.js';
|
|
3
|
-
export declare function buildGraphqlReferenceMap(schemaStore: Record<string, SchemaEntry>, rootTypes?: GraphqlStoreMeta['rootTypes']): Record<string, GraphqlTypeReference[]>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { ApiStore, SchemaEntry } from '../types/store.js';
|
|
2
|
-
import type { GraphqlStoreFieldData, GraphqlTypeData } from '../types/graphql-store.js';
|
|
3
|
-
export declare const INDENTATION = " ";
|
|
4
|
-
export declare const CONNECTION_FIELDS: ReadonlySet<string>;
|
|
5
|
-
export type GraphqlTypeLookup = (name: string) => GraphqlTypeData | undefined;
|
|
6
|
-
export declare function createGraphqlTypeLookup(schemaStore: Record<string, SchemaEntry>): GraphqlTypeLookup;
|
|
7
|
-
export declare function getOperationFromStore(store: Pick<ApiStore, 'schemaStore' | 'graphqlMeta'>, operationType: 'query' | 'mutation' | 'subscription', operationName: string): GraphqlStoreFieldData | undefined;
|
|
8
|
-
type ParsedTypeNotation = {
|
|
9
|
-
kind: 'named';
|
|
10
|
-
name: string;
|
|
11
|
-
} | {
|
|
12
|
-
kind: 'list';
|
|
13
|
-
ofType: ParsedTypeNotation;
|
|
14
|
-
} | {
|
|
15
|
-
kind: 'non-null';
|
|
16
|
-
ofType: ParsedTypeNotation;
|
|
17
|
-
};
|
|
18
|
-
export declare function parseTypeNotation(display: string): ParsedTypeNotation;
|
|
19
|
-
export declare function getScalarExample(typeName: string): unknown;
|
|
20
|
-
export declare function getTypeExample(display: string, lookup: GraphqlTypeLookup, expandLevel: number, level?: number): unknown;
|
|
21
|
-
type SampleLabels = {
|
|
22
|
-
argumentsHere: string;
|
|
23
|
-
fragment: string;
|
|
24
|
-
};
|
|
25
|
-
export declare function getVariablesDeclaration(args: GraphqlStoreFieldData[], multiline: boolean): string;
|
|
26
|
-
export declare function generateOperationExample(operationType: 'query' | 'mutation' | 'subscription', operation: GraphqlStoreFieldData, lookup: GraphqlTypeLookup, expandLevel: number, multilineArguments?: boolean, labels?: Partial<SampleLabels>): string;
|
|
27
|
-
export declare function generateOperationVariablesExample(args: GraphqlStoreFieldData[], lookup: GraphqlTypeLookup, expandLevel: number): Record<string, unknown>;
|
|
28
|
-
export declare function generateOperationResponseExample(typeDisplay: string, lookup: GraphqlTypeLookup, expandLevel: number): object;
|
|
29
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { GraphqlRequiresScopes } from '../types/graphql-store.js';
|
|
2
|
-
export interface RequiresScopesDirective {
|
|
3
|
-
scopes: string[][];
|
|
4
|
-
parentScopes?: string[][];
|
|
5
|
-
}
|
|
6
|
-
export declare function mergeRequiresScopes(fieldScopes: GraphqlRequiresScopes | null | undefined, parentScopes: GraphqlRequiresScopes | null | undefined): RequiresScopesDirective | null;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { GraphqlStoreFieldData, GraphqlTypeData } from '../types/graphql-store.js';
|
|
2
|
-
import type { GraphqlTypeLookup } from './graphql-samples.js';
|
|
3
|
-
export declare function isGraphqlFieldExpandable(field: GraphqlStoreFieldData, fieldExpandLevel: number, maxFieldExpandLevel: number, lookup: GraphqlTypeLookup): boolean;
|
|
4
|
-
export declare function graphqlTypeHasExpandableFields(data: GraphqlTypeData | undefined, fieldExpandLevel: number, maxFieldExpandLevel: number, lookup: GraphqlTypeLookup): boolean;
|
|
5
|
-
export declare function countNamedTypeFields(typeName: string, lookup: GraphqlTypeLookup): number;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* OpenAPI operation (HTTP method) keys recognized on a path item, including
|
|
3
|
-
* the OpenAPI 3.2 `query` / vendor `x-query` operations. Shared by the
|
|
4
|
-
* adapter build context and the public `isOperationName` guard.
|
|
5
|
-
*/
|
|
6
|
-
export declare const HTTP_METHODS: ReadonlySet<string>;
|
|
7
|
-
/** Returns `true` when `key` names an OpenAPI operation on a path item. */
|
|
8
|
-
export declare function isOperationName(key: string): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Language } from '../types/openapi.js';
|
|
2
|
-
/** Every language `codeSamples.languages` accepts. `label` is what users write in config. */
|
|
3
|
-
export declare const DEFAULT_LANGUAGES: Language[];
|
|
4
|
-
/** Tab identity — a custom `label` names the tab. */
|
|
5
|
-
export declare function getLangKey({ lang, label }: {
|
|
6
|
-
lang: string;
|
|
7
|
-
label?: string;
|
|
8
|
-
}): string;
|
|
9
|
-
/** Language to generate code in — a custom `label` never changes it. */
|
|
10
|
-
export declare function getGeneratorKey({ lang }: {
|
|
11
|
-
lang: string;
|
|
12
|
-
}): string;
|
|
13
|
-
/**
|
|
14
|
-
* Grammar for the syntax highlighter, resolved from the configured language name. Keep this the
|
|
15
|
-
* only place a language is turned into a grammar: it is many-to-one (`Node.js` and `JavaScript`
|
|
16
|
-
* both highlight as JavaScript, `Payload` as JSON), so a grammar can never identify a language.
|
|
17
|
-
*/
|
|
18
|
-
export declare function getSyntaxHighlightLang(lang: string): string;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { RedocConfig } from '@redocly/config';
|
|
2
|
-
import type { OpenAPIDefinition } from '../types/openapi.js';
|
|
3
|
-
export declare function loadOpenapiConfig(): Promise<RedocConfig>;
|
|
4
|
-
export declare function loadAndBundleDefinition(specUrlOrObject: Record<string, unknown> | string): Promise<OpenAPIDefinition>;
|
package/typings/utils/logo.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { RawLogo, SidebarLogo } from '../types/common.js';
|
|
2
|
-
/**
|
|
3
|
-
* Normalizes an authored `{ url }` logo (OpenAPI `info.x-logo`, the standalone `logo` prop) into
|
|
4
|
-
* the `{ imageUrl }` shape the sidebar renders. `hrefFallback` covers OpenAPI's `info.contact.url`.
|
|
5
|
-
* Without an image there is nothing to render, hence `undefined` — which is also what lets
|
|
6
|
-
* callers fall through to the next logo source with `??`.
|
|
7
|
-
*/
|
|
8
|
-
export declare function toSidebarLogo(raw: RawLogo | undefined, hrefFallback?: string): SidebarLogo | undefined;
|