redoc 3.0.0-rc.2 → 3.0.0-rc.4
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 +325 -30
- package/bundles/redoc.js +1088 -1359
- package/bundles/redoc.standalone.d.ts +325 -30
- package/bundles/redoc.standalone.js +999 -1083
- package/package.json +39 -33
- 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
package/bundles/redoc.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import type { AdmonitionProps } from '@redocly/theme/components/Admonition/Admonition';
|
|
2
1
|
import type { AsyncApiConfig } from '@redocly/config';
|
|
3
2
|
import type { EventType } from '@redocly/redoc-opentelemetry';
|
|
4
3
|
import { FC } from 'react';
|
|
5
4
|
import type { GraphQLConfig } from '@redocly/config';
|
|
6
|
-
import type { JSONSchema7 } from 'json-schema';
|
|
7
5
|
import type { LayoutVariant } from '@redocly/config';
|
|
8
|
-
import type { Node as Node_2 } from '@markdoc/markdoc';
|
|
9
6
|
import type { ReactElement } from 'react';
|
|
10
7
|
import type { ReactNode } from 'react';
|
|
11
8
|
import type { RedocConfig } from '@redocly/config';
|
|
@@ -20,6 +17,17 @@ declare type AdmonitionNode = {
|
|
|
20
17
|
content?: string | Node_2[] | Node_2;
|
|
21
18
|
};
|
|
22
19
|
|
|
20
|
+
declare type AdmonitionProps = Partial<AdmonitionTypeProps> & {
|
|
21
|
+
name?: string;
|
|
22
|
+
className?: string;
|
|
23
|
+
'data-source'?: string;
|
|
24
|
+
'data-hash'?: string;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
declare type AdmonitionTypeProps = {
|
|
28
|
+
type: 'warning' | 'success' | 'danger' | 'info' | 'idea';
|
|
29
|
+
};
|
|
30
|
+
|
|
23
31
|
declare type AnalyticsEvent = {
|
|
24
32
|
eventType: AnalyticsEventType;
|
|
25
33
|
resource: 'Redocly_CodeSample' | 'Redocly_Operation';
|
|
@@ -107,6 +115,11 @@ declare type ApiStore = {
|
|
|
107
115
|
specType?: ApiSpecType;
|
|
108
116
|
};
|
|
109
117
|
|
|
118
|
+
declare interface AstType {
|
|
119
|
+
readonly $$mdtype: 'Function' | 'Node' | 'Variable';
|
|
120
|
+
resolve(config: Config): any;
|
|
121
|
+
}
|
|
122
|
+
|
|
110
123
|
declare type AsyncApiExternalDocs = {
|
|
111
124
|
description?: string | Node_2[] | Node_2;
|
|
112
125
|
url: string;
|
|
@@ -148,6 +161,12 @@ declare type AsyncApiTag = {
|
|
|
148
161
|
externalDocs?: AsyncApiExternalDocs;
|
|
149
162
|
};
|
|
150
163
|
|
|
164
|
+
declare type AttributeValue = {
|
|
165
|
+
type: string;
|
|
166
|
+
name: string;
|
|
167
|
+
value: any;
|
|
168
|
+
};
|
|
169
|
+
|
|
151
170
|
declare type AvroSchema = {
|
|
152
171
|
type: string | string[] | AvroSchema[];
|
|
153
172
|
name?: string;
|
|
@@ -347,6 +366,28 @@ declare type CodeSampleSource = {
|
|
|
347
366
|
summary?: string;
|
|
348
367
|
};
|
|
349
368
|
|
|
369
|
+
declare type Config<R = string> = Readonly<ConfigType<R>>;
|
|
370
|
+
|
|
371
|
+
declare type ConfigFunction = {
|
|
372
|
+
returns?: ValidationType | ValidationType[];
|
|
373
|
+
parameters?: Record<string, SchemaAttribute>;
|
|
374
|
+
transform?(parameters: Record<string, any>, config: Config): any;
|
|
375
|
+
validate?(fn: Function_2, config: Config): ValidationError[];
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
declare type ConfigType<R = string> = Partial<{
|
|
379
|
+
nodes: Partial<Record<NodeType, Schema<ConfigType, R>>>;
|
|
380
|
+
tags: Record<string, Schema>;
|
|
381
|
+
variables: Record<string, any>;
|
|
382
|
+
functions: Record<string, ConfigFunction>;
|
|
383
|
+
partials: Record<string, any>;
|
|
384
|
+
validation?: {
|
|
385
|
+
parents?: Node_2[];
|
|
386
|
+
validateFunctions?: boolean;
|
|
387
|
+
environment?: string;
|
|
388
|
+
};
|
|
389
|
+
}>;
|
|
390
|
+
|
|
350
391
|
declare type ConnectMcpButtonPanelItem = {
|
|
351
392
|
kind: typeof panelKind.CONNECT_MCP_BUTTON;
|
|
352
393
|
title?: string;
|
|
@@ -381,6 +422,16 @@ declare const contentType: {
|
|
|
381
422
|
/** Promise form of `convertSwaggerToOpenApi`; rejects with the error it throws. */
|
|
382
423
|
export declare const convertSwagger2OpenAPI: (document: Record<string, unknown>) => Promise<OpenAPIDefinition>;
|
|
383
424
|
|
|
425
|
+
declare interface CustomAttributeType {
|
|
426
|
+
new (): CustomAttributeTypeInterface;
|
|
427
|
+
readonly prototype: CustomAttributeTypeInterface;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
declare interface CustomAttributeTypeInterface {
|
|
431
|
+
transform?(value: any, config: Config): Scalar;
|
|
432
|
+
validate?(value: any, config: Config, name: string): ValidationError[];
|
|
433
|
+
}
|
|
434
|
+
|
|
384
435
|
declare type DefinitionCodeSample = {
|
|
385
436
|
lang: string;
|
|
386
437
|
label?: string;
|
|
@@ -488,30 +539,24 @@ declare type FormFieldEncoding = {
|
|
|
488
539
|
style?: string;
|
|
489
540
|
explode?: boolean;
|
|
490
541
|
allowReserved?: boolean;
|
|
542
|
+
headers?: Record<string, string>;
|
|
543
|
+
xmlName?: string;
|
|
491
544
|
};
|
|
492
545
|
|
|
546
|
+
declare class Function_2 implements AstType {
|
|
547
|
+
readonly $$mdtype = "Function";
|
|
548
|
+
name: string;
|
|
549
|
+
parameters: Record<string, any>;
|
|
550
|
+
constructor(name: string, parameters: Record<string, any>);
|
|
551
|
+
resolve(config?: Config): any;
|
|
552
|
+
}
|
|
553
|
+
|
|
493
554
|
declare type GraphQLContact = {
|
|
494
555
|
name?: string;
|
|
495
556
|
url?: string;
|
|
496
557
|
email?: string;
|
|
497
558
|
};
|
|
498
559
|
|
|
499
|
-
declare type GraphqlFieldData = {
|
|
500
|
-
name: string;
|
|
501
|
-
type: string;
|
|
502
|
-
description?: string | Node_2[] | Node_2;
|
|
503
|
-
deprecated?: boolean;
|
|
504
|
-
deprecationReason?: string;
|
|
505
|
-
defaultValue?: unknown;
|
|
506
|
-
args?: Array<{
|
|
507
|
-
name: string;
|
|
508
|
-
type: string;
|
|
509
|
-
description?: string | Node_2[] | Node_2;
|
|
510
|
-
deprecationReason?: string;
|
|
511
|
-
defaultValue?: unknown;
|
|
512
|
-
}>;
|
|
513
|
-
};
|
|
514
|
-
|
|
515
560
|
declare type GraphQLInfo = {
|
|
516
561
|
title?: string;
|
|
517
562
|
version?: string;
|
|
@@ -549,12 +594,6 @@ declare type GraphQLResponsePanelItem = BaseExamplePanelItem & {
|
|
|
549
594
|
graphqlOperationData?: GraphQLOperationData;
|
|
550
595
|
};
|
|
551
596
|
|
|
552
|
-
declare type GraphqlReturnTypeData = {
|
|
553
|
-
type: string;
|
|
554
|
-
description?: string | Node_2[] | Node_2;
|
|
555
|
-
fields?: GraphqlFieldData[];
|
|
556
|
-
};
|
|
557
|
-
|
|
558
597
|
declare type GraphqlStoreMeta = {
|
|
559
598
|
rootTypes: {
|
|
560
599
|
query?: string;
|
|
@@ -637,7 +676,6 @@ declare type ItemContentNode = {
|
|
|
637
676
|
schemaId?: string;
|
|
638
677
|
exampleIds?: string[];
|
|
639
678
|
parameters?: ParameterData[];
|
|
640
|
-
graphqlSchema?: GraphqlFieldData[] | GraphqlReturnTypeData;
|
|
641
679
|
required?: boolean;
|
|
642
680
|
/** Webhook/callback body: the server sends it, so readOnly stays and writeOnly is dropped. */
|
|
643
681
|
isEvent?: boolean;
|
|
@@ -756,6 +794,165 @@ declare const itemVariant: {
|
|
|
756
794
|
readonly MARKDOWN: 'markdown';
|
|
757
795
|
};
|
|
758
796
|
|
|
797
|
+
declare interface JSONSchema7 {
|
|
798
|
+
$id?: string | undefined;
|
|
799
|
+
$ref?: string | undefined;
|
|
800
|
+
$schema?: JSONSchema7Version | undefined;
|
|
801
|
+
$comment?: string | undefined;
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00#section-8.2.4
|
|
805
|
+
* @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#appendix-A
|
|
806
|
+
*/
|
|
807
|
+
$defs?: {
|
|
808
|
+
[key: string]: JSONSchema7Definition;
|
|
809
|
+
} | undefined;
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1
|
|
813
|
+
*/
|
|
814
|
+
type?: JSONSchema7TypeName | JSONSchema7TypeName[] | undefined;
|
|
815
|
+
enum?: JSONSchema7Type[] | undefined;
|
|
816
|
+
const?: JSONSchema7Type | undefined;
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.2
|
|
820
|
+
*/
|
|
821
|
+
multipleOf?: number | undefined;
|
|
822
|
+
maximum?: number | undefined;
|
|
823
|
+
exclusiveMaximum?: number | undefined;
|
|
824
|
+
minimum?: number | undefined;
|
|
825
|
+
exclusiveMinimum?: number | undefined;
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.3
|
|
829
|
+
*/
|
|
830
|
+
maxLength?: number | undefined;
|
|
831
|
+
minLength?: number | undefined;
|
|
832
|
+
pattern?: string | undefined;
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.4
|
|
836
|
+
*/
|
|
837
|
+
items?: JSONSchema7Definition | JSONSchema7Definition[] | undefined;
|
|
838
|
+
additionalItems?: JSONSchema7Definition | undefined;
|
|
839
|
+
maxItems?: number | undefined;
|
|
840
|
+
minItems?: number | undefined;
|
|
841
|
+
uniqueItems?: boolean | undefined;
|
|
842
|
+
contains?: JSONSchema7Definition | undefined;
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.5
|
|
846
|
+
*/
|
|
847
|
+
maxProperties?: number | undefined;
|
|
848
|
+
minProperties?: number | undefined;
|
|
849
|
+
required?: string[] | undefined;
|
|
850
|
+
properties?: {
|
|
851
|
+
[key: string]: JSONSchema7Definition;
|
|
852
|
+
} | undefined;
|
|
853
|
+
patternProperties?: {
|
|
854
|
+
[key: string]: JSONSchema7Definition;
|
|
855
|
+
} | undefined;
|
|
856
|
+
additionalProperties?: JSONSchema7Definition | undefined;
|
|
857
|
+
dependencies?: {
|
|
858
|
+
[key: string]: JSONSchema7Definition | string[];
|
|
859
|
+
} | undefined;
|
|
860
|
+
propertyNames?: JSONSchema7Definition | undefined;
|
|
861
|
+
|
|
862
|
+
/**
|
|
863
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.6
|
|
864
|
+
*/
|
|
865
|
+
if?: JSONSchema7Definition | undefined;
|
|
866
|
+
then?: JSONSchema7Definition | undefined;
|
|
867
|
+
else?: JSONSchema7Definition | undefined;
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.7
|
|
871
|
+
*/
|
|
872
|
+
allOf?: JSONSchema7Definition[] | undefined;
|
|
873
|
+
anyOf?: JSONSchema7Definition[] | undefined;
|
|
874
|
+
oneOf?: JSONSchema7Definition[] | undefined;
|
|
875
|
+
not?: JSONSchema7Definition | undefined;
|
|
876
|
+
|
|
877
|
+
/**
|
|
878
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-7
|
|
879
|
+
*/
|
|
880
|
+
format?: string | undefined;
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-8
|
|
884
|
+
*/
|
|
885
|
+
contentMediaType?: string | undefined;
|
|
886
|
+
contentEncoding?: string | undefined;
|
|
887
|
+
|
|
888
|
+
/**
|
|
889
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-9
|
|
890
|
+
*/
|
|
891
|
+
definitions?: {
|
|
892
|
+
[key: string]: JSONSchema7Definition;
|
|
893
|
+
} | undefined;
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-10
|
|
897
|
+
*/
|
|
898
|
+
title?: string | undefined;
|
|
899
|
+
description?: string | undefined;
|
|
900
|
+
default?: JSONSchema7Type | undefined;
|
|
901
|
+
readOnly?: boolean | undefined;
|
|
902
|
+
writeOnly?: boolean | undefined;
|
|
903
|
+
examples?: JSONSchema7Type | undefined;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
declare interface JSONSchema7Array extends Array<JSONSchema7Type> {}
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* JSON Schema v7
|
|
910
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01
|
|
911
|
+
*/
|
|
912
|
+
declare type JSONSchema7Definition = JSONSchema7 | boolean;
|
|
913
|
+
|
|
914
|
+
declare interface JSONSchema7Object {
|
|
915
|
+
[key: string]: JSONSchema7Type;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* Primitive type
|
|
920
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
|
|
921
|
+
*/
|
|
922
|
+
declare type JSONSchema7Type =
|
|
923
|
+
| string //
|
|
924
|
+
| number
|
|
925
|
+
| boolean
|
|
926
|
+
| JSONSchema7Object
|
|
927
|
+
| JSONSchema7Array
|
|
928
|
+
| null;
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* Primitive type
|
|
932
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
|
|
933
|
+
*/
|
|
934
|
+
declare type JSONSchema7TypeName =
|
|
935
|
+
| "string" //
|
|
936
|
+
| "number"
|
|
937
|
+
| "integer"
|
|
938
|
+
| "boolean"
|
|
939
|
+
| "object"
|
|
940
|
+
| "array"
|
|
941
|
+
| "null";
|
|
942
|
+
|
|
943
|
+
/**
|
|
944
|
+
* Meta schema
|
|
945
|
+
*
|
|
946
|
+
* Recommended values:
|
|
947
|
+
* - 'http://json-schema.org/schema#'
|
|
948
|
+
* - 'http://json-schema.org/hyper-schema#'
|
|
949
|
+
* - 'http://json-schema.org/draft-07/schema#'
|
|
950
|
+
* - 'http://json-schema.org/draft-07/hyper-schema#'
|
|
951
|
+
*
|
|
952
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5
|
|
953
|
+
*/
|
|
954
|
+
declare type JSONSchema7Version = string;
|
|
955
|
+
|
|
759
956
|
declare type KeyValuePanelItem = {
|
|
760
957
|
kind: typeof panelKind.ATTRIBUTE;
|
|
761
958
|
title?: string;
|
|
@@ -767,6 +964,17 @@ declare type KeyValuePanelItem = {
|
|
|
767
964
|
copyContent?: string;
|
|
768
965
|
};
|
|
769
966
|
|
|
967
|
+
declare type Location_2 = {
|
|
968
|
+
file?: string;
|
|
969
|
+
start: LocationEdge;
|
|
970
|
+
end: LocationEdge;
|
|
971
|
+
};
|
|
972
|
+
|
|
973
|
+
declare type LocationEdge = {
|
|
974
|
+
line: number;
|
|
975
|
+
character?: number;
|
|
976
|
+
};
|
|
977
|
+
|
|
770
978
|
declare type LocationsPanelItem = {
|
|
771
979
|
kind: typeof panelKind.LOCATIONS;
|
|
772
980
|
locations: string[];
|
|
@@ -815,6 +1023,8 @@ declare type MarkdownParser = (markdown: string, sanitizeOptions?: {
|
|
|
815
1023
|
*/
|
|
816
1024
|
declare type MarkdownRenderer = (parsed: unknown) => ReactNode;
|
|
817
1025
|
|
|
1026
|
+
declare type MaybePromise<T> = T | Promise<T>;
|
|
1027
|
+
|
|
818
1028
|
declare type McpCapabilities = {
|
|
819
1029
|
[key: string]: boolean | {
|
|
820
1030
|
listChanged?: boolean;
|
|
@@ -892,6 +1102,7 @@ declare type MediaTypeContent = {
|
|
|
892
1102
|
declare type MediaTypeEntry = {
|
|
893
1103
|
schemaId?: string;
|
|
894
1104
|
exampleIds?: string[];
|
|
1105
|
+
encoding?: Record<string, FormFieldEncoding>;
|
|
895
1106
|
};
|
|
896
1107
|
|
|
897
1108
|
declare type MessageBindingData = {
|
|
@@ -947,6 +1158,30 @@ declare type MultiFormatSchemaObject = {
|
|
|
947
1158
|
schemaFormat: string;
|
|
948
1159
|
};
|
|
949
1160
|
|
|
1161
|
+
declare class Node_2 implements AstType {
|
|
1162
|
+
readonly $$mdtype = "Node";
|
|
1163
|
+
attributes: Record<string, any>;
|
|
1164
|
+
slots: Record<string, Node_2>;
|
|
1165
|
+
children: Node_2[];
|
|
1166
|
+
errors: ValidationError[];
|
|
1167
|
+
lines: number[];
|
|
1168
|
+
type: NodeType;
|
|
1169
|
+
tag?: string;
|
|
1170
|
+
annotations: AttributeValue[];
|
|
1171
|
+
inline: boolean;
|
|
1172
|
+
location?: Location_2;
|
|
1173
|
+
constructor(type?: NodeType, attributes?: Record<string, any>, children?: Node_2[], tag?: string);
|
|
1174
|
+
walk(): Generator<Node_2, void, unknown>;
|
|
1175
|
+
push(node: Node_2): void;
|
|
1176
|
+
resolve(config?: Config): Node_2;
|
|
1177
|
+
findSchema(config?: Config): Schema | undefined;
|
|
1178
|
+
transformAttributes(config?: Config): Record<string, any>;
|
|
1179
|
+
transformChildren(config: Config): RenderableTreeNode[];
|
|
1180
|
+
transform(config: Config): MaybePromise<RenderableTreeNodes>;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
declare type NodeType = 'blockquote' | 'code' | 'comment' | 'document' | 'em' | 'error' | 'fence' | 'hardbreak' | 'heading' | 'hr' | 'image' | 'inline' | 'item' | 'link' | 'list' | 'node' | 'paragraph' | 's' | 'softbreak' | 'strong' | 'table' | 'tag' | 'tbody' | 'td' | 'text' | 'th' | 'thead' | 'tr';
|
|
1184
|
+
|
|
950
1185
|
declare const nodeTypes: {
|
|
951
1186
|
readonly CONTAINER: 'container';
|
|
952
1187
|
readonly HEADER: 'header';
|
|
@@ -1072,13 +1307,13 @@ declare type OpenAPIDiscriminator = {
|
|
|
1072
1307
|
};
|
|
1073
1308
|
|
|
1074
1309
|
declare type OpenAPIEncoding = {
|
|
1075
|
-
contentType
|
|
1310
|
+
contentType?: string;
|
|
1076
1311
|
headers?: {
|
|
1077
1312
|
[name: string]: Referenced<OpenAPIHeader>;
|
|
1078
1313
|
};
|
|
1079
|
-
style
|
|
1080
|
-
explode
|
|
1081
|
-
allowReserved
|
|
1314
|
+
style?: OpenAPIParameterStyle;
|
|
1315
|
+
explode?: boolean;
|
|
1316
|
+
allowReserved?: boolean;
|
|
1082
1317
|
};
|
|
1083
1318
|
|
|
1084
1319
|
declare type OpenAPIExample = {
|
|
@@ -1462,6 +1697,8 @@ declare type PanelTag = {
|
|
|
1462
1697
|
declare type ParameterData = {
|
|
1463
1698
|
name: string;
|
|
1464
1699
|
in?: string;
|
|
1700
|
+
style?: string;
|
|
1701
|
+
explode?: boolean;
|
|
1465
1702
|
schemaId: string;
|
|
1466
1703
|
description?: string | Node_2 | Node_2[];
|
|
1467
1704
|
required?: boolean;
|
|
@@ -1524,6 +1761,8 @@ declare type PreparedApiDocs = {
|
|
|
1524
1761
|
timings: BuildTimings;
|
|
1525
1762
|
};
|
|
1526
1763
|
|
|
1764
|
+
declare type Primitive = null | boolean | number | string;
|
|
1765
|
+
|
|
1527
1766
|
declare type ProtocolVariant = ObjectValues<typeof CONST_PROTOCOL_VARIANT>;
|
|
1528
1767
|
|
|
1529
1768
|
declare type RawApiDocsOptions = EditionRedocConfig & EditionAsyncApiConfig & EditionGraphQLConfig & {
|
|
@@ -1617,6 +1856,10 @@ declare type ReferencesPanelItem = {
|
|
|
1617
1856
|
}[];
|
|
1618
1857
|
};
|
|
1619
1858
|
|
|
1859
|
+
declare type RenderableTreeNode = Tag | Scalar;
|
|
1860
|
+
|
|
1861
|
+
declare type RenderableTreeNodes = RenderableTreeNode | RenderableTreeNode[];
|
|
1862
|
+
|
|
1620
1863
|
declare type ResponseCodeEntry = {
|
|
1621
1864
|
code: string;
|
|
1622
1865
|
schemaId?: string;
|
|
@@ -1639,6 +1882,33 @@ declare type Sample = {
|
|
|
1639
1882
|
label?: string;
|
|
1640
1883
|
};
|
|
1641
1884
|
|
|
1885
|
+
declare type Scalar = Primitive | Scalar[] | {
|
|
1886
|
+
[key: string]: Scalar;
|
|
1887
|
+
};
|
|
1888
|
+
|
|
1889
|
+
declare type Schema<C extends Config = Config, R = string> = {
|
|
1890
|
+
render?: R;
|
|
1891
|
+
children?: string[];
|
|
1892
|
+
attributes?: Record<string, SchemaAttribute>;
|
|
1893
|
+
slots?: Record<string, SchemaSlot>;
|
|
1894
|
+
selfClosing?: boolean;
|
|
1895
|
+
inline?: boolean;
|
|
1896
|
+
transform?(node: Node_2, config: C): MaybePromise<RenderableTreeNodes>;
|
|
1897
|
+
validate?(node: Node_2, config: C): MaybePromise<ValidationError[]>;
|
|
1898
|
+
description?: string;
|
|
1899
|
+
};
|
|
1900
|
+
|
|
1901
|
+
declare type SchemaAttribute = {
|
|
1902
|
+
type?: ValidationType | ValidationType[];
|
|
1903
|
+
render?: boolean | string;
|
|
1904
|
+
default?: any;
|
|
1905
|
+
required?: boolean;
|
|
1906
|
+
matches?: SchemaMatches | ((config: Config) => SchemaMatches);
|
|
1907
|
+
validate?(value: any, config: Config, name: string): ValidationError[];
|
|
1908
|
+
errorLevel?: ValidationError['level'];
|
|
1909
|
+
description?: string;
|
|
1910
|
+
};
|
|
1911
|
+
|
|
1642
1912
|
declare type SchemaEntry = {
|
|
1643
1913
|
id: string;
|
|
1644
1914
|
kind: SchemaKind;
|
|
@@ -1653,6 +1923,13 @@ declare const schemaKind: {
|
|
|
1653
1923
|
readonly GRAPHQL_TYPE: 'graphql-type';
|
|
1654
1924
|
};
|
|
1655
1925
|
|
|
1926
|
+
declare type SchemaMatches = RegExp | string[] | null;
|
|
1927
|
+
|
|
1928
|
+
declare type SchemaSlot = {
|
|
1929
|
+
render?: boolean | string;
|
|
1930
|
+
required?: boolean;
|
|
1931
|
+
};
|
|
1932
|
+
|
|
1656
1933
|
declare type SecurityNode = {
|
|
1657
1934
|
nodeType: typeof nodeTypes.SECURITY;
|
|
1658
1935
|
requirements: SecurityRequirementDetail[];
|
|
@@ -1783,6 +2060,15 @@ declare type SingleChildPanelBase<TKind extends PanelItem['kind']> = {
|
|
|
1783
2060
|
|
|
1784
2061
|
declare type SpecType = 'openapi' | 'asyncapi' | 'graphql';
|
|
1785
2062
|
|
|
2063
|
+
declare class Tag<N extends string = string, A extends Record<string, any> = Record<string, any>> {
|
|
2064
|
+
readonly $$mdtype: "Tag";
|
|
2065
|
+
static isTag: (tag: any) => tag is Tag<string, Record<string, any>>;
|
|
2066
|
+
name: N;
|
|
2067
|
+
attributes: A;
|
|
2068
|
+
children: RenderableTreeNode[];
|
|
2069
|
+
constructor(name?: N, attributes?: A, children?: RenderableTreeNode[]);
|
|
2070
|
+
}
|
|
2071
|
+
|
|
1786
2072
|
declare type TagsPanelItem = {
|
|
1787
2073
|
kind: typeof panelKind.TAGS;
|
|
1788
2074
|
title?: string;
|
|
@@ -1798,6 +2084,15 @@ declare type TelemetryOptionValue = string | number | boolean;
|
|
|
1798
2084
|
|
|
1799
2085
|
declare type TypeOfUsage = 'html' | 'cli' | 'react' | 'init' | 'docker';
|
|
1800
2086
|
|
|
2087
|
+
declare type ValidationError = {
|
|
2088
|
+
id: string;
|
|
2089
|
+
level: 'debug' | 'info' | 'warning' | 'error' | 'critical';
|
|
2090
|
+
message: string;
|
|
2091
|
+
location?: Location_2;
|
|
2092
|
+
};
|
|
2093
|
+
|
|
2094
|
+
declare type ValidationType = CustomAttributeType | typeof String | typeof Number | typeof Boolean | typeof Object | typeof Array | 'String' | 'Number' | 'Boolean' | 'Object' | 'Array';
|
|
2095
|
+
|
|
1801
2096
|
declare type WithRequired<T, K extends keyof T> = T & {
|
|
1802
2097
|
[P in K]-?: T[P];
|
|
1803
2098
|
};
|