redoc 2.5.4 → 3.0.0-rc.1

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.
Files changed (700) hide show
  1. package/LICENSE +2 -2
  2. package/README.md +90 -52
  3. package/bundles/redoc.d.ts +1860 -0
  4. package/bundles/redoc.js +13775 -0
  5. package/bundles/redoc.standalone.d.ts +1574 -0
  6. package/bundles/redoc.standalone.js +13547 -1562
  7. package/package.json +107 -186
  8. package/typings/.tsbuildinfo +1 -0
  9. package/typings/RedocStandalone.d.ts +36 -0
  10. package/typings/RedoclyApiDocs.d.ts +23 -0
  11. package/typings/RedoclyApiDocsStandalone.d.ts +22 -0
  12. package/typings/adapters/asyncapi/build/context.d.ts +9 -0
  13. package/typings/adapters/asyncapi/build/navigation.d.ts +2 -0
  14. package/typings/adapters/asyncapi/build/utils.d.ts +3 -0
  15. package/typings/adapters/asyncapi/buildContext.d.ts +2 -0
  16. package/typings/adapters/asyncapi/index.d.ts +13 -0
  17. package/typings/adapters/asyncapi/items/channel/content.d.ts +5 -0
  18. package/typings/adapters/asyncapi/items/channel/item.d.ts +13 -0
  19. package/typings/adapters/asyncapi/items/operation/content.d.ts +4 -0
  20. package/typings/adapters/asyncapi/items/operation/item.d.ts +15 -0
  21. package/typings/adapters/asyncapi/items/overview/content.d.ts +10 -0
  22. package/typings/adapters/asyncapi/items/overview/item.d.ts +16 -0
  23. package/typings/adapters/asyncapi/panels/brokers.d.ts +4 -0
  24. package/typings/adapters/asyncapi/panels/download.d.ts +3 -0
  25. package/typings/adapters/asyncapi/panels/group.d.ts +16 -0
  26. package/typings/adapters/asyncapi/panels/overview.d.ts +3 -0
  27. package/typings/adapters/asyncapi/store.d.ts +3 -0
  28. package/typings/adapters/asyncapi/utils/avro-to-json-schema.d.ts +4 -0
  29. package/typings/adapters/asyncapi/utils/get-channel-label.d.ts +3 -0
  30. package/typings/adapters/asyncapi/utils/get-protocol-labels.d.ts +24 -0
  31. package/typings/adapters/asyncapi/utils/get-server-host.d.ts +3 -0
  32. package/typings/adapters/asyncapi/utils/resolve-schema.d.ts +2 -0
  33. package/typings/adapters/asyncapi/utils/resolveInDoc.d.ts +2 -0
  34. package/typings/adapters/build.d.ts +31 -0
  35. package/typings/adapters/graphql/build/context.d.ts +9 -0
  36. package/typings/adapters/graphql/buildContext.d.ts +2 -0
  37. package/typings/adapters/graphql/buildStoreFromSdl.d.ts +2 -0
  38. package/typings/adapters/graphql/group/custom.d.ts +2 -0
  39. package/typings/adapters/graphql/group/default.d.ts +2 -0
  40. package/typings/adapters/graphql/group/errors.d.ts +1 -0
  41. package/typings/adapters/graphql/group/itemBuilders.d.ts +5 -0
  42. package/typings/adapters/graphql/group/utils.d.ts +8 -0
  43. package/typings/adapters/graphql/index.d.ts +10 -0
  44. package/typings/adapters/graphql/items/directive/content.d.ts +4 -0
  45. package/typings/adapters/graphql/items/directive/item.d.ts +3 -0
  46. package/typings/adapters/graphql/items/enum/content.d.ts +4 -0
  47. package/typings/adapters/graphql/items/enum/item.d.ts +3 -0
  48. package/typings/adapters/graphql/items/input/content.d.ts +4 -0
  49. package/typings/adapters/graphql/items/input/item.d.ts +3 -0
  50. package/typings/adapters/graphql/items/interface/content.d.ts +4 -0
  51. package/typings/adapters/graphql/items/interface/item.d.ts +3 -0
  52. package/typings/adapters/graphql/items/mutation/content.d.ts +4 -0
  53. package/typings/adapters/graphql/items/mutation/item.d.ts +3 -0
  54. package/typings/adapters/graphql/items/object/content.d.ts +4 -0
  55. package/typings/adapters/graphql/items/object/item.d.ts +3 -0
  56. package/typings/adapters/graphql/items/operation/content.d.ts +7 -0
  57. package/typings/adapters/graphql/items/overview/content.d.ts +11 -0
  58. package/typings/adapters/graphql/items/overview/item.d.ts +4 -0
  59. package/typings/adapters/graphql/items/query/content.d.ts +4 -0
  60. package/typings/adapters/graphql/items/query/item.d.ts +3 -0
  61. package/typings/adapters/graphql/items/scalar/content.d.ts +4 -0
  62. package/typings/adapters/graphql/items/scalar/item.d.ts +3 -0
  63. package/typings/adapters/graphql/items/subscription/content.d.ts +4 -0
  64. package/typings/adapters/graphql/items/subscription/item.d.ts +3 -0
  65. package/typings/adapters/graphql/items/types.d.ts +7 -0
  66. package/typings/adapters/graphql/items/union/content.d.ts +4 -0
  67. package/typings/adapters/graphql/items/union/item.d.ts +3 -0
  68. package/typings/adapters/graphql/panels/download.d.ts +3 -0
  69. package/typings/adapters/graphql/panels/group-items.d.ts +4 -0
  70. package/typings/adapters/graphql/panels/overview.d.ts +3 -0
  71. package/typings/adapters/graphql/serializeType.d.ts +5 -0
  72. package/typings/adapters/graphql/store.d.ts +3 -0
  73. package/typings/adapters/graphql/utils/configMetadataRows.d.ts +3 -0
  74. package/typings/adapters/graphql/utils/constants.d.ts +23 -0
  75. package/typings/adapters/graphql/utils/createApiItem.d.ts +15 -0
  76. package/typings/adapters/graphql/utils/getBadges.d.ts +4 -0
  77. package/typings/adapters/graphql/utils/ignoreInternalItems.d.ts +3 -0
  78. package/typings/adapters/graphql/utils/isRootType.d.ts +2 -0
  79. package/typings/adapters/graphql/utils/menuSlashRegex.d.ts +1 -0
  80. package/typings/adapters/graphql/utils/normalizeMenu.d.ts +3 -0
  81. package/typings/adapters/graphql/utils/shouldIncludeItem.d.ts +2 -0
  82. package/typings/adapters/graphql/utils/summary.d.ts +4 -0
  83. package/typings/adapters/graphql/utils/validateMenuConfig.d.ts +3 -0
  84. package/typings/adapters/helpers.d.ts +40 -0
  85. package/typings/adapters/openapi/build/context.d.ts +13 -0
  86. package/typings/adapters/openapi/build-code-sample-source.d.ts +4 -0
  87. package/typings/adapters/openapi/buildContext.d.ts +2 -0
  88. package/typings/adapters/openapi/configure/apply-request-values.d.ts +3 -0
  89. package/typings/adapters/openapi/configure/index.d.ts +3 -0
  90. package/typings/adapters/openapi/configure/merge-utils.d.ts +30 -0
  91. package/typings/adapters/openapi/configure/resolve-request-values.d.ts +15 -0
  92. package/typings/adapters/openapi/constants.d.ts +4 -0
  93. package/typings/adapters/openapi/group/content.d.ts +25 -0
  94. package/typings/adapters/openapi/group/item.d.ts +8 -0
  95. package/typings/adapters/openapi/index.d.ts +13 -0
  96. package/typings/adapters/openapi/items/mcp/content.d.ts +5 -0
  97. package/typings/adapters/openapi/items/mcp/item.d.ts +9 -0
  98. package/typings/adapters/openapi/items/operation/content.d.ts +12 -0
  99. package/typings/adapters/openapi/items/operation/item.d.ts +9 -0
  100. package/typings/adapters/openapi/items/overview/content.d.ts +17 -0
  101. package/typings/adapters/openapi/items/overview/item.d.ts +3 -0
  102. package/typings/adapters/openapi/items/schema/content.d.ts +3 -0
  103. package/typings/adapters/openapi/items/schema/item.d.ts +9 -0
  104. package/typings/adapters/openapi/panels/download.d.ts +3 -0
  105. package/typings/adapters/openapi/panels/mcp.d.ts +3 -0
  106. package/typings/adapters/openapi/panels/overview.d.ts +3 -0
  107. package/typings/adapters/openapi/panels/servers.d.ts +3 -0
  108. package/typings/adapters/openapi/resolve-openapi-example-value.d.ts +3 -0
  109. package/typings/adapters/openapi/store.d.ts +4 -0
  110. package/typings/{utils → adapters/openapi/utils}/JsonPointer.d.ts +6 -6
  111. package/typings/adapters/openapi/utils/applyIgnoreNamedSchemasDeep.d.ts +1 -0
  112. package/typings/adapters/openapi/utils/helpers.d.ts +14 -0
  113. package/typings/adapters/openapi/utils/merge-mock-server.d.ts +8 -0
  114. package/typings/adapters/openapi/utils/operation.d.ts +23 -0
  115. package/typings/adapters/openapi/utils/resolvePathItemRef.d.ts +2 -0
  116. package/typings/adapters/openapi/utils/url.d.ts +2 -0
  117. package/typings/adapters/rbac.d.ts +10 -0
  118. package/typings/adapters/scopedContext.d.ts +5 -0
  119. package/typings/adapters/utils/convertSwagger2OpenAPI.d.ts +2 -0
  120. package/typings/adapters/utils/dompurify.d.ts +5 -0
  121. package/typings/adapters/utils/isPlainText.d.ts +6 -0
  122. package/typings/adapters/utils/markdoc.d.ts +55 -0
  123. package/typings/adapters/utils/parseMarkdown.d.ts +8 -0
  124. package/typings/adapters/utils/seo.d.ts +3 -0
  125. package/typings/adapters/utils/simplifyAstStructure.d.ts +2 -0
  126. package/typings/components/AdmonitionItem.d.ts +6 -0
  127. package/typings/components/ChannelAddressItem.d.ts +7 -0
  128. package/typings/components/ContainerItem.d.ts +9 -0
  129. package/typings/components/EmptyMessageItem.d.ts +6 -0
  130. package/typings/components/ErrorBoundary.d.ts +19 -7
  131. package/typings/components/ExtensionsItem.d.ts +7 -0
  132. package/typings/components/ExternalDocsItem.d.ts +8 -0
  133. package/typings/components/Header/HeaderItem.d.ts +10 -0
  134. package/typings/components/Header/HeaderPageActions.d.ts +4 -0
  135. package/typings/components/Header/HeaderResponseCodeTabs.d.ts +8 -0
  136. package/typings/components/Header/PageActions.d.ts +4 -0
  137. package/typings/components/Header/ResponseDeepLinkAnchor.d.ts +9 -0
  138. package/typings/components/Header/hooks.d.ts +5 -0
  139. package/typings/components/InfoMetadataItem.d.ts +7 -0
  140. package/typings/components/ItemContent/ItemContentRenderer.d.ts +8 -0
  141. package/typings/components/ItemContent/SectionHeader.d.ts +8 -0
  142. package/typings/components/ItemContent/hooks.d.ts +16 -0
  143. package/typings/components/ItemContent/sections/BodyMimeTypeField.d.ts +12 -0
  144. package/typings/components/ItemContent/sections/BodySection.d.ts +7 -0
  145. package/typings/components/ItemContent/sections/CallbacksSection.d.ts +5 -0
  146. package/typings/components/ItemContent/sections/FieldsSection.d.ts +7 -0
  147. package/typings/components/ItemContent/sections/MessagesSection.d.ts +5 -0
  148. package/typings/components/ItemContent/sections/ParametersSection.d.ts +6 -0
  149. package/typings/components/ItemContent/sections/ResponsesSection.d.ts +5 -0
  150. package/typings/components/ItemContent/sections/ValuesSection.d.ts +5 -0
  151. package/typings/components/Mapper.d.ts +25 -0
  152. package/typings/components/MarkdownItem.d.ts +6 -0
  153. package/typings/components/Mcp/McpPrompt.d.ts +8 -0
  154. package/typings/components/Mcp/McpResource.d.ts +8 -0
  155. package/typings/components/Mcp/McpTool.d.ts +8 -0
  156. package/typings/components/Mcp/styled.d.ts +22 -0
  157. package/typings/components/Mcp/utils.d.ts +7 -0
  158. package/typings/components/MessageLinksItem.d.ts +7 -0
  159. package/typings/components/PrePaintColorModeScript.d.ts +12 -0
  160. package/typings/components/Schema/SchemaDescription.d.ts +5 -0
  161. package/typings/components/Schema/SchemaView.d.ts +20 -0
  162. package/typings/components/Schema/helpers.d.ts +1 -0
  163. package/typings/components/Schema/hooks/useSchemaDocument.d.ts +7 -0
  164. package/typings/components/Schema/hooks/useSchemaFieldDeepLink.d.ts +5 -0
  165. package/typings/components/Schema/hooks/useVariantIndexFromHash.d.ts +1 -0
  166. package/typings/components/Schema/styled.d.ts +235 -0
  167. package/typings/components/Schema/utils.d.ts +26 -0
  168. package/typings/components/Schema/views/ArrayRenderer.d.ts +13 -0
  169. package/typings/components/Schema/views/CollapsibleNestedFields.d.ts +25 -0
  170. package/typings/components/Schema/views/DefaultMappingOptionLabel.d.ts +5 -0
  171. package/typings/components/Schema/views/DiscriminatorPropertyRow.d.ts +13 -0
  172. package/typings/components/Schema/views/Examples.d.ts +7 -0
  173. package/typings/components/Schema/views/ExpandableExample.d.ts +4 -0
  174. package/typings/components/Schema/views/ObjectRenderer.d.ts +14 -0
  175. package/typings/components/Schema/views/Pattern.d.ts +6 -0
  176. package/typings/components/Schema/views/PrimitiveRenderer.d.ts +5 -0
  177. package/typings/components/Schema/views/PropertyFieldRow.d.ts +16 -0
  178. package/typings/components/Schema/views/PropertyRenderer.d.ts +15 -0
  179. package/typings/components/Schema/views/SchemaEnumDescriptions.d.ts +9 -0
  180. package/typings/components/Schema/views/SchemaEnumValues.d.ts +8 -0
  181. package/typings/components/Schema/views/SchemaTitleLabel.d.ts +5 -0
  182. package/typings/components/Schema/views/SchemaVariantSelector.d.ts +11 -0
  183. package/typings/components/Schema/views/SwitcherRenderer.d.ts +14 -0
  184. package/typings/components/Schema/views/VariantDropdown.d.ts +14 -0
  185. package/typings/components/Search/Search.d.ts +10 -0
  186. package/typings/components/Search/SearchDialog.d.ts +7 -0
  187. package/typings/components/Search/SearchTrigger.d.ts +9 -0
  188. package/typings/components/Search/index.d.ts +3 -0
  189. package/typings/components/Security/Divider.d.ts +4 -0
  190. package/typings/components/Security/RequiredScopes.d.ts +4 -0
  191. package/typings/components/Security/ScopeTagWithTooltip.d.ts +11 -0
  192. package/typings/components/Security/SecurityButtonPanel.d.ts +5 -0
  193. package/typings/components/Security/SecurityFlowDetail.d.ts +5 -0
  194. package/typings/components/Security/SecurityModal.d.ts +6 -0
  195. package/typings/components/Security/SecuritySection.d.ts +3 -0
  196. package/typings/components/Security/styled.d.ts +127 -0
  197. package/typings/components/Security/types.d.ts +3 -0
  198. package/typings/components/SideMenu/SideMenu.d.ts +6 -14
  199. package/typings/components/SideMenu/buildMenuItems.d.ts +29 -0
  200. package/typings/components/SideMenu/useMenuItems.d.ts +14 -0
  201. package/typings/components/StickySidebar/FloatingButton.d.ts +1 -0
  202. package/typings/components/StickySidebar/RedoclyAttributionLogo.d.ts +5 -0
  203. package/typings/components/StickySidebar/SidebarActions.d.ts +2 -0
  204. package/typings/components/StickySidebar/StickySidebar.d.ts +7 -0
  205. package/typings/components/common/Badge.d.ts +32 -0
  206. package/typings/components/common/Breadcrumbs.d.ts +11 -0
  207. package/typings/components/common/ContentWrapper.d.ts +24 -0
  208. package/typings/components/common/DeepLinkAnchor.d.ts +20 -0
  209. package/typings/components/common/ExpandAllButton.d.ts +6 -0
  210. package/typings/components/common/ExternalDocumentation.d.ts +10 -0
  211. package/typings/components/common/LazyMount.d.ts +9 -0
  212. package/typings/components/common/LazySection.d.ts +14 -0
  213. package/typings/components/common/Markdown.d.ts +7 -0
  214. package/typings/components/common/MoreDetailsButton.d.ts +5 -0
  215. package/typings/components/common/NestedToggleButton.d.ts +10 -0
  216. package/typings/components/common/PanelItem.d.ts +65 -0
  217. package/typings/components/common/ResponseCodeTabs.d.ts +9 -0
  218. package/typings/components/common/Tag.d.ts +3 -0
  219. package/typings/components/common/VendorExtensions.d.ts +7 -0
  220. package/typings/components/common/ViewNested.d.ts +16 -0
  221. package/typings/components/graphql/ArrowIcon.d.ts +7 -0
  222. package/typings/components/graphql/GraphQLArgumentsSection.d.ts +10 -0
  223. package/typings/components/graphql/GraphQLEnumEmbedded.d.ts +5 -0
  224. package/typings/components/graphql/GraphQLFieldView.d.ts +12 -0
  225. package/typings/components/graphql/GraphQLFieldsEmbedded.d.ts +9 -0
  226. package/typings/components/graphql/GraphQLGroupTypeList.d.ts +5 -0
  227. package/typings/components/graphql/GraphQLHeaderExtras.d.ts +7 -0
  228. package/typings/components/graphql/GraphQLReturnTypeDetails.d.ts +11 -0
  229. package/typings/components/graphql/GraphQLTypeView.d.ts +9 -0
  230. package/typings/components/graphql/GraphQLUnionEmbedded.d.ts +5 -0
  231. package/typings/components/graphql/RequiresScopesButton.d.ts +9 -0
  232. package/typings/components/graphql/RequiresScopesModal.d.ts +9 -0
  233. package/typings/components/graphql/ViewNested.d.ts +14 -0
  234. package/typings/components/graphql/renderDescription.d.ts +2 -0
  235. package/typings/components/graphql/sections/GraphQLArgsSection.d.ts +5 -0
  236. package/typings/components/graphql/sections/GraphQLFieldsSection.d.ts +5 -0
  237. package/typings/components/graphql/sections/ImplementedBySection.d.ts +5 -0
  238. package/typings/components/graphql/sections/ImplementsSection.d.ts +5 -0
  239. package/typings/components/graphql/sections/PossibleTypesSection.d.ts +5 -0
  240. package/typings/components/graphql/sections/RequiresScopesSection.d.ts +5 -0
  241. package/typings/components/graphql/sections/ReturnTypeSection.d.ts +5 -0
  242. package/typings/components/graphql/styled.d.ts +62 -0
  243. package/typings/components/markdoc/Heading.d.ts +11 -0
  244. package/typings/components/markdoc/SchemaDefinition.d.ts +11 -0
  245. package/typings/components/markdoc/apiDocsMarkdocComponents.d.ts +6 -0
  246. package/typings/components/markdoc/buildMarkdocOptions.d.ts +9 -0
  247. package/typings/components/markdoc/defaultMarkdocConfig.d.ts +14 -0
  248. package/typings/components/markdoc/html/html-jsx-attribute-mapping.d.ts +5 -0
  249. package/typings/components/markdoc/html/process-html-tokens.d.ts +1 -0
  250. package/typings/components/markdoc/markdocAdapter.d.ts +11 -0
  251. package/typings/components/markdoc/markdocParser.d.ts +8 -0
  252. package/typings/components/markdoc/markdocRenderer.d.ts +8 -0
  253. package/typings/components/markdoc/tags/mcp-tag-schemas.d.ts +2 -0
  254. package/typings/components/markdoc/tags/schema-definition-tag.d.ts +2 -0
  255. package/typings/components/panels/ConnectMcpButton.d.ts +5 -0
  256. package/typings/components/panels/DownloadPanelItem.d.ts +5 -0
  257. package/typings/components/panels/ExampleItem/CallbackPayloadItem.d.ts +5 -0
  258. package/typings/components/panels/ExampleItem/CodeSampleItem.d.ts +5 -0
  259. package/typings/components/panels/ExampleItem/ExamplesPanelItem.d.ts +3 -0
  260. package/typings/components/panels/ExampleItem/GraphQLQueryItem.d.ts +5 -0
  261. package/typings/components/panels/ExampleItem/GraphQLResponseItem.d.ts +5 -0
  262. package/typings/components/panels/ExampleItem/GraphQLTypeSampleItem.d.ts +5 -0
  263. package/typings/components/panels/ExampleItem/GraphQLVariablesItem.d.ts +5 -0
  264. package/typings/components/panels/ExampleItem/PayloadExampleItem.d.ts +5 -0
  265. package/typings/components/panels/ExampleItem/ResponseExampleItem.d.ts +5 -0
  266. package/typings/components/panels/ExampleItem/ServerDropdown.d.ts +17 -0
  267. package/typings/components/panels/ExampleItem/hooks.d.ts +25 -0
  268. package/typings/components/panels/ExampleItem/selectors.d.ts +39 -0
  269. package/typings/components/panels/ExampleItem/styled.d.ts +101 -0
  270. package/typings/components/panels/ExampleItem/types.d.ts +9 -0
  271. package/typings/components/panels/ExampleItem/useActiveServer.d.ts +17 -0
  272. package/typings/components/panels/ExampleItem/useCodeSampleLanguages.d.ts +23 -0
  273. package/typings/components/panels/GroupPanelItem.d.ts +5 -0
  274. package/typings/components/panels/LanguageItem/LanguageDropdown.d.ts +15 -0
  275. package/typings/components/panels/LanguageItem/LanguageItem.d.ts +11 -0
  276. package/typings/components/panels/LanguageItem/LanguageListSkeleton.d.ts +4 -0
  277. package/typings/components/panels/LanguageItem/constants.d.ts +2 -0
  278. package/typings/components/panels/LanguageItem/styled.d.ts +71 -0
  279. package/typings/components/panels/LocationsPanelItem.d.ts +5 -0
  280. package/typings/components/panels/McpExamplePanelItem.d.ts +5 -0
  281. package/typings/components/panels/McpPanelItem.d.ts +3 -0
  282. package/typings/components/panels/OverviewPanelItem.d.ts +3 -0
  283. package/typings/components/panels/PanelMapper.d.ts +5 -0
  284. package/typings/components/panels/PanelNodeProps.d.ts +4 -0
  285. package/typings/components/panels/ReferencesPanelItem.d.ts +5 -0
  286. package/typings/components/panels/ServerItem/ServerDescriptionTooltip.d.ts +4 -0
  287. package/typings/components/panels/ServerItem/ServerItem.d.ts +5 -0
  288. package/typings/components/panels/ServerItem/ServerPanelItem.d.ts +5 -0
  289. package/typings/components/panels/asyncapi/BrokerItem/BrokerBindingsSection.d.ts +7 -0
  290. package/typings/components/panels/asyncapi/BrokerItem/BrokerModal.d.ts +8 -0
  291. package/typings/components/panels/asyncapi/BrokerItem/BrokerOverviewSection.d.ts +6 -0
  292. package/typings/components/panels/asyncapi/BrokerItem/BrokerPanel.styled.d.ts +21 -0
  293. package/typings/components/panels/asyncapi/BrokerItem/BrokerPanelItem.d.ts +5 -0
  294. package/typings/components/panels/asyncapi/ChannelBindingItem/ChannelBindingItem.d.ts +5 -0
  295. package/typings/components/panels/asyncapi/MessageBindingItem/MessageBindingItem.d.ts +5 -0
  296. package/typings/components/panels/asyncapi/MessageReferencesItem/MessageReferencesItem.d.ts +5 -0
  297. package/typings/components/panels/asyncapi/OperationBindingItem/OperationBindingItem.d.ts +5 -0
  298. package/typings/components/panels/asyncapi/common/bindingPanel.d.ts +30 -0
  299. package/typings/components/panels/shared-panel-styles.d.ts +16 -0
  300. package/typings/components/panels/styled.d.ts +18 -0
  301. package/typings/constants/openapi.d.ts +30 -0
  302. package/typings/constants/rendering.d.ts +8 -0
  303. package/typings/contexts/markdownAdapter.d.ts +21 -0
  304. package/typings/contexts/telemetry.d.ts +4 -0
  305. package/typings/crypto-compat.d.ts +5 -0
  306. package/typings/crypto-uuid-compat.d.ts +1 -0
  307. package/typings/empty-linkedom.d.ts +1 -0
  308. package/typings/empty.d.ts +7 -0
  309. package/typings/events/codeSampleCopy.d.ts +2 -0
  310. package/typings/events/creator.d.ts +2 -0
  311. package/typings/events/index.d.ts +6 -0
  312. package/typings/events/languageSwitch.d.ts +2 -0
  313. package/typings/events/panelToggle.d.ts +2 -0
  314. package/typings/events/serverSwitch.d.ts +2 -0
  315. package/typings/events/types.d.ts +7 -0
  316. package/typings/hoc/withItemId.d.ts +6 -0
  317. package/typings/hoc/withRouter.d.ts +4 -0
  318. package/typings/hoc/withStoreProvider.d.ts +24 -0
  319. package/typings/hooks/deepLinkHash.d.ts +7 -0
  320. package/typings/hooks/useAgentTools.d.ts +6 -0
  321. package/typings/hooks/useApiDocsRoutes.d.ts +8 -0
  322. package/typings/hooks/useApiDocsScroll.d.ts +9 -0
  323. package/typings/hooks/useBodyScrollLock.d.ts +1 -0
  324. package/typings/{utils/highlight.d.ts → hooks/useCodeHighlight.d.ts} +17 -23
  325. package/typings/hooks/useCopyCodeTelemetry.d.ts +14 -0
  326. package/typings/hooks/useCopySpecSlice.d.ts +9 -0
  327. package/typings/hooks/useDeepLinkSection.d.ts +23 -0
  328. package/typings/hooks/useExpandableSection.d.ts +4 -0
  329. package/typings/hooks/useHashLinkRedirect.d.ts +4 -0
  330. package/typings/hooks/useInitialTelemetry.d.ts +3 -0
  331. package/typings/hooks/useIsExpanded.d.ts +1 -0
  332. package/typings/hooks/useIsHydrated.d.ts +4 -0
  333. package/typings/hooks/useManualScrollAnchor.d.ts +19 -0
  334. package/typings/hooks/useModalDismiss.d.ts +2 -0
  335. package/typings/hooks/useNormalizeUrl.d.ts +2 -0
  336. package/typings/hooks/usePageTelemetry.d.ts +3 -0
  337. package/typings/hooks/usePageViewTelemetry.d.ts +2 -0
  338. package/typings/hooks/usePerformanceMetricsTelemetry.d.ts +5 -0
  339. package/typings/hooks/useRouterHashBridge.d.ts +25 -0
  340. package/typings/hooks/useScrollSpyUrlSync.d.ts +3 -0
  341. package/typings/hooks/useSearchEngine.d.ts +7 -0
  342. package/typings/hooks/useSessionSummaryTelemetry.d.ts +7 -0
  343. package/typings/hooks/useTelemetry.d.ts +2 -0
  344. package/typings/hooks/useTranslate.d.ts +5 -0
  345. package/typings/hooks/useUrlHash.d.ts +8 -0
  346. package/typings/hooks/useUrlHashReassert.d.ts +2 -0
  347. package/typings/hooks/useUserScrollIntent.d.ts +18 -0
  348. package/typings/hooks/useVisitedChannelsTracker.d.ts +6 -0
  349. package/typings/icons/CSharpIcon/CSharpIcon.d.ts +4 -0
  350. package/typings/icons/CSharpIcon/index.d.ts +1 -0
  351. package/typings/icons/CurlIcon/CurlIcon.d.ts +6 -0
  352. package/typings/icons/CurlIcon/index.d.ts +1 -0
  353. package/typings/icons/DefaultMappingIcon/DefaultMappingIcon.d.ts +6 -0
  354. package/typings/icons/DefaultMappingIcon/index.d.ts +1 -0
  355. package/typings/icons/GOIcon/GOIcon.d.ts +4 -0
  356. package/typings/icons/GOIcon/index.d.ts +1 -0
  357. package/typings/icons/JavaIcon/JavaIcon.d.ts +4 -0
  358. package/typings/icons/JavaIcon/index.d.ts +1 -0
  359. package/typings/icons/JavaScriptIcon/JavaScriptIcon.d.ts +4 -0
  360. package/typings/icons/JavaScriptIcon/index.d.ts +1 -0
  361. package/typings/icons/ListIcon/ListIcon.d.ts +10 -0
  362. package/typings/icons/NodeJSIcon/NodeJSIcon.d.ts +4 -0
  363. package/typings/icons/NodeJSIcon/index.d.ts +1 -0
  364. package/typings/icons/PHPIcon/PHPIcon.d.ts +4 -0
  365. package/typings/icons/PHPIcon/index.d.ts +1 -0
  366. package/typings/icons/PayloadIcon/PayloadIcon.d.ts +4 -0
  367. package/typings/icons/PayloadIcon/index.d.ts +1 -0
  368. package/typings/icons/PlusCircleIcon/PlusCircleIcon.d.ts +7 -0
  369. package/typings/icons/PythonIcon/PythonIcon.d.ts +4 -0
  370. package/typings/icons/PythonIcon/index.d.ts +1 -0
  371. package/typings/icons/RIcon/RIcon.d.ts +4 -0
  372. package/typings/icons/RIcon/index.d.ts +1 -0
  373. package/typings/icons/RubyIcon/RubyIcon.d.ts +4 -0
  374. package/typings/icons/RubyIcon/index.d.ts +1 -0
  375. package/typings/index.d.ts +9 -8
  376. package/typings/jotai/app.d.ts +75 -0
  377. package/typings/jotai/examples.d.ts +5 -0
  378. package/typings/jotai/graphql.d.ts +10 -0
  379. package/typings/jotai/itemStore.d.ts +51 -0
  380. package/typings/jotai/routes.d.ts +4 -0
  381. package/typings/jotai/schema.d.ts +3 -0
  382. package/typings/jotai/store.d.ts +22 -0
  383. package/typings/jotai/telemetry.d.ts +46 -0
  384. package/typings/options/constants.d.ts +10 -0
  385. package/typings/options/editionOverrides.d.ts +3 -0
  386. package/typings/options/helpers.d.ts +25 -0
  387. package/typings/options/normalizeOptions.d.ts +2 -0
  388. package/typings/options/standaloneLayoutVars.d.ts +3 -0
  389. package/typings/otel-semantic-conventions.d.ts +10 -0
  390. package/typings/pages/EntryPage.d.ts +25 -0
  391. package/typings/pages/GroupPage.d.ts +1 -0
  392. package/typings/pages/ItemPage.d.ts +1 -0
  393. package/typings/pages/NotFoundPage.d.ts +6 -0
  394. package/typings/pages/OverviewPage.d.ts +1 -0
  395. package/typings/pages/TopLevelEntryView.d.ts +17 -0
  396. package/typings/services/agent-tools/index.d.ts +11 -0
  397. package/typings/services/agent-tools/operations.d.ts +20 -0
  398. package/typings/services/agent-tools/results.d.ts +6 -0
  399. package/typings/services/agent-tools/security.d.ts +13 -0
  400. package/typings/services/agent-tools/spec-slice-detail.d.ts +12 -0
  401. package/typings/services/agent-tools/types.d.ts +54 -0
  402. package/typings/services/agent-tools/webmcp.d.ts +14 -0
  403. package/typings/services/code-samples/apply-env-variables.d.ts +8 -0
  404. package/typings/services/code-samples/convertSampleToString.d.ts +3 -0
  405. package/typings/services/code-samples/discriminator.d.ts +66 -0
  406. package/typings/services/code-samples/example-key.d.ts +25 -0
  407. package/typings/services/code-samples/index.d.ts +2 -0
  408. package/typings/services/code-samples/language-availability.d.ts +4 -0
  409. package/typings/services/code-samples/normalize-servers.d.ts +3 -0
  410. package/typings/services/code-samples/server-env.d.ts +3 -0
  411. package/typings/services/code-samples/server-variables.d.ts +11 -0
  412. package/typings/services/code-samples/source.d.ts +104 -0
  413. package/typings/services/schema/dialects/graphqlSchema.d.ts +1 -0
  414. package/typings/services/schema/dialects/jsonSchema.d.ts +7 -0
  415. package/typings/services/schema/index.d.ts +1 -0
  416. package/typings/services/schema/propertyBuilder.d.ts +32 -0
  417. package/typings/services/schema/propertyTreeBuilder.d.ts +21 -0
  418. package/typings/services/schema/schemaProcessor.d.ts +2 -0
  419. package/typings/services/schema/variant-label.d.ts +6 -0
  420. package/typings/services/search/engine/collapse.d.ts +5 -0
  421. package/typings/services/search/engine/constants.d.ts +22 -0
  422. package/typings/services/search/engine/flexsearch.d.ts +6 -0
  423. package/typings/services/search/engine/index.d.ts +11 -0
  424. package/typings/services/search/engine/lowered.d.ts +34 -0
  425. package/typings/services/search/engine/match.d.ts +12 -0
  426. package/typings/services/search/engine/present.d.ts +5 -0
  427. package/typings/services/search/engine/query.d.ts +6 -0
  428. package/typings/services/search/engine/score.d.ts +7 -0
  429. package/typings/services/search/engine/text.d.ts +3 -0
  430. package/typings/services/search/engine/types.d.ts +19 -0
  431. package/typings/services/search/highlight.d.ts +3 -0
  432. package/typings/services/search/index.d.ts +4 -0
  433. package/typings/services/search/indexer/context.d.ts +8 -0
  434. package/typings/services/search/indexer/deep-links.d.ts +12 -0
  435. package/typings/services/search/indexer/extractors/asyncapi.d.ts +8 -0
  436. package/typings/services/search/indexer/extractors/body.d.ts +2 -0
  437. package/typings/services/search/indexer/extractors/callbacks.d.ts +4 -0
  438. package/typings/services/search/indexer/extractors/context.d.ts +25 -0
  439. package/typings/services/search/indexer/extractors/examples.d.ts +3 -0
  440. package/typings/services/search/indexer/extractors/graphql.d.ts +2 -0
  441. package/typings/services/search/indexer/extractors/heading-sections.d.ts +3 -0
  442. package/typings/services/search/indexer/extractors/index.d.ts +12 -0
  443. package/typings/services/search/indexer/extractors/mcp.d.ts +9 -0
  444. package/typings/services/search/indexer/extractors/named-rows.d.ts +9 -0
  445. package/typings/services/search/indexer/extractors/panels.d.ts +10 -0
  446. package/typings/services/search/indexer/extractors/parameters.d.ts +2 -0
  447. package/typings/services/search/indexer/extractors/responses.d.ts +2 -0
  448. package/typings/services/search/indexer/extractors/schema-page.d.ts +9 -0
  449. package/typings/services/search/indexer/extractors/security.d.ts +4 -0
  450. package/typings/services/search/indexer/index.d.ts +14 -0
  451. package/typings/services/search/indexer/param.d.ts +7 -0
  452. package/typings/services/search/indexer/places.d.ts +42 -0
  453. package/typings/services/search/indexer/schema-walker.d.ts +29 -0
  454. package/typings/services/search/indexer/text.d.ts +2 -0
  455. package/typings/services/search/init.d.ts +7 -0
  456. package/typings/services/search/text-match.d.ts +5 -0
  457. package/typings/services/search/types.d.ts +32 -0
  458. package/typings/services/spec-slice/assistant-links.d.ts +9 -0
  459. package/typings/services/spec-slice/asyncapi-slice.d.ts +5 -0
  460. package/typings/services/spec-slice/clone-strip.d.ts +1 -0
  461. package/typings/services/spec-slice/component-closure.d.ts +6 -0
  462. package/typings/services/spec-slice/graphql-slice.d.ts +2 -0
  463. package/typings/services/spec-slice/index.d.ts +6 -0
  464. package/typings/services/spec-slice/openapi-slice.d.ts +6 -0
  465. package/typings/services/spec-slice/resolve-scope.d.ts +4 -0
  466. package/typings/services/spec-slice/types.d.ts +37 -0
  467. package/typings/standalone.d.ts +20 -0
  468. package/typings/standaloneThemeConfig.d.ts +3 -0
  469. package/typings/telemetry/RedocTelemetry.d.ts +22 -0
  470. package/typings/telemetry/TypeOfUsageContext.d.ts +3 -0
  471. package/typings/telemetry/defaults.d.ts +7 -0
  472. package/typings/telemetry/events.d.ts +42 -0
  473. package/typings/telemetry/fields.d.ts +7 -0
  474. package/typings/telemetry/index.d.ts +15 -0
  475. package/typings/telemetry/initialPayload.d.ts +56 -0
  476. package/typings/telemetry/page.d.ts +5 -0
  477. package/typings/telemetry/reportDefinitionLoadFailed.d.ts +9 -0
  478. package/typings/telemetry/sanitizeError.d.ts +4 -0
  479. package/typings/telemetry/security.d.ts +15 -0
  480. package/typings/telemetry/useRedocTelemetryInstance.d.ts +3 -0
  481. package/typings/telemetry/useSchemaFieldTelemetry.d.ts +4 -0
  482. package/typings/telemetry/useSidebarItemTelemetry.d.ts +11 -0
  483. package/typings/types/asyncapi.d.ts +348 -0
  484. package/typings/types/code-samples-config.d.ts +12 -0
  485. package/typings/types/common.d.ts +162 -0
  486. package/typings/types/content.d.ts +503 -0
  487. package/typings/types/edition-config.d.ts +6 -0
  488. package/typings/types/events.d.ts +64 -0
  489. package/typings/types/graphql-store.d.ts +60 -0
  490. package/typings/types/graphql.d.ts +54 -0
  491. package/typings/types/index.d.ts +10 -2
  492. package/typings/types/openapi.d.ts +556 -0
  493. package/typings/types/options.d.ts +132 -0
  494. package/typings/types/pluggable.d.ts +4 -0
  495. package/typings/types/schema.d.ts +156 -0
  496. package/typings/types/store.d.ts +176 -0
  497. package/typings/url-compat.d.ts +22 -0
  498. package/typings/utils/calculateMaxLength.d.ts +6 -0
  499. package/typings/utils/compose.d.ts +8 -0
  500. package/typings/utils/cookies.d.ts +7 -0
  501. package/typings/utils/deep-link.d.ts +171 -0
  502. package/typings/utils/definitionLoadError.d.ts +7 -0
  503. package/typings/utils/environments.d.ts +6 -0
  504. package/typings/utils/expansion.d.ts +3 -0
  505. package/typings/utils/extract-extensions.d.ts +4 -0
  506. package/typings/utils/form-urlencoded.d.ts +6 -0
  507. package/typings/utils/graphql-directive-utils.d.ts +6 -0
  508. package/typings/utils/graphql-parse.d.ts +1 -0
  509. package/typings/utils/graphql-reference-map.d.ts +3 -0
  510. package/typings/utils/graphql-samples.d.ts +25 -0
  511. package/typings/utils/graphql-scopes.d.ts +6 -0
  512. package/typings/utils/graphql-type-expansion.d.ts +5 -0
  513. package/typings/utils/http-methods.d.ts +8 -0
  514. package/typings/utils/is-record.d.ts +1 -0
  515. package/typings/utils/languages.d.ts +18 -0
  516. package/typings/utils/loadAndBundleSpec.d.ts +4 -3
  517. package/typings/utils/logo.d.ts +8 -0
  518. package/typings/utils/media-type.d.ts +7 -0
  519. package/typings/utils/multipart.d.ts +7 -0
  520. package/typings/utils/overview-partial-sections.d.ts +7 -0
  521. package/typings/utils/refPointer.d.ts +2 -0
  522. package/typings/utils/resolveText.d.ts +2 -0
  523. package/typings/utils/routeKind.d.ts +6 -0
  524. package/typings/utils/routing.d.ts +51 -0
  525. package/typings/utils/scroll-anchoring.d.ts +4 -0
  526. package/typings/utils/security-scope.d.ts +3 -0
  527. package/typings/utils/serialize-parameter.d.ts +8 -0
  528. package/typings/utils/serialize-querystring.d.ts +6 -0
  529. package/typings/utils/session-storage.d.ts +2 -0
  530. package/typings/utils/split-badges-by-position.d.ts +5 -0
  531. package/typings/utils/status-code.d.ts +1 -0
  532. package/typings/utils/string.d.ts +18 -0
  533. package/typings/utils/telemetry.d.ts +1 -0
  534. package/typings/utils/url.d.ts +9 -0
  535. package/typings/utils/x-logo.d.ts +13 -0
  536. package/typings/utils/xml.d.ts +1 -0
  537. package/typings/yaml-compat.d.ts +7 -0
  538. package/bundles/d87bcbdbea8f8f5aa26f.worker.js.LICENSE.txt +0 -68
  539. package/bundles/d87bcbdbea8f8f5aa26f.worker.js.map +0 -1
  540. package/bundles/redoc.browser.lib.js +0 -1845
  541. package/bundles/redoc.browser.lib.js.LICENSE.txt +0 -6
  542. package/bundles/redoc.browser.lib.js.map +0 -1
  543. package/bundles/redoc.lib.js +0 -1845
  544. package/bundles/redoc.lib.js.LICENSE.txt +0 -6
  545. package/bundles/redoc.lib.js.map +0 -1
  546. package/bundles/redoc.standalone.js.LICENSE.txt +0 -102
  547. package/bundles/redoc.standalone.js.map +0 -1
  548. package/typings/common-elements/CopyButtonWrapper.d.ts +0 -10
  549. package/typings/common-elements/Dropdown/Dropdown.d.ts +0 -3
  550. package/typings/common-elements/Dropdown/index.d.ts +0 -2
  551. package/typings/common-elements/Dropdown/styled.d.ts +0 -7
  552. package/typings/common-elements/Dropdown/types.d.ts +0 -23
  553. package/typings/common-elements/PrismDiv.d.ts +0 -1
  554. package/typings/common-elements/Tooltip.d.ts +0 -8
  555. package/typings/common-elements/fields-layout.d.ts +0 -14
  556. package/typings/common-elements/fields.d.ts +0 -20
  557. package/typings/common-elements/headers.d.ts +0 -6
  558. package/typings/common-elements/index.d.ts +0 -11
  559. package/typings/common-elements/linkify.d.ts +0 -10
  560. package/typings/common-elements/mixins.d.ts +0 -1
  561. package/typings/common-elements/panels.d.ts +0 -11
  562. package/typings/common-elements/perfect-scrollbar.d.ts +0 -19
  563. package/typings/common-elements/samples.d.ts +0 -5
  564. package/typings/common-elements/schema.d.ts +0 -8
  565. package/typings/common-elements/shelfs.d.ts +0 -13
  566. package/typings/common-elements/tabs.d.ts +0 -3
  567. package/typings/components/ApiInfo/ApiInfo.d.ts +0 -8
  568. package/typings/components/ApiInfo/index.d.ts +0 -1
  569. package/typings/components/ApiInfo/styled.elements.d.ts +0 -8
  570. package/typings/components/ApiLogo/ApiLogo.d.ts +0 -7
  571. package/typings/components/ApiLogo/styled.elements.d.ts +0 -4
  572. package/typings/components/CallbackSamples/CallbackReqSamples.d.ts +0 -11
  573. package/typings/components/CallbackSamples/CallbackSamples.d.ts +0 -13
  574. package/typings/components/Callbacks/CallbackDetails.d.ts +0 -8
  575. package/typings/components/Callbacks/CallbackOperation.d.ts +0 -8
  576. package/typings/components/Callbacks/CallbackTitle.d.ts +0 -10
  577. package/typings/components/Callbacks/CallbacksList.d.ts +0 -8
  578. package/typings/components/Callbacks/index.d.ts +0 -3
  579. package/typings/components/Callbacks/styled.elements.d.ts +0 -2
  580. package/typings/components/ContentItems/ContentItems.d.ts +0 -22
  581. package/typings/components/DropdownOrLabel/DropdownOrLabel.d.ts +0 -10
  582. package/typings/components/Endpoint/Endpoint.d.ts +0 -16
  583. package/typings/components/Endpoint/styled.elements.d.ts +0 -17
  584. package/typings/components/ExternalDocumentation/ExternalDocumentation.d.ts +0 -8
  585. package/typings/components/Fields/ArrayItemDetails.d.ts +0 -5
  586. package/typings/components/Fields/EnumValues.d.ts +0 -17
  587. package/typings/components/Fields/Examples.d.ts +0 -5
  588. package/typings/components/Fields/Extensions.d.ts +0 -9
  589. package/typings/components/Fields/Field.d.ts +0 -20
  590. package/typings/components/Fields/FieldConstraints.d.ts +0 -7
  591. package/typings/components/Fields/FieldDetail.d.ts +0 -7
  592. package/typings/components/Fields/FieldDetails.d.ts +0 -4
  593. package/typings/components/Fields/Pattern.d.ts +0 -5
  594. package/typings/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +0 -22
  595. package/typings/components/JsonViewer/JsonViewer.d.ts +0 -6
  596. package/typings/components/JsonViewer/index.d.ts +0 -1
  597. package/typings/components/JsonViewer/style.d.ts +0 -1
  598. package/typings/components/Loading/Loading.d.ts +0 -7
  599. package/typings/components/Loading/Spinner.svg.d.ts +0 -5
  600. package/typings/components/Markdown/AdvancedMarkdown.d.ts +0 -11
  601. package/typings/components/Markdown/Markdown.d.ts +0 -17
  602. package/typings/components/Markdown/SanitizedMdBlock.d.ts +0 -7
  603. package/typings/components/Markdown/styled.elements.d.ts +0 -7
  604. package/typings/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +0 -17
  605. package/typings/components/Operation/Operation.d.ts +0 -5
  606. package/typings/components/OptionsProvider.d.ts +0 -5
  607. package/typings/components/Parameters/Parameters.d.ts +0 -16
  608. package/typings/components/Parameters/ParametersGroup.d.ts +0 -9
  609. package/typings/components/PayloadSamples/Example.d.ts +0 -8
  610. package/typings/components/PayloadSamples/ExampleValue.d.ts +0 -6
  611. package/typings/components/PayloadSamples/MediaTypeSamples.d.ts +0 -18
  612. package/typings/components/PayloadSamples/PayloadSamples.d.ts +0 -9
  613. package/typings/components/PayloadSamples/exernalExampleHook.d.ts +0 -2
  614. package/typings/components/PayloadSamples/styled.elements.d.ts +0 -7
  615. package/typings/components/Redoc/Redoc.d.ts +0 -14
  616. package/typings/components/Redoc/styled.elements.d.ts +0 -3
  617. package/typings/components/RedocStandalone.d.ts +0 -9
  618. package/typings/components/RequestSamples/RequestSamples.d.ts +0 -11
  619. package/typings/components/ResponseSamples/ResponseSamples.d.ts +0 -9
  620. package/typings/components/Responses/Response.d.ts +0 -6
  621. package/typings/components/Responses/ResponseDetails.d.ts +0 -8
  622. package/typings/components/Responses/ResponseHeaders.d.ts +0 -8
  623. package/typings/components/Responses/ResponseTitle.d.ts +0 -11
  624. package/typings/components/Responses/ResponsesList.d.ts +0 -9
  625. package/typings/components/Responses/styled.elements.d.ts +0 -6
  626. package/typings/components/Schema/ArraySchema.d.ts +0 -5
  627. package/typings/components/Schema/DiscriminatorDropdown.d.ts +0 -11
  628. package/typings/components/Schema/ObjectSchema.d.ts +0 -11
  629. package/typings/components/Schema/OneOfSchema.d.ts +0 -15
  630. package/typings/components/Schema/RecursiveSchema.d.ts +0 -3
  631. package/typings/components/Schema/Schema.d.ts +0 -15
  632. package/typings/components/Schema/index.d.ts +0 -5
  633. package/typings/components/SchemaDefinition/SchemaDefinition.d.ts +0 -18
  634. package/typings/components/SearchBox/SearchBox.d.ts +0 -32
  635. package/typings/components/SearchBox/styled.elements.d.ts +0 -12
  636. package/typings/components/SecurityRequirement/OAuthFlow.d.ts +0 -9
  637. package/typings/components/SecurityRequirement/RequiredScopesRow.d.ts +0 -3
  638. package/typings/components/SecurityRequirement/SecurityDetails.d.ts +0 -8
  639. package/typings/components/SecurityRequirement/SecurityHeader.d.ts +0 -8
  640. package/typings/components/SecurityRequirement/SecurityRequirement.d.ts +0 -6
  641. package/typings/components/SecurityRequirement/styled.elements.d.ts +0 -17
  642. package/typings/components/SecuritySchemes/SecuritySchemes.d.ts +0 -14
  643. package/typings/components/SeeMore/SeeMore.d.ts +0 -7
  644. package/typings/components/SelectOnClick/SelectOnClick.d.ts +0 -6
  645. package/typings/components/SideMenu/Logo.d.ts +0 -1
  646. package/typings/components/SideMenu/MenuItem.d.ts +0 -22
  647. package/typings/components/SideMenu/MenuItems.d.ts +0 -13
  648. package/typings/components/SideMenu/index.d.ts +0 -4
  649. package/typings/components/SideMenu/styled.elements.d.ts +0 -30
  650. package/typings/components/SourceCode/SourceCode.d.ts +0 -7
  651. package/typings/components/StickySidebar/ChevronSvg.d.ts +0 -4
  652. package/typings/components/StickySidebar/StickyResponsiveSidebar.d.ts +0 -23
  653. package/typings/components/StoreBuilder.d.ts +0 -26
  654. package/typings/components/index.d.ts +0 -34
  655. package/typings/services/AppStore.d.ts +0 -33
  656. package/typings/services/ClipboardService.d.ts +0 -8
  657. package/typings/services/HistoryService.d.ts +0 -12
  658. package/typings/services/Labels.d.ts +0 -3
  659. package/typings/services/MarkdownRenderer.d.ts +0 -26
  660. package/typings/services/MarkerService.d.ts +0 -11
  661. package/typings/services/MenuBuilder.d.ts +0 -50
  662. package/typings/services/MenuStore.d.ts +0 -89
  663. package/typings/services/OpenAPIParser.d.ts +0 -50
  664. package/typings/services/RedocNormalizedOptions.d.ts +0 -123
  665. package/typings/services/ScrollService.d.ts +0 -17
  666. package/typings/services/SearchStore.d.ts +0 -16
  667. package/typings/services/SearchWorker.worker.d.ts +0 -20
  668. package/typings/services/SpecStore.d.ts +0 -20
  669. package/typings/services/index.d.ts +0 -14
  670. package/typings/services/models/ApiInfo.d.ts +0 -23
  671. package/typings/services/models/Callback.d.ts +0 -11
  672. package/typings/services/models/Example.d.ts +0 -13
  673. package/typings/services/models/Field.d.ts +0 -32
  674. package/typings/services/models/Group.model.d.ts +0 -25
  675. package/typings/services/models/MediaContent.d.ts +0 -24
  676. package/typings/services/models/MediaType.d.ts +0 -20
  677. package/typings/services/models/Operation.d.ts +0 -72
  678. package/typings/services/models/RequestBody.d.ts +0 -17
  679. package/typings/services/models/Response.d.ts +0 -26
  680. package/typings/services/models/Schema.d.ts +0 -62
  681. package/typings/services/models/SecurityRequirement.d.ts +0 -12
  682. package/typings/services/models/SecuritySchemes.d.ts +0 -26
  683. package/typings/services/models/Webhook.d.ts +0 -9
  684. package/typings/services/models/index.d.ts +0 -13
  685. package/typings/services/types.d.ts +0 -106
  686. package/typings/styled-components.d.ts +0 -12
  687. package/typings/styled-patch.d.ts +0 -22
  688. package/typings/theme.d.ts +0 -163
  689. package/typings/types/index.ts +0 -3
  690. package/typings/types/open-api.d.ts +0 -314
  691. package/typings/types/open-api.ts +0 -304
  692. package/typings/utils/debug.d.ts +0 -2
  693. package/typings/utils/decorators.d.ts +0 -1
  694. package/typings/utils/dom.d.ts +0 -9
  695. package/typings/utils/helpers.d.ts +0 -43
  696. package/typings/utils/index.d.ts +0 -10
  697. package/typings/utils/jsonToHtml.d.ts +0 -1
  698. package/typings/utils/memoize.d.ts +0 -1
  699. package/typings/utils/openapi.d.ts +0 -43
  700. package/typings/utils/sort.d.ts +0 -6
