@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
|
+
import{itemVariant as f}from"../../../../types/common.js";import{graphqlContext as p}from"../../buildContext.js";import{BUILT_IN_DIRECTIVES as u}from"../../utils/constants.js";import{createApiItem as l}from"../../utils/createApiItem.js";import{ignoreInternalItems as v}from"../../utils/ignoreInternalItems.js";function B({filter:r,processedItems:o,menuCommonFilter:n,parentPath:m}={}){const{schema:s,options:c}=p.get(),a=c.showBuiltInDirectives===!0,I=v(Array.from(s.getDirectives())),e=[];for(const t of I){if(!a&&u.has(t.name))continue;const i=l({name:t.name,variant:f.DIRECTIVE,processedItems:o,filter:r,menuCommonFilter:n,label:`@${t.name}`,source:t,parentPath:m});i&&e.push(i)}return e}export{B as buildDirectiveItems};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GraphQLEnumType } from 'graphql';
|
|
2
|
+
import type { ApiItemContent } from '../../../../types/content.js';
|
|
3
|
+
import type { ParseMarkdownOptions } from '../../../utils/parseMarkdown.js';
|
|
4
|
+
export declare function buildEnumContent(enumType: GraphQLEnumType, markdownOptions: ParseMarkdownOptions): ApiItemContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{contentType as d,itemVariant as c,nodeTypes as n}from"../../../../types/common.js";import{parseMarkdown as r}from"../../../utils/parseMarkdown.js";function m(e,i){const o=e.getValues(),t=[{nodeType:n.HEADER,level:2,label:e.name,showPageActions:!0}],s=r(e.description,i);return s&&t.push({nodeType:n.MARKDOC,content:s}),t.push({nodeType:n.ITEM,variant:"requires-scopes",graphqlTypeName:e.name}),o.length>0&&t.push({nodeType:n.ITEM,variant:"values",label:"Values",labelTranslationKey:"values",schemaId:`types/${e.name}`,values:o.map(a=>({name:a.name,description:r(a.description,i)??[],deprecated:!!a.deprecationReason}))}),{contentType:d.ITEM,itemVariant:c.ENUM,meta:{name:e.name},seo:{title:e.name,description:e.description||void 0},children:[{nodeType:n.CONTAINER,children:t,panels:[]}]}}export{m as buildEnumContent};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ApiItem } from '../../../../types/store.js';
|
|
2
|
+
import type { GraphqlMenuGroupItemsBuildParams } from '../types.js';
|
|
3
|
+
export declare function buildEnumItems({ filter, processedItems, menuCommonFilter, parentPath, }?: GraphqlMenuGroupItemsBuildParams): ApiItem[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isEnumType as c}from"graphql";import{itemVariant as f}from"../../../../types/common.js";import{graphqlContext as u}from"../../buildContext.js";import{createApiItem as l}from"../../utils/createApiItem.js";import{ignoreInternalItems as g}from"../../utils/ignoreInternalItems.js";function M({filter:m,processedItems:r,menuCommonFilter:n,parentPath:i}={}){const{schema:s}=u.get(),a=s.getTypeMap(),p=g(Object.values(a).filter(t=>c(t))),e=[];for(const t of p){const o=l({name:t.name,variant:f.ENUM,processedItems:r,filter:m,menuCommonFilter:n,source:t,parentPath:i});o&&e.push(o)}return e}export{M as buildEnumItems};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GraphQLInputObjectType } from 'graphql';
|
|
2
|
+
import type { ApiItemContent } from '../../../../types/content.js';
|
|
3
|
+
import type { ParseMarkdownOptions } from '../../../utils/parseMarkdown.js';
|
|
4
|
+
export declare function buildInputContent(input: GraphQLInputObjectType, markdownOptions: ParseMarkdownOptions): ApiItemContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{contentType as y,itemVariant as T,nodeTypes as n,panelKind as p}from"../../../../types/common.js";import{parseMarkdown as c}from"../../../utils/parseMarkdown.js";function E(e,r){const o=`types/${e.name}`,a=[{nodeType:n.HEADER,level:2,label:e.name,showPageActions:!0}],i=c(e.description,r);i&&a.push({nodeType:n.MARKDOC,content:i}),a.push({nodeType:n.ITEM,variant:"requires-scopes",graphqlTypeName:e.name});const l=e.getFields(),s=Object.keys(l);s.length>0&&a.push({nodeType:n.ITEM,variant:"graphql-fields",label:"Input Fields",labelTranslationKey:"inputFields",schemaId:o,graphqlTypeName:e.name,graphqlSchema:s.map(d=>{const t=l[d];return{name:d,type:t.type.toString(),description:c(t.description,r)??[],defaultValue:t.defaultValue}})});const m=[{children:[{kind:p.GRAPHQL_TYPE_SAMPLE,schemaId:o,graphqlOperationData:{operationType:"query",operationName:e.name,typeName:e.name},examples:[]}]},{title:"Referenced in",titleTranslationKey:"referenced",children:[{kind:p.REFERENCES,graphqlTypeName:e.name,references:[]}]}];return{contentType:y.ITEM,itemVariant:T.INPUT,meta:{name:e.name},seo:{title:e.name,description:e.description||void 0},children:[{nodeType:n.CONTAINER,children:a,panels:m}]}}export{E as buildInputContent};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ApiItem } from '../../../../types/store.js';
|
|
2
|
+
import type { GraphqlMenuGroupItemsBuildParams } from '../types.js';
|
|
3
|
+
export declare function buildInputItems({ filter, processedItems, menuCommonFilter, parentPath, }?: GraphqlMenuGroupItemsBuildParams): ApiItem[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isInputObjectType as c}from"graphql";import{itemVariant as u}from"../../../../types/common.js";import{graphqlContext as f}from"../../buildContext.js";import{createApiItem as I}from"../../utils/createApiItem.js";function y({filter:n,processedItems:r,menuCommonFilter:i,parentPath:p}={}){const{schema:m}=f.get(),s=m.getTypeMap(),a=Object.values(s).filter(t=>c(t)),e=[];for(const t of a){const o=I({name:t.name,variant:u.INPUT,processedItems:r,filter:n,menuCommonFilter:i,source:t,parentPath:p});o&&e.push(o)}return e}export{y as buildInputItems};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GraphQLInterfaceType } from 'graphql';
|
|
2
|
+
import type { ApiItemContent } from '../../../../types/content.js';
|
|
3
|
+
import type { ParseMarkdownOptions } from '../../../utils/parseMarkdown.js';
|
|
4
|
+
export declare function buildInterfaceContent(interfaceType: GraphQLInterfaceType, markdownOptions: ParseMarkdownOptions): ApiItemContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{contentType as T,itemVariant as f,nodeTypes as n,panelKind as u}from"../../../../types/common.js";import{parseMarkdown as l}from"../../../utils/parseMarkdown.js";import{graphqlContext as R}from"../../buildContext.js";function C(e,s){const p=`types/${e.name}`,t=[{nodeType:n.HEADER,level:2,label:e.name,showPageActions:!0}],m=l(e.description,s);m&&t.push({nodeType:n.MARKDOC,content:m}),t.push({nodeType:n.ITEM,variant:"requires-scopes",graphqlTypeName:e.name});const r=e.getFields(),d=Object.keys(r);d.length>0&&t.push({nodeType:n.ITEM,variant:"graphql-fields",label:"Fields",labelTranslationKey:"fields",schemaId:p,graphqlTypeName:e.name,graphqlSchema:d.map(a=>{const i=r[a];return{name:a,type:i.type.toString(),description:l(i.description,s)??[],deprecated:!!i.deprecationReason,deprecationReason:i.deprecationReason||void 0,args:i.args?.map(o=>({name:o.name,type:o.type.toString(),description:l(o.description,s)??[],deprecationReason:o.deprecationReason||void 0,defaultValue:o.defaultValue}))}})});const c=e.getInterfaces();c.length>0&&t.push({nodeType:n.ITEM,variant:"implements",label:"Implements interfaces",labelTranslationKey:"implementedInterfaces",graphqlInterfaceNames:c.map(a=>a.name)});const{schema:g}=R.get(),{objects:y,interfaces:E}=g.getImplementations(e),h=[...y,...E].map(a=>a.name);h.length>0&&t.push({nodeType:n.ITEM,variant:"implemented-by",label:"Implemented by",labelTranslationKey:"implementedBy",graphqlTypeNames:h});const I=[{children:[{kind:u.GRAPHQL_TYPE_SAMPLE,schemaId:p,graphqlOperationData:{operationType:"query",operationName:e.name,typeName:e.name},examples:[]}]},{title:"Referenced in",titleTranslationKey:"referenced",children:[{kind:u.REFERENCES,graphqlTypeName:e.name,references:[]}]}];return{contentType:T.ITEM,itemVariant:f.INTERFACE,meta:{name:e.name},seo:{title:e.name,description:e.description||void 0},children:[{nodeType:n.CONTAINER,children:t,panels:I}]}}export{C as buildInterfaceContent};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ApiItem } from '../../../../types/store.js';
|
|
2
|
+
import type { GraphqlMenuGroupItemsBuildParams } from '../types.js';
|
|
3
|
+
export declare function buildInterfaceItems({ filter, processedItems, menuCommonFilter, parentPath, }?: GraphqlMenuGroupItemsBuildParams): ApiItem[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isInterfaceType as p}from"graphql";import{itemVariant as f}from"../../../../types/common.js";import{graphqlContext as u}from"../../buildContext.js";import{createApiItem as l}from"../../utils/createApiItem.js";function y({filter:o,processedItems:n,menuCommonFilter:a,parentPath:i}={}){const{schema:m}=u.get(),c=m.getTypeMap(),s=Object.values(c).filter(t=>p(t)),e=[];for(const t of s){const r=l({name:t.name,variant:f.INTERFACE,processedItems:n,filter:o,menuCommonFilter:a,source:t,parentPath:i});r&&e.push(r)}return e}export{y as buildInterfaceItems};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GraphQLField } from 'graphql';
|
|
2
|
+
import type { ApiItemContent } from '../../../../types/content.js';
|
|
3
|
+
import type { ParseMarkdownOptions } from '../../../utils/parseMarkdown.js';
|
|
4
|
+
export declare function buildMutationContent(mutation: GraphQLField<unknown, unknown>, mutationName: string, markdownOptions: ParseMarkdownOptions): ApiItemContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{itemVariant as i}from"../../../../types/common.js";import{buildOperationContent as r}from"../operation/content.js";function u(t,n,o){return r(t,n,"mutation",i.MUTATION,o)}export{u as buildMutationContent};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ApiItem } from '../../../../types/store.js';
|
|
2
|
+
import type { GraphqlMenuGroupItemsBuildParams } from '../types.js';
|
|
3
|
+
export declare function buildMutationItems({ filter, processedItems, menuCommonFilter, parentPath, }?: GraphqlMenuGroupItemsBuildParams): ApiItem[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{itemVariant as p}from"../../../../types/common.js";import{graphqlContext as f}from"../../buildContext.js";import{createApiItem as d}from"../../utils/createApiItem.js";function l({filter:i,processedItems:r,menuCommonFilter:a,parentPath:m}={}){const{schema:s}=f.get(),t=s.getMutationType();if(!t)return[];const c=t.getFields(),e=[];for(const[u,o]of Object.entries(c)){const n=d({name:u,variant:p.MUTATION,processedItems:r,filter:i,menuCommonFilter:a,deprecated:!!o.deprecationReason,source:o,parentPath:m});n&&e.push(n)}return e}export{l as buildMutationItems};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GraphQLObjectType } from 'graphql';
|
|
2
|
+
import type { ApiItemContent } from '../../../../types/content.js';
|
|
3
|
+
import type { ParseMarkdownOptions } from '../../../utils/parseMarkdown.js';
|
|
4
|
+
export declare function buildObjectContent(object: GraphQLObjectType, markdownOptions: ParseMarkdownOptions): ApiItemContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{contentType as T,itemVariant as h,nodeTypes as n,panelKind as y}from"../../../../types/common.js";import{parseMarkdown as s}from"../../../utils/parseMarkdown.js";function g(e,p){const l=`types/${e.name}`,a=[{nodeType:n.HEADER,level:2,label:e.name,showPageActions:!0}],d=s(e.description,p);d&&a.push({nodeType:n.MARKDOC,content:d}),a.push({nodeType:n.ITEM,variant:"requires-scopes",graphqlTypeName:e.name});const o=e.getFields(),m=Object.keys(o);m.length>0&&a.push({nodeType:n.ITEM,variant:"graphql-fields",label:"Fields",labelTranslationKey:"fields",schemaId:l,graphqlTypeName:e.name,graphqlSchema:m.map(r=>{const t=o[r];return{name:r,type:t.type.toString(),description:s(t.description,p)??[],deprecated:!!t.deprecationReason,deprecationReason:t.deprecationReason||void 0,args:t.args?.map(i=>({name:i.name,type:i.type.toString(),description:s(i.description,p)??[],deprecationReason:i.deprecationReason||void 0,defaultValue:i.defaultValue}))}})});const c=e.getInterfaces();c.length>0&&a.push({nodeType:n.ITEM,variant:"implements",label:"Implements interfaces",labelTranslationKey:"implementedInterfaces",graphqlInterfaceNames:c.map(r=>r.name)});const f=[{children:[{kind:y.GRAPHQL_TYPE_SAMPLE,schemaId:l,graphqlOperationData:{operationType:"query",operationName:e.name,typeName:e.name},examples:[]}]},{title:"Referenced in",titleTranslationKey:"referenced",children:[{kind:y.REFERENCES,graphqlTypeName:e.name,references:[]}]}];return{contentType:T.ITEM,itemVariant:h.OBJECT,meta:{name:e.name},seo:{title:e.name,description:e.description||void 0},children:[{nodeType:n.CONTAINER,children:a,panels:f}]}}export{g as buildObjectContent};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ApiItem } from '../../../../types/store.js';
|
|
2
|
+
import type { GraphqlMenuGroupItemsBuildParams } from '../types.js';
|
|
3
|
+
export declare function buildObjectItems({ filter, processedItems, menuCommonFilter, parentPath, }?: GraphqlMenuGroupItemsBuildParams): ApiItem[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isObjectType as a}from"graphql";import{itemVariant as f}from"../../../../types/common.js";import{graphqlContext as b}from"../../buildContext.js";import{createApiItem as u}from"../../utils/createApiItem.js";import{ignoreInternalItems as j}from"../../utils/ignoreInternalItems.js";import{isRootType as l}from"../../utils/isRootType.js";function v({filter:m,processedItems:i,menuCommonFilter:n,parentPath:s}={}){const{schema:e}=b.get(),c=e.getTypeMap(),p=j(Object.values(c).filter(t=>a(t)&&!l(t,e))),o=[];for(const t of p){const r=u({name:t.name,variant:f.OBJECT,processedItems:i,filter:m,menuCommonFilter:n,source:t,parentPath:s});r&&o.push(r)}return o}export{v as buildObjectItems};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GraphQLField } from 'graphql';
|
|
2
|
+
import type { ApiItemContent } from '../../../../types/content.js';
|
|
3
|
+
import type { ItemVariant } from '../../../../types/common.js';
|
|
4
|
+
import type { ParseMarkdownOptions } from '../../../utils/parseMarkdown.js';
|
|
5
|
+
type OperationType = 'query' | 'mutation' | 'subscription';
|
|
6
|
+
export declare function buildOperationContent(operation: GraphQLField<unknown, unknown>, rootTypeName: string, operationType: OperationType, variant: ItemVariant, markdownOptions: ParseMarkdownOptions): ApiItemContent;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getNamedType as u,isInterfaceType as T,isObjectType as q}from"graphql";import{contentType as o,nodeTypes as t,panelKind as h}from"../../../../types/common.js";import{parseMarkdown as s}from"../../../utils/parseMarkdown.js";function I(e,d,p,y,l){const a=u(e.type),i=`types/${a.name}`,r=[{nodeType:t.HEADER,level:2,label:e.name,showPageActions:!0,graphqlReturnType:e.type.toString(),graphqlArgs:e.args?.map(n=>({name:n.name})),graphqlDeprecated:!!e.deprecationReason,graphqlOperationType:p}];e.deprecationReason&&r.push({nodeType:t.ADMONITION,admonitionType:"warning",name:"Deprecation reason",nameTranslationKey:"deprecationReason",content:s(e.deprecationReason,l)});const m=s(e.description,l);m&&r.push({nodeType:t.MARKDOC,content:m}),r.push({nodeType:t.ITEM,variant:"requires-scopes",graphqlTypeName:d,graphqlFieldName:e.name,graphqlOperationType:p}),e.args&&e.args.length>0&&r.push({nodeType:t.ITEM,variant:"graphql-args",label:"Arguments",labelTranslationKey:"arguments.label",graphqlTypeName:d,graphqlFieldName:e.name,graphqlOperationType:p,graphqlSchema:e.args.map(n=>({name:n.name,type:n.type.toString(),description:s(n.description,l)??[],deprecationReason:n.deprecationReason||void 0,defaultValue:n.defaultValue}))});const c=q(a)||T(a)?Object.values(a.getFields()).map(n=>({name:n.name,type:n.type.toString(),description:s(n.description??void 0,l)??[]})):void 0;r.push({nodeType:t.ITEM,variant:"return-type",label:"Return type",labelTranslationKey:"returnTypes.label",schemaId:i,graphqlTypeName:a.name,graphqlOperationType:p,graphqlFieldName:e.name,graphqlSchema:{type:e.type.toString(),description:s(a.description,l)??[],...c&&c.length>0?{fields:c}:{}}});const g=[{children:[{kind:h.GRAPHQL_QUERY,graphqlOperationData:{operationType:p,operationName:e.name,typeName:a.name},schemaId:i,examples:[]}]},{children:[{kind:h.GRAPHQL_RESPONSE,graphqlOperationData:{operationType:p,operationName:e.name,typeName:a.name},schemaId:i,examples:[]}]}];return{contentType:o.ITEM,itemVariant:y,meta:{name:d,returnType:e.type.toString(),deprecated:!!e.deprecationReason},seo:{title:d,description:e.description||void 0},children:[{nodeType:t.CONTAINER,children:r,panels:g}]}}export{I as buildOperationContent};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Node } from '@markdoc/markdoc';
|
|
2
|
+
import type { ApiItemContent, ContentNode } from '../../../../types/content.js';
|
|
3
|
+
import type { ApiDocsOptions } from '../../../../types/options.js';
|
|
4
|
+
type OverviewOptions = {
|
|
5
|
+
options: ApiDocsOptions;
|
|
6
|
+
markdoc?: string | Node[];
|
|
7
|
+
sectionChildren: ContentNode[];
|
|
8
|
+
basePath: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function buildOverviewContent(overviewOptions: OverviewOptions): ApiItemContent;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{contentType as w,nodeTypes as n}from"../../../../types/common.js";import{buildDownloadPanelContent as E}from"../../panels/download.js";import{buildOverviewPanelContent as f}from"../../panels/overview.js";import{buildGraphqlConfigMetadataRows as u}from"../../utils/configMetadataRows.js";function P(a){const{options:{info:e,downloadUrls:p,metadata:v},markdoc:i,sectionChildren:h,basePath:r}=a,o=[],l=E(p??[]);l&&o.push(l);const d=f(e);d&&o.push(d);const s=e?.title??"Overview",t={nodeType:n.OVERVIEW_SECTION_WRAPPER,children:[{nodeType:n.HEADER,level:1,showPageActions:!0,label:e?.version?`${s} (${e.version})`:s,labelTranslationKey:e?.title||e?.version?void 0:"overview"}],sectionId:r};i?.length&&t.children.push({nodeType:n.OVERVIEW_SECTION_WRAPPER,children:[{nodeType:n.MARKDOC,content:i}],sectionId:r});const c=u(v);c.length>0&&t.children.push({nodeType:n.INFO_METADATA,rows:c});const T={nodeType:n.CONTAINER,panels:o,children:[t,...h]};return{contentType:w.OVERVIEW,seo:{title:e?.title,description:e?.description},children:[T]}}export{P as buildOverviewContent};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ApiItem } from '../../../../types/store.js';
|
|
2
|
+
import type { ContentNode } from '../../../../types/content.js';
|
|
3
|
+
import type { GraphqlBuildContext as BuildContext } from '../../../../types/graphql.js';
|
|
4
|
+
export declare function buildOverviewItem(context: BuildContext, sectionChildren: ContentNode[]): ApiItem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{extractContentUntilFirstHeading as a}from"../../../utils/markdoc.js";import{buildOverviewContent as o}from"./content.js";function p(e,n){const{info:i}=e.options;if(!e.processContent)return{type:"link",label:i?.title||"Overview",labelTranslationKey:i?.title?void 0:"graphql.info.title",link:e.basePath,routeSlug:e.basePath,content:null};const l=i?.description||"",t=a(l,e.options);return{type:"link",label:i?.title||"Overview",labelTranslationKey:i?.title?void 0:"graphql.info.title",link:e.basePath,routeSlug:e.basePath,content:o({options:e.options,markdoc:t?.length?t:void 0,sectionChildren:n,basePath:e.basePath})}}export{p as buildOverviewItem};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GraphQLField } from 'graphql';
|
|
2
|
+
import type { ApiItemContent } from '../../../../types/content.js';
|
|
3
|
+
import type { ParseMarkdownOptions } from '../../../utils/parseMarkdown.js';
|
|
4
|
+
export declare function buildQueryContent(query: GraphQLField<unknown, unknown>, queryName: string, markdownOptions: ParseMarkdownOptions): ApiItemContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{itemVariant as o}from"../../../../types/common.js";import{buildOperationContent as e}from"../operation/content.js";function m(t,r,n){return e(t,r,"query",o.QUERY,n)}export{m as buildQueryContent};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ApiItem } from '../../../../types/store.js';
|
|
2
|
+
import type { GraphqlMenuGroupItemsBuildParams } from '../types.js';
|
|
3
|
+
export declare function buildQueryItems({ filter, processedItems, menuCommonFilter, parentPath, }?: GraphqlMenuGroupItemsBuildParams): ApiItem[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{itemVariant as p}from"../../../../types/common.js";import{graphqlContext as f}from"../../buildContext.js";import{createApiItem as y}from"../../utils/createApiItem.js";function h({filter:i,processedItems:n,menuCommonFilter:s,parentPath:m}={}){const{schema:c}=f.get(),e=c.getQueryType();if(!e)return[];const a=e.getFields(),t=[];for(const[u,r]of Object.entries(a)){const o=y({name:u,variant:p.QUERY,processedItems:n,filter:i,menuCommonFilter:s,deprecated:!!r.deprecationReason,source:r,parentPath:m});o&&t.push(o)}return t}export{h as buildQueryItems};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GraphQLScalarType } from 'graphql';
|
|
2
|
+
import type { ApiItemContent } from '../../../../types/content.js';
|
|
3
|
+
import type { ParseMarkdownOptions } from '../../../utils/parseMarkdown.js';
|
|
4
|
+
export declare function buildScalarContent(scalar: GraphQLScalarType, markdownOptions: ParseMarkdownOptions): ApiItemContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{contentType as p,itemVariant as d,nodeTypes as n,panelKind as a}from"../../../../types/common.js";import{parseMarkdown as c}from"../../../utils/parseMarkdown.js";function T(e,o){const t=[{nodeType:n.HEADER,level:2,label:e.name,showPageActions:!0}],i=c(e.description,o);i&&t.push({nodeType:n.MARKDOC,content:i}),t.push({nodeType:n.ITEM,variant:"requires-scopes",graphqlTypeName:e.name});const r=[{title:"Referenced in",titleTranslationKey:"referenced",children:[{kind:a.REFERENCES,graphqlTypeName:e.name,references:[]}]}];return{contentType:p.ITEM,itemVariant:d.SCALAR,meta:{name:e.name},seo:{title:e.name,description:e.description||void 0},children:[{nodeType:n.CONTAINER,children:t,panels:r}]}}export{T as buildScalarContent};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ApiItem } from '../../../../types/store.js';
|
|
2
|
+
import type { GraphqlMenuGroupItemsBuildParams } from '../types.js';
|
|
3
|
+
export declare function buildScalarItems({ filter, processedItems, menuCommonFilter, parentPath, }?: GraphqlMenuGroupItemsBuildParams): ApiItem[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isScalarType as f}from"graphql";import{itemVariant as u}from"../../../../types/common.js";import{graphqlContext as S}from"../../buildContext.js";import{BUILT_IN_SCALARS as h}from"../../utils/constants.js";import{createApiItem as I}from"../../utils/createApiItem.js";function L({filter:a,processedItems:e,menuCommonFilter:s,parentPath:i}={}){const{schema:n,options:c}=S.get(),m=c.showBuiltInScalars===!0,p=n.getTypeMap(),l=Object.values(p).filter(t=>f(t)),o=[];for(const t of l){if(!m&&h.has(t.name))continue;const r=I({name:t.name,variant:u.SCALAR,processedItems:e,filter:a,menuCommonFilter:s,source:t,parentPath:i});r&&o.push(r)}return o}export{L as buildScalarItems};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GraphQLField } from 'graphql';
|
|
2
|
+
import type { ApiItemContent } from '../../../../types/content.js';
|
|
3
|
+
import type { ParseMarkdownOptions } from '../../../utils/parseMarkdown.js';
|
|
4
|
+
export declare function buildSubscriptionContent(subscription: GraphQLField<unknown, unknown>, subscriptionName: string, markdownOptions: ParseMarkdownOptions): ApiItemContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{itemVariant as o}from"../../../../types/common.js";import{buildOperationContent as r}from"../operation/content.js";function u(t,i,n){return r(t,i,"subscription",o.SUBSCRIPTION,n)}export{u as buildSubscriptionContent};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ApiItem } from '../../../../types/store.js';
|
|
2
|
+
import type { GraphqlMenuGroupItemsBuildParams } from '../types.js';
|
|
3
|
+
export declare function buildSubscriptionItems({ filter, processedItems, menuCommonFilter, parentPath, }?: GraphqlMenuGroupItemsBuildParams): ApiItem[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{itemVariant as u}from"../../../../types/common.js";import{graphqlContext as b}from"../../buildContext.js";import{createApiItem as f}from"../../utils/createApiItem.js";function S({filter:r,processedItems:s,menuCommonFilter:n,parentPath:c}={}){const{schema:p}=b.get(),t=p.getSubscriptionType();if(!t)return[];const m=t.getFields(),e=[];for(const[a,i]of Object.entries(m)){const o=f({name:a,variant:u.SUBSCRIPTION,processedItems:s,filter:r,menuCommonFilter:n,deprecated:!!i.deprecationReason,source:i,parentPath:c});o&&e.push(o)}return e}export{S as buildSubscriptionItems};
|
|
File without changes
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GraphQLUnionType } from 'graphql';
|
|
2
|
+
import type { ApiItemContent } from '../../../../types/content.js';
|
|
3
|
+
import type { ParseMarkdownOptions } from '../../../utils/parseMarkdown.js';
|
|
4
|
+
export declare function buildUnionContent(union: GraphQLUnionType, markdownOptions: ParseMarkdownOptions): ApiItemContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{contentType as i,itemVariant as o,nodeTypes as n,panelKind as l}from"../../../../types/common.js";import{parseMarkdown as d}from"../../../utils/parseMarkdown.js";function m(e,s){const p=e.getTypes(),t=[{nodeType:n.HEADER,level:2,label:e.name,showPageActions:!0}],a=d(e.description,s);return a&&t.push({nodeType:n.MARKDOC,content:a}),t.push({nodeType:n.ITEM,variant:"requires-scopes",graphqlTypeName:e.name}),p.length>0&&t.push({nodeType:n.ITEM,variant:"possible-types",label:"Possible types",labelTranslationKey:"possibleTypes",graphqlTypeNames:p.map(r=>r.name)}),{contentType:i.ITEM,itemVariant:o.UNION,meta:{name:e.name},seo:{title:e.name,description:e.description||void 0},children:[{nodeType:n.CONTAINER,children:t,panels:[{title:"Referenced in",titleTranslationKey:"referenced",children:[{kind:l.REFERENCES,graphqlTypeName:e.name,references:[]}]}]}]}}export{m as buildUnionContent};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ApiItem } from '../../../../types/store.js';
|
|
2
|
+
import type { GraphqlMenuGroupItemsBuildParams } from '../types.js';
|
|
3
|
+
export declare function buildUnionItems({ filter, processedItems, menuCommonFilter, parentPath, }?: GraphqlMenuGroupItemsBuildParams): ApiItem[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isUnionType as c}from"graphql";import{itemVariant as f}from"../../../../types/common.js";import{graphqlContext as u}from"../../buildContext.js";import{createApiItem as l}from"../../utils/createApiItem.js";function U({filter:n,processedItems:i,menuCommonFilter:r,parentPath:m}={}){const{schema:s}=u.get(),p=s.getTypeMap(),a=Object.values(p).filter(t=>c(t)),o=[];for(const t of a){const e=l({name:t.name,variant:f.UNION,processedItems:i,filter:n,menuCommonFilter:r,source:t,parentPath:m});e&&o.push(e)}return o}export{U as buildUnionItems};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{panelKind as n}from"../../../types/common.js";function l(e){return e?.length?{title:"Download GraphQL schema",titleTranslationKey:"download.description.title",children:e.map(t=>({kind:n.DOWNLOAD,label:t.title||t.url,url:t.url}))}:null}export{l as buildDownloadPanelContent};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ResolvedNavLinkItem } from '@redocly/config';
|
|
2
|
+
import type { GroupItemNode } from '../../../types/content.js';
|
|
3
|
+
import type { GraphqlBuildContext, GraphqlItemVariant } from '../../../types/graphql.js';
|
|
4
|
+
export declare function buildGroupItemsPanelContent(items: ResolvedNavLinkItem[], context: GraphqlBuildContext, typeGroup?: GraphqlItemVariant): GroupItemNode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{panelKind as o}from"../../../types/common.js";import{normalizePath as s,toRelativePath as d}from"../../../utils/url.js";import{getSummary as m}from"../utils/summary.js";import{getBadges as p}from"../utils/getBadges.js";function h(a,n,l){const{schema:t,options:r,basePath:i}=n;return{children:[{kind:o.GROUP_ITEMS,title:"Overview",titleTranslationKey:"info.title",items:a.map(e=>({title:e.label??e.link,summary:m(t,e.label??e.link,r,l),link:s(d(e.link,i)),deprecated:e.deprecated??!1,badges:p(t,e.label??e.link,l)}))}]}}export{h as buildGroupItemsPanelContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{panelKind as l}from"../../../types/common.js";function n(e){if(!e)return null;const t=[];return e.contact?.url&&t.push({kind:l.EXTERNAL_LINK,title:"URL",titleTranslationKey:"info.contact.url",label:e.contact.url,url:e.contact.url}),e.contact?.email&&t.push({kind:l.EMAIL,title:e.contact.name||"E-mail",titleTranslationKey:e.contact.name?void 0:"info.contact.name",email:e.contact.email,label:e.contact.email,withCopyButton:!0,copyContent:e.contact.email}),e.license?.url&&(e.license.identifier||e.license.name)&&t.push({kind:l.EXTERNAL_LINK,title:"License",titleTranslationKey:"info.license",label:e.license.identifier||e.license.name||"",url:e.license.url}),!e.license?.url&&(e.license?.identifier||e.license?.name)&&t.push({kind:l.ATTRIBUTE,title:"License",titleTranslationKey:"info.license",label:e.license?.identifier||e.license?.name||"License",value:e.license?.identifier||e.license?.name||"License"}),e.termsOfService&&t.push({kind:l.EXTERNAL_LINK,label:"Terms of Service",labelTranslationKey:"info.termsOfService",url:e.termsOfService}),{title:"Overview",titleTranslationKey:"info.title",children:t}}export{n as buildOverviewPanelContent};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { GraphQLDirective, GraphQLNamedType, GraphQLType } from 'graphql';
|
|
2
|
+
import type { GraphqlDirectiveData, GraphqlTypeData, GraphqlTypeRef } from '../../types/graphql-store.js';
|
|
3
|
+
export declare function toTypeRef(type: GraphQLType): GraphqlTypeRef;
|
|
4
|
+
export declare function serializeNamedType(type: GraphQLNamedType): GraphqlTypeData;
|
|
5
|
+
export declare function serializeDirective(directive: GraphQLDirective): GraphqlDirectiveData;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getNamedType as p,isEnumType as f,isInputObjectType as m,isInterfaceType as l,isListType as R,isNonNullType as u,isObjectType as o,isRequiredArgument as T,isRequiredInputField as g,isScalarType as q,isUnionType as b}from"graphql";import{getRequiresScopesDirective as N}from"../../utils/graphql-directive-utils.js";function t(e){const n=p(e),i=u(e),r=i?e.ofType:e,a=R(r),c=a?u(r.ofType):i;return{display:String(e),name:n.name,isList:a,isNonNull:c,isListNonNull:a&&i}}function s(e){const n=N(e);return n?{scopes:n.scopes}:void 0}function d(e){return{name:e.name,type:t(e.type),description:e.description??void 0,deprecationReason:e.deprecationReason??void 0,defaultValue:e.defaultValue,required:T(e)||void 0,requiresScopes:s(e)}}function S(e){return{name:e.name,type:t(e.type),description:e.description??void 0,deprecationReason:e.deprecationReason??void 0,args:e.args.length>0?e.args.map(d):void 0,requiresScopes:s(e)}}function y(e){return{name:e.name,type:t(e.type),description:e.description??void 0,deprecationReason:e.deprecationReason??void 0,defaultValue:e.defaultValue,required:g(e)||void 0,requiresScopes:s(e)}}function z(e){return{name:e.name,description:e.description??void 0,deprecationReason:e.deprecationReason??void 0,requiresScopes:s(e)}}function F(e){const n={name:e.name,description:e.description??void 0,requiresScopes:s(e)};if(o(e)||l(e)){const i=e.getInterfaces().map(r=>r.name);return{...n,variant:o(e)?"object":"interface",fields:Object.values(e.getFields()).map(S),interfaces:i.length>0?i:void 0}}return m(e)?{...n,variant:"input",fields:Object.values(e.getFields()).map(y)}:b(e)?{...n,variant:"union",possibleTypes:e.getTypes().map(i=>i.name)}:f(e)?{...n,variant:"enum",enumValues:e.getValues().map(z)}:q(e)?{...n,variant:"scalar",specifiedByUrl:e.specifiedByURL??void 0}:{...n,variant:"scalar"}}function I(e){return{name:e.name,description:e.description??void 0,locations:[...e.locations],args:e.args.length>0?e.args.map(d):void 0,isRepeatable:e.isRepeatable||void 0}}export{I as serializeDirective,F as serializeNamedType,t as toTypeRef};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{schemaKind as o}from"../../types/common.js";import{registerSchema as a}from"../helpers.js";import{graphqlDirectiveEntryId as n,graphqlTypeEntryId as p}from"../../types/graphql-store.js";import{serializeDirective as m,serializeNamedType as s}from"./serializeType.js";function l(t){const r={},i={};for(const e of Object.values(t.getTypeMap()))e.name.startsWith("__")||a(r,i,{id:p(e.name),kind:o.GRAPHQL_TYPE,title:e.name,data:s(e)});for(const e of t.getDirectives())a(r,i,{id:n(e.name),kind:o.GRAPHQL_TYPE,title:e.name,data:m(e)});return{schemaStore:r,exampleStore:{},securitySchemeStore:{},graphqlMeta:{rootTypes:{query:t.getQueryType()?.name,mutation:t.getMutationType()?.name,subscription:t.getSubscriptionType()?.name}}}}export{l as populateGraphqlStore};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{nodeTypes as n}from"../../../types/common.js";function o(e,d){const p={nodeType:n.CONTAINER,children:[{nodeType:n.FEEDBACK,pageSlug:d}],panels:[]};return{...e,children:[...e.children,p]}}export{o as appendGraphqlItemFeedback};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=["title","description"];function o([r,t]){if(e.includes(r))return null;if(Array.isArray(t)){const n=t.filter(i=>typeof i!="object").join(", ");return{key:r,value:n}}return typeof t=="object"&&t!==null?null:{key:r,value:String(t)}}function f(r){return!r||typeof r!="object"?[]:Object.entries(r).map(t=>o(t)).filter(t=>t!=null)}export{f as buildGraphqlConfigMetadataRows};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { GraphqlItemVariant } from '../../../types/graphql.js';
|
|
2
|
+
/**
|
|
3
|
+
* Built-in GraphQL scalar types.
|
|
4
|
+
* These are the standard scalars defined in the GraphQL specification.
|
|
5
|
+
*/
|
|
6
|
+
export declare const BUILT_IN_SCALARS: ReadonlySet<string>;
|
|
7
|
+
/**
|
|
8
|
+
* Built-in GraphQL directives.
|
|
9
|
+
* These are the standard directives defined in the GraphQL specification.
|
|
10
|
+
*/
|
|
11
|
+
export declare const BUILT_IN_DIRECTIVES: ReadonlySet<string>;
|
|
12
|
+
export declare const GRAPHQL_VARIANTS: readonly ["query", "mutation", "subscription", "directive", "object", "interface", "union", "enum", "input", "scalar"];
|
|
13
|
+
export declare const menuGroupFilterKey: {
|
|
14
|
+
readonly ITEMS: 'items';
|
|
15
|
+
readonly QUERIES: 'queries';
|
|
16
|
+
readonly MUTATIONS: 'mutations';
|
|
17
|
+
readonly SUBSCRIPTIONS: 'subscriptions';
|
|
18
|
+
readonly TYPES: 'types';
|
|
19
|
+
readonly DIRECTIVES: 'directives';
|
|
20
|
+
};
|
|
21
|
+
export type MenuGroupFilterKey = (typeof menuGroupFilterKey)[keyof typeof menuGroupFilterKey];
|
|
22
|
+
export declare const MENU_GROUP_FILTER_KEYS: MenuGroupFilterKey[];
|
|
23
|
+
export declare const DEFAULT_GROUP_LABELS: Record<GraphqlItemVariant, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{itemVariant as I}from"../../../types/common.js";const E=new Set(["String","Int","Float","Boolean","ID"]),S=new Set(["skip","include","deprecated","specifiedBy","oneOf"]),T=[I.QUERY,I.MUTATION,I.SUBSCRIPTION,I.DIRECTIVE,I.OBJECT,I.INTERFACE,I.UNION,I.ENUM,I.INPUT,I.SCALAR],e={ITEMS:"items",QUERIES:"queries",MUTATIONS:"mutations",SUBSCRIPTIONS:"subscriptions",TYPES:"types",DIRECTIVES:"directives"},s=[e.ITEMS,e.QUERIES,e.MUTATIONS,e.SUBSCRIPTIONS,e.TYPES,e.DIRECTIVES],U={[I.QUERY]:"Queries",[I.MUTATION]:"Mutations",[I.SUBSCRIPTION]:"Subscriptions",[I.DIRECTIVE]:"Directives",[I.OBJECT]:"Objects",[I.INTERFACE]:"Interfaces",[I.INPUT]:"Inputs",[I.UNION]:"Unions",[I.ENUM]:"Enums",[I.SCALAR]:"Scalars"};export{S as BUILT_IN_DIRECTIVES,E as BUILT_IN_SCALARS,U as DEFAULT_GROUP_LABELS,T as GRAPHQL_VARIANTS,s as MENU_GROUP_FILTER_KEYS,e as menuGroupFilterKey};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { GraphqlItemVariant, TypeGroupFilter } from '../../../types/graphql.js';
|
|
2
|
+
import type { ApiItem } from '../../../types/store.js';
|
|
3
|
+
type CreateApiItemParams<T> = {
|
|
4
|
+
name: string;
|
|
5
|
+
variant: GraphqlItemVariant;
|
|
6
|
+
processedItems?: Set<string>;
|
|
7
|
+
filter?: TypeGroupFilter;
|
|
8
|
+
menuCommonFilter?: TypeGroupFilter;
|
|
9
|
+
label?: string;
|
|
10
|
+
deprecated?: boolean;
|
|
11
|
+
source: T;
|
|
12
|
+
parentPath?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function createApiItem<T>(params: CreateApiItemParams<T>): ApiItem | null;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{itemVariant as n}from"../../../types/common.js";import{safeSlugify as d}from"../../../utils/string.js";import{joinWithSeparator as f,normalizePath as m,toRelativePath as C}from"../../../utils/url.js";import{shouldIncludeItem as a}from"../utils/shouldIncludeItem.js";import{appendGraphqlItemFeedback as s}from"./appendGraphqlItemFeedback.js";import{buildDirectiveContent as I}from"../items/directive/content.js";import{buildQueryContent as T}from"../items/query/content.js";import{buildMutationContent as b}from"../items/mutation/content.js";import{buildSubscriptionContent as N}from"../items/subscription/content.js";import{buildUnionContent as E}from"../items/union/content.js";import{buildEnumContent as p}from"../items/enum/content.js";import{buildScalarContent as h}from"../items/scalar/content.js";import{buildInputContent as P}from"../items/input/content.js";import{buildObjectContent as S}from"../items/object/content.js";import{buildInterfaceContent as U}from"../items/interface/content.js";import{graphqlContext as A}from"../buildContext.js";const R={[n.QUERY]:"queries",[n.MUTATION]:"mutations",[n.SUBSCRIPTION]:"subscriptions",[n.DIRECTIVE]:"directives",[n.OBJECT]:"objects",[n.INTERFACE]:"interfaces",[n.UNION]:"unions",[n.ENUM]:"enums",[n.INPUT]:"inputs",[n.SCALAR]:"scalars"};function $(e){const t=A.get(),i=`${e.variant}:${e.name}`;if(e.processedItems?.has(i)||(e.filter||e.menuCommonFilter)&&!a(e.name,e.filter,e.menuCommonFilter))return null;const o=e.parentPath?e.parentPath:f(t.basePath,R[e.variant]),u=f(o,d(e.name.toLowerCase())),l=e.label??e.name;if(e.processedItems?.add(i),!t.processContent)return{type:"link",label:l,link:u,routeSlug:u,...e.deprecated&&{deprecated:!0},content:null};let r=g({variant:e.variant,source:e.source,name:e.name,markdownOptions:t.options});t.options.feedback?.hide!==!0&&r&&(r=s(r,m(C(u,t.basePath))));const c=v(e.source);return c&&r?.meta&&(r.meta.position=c),{type:"link",label:l,link:u,routeSlug:u,...e.deprecated&&{deprecated:!0},content:r}}function g({variant:e,source:t,name:i,markdownOptions:o}){switch(e){case n.DIRECTIVE:return I(t,o);case n.QUERY:return T(t,i,o);case n.MUTATION:return b(t,i,o);case n.SUBSCRIPTION:return N(t,i,o);case n.UNION:return E(t,o);case n.ENUM:return p(t,o);case n.SCALAR:return h(t,o);case n.INPUT:return P(t,o);case n.OBJECT:return S(t,o);case n.INTERFACE:return U(t,o);default:return}}function v(e){const t=e?.astNode?.loc;if(t?.startToken)return{start:{lineNumber:t.startToken.line,column:t.startToken.column},end:t.endToken?{lineNumber:t.endToken.line,column:t.endToken.column}:void 0}}export{$ as createApiItem};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GraphQLSchema } from 'graphql';
|
|
2
|
+
import type { Badge } from '../../../types/common.js';
|
|
3
|
+
import type { GraphqlItemVariant } from '../../../types/graphql.js';
|
|
4
|
+
export declare function getBadges(schema: GraphQLSchema, item: string, typeGroup?: GraphqlItemVariant): Badge[] | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{itemVariant as g}from"../../../types/common.js";function s(t,r,n){if(n){if(n===g.MUTATION){const e=t.getMutationType()?.getFields()[r]?.args??[];return e&&e.length>0?[{name:e.length===1?e[0].name:"(...args)"}]:void 0}if(n===g.QUERY){const e=t.getQueryType()?.getFields()[r]?.args??[];return e&&e.length>0?[{name:e.length===1?e[0].name:"(...args)"}]:void 0}}}export{s as getBadges};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function n(t){return t.filter(e=>!e.name.startsWith("__"))}export{n as ignoreInternalItems};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function r(o,t){return[t.getQueryType(),t.getMutationType(),t.getSubscriptionType()].some(e=>e===o)}export{r as isRootType};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MENU_SLASH_DELIMITED_REGEX: RegExp;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const E=/^\/(.+)\/([gimuy]*)$/;export{E as MENU_SLASH_DELIMITED_REGEX};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{MENU_GROUP_FILTER_KEYS as c}from"./constants.js";import{MENU_SLASH_DELIMITED_REGEX as s}from"./menuSlashRegex.js";import{validateGraphqlMenuConfig as a}from"./validateMenuConfig.js";function y(e,r){if(!e)return;r&&a(r,e);const o={requireExactGroups:e.requireExactGroups,otherItemsGroupName:e.otherItemsGroupName};return Array.isArray(e.groups)&&(o.groups=e.groups.map(n=>{const u={name:n.name};for(const f of c){const i=n[f];i&&typeof i=="object"&&(u[f]={includeByName:t(i.includeByName),excludeByName:t(i.excludeByName)})}return u})),o}function t(e){if(!(!e||!Array.isArray(e)))return e.map(r=>{if(typeof r=="string")return m(r);if(r instanceof RegExp)return r;if(typeof r=="object"&&r!==null&&"source"in r){const o=r;return new RegExp(o.source,o.flags||"")}return String(r)})}function m(e){const r=e.match(s);return r?new RegExp(r[1],r[2]):e}export{y as normalizeMenuConfig};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function f(n,e,u){if(s(n,e?.excludeByName)||s(n,u?.excludeByName))return!1;const c=e?.includeByName,r=u?.includeByName;return!c?.length&&!r?.length?!1:s(n,c)||s(n,r)}function s(n,e){return e?.length?e.some(u=>l(n,u)):!1}function l(n,e){if(typeof e=="string")return n===e;if(e instanceof RegExp)return e.test(n);if(typeof e=="object"&&e!==null&&"source"in e){const u=e;return new RegExp(u.source,u.flags||"").test(n)}return!1}export{f as shouldIncludeItem};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GraphQLSchema } from 'graphql';
|
|
2
|
+
import type { GraphqlItemVariant } from '../../../types/graphql.js';
|
|
3
|
+
import type { ParseMarkdownOptions } from '../../utils/parseMarkdown.js';
|
|
4
|
+
export declare function getSummary(schema: GraphQLSchema, item: string, markdownOptions: ParseMarkdownOptions, typeGroup?: GraphqlItemVariant): string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{itemVariant as e}from"../../../types/common.js";import{extractSummaryText as c}from"../../utils/markdoc.js";function p(r,t,n,i){if(!i)return;const s=a(r,t,i);return c(s,n)}function a(r,t,n){switch(n){case e.DIRECTIVE:{const i=t.startsWith("@")?t.slice(1):t;return r.getDirectives().find(s=>s.name===i)?.description}case e.QUERY:return r.getQueryType()?.getFields()[t]?.description;case e.MUTATION:return r.getMutationType()?.getFields()[t]?.description;case e.SUBSCRIPTION:return r.getSubscriptionType()?.getFields()[t]?.description;case e.OBJECT:case e.INTERFACE:case e.UNION:case e.ENUM:case e.INPUT:case e.SCALAR:return r.getType(t)?.description;default:return}}export{p as getSummary};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{MENU_SLASH_DELIMITED_REGEX as s}from"./menuSlashRegex.js";function y(t,r){r?.groups?.forEach(i=>{if(i.name.includes("/"))throw new Error(`Group name ${i.name} is invalid. "/" is not allowed in group names.`);o(i.items,"Item",e=>!!(t.getQueryType()?.getFields()[e]??t.getMutationType()?.getFields()[e]??t.getSubscriptionType()?.getFields()[e]??t.getDirective(e)??t.getType(e))),o(i.queries,"Query",e=>!!t.getQueryType()?.getFields()[e]),o(i.mutations,"Mutation",e=>!!t.getMutationType()?.getFields()[e]),o(i.subscriptions,"Subscription",e=>!!t.getSubscriptionType()?.getFields()[e]),o(i.directives,"Directive",e=>!!t.getDirective(e)),o(i.types,"Type",e=>!!t.getType(e))})}function o(t,r,i){if(!t)return;const e=[...t.includeByName??[],...t.excludeByName??[]];for(const n of e)if(typeof n=="string"&&!s.test(n)&&!i(n))throw new Error(`${r} ${n} does not exist in schema.`)}export{y as validateGraphqlMenuConfig};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { REDOCLY_TEAMS_RBAC } from '@redocly/config';
|
|
2
|
+
import type { SchemaEntry, ExampleEntry, SecuritySchemeEntry, StoreContext } from '../types/store.js';
|
|
3
|
+
import type { OpenAPIRef, Referenced } from '../types/common.js';
|
|
4
|
+
import type { OpenAPIMediaType, OpenAPIExample } from '../types/openapi.js';
|
|
5
|
+
export declare function resetStoreCounters(): void;
|
|
6
|
+
export declare function stableStringify(data: unknown, seen?: Set<unknown>): string;
|
|
7
|
+
export declare function registerSchema(schemaStore: Record<string, SchemaEntry>, hashIndex: Record<string, string>, entry: Omit<SchemaEntry, 'id'> & {
|
|
8
|
+
id?: string;
|
|
9
|
+
}): string;
|
|
10
|
+
export declare function readRbacScope(source: unknown): Record<string, string> | undefined;
|
|
11
|
+
export declare function rbacProp(scope: Record<string, string> | undefined): {
|
|
12
|
+
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
13
|
+
};
|
|
14
|
+
export declare function splitRbacSection<T>(map: Record<string, T> | undefined): {
|
|
15
|
+
sectionRbac: Record<string, string> | undefined;
|
|
16
|
+
entries: [string, T][];
|
|
17
|
+
};
|
|
18
|
+
export declare function registerExample(exampleStore: Record<string, ExampleEntry>, entry: Omit<ExampleEntry, 'id'> & {
|
|
19
|
+
id?: string;
|
|
20
|
+
}): string;
|
|
21
|
+
export declare function registerSecurityScheme(securitySchemeStore: Record<string, SecuritySchemeEntry>, entry: SecuritySchemeEntry): string;
|
|
22
|
+
export declare function createStoreContext(document: Record<string, unknown>): StoreContext;
|
|
23
|
+
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
24
|
+
/**
|
|
25
|
+
* Safely coerce a value to Record<string, unknown>.
|
|
26
|
+
* Returns an empty object if the value is not a valid record.
|
|
27
|
+
*/
|
|
28
|
+
export declare function toRecord(value: unknown): Record<string, unknown>;
|
|
29
|
+
export declare function resolveRef<T>(spec: Record<string, unknown>, value: Referenced<T>, ignoreNamedSchemas?: Set<string>): T | undefined;
|
|
30
|
+
export type MediaTypesMap = {
|
|
31
|
+
[mime: string]: OpenAPIMediaType;
|
|
32
|
+
};
|
|
33
|
+
export declare function isOpenAPIRef(value: unknown): value is OpenAPIRef;
|
|
34
|
+
type LegacyExampleHost = {
|
|
35
|
+
content?: Referenced<MediaTypesMap>;
|
|
36
|
+
'x-examples'?: {
|
|
37
|
+
[mime: string]: {
|
|
38
|
+
[name: string]: Referenced<OpenAPIExample>;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
'x-example'?: {
|
|
42
|
+
[mime: string]: unknown;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export declare function resolveContent(spec: Record<string, unknown>, info: LegacyExampleHost | null | undefined, ignoreNamedSchemas?: Set<string>): MediaTypesMap | undefined;
|
|
46
|
+
export declare function resolveJsonPointer(spec: Record<string, unknown>, ref: string): Record<string, unknown> | undefined;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{REDOCLY_TEAMS_RBAC as u}from"@redocly/config";import{getDefinitionName as l}from"./openapi/utils/helpers.js";let d=0,x=0;function C(){d=0,x=0}function s(e,r){return e==null?String(e):typeof e!="object"?JSON.stringify(e):(r||(r=new Set),r.has(e)?'"[Circular]"':(r.add(e),Array.isArray(e)?"["+e.map(n=>s(n,r)).join(",")+"]":c(e)?"{"+Object.keys(e).sort().map(n=>JSON.stringify(n)+":"+s(e[n],r)).join(",")+"}":"{}"))}function O(e,r,t){const n=g(t);if(t.id&&e[t.id])return t.id;if(!t.id){const o=s(t.data),p=r[o];if(p)return p;const f=`schema_${d++}`;return e[f]={...n,id:f},r[o]=f,f}e[t.id]={...n,id:t.id};const i=s(t.data);return r[i]||(r[i]=t.id),t.id}function g(e){const r=m(e.data);return r?{...e,[u]:r}:e}function m(e){if(!c(e))return;const r=e[u];return c(r)?r:void 0}function A(e){return e?{[u]:e}:{}}function E(e){return e?{sectionRbac:m(e),entries:Object.entries(e).filter(([r])=>r!==u)}:{sectionRbac:void 0,entries:[]}}function $(e,r){const t=r.id??`example_${x++}`;return e[t]||(e[t]={...r,id:t}),t}function k(e,r){return e[r.id]||(e[r.id]=r),r.id}function y(e){return{schemaStore:{},exampleStore:{},securitySchemeStore:{},hashIndex:{},document:e}}function c(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function N(e){return c(e)?e:{}}function a(e,r,t){if(c(r)){if(typeof r.$ref=="string"){const n=r.$ref,i=l(n);return i&&t?.has(i)?{type:"object",title:i}:R(e,n)}return r}}function b(e){return c(e)&&typeof e.$ref=="string"}function _(e,r,t){const n=r?.content;if(!n)return;const i=b(n)?a(e,n,t):n;return S(i,r)}function S(e,r){if(!e)return e;const t=r["x-examples"];if(t){const i={...e};for(const o of Object.keys(t))i[o]={...i[o],examples:t[o]};return i}const n=r["x-example"];if(n){const i={...e};for(const o of Object.keys(n))i[o]={...i[o],example:n[o]};return i}return e}function R(e,r){if(!r.startsWith("#/"))return;const t=r.slice(2).split("/").map(i=>i.replace(/~1/g,"/").replace(/~0/g,"~"));let n=e;for(const i of t){if(!c(n))return;n=n[i]}return c(n)?n:void 0}export{y as createStoreContext,b as isOpenAPIRef,c as isRecord,A as rbacProp,m as readRbacScope,$ as registerExample,O as registerSchema,k as registerSecurityScheme,C as resetStoreCounters,_ as resolveContent,R as resolveJsonPointer,a as resolveRef,E as splitRbacSection,s as stableStringify,N as toRecord};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { OpenAPIDefinition, OpenAPICallback, OpenApiBuildContext as BuildContext, NormalizedCallback } from '../../../types/openapi.js';
|
|
2
|
+
import type { Referenced } from '../../../types/common.js';
|
|
3
|
+
import type { AdapterBuildContextInput, StoreContext } from '../../../types/store.js';
|
|
4
|
+
type BuildContextWithDocument = AdapterBuildContextInput & {
|
|
5
|
+
document: OpenAPIDefinition;
|
|
6
|
+
storeCtx: StoreContext;
|
|
7
|
+
processContent?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function createBuildContext({ document, options, basePath, storeCtx, processContent, }: BuildContextWithDocument): BuildContext;
|
|
10
|
+
export declare function normalizeCallbacks(callbacks: {
|
|
11
|
+
[name: string]: Referenced<OpenAPICallback>;
|
|
12
|
+
} | undefined, document: Record<string, unknown>, ignoreNamedSchemas?: Set<string>): NormalizedCallback[] | undefined;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{parseMarkdown as M}from"../../utils/parseMarkdown.js";import{JsonPointer as B}from"../utils/JsonPointer.js";import{DEFAULT_WEBHOOKS_TAG_NAME as I}from"../../../constants/openapi.js";import{SUPPORTED_MCP_TYPES as S}from"../constants.js";import{titleize as C}from"../utils/helpers.js";import{resolveRef as b,readRbacScope as N,rbacProp as v}from"../../helpers.js";import{resolvePathItemRef as P}from"../utils/resolvePathItemRef.js";import{HTTP_METHODS as R}from"../../../utils/http-methods.js";import{REDOCLY_TEAMS_RBAC as _}from"@redocly/config";function T(t){return t.kind==="badge"||t.kind==="audience"}function X({document:t,options:e,basePath:a,storeCtx:c,processContent:p=!0}){const n=new Map,i=!!t.tags?.length;for(const r of t.tags||[]){const o=r;n.set(r.name,{tag:o,operations:[],description:r.description,children:[]})}for(const r of t.tags||[]){const o=r;o.parent&&!T(r)&&n.get(o.parent)?.children.push(r.name)}e?.schemaDefinitionsTagName&&A(n,e.schemaDefinitionsTagName);const s=(t.tags||[]).filter(T),f={document:t,options:e,basePath:a,tagsMap:n,hasTopLevelTags:i,collectedTagOrder:[],downloadUrls:e.downloadUrls,storeCtx:c,badgeTags:s,processContent:p};return L(t,f),$(t,f),f}function A(t,e){t.has(e)||t.set(e,{tag:{name:e},operations:[],children:[]})}function L(t,e){t.paths&&x(t.paths,!1,e);const a=t["x-webhooks"]||t.webhooks;a&&x(a,!0,e)}function $(t,e){const a=t["x-mcp"];if(a)for(const c of S){const p=a[c];if(p?.length)for(const n of p){const i=n.tags&&n.tags.length>0?n.tags:[C(c)];for(const s of i)e.tagsMap.has(s)||(e.tagsMap.set(s,{tag:{name:s},operations:[],children:[]}),e.collectedTagOrder.push(s))}}}function k(t,e){return{...e,summary:e.summary??t.summary,description:e.description??t.description,servers:e.servers??t.servers}}function x(t,e,a){const c=a.document,p=a.document.openapi;for(const[n,i]of Object.entries(t)){if(!i)continue;let s;try{s=P(c,i,p)}catch{console.warn(`[OpenAPI] Skipping path "${n}": failed to resolve path item $ref`);continue}if(!s)continue;const f=s.parameters??[];for(const o of Object.keys(s).filter(d=>!["parameters","servers","description","summary","additionalOperations","$ref"].includes(d))){const d=s[o];!d||typeof d!="object"||w(k(s,d),n,o,e,!1,a,f)}const r=s.additionalOperations;if(r)for(const[o,d]of Object.entries(r))w(k(s,d),n,o,e,!0,a,f)}}function j(t){return typeof t=="object"&&t!==null?t:{}}function q(t,e,a,c){if(!t.length&&!e?.length||!t.length)return e;if(!e?.length)return t;const p=new Set(e.map(i=>{const s=b(a,i,c)??i,f=j(s);return`${f.in}:${f.name}`})),n=[...e];for(const i of t){const s=b(a,i,c)??i,f=j(s),r=`${f.in}:${f.name}`;p.has(r)||n.push(i)}return n}function w(t,e,a,c,p,n,i=[]){const s=t.tags||(c?[I]:[""]),f=H(n.badgeTags,t,e,a,c,p,s,i,n);for(const r of s){let o=n.tagsMap.get(r);o||(o={tag:{name:r},operations:[],children:[]},n.tagsMap.set(r,o),n.collectedTagOrder.push(r)),!T(o.tag)&&(o.tag["x-traitTag"]||o.operations.push(f))}}function D(t){return t.toLowerCase()==="x-query"?"query":t}function H(t,e,a,c,p,n,i,s=[],f){const{options:r,storeCtx:o}=f,d=e.externalDocs,g=e["x-badges"]?.map(m=>({name:m.name,color:m.color,position:m.position}))??[];if(e.tags&&t.length>0)for(const m of e.tags){const l=t.find(u=>u.name===m);l&&g.push({name:l.summary??l.name,color:l.kind==="audience"?"grey":"blue",icon:l.kind==="audience"?"user-group":void 0,position:"after",description:typeof l.description=="string"?l.description:void 0})}return{...e,pointer:B.compile(["paths",a,c]),pathName:a,httpVerb:D(c),operationId:e.operationId,summary:e.summary,description:M(e.description,r),deprecated:e.deprecated,isWebhook:p,isAdditionalOperation:n,tags:i,parameters:q(s,e.parameters,o.document,r.ignoreNamedSchemas),requestBody:e.requestBody,responses:e.responses,servers:e.servers,security:e.security??f.document.security,callbacks:U(e.callbacks,o?.document??{},r.ignoreNamedSchemas),externalDocs:d?{url:d.url,description:d.description}:void 0,"x-seo":e?.["x-seo"],"x-badges":g.length>0?g:void 0}}function U(t,e,a){if(!t||typeof t!="object")return;const c=[];for(const[p,n]of Object.entries(t)){const i=b(e,n,a)??n;if(!i||typeof i!="object")continue;const s=N(i),f=i;for(const[r,o]of Object.entries(f)){if(r===_||!o||typeof o!="object")continue;const d=o.servers,O=o.parameters,g=[];for(const[m,l]of Object.entries(o)){if(!R.has(m.toLowerCase())||!l||typeof l!="object")continue;const u=l,h={httpVerb:D(m.toLowerCase()),pathName:r,summary:u.summary,operationId:u.operationId,description:u.description,deprecated:u.deprecated,requestBody:u.requestBody,responses:u.responses,security:u.security,servers:u.servers??d,parameters:u.parameters??O,externalDocs:u.externalDocs};for(const[y,E]of Object.entries(u))y.startsWith("x-")&&!(y in h)&&(h[y]=E);g.push(h)}g.length>0?c.push({name:p,url:r,operations:g,...v(s)}):c.push({name:p,url:r,...v(s)})}}return c.length>0?c:void 0}export{X as createBuildContext,U as normalizeCallbacks};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { OperationInfo } from '../../types/openapi.js';
|
|
2
|
+
import type { StoreContext } from '../../types/store.js';
|
|
3
|
+
import type { ApiDocsOptions } from '../../types/options.js';
|
|
4
|
+
import type { CodeSampleSource } from '../../services/code-samples/index.js';
|
|
5
|
+
export declare function buildCodeSampleSource(operationInfo: OperationInfo, storeCtx: StoreContext, options: ApiDocsOptions, ignoreNamedSchemas?: Set<string>, isWebhook?: boolean, href?: string): CodeSampleSource;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{REDOCLY_TEAMS_RBAC as X}from"@redocly/config";import{registerExample as $,registerSchema as F,resolveContent as Z,resolveRef as x,readRbacScope as R,rbacProp as I}from"../helpers.js";import{panelKind as ee,schemaKind as K}from"../../types/common.js";import{isStatusCode as re}from"../../utils/status-code.js";import{encodeJsonPointerSegment as N}from"../../utils/refPointer.js";import{applyIgnoreNamedSchemasDeep as te}from"./utils/applyIgnoreNamedSchemasDeep.js";import{mergeInMockServer as se,pickOperationServers as ae}from"./utils/merge-mock-server.js";import{mergeSecurityIntoScheme as D}from"./configure/merge-utils.js";import{hasOpenApiExampleValue as ne,resolveOpenApiExampleValue as G}from"./resolve-openapi-example-value.js";function oe(s,o,q){const u=x(o,s,q)??s;return te(u,q)}function Se(s,o,q,u,J,B){const d=o?.document??{},L=d.servers,H=ae(s.servers,L);let k=se(H.filter(e=>typeof e?.url=="string"),q.mockServer).map(e=>({url:e.url??"",name:e.name,description:typeof e.description=="string"?e.description:void 0,...e.isMockServer&&{isMockServer:!0},variables:e.variables&&Object.keys(e.variables).length>0?Object.fromEntries(Object.entries(e.variables).map(([r,l])=>[r,{default:l.default,enum:l.enum}])):void 0}));k.length===0&&(k=[{url:"/"}]);const z=(s.parameters??[]).map(e=>oe(e,d,u)),O={path:[],query:[],querystring:[],header:[],cookie:[]},f=s.requestValues?.serverRequestValues;for(const e of z){const r=e.in;if(!r||!O[r])continue;const l=e.content,t=l?Object.keys(l)[0]:void 0,a=t&&l?l[t]?.schema:e.schema,c=a&&typeof a=="object"?x(d,a,u)??a:a;let i;c&&o&&(i=F(o.schemaStore,o.hashIndex,{kind:K.JSON_SCHEMA,data:c}));const h=c&&typeof c=="object"&&"example"in c?c.example:void 0;let p;if(e.examples&&typeof e.examples=="object")for(const n of Object.values(e.examples)){if(!n||typeof n!="object")continue;const b=x(d,n,u)??n;if(ne(b)){p=G(b);break}}const v={};if(f&&e.name)for(const[n,b]of Object.entries(f)){const _=b?.[r==="querystring"?"queryString":r==="header"?"headers":r==="cookie"?"cookies":r]?.[e.name];_!=null&&(v[n]={example:_})}O[r].push({name:e.name??"",in:r,required:e.required,example:e.example??p??h,schemaId:i,serializationMime:t,style:e.style,explode:e.explode,...Object.keys(v).length>0&&{serverValues:v}})}const A=s.requestValues?.security,M=s.security,P=[];if(M&&o)for(const e of M){const r=Object.keys(e),l=r.map(t=>o.securitySchemeStore[t]).filter(Boolean).map(t=>{let a={id:t.id,type:t.type,name:t.paramName,in:t.in,scheme:t.scheme,bearerFormat:t.bearerFormat,openIdConnectUrl:t.openIdConnectUrl,flows:t.flows,"x-defaultClientId":t["x-defaultClientId"],"x-defaultAccessToken":t["x-defaultAccessToken"],"x-defaultTokenType":t["x-defaultTokenType"],"x-defaultClientSecret":t["x-defaultClientSecret"],"x-defaultUsername":t["x-defaultUsername"],"x-defaultPassword":t["x-defaultPassword"],serverValues:t.serverValues?{...t.serverValues}:void 0};if(A&&(a=D(a,A)),f)for(const[c,i]of Object.entries(f))i?.security&&(a=D(a,i.security,c));return a});if(l.length>0){const t=r.flatMap(a=>e[a]??[]);P.push({schemes:l,scopes:t})}}const j=s.requestBody,Y=j?x(d,j,u)??j:void 0,T=Z(d,Y,u);let g;if(T&&o){g={};for(const[e,r]of Object.entries(T)){let l;const t=r.itemSchema,a=r.schema??t;if(a){const h=x(d,a,u)??a;l=F(o.schemaStore,o.hashIndex,{kind:K.JSON_SCHEMA,data:h})}const c=s.pointer?`${s.pointer}/requestBody/content/${N(e)}`.replace(/^\//,""):void 0,i=[];if(r.example!==void 0&&i.push($(o.exampleStore,{value:r.example,...c&&{id:`${c}/example`}})),r.examples){const h=R(r.examples);for(const[p,v]of Object.entries(r.examples)){if(p===X)continue;const n=x(d,v,u);if(n){const b=R(v)??R(n)??h,U=$(o.exampleStore,{value:G(n),key:p,summary:typeof n.summary=="string"?n.summary:p,description:typeof n.description=="string"?n.description:void 0,externalValue:typeof n.externalValue=="string"?n.externalValue:void 0,...I(b),...c&&{id:`${c}/examples/${N(p)}`}});i.push(U)}}}g[e]={schemaId:l,...i.length>0&&{exampleIds:i}}}}const S=s.requestValues?.envVariables;let V,m;if(S&&typeof S=="object")if("values"in S){const e=S;V=e.values,m=e.serverValues}else V=S;const E=s.requestValues?.body;let y;if(f)for(const[e,r]of Object.entries(f))r?.body!==void 0&&(y=y??{},y[e]=r.body),r?.envVariables&&(m=m??{},m[e]={...m[e],...r.envVariables});const Q=V||m||s.requestValues?.security||E!==void 0||y?{...s.requestValues?.security&&{security:s.requestValues.security},...V&&{envVariables:V},...m&&{serverEnvVariables:m},...E!==void 0&&{body:E},...y&&{serverBody:y}}:void 0,C=s.responses,W=C?Object.keys(C).filter(re):void 0,w=s.security;return{kind:ee.CODE_SAMPLE,operationType:J?"webhook":"http",method:s.httpVerb?.toUpperCase()??"GET",path:s.pathName??"/",servers:k,parameters:O,security:P,requestBody:g,responseCodes:W,requestValues:Q,pointer:s.pathName,...B&&{href:B},...s.operationId&&{openApiOperationId:s.operationId},...s.summary&&{summary:s.summary},...w&&w.length>1&&{securityGroups:w}}}export{Se as buildCodeSampleSource};
|