@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 @@
|
|
|
1
|
+
const e={OPENAPI:"openapi",ASYNCAPI:"asyncapi",GRAPHQL:"graphql"},E={NAV:"nav",BADGE:"badge",AUDIENCE:"audience"},n={OVERVIEW:"overview",GROUP:"group",ITEM:"item"},a={HTTP_ITEM:"httpItem",SCHEMA:"schema",CHANNEL:"channel",CHANNEL_OPERATION:"channelOperation",MESSAGE:"message",QUERY:"query",MUTATION:"mutation",SUBSCRIPTION:"subscription",DIRECTIVE:"directive",OBJECT:"object",INTERFACE:"interface",INPUT:"input",UNION:"union",ENUM:"enum",SCALAR:"scalar",MARKDOWN:"markdown"},t={API_KEY:"apiKey",HTTP:"http",OAUTH2:"oauth2",OPEN_ID_CONNECT:"openIdConnect",MUTUAL_TLS:"mutualTLS"},A={QUERY:"query",HEADER:"header",COOKIE:"cookie",QUERYSTRING:"querystring"},o={CONTAINER:"container",HEADER:"header",EMPTY_MESSAGE:"empty-message",ITEM:"item-content",SECURITY:"security",MARKDOC:"markdoc",ADMONITION:"admonition",OVERVIEW_SECTION_WRAPPER:"overview-section-wrapper",EXTERNAL_DOCS:"external-docs",CHANNEL_ADDRESS:"channel-address",MESSAGE_LINKS:"message-links",INFO_METADATA:"info-metadata",EXTENSIONS:"extensions",FEEDBACK:"feedback"},r={LOCATIONS:"locations",GROUP_ITEMS:"group-items",EXTERNAL_LINK:"externallink",EMAIL:"email",PAYLOAD:"payload",TAGS:"tags",CONNECT_MCP_BUTTON:"connect-mcp-button",ATTRIBUTE:"attribute",DOWNLOAD:"download",SERVERS:"servers",BROKERS:"brokers",CHANNEL_BINDING:"channel-binding",OPERATION_BINDING:"operation-binding",MESSAGE_BINDING:"message-binding",MESSAGE_REFERENCES:"message-references",LANGUAGES:"languages",REFERENCES:"references",REPLAY:"replay",CODE_SAMPLE:"code-sample",CALLBACK_PAYLOAD:"callback-payload",RESPONSE:"response",GRAPHQL_QUERY:"graphql-query",GRAPHQL_RESPONSE:"graphql-response",GRAPHQL_VARIABLES:"graphql-variables",GRAPHQL_TYPE_SAMPLE:"graphql-type-sample",MCP_EXAMPLE:"mcp-example"},s={JSON_SCHEMA:"json-schema",GRAPHQL_TYPE:"graphql-type"};export{e as apiSpecType,n as contentType,a as itemVariant,o as nodeTypes,r as panelKind,s as schemaKind,A as securitySchemeIn,t as securitySchemeType,E as tagKind};
|
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
import type { REDOCLY_TEAMS_RBAC } from '@redocly/config';
|
|
2
|
+
import type { Node } from '@markdoc/markdoc';
|
|
3
|
+
import type { OpenAPIOperation, OpenAPIResponse } from './openapi.js';
|
|
4
|
+
import type { CodeSampleSource } from '../services/code-samples/index.js';
|
|
5
|
+
import type { BadgeData, ServerData, nodeTypes, panelKind } from './common.js';
|
|
6
|
+
import type { GroupItem, ApiItemContent, SecuritySchemeEntry } from './store.js';
|
|
7
|
+
import type { AsyncAPISchema, BrokerData } from './asyncapi.js';
|
|
8
|
+
import type { BadgeType, ExampleType } from './schema.js';
|
|
9
|
+
export type { ApiItemContent };
|
|
10
|
+
export type ContentNode = ContainerNode | OverviewSectionWrapperNode | HeaderNode | EmptyMessageNode | ItemContentNode | SecurityNode | FeedbackNode | MarkdocNode | AdmonitionNode | ExternalDocsNode | ChannelAddressNode | MessageLinksNode | InfoMetadataNode | ExtensionsNode;
|
|
11
|
+
export type PanelNode = DownloadNode | ServersNode | BrokersNode | ChannelBindingNode | OperationBindingNode | MessageBindingNode | MessageReferencesNode | OverviewNode | LanguagesNode | McpNode | ExamplesNode | McpExampleNode | ReferencesNode | LocationsPanelNode | GroupItemNode;
|
|
12
|
+
export type ContainerNode = {
|
|
13
|
+
nodeType: typeof nodeTypes.CONTAINER;
|
|
14
|
+
panels?: PanelNode[];
|
|
15
|
+
children: ContentNode[];
|
|
16
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
17
|
+
};
|
|
18
|
+
export type OverviewSectionWrapperNode = {
|
|
19
|
+
nodeType: typeof nodeTypes.OVERVIEW_SECTION_WRAPPER;
|
|
20
|
+
children: ContentNode[];
|
|
21
|
+
sectionId: string;
|
|
22
|
+
};
|
|
23
|
+
export type HeaderNode = {
|
|
24
|
+
nodeType: typeof nodeTypes.HEADER;
|
|
25
|
+
level: number;
|
|
26
|
+
label: string;
|
|
27
|
+
labelTranslationKey?: string;
|
|
28
|
+
badges?: BadgeData[];
|
|
29
|
+
deprecated?: boolean;
|
|
30
|
+
isWebhook?: boolean;
|
|
31
|
+
showPageActions?: boolean;
|
|
32
|
+
protocolTag?: {
|
|
33
|
+
label: string;
|
|
34
|
+
color?: string;
|
|
35
|
+
};
|
|
36
|
+
deepLinkSuffix?: string;
|
|
37
|
+
graphqlReturnType?: string;
|
|
38
|
+
graphqlArgs?: {
|
|
39
|
+
name: string;
|
|
40
|
+
}[];
|
|
41
|
+
graphqlDeprecated?: boolean;
|
|
42
|
+
graphqlOperationType?: 'query' | 'mutation' | 'subscription';
|
|
43
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
44
|
+
};
|
|
45
|
+
export type EmptyMessageNode = {
|
|
46
|
+
nodeType: typeof nodeTypes.EMPTY_MESSAGE;
|
|
47
|
+
label: string;
|
|
48
|
+
labelTranslationKey?: string;
|
|
49
|
+
};
|
|
50
|
+
export type ParameterData = {
|
|
51
|
+
name: string;
|
|
52
|
+
in?: string;
|
|
53
|
+
schemaId: string;
|
|
54
|
+
description?: string | Node | Node[];
|
|
55
|
+
required?: boolean;
|
|
56
|
+
deprecated?: boolean;
|
|
57
|
+
example?: unknown;
|
|
58
|
+
examples?: Record<string, ExampleType>;
|
|
59
|
+
badges?: BadgeType[];
|
|
60
|
+
extensions?: Record<string, unknown>;
|
|
61
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
62
|
+
};
|
|
63
|
+
export type GraphqlFieldData = {
|
|
64
|
+
name: string;
|
|
65
|
+
type: string;
|
|
66
|
+
description?: string | Node[] | Node;
|
|
67
|
+
deprecated?: boolean;
|
|
68
|
+
deprecationReason?: string;
|
|
69
|
+
defaultValue?: unknown;
|
|
70
|
+
args?: Array<{
|
|
71
|
+
name: string;
|
|
72
|
+
type: string;
|
|
73
|
+
description?: string | Node[] | Node;
|
|
74
|
+
deprecationReason?: string;
|
|
75
|
+
defaultValue?: unknown;
|
|
76
|
+
}>;
|
|
77
|
+
};
|
|
78
|
+
export type GraphqlReturnTypeData = {
|
|
79
|
+
type: string;
|
|
80
|
+
description?: string | Node[] | Node;
|
|
81
|
+
fields?: GraphqlFieldData[];
|
|
82
|
+
};
|
|
83
|
+
export type ItemContentNode = {
|
|
84
|
+
nodeType: typeof nodeTypes.ITEM;
|
|
85
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
86
|
+
variant: 'headers' | 'query' | 'querystring' | 'querystring-body' | 'path' | 'parameters' | 'cookies' | 'body' | 'properties' | 'arguments' | 'fields' | 'responses' | 'callback' | 'messages' | 'values' | 'graphql-fields' | 'graphql-args' | 'return-type' | 'possible-types' | 'implements' | 'implemented-by' | 'requires-scopes';
|
|
87
|
+
label?: string;
|
|
88
|
+
labelTranslationKey?: string;
|
|
89
|
+
schemaId?: string;
|
|
90
|
+
exampleIds?: string[];
|
|
91
|
+
parameters?: ParameterData[];
|
|
92
|
+
graphqlSchema?: GraphqlFieldData[] | GraphqlReturnTypeData;
|
|
93
|
+
required?: boolean;
|
|
94
|
+
mediaTypes?: string[];
|
|
95
|
+
mediaTypeSchemas?: Record<string, MediaTypeContent>;
|
|
96
|
+
pointer?: string;
|
|
97
|
+
description?: string | Node | Node[];
|
|
98
|
+
graphqlTypeName?: string;
|
|
99
|
+
graphqlFieldName?: string;
|
|
100
|
+
graphqlOperationType?: 'query' | 'mutation' | 'subscription';
|
|
101
|
+
graphqlInterfaceNames?: string[];
|
|
102
|
+
graphqlTypeNames?: string[];
|
|
103
|
+
responses?: Array<{
|
|
104
|
+
code: string;
|
|
105
|
+
summary?: string | Node[] | Node;
|
|
106
|
+
description?: string | Node[] | Node;
|
|
107
|
+
mediaType?: string;
|
|
108
|
+
mediaTypes?: string[];
|
|
109
|
+
mediaTypeContent?: Record<string, MediaTypeContent>;
|
|
110
|
+
schemaId?: string;
|
|
111
|
+
exampleIds?: string[];
|
|
112
|
+
headers?: OpenAPIResponse['headers'];
|
|
113
|
+
headerSchemaId?: string;
|
|
114
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
115
|
+
}>;
|
|
116
|
+
callback?: {
|
|
117
|
+
httpVerb: string;
|
|
118
|
+
pathName: string;
|
|
119
|
+
summary?: string;
|
|
120
|
+
operationId?: string;
|
|
121
|
+
description?: string | Node | Node[];
|
|
122
|
+
deprecated?: boolean;
|
|
123
|
+
callbackName: string;
|
|
124
|
+
callbackId: string;
|
|
125
|
+
externalDocs?: {
|
|
126
|
+
url: string;
|
|
127
|
+
description?: string;
|
|
128
|
+
};
|
|
129
|
+
extensions?: Record<string, unknown>;
|
|
130
|
+
contentChildren?: ContentNode[];
|
|
131
|
+
};
|
|
132
|
+
messages?: Array<{
|
|
133
|
+
name: string;
|
|
134
|
+
label: string;
|
|
135
|
+
summary?: string;
|
|
136
|
+
description?: string | Node[] | Node;
|
|
137
|
+
contentType?: string;
|
|
138
|
+
schemaId?: string;
|
|
139
|
+
headerSchemaId?: string;
|
|
140
|
+
exampleIds?: string[];
|
|
141
|
+
payload?: AsyncAPISchema;
|
|
142
|
+
payloadLabel?: string;
|
|
143
|
+
headers?: AsyncAPISchema;
|
|
144
|
+
externalDocs?: {
|
|
145
|
+
url: string;
|
|
146
|
+
description?: string | Node[] | Node;
|
|
147
|
+
};
|
|
148
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
149
|
+
}>;
|
|
150
|
+
values?: Array<{
|
|
151
|
+
name: string;
|
|
152
|
+
description?: string | Node[] | Node;
|
|
153
|
+
deprecated?: boolean;
|
|
154
|
+
type?: string;
|
|
155
|
+
}>;
|
|
156
|
+
};
|
|
157
|
+
export type SecuritySchemeDetail = {
|
|
158
|
+
name: string;
|
|
159
|
+
type?: string;
|
|
160
|
+
scheme?: string;
|
|
161
|
+
bearerFormat?: string;
|
|
162
|
+
in?: string;
|
|
163
|
+
paramName?: string;
|
|
164
|
+
scopes?: string[];
|
|
165
|
+
description?: string | Node[] | Node;
|
|
166
|
+
openIdConnectUrl?: string;
|
|
167
|
+
oauth2MetadataUrl?: string;
|
|
168
|
+
flows?: SecuritySchemeEntry['flows'];
|
|
169
|
+
deprecated?: boolean;
|
|
170
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
171
|
+
};
|
|
172
|
+
export type SecurityNode = {
|
|
173
|
+
nodeType: typeof nodeTypes.SECURITY;
|
|
174
|
+
requirements: Array<{
|
|
175
|
+
schemes: SecuritySchemeDetail[];
|
|
176
|
+
}>;
|
|
177
|
+
};
|
|
178
|
+
export type FeedbackNode = {
|
|
179
|
+
nodeType: typeof nodeTypes.FEEDBACK;
|
|
180
|
+
variant?: 'sentiment' | 'rating' | 'text';
|
|
181
|
+
pageSlug?: string;
|
|
182
|
+
settings?: Record<string, unknown>;
|
|
183
|
+
};
|
|
184
|
+
export type MarkdocNode = {
|
|
185
|
+
nodeType: typeof nodeTypes.MARKDOC;
|
|
186
|
+
content: string | Node[] | Node;
|
|
187
|
+
};
|
|
188
|
+
export type AdmonitionNode = {
|
|
189
|
+
nodeType: typeof nodeTypes.ADMONITION;
|
|
190
|
+
admonitionType: 'warning' | 'info' | 'danger' | 'success' | 'default';
|
|
191
|
+
name?: string;
|
|
192
|
+
nameTranslationKey?: string;
|
|
193
|
+
content?: string | Node[] | Node;
|
|
194
|
+
};
|
|
195
|
+
export type ExternalDocsNode = {
|
|
196
|
+
nodeType: typeof nodeTypes.EXTERNAL_DOCS;
|
|
197
|
+
url: string;
|
|
198
|
+
description: string | Node[] | Node;
|
|
199
|
+
};
|
|
200
|
+
export type ChannelAddressNode = {
|
|
201
|
+
nodeType: typeof nodeTypes.CHANNEL_ADDRESS;
|
|
202
|
+
address: string;
|
|
203
|
+
};
|
|
204
|
+
export type MessageLinksNode = {
|
|
205
|
+
nodeType: typeof nodeTypes.MESSAGE_LINKS;
|
|
206
|
+
channelLink: string;
|
|
207
|
+
messages: Array<{
|
|
208
|
+
name: string;
|
|
209
|
+
label: string;
|
|
210
|
+
}>;
|
|
211
|
+
};
|
|
212
|
+
export type InfoMetadataRow = {
|
|
213
|
+
key: string;
|
|
214
|
+
value: string;
|
|
215
|
+
};
|
|
216
|
+
export type InfoMetadataNode = {
|
|
217
|
+
nodeType: typeof nodeTypes.INFO_METADATA;
|
|
218
|
+
rows: InfoMetadataRow[];
|
|
219
|
+
};
|
|
220
|
+
export type ExtensionsNode = {
|
|
221
|
+
nodeType: typeof nodeTypes.EXTENSIONS;
|
|
222
|
+
extensions: Record<string, unknown>;
|
|
223
|
+
};
|
|
224
|
+
type PanelItemsByKind<TKind extends PanelItem['kind']> = Extract<PanelItem, {
|
|
225
|
+
kind: TKind;
|
|
226
|
+
}>;
|
|
227
|
+
type SingleChildPanelBase<TKind extends PanelItem['kind']> = {
|
|
228
|
+
title?: string;
|
|
229
|
+
titleTranslationKey?: string;
|
|
230
|
+
children: [PanelItemsByKind<TKind>];
|
|
231
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
232
|
+
};
|
|
233
|
+
type MultiChildPanelBase<TKind extends PanelItem['kind']> = {
|
|
234
|
+
title?: string;
|
|
235
|
+
titleTranslationKey?: string;
|
|
236
|
+
children: PanelItemsByKind<TKind>[];
|
|
237
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
238
|
+
};
|
|
239
|
+
export type LanguageOption = {
|
|
240
|
+
key: string;
|
|
241
|
+
title: string;
|
|
242
|
+
lang: string;
|
|
243
|
+
};
|
|
244
|
+
export type PanelTag = {
|
|
245
|
+
text: string;
|
|
246
|
+
color?: string;
|
|
247
|
+
icon?: string;
|
|
248
|
+
};
|
|
249
|
+
export type DownloadPanelItem = {
|
|
250
|
+
kind: typeof panelKind.DOWNLOAD;
|
|
251
|
+
label: string;
|
|
252
|
+
labelTranslationKey?: string;
|
|
253
|
+
url: string;
|
|
254
|
+
icon?: string;
|
|
255
|
+
};
|
|
256
|
+
export type ExternalLinkPanelItem = {
|
|
257
|
+
kind: typeof panelKind.EXTERNAL_LINK;
|
|
258
|
+
title?: string;
|
|
259
|
+
titleTranslationKey?: string;
|
|
260
|
+
label: string;
|
|
261
|
+
labelTranslationKey?: string;
|
|
262
|
+
url: string;
|
|
263
|
+
withCopyButton?: boolean;
|
|
264
|
+
copyContent?: string;
|
|
265
|
+
};
|
|
266
|
+
export type EmailPanelItem = {
|
|
267
|
+
kind: typeof panelKind.EMAIL;
|
|
268
|
+
title?: string;
|
|
269
|
+
titleTranslationKey?: string;
|
|
270
|
+
email: string;
|
|
271
|
+
label: string;
|
|
272
|
+
labelTranslationKey?: string;
|
|
273
|
+
withCopyButton?: boolean;
|
|
274
|
+
copyContent?: string;
|
|
275
|
+
};
|
|
276
|
+
export type LanguagesPanelItem = {
|
|
277
|
+
kind: typeof panelKind.LANGUAGES;
|
|
278
|
+
options: LanguageOption[];
|
|
279
|
+
};
|
|
280
|
+
export type ServersPanelItem = {
|
|
281
|
+
kind: typeof panelKind.SERVERS;
|
|
282
|
+
servers: ServerData[];
|
|
283
|
+
mode?: string;
|
|
284
|
+
};
|
|
285
|
+
export type BrokersPanelItem = {
|
|
286
|
+
kind: typeof panelKind.BROKERS;
|
|
287
|
+
panelLabel?: string;
|
|
288
|
+
brokers: BrokerData[];
|
|
289
|
+
};
|
|
290
|
+
export type ChannelBindingPanelItem = {
|
|
291
|
+
kind: typeof panelKind.CHANNEL_BINDING;
|
|
292
|
+
panelLabel?: string;
|
|
293
|
+
bindingKey: string;
|
|
294
|
+
bindingValue: Record<string, unknown>;
|
|
295
|
+
};
|
|
296
|
+
export type OperationBindingPanelItem = {
|
|
297
|
+
kind: typeof panelKind.OPERATION_BINDING;
|
|
298
|
+
panelLabel?: string;
|
|
299
|
+
bindingKey: string;
|
|
300
|
+
bindingValue: Record<string, unknown>;
|
|
301
|
+
groupIdSchemaId?: string;
|
|
302
|
+
clientIdSchemaId?: string;
|
|
303
|
+
};
|
|
304
|
+
export type KeyValuePanelItem = {
|
|
305
|
+
kind: typeof panelKind.ATTRIBUTE;
|
|
306
|
+
title?: string;
|
|
307
|
+
titleTranslationKey?: string;
|
|
308
|
+
label: string;
|
|
309
|
+
labelTranslationKey?: string;
|
|
310
|
+
value: string;
|
|
311
|
+
withCopyButton?: boolean;
|
|
312
|
+
copyContent?: string;
|
|
313
|
+
};
|
|
314
|
+
export type TagsPanelItem = {
|
|
315
|
+
kind: typeof panelKind.TAGS;
|
|
316
|
+
title?: string;
|
|
317
|
+
titleTranslationKey?: string;
|
|
318
|
+
tags: PanelTag[];
|
|
319
|
+
};
|
|
320
|
+
export type ConnectMcpButtonPanelItem = {
|
|
321
|
+
kind: typeof panelKind.CONNECT_MCP_BUTTON;
|
|
322
|
+
title?: string;
|
|
323
|
+
titleTranslationKey?: string;
|
|
324
|
+
mcpUrl: string;
|
|
325
|
+
actions: string[];
|
|
326
|
+
};
|
|
327
|
+
export type BaseExamplePanelItem = {
|
|
328
|
+
schemaId?: string;
|
|
329
|
+
examples: {
|
|
330
|
+
name?: string;
|
|
331
|
+
summary?: string;
|
|
332
|
+
statusCode?: string;
|
|
333
|
+
mediaType?: string;
|
|
334
|
+
value?: unknown;
|
|
335
|
+
}[];
|
|
336
|
+
};
|
|
337
|
+
export type PayloadExamplesPanelItem = BaseExamplePanelItem & {
|
|
338
|
+
kind: typeof panelKind.PAYLOAD;
|
|
339
|
+
panelLabel?: string;
|
|
340
|
+
exampleIds?: string[];
|
|
341
|
+
mediaTypes?: string[];
|
|
342
|
+
mediaTypeSchemas?: Record<string, MediaTypeContent>;
|
|
343
|
+
messagesByKey?: Record<string, {
|
|
344
|
+
schemaId?: string;
|
|
345
|
+
exampleIds?: string[];
|
|
346
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
347
|
+
}>;
|
|
348
|
+
};
|
|
349
|
+
export type MessageBindingData = {
|
|
350
|
+
bindingKey: string;
|
|
351
|
+
bindingValue: Record<string, unknown>;
|
|
352
|
+
keySchemaId?: string;
|
|
353
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
354
|
+
};
|
|
355
|
+
export type MessageBindingPanelItem = {
|
|
356
|
+
kind: typeof panelKind.MESSAGE_BINDING;
|
|
357
|
+
panelLabel?: string;
|
|
358
|
+
bindingsByMessageKey: Record<string, MessageBindingData>;
|
|
359
|
+
};
|
|
360
|
+
export type MessageChannelReference = {
|
|
361
|
+
key: string;
|
|
362
|
+
label: string;
|
|
363
|
+
link: string;
|
|
364
|
+
};
|
|
365
|
+
export type MessageReferencesGroups = {
|
|
366
|
+
exchanges: MessageChannelReference[];
|
|
367
|
+
queues: MessageChannelReference[];
|
|
368
|
+
};
|
|
369
|
+
export type MessageReferencesPanelItem = {
|
|
370
|
+
kind: typeof panelKind.MESSAGE_REFERENCES;
|
|
371
|
+
panelLabel?: string;
|
|
372
|
+
referencesByMessageKey: Record<string, MessageReferencesGroups>;
|
|
373
|
+
};
|
|
374
|
+
export type ReplayPanel = {
|
|
375
|
+
kind: typeof panelKind.REPLAY;
|
|
376
|
+
operationValue: OpenAPIOperation;
|
|
377
|
+
};
|
|
378
|
+
export type DefinitionCodeSample = {
|
|
379
|
+
lang: string;
|
|
380
|
+
label?: string;
|
|
381
|
+
source: string;
|
|
382
|
+
};
|
|
383
|
+
export type CodeSamplePanelItem = BaseExamplePanelItem & {
|
|
384
|
+
kind: typeof panelKind.CODE_SAMPLE;
|
|
385
|
+
source: CodeSampleSource;
|
|
386
|
+
definitionSamples?: DefinitionCodeSample[];
|
|
387
|
+
isWebhook?: boolean;
|
|
388
|
+
hideReplay?: boolean;
|
|
389
|
+
servers?: {
|
|
390
|
+
url: string;
|
|
391
|
+
name?: string;
|
|
392
|
+
description?: string;
|
|
393
|
+
variables?: Record<string, {
|
|
394
|
+
default?: string;
|
|
395
|
+
}>;
|
|
396
|
+
/** Set on entries injected by `mergeInMockServer` (never present in specs). */
|
|
397
|
+
isMockServer?: boolean;
|
|
398
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
399
|
+
}[];
|
|
400
|
+
exampleIds?: string[];
|
|
401
|
+
mediaTypes?: string[];
|
|
402
|
+
mediaTypeSchemas?: Record<string, MediaTypeContent>;
|
|
403
|
+
};
|
|
404
|
+
export type ResponseExamplesPanelItem = BaseExamplePanelItem & {
|
|
405
|
+
kind: typeof panelKind.RESPONSE;
|
|
406
|
+
exampleIds?: string[];
|
|
407
|
+
responseCodes?: ResponseCodeEntry[];
|
|
408
|
+
headerTitle?: string;
|
|
409
|
+
exampleKey?: string;
|
|
410
|
+
};
|
|
411
|
+
export type GraphQLQueryPanelItem = BaseExamplePanelItem & {
|
|
412
|
+
kind: typeof panelKind.GRAPHQL_QUERY;
|
|
413
|
+
graphqlOperationData?: GraphQLOperationData;
|
|
414
|
+
};
|
|
415
|
+
export type GraphQLResponsePanelItem = BaseExamplePanelItem & {
|
|
416
|
+
kind: typeof panelKind.GRAPHQL_RESPONSE;
|
|
417
|
+
graphqlOperationData?: GraphQLOperationData;
|
|
418
|
+
};
|
|
419
|
+
export type GraphQLVariablesPanelItem = BaseExamplePanelItem & {
|
|
420
|
+
kind: typeof panelKind.GRAPHQL_VARIABLES;
|
|
421
|
+
graphqlOperationData?: GraphQLOperationData;
|
|
422
|
+
};
|
|
423
|
+
export type GraphQLTypeSamplePanelItem = BaseExamplePanelItem & {
|
|
424
|
+
kind: typeof panelKind.GRAPHQL_TYPE_SAMPLE;
|
|
425
|
+
graphqlOperationData?: GraphQLOperationData;
|
|
426
|
+
};
|
|
427
|
+
export type CallbackPayloadPanelItem = BaseExamplePanelItem & {
|
|
428
|
+
kind: typeof panelKind.CALLBACK_PAYLOAD;
|
|
429
|
+
callbackName?: string;
|
|
430
|
+
path?: string;
|
|
431
|
+
httpVerb?: string;
|
|
432
|
+
servers?: {
|
|
433
|
+
url: string;
|
|
434
|
+
name?: string;
|
|
435
|
+
description?: string;
|
|
436
|
+
variables?: Record<string, {
|
|
437
|
+
default?: string;
|
|
438
|
+
}>;
|
|
439
|
+
/** Set on entries injected by `mergeInMockServer` (never present in specs). */
|
|
440
|
+
isMockServer?: boolean;
|
|
441
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
442
|
+
}[];
|
|
443
|
+
definitionSamples?: DefinitionCodeSample[];
|
|
444
|
+
mediaTypes?: string[];
|
|
445
|
+
mediaTypeSchemas?: Record<string, MediaTypeContent>;
|
|
446
|
+
};
|
|
447
|
+
export type ExamplePanelItem = PayloadExamplesPanelItem | CodeSamplePanelItem | ResponseExamplesPanelItem | CallbackPayloadPanelItem | GraphQLQueryPanelItem | GraphQLResponsePanelItem | GraphQLVariablesPanelItem | GraphQLTypeSamplePanelItem;
|
|
448
|
+
export type ReferencesPanelItem = {
|
|
449
|
+
kind: typeof panelKind.REFERENCES;
|
|
450
|
+
graphqlTypeName?: string;
|
|
451
|
+
references: {
|
|
452
|
+
name: string;
|
|
453
|
+
pointer: string;
|
|
454
|
+
field?: string;
|
|
455
|
+
}[];
|
|
456
|
+
};
|
|
457
|
+
export type LocationsPanelItem = {
|
|
458
|
+
kind: typeof panelKind.LOCATIONS;
|
|
459
|
+
locations: string[];
|
|
460
|
+
};
|
|
461
|
+
export type GroupItemsPanelItem = {
|
|
462
|
+
kind: typeof panelKind.GROUP_ITEMS;
|
|
463
|
+
title: string;
|
|
464
|
+
titleTranslationKey?: string;
|
|
465
|
+
items: GroupItem[];
|
|
466
|
+
};
|
|
467
|
+
export type OverviewPanelItem = ExternalLinkPanelItem | EmailPanelItem | KeyValuePanelItem;
|
|
468
|
+
export type McpPanelItem = KeyValuePanelItem | TagsPanelItem | ExternalLinkPanelItem | ConnectMcpButtonPanelItem;
|
|
469
|
+
export type McpExamplePanelItem = {
|
|
470
|
+
kind: typeof panelKind.MCP_EXAMPLE;
|
|
471
|
+
headerTitle: string;
|
|
472
|
+
data: unknown;
|
|
473
|
+
language?: string;
|
|
474
|
+
};
|
|
475
|
+
export type PanelItem = DownloadPanelItem | OverviewPanelItem | LanguagesPanelItem | ServersPanelItem | BrokersPanelItem | ChannelBindingPanelItem | OperationBindingPanelItem | MessageBindingPanelItem | MessageReferencesPanelItem | McpPanelItem | McpExamplePanelItem | ExamplePanelItem | ReferencesPanelItem | LocationsPanelItem | GroupItemsPanelItem;
|
|
476
|
+
export type DownloadNode = MultiChildPanelBase<typeof panelKind.DOWNLOAD>;
|
|
477
|
+
export type ServersNode = SingleChildPanelBase<typeof panelKind.SERVERS>;
|
|
478
|
+
export type BrokersNode = SingleChildPanelBase<typeof panelKind.BROKERS>;
|
|
479
|
+
export type ChannelBindingNode = SingleChildPanelBase<typeof panelKind.CHANNEL_BINDING>;
|
|
480
|
+
export type OperationBindingNode = SingleChildPanelBase<typeof panelKind.OPERATION_BINDING>;
|
|
481
|
+
export type MessageBindingNode = SingleChildPanelBase<typeof panelKind.MESSAGE_BINDING>;
|
|
482
|
+
export type MessageReferencesNode = SingleChildPanelBase<typeof panelKind.MESSAGE_REFERENCES>;
|
|
483
|
+
export type OverviewNode = MultiChildPanelBase<typeof panelKind.EXTERNAL_LINK | typeof panelKind.EMAIL | typeof panelKind.ATTRIBUTE>;
|
|
484
|
+
export type LanguagesNode = SingleChildPanelBase<typeof panelKind.LANGUAGES>;
|
|
485
|
+
export type McpNode = MultiChildPanelBase<typeof panelKind.ATTRIBUTE | typeof panelKind.TAGS | typeof panelKind.EXTERNAL_LINK | typeof panelKind.CONNECT_MCP_BUTTON>;
|
|
486
|
+
export type CodeSampleRequestValues = {
|
|
487
|
+
security?: Record<string, unknown>;
|
|
488
|
+
envVariables?: Record<string, string>;
|
|
489
|
+
serverEnvVariables?: Record<string, Record<string, string>>;
|
|
490
|
+
};
|
|
491
|
+
export type CodeSampleParamEntry = {
|
|
492
|
+
name: string;
|
|
493
|
+
value: string;
|
|
494
|
+
serverValues?: Record<string, string>;
|
|
495
|
+
serializationMime?: string;
|
|
496
|
+
};
|
|
497
|
+
export type CodeSampleOperationData = {
|
|
498
|
+
method: string;
|
|
499
|
+
path: string;
|
|
500
|
+
serverUrl?: string;
|
|
501
|
+
headers?: CodeSampleParamEntry[];
|
|
502
|
+
queryString?: CodeSampleParamEntry[];
|
|
503
|
+
cookies?: CodeSampleParamEntry[];
|
|
504
|
+
pathParams?: {
|
|
505
|
+
name: string;
|
|
506
|
+
value: string;
|
|
507
|
+
}[];
|
|
508
|
+
body?: unknown;
|
|
509
|
+
bodyMediaType?: string;
|
|
510
|
+
requestValues?: CodeSampleRequestValues;
|
|
511
|
+
securityRequirements?: Array<Record<string, string[]>>;
|
|
512
|
+
};
|
|
513
|
+
export type MediaTypeContent = {
|
|
514
|
+
schemaId?: string;
|
|
515
|
+
exampleIds?: string[];
|
|
516
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
517
|
+
};
|
|
518
|
+
export type ResponseCodeEntry = {
|
|
519
|
+
code: string;
|
|
520
|
+
schemaId?: string;
|
|
521
|
+
exampleIds?: string[];
|
|
522
|
+
mediaTypes?: string[];
|
|
523
|
+
mediaTypeContent?: Record<string, MediaTypeContent>;
|
|
524
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
525
|
+
};
|
|
526
|
+
export type GraphQLOperationData = {
|
|
527
|
+
operationType: 'query' | 'mutation' | 'subscription';
|
|
528
|
+
operationName: string;
|
|
529
|
+
typeName: string;
|
|
530
|
+
};
|
|
531
|
+
export type ExamplesNode = MultiChildPanelBase<typeof panelKind.PAYLOAD | typeof panelKind.CODE_SAMPLE | typeof panelKind.RESPONSE | typeof panelKind.CALLBACK_PAYLOAD | typeof panelKind.GRAPHQL_QUERY | typeof panelKind.GRAPHQL_RESPONSE | typeof panelKind.GRAPHQL_VARIABLES | typeof panelKind.GRAPHQL_TYPE_SAMPLE>;
|
|
532
|
+
export type ReferencesNode = SingleChildPanelBase<typeof panelKind.REFERENCES>;
|
|
533
|
+
export type LocationsPanelNode = SingleChildPanelBase<typeof panelKind.LOCATIONS>;
|
|
534
|
+
export type GroupItemNode = MultiChildPanelBase<typeof panelKind.GROUP_ITEMS>;
|
|
535
|
+
export type McpExampleNode = SingleChildPanelBase<typeof panelKind.MCP_EXAMPLE>;
|
|
File without changes
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { Operation } from './options.js';
|
|
2
|
+
export type AnalyticsEventType = 'CodeSampleLanguageSwitched' | 'CodeSampleCopied' | 'OperationServerExpanded' | 'PanelToggle' | 'TargetServerSwitched' | 'TryItOpen' | 'TryItSent';
|
|
3
|
+
export type AnalyticsEvent = {
|
|
4
|
+
eventType: AnalyticsEventType;
|
|
5
|
+
resource: 'Redocly_CodeSample' | 'Redocly_Operation' | 'Redocly_OperationTryIt';
|
|
6
|
+
action: 'LanguageSwitched' | 'PanelToggled' | 'Opened' | 'Closed' | 'NavigatedOverrideLink' | 'Sent' | 'ValidationFailed' | 'CodeSampleCopied' | 'TargetServerSwitched';
|
|
7
|
+
operationId?: string;
|
|
8
|
+
operationPath: string;
|
|
9
|
+
operationHttpVerb: string;
|
|
10
|
+
operationSummary?: string | Record<string, unknown>;
|
|
11
|
+
};
|
|
12
|
+
export type CodeSamplesLanguageSwitchedEvent = AnalyticsEvent & {
|
|
13
|
+
lang: string;
|
|
14
|
+
label: string;
|
|
15
|
+
exampleId?: string;
|
|
16
|
+
};
|
|
17
|
+
export type CodeSamplesCopiedEvent = AnalyticsEvent & {
|
|
18
|
+
lang: string;
|
|
19
|
+
label: string;
|
|
20
|
+
type: 'request' | 'response';
|
|
21
|
+
exampleId?: string;
|
|
22
|
+
exampleMimeType?: string;
|
|
23
|
+
};
|
|
24
|
+
export type PanelType = 'request' | 'responses' | 'request-samples' | 'response-samples';
|
|
25
|
+
export type PanelToggleEvent = AnalyticsEvent & {
|
|
26
|
+
panelType: PanelType;
|
|
27
|
+
state: 'expanded' | 'collapsed';
|
|
28
|
+
operationId: string;
|
|
29
|
+
operationPath: string;
|
|
30
|
+
operationHttpVerb: string;
|
|
31
|
+
operationSummary?: string | Record<string, unknown>;
|
|
32
|
+
};
|
|
33
|
+
export type TargetServerSwitchedEvent = AnalyticsEvent & {
|
|
34
|
+
serverUrl: string;
|
|
35
|
+
};
|
|
36
|
+
export type TryItOpenedEvent = AnalyticsEvent;
|
|
37
|
+
export type TryItSentEvent = AnalyticsEvent;
|
|
38
|
+
export type EventType = CodeSamplesLanguageSwitchedEvent | CodeSamplesCopiedEvent | TryItOpenedEvent | TryItSentEvent | PanelToggleEvent | TargetServerSwitchedEvent;
|
|
39
|
+
export type Events = {
|
|
40
|
+
codeSamplesLanguageSwitch?: (event: CodeSamplesLanguageSwitchedEvent) => void;
|
|
41
|
+
codeSamplesCopy?: (event: CodeSamplesCopiedEvent) => void;
|
|
42
|
+
tryItOpen?: (event: TryItOpenedEvent) => void;
|
|
43
|
+
tryItSent?: (event: TryItSentEvent) => void;
|
|
44
|
+
panelToggle?: (event: PanelToggleEvent) => void;
|
|
45
|
+
targetServerSwitch?: (event: TargetServerSwitchedEvent) => void;
|
|
46
|
+
};
|
|
47
|
+
export type LanguageSwitchProps = {
|
|
48
|
+
operation: Operation;
|
|
49
|
+
sample: Record<string, unknown>;
|
|
50
|
+
};
|
|
51
|
+
export type PanelToggleProps = {
|
|
52
|
+
operation: Operation;
|
|
53
|
+
isExpanded: boolean;
|
|
54
|
+
panelType: PanelToggleEvent['panelType'];
|
|
55
|
+
};
|
|
56
|
+
export type CodeSampleCopyProps = {
|
|
57
|
+
operation: Operation;
|
|
58
|
+
lang?: string;
|
|
59
|
+
label?: string;
|
|
60
|
+
type: 'request' | 'response';
|
|
61
|
+
exampleId?: string;
|
|
62
|
+
activeExampleName?: string;
|
|
63
|
+
activeMimeName: string;
|
|
64
|
+
};
|
|
65
|
+
export type TargetServerSwitchProps = {
|
|
66
|
+
operation: Operation;
|
|
67
|
+
serverUrl: string;
|
|
68
|
+
};
|
|
69
|
+
export type TryItOpenProps = {
|
|
70
|
+
operation: Operation;
|
|
71
|
+
};
|
|
72
|
+
export type TryItSentProps = {
|
|
73
|
+
operation: Operation;
|
|
74
|
+
isSuccess: boolean;
|
|
75
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export type GraphqlTypeRef = {
|
|
2
|
+
display: string;
|
|
3
|
+
name: string;
|
|
4
|
+
isList: boolean;
|
|
5
|
+
isNonNull: boolean;
|
|
6
|
+
isListNonNull: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type GraphqlRequiresScopes = {
|
|
9
|
+
scopes: string[][];
|
|
10
|
+
};
|
|
11
|
+
export type GraphqlStoreFieldData = {
|
|
12
|
+
name: string;
|
|
13
|
+
type: GraphqlTypeRef;
|
|
14
|
+
description?: string;
|
|
15
|
+
deprecationReason?: string;
|
|
16
|
+
defaultValue?: unknown;
|
|
17
|
+
required?: boolean;
|
|
18
|
+
args?: GraphqlStoreFieldData[];
|
|
19
|
+
requiresScopes?: GraphqlRequiresScopes;
|
|
20
|
+
};
|
|
21
|
+
export type GraphqlEnumValueData = {
|
|
22
|
+
name: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
deprecationReason?: string;
|
|
25
|
+
requiresScopes?: GraphqlRequiresScopes;
|
|
26
|
+
};
|
|
27
|
+
export type GraphqlTypeDataVariant = 'object' | 'interface' | 'input' | 'union' | 'enum' | 'scalar';
|
|
28
|
+
export type GraphqlTypeData = {
|
|
29
|
+
variant: GraphqlTypeDataVariant;
|
|
30
|
+
name: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
fields?: GraphqlStoreFieldData[];
|
|
33
|
+
enumValues?: GraphqlEnumValueData[];
|
|
34
|
+
possibleTypes?: string[];
|
|
35
|
+
interfaces?: string[];
|
|
36
|
+
specifiedByUrl?: string;
|
|
37
|
+
requiresScopes?: GraphqlRequiresScopes;
|
|
38
|
+
};
|
|
39
|
+
export type GraphqlDirectiveData = {
|
|
40
|
+
name: string;
|
|
41
|
+
description?: string;
|
|
42
|
+
locations: string[];
|
|
43
|
+
args?: GraphqlStoreFieldData[];
|
|
44
|
+
isRepeatable?: boolean;
|
|
45
|
+
};
|
|
46
|
+
export type GraphqlTypeReference = {
|
|
47
|
+
name: string;
|
|
48
|
+
field?: string;
|
|
49
|
+
};
|
|
50
|
+
export type GraphqlStoreMeta = {
|
|
51
|
+
rootTypes: {
|
|
52
|
+
query?: string;
|
|
53
|
+
mutation?: string;
|
|
54
|
+
subscription?: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export declare const GRAPHQL_TYPE_ENTRY_PREFIX = "types/";
|
|
58
|
+
export declare const GRAPHQL_DIRECTIVE_ENTRY_PREFIX = "directives/";
|
|
59
|
+
export declare function graphqlTypeEntryId(typeName: string): string;
|
|
60
|
+
export declare function graphqlDirectiveEntryId(directiveName: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const r="types/",e="directives/";function n(t){return`${r}${t}`}function E(t){return`${e}${t}`}export{e as GRAPHQL_DIRECTIVE_ENTRY_PREFIX,r as GRAPHQL_TYPE_ENTRY_PREFIX,E as graphqlDirectiveEntryId,n as graphqlTypeEntryId};
|