@@ -0,0 +1,36 @@
1
+ import type { ReactElement, ReactNode } from 'react';
2
+ import type { ApiItem, ApiStore } from './types/store.js';
3
+ import type { ApiSpecType } from './types/common.js';
4
+ import type { RawApiDocsOptions } from './types/options.js';
5
+ import type { MarkdownAdapter } from './contexts/markdownAdapter.js';
6
+ import type { RedoclyApiDocsStandaloneProps } from './RedoclyApiDocsStandalone.js';
7
+ import type { BuildTimings } from './telemetry/index.js';
8
+ type RedocStandaloneProps = {
9
+ /** Parsed API description object, or a GraphQL SDL string. */
10
+ spec?: Record<string, unknown> | string;
11
+ /** URL of the API description. Ignored when `spec` is provided. */
12
+ specUrl?: string;
13
+ options?: Partial<RawApiDocsOptions>;
14
+ basePath?: string;
15
+ logo?: RedoclyApiDocsStandaloneProps['logo'];
16
+ markdownAdapter?: MarkdownAdapter;
17
+ onLoaded?: (error?: Error) => void;
18
+ /** Rendered while the spec is loading. */
19
+ children?: ReactNode;
20
+ };
21
+ type PreparedApiDocs = {
22
+ items: ApiItem[];
23
+ store: ApiStore;
24
+ options: RawApiDocsOptions;
25
+ specType: ApiSpecType;
26
+ /** Bundled spec, or the raw SDL string for GraphQL. */
27
+ document?: Record<string, unknown> | string;
28
+ timings: BuildTimings;
29
+ };
30
+ declare function prepareApiDocs({ spec, specUrl, options, basePath }: Pick<RedocStandaloneProps, 'spec' | 'specUrl' | 'options' | 'basePath'>): Promise<PreparedApiDocs>;
31
+ declare function isTelemetryDisabled(value: unknown): boolean;
32
+ /** Loads and bundles the spec, builds the item model, and renders `RedoclyApiDocsStandalone`. */
33
+ declare const RedocStandalone: ({ spec, specUrl, options, basePath, logo, markdownAdapter, onLoaded, children, }: RedocStandaloneProps) => ReactElement | null;
34
+ export { RedocStandalone, prepareApiDocs, isTelemetryDisabled };
35
+ export type { RedocStandaloneProps };
36
+ export default RedocStandalone;
@@ -0,0 +1,23 @@
1
+ import { type ReactElement } from 'react';
2
+ import type { LayoutVariant } from '@redocly/config';
3
+ import type { ApiItem, ApiStore } from './types/store.js';
4
+ import type { RawApiDocsOptions } from './types/options.js';
5
+ import { type MarkdownAdapter } from './contexts/markdownAdapter.js';
6
+ import { type InitialTelemetryContext, type RedocTelemetryConfig } from './telemetry/index.js';
7
+ type RedoclyApiDocsInnerProps = {
8
+ items: ApiItem[];
9
+ basePath: string;
10
+ markdownAdapter: MarkdownAdapter;
11
+ telemetryConfig?: Partial<RedocTelemetryConfig>;
12
+ initialTelemetry?: InitialTelemetryContext;
13
+ };
14
+ type RedoclyApiDocsProps = RedoclyApiDocsInnerProps & {
15
+ store: ApiStore;
16
+ options: RawApiDocsOptions;
17
+ layout?: LayoutVariant;
18
+ };
19
+ declare const RedoclyApiDocsComponent: (props: RedoclyApiDocsInnerProps) => ReactElement;
20
+ declare const RedoclyApiDocs: import("react").FC<any>;
21
+ export { RedoclyApiDocs, RedoclyApiDocsComponent };
22
+ export type { RedoclyApiDocsProps };
23
+ export default RedoclyApiDocs;
@@ -0,0 +1,22 @@
1
+ import type { ApiItem, ApiStore } from './types/store.js';
2
+ import type { RawApiDocsOptions } from './types/options.js';
3
+ import type { RedocTelemetryConfig } from './telemetry/RedocTelemetry.js';
4
+ import type { MarkdownAdapter } from './contexts/markdownAdapter.js';
5
+ import type { RawLogo } from './types/common.js';
6
+ import type { BuildTimings } from './telemetry/index.js';
7
+ type RedoclyApiDocsStandaloneProps = {
8
+ items: ApiItem[];
9
+ store: ApiStore;
10
+ basePath: string;
11
+ options: RawApiDocsOptions;
12
+ logo?: RawLogo;
13
+ telemetryConfig?: Partial<RedocTelemetryConfig>;
14
+ markdownAdapter?: MarkdownAdapter;
15
+ spec?: Record<string, unknown> | string;
16
+ specUrl?: string;
17
+ buildTimings?: BuildTimings;
18
+ };
19
+ declare const RedoclyApiDocsStandalone: import("react").FC<any>;
20
+ export { RedoclyApiDocsStandalone };
21
+ export type { RedoclyApiDocsStandaloneProps };
22
+ export default RedoclyApiDocsStandalone;
@@ -0,0 +1,9 @@
1
+ import type { AsyncApiDefinition, AsyncApiBuildContext as BuildContext } from '../../../types/asyncapi.js';
2
+ import type { AdapterBuildContextInput, StoreContext } from '../../../types/store.js';
3
+ type CreateBuildContextInputWithDocument = AdapterBuildContextInput & {
4
+ document: AsyncApiDefinition;
5
+ storeCtx: StoreContext;
6
+ processContent?: boolean;
7
+ };
8
+ export declare function createBuildContext({ document, options, basePath, storeCtx, processContent }: CreateBuildContextInputWithDocument): BuildContext;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { ApiItem } from '../../../types/store.js';
2
+ export declare function buildNavigationItems(): ApiItem[];
@@ -0,0 +1,3 @@
1
+ import type { ProtocolVariant, AsyncApiDefinition } from '../../../types/asyncapi.js';
2
+ export declare function findFirstBinding(obj: unknown, visited?: Set<unknown>): ProtocolVariant | null;
3
+ export declare function mapChannelToOperations(rawAsyncApiDoc: AsyncApiDefinition): Record<string, string[]>;
@@ -0,0 +1,2 @@
1
+ import type { AsyncApiBuildContext as BuildContext } from '../../types/asyncapi.js';
2
+ export declare const asyncApiContext: import("../scopedContext.js").ScopedContext<BuildContext>;
@@ -0,0 +1,13 @@
1
+ import type { ApiDocAdapterProps, ApiItem, ApiStore, StoreContext } from '../../types/store.js';
2
+ import type { AsyncApiDefinition } from '../../types/asyncapi.js';
3
+ export declare function processAsyncApiDocument(props: ApiDocAdapterProps & {
4
+ document: AsyncApiDefinition;
5
+ processContent?: boolean;
6
+ }): {
7
+ items: ApiItem[];
8
+ store: ApiStore;
9
+ };
10
+ export declare function buildAsyncApiItems({ document, options, basePath, processContent }: ApiDocAdapterProps & {
11
+ document: AsyncApiDefinition;
12
+ processContent?: boolean;
13
+ }, storeCtx: StoreContext): ApiItem[];
@@ -0,0 +1,5 @@
1
+ import type { ApiItemContent, MessageReferencesGroups } from '../../../../types/content.js';
2
+ import type { AsyncApiChannel, AsyncApiDefinition, ProtocolVariant } from '../../../../types/asyncapi.js';
3
+ import type { ParseMarkdownOptions } from '../../../utils/parseMarkdown.js';
4
+ export declare function buildMessageReferencesGroups(document: AsyncApiDefinition, messageKey: string, protocol: ProtocolVariant | null | undefined): MessageReferencesGroups;
5
+ export declare function buildChannelContent(channelId: string, channel: AsyncApiChannel, document: AsyncApiDefinition, markdownOptions: ParseMarkdownOptions, protocol?: ProtocolVariant | null): ApiItemContent;
@@ -0,0 +1,13 @@
1
+ import type { ApiItem } from '../../../../types/store.js';
2
+ import type { AsyncApiChannel } from '../../../../types/asyncapi.js';
3
+ export declare function buildTaggedChannelItem({ channelId, channel, operationIds, tagName }: {
4
+ channelId: string;
5
+ channel: AsyncApiChannel;
6
+ operationIds: string[];
7
+ tagName: string;
8
+ }): ApiItem;
9
+ export declare function buildUntaggedChannelItem({ channelId, channel, operationIds }: {
10
+ channelId: string;
11
+ channel: AsyncApiChannel;
12
+ operationIds: string[];
13
+ }): ApiItem;
@@ -0,0 +1,4 @@
1
+ import type { ApiItemContent } from '../../../../types/content.js';
2
+ import type { AsyncApiDefinition, AsyncApiOperation, ProtocolVariant } from '../../../../types/asyncapi.js';
3
+ import type { ApiDocsOptions } from '../../../../types/options.js';
4
+ export declare function buildOperationContent(operationId: string, operation: AsyncApiOperation, document: AsyncApiDefinition, pageSlug: string, options: ApiDocsOptions, protocol?: ProtocolVariant | null, groupHeaderLabel?: string, showDivider?: boolean): ApiItemContent;
@@ -0,0 +1,15 @@
1
+ import type { ApiItem } from '../../../../types/store.js';
2
+ import type { AsyncApiDefinition, AsyncApiOperation, ProtocolVariant } from '../../../../types/asyncapi.js';
3
+ import type { ApiDocsOptions } from '../../../../types/options.js';
4
+ export declare function buildOperationItem({ operationId, operation, linkParts, channelBindings, document, options, protocol, groupHeaderLabel, processContent, showDivider }: {
5
+ operationId: string;
6
+ operation: AsyncApiOperation;
7
+ linkParts: string[];
8
+ channelBindings?: Record<string, unknown>;
9
+ document: AsyncApiDefinition;
10
+ options: ApiDocsOptions;
11
+ protocol?: ProtocolVariant | null;
12
+ groupHeaderLabel?: string;
13
+ processContent?: boolean;
14
+ showDivider?: boolean;
15
+ }): ApiItem;
@@ -0,0 +1,10 @@
1
+ import type { AsyncApiDefinition } from '../../../../types/asyncapi.js';
2
+ import type { ApiItemContent, ContentNode } from '../../../../types/content.js';
3
+ import type { ApiDocsOptions } from '../../../../types/options.js';
4
+ export declare function buildOverviewContent({ document, options, protocol, sectionChildren, basePath }: {
5
+ document: AsyncApiDefinition;
6
+ options: ApiDocsOptions;
7
+ protocol: string | null;
8
+ sectionChildren: ContentNode[];
9
+ basePath: string;
10
+ }): ApiItemContent;
@@ -0,0 +1,16 @@
1
+ import type { ApiItem } from '../../../../types/store.js';
2
+ import type { ContentNode } from '../../../../types/content.js';
3
+ import type { AsyncApiDefinition } from '../../../../types/asyncapi.js';
4
+ import type { ApiDocsOptions } from '../../../../types/options.js';
5
+ type Options = {
6
+ basePath: string;
7
+ document: AsyncApiDefinition;
8
+ options: ApiDocsOptions;
9
+ protocol: string | null;
10
+ sectionChildren: ContentNode[];
11
+ processContent?: boolean;
12
+ };
13
+ export declare function buildOverviewItem(info: {
14
+ title?: string;
15
+ }, options: Options): ApiItem;
16
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { AsyncApiServer } from '../../../types/asyncapi.js';
2
+ import type { ParseMarkdownOptions } from '../../utils/parseMarkdown.js';
3
+ import { type BrokersNode } from '../../../types/content.js';
4
+ export declare function buildBrokersPanelContent(servers: Record<string, AsyncApiServer>, protocol: string | null, markdownOptions: ParseMarkdownOptions): BrokersNode;
@@ -0,0 +1,3 @@
1
+ import type { DownloadNode } from '../../../types/content.js';
2
+ import type { NormalizedDownloadUrl } from '../../../types/options.js';
3
+ export declare function buildDownloadPanelContent(downloadUrls: NormalizedDownloadUrl[]): DownloadNode;
@@ -0,0 +1,16 @@
1
+ import type { GroupItemNode } from '../../../types/content.js';
2
+ import type { AsyncApiBuildContext } from '../../../types/asyncapi.js';
3
+ import type { ApiItem } from '../../../types/store.js';
4
+ export declare function buildGroupItemsPanel({ group, protocol, channelByLink, context }: {
5
+ group: ApiItem[];
6
+ protocol: AsyncApiBuildContext['protocol'];
7
+ channelByLink: Map<string, {
8
+ bindings?: Record<string, unknown>;
9
+ } | undefined>;
10
+ context: AsyncApiBuildContext;
11
+ }): GroupItemNode['children'][0];
12
+ type VisibleGroupItem = ApiItem & {
13
+ link: string;
14
+ };
15
+ export declare function isVisibleGroupItem(item: ApiItem): item is VisibleGroupItem;
16
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { AsyncApiInfo } from '../../../types/asyncapi.js';
2
+ import { type OverviewNode } from '../../../types/content.js';
3
+ export declare function buildOverviewPanelContent(info: AsyncApiInfo): OverviewNode;
@@ -0,0 +1,3 @@
1
+ import type { ApiStore, StoreContext } from '../../types/store.js';
2
+ import type { AsyncApiDefinition } from '../../types/asyncapi.js';
3
+ export declare function populateAsyncApiStore(document: AsyncApiDefinition, existingCtx: StoreContext): ApiStore;
@@ -0,0 +1,4 @@
1
+ import type { AvroSchema } from '../../../types/asyncapi.js';
2
+ type JsonSchemaObject = Record<string, unknown>;
3
+ export declare function avroToJsonSchema(avroSchema: AvroSchema): JsonSchemaObject;
4
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { AsyncApiChannel } from '../../../types/asyncapi.js';
2
+ /** Shared by the nav item, the page header and message references so all three stay in sync. */
3
+ export declare function getChannelLabel(channel: AsyncApiChannel | undefined, channelId: string): string;
@@ -0,0 +1,24 @@
1
+ import type { AsyncApiChannelBinding, ProtocolVariant } from '../../../types/asyncapi.js';
2
+ type Options = {
3
+ channel: string;
4
+ channels: string;
5
+ servers: string;
6
+ server: string;
7
+ send: string;
8
+ receive: string;
9
+ sendLabel: string;
10
+ receiveLabel: string;
11
+ channelBinding: string;
12
+ payload: string;
13
+ };
14
+ type Params = {
15
+ protocol: string | null;
16
+ channelBindings?: AsyncApiChannelBinding;
17
+ };
18
+ export declare function componentLabelsByProtocol({ protocol, channelBindings }: Params): Options;
19
+ export declare function itemLabelsByProtocol(protocol: ProtocolVariant | null, channelBindings?: AsyncApiChannelBinding): {
20
+ channel: string;
21
+ send: string;
22
+ receive: string;
23
+ };
24
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { AsyncApiServer } from '../../../types/asyncapi.js';
2
+ /** AsyncAPI 3.x uses `host`; 2.x documents provide `url` instead. */
3
+ export declare function getServerHost(server: AsyncApiServer): string | undefined;
@@ -0,0 +1,2 @@
1
+ import type { AsyncAPISchema } from '../../../types/asyncapi.js';
2
+ export declare function resolveAsyncApiSchema(value: AsyncAPISchema | undefined): Record<string, unknown> | undefined;
@@ -0,0 +1,2 @@
1
+ import type { AsyncApiDefinition } from '../../../types/asyncapi.js';
2
+ export declare function resolveInDoc<T>(document: AsyncApiDefinition, value: unknown): T | undefined;
@@ -0,0 +1,31 @@
1
+ import type { DocumentNode } from 'graphql';
2
+ import type { ApiDocAdapterProps, ApiItem, ApiStore } from '../types/store.js';
3
+ import type { OpenAPIDefinition } from '../types/openapi.js';
4
+ import type { AsyncApiDefinition } from '../types/asyncapi.js';
5
+ import type { ApiSpecType } from '../types/common.js';
6
+ import type { RawApiDocsOptions } from '../types/options.js';
7
+ import type { MarkdownParser } from './utils/parseMarkdown.js';
8
+ type ApiDocProps = Omit<ApiDocAdapterProps, 'options'> & {
9
+ options: RawApiDocsOptions;
10
+ markdownParser: MarkdownParser;
11
+ };
12
+ type BuildItemsResult = {
13
+ items: ApiItem[];
14
+ store: ApiStore;
15
+ specType: ApiSpecType;
16
+ };
17
+ export declare function buildItems(props: ApiDocProps): Promise<BuildItemsResult>;
18
+ export declare function isOpenApiDefinition(def: ApiDocProps): def is ApiDocProps & {
19
+ type: 'openapi';
20
+ document: OpenAPIDefinition;
21
+ };
22
+ export declare function isAsyncApiDefinition(def: ApiDocProps): def is ApiDocProps & {
23
+ type: 'asyncapi';
24
+ document: AsyncApiDefinition;
25
+ };
26
+ export declare function isGraphqlDefinition(def: ApiDocProps): def is ApiDocProps & {
27
+ type: 'graphql';
28
+ document: DocumentNode;
29
+ };
30
+ export declare function buildNavItems(props: ApiDocProps): Promise<Omit<BuildItemsResult, 'store'>>;
31
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { DocumentNode, GraphQLSchema } from 'graphql';
2
+ import type { AdapterBuildContextInput } from '../../../types/store.js';
3
+ import type { GraphqlBuildContext as BuildContext } from '../../../types/graphql.js';
4
+ export type CreateBuildContextInputWithDocumentAndSchema = AdapterBuildContextInput & {
5
+ document: DocumentNode;
6
+ prebuiltSchema?: GraphQLSchema;
7
+ processContent?: boolean;
8
+ };
9
+ export declare function createBuildContext({ document, options, basePath, prebuiltSchema, processContent }: CreateBuildContextInputWithDocumentAndSchema): BuildContext;
@@ -0,0 +1,2 @@
1
+ import type { GraphqlBuildContext as BuildContext } from '../../types/graphql.js';
2
+ export declare const graphqlContext: import("../scopedContext.js").ScopedContext<BuildContext>;
@@ -0,0 +1,2 @@
1
+ import type { ApiStore } from '../../types/store.js';
2
+ export declare function buildGraphqlStoreFromSdl(sdl: string): ApiStore;
@@ -0,0 +1,2 @@
1
+ import type { ApiItem } from '../../../types/store.js';
2
+ export declare function groupByCustomMenu(): ApiItem[];
@@ -0,0 +1,2 @@
1
+ import type { ApiItem } from '../../../types/store.js';
2
+ export declare function groupByDefault(): ApiItem[];
@@ -0,0 +1 @@
1
+ export declare function getItemDoesNotMatchAnyGroupErrorMessage(itemDescription: string): string;
@@ -0,0 +1,5 @@
1
+ import type { GraphqlItemVariant } from '../../../types/graphql.js';
2
+ import type { ApiItem } from '../../../types/store.js';
3
+ import type { GraphqlMenuGroupItemsBuildParams } from '../items/types.js';
4
+ export type GraphqlMenuGroupItemsBuilder = (args?: GraphqlMenuGroupItemsBuildParams) => ApiItem[];
5
+ export declare const GRAPHQL_MENU_GROUP_ITEM_BUILDERS: Record<GraphqlItemVariant, GraphqlMenuGroupItemsBuilder>;
@@ -0,0 +1,8 @@
1
+ import type { ApiItem } from '../../../types/store.js';
2
+ import type { GraphqlItemVariant } from '../../../types/graphql.js';
3
+ export declare function createGroup({ typeGroup, items, label, parentPath }: {
4
+ items: ApiItem[];
5
+ typeGroup?: GraphqlItemVariant;
6
+ label?: string;
7
+ parentPath?: string;
8
+ }): ApiItem;
@@ -0,0 +1,10 @@
1
+ import type { DocumentNode } from 'graphql';
2
+ import type { ApiDocAdapterProps, ApiItem, ApiStore } from '../../types/store.js';
3
+ export declare function processGraphqlDocument({ document, options, basePath, processContent }: ApiDocAdapterProps & {
4
+ document: DocumentNode;
5
+ processContent?: boolean;
6
+ }): {
7
+ items: ApiItem[];
8
+ store: ApiStore;
9
+ };
10
+ export declare function buildGraphqlItems(): ApiItem[];
@@ -0,0 +1,4 @@
1
+ import type { GraphQLDirective } from 'graphql';
2
+ import type { ApiItemContent } from '../../../../types/content.js';
3
+ import type { ParseMarkdownOptions } from '../../../utils/parseMarkdown.js';
4
+ export declare function buildDirectiveContent(directive: GraphQLDirective, markdownOptions: ParseMarkdownOptions): ApiItemContent;
@@ -0,0 +1,3 @@
1
+ import type { ApiItem } from '../../../../types/store.js';
2
+ import type { GraphqlMenuGroupItemsBuildParams } from '../types.js';
3
+ export declare function buildDirectiveItems({ filter, processedItems, menuCommonFilter, parentPath }?: GraphqlMenuGroupItemsBuildParams): ApiItem[];
@@ -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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,7 @@
1
+ import type { TypeGroupFilter } from '../../../types/graphql.js';
2
+ export type GraphqlMenuGroupItemsBuildParams = {
3
+ filter?: TypeGroupFilter;
4
+ processedItems?: Set<string>;
5
+ menuCommonFilter?: TypeGroupFilter;
6
+ parentPath?: string;
7
+ };
@@ -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,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,3 @@
1
+ import type { DownloadNode } from '../../../types/content.js';
2
+ import type { NormalizedDownloadUrl } from '../../../types/options.js';
3
+ export declare function buildDownloadPanelContent(downloadUrls: NormalizedDownloadUrl[]): DownloadNode | null;
@@ -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,3 @@
1
+ import type { OverviewNode } from '../../../types/content.js';
2
+ import type { ApiDocsOptions } from '../../../types/options.js';
3
+ export declare function buildOverviewPanelContent(info: ApiDocsOptions['info'] | undefined): OverviewNode | null;
@@ -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,3 @@
1
+ import type { GraphQLSchema } from 'graphql';
2
+ import type { ApiStore } from '../../types/store.js';
3
+ export declare function populateGraphqlStore(schema: GraphQLSchema): ApiStore;
@@ -0,0 +1,3 @@
1
+ import type { ApiDocsMetadata } from '../../../types/options.js';
2
+ import type { InfoMetadataRow } from '../../../types/content.js';
3
+ export declare function buildGraphqlConfigMetadataRows(metadata: ApiDocsMetadata | undefined): InfoMetadataRow[];
@@ -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>;