@redocly/api-docs 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -0
- package/README.md +3 -0
- package/lib/.tsbuildinfo +1 -0
- package/lib/RedoclyApiDocs.d.ts +22 -0
- package/lib/RedoclyApiDocs.js +1 -0
- package/lib/RedoclyApiDocsStandalone.d.ts +18 -0
- package/lib/RedoclyApiDocsStandalone.js +26 -0
- package/lib/adapters/asyncapi/build/context.d.ts +10 -0
- package/lib/adapters/asyncapi/build/context.js +1 -0
- package/lib/adapters/asyncapi/build/navigation.d.ts +2 -0
- package/lib/adapters/asyncapi/build/navigation.js +1 -0
- package/lib/adapters/asyncapi/build/utils.d.ts +3 -0
- package/lib/adapters/asyncapi/build/utils.js +1 -0
- package/lib/adapters/asyncapi/buildContext.d.ts +2 -0
- package/lib/adapters/asyncapi/buildContext.js +1 -0
- package/lib/adapters/asyncapi/index.d.ts +14 -0
- package/lib/adapters/asyncapi/index.js +1 -0
- package/lib/adapters/asyncapi/items/channel/content.d.ts +5 -0
- package/lib/adapters/asyncapi/items/channel/content.js +1 -0
- package/lib/adapters/asyncapi/items/channel/item.d.ts +13 -0
- package/lib/adapters/asyncapi/items/channel/item.js +1 -0
- package/lib/adapters/asyncapi/items/operation/content.d.ts +4 -0
- package/lib/adapters/asyncapi/items/operation/content.js +3 -0
- package/lib/adapters/asyncapi/items/operation/item.d.ts +15 -0
- package/lib/adapters/asyncapi/items/operation/item.js +1 -0
- package/lib/adapters/asyncapi/items/overview/content.d.ts +10 -0
- package/lib/adapters/asyncapi/items/overview/content.js +1 -0
- package/lib/adapters/asyncapi/items/overview/item.d.ts +16 -0
- package/lib/adapters/asyncapi/items/overview/item.js +1 -0
- package/lib/adapters/asyncapi/panels/brokers.d.ts +4 -0
- package/lib/adapters/asyncapi/panels/brokers.js +1 -0
- package/lib/adapters/asyncapi/panels/download.d.ts +3 -0
- package/lib/adapters/asyncapi/panels/download.js +1 -0
- package/lib/adapters/asyncapi/panels/group.d.ts +16 -0
- package/lib/adapters/asyncapi/panels/group.js +1 -0
- package/lib/adapters/asyncapi/panels/overview.d.ts +3 -0
- package/lib/adapters/asyncapi/panels/overview.js +1 -0
- package/lib/adapters/asyncapi/store.d.ts +4 -0
- package/lib/adapters/asyncapi/store.js +1 -0
- package/lib/adapters/asyncapi/utils/avro-to-json-schema.d.ts +4 -0
- package/lib/adapters/asyncapi/utils/avro-to-json-schema.js +1 -0
- package/lib/adapters/asyncapi/utils/get-channel-label.d.ts +3 -0
- package/lib/adapters/asyncapi/utils/get-channel-label.js +1 -0
- package/lib/adapters/asyncapi/utils/get-protocol-labels.d.ts +24 -0
- package/lib/adapters/asyncapi/utils/get-protocol-labels.js +1 -0
- package/lib/adapters/asyncapi/utils/get-server-host.d.ts +3 -0
- package/lib/adapters/asyncapi/utils/get-server-host.js +1 -0
- package/lib/adapters/asyncapi/utils/resolve-schema.d.ts +2 -0
- package/lib/adapters/asyncapi/utils/resolve-schema.js +1 -0
- package/lib/adapters/asyncapi/utils/resolveInDoc.d.ts +2 -0
- package/lib/adapters/asyncapi/utils/resolveInDoc.js +1 -0
- package/lib/adapters/build.d.ts +31 -0
- package/lib/adapters/build.js +1 -0
- package/lib/adapters/graphql/build/context.d.ts +9 -0
- package/lib/adapters/graphql/build/context.js +1 -0
- package/lib/adapters/graphql/buildContext.d.ts +2 -0
- package/lib/adapters/graphql/buildContext.js +1 -0
- package/lib/adapters/graphql/buildStoreFromSdl.d.ts +2 -0
- package/lib/adapters/graphql/buildStoreFromSdl.js +1 -0
- package/lib/adapters/graphql/group/custom.d.ts +2 -0
- package/lib/adapters/graphql/group/custom.js +1 -0
- package/lib/adapters/graphql/group/default.d.ts +2 -0
- package/lib/adapters/graphql/group/default.js +1 -0
- package/lib/adapters/graphql/group/errors.d.ts +1 -0
- package/lib/adapters/graphql/group/errors.js +1 -0
- package/lib/adapters/graphql/group/itemBuilders.d.ts +5 -0
- package/lib/adapters/graphql/group/itemBuilders.js +1 -0
- package/lib/adapters/graphql/group/utils.d.ts +8 -0
- package/lib/adapters/graphql/group/utils.js +1 -0
- package/lib/adapters/graphql/index.d.ts +10 -0
- package/lib/adapters/graphql/index.js +1 -0
- package/lib/adapters/graphql/items/directive/content.d.ts +4 -0
- package/lib/adapters/graphql/items/directive/content.js +1 -0
- package/lib/adapters/graphql/items/directive/item.d.ts +3 -0
- package/lib/adapters/graphql/items/directive/item.js +1 -0
- package/lib/adapters/graphql/items/enum/content.d.ts +4 -0
- package/lib/adapters/graphql/items/enum/content.js +1 -0
- package/lib/adapters/graphql/items/enum/item.d.ts +3 -0
- package/lib/adapters/graphql/items/enum/item.js +1 -0
- package/lib/adapters/graphql/items/input/content.d.ts +4 -0
- package/lib/adapters/graphql/items/input/content.js +1 -0
- package/lib/adapters/graphql/items/input/item.d.ts +3 -0
- package/lib/adapters/graphql/items/input/item.js +1 -0
- package/lib/adapters/graphql/items/interface/content.d.ts +4 -0
- package/lib/adapters/graphql/items/interface/content.js +1 -0
- package/lib/adapters/graphql/items/interface/item.d.ts +3 -0
- package/lib/adapters/graphql/items/interface/item.js +1 -0
- package/lib/adapters/graphql/items/mutation/content.d.ts +4 -0
- package/lib/adapters/graphql/items/mutation/content.js +1 -0
- package/lib/adapters/graphql/items/mutation/item.d.ts +3 -0
- package/lib/adapters/graphql/items/mutation/item.js +1 -0
- package/lib/adapters/graphql/items/object/content.d.ts +4 -0
- package/lib/adapters/graphql/items/object/content.js +1 -0
- package/lib/adapters/graphql/items/object/item.d.ts +3 -0
- package/lib/adapters/graphql/items/object/item.js +1 -0
- package/lib/adapters/graphql/items/operation/content.d.ts +7 -0
- package/lib/adapters/graphql/items/operation/content.js +1 -0
- package/lib/adapters/graphql/items/overview/content.d.ts +11 -0
- package/lib/adapters/graphql/items/overview/content.js +1 -0
- package/lib/adapters/graphql/items/overview/item.d.ts +4 -0
- package/lib/adapters/graphql/items/overview/item.js +1 -0
- package/lib/adapters/graphql/items/query/content.d.ts +4 -0
- package/lib/adapters/graphql/items/query/content.js +1 -0
- package/lib/adapters/graphql/items/query/item.d.ts +3 -0
- package/lib/adapters/graphql/items/query/item.js +1 -0
- package/lib/adapters/graphql/items/scalar/content.d.ts +4 -0
- package/lib/adapters/graphql/items/scalar/content.js +1 -0
- package/lib/adapters/graphql/items/scalar/item.d.ts +3 -0
- package/lib/adapters/graphql/items/scalar/item.js +1 -0
- package/lib/adapters/graphql/items/subscription/content.d.ts +4 -0
- package/lib/adapters/graphql/items/subscription/content.js +1 -0
- package/lib/adapters/graphql/items/subscription/item.d.ts +3 -0
- package/lib/adapters/graphql/items/subscription/item.js +1 -0
- package/lib/adapters/graphql/items/types.d.ts +7 -0
- package/lib/adapters/graphql/items/types.js +0 -0
- package/lib/adapters/graphql/items/union/content.d.ts +4 -0
- package/lib/adapters/graphql/items/union/content.js +1 -0
- package/lib/adapters/graphql/items/union/item.d.ts +3 -0
- package/lib/adapters/graphql/items/union/item.js +1 -0
- package/lib/adapters/graphql/panels/download.d.ts +3 -0
- package/lib/adapters/graphql/panels/download.js +1 -0
- package/lib/adapters/graphql/panels/group-items.d.ts +4 -0
- package/lib/adapters/graphql/panels/group-items.js +1 -0
- package/lib/adapters/graphql/panels/overview.d.ts +3 -0
- package/lib/adapters/graphql/panels/overview.js +1 -0
- package/lib/adapters/graphql/serializeType.d.ts +5 -0
- package/lib/adapters/graphql/serializeType.js +1 -0
- package/lib/adapters/graphql/store.d.ts +3 -0
- package/lib/adapters/graphql/store.js +1 -0
- package/lib/adapters/graphql/utils/appendGraphqlItemFeedback.d.ts +2 -0
- package/lib/adapters/graphql/utils/appendGraphqlItemFeedback.js +1 -0
- package/lib/adapters/graphql/utils/configMetadataRows.d.ts +3 -0
- package/lib/adapters/graphql/utils/configMetadataRows.js +1 -0
- package/lib/adapters/graphql/utils/constants.d.ts +23 -0
- package/lib/adapters/graphql/utils/constants.js +1 -0
- package/lib/adapters/graphql/utils/createApiItem.d.ts +15 -0
- package/lib/adapters/graphql/utils/createApiItem.js +1 -0
- package/lib/adapters/graphql/utils/getBadges.d.ts +4 -0
- package/lib/adapters/graphql/utils/getBadges.js +1 -0
- package/lib/adapters/graphql/utils/ignoreInternalItems.d.ts +3 -0
- package/lib/adapters/graphql/utils/ignoreInternalItems.js +1 -0
- package/lib/adapters/graphql/utils/isRootType.d.ts +2 -0
- package/lib/adapters/graphql/utils/isRootType.js +1 -0
- package/lib/adapters/graphql/utils/menuSlashRegex.d.ts +1 -0
- package/lib/adapters/graphql/utils/menuSlashRegex.js +1 -0
- package/lib/adapters/graphql/utils/normalizeMenu.d.ts +3 -0
- package/lib/adapters/graphql/utils/normalizeMenu.js +1 -0
- package/lib/adapters/graphql/utils/shouldIncludeItem.d.ts +2 -0
- package/lib/adapters/graphql/utils/shouldIncludeItem.js +1 -0
- package/lib/adapters/graphql/utils/summary.d.ts +4 -0
- package/lib/adapters/graphql/utils/summary.js +1 -0
- package/lib/adapters/graphql/utils/validateMenuConfig.d.ts +3 -0
- package/lib/adapters/graphql/utils/validateMenuConfig.js +1 -0
- package/lib/adapters/helpers.d.ts +47 -0
- package/lib/adapters/helpers.js +1 -0
- package/lib/adapters/openapi/build/context.d.ts +13 -0
- package/lib/adapters/openapi/build/context.js +1 -0
- package/lib/adapters/openapi/build-code-sample-source.d.ts +5 -0
- package/lib/adapters/openapi/build-code-sample-source.js +1 -0
- package/lib/adapters/openapi/buildContext.d.ts +2 -0
- package/lib/adapters/openapi/buildContext.js +1 -0
- package/lib/adapters/openapi/configure/apply-request-values.d.ts +3 -0
- package/lib/adapters/openapi/configure/apply-request-values.js +1 -0
- package/lib/adapters/openapi/configure/index.d.ts +3 -0
- package/lib/adapters/openapi/configure/index.js +1 -0
- package/lib/adapters/openapi/configure/merge-utils.d.ts +32 -0
- package/lib/adapters/openapi/configure/merge-utils.js +1 -0
- package/lib/adapters/openapi/configure/resolve-request-values.d.ts +17 -0
- package/lib/adapters/openapi/configure/resolve-request-values.js +1 -0
- package/lib/adapters/openapi/constants.d.ts +4 -0
- package/lib/adapters/openapi/constants.js +1 -0
- package/lib/adapters/openapi/group/content.d.ts +28 -0
- package/lib/adapters/openapi/group/content.js +1 -0
- package/lib/adapters/openapi/group/item.d.ts +11 -0
- package/lib/adapters/openapi/group/item.js +1 -0
- package/lib/adapters/openapi/index.d.ts +13 -0
- package/lib/adapters/openapi/index.js +1 -0
- package/lib/adapters/openapi/items/mcp/content.d.ts +5 -0
- package/lib/adapters/openapi/items/mcp/content.js +1 -0
- package/lib/adapters/openapi/items/mcp/item.d.ts +9 -0
- package/lib/adapters/openapi/items/mcp/item.js +1 -0
- package/lib/adapters/openapi/items/operation/content.d.ts +3 -0
- package/lib/adapters/openapi/items/operation/content.js +1 -0
- package/lib/adapters/openapi/items/operation/item.d.ts +9 -0
- package/lib/adapters/openapi/items/operation/item.js +1 -0
- package/lib/adapters/openapi/items/overview/content.d.ts +18 -0
- package/lib/adapters/openapi/items/overview/content.js +1 -0
- package/lib/adapters/openapi/items/overview/item.d.ts +3 -0
- package/lib/adapters/openapi/items/overview/item.js +1 -0
- package/lib/adapters/openapi/items/schema/content.d.ts +3 -0
- package/lib/adapters/openapi/items/schema/content.js +1 -0
- package/lib/adapters/openapi/items/schema/item.d.ts +9 -0
- package/lib/adapters/openapi/items/schema/item.js +1 -0
- package/lib/adapters/openapi/panels/download.d.ts +3 -0
- package/lib/adapters/openapi/panels/download.js +1 -0
- package/lib/adapters/openapi/panels/languages.d.ts +3 -0
- package/lib/adapters/openapi/panels/languages.js +1 -0
- package/lib/adapters/openapi/panels/mcp.d.ts +3 -0
- package/lib/adapters/openapi/panels/mcp.js +1 -0
- package/lib/adapters/openapi/panels/overview.d.ts +3 -0
- package/lib/adapters/openapi/panels/overview.js +1 -0
- package/lib/adapters/openapi/panels/servers.d.ts +3 -0
- package/lib/adapters/openapi/panels/servers.js +1 -0
- package/lib/adapters/openapi/resolve-openapi-example-value.d.ts +3 -0
- package/lib/adapters/openapi/resolve-openapi-example-value.js +1 -0
- package/lib/adapters/openapi/store.d.ts +4 -0
- package/lib/adapters/openapi/store.js +1 -0
- package/lib/adapters/openapi/utils/JsonPointer.d.ts +51 -0
- package/lib/adapters/openapi/utils/JsonPointer.js +1 -0
- package/lib/adapters/openapi/utils/applyIgnoreNamedSchemasDeep.d.ts +1 -0
- package/lib/adapters/openapi/utils/applyIgnoreNamedSchemasDeep.js +1 -0
- package/lib/adapters/openapi/utils/helpers.d.ts +14 -0
- package/lib/adapters/openapi/utils/helpers.js +1 -0
- package/lib/adapters/openapi/utils/merge-mock-server.d.ts +15 -0
- package/lib/adapters/openapi/utils/merge-mock-server.js +1 -0
- package/lib/adapters/openapi/utils/operation.d.ts +23 -0
- package/lib/adapters/openapi/utils/operation.js +1 -0
- package/lib/adapters/openapi/utils/resolvePathItemRef.d.ts +2 -0
- package/lib/adapters/openapi/utils/resolvePathItemRef.js +1 -0
- package/lib/adapters/openapi/utils/url.d.ts +2 -0
- package/lib/adapters/openapi/utils/url.js +1 -0
- package/lib/adapters/rbac-schema-propagation.d.ts +2 -0
- package/lib/adapters/rbac-schema-propagation.js +1 -0
- package/lib/adapters/scopedContext.d.ts +5 -0
- package/lib/adapters/scopedContext.js +1 -0
- package/lib/adapters/utils/convertSwagger2OpenAPI.d.ts +2 -0
- package/lib/adapters/utils/convertSwagger2OpenAPI.js +1 -0
- package/lib/adapters/utils/dompurify.d.ts +5 -0
- package/lib/adapters/utils/dompurify.js +1 -0
- package/lib/adapters/utils/infoMetadata.d.ts +5 -0
- package/lib/adapters/utils/infoMetadata.js +1 -0
- package/lib/adapters/utils/isPlainText.d.ts +6 -0
- package/lib/adapters/utils/isPlainText.js +1 -0
- package/lib/adapters/utils/markdoc.d.ts +38 -0
- package/lib/adapters/utils/markdoc.js +1 -0
- package/lib/adapters/utils/parseMarkdown.d.ts +8 -0
- package/lib/adapters/utils/parseMarkdown.js +1 -0
- package/lib/adapters/utils/seo.d.ts +3 -0
- package/lib/adapters/utils/seo.js +1 -0
- package/lib/adapters/utils/simplifyAstStructure.d.ts +2 -0
- package/lib/adapters/utils/simplifyAstStructure.js +1 -0
- package/lib/components/AdmonitionItem.d.ts +6 -0
- package/lib/components/AdmonitionItem.js +1 -0
- package/lib/components/ChannelAddressItem.d.ts +7 -0
- package/lib/components/ChannelAddressItem.js +31 -0
- package/lib/components/ContainerItem.d.ts +9 -0
- package/lib/components/ContainerItem.js +1 -0
- package/lib/components/EmptyMessageItem.d.ts +6 -0
- package/lib/components/EmptyMessageItem.js +6 -0
- package/lib/components/ErrorBoundary.d.ts +18 -0
- package/lib/components/ErrorBoundary.js +1 -0
- package/lib/components/ExtensionsItem.d.ts +7 -0
- package/lib/components/ExtensionsItem.js +1 -0
- package/lib/components/ExternalDocsItem.d.ts +8 -0
- package/lib/components/ExternalDocsItem.js +1 -0
- package/lib/components/FeedbackItem.d.ts +9 -0
- package/lib/components/FeedbackItem.js +17 -0
- package/lib/components/Header/HeaderItem.d.ts +91 -0
- package/lib/components/Header/HeaderItem.js +105 -0
- package/lib/components/Header/HeaderResponseCodeTabs.d.ts +8 -0
- package/lib/components/Header/HeaderResponseCodeTabs.js +1 -0
- package/lib/components/Header/ResponseDeepLinkAnchor.d.ts +9 -0
- package/lib/components/Header/ResponseDeepLinkAnchor.js +1 -0
- package/lib/components/Header/hooks.d.ts +5 -0
- package/lib/components/Header/hooks.js +1 -0
- package/lib/components/InfoMetadataItem.d.ts +7 -0
- package/lib/components/InfoMetadataItem.js +1 -0
- package/lib/components/ItemContent/ItemContentRenderer.d.ts +8 -0
- package/lib/components/ItemContent/ItemContentRenderer.js +11 -0
- package/lib/components/ItemContent/SectionHeader.d.ts +8 -0
- package/lib/components/ItemContent/SectionHeader.js +14 -0
- package/lib/components/ItemContent/hooks.d.ts +5 -0
- package/lib/components/ItemContent/hooks.js +1 -0
- package/lib/components/ItemContent/sections/BodyMimeTypeField.d.ts +12 -0
- package/lib/components/ItemContent/sections/BodyMimeTypeField.js +60 -0
- package/lib/components/ItemContent/sections/BodySection.d.ts +7 -0
- package/lib/components/ItemContent/sections/BodySection.js +13 -0
- package/lib/components/ItemContent/sections/CallbacksSection.d.ts +5 -0
- package/lib/components/ItemContent/sections/CallbacksSection.js +131 -0
- package/lib/components/ItemContent/sections/FieldsSection.d.ts +7 -0
- package/lib/components/ItemContent/sections/FieldsSection.js +79 -0
- package/lib/components/ItemContent/sections/MessagesSection.d.ts +5 -0
- package/lib/components/ItemContent/sections/MessagesSection.js +58 -0
- package/lib/components/ItemContent/sections/ParametersSection.d.ts +6 -0
- package/lib/components/ItemContent/sections/ParametersSection.js +4 -0
- package/lib/components/ItemContent/sections/ResponsesSection.d.ts +5 -0
- package/lib/components/ItemContent/sections/ResponsesSection.js +28 -0
- package/lib/components/ItemContent/sections/ValuesSection.d.ts +5 -0
- package/lib/components/ItemContent/sections/ValuesSection.js +26 -0
- package/lib/components/LicenseOverlay.d.ts +6 -0
- package/lib/components/LicenseOverlay.js +42 -0
- package/lib/components/Mapper.d.ts +25 -0
- package/lib/components/Mapper.js +1 -0
- package/lib/components/MarkdownItem.d.ts +6 -0
- package/lib/components/MarkdownItem.js +1 -0
- package/lib/components/Mcp/McpPrompt.d.ts +8 -0
- package/lib/components/Mcp/McpPrompt.js +1 -0
- package/lib/components/Mcp/McpResource.d.ts +8 -0
- package/lib/components/Mcp/McpResource.js +3 -0
- package/lib/components/Mcp/McpTool.d.ts +8 -0
- package/lib/components/Mcp/McpTool.js +1 -0
- package/lib/components/Mcp/styled.d.ts +19 -0
- package/lib/components/Mcp/styled.js +22 -0
- package/lib/components/Mcp/utils.d.ts +6 -0
- package/lib/components/Mcp/utils.js +1 -0
- package/lib/components/MessageLinksItem.d.ts +7 -0
- package/lib/components/MessageLinksItem.js +30 -0
- package/lib/components/RenderHook.d.ts +6 -0
- package/lib/components/RenderHook.js +1 -0
- package/lib/components/Replay/EmbeddedReplay.d.ts +16 -0
- package/lib/components/Replay/EmbeddedReplay.js +10 -0
- package/lib/components/Replay/Replay.d.ts +13 -0
- package/lib/components/Replay/Replay.js +1 -0
- package/lib/components/Replay/adapterToMarkdownParser.d.ts +12 -0
- package/lib/components/Replay/adapterToMarkdownParser.js +1 -0
- package/lib/components/Replay/index.d.ts +2 -0
- package/lib/components/Replay/index.js +1 -0
- package/lib/components/Schema/SchemaDescription.d.ts +5 -0
- package/lib/components/Schema/SchemaDescription.js +1 -0
- package/lib/components/Schema/SchemaView.d.ts +20 -0
- package/lib/components/Schema/SchemaView.js +1 -0
- package/lib/components/Schema/helpers.d.ts +1 -0
- package/lib/components/Schema/helpers.js +1 -0
- package/lib/components/Schema/hooks/useSchemaDocument.d.ts +7 -0
- package/lib/components/Schema/hooks/useSchemaDocument.js +1 -0
- package/lib/components/Schema/hooks/useSchemaFieldDeepLink.d.ts +5 -0
- package/lib/components/Schema/hooks/useSchemaFieldDeepLink.js +1 -0
- package/lib/components/Schema/hooks/useVariantIndexFromHash.d.ts +1 -0
- package/lib/components/Schema/hooks/useVariantIndexFromHash.js +1 -0
- package/lib/components/Schema/styled.d.ts +146 -0
- package/lib/components/Schema/styled.js +342 -0
- package/lib/components/Schema/utils.d.ts +26 -0
- package/lib/components/Schema/utils.js +1 -0
- package/lib/components/Schema/views/ArrayRenderer.d.ts +13 -0
- package/lib/components/Schema/views/ArrayRenderer.js +1 -0
- package/lib/components/Schema/views/CollapsibleNestedFields.d.ts +25 -0
- package/lib/components/Schema/views/CollapsibleNestedFields.js +1 -0
- package/lib/components/Schema/views/DefaultMappingOptionLabel.d.ts +5 -0
- package/lib/components/Schema/views/DefaultMappingOptionLabel.js +15 -0
- package/lib/components/Schema/views/DiscriminatorPropertyRow.d.ts +13 -0
- package/lib/components/Schema/views/DiscriminatorPropertyRow.js +1 -0
- package/lib/components/Schema/views/Examples.d.ts +7 -0
- package/lib/components/Schema/views/Examples.js +1 -0
- package/lib/components/Schema/views/ExpandableExample.d.ts +4 -0
- package/lib/components/Schema/views/ExpandableExample.js +3 -0
- package/lib/components/Schema/views/ObjectRenderer.d.ts +14 -0
- package/lib/components/Schema/views/ObjectRenderer.js +1 -0
- package/lib/components/Schema/views/Pattern.d.ts +6 -0
- package/lib/components/Schema/views/Pattern.js +1 -0
- package/lib/components/Schema/views/PrimitiveRenderer.d.ts +5 -0
- package/lib/components/Schema/views/PrimitiveRenderer.js +1 -0
- package/lib/components/Schema/views/PropertyFieldRow.d.ts +16 -0
- package/lib/components/Schema/views/PropertyFieldRow.js +1 -0
- package/lib/components/Schema/views/PropertyRenderer.d.ts +15 -0
- package/lib/components/Schema/views/PropertyRenderer.js +1 -0
- package/lib/components/Schema/views/SchemaEnumDescriptions.d.ts +9 -0
- package/lib/components/Schema/views/SchemaEnumDescriptions.js +5 -0
- package/lib/components/Schema/views/SchemaEnumValues.d.ts +8 -0
- package/lib/components/Schema/views/SchemaEnumValues.js +1 -0
- package/lib/components/Schema/views/SchemaTitleLabel.d.ts +5 -0
- package/lib/components/Schema/views/SchemaTitleLabel.js +1 -0
- package/lib/components/Schema/views/SchemaVariantSelector.d.ts +11 -0
- package/lib/components/Schema/views/SchemaVariantSelector.js +1 -0
- package/lib/components/Schema/views/SwitcherRenderer.d.ts +14 -0
- package/lib/components/Schema/views/SwitcherRenderer.js +1 -0
- package/lib/components/Schema/views/VariantDropdown.d.ts +14 -0
- package/lib/components/Schema/views/VariantDropdown.js +99 -0
- package/lib/components/SchemaCatalogLink.d.ts +6 -0
- package/lib/components/SchemaCatalogLink.js +35 -0
- package/lib/components/Security/Divider.d.ts +4 -0
- package/lib/components/Security/Divider.js +15 -0
- package/lib/components/Security/RequiredScopes.d.ts +4 -0
- package/lib/components/Security/RequiredScopes.js +5 -0
- package/lib/components/Security/ScopeTagWithTooltip.d.ts +11 -0
- package/lib/components/Security/ScopeTagWithTooltip.js +28 -0
- package/lib/components/Security/SecurityButtonPanel.d.ts +5 -0
- package/lib/components/Security/SecurityButtonPanel.js +1 -0
- package/lib/components/Security/SecurityFlowDetail.d.ts +5 -0
- package/lib/components/Security/SecurityFlowDetail.js +1 -0
- package/lib/components/Security/SecurityModal.d.ts +6 -0
- package/lib/components/Security/SecurityModal.js +1 -0
- package/lib/components/Security/SecuritySection.d.ts +3 -0
- package/lib/components/Security/SecuritySection.js +1 -0
- package/lib/components/Security/styled.d.ts +83 -0
- package/lib/components/Security/styled.js +219 -0
- package/lib/components/Security/types.d.ts +3 -0
- package/lib/components/Security/types.js +0 -0
- package/lib/components/SideMenu/SideMenu.d.ts +7 -0
- package/lib/components/SideMenu/SideMenu.js +4 -0
- package/lib/components/SideMenu/buildMenuItems.d.ts +29 -0
- package/lib/components/SideMenu/buildMenuItems.js +1 -0
- package/lib/components/SideMenu/useMenuItems.d.ts +14 -0
- package/lib/components/SideMenu/useMenuItems.js +1 -0
- package/lib/components/StickySidebar/SidebarActions.d.ts +1 -0
- package/lib/components/StickySidebar/SidebarActions.js +5 -0
- package/lib/components/StickySidebar/StickySidebar.d.ts +7 -0
- package/lib/components/StickySidebar/StickySidebar.js +22 -0
- package/lib/components/common/Badge.d.ts +43 -0
- package/lib/components/common/Badge.js +33 -0
- package/lib/components/common/Breadcrumbs.d.ts +11 -0
- package/lib/components/common/Breadcrumbs.js +43 -0
- package/lib/components/common/ContentWrapper.d.ts +25 -0
- package/lib/components/common/ContentWrapper.js +106 -0
- package/lib/components/common/DeepLinkAnchor.d.ts +20 -0
- package/lib/components/common/DeepLinkAnchor.js +32 -0
- package/lib/components/common/ExpandAllButton.d.ts +6 -0
- package/lib/components/common/ExpandAllButton.js +3 -0
- package/lib/components/common/ExternalDocumentation.d.ts +10 -0
- package/lib/components/common/ExternalDocumentation.js +10 -0
- package/lib/components/common/LazyMount.d.ts +9 -0
- package/lib/components/common/LazyMount.js +3 -0
- package/lib/components/common/LazySection.d.ts +14 -0
- package/lib/components/common/LazySection.js +9 -0
- package/lib/components/common/Markdown.d.ts +7 -0
- package/lib/components/common/Markdown.js +1 -0
- package/lib/components/common/MoreDetailsButton.d.ts +5 -0
- package/lib/components/common/MoreDetailsButton.js +12 -0
- package/lib/components/common/NestedToggleButton.d.ts +10 -0
- package/lib/components/common/NestedToggleButton.js +16 -0
- package/lib/components/common/PanelItem.d.ts +70 -0
- package/lib/components/common/PanelItem.js +62 -0
- package/lib/components/common/ResponseCodeTabs.d.ts +8 -0
- package/lib/components/common/ResponseCodeTabs.js +36 -0
- package/lib/components/common/Tag.d.ts +1 -0
- package/lib/components/common/Tag.js +11 -0
- package/lib/components/common/VendorExtensions.d.ts +7 -0
- package/lib/components/common/VendorExtensions.js +5 -0
- package/lib/components/common/ViewNested.d.ts +14 -0
- package/lib/components/common/ViewNested.js +31 -0
- package/lib/components/graphql/ArrowIcon.d.ts +9 -0
- package/lib/components/graphql/ArrowIcon.js +4 -0
- package/lib/components/graphql/GraphQLArgumentsSection.d.ts +10 -0
- package/lib/components/graphql/GraphQLArgumentsSection.js +1 -0
- package/lib/components/graphql/GraphQLEnumEmbedded.d.ts +5 -0
- package/lib/components/graphql/GraphQLEnumEmbedded.js +3 -0
- package/lib/components/graphql/GraphQLFieldView.d.ts +12 -0
- package/lib/components/graphql/GraphQLFieldView.js +1 -0
- package/lib/components/graphql/GraphQLFieldsEmbedded.d.ts +9 -0
- package/lib/components/graphql/GraphQLFieldsEmbedded.js +1 -0
- package/lib/components/graphql/GraphQLGroupTypeList.d.ts +5 -0
- package/lib/components/graphql/GraphQLGroupTypeList.js +11 -0
- package/lib/components/graphql/GraphQLHeaderExtras.d.ts +7 -0
- package/lib/components/graphql/GraphQLHeaderExtras.js +1 -0
- package/lib/components/graphql/GraphQLReturnTypeDetails.d.ts +11 -0
- package/lib/components/graphql/GraphQLReturnTypeDetails.js +18 -0
- package/lib/components/graphql/GraphQLTypeView.d.ts +9 -0
- package/lib/components/graphql/GraphQLTypeView.js +1 -0
- package/lib/components/graphql/GraphQLUnionEmbedded.d.ts +5 -0
- package/lib/components/graphql/GraphQLUnionEmbedded.js +1 -0
- package/lib/components/graphql/RequiresScopesButton.d.ts +9 -0
- package/lib/components/graphql/RequiresScopesButton.js +38 -0
- package/lib/components/graphql/RequiresScopesModal.d.ts +9 -0
- package/lib/components/graphql/RequiresScopesModal.js +88 -0
- package/lib/components/graphql/ViewNested.d.ts +14 -0
- package/lib/components/graphql/ViewNested.js +46 -0
- package/lib/components/graphql/renderDescription.d.ts +2 -0
- package/lib/components/graphql/renderDescription.js +1 -0
- package/lib/components/graphql/sections/GraphQLArgsSection.d.ts +5 -0
- package/lib/components/graphql/sections/GraphQLArgsSection.js +7 -0
- package/lib/components/graphql/sections/GraphQLFieldsSection.d.ts +5 -0
- package/lib/components/graphql/sections/GraphQLFieldsSection.js +1 -0
- package/lib/components/graphql/sections/ImplementedBySection.d.ts +5 -0
- package/lib/components/graphql/sections/ImplementedBySection.js +1 -0
- package/lib/components/graphql/sections/ImplementsSection.d.ts +5 -0
- package/lib/components/graphql/sections/ImplementsSection.js +1 -0
- package/lib/components/graphql/sections/PossibleTypesSection.d.ts +5 -0
- package/lib/components/graphql/sections/PossibleTypesSection.js +1 -0
- package/lib/components/graphql/sections/RequiresScopesSection.d.ts +5 -0
- package/lib/components/graphql/sections/RequiresScopesSection.js +1 -0
- package/lib/components/graphql/sections/ReturnTypeSection.d.ts +5 -0
- package/lib/components/graphql/sections/ReturnTypeSection.js +7 -0
- package/lib/components/graphql/styled.d.ts +45 -0
- package/lib/components/graphql/styled.js +124 -0
- package/lib/components/markdoc/Heading.d.ts +11 -0
- package/lib/components/markdoc/Heading.js +6 -0
- package/lib/components/markdoc/SchemaDefinition.d.ts +11 -0
- package/lib/components/markdoc/SchemaDefinition.js +6 -0
- package/lib/components/markdoc/apiDocsMarkdocComponents.d.ts +6 -0
- package/lib/components/markdoc/apiDocsMarkdocComponents.js +1 -0
- package/lib/components/markdoc/buildMarkdocOptions.d.ts +9 -0
- package/lib/components/markdoc/buildMarkdocOptions.js +1 -0
- package/lib/components/markdoc/defaultMarkdocConfig.d.ts +14 -0
- package/lib/components/markdoc/defaultMarkdocConfig.js +1 -0
- package/lib/components/markdoc/markdocAdapter.d.ts +11 -0
- package/lib/components/markdoc/markdocAdapter.js +1 -0
- package/lib/components/markdoc/markdocParser.d.ts +6 -0
- package/lib/components/markdoc/markdocParser.js +1 -0
- package/lib/components/markdoc/markdocRenderer.d.ts +8 -0
- package/lib/components/markdoc/markdocRenderer.js +3 -0
- package/lib/components/markdoc/tags/mcp-tag-schemas.d.ts +2 -0
- package/lib/components/markdoc/tags/mcp-tag-schemas.js +1 -0
- package/lib/components/markdoc/tags/schema-definition-tag.d.ts +2 -0
- package/lib/components/markdoc/tags/schema-definition-tag.js +1 -0
- package/lib/components/panels/DownloadPanelItem.d.ts +5 -0
- package/lib/components/panels/DownloadPanelItem.js +26 -0
- package/lib/components/panels/ExampleItem/CallbackPayloadItem.d.ts +5 -0
- package/lib/components/panels/ExampleItem/CallbackPayloadItem.js +5 -0
- package/lib/components/panels/ExampleItem/CodeSampleItem.d.ts +5 -0
- package/lib/components/panels/ExampleItem/CodeSampleItem.js +1 -0
- package/lib/components/panels/ExampleItem/ExamplesPanelItem.d.ts +3 -0
- package/lib/components/panels/ExampleItem/ExamplesPanelItem.js +1 -0
- package/lib/components/panels/ExampleItem/GraphQLQueryItem.d.ts +5 -0
- package/lib/components/panels/ExampleItem/GraphQLQueryItem.js +1 -0
- package/lib/components/panels/ExampleItem/GraphQLResponseItem.d.ts +5 -0
- package/lib/components/panels/ExampleItem/GraphQLResponseItem.js +1 -0
- package/lib/components/panels/ExampleItem/GraphQLTypeSampleItem.d.ts +5 -0
- package/lib/components/panels/ExampleItem/GraphQLTypeSampleItem.js +1 -0
- package/lib/components/panels/ExampleItem/GraphQLVariablesItem.d.ts +5 -0
- package/lib/components/panels/ExampleItem/GraphQLVariablesItem.js +1 -0
- package/lib/components/panels/ExampleItem/PayloadExampleItem.d.ts +5 -0
- package/lib/components/panels/ExampleItem/PayloadExampleItem.js +4 -0
- package/lib/components/panels/ExampleItem/ResponseExampleItem.d.ts +5 -0
- package/lib/components/panels/ExampleItem/ResponseExampleItem.js +1 -0
- package/lib/components/panels/ExampleItem/ServerDropdown.d.ts +17 -0
- package/lib/components/panels/ExampleItem/ServerDropdown.js +11 -0
- package/lib/components/panels/ExampleItem/hooks.d.ts +25 -0
- package/lib/components/panels/ExampleItem/hooks.js +1 -0
- package/lib/components/panels/ExampleItem/selectors.d.ts +36 -0
- package/lib/components/panels/ExampleItem/selectors.js +1 -0
- package/lib/components/panels/ExampleItem/styled.d.ts +164 -0
- package/lib/components/panels/ExampleItem/styled.js +128 -0
- package/lib/components/panels/ExampleItem/types.d.ts +9 -0
- package/lib/components/panels/ExampleItem/types.js +0 -0
- package/lib/components/panels/GroupPanelItem.d.ts +5 -0
- package/lib/components/panels/GroupPanelItem.js +116 -0
- package/lib/components/panels/LanguageItem/LanguageDropdown.d.ts +15 -0
- package/lib/components/panels/LanguageItem/LanguageDropdown.js +1 -0
- package/lib/components/panels/LanguageItem/LanguageItem.d.ts +11 -0
- package/lib/components/panels/LanguageItem/LanguageItem.js +1 -0
- package/lib/components/panels/LanguageItem/LanguageList.d.ts +10 -0
- package/lib/components/panels/LanguageItem/LanguageList.js +1 -0
- package/lib/components/panels/LanguageItem/LanguageListSkeleton.d.ts +4 -0
- package/lib/components/panels/LanguageItem/LanguageListSkeleton.js +22 -0
- package/lib/components/panels/LanguageItem/LanguagePanelItem.d.ts +5 -0
- package/lib/components/panels/LanguageItem/LanguagePanelItem.js +1 -0
- package/lib/components/panels/LanguageItem/constants.d.ts +2 -0
- package/lib/components/panels/LanguageItem/constants.js +1 -0
- package/lib/components/panels/LanguageItem/styled.d.ts +94 -0
- package/lib/components/panels/LanguageItem/styled.js +96 -0
- package/lib/components/panels/LocationsPanelItem.d.ts +5 -0
- package/lib/components/panels/LocationsPanelItem.js +1 -0
- package/lib/components/panels/McpExamplePanelItem.d.ts +5 -0
- package/lib/components/panels/McpExamplePanelItem.js +6 -0
- package/lib/components/panels/McpPanelItem.d.ts +3 -0
- package/lib/components/panels/McpPanelItem.js +54 -0
- package/lib/components/panels/OverviewPanelItem.d.ts +3 -0
- package/lib/components/panels/OverviewPanelItem.js +17 -0
- package/lib/components/panels/PanelMapper.d.ts +5 -0
- package/lib/components/panels/PanelMapper.js +1 -0
- package/lib/components/panels/PanelNodeProps.d.ts +4 -0
- package/lib/components/panels/PanelNodeProps.js +0 -0
- package/lib/components/panels/ReferencesPanelItem.d.ts +5 -0
- package/lib/components/panels/ReferencesPanelItem.js +19 -0
- package/lib/components/panels/ServerItem/ServerDescriptionTooltip.d.ts +4 -0
- package/lib/components/panels/ServerItem/ServerDescriptionTooltip.js +1 -0
- package/lib/components/panels/ServerItem/ServerItem.d.ts +5 -0
- package/lib/components/panels/ServerItem/ServerItem.js +40 -0
- package/lib/components/panels/ServerItem/ServerPanelItem.d.ts +5 -0
- package/lib/components/panels/ServerItem/ServerPanelItem.js +1 -0
- package/lib/components/panels/asyncapi/BrokerItem/BrokerBindingsSection.d.ts +7 -0
- package/lib/components/panels/asyncapi/BrokerItem/BrokerBindingsSection.js +1 -0
- package/lib/components/panels/asyncapi/BrokerItem/BrokerModal.d.ts +8 -0
- package/lib/components/panels/asyncapi/BrokerItem/BrokerModal.js +49 -0
- package/lib/components/panels/asyncapi/BrokerItem/BrokerOverviewSection.d.ts +6 -0
- package/lib/components/panels/asyncapi/BrokerItem/BrokerOverviewSection.js +25 -0
- package/lib/components/panels/asyncapi/BrokerItem/BrokerPanel.styled.d.ts +7 -0
- package/lib/components/panels/asyncapi/BrokerItem/BrokerPanel.styled.js +25 -0
- package/lib/components/panels/asyncapi/BrokerItem/BrokerPanelItem.d.ts +5 -0
- package/lib/components/panels/asyncapi/BrokerItem/BrokerPanelItem.js +48 -0
- package/lib/components/panels/asyncapi/ChannelBindingItem/ChannelBindingItem.d.ts +5 -0
- package/lib/components/panels/asyncapi/ChannelBindingItem/ChannelBindingItem.js +32 -0
- package/lib/components/panels/asyncapi/MessageBindingItem/MessageBindingItem.d.ts +5 -0
- package/lib/components/panels/asyncapi/MessageBindingItem/MessageBindingItem.js +1 -0
- package/lib/components/panels/asyncapi/MessageReferencesItem/MessageReferencesItem.d.ts +5 -0
- package/lib/components/panels/asyncapi/MessageReferencesItem/MessageReferencesItem.js +42 -0
- package/lib/components/panels/asyncapi/OperationBindingItem/OperationBindingItem.d.ts +5 -0
- package/lib/components/panels/asyncapi/OperationBindingItem/OperationBindingItem.js +1 -0
- package/lib/components/panels/asyncapi/common/bindingPanel.d.ts +29 -0
- package/lib/components/panels/asyncapi/common/bindingPanel.js +48 -0
- package/lib/components/panels/shared-panel-styles.d.ts +8 -0
- package/lib/components/panels/shared-panel-styles.js +38 -0
- package/lib/components/panels/styled.d.ts +20 -0
- package/lib/components/panels/styled.js +28 -0
- package/lib/components/pluggable/RedocCodeSample.d.ts +12 -0
- package/lib/components/pluggable/RedocCodeSample.js +1 -0
- package/lib/components/pluggable/RedocExample.d.ts +8 -0
- package/lib/components/pluggable/RedocExample.js +7 -0
- package/lib/components/pluggable/RedocResponseSamples.d.ts +9 -0
- package/lib/components/pluggable/RedocResponseSamples.js +1 -0
- package/lib/components/pluggable/RedocSchema.d.ts +12 -0
- package/lib/components/pluggable/RedocSchema.js +1 -0
- package/lib/components/pluggable/index.d.ts +6 -0
- package/lib/components/pluggable/index.js +1 -0
- package/lib/constants/openapi.d.ts +30 -0
- package/lib/constants/openapi.js +1 -0
- package/lib/constants/rendering.d.ts +8 -0
- package/lib/constants/rendering.js +1 -0
- package/lib/contexts/markdownAdapter.d.ts +21 -0
- package/lib/contexts/markdownAdapter.js +1 -0
- package/lib/contexts/telemetry.d.ts +3 -0
- package/lib/contexts/telemetry.js +1 -0
- package/lib/empty-linkedom.d.ts +1 -0
- package/lib/empty-linkedom.js +1 -0
- package/lib/empty.d.ts +7 -0
- package/lib/empty.js +1 -0
- package/lib/events/codeSampleCopy.d.ts +2 -0
- package/lib/events/codeSampleCopy.js +1 -0
- package/lib/events/creator.d.ts +2 -0
- package/lib/events/creator.js +1 -0
- package/lib/events/index.d.ts +8 -0
- package/lib/events/index.js +1 -0
- package/lib/events/languageSwitch.d.ts +2 -0
- package/lib/events/languageSwitch.js +1 -0
- package/lib/events/panelToggle.d.ts +2 -0
- package/lib/events/panelToggle.js +1 -0
- package/lib/events/serverSwitch.d.ts +2 -0
- package/lib/events/serverSwitch.js +1 -0
- package/lib/events/tryItOpen.d.ts +2 -0
- package/lib/events/tryItOpen.js +1 -0
- package/lib/events/tryItSent.d.ts +2 -0
- package/lib/events/tryItSent.js +1 -0
- package/lib/events/types.d.ts +9 -0
- package/lib/events/types.js +1 -0
- package/lib/hoc/withItemId.d.ts +6 -0
- package/lib/hoc/withItemId.js +1 -0
- package/lib/hoc/withReplayPrefetch.d.ts +14 -0
- package/lib/hoc/withReplayPrefetch.js +1 -0
- package/lib/hoc/withRouter.d.ts +4 -0
- package/lib/hoc/withRouter.js +1 -0
- package/lib/hoc/withStoreProvider.d.ts +23 -0
- package/lib/hoc/withStoreProvider.js +1 -0
- package/lib/hooks/useApiDocsRoutes.d.ts +8 -0
- package/lib/hooks/useApiDocsRoutes.js +1 -0
- package/lib/hooks/useApiDocsScroll.d.ts +9 -0
- package/lib/hooks/useApiDocsScroll.js +1 -0
- package/lib/hooks/useBodyScrollLock.d.ts +1 -0
- package/lib/hooks/useBodyScrollLock.js +1 -0
- package/lib/hooks/useCodeHighlight.d.ts +28 -0
- package/lib/hooks/useCodeHighlight.js +1 -0
- package/lib/hooks/useCopyCodeTelemetry.d.ts +13 -0
- package/lib/hooks/useCopyCodeTelemetry.js +1 -0
- package/lib/hooks/useDeepLinkSection.d.ts +16 -0
- package/lib/hooks/useDeepLinkSection.js +1 -0
- package/lib/hooks/useExpandableSection.d.ts +4 -0
- package/lib/hooks/useExpandableSection.js +1 -0
- package/lib/hooks/useHashLinkRedirect.d.ts +4 -0
- package/lib/hooks/useHashLinkRedirect.js +1 -0
- package/lib/hooks/useIsExpanded.d.ts +1 -0
- package/lib/hooks/useIsExpanded.js +1 -0
- package/lib/hooks/useIsHydrated.d.ts +4 -0
- package/lib/hooks/useIsHydrated.js +1 -0
- package/lib/hooks/useLicense.d.ts +6 -0
- package/lib/hooks/useLicense.js +1 -0
- package/lib/hooks/useManualScrollAnchor.d.ts +19 -0
- package/lib/hooks/useManualScrollAnchor.js +1 -0
- package/lib/hooks/useModalDismiss.d.ts +2 -0
- package/lib/hooks/useModalDismiss.js +1 -0
- package/lib/hooks/useNormalizeUrl.d.ts +2 -0
- package/lib/hooks/useNormalizeUrl.js +1 -0
- package/lib/hooks/useRouterHashBridge.d.ts +21 -0
- package/lib/hooks/useRouterHashBridge.js +1 -0
- package/lib/hooks/useScrollSpyUrlSync.d.ts +3 -0
- package/lib/hooks/useScrollSpyUrlSync.js +1 -0
- package/lib/hooks/useTelemetry.d.ts +2 -0
- package/lib/hooks/useTelemetry.js +1 -0
- package/lib/hooks/useTelemetryPageMetrics.d.ts +12 -0
- package/lib/hooks/useTelemetryPageMetrics.js +1 -0
- package/lib/hooks/useTranslate.d.ts +5 -0
- package/lib/hooks/useTranslate.js +1 -0
- package/lib/hooks/useUrlHash.d.ts +7 -0
- package/lib/hooks/useUrlHash.js +1 -0
- package/lib/hooks/useUserScrollIntent.d.ts +18 -0
- package/lib/hooks/useUserScrollIntent.js +1 -0
- package/lib/hooks/useVisitedChannelsTracker.d.ts +6 -0
- package/lib/hooks/useVisitedChannelsTracker.js +1 -0
- package/lib/icons/CSharpIcon/CSharpIcon.d.ts +2 -0
- package/lib/icons/CSharpIcon/CSharpIcon.js +1 -0
- package/lib/icons/CSharpIcon/index.d.ts +1 -0
- package/lib/icons/CSharpIcon/index.js +1 -0
- package/lib/icons/CurlIcon/CurlIcon.d.ts +4 -0
- package/lib/icons/CurlIcon/CurlIcon.js +16 -0
- package/lib/icons/CurlIcon/index.d.ts +1 -0
- package/lib/icons/CurlIcon/index.js +1 -0
- package/lib/icons/DefaultMappingIcon/DefaultMappingIcon.d.ts +4 -0
- package/lib/icons/DefaultMappingIcon/DefaultMappingIcon.js +10 -0
- package/lib/icons/DefaultMappingIcon/index.d.ts +1 -0
- package/lib/icons/DefaultMappingIcon/index.js +1 -0
- package/lib/icons/GOIcon/GOIcon.d.ts +2 -0
- package/lib/icons/GOIcon/GOIcon.js +1 -0
- package/lib/icons/GOIcon/index.d.ts +1 -0
- package/lib/icons/GOIcon/index.js +1 -0
- package/lib/icons/JavaIcon/JavaIcon.d.ts +2 -0
- package/lib/icons/JavaIcon/JavaIcon.js +1 -0
- package/lib/icons/JavaIcon/index.d.ts +1 -0
- package/lib/icons/JavaIcon/index.js +1 -0
- package/lib/icons/JavaScriptIcon/JavaScriptIcon.d.ts +2 -0
- package/lib/icons/JavaScriptIcon/JavaScriptIcon.js +1 -0
- package/lib/icons/JavaScriptIcon/index.d.ts +1 -0
- package/lib/icons/JavaScriptIcon/index.js +1 -0
- package/lib/icons/ListIcon/ListIcon.d.ts +14 -0
- package/lib/icons/ListIcon/ListIcon.js +10 -0
- package/lib/icons/NodeJSIcon/NodeJSIcon.d.ts +2 -0
- package/lib/icons/NodeJSIcon/NodeJSIcon.js +1 -0
- package/lib/icons/NodeJSIcon/index.d.ts +1 -0
- package/lib/icons/NodeJSIcon/index.js +1 -0
- package/lib/icons/PHPIcon/PHPIcon.d.ts +2 -0
- package/lib/icons/PHPIcon/PHPIcon.js +1 -0
- package/lib/icons/PHPIcon/index.d.ts +1 -0
- package/lib/icons/PHPIcon/index.js +1 -0
- package/lib/icons/PayloadIcon/PayloadIcon.d.ts +2 -0
- package/lib/icons/PayloadIcon/PayloadIcon.js +1 -0
- package/lib/icons/PayloadIcon/index.d.ts +1 -0
- package/lib/icons/PayloadIcon/index.js +1 -0
- package/lib/icons/PlusCircleIcon/PlusCircleIcon.d.ts +7 -0
- package/lib/icons/PlusCircleIcon/PlusCircleIcon.js +10 -0
- package/lib/icons/PythonIcon/PythonIcon.d.ts +2 -0
- package/lib/icons/PythonIcon/PythonIcon.js +1 -0
- package/lib/icons/PythonIcon/index.d.ts +1 -0
- package/lib/icons/PythonIcon/index.js +1 -0
- package/lib/icons/RIcon/RIcon.d.ts +2 -0
- package/lib/icons/RIcon/RIcon.js +1 -0
- package/lib/icons/RIcon/index.d.ts +1 -0
- package/lib/icons/RIcon/index.js +1 -0
- package/lib/icons/RubyIcon/RubyIcon.d.ts +2 -0
- package/lib/icons/RubyIcon/RubyIcon.js +1 -0
- package/lib/icons/RubyIcon/index.d.ts +1 -0
- package/lib/icons/RubyIcon/index.js +1 -0
- package/lib/index.d.ts +60 -0
- package/lib/index.js +1 -0
- package/lib/jotai/app.d.ts +76 -0
- package/lib/jotai/app.js +1 -0
- package/lib/jotai/examples.d.ts +5 -0
- package/lib/jotai/examples.js +1 -0
- package/lib/jotai/graphql.d.ts +10 -0
- package/lib/jotai/graphql.js +1 -0
- package/lib/jotai/itemStore.d.ts +49 -0
- package/lib/jotai/itemStore.js +1 -0
- package/lib/jotai/routes.d.ts +4 -0
- package/lib/jotai/routes.js +1 -0
- package/lib/jotai/schema.d.ts +3 -0
- package/lib/jotai/schema.js +1 -0
- package/lib/jotai/store.d.ts +25 -0
- package/lib/jotai/store.js +1 -0
- package/lib/options/constants.d.ts +16 -0
- package/lib/options/constants.js +1 -0
- package/lib/options/helpers.d.ts +26 -0
- package/lib/options/helpers.js +1 -0
- package/lib/options/normalizeOptions.d.ts +2 -0
- package/lib/options/normalizeOptions.js +1 -0
- package/lib/pages/EntryPage.d.ts +25 -0
- package/lib/pages/EntryPage.js +5 -0
- package/lib/pages/GroupPage.d.ts +1 -0
- package/lib/pages/GroupPage.js +47 -0
- package/lib/pages/ItemPage.d.ts +1 -0
- package/lib/pages/ItemPage.js +26 -0
- package/lib/pages/NotFoundPage.d.ts +6 -0
- package/lib/pages/NotFoundPage.js +1 -0
- package/lib/pages/OverviewPage.d.ts +1 -0
- package/lib/pages/OverviewPage.js +11 -0
- package/lib/pages/TopLevelEntryView.d.ts +17 -0
- package/lib/pages/TopLevelEntryView.js +1 -0
- package/lib/services/code-samples/builder.d.ts +38 -0
- package/lib/services/code-samples/builder.js +1 -0
- package/lib/services/code-samples/constants/try-it-loading-state.d.ts +6 -0
- package/lib/services/code-samples/constants/try-it-loading-state.js +1 -0
- package/lib/services/code-samples/convertSampleToString.d.ts +3 -0
- package/lib/services/code-samples/convertSampleToString.js +17 -0
- package/lib/services/code-samples/discriminator.d.ts +39 -0
- package/lib/services/code-samples/discriminator.js +1 -0
- package/lib/services/code-samples/example-key.d.ts +25 -0
- package/lib/services/code-samples/example-key.js +1 -0
- package/lib/services/code-samples/generators/csharp-newtonsoft.d.ts +9 -0
- package/lib/services/code-samples/generators/csharp-newtonsoft.js +2 -0
- package/lib/services/code-samples/generators/csharp.d.ts +9 -0
- package/lib/services/code-samples/generators/csharp.js +2 -0
- package/lib/services/code-samples/generators/curl.d.ts +8 -0
- package/lib/services/code-samples/generators/curl.js +7 -0
- package/lib/services/code-samples/generators/go.d.ts +13 -0
- package/lib/services/code-samples/generators/go.js +3 -0
- package/lib/services/code-samples/generators/helpers/code-builder.d.ts +56 -0
- package/lib/services/code-samples/generators/helpers/code-builder.js +3 -0
- package/lib/services/code-samples/generators/helpers/mime.d.ts +1 -0
- package/lib/services/code-samples/generators/helpers/mime.js +1 -0
- package/lib/services/code-samples/generators/helpers/oauth2-snippets.d.ts +21 -0
- package/lib/services/code-samples/generators/helpers/oauth2-snippets.js +1 -0
- package/lib/services/code-samples/generators/helpers/php-array.d.ts +6 -0
- package/lib/services/code-samples/generators/helpers/php-array.js +5 -0
- package/lib/services/code-samples/generators/helpers/r-utils.d.ts +7 -0
- package/lib/services/code-samples/generators/helpers/r-utils.js +6 -0
- package/lib/services/code-samples/generators/helpers/shell.d.ts +8 -0
- package/lib/services/code-samples/generators/helpers/shell.js +1 -0
- package/lib/services/code-samples/generators/helpers/string-utils.d.ts +4 -0
- package/lib/services/code-samples/generators/helpers/string-utils.js +1 -0
- package/lib/services/code-samples/generators/helpers/stringify-js.d.ts +11 -0
- package/lib/services/code-samples/generators/helpers/stringify-js.js +8 -0
- package/lib/services/code-samples/generators/helpers/sub-request.d.ts +2 -0
- package/lib/services/code-samples/generators/helpers/sub-request.js +1 -0
- package/lib/services/code-samples/generators/helpers/url-helpers.d.ts +17 -0
- package/lib/services/code-samples/generators/helpers/url-helpers.js +2 -0
- package/lib/services/code-samples/generators/index.d.ts +16 -0
- package/lib/services/code-samples/generators/index.js +1 -0
- package/lib/services/code-samples/generators/java.d.ts +9 -0
- package/lib/services/code-samples/generators/java.js +3 -0
- package/lib/services/code-samples/generators/java8.d.ts +9 -0
- package/lib/services/code-samples/generators/java8.js +2 -0
- package/lib/services/code-samples/generators/javascript.d.ts +9 -0
- package/lib/services/code-samples/generators/javascript.js +1 -0
- package/lib/services/code-samples/generators/node.d.ts +10 -0
- package/lib/services/code-samples/generators/node.js +1 -0
- package/lib/services/code-samples/generators/php.d.ts +13 -0
- package/lib/services/code-samples/generators/php.js +6 -0
- package/lib/services/code-samples/generators/python.d.ts +3 -0
- package/lib/services/code-samples/generators/python.js +9 -0
- package/lib/services/code-samples/generators/r.d.ts +10 -0
- package/lib/services/code-samples/generators/r.js +7 -0
- package/lib/services/code-samples/generators/ruby.d.ts +10 -0
- package/lib/services/code-samples/generators/ruby.js +1 -0
- package/lib/services/code-samples/generators/types.d.ts +6 -0
- package/lib/services/code-samples/generators/types.js +0 -0
- package/lib/services/code-samples/har.d.ts +45 -0
- package/lib/services/code-samples/har.js +0 -0
- package/lib/services/code-samples/index.d.ts +8 -0
- package/lib/services/code-samples/index.js +1 -0
- package/lib/services/code-samples/replay/embedded-replay-converter.d.ts +6 -0
- package/lib/services/code-samples/replay/embedded-replay-converter.js +1 -0
- package/lib/services/code-samples/replay/from-openapi-document.d.ts +12 -0
- package/lib/services/code-samples/replay/from-openapi-document.js +1 -0
- package/lib/services/code-samples/replay/har-to-code-sample-har.d.ts +41 -0
- package/lib/services/code-samples/replay/har-to-code-sample-har.js +1 -0
- package/lib/services/code-samples/replay/index.d.ts +8 -0
- package/lib/services/code-samples/replay/index.js +1 -0
- package/lib/services/code-samples/replay/map-servers.d.ts +19 -0
- package/lib/services/code-samples/replay/map-servers.js +1 -0
- package/lib/services/code-samples/replay/merge-configure-into-source.d.ts +17 -0
- package/lib/services/code-samples/replay/merge-configure-into-source.js +1 -0
- package/lib/services/code-samples/replay/normalize-servers.d.ts +3 -0
- package/lib/services/code-samples/replay/normalize-servers.js +1 -0
- package/lib/services/code-samples/replay/overlay-converter.d.ts +15 -0
- package/lib/services/code-samples/replay/overlay-converter.js +1 -0
- package/lib/services/code-samples/replay/replay-adapter.d.ts +5 -0
- package/lib/services/code-samples/replay/replay-adapter.js +1 -0
- package/lib/services/code-samples/replay/replay-handler.d.ts +5 -0
- package/lib/services/code-samples/replay/replay-handler.js +1 -0
- package/lib/services/code-samples/replay/replay-predefined-env.d.ts +4 -0
- package/lib/services/code-samples/replay/replay-predefined-env.js +1 -0
- package/lib/services/code-samples/replay/replay-types.d.ts +75 -0
- package/lib/services/code-samples/replay/replay-types.js +0 -0
- package/lib/services/code-samples/resolvers.d.ts +5 -0
- package/lib/services/code-samples/resolvers.js +1 -0
- package/lib/services/code-samples/sample-har.d.ts +41 -0
- package/lib/services/code-samples/sample-har.js +0 -0
- package/lib/services/code-samples/server-variables.d.ts +11 -0
- package/lib/services/code-samples/server-variables.js +1 -0
- package/lib/services/code-samples/source.d.ts +107 -0
- package/lib/services/code-samples/source.js +0 -0
- package/lib/services/code-samples/use-resolvers.d.ts +2 -0
- package/lib/services/code-samples/use-resolvers.js +1 -0
- package/lib/services/code-samples/utils/map-request-values.d.ts +6 -0
- package/lib/services/code-samples/utils/map-request-values.js +1 -0
- package/lib/services/license/check.d.ts +14 -0
- package/lib/services/license/check.js +1 -0
- package/lib/services/operation-samples/index.d.ts +14 -0
- package/lib/services/operation-samples/index.js +2 -0
- package/lib/services/operation-samples/types.d.ts +37 -0
- package/lib/services/operation-samples/types.js +0 -0
- package/lib/services/schema/dialects/graphqlSchema.d.ts +1 -0
- package/lib/services/schema/dialects/graphqlSchema.js +1 -0
- package/lib/services/schema/dialects/jsonSchema.d.ts +3 -0
- package/lib/services/schema/dialects/jsonSchema.js +1 -0
- package/lib/services/schema/index.d.ts +1 -0
- package/lib/services/schema/index.js +1 -0
- package/lib/services/schema/propertyBuilder.d.ts +32 -0
- package/lib/services/schema/propertyBuilder.js +1 -0
- package/lib/services/schema/propertyTreeBuilder.d.ts +21 -0
- package/lib/services/schema/propertyTreeBuilder.js +1 -0
- package/lib/services/schema/schemaProcessor.d.ts +2 -0
- package/lib/services/schema/schemaProcessor.js +1 -0
- package/lib/services/schema/variant-label.d.ts +6 -0
- package/lib/services/schema/variant-label.js +1 -0
- package/lib/telemetry/RedocTelemetry.d.ts +15 -0
- package/lib/telemetry/RedocTelemetry.js +1 -0
- package/lib/types/asyncapi.d.ts +367 -0
- package/lib/types/asyncapi.js +1 -0
- package/lib/types/common.d.ts +168 -0
- package/lib/types/common.js +1 -0
- package/lib/types/content.d.ts +535 -0
- package/lib/types/content.js +0 -0
- package/lib/types/events.d.ts +75 -0
- package/lib/types/events.js +0 -0
- package/lib/types/graphql-store.d.ts +60 -0
- package/lib/types/graphql-store.js +1 -0
- package/lib/types/graphql.d.ts +54 -0
- package/lib/types/graphql.js +0 -0
- package/lib/types/index.d.ts +10 -0
- package/lib/types/index.js +1 -0
- package/lib/types/openapi.d.ts +586 -0
- package/lib/types/openapi.js +1 -0
- package/lib/types/options.d.ts +260 -0
- package/lib/types/options.js +0 -0
- package/lib/types/pluggable.d.ts +4 -0
- package/lib/types/pluggable.js +0 -0
- package/lib/types/schema.d.ts +155 -0
- package/lib/types/schema.js +1 -0
- package/lib/types/store.d.ts +182 -0
- package/lib/types/store.js +0 -0
- package/lib/utils/calculateMaxLength.d.ts +6 -0
- package/lib/utils/calculateMaxLength.js +1 -0
- package/lib/utils/compose.d.ts +7 -0
- package/lib/utils/compose.js +1 -0
- package/lib/utils/cookies.d.ts +7 -0
- package/lib/utils/cookies.js +1 -0
- package/lib/utils/deep-link.d.ts +146 -0
- package/lib/utils/deep-link.js +1 -0
- package/lib/utils/environments.d.ts +6 -0
- package/lib/utils/environments.js +1 -0
- package/lib/utils/expansion.d.ts +3 -0
- package/lib/utils/expansion.js +1 -0
- package/lib/utils/extract-extensions.d.ts +4 -0
- package/lib/utils/extract-extensions.js +1 -0
- package/lib/utils/fetch-openapi-definition.d.ts +6 -0
- package/lib/utils/fetch-openapi-definition.js +1 -0
- package/lib/utils/form-urlencoded.d.ts +6 -0
- package/lib/utils/form-urlencoded.js +1 -0
- package/lib/utils/graphql-directive-utils.d.ts +6 -0
- package/lib/utils/graphql-directive-utils.js +3 -0
- package/lib/utils/graphql-reference-map.d.ts +3 -0
- package/lib/utils/graphql-reference-map.js +1 -0
- package/lib/utils/graphql-samples.d.ts +25 -0
- package/lib/utils/graphql-samples.js +17 -0
- package/lib/utils/graphql-scopes.d.ts +6 -0
- package/lib/utils/graphql-scopes.js +1 -0
- package/lib/utils/graphql-type-expansion.d.ts +5 -0
- package/lib/utils/graphql-type-expansion.js +1 -0
- package/lib/utils/http-methods.d.ts +8 -0
- package/lib/utils/http-methods.js +1 -0
- package/lib/utils/languages.d.ts +18 -0
- package/lib/utils/languages.js +1 -0
- package/lib/utils/loadAndBundleSpec.d.ts +4 -0
- package/lib/utils/loadAndBundleSpec.js +1 -0
- package/lib/utils/logo.d.ts +8 -0
- package/lib/utils/logo.js +1 -0
- package/lib/utils/media-type.d.ts +7 -0
- package/lib/utils/media-type.js +1 -0
- package/lib/utils/multipart.d.ts +7 -0
- package/lib/utils/multipart.js +1 -0
- package/lib/utils/refPointer.d.ts +2 -0
- package/lib/utils/refPointer.js +1 -0
- package/lib/utils/resolveText.d.ts +2 -0
- package/lib/utils/resolveText.js +1 -0
- package/lib/utils/routing.d.ts +49 -0
- package/lib/utils/routing.js +1 -0
- package/lib/utils/scroll-anchoring.d.ts +3 -0
- package/lib/utils/scroll-anchoring.js +1 -0
- package/lib/utils/security-scope.d.ts +3 -0
- package/lib/utils/security-scope.js +1 -0
- package/lib/utils/serialize-parameter.d.ts +8 -0
- package/lib/utils/serialize-parameter.js +1 -0
- package/lib/utils/serialize-querystring.d.ts +6 -0
- package/lib/utils/serialize-querystring.js +1 -0
- package/lib/utils/session-storage.d.ts +2 -0
- package/lib/utils/session-storage.js +1 -0
- package/lib/utils/split-badges-by-position.d.ts +5 -0
- package/lib/utils/split-badges-by-position.js +1 -0
- package/lib/utils/status-code.d.ts +1 -0
- package/lib/utils/status-code.js +1 -0
- package/lib/utils/string.d.ts +18 -0
- package/lib/utils/string.js +1 -0
- package/lib/utils/telemetry.d.ts +1 -0
- package/lib/utils/telemetry.js +1 -0
- package/lib/utils/url.d.ts +9 -0
- package/lib/utils/url.js +1 -0
- package/lib/utils/xml.d.ts +1 -0
- package/lib/utils/xml.js +1 -0
- package/package.json +97 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { SchemaNode, DiscriminatorObject, PropertyType, AccessMode } from '../../types/schema.js';
|
|
2
|
+
export declare function detectJsonSchemaType(schema: SchemaNode): string;
|
|
3
|
+
export declare function schemaHasType(type: string | string[], target: string): boolean;
|
|
4
|
+
export declare function isArrayTypedSchema(schema: SchemaNode): boolean;
|
|
5
|
+
export declare function isStructuredArrayItems(items: SchemaNode): boolean;
|
|
6
|
+
export declare function isPrimitiveLikeSchema(schema: SchemaNode, type: string | string[]): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Primitive items that carry their own documentation are rendered as a nested
|
|
9
|
+
* `[i]` row, so the array row keeps only the array-level info; trivial primitive
|
|
10
|
+
* items stay flattened into the array row with their metadata promoted onto it.
|
|
11
|
+
*/
|
|
12
|
+
export declare function primitiveArrayItemsHaveOwnInfo(items: SchemaNode): boolean;
|
|
13
|
+
export declare function humanizeConstraints(schema: SchemaNode): string[];
|
|
14
|
+
export declare function buildDisplayType(schema: SchemaNode, type: string | string[]): {
|
|
15
|
+
typePrefix: string;
|
|
16
|
+
displayType: string;
|
|
17
|
+
displayFormat: string;
|
|
18
|
+
};
|
|
19
|
+
export declare function getDocumentedPrimitiveArrayItems(schema: SchemaNode, type: string | string[]): SchemaNode | undefined;
|
|
20
|
+
export declare function stringifyValue(value: unknown): string;
|
|
21
|
+
export declare function toPropertyExample(value: unknown, exampleSerializer?: (value: unknown) => string): PropertyType['example'];
|
|
22
|
+
export declare function getAccessMode(schema: SchemaNode): AccessMode;
|
|
23
|
+
export declare function getEnum(schema: SchemaNode): PropertyType['enum'];
|
|
24
|
+
export declare function getDiscriminatorObject(schema: SchemaNode): DiscriminatorObject | undefined;
|
|
25
|
+
export type PropertyShellOptions = {
|
|
26
|
+
isRequired?: boolean;
|
|
27
|
+
isAdditionalProperty?: boolean;
|
|
28
|
+
isPatternProperty?: boolean;
|
|
29
|
+
exampleSerializer?: (value: unknown) => string;
|
|
30
|
+
};
|
|
31
|
+
export declare function buildPropertyShell(schema: SchemaNode, options?: PropertyShellOptions): PropertyType;
|
|
32
|
+
export declare function promotePrimitiveArrayMetadata(property: PropertyType, schema: SchemaNode, type: string | string[], exampleSerializer?: (value: unknown) => string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isSchemaNode as T,isStructuredExample as v}from"../../types/schema.js";const D=new Set(["x-circular-ref","x-complex","x-nullable","x-badges","x-enumDescriptions","x-additionalPropertiesName","x-discriminator","x-displayName","x-parentRefs","x-original-ref"]),R={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",contentEncoding:"string",contentMediaType:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",maxProperties:"object",minProperties:"object",required:"object",properties:"object",additionalProperties:"object",patternProperties:"object"},w=Object.entries(R);function d(e){if(e.type!==void 0&&!Array.isArray(e.type))return e.type;for(const[r,t]of w)if(e[r]!==void 0)return t;return"any"}function l(e,r){return e===r||Array.isArray(e)&&e.includes(r)}function k(e){return l(e.type||d(e),"array")}function y(e){return!e["x-circular-ref"]&&!e["x-complex"]&&k(e)&&(e.items!==void 0||e.prefixItems!==void 0)}function $(e,r){if(e["x-circular-ref"]||e["x-complex"])return!0;if(e.oneOf!==void 0||e.anyOf!==void 0||e.if&&e.then||e.if&&e.else||Array.isArray(e.items)||Array.isArray(e.prefixItems))return!1;if(l(r,"object")){const t=e.properties;if(!(t!==void 0?Object.keys(t).length===0:e.additionalProperties===void 0&&e.unevaluatedProperties===void 0&&e.patternProperties===void 0))return!1}if(l(r,"array")&&e.items!==void 0&&typeof e.items!="boolean"&&!Array.isArray(e.items)){if(y(e.items))return!1;const t=$(e.items,e.items.type||d(e.items));return t&&x(e.items)?!1:t}return!0}function x(e){return!!(e.description||e.pattern||e.externalDocs||e.default!==void 0||e.const!==void 0||e.deprecated||e.contentEncoding||O(e).length)}function c(e,r,t){if(r!==void 0&&t!==void 0)return r===t?`= ${r} ${e}`:`[ ${r} .. ${t} ] ${e}`;if(t!==void 0)return`<= ${t} ${e}`;if(r!==void 0)return r===1?"non-empty":`>= ${r} ${e}`}function q(e){const r=typeof e.exclusiveMinimum=="number"?Math.min(e.exclusiveMinimum,e.minimum??1/0):e.minimum,t=typeof e.exclusiveMaximum=="number"?Math.max(e.exclusiveMaximum,e.maximum??-1/0):e.maximum,u=typeof e.exclusiveMinimum=="number"||!!e.exclusiveMinimum,o=typeof e.exclusiveMaximum=="number"||!!e.exclusiveMaximum;if(r!==void 0&&t!==void 0)return`${u?"( ":"[ "}${r} .. ${t}${o?" )":" ]"}`;if(t!==void 0)return`${o?"< ":"<= "}${t}`;if(r!==void 0)return`${u?"> ":">= "}${r}`}function O(e){const r=[],t=i=>{i&&r.push(i)};t(c("characters",e.minLength,e.maxLength)),t(c("items",e.minItems,e.maxItems));const u=e.minProperties,o=e.maxProperties;t(c(u===1&&o===1?"property":"properties",u,o));const f=e.multipleOf;if(f!==void 0){const i=f.toString(10);r.push(/^0\.0*1$/.test(i)?`decimal places <= ${i.split(".")[1].length}`:`multiple of ${i}`)}return t(q(e)),e.uniqueItems&&r.push("unique"),r}function L(e){return e.split(" or ").map(r=>r.replace(/^(string|object|number|integer|array|boolean)s?( ?.*)/,"$1s$2")).join(" or ")}function J(e){if(!Y(e)?.propertyName)return e.oneOf??e.anyOf}function _(e){return[...new Set(e.map(r=>{const t=r.type||d(r),{typePrefix:u,displayType:o}=j(r,t),f=r["x-original-ref"]?.split("/").pop(),i=r.title||f;let n=u+(i?`${i} (${o})`:o);return n.indexOf(" or ")>-1&&(n=`(${n})`),n}))].join(" or ")}function j(e,r){const t=J(e);if(t)return{typePrefix:"",displayType:_(t),displayFormat:e.format||""};let u="",o=Array.isArray(r)?r.map(i=>i===null?"null":i).join(" or "):r,f=e.format||"";if(l(r,"array")){const i=e.items;if(i&&!Array.isArray(i)&&typeof i!="boolean"&&!Array.isArray(e.prefixItems)){if(y(i))o="items";else{const n=i.type||d(i);o=L(Array.isArray(n)?n.join(" or "):n),f=S(e,r)?"":i.format||""}u="Array of "}else Array.isArray(e.prefixItems)||Array.isArray(e.items)||e.items===!1?o="Array of items":(o="any",u="Array of ");if(Array.isArray(r)){const n=r.filter(s=>s!=="array");n.length&&(o+=` or ${n.join(" or ")}`)}}if(e.nullable||e["x-nullable"]){const i=Array.isArray(r)?r:[r];!i.includes("null")&&!i.some(n=>n===null)&&(o+=" or null")}return{typePrefix:u,displayType:o,displayFormat:f}}function I(e,r){if(!l(r,"array")||Array.isArray(e.prefixItems))return;const t=e.items;if(T(t)&&!(t["x-circular-ref"]||t["x-complex"])&&!y(t))return $(t,t.type||d(t))?t:void 0}function S(e,r){const t=I(e,r);return t&&x(t)?t:void 0}function z(e,r){const{typePrefix:t,displayType:u,displayFormat:o}=j(e,r),f=e.contentEncoding||"",i=O(e),n=[t+u];return o&&n.push(`(${o})`),f&&n.push(f),n.push(...i),n.join(", ")}function E(e){return typeof e=="string"?e:JSON.stringify(e)}function M(e,r){return r?r(e):v(e)?e:JSON.stringify(e)}function C(e,r){const t=e.examples;if(!t||typeof t!="object"||Array.isArray(t))return;const u=r??E,o={};for(const[f,i]of Object.entries(t)){if(!i||typeof i!="object"||Array.isArray(i))continue;const n=i,s=n.value,p={...typeof n.summary=="string"&&{summary:n.summary},...typeof n.description=="string"&&{description:n.description},...s!==void 0&&{value:u(s)}};Object.keys(p).length>0&&(o[f]=p)}return Object.keys(o).length>0?o:void 0}function V(e){const r={};let t=!1;for(const u of Object.keys(e))u.startsWith("x-")&&!u.startsWith("x-redocly")&&!D.has(u)&&(r[u]=E(e[u]),t=!0);return t?r:void 0}function W(e){if(e.readOnly)return"read-only";if(e.writeOnly)return"write-only"}function N(e){return e["x-enumDescriptions"]??(e.enum?.length?e.enum:void 0)}function Y(e){return e.discriminator??e["x-discriminator"]}function H(e,r={}){const{isRequired:t=!1,isAdditionalProperty:u=!1,isPatternProperty:o=!1,exampleSerializer:f}=r,i=e.type||d(e),n={type:z(e,i)};let s=e["x-original-ref"]?.split("/").pop(),p=e.title||s;if(!p&&l(i,"array")&&!S(e,i)){const a=e.items;a&&!Array.isArray(a)&&typeof a!="boolean"&&(s=a["x-original-ref"]?.split("/").pop(),p=a.title||s)}p&&(n.title=p),s&&(n.schemaName=s),u&&(n.isAdditionalProperty=!0),o&&(n.isPatternProperty=!0),e["x-circular-ref"]&&(n.isCircular=!0),e["x-complex"]&&(n.isComplex=!0),t&&(n.isRequired=!0),e.deprecated&&(n.isDeprecated=!0),e.description&&(n.description=e.description),e.pattern&&(n.pattern=e.pattern),e.example!==void 0&&(n.example=M(e.example,f)),e.default!==void 0&&(n.default=JSON.stringify(e.default));const m=C(e,f);m&&(n.examples=m);const g=e["x-badges"];g?.length&&(n.badges=g);const A=W(e);A&&(n.accessMode=A);const b=N(e);b&&(n.enum=b);const P=V(e);return P&&(n.extensions=P),e.externalDocs&&(n.externalDocs={description:e.externalDocs.description||"",url:e.externalDocs.url||""}),e.const!==void 0&&(n.const=JSON.stringify(e.const)),n}function K(e,r,t,u){const o=I(r,t);!o||x(o)||(e.enum||(e.enum=N(o)),e.example===void 0&&o.example!==void 0&&(e.example=M([o.example],u)))}export{j as buildDisplayType,H as buildPropertyShell,d as detectJsonSchemaType,W as getAccessMode,Y as getDiscriminatorObject,S as getDocumentedPrimitiveArrayItems,N as getEnum,O as humanizeConstraints,k as isArrayTypedSchema,$ as isPrimitiveLikeSchema,y as isStructuredArrayItems,x as primitiveArrayItemsHaveOwnInfo,K as promotePrimitiveArrayMetadata,l as schemaHasType,E as stringifyValue,M as toPropertyExample};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { SchemaNode, PropertyType } from '../../types/schema.js';
|
|
2
|
+
export type SchemaTreeContext = {
|
|
3
|
+
prepareVariant(ref: SchemaNode): SchemaNode;
|
|
4
|
+
propertyRefCache: Map<string, PropertyType>;
|
|
5
|
+
variantResolutionCache: Map<string, SchemaNode>;
|
|
6
|
+
isChild?: boolean;
|
|
7
|
+
implicitDiscriminatorChildren?: Record<string, ImplicitDiscriminatorChild[]>;
|
|
8
|
+
exampleSerializer?: (value: unknown) => string;
|
|
9
|
+
sortRequiredPropsFirst?: boolean;
|
|
10
|
+
/** Refs open on the current DFS path; reaching one again is a cycle. */
|
|
11
|
+
activeRefs: Set<string>;
|
|
12
|
+
depth: number;
|
|
13
|
+
/** Refs on a reference cycle; memoized by ref alone so a cyclic component expands once. */
|
|
14
|
+
recursiveRefs: ReadonlySet<string>;
|
|
15
|
+
};
|
|
16
|
+
type ImplicitDiscriminatorChild = {
|
|
17
|
+
ref: string;
|
|
18
|
+
value: string;
|
|
19
|
+
};
|
|
20
|
+
export declare function buildPropertyTree(preparedRoot: SchemaNode, ctx: SchemaTreeContext, rootJsonPointer: string): PropertyType;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{encodeJsonPointerSegment as M}from"../../utils/refPointer.js";import{isSchemaNode as O,switcherLabel as A}from"../../types/schema.js";import{buildPropertyShell as K,detectJsonSchemaType as S,getAccessMode as j,getDiscriminatorObject as w,getDocumentedPrimitiveArrayItems as k,getEnum as H,humanizeConstraints as J,isPrimitiveLikeSchema as $,isStructuredArrayItems as X,primitiveArrayItemsHaveOwnInfo as Y,promotePrimitiveArrayMetadata as G,schemaHasType as x,toPropertyExample as T}from"./propertyBuilder.js";import{deriveVariantLabel as U}from"./variant-label.js";const W=10,Q=200;function Z(e,i,r,t){const n=w(i)?`${e}:d`:e;return t?`${n}#rec`:`${n}@${r}`}function I(e){if(e.isCircular)return!0;if(e.properties){for(const i of Object.values(e.properties))if(I(i))return!0}if(e.items){for(const i of e.items)if(I(i))return!0}if(e.switcher)for(const i of Object.values(e.switcher.options)){if(i.isCircular)return!0;if(i.properties){for(const r of Object.values(i.properties))if(I(r))return!0}}return!1}const V=/^#\/components\/(schemas|pathItems)\/([^/]+)$/;function h(e){const i=e.match(V);if(i)return i[2].replace(/~1/g,"/").replace(/~0/g,"~")}function y(e,i,r={},t){const n=K(e,{...r,exampleSerializer:i.exampleSerializer});if(!n.title){const l=h(t);l&&(n.title=l)}if(n.isCircular||n.isComplex)return n;const s=e["x-original-ref"];if(s&&i.activeRefs.has(s))return n.isCircular=!0,n;if(i.activeRefs.size>W||i.depth>Q)return n.isComplex=!0,n;const f=s!==void 0&&i.recursiveRefs.has(s),u=s===void 0?void 0:Z(s,e,t,f);if(u){const l=i.propertyRefCache.get(u);if(l)return{...l,...n}}s&&i.activeRefs.add(s);try{ie(n,e,{...i,depth:i.depth+1},t)}finally{s&&i.activeRefs.delete(s)}return u&&(f||!I(n))&&i.propertyRefCache.set(u,n),n.isExpandable=ee(n),n}function ee(e){if(e.isCircular)return!1;const i=t=>!t.isCircular&&(!!t.switcher||!!t.items?.length||!!(t.properties&&Object.keys(t.properties).length)),r=t=>t.isCircular?!1:!!(t.properties&&Object.values(t.properties).some(i)||t.items?.some(r)||t.switcher&&Object.values(t.switcher.options).some(r));return!!(e.properties&&Object.values(e.properties).some(i)||e.switcher&&Object.values(e.switcher.options).some(r)||e.items?.some(r))}function _(e,i){if(!Array.isArray(e)||e.length===0)return;let r;for(let t=0;t<e.length;t++){const n=e[t];if(!O(n))return;const s=i(n);if(s===void 0)return;if(t===0)r=s;else if(s!==r)return}return r}function E(e,i,r){if(e.example!==void 0||_(i,s=>s.example===void 0?void 0:JSON.stringify(s.example))===void 0)return;const n=Array.isArray(i)?i[0]:void 0;O(n)&&(e.example=T(n.example,r))}function R(e,i){if(e.accessMode!==void 0)return;const r=_(i,j);r&&(e.accessMode=r)}function ie(e,i,r,t){const n=i.type||S(i),s=$(i,n),f=w(i);if(!r.isChild&&f?.propertyName){e.switcher=B(i,f,r,t),E(e,i.oneOf??i.anyOf,r.exampleSerializer),R(e,i.oneOf??i.anyOf),i.properties&&(e.properties=g(i,r,t));return}if(i.oneOf!==void 0){if(e.switcher=N(i.oneOf,A.ONE_OF,r,t,"oneOf",i),E(e,i.oneOf,r.exampleSerializer),R(e,i.oneOf),i.properties){const u=g(i,r,t);e.properties=u;for(const l of Object.values(e.switcher.options))l.properties={...u,...l.properties||{}}}return}if(i.anyOf!==void 0){if(e.switcher=N(i.anyOf,A.ANY_OF,r,t,"anyOf",i),E(e,i.anyOf,r.exampleSerializer),R(e,i.anyOf),i.properties){const u=g(i,r,t);e.properties=u;for(const l of Object.values(e.switcher.options))l.properties={...u,...l.properties||{}}}return}if(i.if&&i.then||i.if&&i.else){e.switcher=fe(i,r,t);return}!s&&x(n,"object")&&(e.properties=g(i,r,t)),!s&&x(n,"array")&&(e.items=L(i,r,t),z(i)!==void 0&&delete e.example,e.example===void 0&&O(i.items)&&i.items.example!==void 0&&!k(i,n)&&(e.example=T([i.items.example],r.exampleSerializer))),G(e,i,n,r.exampleSerializer)}function te(e,i){const r=[],t=[],n=[];for(const[s,f]of Object.entries(e))f.isRequired?i.includes(s)?r.push([s,f]):t.push([s,f]):n.push([s,f]);return r.sort(([s],[f])=>i.indexOf(s)-i.indexOf(f)),Object.fromEntries([...r,...t,...n])}function g(e,i,r){const t={},n={...i,isChild:!1},s=e.required||[],f=O(e.default)?e.default:{},u=O(e.example)?e.example:void 0,l=e.properties||{};for(const[o,a]of Object.entries(l)){const p={...a};p.default===void 0&&f[o]!==void 0&&(p.default=f[o]),p.example===void 0&&u?.[o]!==void 0&&(p.example=u[o]);const c=`${r}/properties/${M(o)}`;t[o]=y(p,n,{isRequired:s.includes(o)},c)}for(const[o,a]of Object.entries(e.patternProperties||{})){const p=`${r}/patternProperties/${M(o)}`;t[o]=y(a,n,{isPatternProperty:!0},p)}const d=e.additionalProperties??e.unevaluatedProperties;if(O(d)){const o=(d["x-additionalPropertiesName"]||"property name")+"*",a=`${r}/additionalProperties`;t[o]=y(d,n,{isAdditionalProperty:!0},a)}else d===!0&&(t["property name*"]=y({},n,{isAdditionalProperty:!0},`${r}/additionalProperties`));return i.sortRequiredPropsFirst?F(te(t,s)):F(t)}function F(e){const i={};for(const[r,t]of Object.entries(e).sort(([,n],[,s])=>+!!n.isDeprecated-+!!s.isDeprecated))i[r]=t;return i}function z(e){const i=Array.isArray(e.prefixItems)?e.prefixItems:Array.isArray(e.items)?e.items:void 0;return!i?.length||!Array.isArray(e.example)||!e.example.length||e.example.length>i.length||e.example.some((t,n)=>t!==void 0&&O(i[n])&&i[n].example!==void 0)?void 0:e.example}function L(e,i,r){const t={...i},n=z(e),s=(f,u)=>n?.[u]!==void 0?{...f,example:n[u]}:f;if(Array.isArray(e.prefixItems)){const f=e.prefixItems.map((u,l)=>P(y(s(u,l),t,{},`${r}/prefixItems/${l}`)));return f.push(...q(e.items,t,`${r}/items`)),f}if(Array.isArray(e.items)){const f=e.items.map((u,l)=>P(y(s(u,l),t,{},`${r}/items/${l}`)));return f.push(...q(e.additionalItems,t,`${r}/additionalItems`)),f}return O(e.items)&&(X(e.items)||!$(e.items,e.items.type||S(e.items))||Y(e.items))?[y(e.items,t,{},`${r}/items`)]:[]}function q(e,i,r){return e!==!0&&!O(e)?[]:[re(y(e===!0?{}:e,i,{},r))]}function re(e){return{...e,isAdditionalItems:!0}}function P(e){return{...e,isTupleItem:!0}}function D(e,i){const r=i.variantResolutionCache.get(e);if(r)return r;const t=i.prepareVariant({$ref:e});return O(t)?(delete t.discriminator,delete t["x-discriminator"],delete t["x-original-ref"],i.variantResolutionCache.set(e,t),t):{}}const ne="Default mapping";function se(e,i){if(typeof e["x-original-ref"]=="string")return e["x-original-ref"];if(V.test(i))return i}function B(e,i,r,t){const n=i.mapping||{},s=i["x-explicitMappingOnly"]??Object.keys(n).length>0,f=e.oneOf||e.anyOf||[],u={...r,isChild:!0},l=e.oneOf!==void 0?"oneOf":"anyOf",d={};if(Object.keys(n).length>0)for(const[o,a]of Object.entries(n)){const c=f.find(C=>C["x-original-ref"]===a)??D(a,r),b=f.findIndex(C=>C["x-original-ref"]===a),m=b>=0?`${t}/${l}/${b}`:t;d[o]=v(c||{},u,!1,m,a)}else for(let o=0;o<f.length;o++){const a=f[o],p=a.title||a["x-original-ref"]?.split("/").pop()||"Variant",c=`${t}/${l}/${o}`;d[p]=v(a,u,!1,c,a["x-original-ref"])}if(f.length===0&&!s){const o=new Set(Object.values(n)),a=se(e,t),p=a?r.implicitDiscriminatorChildren?.[a]:void 0;if(p)for(const{ref:c,value:b}of p)o.has(c)||(d[b]=v(D(c,r),u,!1,t,c))}if(i.defaultMapping){const o=i.defaultMapping;for(const[m,C]of Object.entries(n))C===o&&delete d[m];const p=f.find(m=>m["x-original-ref"]===o)??D(o,r),c=f.findIndex(m=>m["x-original-ref"]===o),b=c>=0?`${t}/${l}/${c}`:t;d[ne]=v(p||{},u,!0,b,o)}return{type:"discriminator",label:A.DISCRIMINATOR,propertyName:i.propertyName,jsonPointer:t,options:d}}function N(e,i,r,t,n,s){const f={},u={...r,isChild:!1};for(let l=0;l<e.length;l++){const d=e[l],o={type:s.type,...d},{label:a,typeLabel:p}=U(d,s),c=`${t}/${n}/${l}`,b=f[a]?`${a} (${l+1})`:a,m=v(o,u,!1,c,d["x-original-ref"]);m.typeLabel=p,d.title&&(m.title=d.title),f[b]=m}return{type:"oneOf",label:i,jsonPointer:t,options:f}}function fe(e,i,r){const{if:t,then:n={},else:s={},description:f,...u}=e,l={...i,isChild:!1},d=(...o)=>i.prepareVariant({allOf:o.filter(a=>a!=null)});return{type:"oneOf",label:A.ONE_OF,jsonPointer:r,options:{[t?.["x-displayName"]||t?.title||"case 1"]:v(d(u,n,t),l,!1,r),[s?.["x-displayName"]||s?.title||"case 2"]:v(d(u,s),l,!1,r)}}}function v(e,i,r,t,n){const s={isDeprecated:!!e.deprecated,isDefaultMapping:r};e.description&&(s.description=e.description);const f=e["x-original-ref"]?.split("/").pop();f&&(s.schemaName=f);const u=j(e);u&&(s.accessMode=u);const l=J(e);l.length&&(s.constraints=l);const d=H(e);if(d&&(s.enum=d),n&&i.activeRefs.has(n))return s.isCircular=!0,s;const o=e.type||S(e);n&&i.activeRefs.add(n);try{const a=w(e);if(!i.isChild&&a?.propertyName?(s.switcher=B(e,a,i,t),e.properties&&(s.properties=g(e,i,t))):e.oneOf!==void 0?(s.switcher=N(e.oneOf,A.ONE_OF,i,t,"oneOf",e),e.properties&&(s.properties=g(e,i,t))):e.anyOf!==void 0?(s.switcher=N(e.anyOf,A.ANY_OF,i,t,"anyOf",e),e.properties&&(s.properties=g(e,i,t))):!$(e,o)&&(x(o,"object")||e.properties)&&(s.properties=g(e,i,t)),!$(e,o)&&x(o,"array")){const p=L(e,i,t);p.length&&(s.items=p)}}finally{n&&i.activeRefs.delete(n)}return s}function de(e,i,r){return delete e["x-original-ref"],y(e,i,{},r)}export{de as buildPropertyTree};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{JsonSchemaDialectId as a,jsonSchemaDialect as d}from"./dialects/jsonSchema.js";import{GraphqlSchemaDialectId as u}from"./dialects/graphqlSchema.js";const l=new WeakMap;function p(t,s,e){const n=e?.dialectId??a;let r;switch(n){case a:r=d;break;case u:default:r=d}const c=e?.rootJsonPointer??"#";if(e?.exampleSerializer)return r.process(t,s,e);const o=l.get(t);if(o?.dialectId===r.id&&o?.rootJsonPointer===c&&o?.sortRequiredPropsFirst===e?.sortRequiredPropsFirst)return o.result;const i=r.process(t,s,e);return l.set(t,{dialectId:r.id,rootJsonPointer:c,sortRequiredPropsFirst:e?.sortRequiredPropsFirst,result:i}),i}export{p as schemaProcessor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{buildDisplayType as r,detectJsonSchemaType as s,stringifyValue as d}from"./propertyBuilder.js";function f(e,l){const t={type:l.type,...e},n=t.type||s(t),{typePrefix:o,displayType:y,displayFormat:i}=r(t,n);let p=`${o}${y}`;return i&&(p+=` (${i})`),{label:e.title||e["x-original-ref"]?.split("/").pop()||(e.const!==void 0?d(e.const):void 0)||p,typeLabel:p}}export{f as deriveVariantLabel};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Telemetry } from '@redocly/redoc-opentelemetry';
|
|
2
|
+
import type { EventType, EventPayload } from '@redocly/redoc-opentelemetry';
|
|
3
|
+
export type SpecType = 'openapi' | 'asyncapi' | 'graphql';
|
|
4
|
+
export interface RedocTelemetryConfig {
|
|
5
|
+
specType: SpecType;
|
|
6
|
+
collectorUrl?: string;
|
|
7
|
+
serviceName?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
serviceVersion?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class RedocTelemetry extends Telemetry {
|
|
12
|
+
private specType;
|
|
13
|
+
constructor(config: RedocTelemetryConfig);
|
|
14
|
+
send<T extends EventType>(event: T, data?: EventPayload<T>): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Telemetry as o}from"@redocly/redoc-opentelemetry";import c from"../../package.json"with{type:"json"};const p="https://otel.cloud.redocly.com/v1/traces";class n extends o{specType;constructor(e){super(),this.specType=e.specType,this.init({otel:{isProd:process.env.NODE_ENV==="production"||process.env.ENABLE_LOCAL_TELEMETRY==="true",serviceVersion:e.serviceVersion||`${c.name}@${c.version}`,version:"1.0.0",collectorTraceUrl:e.collectorUrl||p,serviceName:e.serviceName||"redoc-ce",tracerName:"client-telemetry"},disabled:e.disabled||!1})}send(e,r){r&&Array.isArray(r)&&r.length>0&&(r=r.map(s=>s&&typeof s=="object"?{...s,specType:this.specType}:s)),super.send(e,r,{env:process.env.NODE_ENV})}}export{n as RedocTelemetry};
|
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import type { ENTITY_RELATION_TYPES } from '@redocly/config';
|
|
2
|
+
import type { Node } from '@markdoc/markdoc';
|
|
3
|
+
import type { ResolvedNavItem, REDOCLY_TEAMS_RBAC } from '@redocly/config';
|
|
4
|
+
import type { JSONSchema7 } from 'json-schema';
|
|
5
|
+
import type { Referenced, ObjectValues } from './common.js';
|
|
6
|
+
import type { ApiItem } from './store.js';
|
|
7
|
+
import type { ApiDocsOptions } from './options.js';
|
|
8
|
+
import type { StoreContext } from './store.js';
|
|
9
|
+
export type AsyncApiDefinition = {
|
|
10
|
+
asyncapi: string;
|
|
11
|
+
id?: string;
|
|
12
|
+
info: AsyncApiInfo;
|
|
13
|
+
servers?: Record<string, AsyncApiServer>;
|
|
14
|
+
defaultContentType?: string;
|
|
15
|
+
channels?: AsyncApiChannels;
|
|
16
|
+
operations?: AsyncApiOperations;
|
|
17
|
+
components?: AsyncApiComponents;
|
|
18
|
+
'x-tagGroups'?: {
|
|
19
|
+
name: string;
|
|
20
|
+
tags: string[];
|
|
21
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
22
|
+
}[];
|
|
23
|
+
'x-redocly-catalog-key'?: string;
|
|
24
|
+
};
|
|
25
|
+
export type AsyncApiDefinitionReferenced = {
|
|
26
|
+
asyncapi: string;
|
|
27
|
+
id?: string;
|
|
28
|
+
info: AsyncApiInfo;
|
|
29
|
+
servers?: Record<string, AsyncApiServer>;
|
|
30
|
+
defaultContentType?: string;
|
|
31
|
+
channels?: AsyncApiChannels;
|
|
32
|
+
operations?: AsyncApiOperationsReferenced;
|
|
33
|
+
components?: AsyncApiComponentsReferenced;
|
|
34
|
+
'x-tagGroups'?: {
|
|
35
|
+
name: string;
|
|
36
|
+
tags: string[];
|
|
37
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
38
|
+
}[];
|
|
39
|
+
};
|
|
40
|
+
export type AsyncApiInfo = {
|
|
41
|
+
title: string;
|
|
42
|
+
version: string;
|
|
43
|
+
description?: string | Node[] | Node;
|
|
44
|
+
termsOfService?: string;
|
|
45
|
+
contact?: AsyncApiContact;
|
|
46
|
+
license?: AsyncApiLicense;
|
|
47
|
+
tags?: AsyncApiTag[];
|
|
48
|
+
externalDocs?: AsyncApiExternalDocs;
|
|
49
|
+
'x-metadata'?: Record<string, unknown>;
|
|
50
|
+
};
|
|
51
|
+
export type AsyncApiContact = {
|
|
52
|
+
name?: string;
|
|
53
|
+
url?: string;
|
|
54
|
+
email?: string;
|
|
55
|
+
};
|
|
56
|
+
export type AsyncApiLicense = {
|
|
57
|
+
name: string;
|
|
58
|
+
url?: string;
|
|
59
|
+
};
|
|
60
|
+
export type AsyncApiTag = {
|
|
61
|
+
name: string;
|
|
62
|
+
description?: string | Node[] | Node;
|
|
63
|
+
externalDocs?: AsyncApiExternalDocs;
|
|
64
|
+
};
|
|
65
|
+
export type AsyncApiExternalDocs = {
|
|
66
|
+
description?: string | Node[] | Node;
|
|
67
|
+
url: string;
|
|
68
|
+
};
|
|
69
|
+
export type AsyncApiServer = {
|
|
70
|
+
host: string;
|
|
71
|
+
/** AsyncAPI 2.x servers carry `url` instead of `host`. */
|
|
72
|
+
url?: string;
|
|
73
|
+
protocol: string;
|
|
74
|
+
protocolVersion?: string;
|
|
75
|
+
pathname?: string;
|
|
76
|
+
description?: string | Node[] | Node;
|
|
77
|
+
title?: string;
|
|
78
|
+
summary?: string;
|
|
79
|
+
variables?: AsyncApiServerVariables;
|
|
80
|
+
tags?: AsyncApiTag[];
|
|
81
|
+
externalDocs?: AsyncApiExternalDocs;
|
|
82
|
+
bindings?: AsyncApiServerBinding;
|
|
83
|
+
};
|
|
84
|
+
export type AsyncApiServerVariables = {
|
|
85
|
+
[name: string]: AsyncApiServerVariable;
|
|
86
|
+
};
|
|
87
|
+
export type AsyncApiChannels = {
|
|
88
|
+
[name: string]: AsyncApiChannel;
|
|
89
|
+
};
|
|
90
|
+
export type AsyncApiServerVariable = {
|
|
91
|
+
enum?: string[];
|
|
92
|
+
default: string;
|
|
93
|
+
description?: string | Node[] | Node;
|
|
94
|
+
examples?: string[];
|
|
95
|
+
};
|
|
96
|
+
export type AsyncApiServerBinding = {
|
|
97
|
+
kafka?: AsyncApiServerKafkaBinding;
|
|
98
|
+
};
|
|
99
|
+
export type AsyncApiServerKafkaBinding = {
|
|
100
|
+
schemaRegistryUrl?: string;
|
|
101
|
+
schemaRegistryVendor?: string;
|
|
102
|
+
bindingVersion?: string;
|
|
103
|
+
};
|
|
104
|
+
export type AsyncApiChannel = {
|
|
105
|
+
address?: string;
|
|
106
|
+
messages?: AsyncApiMessages;
|
|
107
|
+
title?: string;
|
|
108
|
+
summary?: string;
|
|
109
|
+
description?: string | Node[] | Node;
|
|
110
|
+
servers?: AsyncApiServer[];
|
|
111
|
+
parameters?: AsyncApiParameters;
|
|
112
|
+
tags?: AsyncApiTag[];
|
|
113
|
+
externalDocs?: AsyncApiExternalDocs;
|
|
114
|
+
bindings?: AsyncApiChannelBinding;
|
|
115
|
+
'x-badges'?: AsyncApiXBadges[];
|
|
116
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
117
|
+
};
|
|
118
|
+
export type AsyncApiXBadges = {
|
|
119
|
+
name: string;
|
|
120
|
+
position?: 'before' | 'after';
|
|
121
|
+
color?: string;
|
|
122
|
+
};
|
|
123
|
+
export type AsyncApiChannelBinding = {
|
|
124
|
+
kafka?: AsyncApiChannelKafkaBinding;
|
|
125
|
+
amqp?: AsyncApiChannelAMQPBinding;
|
|
126
|
+
};
|
|
127
|
+
export type AsyncApiChannelKafkaBinding = {
|
|
128
|
+
topic?: string;
|
|
129
|
+
partitions?: number;
|
|
130
|
+
replicas?: number;
|
|
131
|
+
bindingVersion?: string;
|
|
132
|
+
topicConfiguration?: {
|
|
133
|
+
'cleanup.policy'?: string[];
|
|
134
|
+
'retention.ms'?: number;
|
|
135
|
+
'retention.bytes'?: number;
|
|
136
|
+
'delete.retention.ms'?: number;
|
|
137
|
+
'max.message.bytes'?: number;
|
|
138
|
+
'confluent.key.schema.validation'?: boolean;
|
|
139
|
+
'confluent.key.subject.name.strategy'?: string;
|
|
140
|
+
'confluent.value.schema.validation'?: boolean;
|
|
141
|
+
'confluent.value.subject.name.strategy'?: string;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
export type AsyncApiChannelAMQPBinding = {
|
|
145
|
+
is: 'routingKey' | 'queue';
|
|
146
|
+
};
|
|
147
|
+
export type AsyncApiMessages = {
|
|
148
|
+
[name: string]: AsyncApiMessage;
|
|
149
|
+
};
|
|
150
|
+
export type AsyncApiParameters = {
|
|
151
|
+
[name: string]: AsyncApiParameter;
|
|
152
|
+
};
|
|
153
|
+
export type AsyncApiParameter = {
|
|
154
|
+
enum?: string[];
|
|
155
|
+
default?: string;
|
|
156
|
+
description?: string | Node[] | Node;
|
|
157
|
+
examples?: string[];
|
|
158
|
+
location?: string;
|
|
159
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
160
|
+
};
|
|
161
|
+
export type AsyncApiMessage = {
|
|
162
|
+
headers?: AsyncAPISchema;
|
|
163
|
+
payload?: AsyncAPISchema;
|
|
164
|
+
correlationId?: AsyncApiCorrelationId;
|
|
165
|
+
contentType?: string;
|
|
166
|
+
name?: string;
|
|
167
|
+
title?: string;
|
|
168
|
+
summary?: string;
|
|
169
|
+
description?: string | Node[] | Node;
|
|
170
|
+
tags?: AsyncApiTag[];
|
|
171
|
+
externalDocs?: AsyncApiExternalDocs;
|
|
172
|
+
bindings?: AsyncApiMessageBinding;
|
|
173
|
+
examples?: AsyncApiMessageExample[];
|
|
174
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
175
|
+
};
|
|
176
|
+
export type AsyncApiMessageReferenced = {
|
|
177
|
+
headers?: AsyncAPISchema;
|
|
178
|
+
payload?: Referenced<AsyncAPISchema>;
|
|
179
|
+
correlationId?: AsyncApiCorrelationId;
|
|
180
|
+
contentType?: string;
|
|
181
|
+
name?: string;
|
|
182
|
+
title?: string;
|
|
183
|
+
summary?: string;
|
|
184
|
+
description?: string | Node[] | Node;
|
|
185
|
+
tags?: AsyncApiTag[];
|
|
186
|
+
externalDocs?: AsyncApiExternalDocs;
|
|
187
|
+
bindings?: AsyncApiMessageBinding;
|
|
188
|
+
examples?: AsyncApiMessageExample[];
|
|
189
|
+
};
|
|
190
|
+
export type AsyncApiCorrelationId = {
|
|
191
|
+
description?: string | Node[] | Node;
|
|
192
|
+
location: string;
|
|
193
|
+
};
|
|
194
|
+
export type AsyncApiMessageBinding = {
|
|
195
|
+
kafka?: AsyncApiMessageKafkaBinding;
|
|
196
|
+
};
|
|
197
|
+
export type AsyncApiMessageKafkaBinding = {
|
|
198
|
+
key?: JSONSchema7;
|
|
199
|
+
schemaIdLocation?: string;
|
|
200
|
+
schemaIdPayloadEncoding?: string;
|
|
201
|
+
schemaLookupStrategy?: string;
|
|
202
|
+
bindingVersion?: string;
|
|
203
|
+
};
|
|
204
|
+
export type AsyncApiMessageExample = {
|
|
205
|
+
payload?: Record<string, unknown>;
|
|
206
|
+
name?: string;
|
|
207
|
+
summary?: string;
|
|
208
|
+
};
|
|
209
|
+
export type MultiFormatSchemaObject = {
|
|
210
|
+
schema: JSONSchema7 | AvroSchema;
|
|
211
|
+
schemaFormat: string;
|
|
212
|
+
};
|
|
213
|
+
export type AsyncApiOperations = {
|
|
214
|
+
[name: string]: AsyncApiOperation;
|
|
215
|
+
};
|
|
216
|
+
export type AsyncApiOperationsReferenced = {
|
|
217
|
+
[name: string]: AsyncApiOperationReferenced;
|
|
218
|
+
};
|
|
219
|
+
export type AsyncApiOperation = {
|
|
220
|
+
action: 'send' | 'receive';
|
|
221
|
+
channel: AsyncApiChannel;
|
|
222
|
+
title?: string;
|
|
223
|
+
summary?: string;
|
|
224
|
+
description?: string | Node[] | Node;
|
|
225
|
+
tags?: AsyncApiTag[];
|
|
226
|
+
externalDocs?: AsyncApiExternalDocs;
|
|
227
|
+
bindings?: AsyncApiOperationBinding;
|
|
228
|
+
traits?: AsyncApiOperationTraits[];
|
|
229
|
+
messages?: AsyncApiMessage[];
|
|
230
|
+
reply?: AsyncApiOperationReply;
|
|
231
|
+
'x-badges'?: AsyncApiXBadges[];
|
|
232
|
+
'x-catalogRelations'?: {
|
|
233
|
+
type: (typeof ENTITY_RELATION_TYPES)[number];
|
|
234
|
+
key: string;
|
|
235
|
+
}[];
|
|
236
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
237
|
+
};
|
|
238
|
+
export type AsyncApiOperationReferenced = {
|
|
239
|
+
action: 'send' | 'receive';
|
|
240
|
+
channel: AsyncApiChannel;
|
|
241
|
+
title?: string;
|
|
242
|
+
summary?: string;
|
|
243
|
+
description?: string | Node[] | Node;
|
|
244
|
+
tags?: AsyncApiTag[];
|
|
245
|
+
externalDocs?: AsyncApiExternalDocs;
|
|
246
|
+
bindings?: AsyncApiOperationBinding;
|
|
247
|
+
traits?: AsyncApiOperationTraits[];
|
|
248
|
+
messages?: Referenced<AsyncApiMessage>[];
|
|
249
|
+
reply?: AsyncApiOperationReply;
|
|
250
|
+
'x-badges'?: AsyncApiXBadges[];
|
|
251
|
+
'x-catalogRelations'?: {
|
|
252
|
+
type: (typeof ENTITY_RELATION_TYPES)[number];
|
|
253
|
+
key: string;
|
|
254
|
+
}[];
|
|
255
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
256
|
+
};
|
|
257
|
+
export type AsyncApiOperationReply = {
|
|
258
|
+
address?: {
|
|
259
|
+
description?: string | Node[] | Node;
|
|
260
|
+
location: string;
|
|
261
|
+
};
|
|
262
|
+
channel?: AsyncApiChannel;
|
|
263
|
+
messages?: AsyncApiMessage[];
|
|
264
|
+
};
|
|
265
|
+
export type AsyncApiOperationTraits = {
|
|
266
|
+
title?: string;
|
|
267
|
+
summary?: string;
|
|
268
|
+
description?: string | Node[] | Node;
|
|
269
|
+
tags?: AsyncApiTag[];
|
|
270
|
+
externalDocs?: AsyncApiExternalDocs;
|
|
271
|
+
bindings?: AsyncApiOperationBinding;
|
|
272
|
+
};
|
|
273
|
+
export type AsyncApiOperationBinding = {
|
|
274
|
+
kafka?: AsyncApiOperationKafkaBinding;
|
|
275
|
+
};
|
|
276
|
+
export type AsyncApiOperationKafkaBinding = {
|
|
277
|
+
groupId?: {
|
|
278
|
+
type: string;
|
|
279
|
+
enum: string[];
|
|
280
|
+
};
|
|
281
|
+
clientId?: {
|
|
282
|
+
type: string;
|
|
283
|
+
enum: string[];
|
|
284
|
+
};
|
|
285
|
+
bindingVersion?: string;
|
|
286
|
+
};
|
|
287
|
+
export type AsyncApiComponents = {
|
|
288
|
+
messages: Record<string, AsyncApiMessage>;
|
|
289
|
+
schemas: Record<string, AsyncAPISchema>;
|
|
290
|
+
tags: Record<string, AsyncApiTag>;
|
|
291
|
+
};
|
|
292
|
+
export type AsyncApiComponentsReferenced = {
|
|
293
|
+
messages: Record<string, AsyncApiMessageReferenced>;
|
|
294
|
+
schemas: Record<string, AsyncAPISchema>;
|
|
295
|
+
tags: Record<string, AsyncApiTag>;
|
|
296
|
+
};
|
|
297
|
+
export type AvroSchema = {
|
|
298
|
+
type: string | string[] | AvroSchema[];
|
|
299
|
+
name?: string;
|
|
300
|
+
doc?: string;
|
|
301
|
+
symbols?: string[];
|
|
302
|
+
fields?: Array<{
|
|
303
|
+
name: string;
|
|
304
|
+
type: AvroSchema | string | (string | AvroSchema)[];
|
|
305
|
+
doc?: string;
|
|
306
|
+
default?: unknown;
|
|
307
|
+
}>;
|
|
308
|
+
items?: AvroSchema | string;
|
|
309
|
+
values?: AvroSchema | string;
|
|
310
|
+
};
|
|
311
|
+
export type ResolvedAsyncApiNavItem = ResolvedNavItem & {
|
|
312
|
+
items?: ResolvedAsyncApiNavItem[];
|
|
313
|
+
action?: string;
|
|
314
|
+
ast?: Node | Node[];
|
|
315
|
+
httpVerb?: string;
|
|
316
|
+
};
|
|
317
|
+
export type DownloadUrls = {
|
|
318
|
+
url: string;
|
|
319
|
+
};
|
|
320
|
+
export type ChannelWithKey = AsyncApiChannel & {
|
|
321
|
+
key: string;
|
|
322
|
+
};
|
|
323
|
+
export type AsyncAPISchema = JSONSchema7 | MultiFormatSchemaObject;
|
|
324
|
+
export declare const CONST_PROTOCOL_VARIANT: {
|
|
325
|
+
readonly DEFAULT: 'default';
|
|
326
|
+
readonly KAFKA: 'kafka';
|
|
327
|
+
readonly AMQP: 'amqp';
|
|
328
|
+
readonly WSS: 'wss';
|
|
329
|
+
};
|
|
330
|
+
export type ProtocolVariant = ObjectValues<typeof CONST_PROTOCOL_VARIANT>;
|
|
331
|
+
export type AsyncApiBuildContext = {
|
|
332
|
+
document: AsyncApiDefinition;
|
|
333
|
+
options: ApiDocsOptions;
|
|
334
|
+
basePath: string;
|
|
335
|
+
storeCtx: StoreContext;
|
|
336
|
+
protocol: ProtocolVariant | null;
|
|
337
|
+
channelToOperations: Record<string, string[]>;
|
|
338
|
+
groups: Record<string, ApiItem[]>;
|
|
339
|
+
items: ApiItem[];
|
|
340
|
+
descriptionItems: ApiItem[];
|
|
341
|
+
channelSummaries: Map<string, string>;
|
|
342
|
+
processContent: boolean;
|
|
343
|
+
};
|
|
344
|
+
export type BrokerData = {
|
|
345
|
+
/** Server host (3.x `host`, 2.x `url`); absent only for invalid documents. */
|
|
346
|
+
url?: string;
|
|
347
|
+
description?: string | Node[] | Node;
|
|
348
|
+
name?: string;
|
|
349
|
+
variables?: Record<string, {
|
|
350
|
+
enum?: string[];
|
|
351
|
+
default: string;
|
|
352
|
+
description?: string | Node[] | Node;
|
|
353
|
+
examples?: string[];
|
|
354
|
+
}>;
|
|
355
|
+
protocol?: string;
|
|
356
|
+
protocolVersion?: string;
|
|
357
|
+
pathname?: string;
|
|
358
|
+
title?: string;
|
|
359
|
+
summary?: string;
|
|
360
|
+
tags?: AsyncApiTag[];
|
|
361
|
+
externalDocs?: AsyncApiExternalDocs;
|
|
362
|
+
bindings?: AsyncApiServerBinding;
|
|
363
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
364
|
+
};
|
|
365
|
+
export type AsyncApiContext = {
|
|
366
|
+
protocol: string | null;
|
|
367
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const A={DEFAULT:"default",KAFKA:"kafka",AMQP:"amqp",WSS:"wss"};export{A as CONST_PROTOCOL_VARIANT};
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import type { Node } from '@markdoc/markdoc';
|
|
2
|
+
import type { ConfigureRequestValues, ConfigureServerRequestValues } from '@redocly/theme/ext/configure';
|
|
3
|
+
import type { UserClaims } from '@redocly/theme/core/types';
|
|
4
|
+
export type { ConfigureRequestValues, ConfigureServerRequestValues };
|
|
5
|
+
export type { UserClaims };
|
|
6
|
+
export type { RbacScopeItems } from '@redocly/config';
|
|
7
|
+
export type ObjectValues<T> = T[keyof T];
|
|
8
|
+
export type OpenAPIRef = {
|
|
9
|
+
$ref: string;
|
|
10
|
+
'x-refsStack'?: string[];
|
|
11
|
+
summary?: string;
|
|
12
|
+
description?: string | Node[] | Node;
|
|
13
|
+
};
|
|
14
|
+
export type Referenced<T> = T | OpenAPIRef;
|
|
15
|
+
export type SeoData = {
|
|
16
|
+
title?: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
keywords?: string;
|
|
19
|
+
image?: string;
|
|
20
|
+
};
|
|
21
|
+
export type ExternalDocsData = {
|
|
22
|
+
url: string;
|
|
23
|
+
description?: string | Node[] | Node;
|
|
24
|
+
};
|
|
25
|
+
export type BadgeData = {
|
|
26
|
+
name: string;
|
|
27
|
+
color?: string;
|
|
28
|
+
position?: 'before' | 'after';
|
|
29
|
+
icon?: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
};
|
|
32
|
+
export type Badge = {
|
|
33
|
+
name: string;
|
|
34
|
+
color?: string;
|
|
35
|
+
icon?: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
};
|
|
38
|
+
export type ServerData = {
|
|
39
|
+
url: string;
|
|
40
|
+
name?: string;
|
|
41
|
+
description?: string;
|
|
42
|
+
variables?: Record<string, {
|
|
43
|
+
enum?: string[];
|
|
44
|
+
default: string;
|
|
45
|
+
description?: string | Node[] | Node;
|
|
46
|
+
examples?: string[];
|
|
47
|
+
}>;
|
|
48
|
+
};
|
|
49
|
+
export declare const apiSpecType: {
|
|
50
|
+
readonly OPENAPI: 'openapi';
|
|
51
|
+
readonly ASYNCAPI: 'asyncapi';
|
|
52
|
+
readonly GRAPHQL: 'graphql';
|
|
53
|
+
};
|
|
54
|
+
export type ApiSpecType = ObjectValues<typeof apiSpecType>;
|
|
55
|
+
export declare const tagKind: {
|
|
56
|
+
readonly NAV: 'nav';
|
|
57
|
+
readonly BADGE: 'badge';
|
|
58
|
+
readonly AUDIENCE: 'audience';
|
|
59
|
+
};
|
|
60
|
+
export type TagKind = ObjectValues<typeof tagKind>;
|
|
61
|
+
export declare const contentType: {
|
|
62
|
+
readonly OVERVIEW: 'overview';
|
|
63
|
+
readonly GROUP: 'group';
|
|
64
|
+
readonly ITEM: 'item';
|
|
65
|
+
};
|
|
66
|
+
export type ContentType = ObjectValues<typeof contentType>;
|
|
67
|
+
export declare const itemVariant: {
|
|
68
|
+
readonly HTTP_ITEM: 'httpItem';
|
|
69
|
+
readonly SCHEMA: 'schema';
|
|
70
|
+
readonly CHANNEL: 'channel';
|
|
71
|
+
readonly CHANNEL_OPERATION: 'channelOperation';
|
|
72
|
+
readonly MESSAGE: 'message';
|
|
73
|
+
readonly QUERY: 'query';
|
|
74
|
+
readonly MUTATION: 'mutation';
|
|
75
|
+
readonly SUBSCRIPTION: 'subscription';
|
|
76
|
+
readonly DIRECTIVE: 'directive';
|
|
77
|
+
readonly OBJECT: 'object';
|
|
78
|
+
readonly INTERFACE: 'interface';
|
|
79
|
+
readonly INPUT: 'input';
|
|
80
|
+
readonly UNION: 'union';
|
|
81
|
+
readonly ENUM: 'enum';
|
|
82
|
+
readonly SCALAR: 'scalar';
|
|
83
|
+
readonly MARKDOWN: 'markdown';
|
|
84
|
+
};
|
|
85
|
+
export type ItemVariant = ObjectValues<typeof itemVariant>;
|
|
86
|
+
export declare const securitySchemeType: {
|
|
87
|
+
readonly API_KEY: 'apiKey';
|
|
88
|
+
readonly HTTP: 'http';
|
|
89
|
+
readonly OAUTH2: 'oauth2';
|
|
90
|
+
readonly OPEN_ID_CONNECT: 'openIdConnect';
|
|
91
|
+
readonly MUTUAL_TLS: 'mutualTLS';
|
|
92
|
+
};
|
|
93
|
+
export type SecuritySchemeType = ObjectValues<typeof securitySchemeType>;
|
|
94
|
+
export declare const securitySchemeIn: {
|
|
95
|
+
readonly QUERY: 'query';
|
|
96
|
+
readonly HEADER: 'header';
|
|
97
|
+
readonly COOKIE: 'cookie';
|
|
98
|
+
readonly QUERYSTRING: 'querystring';
|
|
99
|
+
};
|
|
100
|
+
export type SecuritySchemeIn = ObjectValues<typeof securitySchemeIn>;
|
|
101
|
+
export declare const nodeTypes: {
|
|
102
|
+
readonly CONTAINER: 'container';
|
|
103
|
+
readonly HEADER: 'header';
|
|
104
|
+
readonly EMPTY_MESSAGE: 'empty-message';
|
|
105
|
+
readonly ITEM: 'item-content';
|
|
106
|
+
readonly SECURITY: 'security';
|
|
107
|
+
readonly MARKDOC: 'markdoc';
|
|
108
|
+
readonly ADMONITION: 'admonition';
|
|
109
|
+
readonly OVERVIEW_SECTION_WRAPPER: 'overview-section-wrapper';
|
|
110
|
+
readonly EXTERNAL_DOCS: 'external-docs';
|
|
111
|
+
readonly CHANNEL_ADDRESS: 'channel-address';
|
|
112
|
+
readonly MESSAGE_LINKS: 'message-links';
|
|
113
|
+
readonly INFO_METADATA: 'info-metadata';
|
|
114
|
+
readonly EXTENSIONS: 'extensions';
|
|
115
|
+
readonly FEEDBACK: 'feedback';
|
|
116
|
+
};
|
|
117
|
+
export type NodeTypes = ObjectValues<typeof nodeTypes>;
|
|
118
|
+
export declare const panelKind: {
|
|
119
|
+
readonly LOCATIONS: 'locations';
|
|
120
|
+
readonly GROUP_ITEMS: 'group-items';
|
|
121
|
+
readonly EXTERNAL_LINK: 'externallink';
|
|
122
|
+
readonly EMAIL: 'email';
|
|
123
|
+
readonly PAYLOAD: 'payload';
|
|
124
|
+
readonly TAGS: 'tags';
|
|
125
|
+
readonly CONNECT_MCP_BUTTON: 'connect-mcp-button';
|
|
126
|
+
readonly ATTRIBUTE: 'attribute';
|
|
127
|
+
readonly DOWNLOAD: 'download';
|
|
128
|
+
readonly SERVERS: 'servers';
|
|
129
|
+
readonly BROKERS: 'brokers';
|
|
130
|
+
readonly CHANNEL_BINDING: 'channel-binding';
|
|
131
|
+
readonly OPERATION_BINDING: 'operation-binding';
|
|
132
|
+
readonly MESSAGE_BINDING: 'message-binding';
|
|
133
|
+
readonly MESSAGE_REFERENCES: 'message-references';
|
|
134
|
+
readonly LANGUAGES: 'languages';
|
|
135
|
+
readonly REFERENCES: 'references';
|
|
136
|
+
readonly REPLAY: 'replay';
|
|
137
|
+
readonly CODE_SAMPLE: 'code-sample';
|
|
138
|
+
readonly CALLBACK_PAYLOAD: 'callback-payload';
|
|
139
|
+
readonly RESPONSE: 'response';
|
|
140
|
+
readonly GRAPHQL_QUERY: 'graphql-query';
|
|
141
|
+
readonly GRAPHQL_RESPONSE: 'graphql-response';
|
|
142
|
+
readonly GRAPHQL_VARIABLES: 'graphql-variables';
|
|
143
|
+
readonly GRAPHQL_TYPE_SAMPLE: 'graphql-type-sample';
|
|
144
|
+
readonly MCP_EXAMPLE: 'mcp-example';
|
|
145
|
+
};
|
|
146
|
+
export type PanelKind = ObjectValues<typeof panelKind>;
|
|
147
|
+
export declare const schemaKind: {
|
|
148
|
+
readonly JSON_SCHEMA: 'json-schema';
|
|
149
|
+
readonly GRAPHQL_TYPE: 'graphql-type';
|
|
150
|
+
};
|
|
151
|
+
export type SchemaKind = ObjectValues<typeof schemaKind>;
|
|
152
|
+
/** A logo as authored, keyed by `url`: OpenAPI `info.x-logo` and the standalone `logo` prop. */
|
|
153
|
+
export type RawLogo = {
|
|
154
|
+
url?: string;
|
|
155
|
+
href?: string;
|
|
156
|
+
altText?: string;
|
|
157
|
+
backgroundColor?: string;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* A logo normalized to what the `SidebarLogo` component renders, keyed by `imageUrl`.
|
|
161
|
+
* Also the shape of the `apiLogo` option, which is authored this way already.
|
|
162
|
+
*/
|
|
163
|
+
export type SidebarLogo = {
|
|
164
|
+
imageUrl?: string;
|
|
165
|
+
href?: string;
|
|
166
|
+
altText?: string;
|
|
167
|
+
backgroundColor?: string;
|
|
168
|
+
};
|