@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.
Files changed (974) hide show
  1. package/LICENSE.md +1 -0
  2. package/README.md +3 -0
  3. package/lib/.tsbuildinfo +1 -0
  4. package/lib/RedoclyApiDocs.d.ts +22 -0
  5. package/lib/RedoclyApiDocs.js +1 -0
  6. package/lib/RedoclyApiDocsStandalone.d.ts +18 -0
  7. package/lib/RedoclyApiDocsStandalone.js +26 -0
  8. package/lib/adapters/asyncapi/build/context.d.ts +10 -0
  9. package/lib/adapters/asyncapi/build/context.js +1 -0
  10. package/lib/adapters/asyncapi/build/navigation.d.ts +2 -0
  11. package/lib/adapters/asyncapi/build/navigation.js +1 -0
  12. package/lib/adapters/asyncapi/build/utils.d.ts +3 -0
  13. package/lib/adapters/asyncapi/build/utils.js +1 -0
  14. package/lib/adapters/asyncapi/buildContext.d.ts +2 -0
  15. package/lib/adapters/asyncapi/buildContext.js +1 -0
  16. package/lib/adapters/asyncapi/index.d.ts +14 -0
  17. package/lib/adapters/asyncapi/index.js +1 -0
  18. package/lib/adapters/asyncapi/items/channel/content.d.ts +5 -0
  19. package/lib/adapters/asyncapi/items/channel/content.js +1 -0
  20. package/lib/adapters/asyncapi/items/channel/item.d.ts +13 -0
  21. package/lib/adapters/asyncapi/items/channel/item.js +1 -0
  22. package/lib/adapters/asyncapi/items/operation/content.d.ts +4 -0
  23. package/lib/adapters/asyncapi/items/operation/content.js +3 -0
  24. package/lib/adapters/asyncapi/items/operation/item.d.ts +15 -0
  25. package/lib/adapters/asyncapi/items/operation/item.js +1 -0
  26. package/lib/adapters/asyncapi/items/overview/content.d.ts +10 -0
  27. package/lib/adapters/asyncapi/items/overview/content.js +1 -0
  28. package/lib/adapters/asyncapi/items/overview/item.d.ts +16 -0
  29. package/lib/adapters/asyncapi/items/overview/item.js +1 -0
  30. package/lib/adapters/asyncapi/panels/brokers.d.ts +4 -0
  31. package/lib/adapters/asyncapi/panels/brokers.js +1 -0
  32. package/lib/adapters/asyncapi/panels/download.d.ts +3 -0
  33. package/lib/adapters/asyncapi/panels/download.js +1 -0
  34. package/lib/adapters/asyncapi/panels/group.d.ts +16 -0
  35. package/lib/adapters/asyncapi/panels/group.js +1 -0
  36. package/lib/adapters/asyncapi/panels/overview.d.ts +3 -0
  37. package/lib/adapters/asyncapi/panels/overview.js +1 -0
  38. package/lib/adapters/asyncapi/store.d.ts +4 -0
  39. package/lib/adapters/asyncapi/store.js +1 -0
  40. package/lib/adapters/asyncapi/utils/avro-to-json-schema.d.ts +4 -0
  41. package/lib/adapters/asyncapi/utils/avro-to-json-schema.js +1 -0
  42. package/lib/adapters/asyncapi/utils/get-channel-label.d.ts +3 -0
  43. package/lib/adapters/asyncapi/utils/get-channel-label.js +1 -0
  44. package/lib/adapters/asyncapi/utils/get-protocol-labels.d.ts +24 -0
  45. package/lib/adapters/asyncapi/utils/get-protocol-labels.js +1 -0
  46. package/lib/adapters/asyncapi/utils/get-server-host.d.ts +3 -0
  47. package/lib/adapters/asyncapi/utils/get-server-host.js +1 -0
  48. package/lib/adapters/asyncapi/utils/resolve-schema.d.ts +2 -0
  49. package/lib/adapters/asyncapi/utils/resolve-schema.js +1 -0
  50. package/lib/adapters/asyncapi/utils/resolveInDoc.d.ts +2 -0
  51. package/lib/adapters/asyncapi/utils/resolveInDoc.js +1 -0
  52. package/lib/adapters/build.d.ts +31 -0
  53. package/lib/adapters/build.js +1 -0
  54. package/lib/adapters/graphql/build/context.d.ts +9 -0
  55. package/lib/adapters/graphql/build/context.js +1 -0
  56. package/lib/adapters/graphql/buildContext.d.ts +2 -0
  57. package/lib/adapters/graphql/buildContext.js +1 -0
  58. package/lib/adapters/graphql/buildStoreFromSdl.d.ts +2 -0
  59. package/lib/adapters/graphql/buildStoreFromSdl.js +1 -0
  60. package/lib/adapters/graphql/group/custom.d.ts +2 -0
  61. package/lib/adapters/graphql/group/custom.js +1 -0
  62. package/lib/adapters/graphql/group/default.d.ts +2 -0
  63. package/lib/adapters/graphql/group/default.js +1 -0
  64. package/lib/adapters/graphql/group/errors.d.ts +1 -0
  65. package/lib/adapters/graphql/group/errors.js +1 -0
  66. package/lib/adapters/graphql/group/itemBuilders.d.ts +5 -0
  67. package/lib/adapters/graphql/group/itemBuilders.js +1 -0
  68. package/lib/adapters/graphql/group/utils.d.ts +8 -0
  69. package/lib/adapters/graphql/group/utils.js +1 -0
  70. package/lib/adapters/graphql/index.d.ts +10 -0
  71. package/lib/adapters/graphql/index.js +1 -0
  72. package/lib/adapters/graphql/items/directive/content.d.ts +4 -0
  73. package/lib/adapters/graphql/items/directive/content.js +1 -0
  74. package/lib/adapters/graphql/items/directive/item.d.ts +3 -0
  75. package/lib/adapters/graphql/items/directive/item.js +1 -0
  76. package/lib/adapters/graphql/items/enum/content.d.ts +4 -0
  77. package/lib/adapters/graphql/items/enum/content.js +1 -0
  78. package/lib/adapters/graphql/items/enum/item.d.ts +3 -0
  79. package/lib/adapters/graphql/items/enum/item.js +1 -0
  80. package/lib/adapters/graphql/items/input/content.d.ts +4 -0
  81. package/lib/adapters/graphql/items/input/content.js +1 -0
  82. package/lib/adapters/graphql/items/input/item.d.ts +3 -0
  83. package/lib/adapters/graphql/items/input/item.js +1 -0
  84. package/lib/adapters/graphql/items/interface/content.d.ts +4 -0
  85. package/lib/adapters/graphql/items/interface/content.js +1 -0
  86. package/lib/adapters/graphql/items/interface/item.d.ts +3 -0
  87. package/lib/adapters/graphql/items/interface/item.js +1 -0
  88. package/lib/adapters/graphql/items/mutation/content.d.ts +4 -0
  89. package/lib/adapters/graphql/items/mutation/content.js +1 -0
  90. package/lib/adapters/graphql/items/mutation/item.d.ts +3 -0
  91. package/lib/adapters/graphql/items/mutation/item.js +1 -0
  92. package/lib/adapters/graphql/items/object/content.d.ts +4 -0
  93. package/lib/adapters/graphql/items/object/content.js +1 -0
  94. package/lib/adapters/graphql/items/object/item.d.ts +3 -0
  95. package/lib/adapters/graphql/items/object/item.js +1 -0
  96. package/lib/adapters/graphql/items/operation/content.d.ts +7 -0
  97. package/lib/adapters/graphql/items/operation/content.js +1 -0
  98. package/lib/adapters/graphql/items/overview/content.d.ts +11 -0
  99. package/lib/adapters/graphql/items/overview/content.js +1 -0
  100. package/lib/adapters/graphql/items/overview/item.d.ts +4 -0
  101. package/lib/adapters/graphql/items/overview/item.js +1 -0
  102. package/lib/adapters/graphql/items/query/content.d.ts +4 -0
  103. package/lib/adapters/graphql/items/query/content.js +1 -0
  104. package/lib/adapters/graphql/items/query/item.d.ts +3 -0
  105. package/lib/adapters/graphql/items/query/item.js +1 -0
  106. package/lib/adapters/graphql/items/scalar/content.d.ts +4 -0
  107. package/lib/adapters/graphql/items/scalar/content.js +1 -0
  108. package/lib/adapters/graphql/items/scalar/item.d.ts +3 -0
  109. package/lib/adapters/graphql/items/scalar/item.js +1 -0
  110. package/lib/adapters/graphql/items/subscription/content.d.ts +4 -0
  111. package/lib/adapters/graphql/items/subscription/content.js +1 -0
  112. package/lib/adapters/graphql/items/subscription/item.d.ts +3 -0
  113. package/lib/adapters/graphql/items/subscription/item.js +1 -0
  114. package/lib/adapters/graphql/items/types.d.ts +7 -0
  115. package/lib/adapters/graphql/items/types.js +0 -0
  116. package/lib/adapters/graphql/items/union/content.d.ts +4 -0
  117. package/lib/adapters/graphql/items/union/content.js +1 -0
  118. package/lib/adapters/graphql/items/union/item.d.ts +3 -0
  119. package/lib/adapters/graphql/items/union/item.js +1 -0
  120. package/lib/adapters/graphql/panels/download.d.ts +3 -0
  121. package/lib/adapters/graphql/panels/download.js +1 -0
  122. package/lib/adapters/graphql/panels/group-items.d.ts +4 -0
  123. package/lib/adapters/graphql/panels/group-items.js +1 -0
  124. package/lib/adapters/graphql/panels/overview.d.ts +3 -0
  125. package/lib/adapters/graphql/panels/overview.js +1 -0
  126. package/lib/adapters/graphql/serializeType.d.ts +5 -0
  127. package/lib/adapters/graphql/serializeType.js +1 -0
  128. package/lib/adapters/graphql/store.d.ts +3 -0
  129. package/lib/adapters/graphql/store.js +1 -0
  130. package/lib/adapters/graphql/utils/appendGraphqlItemFeedback.d.ts +2 -0
  131. package/lib/adapters/graphql/utils/appendGraphqlItemFeedback.js +1 -0
  132. package/lib/adapters/graphql/utils/configMetadataRows.d.ts +3 -0
  133. package/lib/adapters/graphql/utils/configMetadataRows.js +1 -0
  134. package/lib/adapters/graphql/utils/constants.d.ts +23 -0
  135. package/lib/adapters/graphql/utils/constants.js +1 -0
  136. package/lib/adapters/graphql/utils/createApiItem.d.ts +15 -0
  137. package/lib/adapters/graphql/utils/createApiItem.js +1 -0
  138. package/lib/adapters/graphql/utils/getBadges.d.ts +4 -0
  139. package/lib/adapters/graphql/utils/getBadges.js +1 -0
  140. package/lib/adapters/graphql/utils/ignoreInternalItems.d.ts +3 -0
  141. package/lib/adapters/graphql/utils/ignoreInternalItems.js +1 -0
  142. package/lib/adapters/graphql/utils/isRootType.d.ts +2 -0
  143. package/lib/adapters/graphql/utils/isRootType.js +1 -0
  144. package/lib/adapters/graphql/utils/menuSlashRegex.d.ts +1 -0
  145. package/lib/adapters/graphql/utils/menuSlashRegex.js +1 -0
  146. package/lib/adapters/graphql/utils/normalizeMenu.d.ts +3 -0
  147. package/lib/adapters/graphql/utils/normalizeMenu.js +1 -0
  148. package/lib/adapters/graphql/utils/shouldIncludeItem.d.ts +2 -0
  149. package/lib/adapters/graphql/utils/shouldIncludeItem.js +1 -0
  150. package/lib/adapters/graphql/utils/summary.d.ts +4 -0
  151. package/lib/adapters/graphql/utils/summary.js +1 -0
  152. package/lib/adapters/graphql/utils/validateMenuConfig.d.ts +3 -0
  153. package/lib/adapters/graphql/utils/validateMenuConfig.js +1 -0
  154. package/lib/adapters/helpers.d.ts +47 -0
  155. package/lib/adapters/helpers.js +1 -0
  156. package/lib/adapters/openapi/build/context.d.ts +13 -0
  157. package/lib/adapters/openapi/build/context.js +1 -0
  158. package/lib/adapters/openapi/build-code-sample-source.d.ts +5 -0
  159. package/lib/adapters/openapi/build-code-sample-source.js +1 -0
  160. package/lib/adapters/openapi/buildContext.d.ts +2 -0
  161. package/lib/adapters/openapi/buildContext.js +1 -0
  162. package/lib/adapters/openapi/configure/apply-request-values.d.ts +3 -0
  163. package/lib/adapters/openapi/configure/apply-request-values.js +1 -0
  164. package/lib/adapters/openapi/configure/index.d.ts +3 -0
  165. package/lib/adapters/openapi/configure/index.js +1 -0
  166. package/lib/adapters/openapi/configure/merge-utils.d.ts +32 -0
  167. package/lib/adapters/openapi/configure/merge-utils.js +1 -0
  168. package/lib/adapters/openapi/configure/resolve-request-values.d.ts +17 -0
  169. package/lib/adapters/openapi/configure/resolve-request-values.js +1 -0
  170. package/lib/adapters/openapi/constants.d.ts +4 -0
  171. package/lib/adapters/openapi/constants.js +1 -0
  172. package/lib/adapters/openapi/group/content.d.ts +28 -0
  173. package/lib/adapters/openapi/group/content.js +1 -0
  174. package/lib/adapters/openapi/group/item.d.ts +11 -0
  175. package/lib/adapters/openapi/group/item.js +1 -0
  176. package/lib/adapters/openapi/index.d.ts +13 -0
  177. package/lib/adapters/openapi/index.js +1 -0
  178. package/lib/adapters/openapi/items/mcp/content.d.ts +5 -0
  179. package/lib/adapters/openapi/items/mcp/content.js +1 -0
  180. package/lib/adapters/openapi/items/mcp/item.d.ts +9 -0
  181. package/lib/adapters/openapi/items/mcp/item.js +1 -0
  182. package/lib/adapters/openapi/items/operation/content.d.ts +3 -0
  183. package/lib/adapters/openapi/items/operation/content.js +1 -0
  184. package/lib/adapters/openapi/items/operation/item.d.ts +9 -0
  185. package/lib/adapters/openapi/items/operation/item.js +1 -0
  186. package/lib/adapters/openapi/items/overview/content.d.ts +18 -0
  187. package/lib/adapters/openapi/items/overview/content.js +1 -0
  188. package/lib/adapters/openapi/items/overview/item.d.ts +3 -0
  189. package/lib/adapters/openapi/items/overview/item.js +1 -0
  190. package/lib/adapters/openapi/items/schema/content.d.ts +3 -0
  191. package/lib/adapters/openapi/items/schema/content.js +1 -0
  192. package/lib/adapters/openapi/items/schema/item.d.ts +9 -0
  193. package/lib/adapters/openapi/items/schema/item.js +1 -0
  194. package/lib/adapters/openapi/panels/download.d.ts +3 -0
  195. package/lib/adapters/openapi/panels/download.js +1 -0
  196. package/lib/adapters/openapi/panels/languages.d.ts +3 -0
  197. package/lib/adapters/openapi/panels/languages.js +1 -0
  198. package/lib/adapters/openapi/panels/mcp.d.ts +3 -0
  199. package/lib/adapters/openapi/panels/mcp.js +1 -0
  200. package/lib/adapters/openapi/panels/overview.d.ts +3 -0
  201. package/lib/adapters/openapi/panels/overview.js +1 -0
  202. package/lib/adapters/openapi/panels/servers.d.ts +3 -0
  203. package/lib/adapters/openapi/panels/servers.js +1 -0
  204. package/lib/adapters/openapi/resolve-openapi-example-value.d.ts +3 -0
  205. package/lib/adapters/openapi/resolve-openapi-example-value.js +1 -0
  206. package/lib/adapters/openapi/store.d.ts +4 -0
  207. package/lib/adapters/openapi/store.js +1 -0
  208. package/lib/adapters/openapi/utils/JsonPointer.d.ts +51 -0
  209. package/lib/adapters/openapi/utils/JsonPointer.js +1 -0
  210. package/lib/adapters/openapi/utils/applyIgnoreNamedSchemasDeep.d.ts +1 -0
  211. package/lib/adapters/openapi/utils/applyIgnoreNamedSchemasDeep.js +1 -0
  212. package/lib/adapters/openapi/utils/helpers.d.ts +14 -0
  213. package/lib/adapters/openapi/utils/helpers.js +1 -0
  214. package/lib/adapters/openapi/utils/merge-mock-server.d.ts +15 -0
  215. package/lib/adapters/openapi/utils/merge-mock-server.js +1 -0
  216. package/lib/adapters/openapi/utils/operation.d.ts +23 -0
  217. package/lib/adapters/openapi/utils/operation.js +1 -0
  218. package/lib/adapters/openapi/utils/resolvePathItemRef.d.ts +2 -0
  219. package/lib/adapters/openapi/utils/resolvePathItemRef.js +1 -0
  220. package/lib/adapters/openapi/utils/url.d.ts +2 -0
  221. package/lib/adapters/openapi/utils/url.js +1 -0
  222. package/lib/adapters/rbac-schema-propagation.d.ts +2 -0
  223. package/lib/adapters/rbac-schema-propagation.js +1 -0
  224. package/lib/adapters/scopedContext.d.ts +5 -0
  225. package/lib/adapters/scopedContext.js +1 -0
  226. package/lib/adapters/utils/convertSwagger2OpenAPI.d.ts +2 -0
  227. package/lib/adapters/utils/convertSwagger2OpenAPI.js +1 -0
  228. package/lib/adapters/utils/dompurify.d.ts +5 -0
  229. package/lib/adapters/utils/dompurify.js +1 -0
  230. package/lib/adapters/utils/infoMetadata.d.ts +5 -0
  231. package/lib/adapters/utils/infoMetadata.js +1 -0
  232. package/lib/adapters/utils/isPlainText.d.ts +6 -0
  233. package/lib/adapters/utils/isPlainText.js +1 -0
  234. package/lib/adapters/utils/markdoc.d.ts +38 -0
  235. package/lib/adapters/utils/markdoc.js +1 -0
  236. package/lib/adapters/utils/parseMarkdown.d.ts +8 -0
  237. package/lib/adapters/utils/parseMarkdown.js +1 -0
  238. package/lib/adapters/utils/seo.d.ts +3 -0
  239. package/lib/adapters/utils/seo.js +1 -0
  240. package/lib/adapters/utils/simplifyAstStructure.d.ts +2 -0
  241. package/lib/adapters/utils/simplifyAstStructure.js +1 -0
  242. package/lib/components/AdmonitionItem.d.ts +6 -0
  243. package/lib/components/AdmonitionItem.js +1 -0
  244. package/lib/components/ChannelAddressItem.d.ts +7 -0
  245. package/lib/components/ChannelAddressItem.js +31 -0
  246. package/lib/components/ContainerItem.d.ts +9 -0
  247. package/lib/components/ContainerItem.js +1 -0
  248. package/lib/components/EmptyMessageItem.d.ts +6 -0
  249. package/lib/components/EmptyMessageItem.js +6 -0
  250. package/lib/components/ErrorBoundary.d.ts +18 -0
  251. package/lib/components/ErrorBoundary.js +1 -0
  252. package/lib/components/ExtensionsItem.d.ts +7 -0
  253. package/lib/components/ExtensionsItem.js +1 -0
  254. package/lib/components/ExternalDocsItem.d.ts +8 -0
  255. package/lib/components/ExternalDocsItem.js +1 -0
  256. package/lib/components/FeedbackItem.d.ts +9 -0
  257. package/lib/components/FeedbackItem.js +17 -0
  258. package/lib/components/Header/HeaderItem.d.ts +91 -0
  259. package/lib/components/Header/HeaderItem.js +105 -0
  260. package/lib/components/Header/HeaderResponseCodeTabs.d.ts +8 -0
  261. package/lib/components/Header/HeaderResponseCodeTabs.js +1 -0
  262. package/lib/components/Header/ResponseDeepLinkAnchor.d.ts +9 -0
  263. package/lib/components/Header/ResponseDeepLinkAnchor.js +1 -0
  264. package/lib/components/Header/hooks.d.ts +5 -0
  265. package/lib/components/Header/hooks.js +1 -0
  266. package/lib/components/InfoMetadataItem.d.ts +7 -0
  267. package/lib/components/InfoMetadataItem.js +1 -0
  268. package/lib/components/ItemContent/ItemContentRenderer.d.ts +8 -0
  269. package/lib/components/ItemContent/ItemContentRenderer.js +11 -0
  270. package/lib/components/ItemContent/SectionHeader.d.ts +8 -0
  271. package/lib/components/ItemContent/SectionHeader.js +14 -0
  272. package/lib/components/ItemContent/hooks.d.ts +5 -0
  273. package/lib/components/ItemContent/hooks.js +1 -0
  274. package/lib/components/ItemContent/sections/BodyMimeTypeField.d.ts +12 -0
  275. package/lib/components/ItemContent/sections/BodyMimeTypeField.js +60 -0
  276. package/lib/components/ItemContent/sections/BodySection.d.ts +7 -0
  277. package/lib/components/ItemContent/sections/BodySection.js +13 -0
  278. package/lib/components/ItemContent/sections/CallbacksSection.d.ts +5 -0
  279. package/lib/components/ItemContent/sections/CallbacksSection.js +131 -0
  280. package/lib/components/ItemContent/sections/FieldsSection.d.ts +7 -0
  281. package/lib/components/ItemContent/sections/FieldsSection.js +79 -0
  282. package/lib/components/ItemContent/sections/MessagesSection.d.ts +5 -0
  283. package/lib/components/ItemContent/sections/MessagesSection.js +58 -0
  284. package/lib/components/ItemContent/sections/ParametersSection.d.ts +6 -0
  285. package/lib/components/ItemContent/sections/ParametersSection.js +4 -0
  286. package/lib/components/ItemContent/sections/ResponsesSection.d.ts +5 -0
  287. package/lib/components/ItemContent/sections/ResponsesSection.js +28 -0
  288. package/lib/components/ItemContent/sections/ValuesSection.d.ts +5 -0
  289. package/lib/components/ItemContent/sections/ValuesSection.js +26 -0
  290. package/lib/components/LicenseOverlay.d.ts +6 -0
  291. package/lib/components/LicenseOverlay.js +42 -0
  292. package/lib/components/Mapper.d.ts +25 -0
  293. package/lib/components/Mapper.js +1 -0
  294. package/lib/components/MarkdownItem.d.ts +6 -0
  295. package/lib/components/MarkdownItem.js +1 -0
  296. package/lib/components/Mcp/McpPrompt.d.ts +8 -0
  297. package/lib/components/Mcp/McpPrompt.js +1 -0
  298. package/lib/components/Mcp/McpResource.d.ts +8 -0
  299. package/lib/components/Mcp/McpResource.js +3 -0
  300. package/lib/components/Mcp/McpTool.d.ts +8 -0
  301. package/lib/components/Mcp/McpTool.js +1 -0
  302. package/lib/components/Mcp/styled.d.ts +19 -0
  303. package/lib/components/Mcp/styled.js +22 -0
  304. package/lib/components/Mcp/utils.d.ts +6 -0
  305. package/lib/components/Mcp/utils.js +1 -0
  306. package/lib/components/MessageLinksItem.d.ts +7 -0
  307. package/lib/components/MessageLinksItem.js +30 -0
  308. package/lib/components/RenderHook.d.ts +6 -0
  309. package/lib/components/RenderHook.js +1 -0
  310. package/lib/components/Replay/EmbeddedReplay.d.ts +16 -0
  311. package/lib/components/Replay/EmbeddedReplay.js +10 -0
  312. package/lib/components/Replay/Replay.d.ts +13 -0
  313. package/lib/components/Replay/Replay.js +1 -0
  314. package/lib/components/Replay/adapterToMarkdownParser.d.ts +12 -0
  315. package/lib/components/Replay/adapterToMarkdownParser.js +1 -0
  316. package/lib/components/Replay/index.d.ts +2 -0
  317. package/lib/components/Replay/index.js +1 -0
  318. package/lib/components/Schema/SchemaDescription.d.ts +5 -0
  319. package/lib/components/Schema/SchemaDescription.js +1 -0
  320. package/lib/components/Schema/SchemaView.d.ts +20 -0
  321. package/lib/components/Schema/SchemaView.js +1 -0
  322. package/lib/components/Schema/helpers.d.ts +1 -0
  323. package/lib/components/Schema/helpers.js +1 -0
  324. package/lib/components/Schema/hooks/useSchemaDocument.d.ts +7 -0
  325. package/lib/components/Schema/hooks/useSchemaDocument.js +1 -0
  326. package/lib/components/Schema/hooks/useSchemaFieldDeepLink.d.ts +5 -0
  327. package/lib/components/Schema/hooks/useSchemaFieldDeepLink.js +1 -0
  328. package/lib/components/Schema/hooks/useVariantIndexFromHash.d.ts +1 -0
  329. package/lib/components/Schema/hooks/useVariantIndexFromHash.js +1 -0
  330. package/lib/components/Schema/styled.d.ts +146 -0
  331. package/lib/components/Schema/styled.js +342 -0
  332. package/lib/components/Schema/utils.d.ts +26 -0
  333. package/lib/components/Schema/utils.js +1 -0
  334. package/lib/components/Schema/views/ArrayRenderer.d.ts +13 -0
  335. package/lib/components/Schema/views/ArrayRenderer.js +1 -0
  336. package/lib/components/Schema/views/CollapsibleNestedFields.d.ts +25 -0
  337. package/lib/components/Schema/views/CollapsibleNestedFields.js +1 -0
  338. package/lib/components/Schema/views/DefaultMappingOptionLabel.d.ts +5 -0
  339. package/lib/components/Schema/views/DefaultMappingOptionLabel.js +15 -0
  340. package/lib/components/Schema/views/DiscriminatorPropertyRow.d.ts +13 -0
  341. package/lib/components/Schema/views/DiscriminatorPropertyRow.js +1 -0
  342. package/lib/components/Schema/views/Examples.d.ts +7 -0
  343. package/lib/components/Schema/views/Examples.js +1 -0
  344. package/lib/components/Schema/views/ExpandableExample.d.ts +4 -0
  345. package/lib/components/Schema/views/ExpandableExample.js +3 -0
  346. package/lib/components/Schema/views/ObjectRenderer.d.ts +14 -0
  347. package/lib/components/Schema/views/ObjectRenderer.js +1 -0
  348. package/lib/components/Schema/views/Pattern.d.ts +6 -0
  349. package/lib/components/Schema/views/Pattern.js +1 -0
  350. package/lib/components/Schema/views/PrimitiveRenderer.d.ts +5 -0
  351. package/lib/components/Schema/views/PrimitiveRenderer.js +1 -0
  352. package/lib/components/Schema/views/PropertyFieldRow.d.ts +16 -0
  353. package/lib/components/Schema/views/PropertyFieldRow.js +1 -0
  354. package/lib/components/Schema/views/PropertyRenderer.d.ts +15 -0
  355. package/lib/components/Schema/views/PropertyRenderer.js +1 -0
  356. package/lib/components/Schema/views/SchemaEnumDescriptions.d.ts +9 -0
  357. package/lib/components/Schema/views/SchemaEnumDescriptions.js +5 -0
  358. package/lib/components/Schema/views/SchemaEnumValues.d.ts +8 -0
  359. package/lib/components/Schema/views/SchemaEnumValues.js +1 -0
  360. package/lib/components/Schema/views/SchemaTitleLabel.d.ts +5 -0
  361. package/lib/components/Schema/views/SchemaTitleLabel.js +1 -0
  362. package/lib/components/Schema/views/SchemaVariantSelector.d.ts +11 -0
  363. package/lib/components/Schema/views/SchemaVariantSelector.js +1 -0
  364. package/lib/components/Schema/views/SwitcherRenderer.d.ts +14 -0
  365. package/lib/components/Schema/views/SwitcherRenderer.js +1 -0
  366. package/lib/components/Schema/views/VariantDropdown.d.ts +14 -0
  367. package/lib/components/Schema/views/VariantDropdown.js +99 -0
  368. package/lib/components/SchemaCatalogLink.d.ts +6 -0
  369. package/lib/components/SchemaCatalogLink.js +35 -0
  370. package/lib/components/Security/Divider.d.ts +4 -0
  371. package/lib/components/Security/Divider.js +15 -0
  372. package/lib/components/Security/RequiredScopes.d.ts +4 -0
  373. package/lib/components/Security/RequiredScopes.js +5 -0
  374. package/lib/components/Security/ScopeTagWithTooltip.d.ts +11 -0
  375. package/lib/components/Security/ScopeTagWithTooltip.js +28 -0
  376. package/lib/components/Security/SecurityButtonPanel.d.ts +5 -0
  377. package/lib/components/Security/SecurityButtonPanel.js +1 -0
  378. package/lib/components/Security/SecurityFlowDetail.d.ts +5 -0
  379. package/lib/components/Security/SecurityFlowDetail.js +1 -0
  380. package/lib/components/Security/SecurityModal.d.ts +6 -0
  381. package/lib/components/Security/SecurityModal.js +1 -0
  382. package/lib/components/Security/SecuritySection.d.ts +3 -0
  383. package/lib/components/Security/SecuritySection.js +1 -0
  384. package/lib/components/Security/styled.d.ts +83 -0
  385. package/lib/components/Security/styled.js +219 -0
  386. package/lib/components/Security/types.d.ts +3 -0
  387. package/lib/components/Security/types.js +0 -0
  388. package/lib/components/SideMenu/SideMenu.d.ts +7 -0
  389. package/lib/components/SideMenu/SideMenu.js +4 -0
  390. package/lib/components/SideMenu/buildMenuItems.d.ts +29 -0
  391. package/lib/components/SideMenu/buildMenuItems.js +1 -0
  392. package/lib/components/SideMenu/useMenuItems.d.ts +14 -0
  393. package/lib/components/SideMenu/useMenuItems.js +1 -0
  394. package/lib/components/StickySidebar/SidebarActions.d.ts +1 -0
  395. package/lib/components/StickySidebar/SidebarActions.js +5 -0
  396. package/lib/components/StickySidebar/StickySidebar.d.ts +7 -0
  397. package/lib/components/StickySidebar/StickySidebar.js +22 -0
  398. package/lib/components/common/Badge.d.ts +43 -0
  399. package/lib/components/common/Badge.js +33 -0
  400. package/lib/components/common/Breadcrumbs.d.ts +11 -0
  401. package/lib/components/common/Breadcrumbs.js +43 -0
  402. package/lib/components/common/ContentWrapper.d.ts +25 -0
  403. package/lib/components/common/ContentWrapper.js +106 -0
  404. package/lib/components/common/DeepLinkAnchor.d.ts +20 -0
  405. package/lib/components/common/DeepLinkAnchor.js +32 -0
  406. package/lib/components/common/ExpandAllButton.d.ts +6 -0
  407. package/lib/components/common/ExpandAllButton.js +3 -0
  408. package/lib/components/common/ExternalDocumentation.d.ts +10 -0
  409. package/lib/components/common/ExternalDocumentation.js +10 -0
  410. package/lib/components/common/LazyMount.d.ts +9 -0
  411. package/lib/components/common/LazyMount.js +3 -0
  412. package/lib/components/common/LazySection.d.ts +14 -0
  413. package/lib/components/common/LazySection.js +9 -0
  414. package/lib/components/common/Markdown.d.ts +7 -0
  415. package/lib/components/common/Markdown.js +1 -0
  416. package/lib/components/common/MoreDetailsButton.d.ts +5 -0
  417. package/lib/components/common/MoreDetailsButton.js +12 -0
  418. package/lib/components/common/NestedToggleButton.d.ts +10 -0
  419. package/lib/components/common/NestedToggleButton.js +16 -0
  420. package/lib/components/common/PanelItem.d.ts +70 -0
  421. package/lib/components/common/PanelItem.js +62 -0
  422. package/lib/components/common/ResponseCodeTabs.d.ts +8 -0
  423. package/lib/components/common/ResponseCodeTabs.js +36 -0
  424. package/lib/components/common/Tag.d.ts +1 -0
  425. package/lib/components/common/Tag.js +11 -0
  426. package/lib/components/common/VendorExtensions.d.ts +7 -0
  427. package/lib/components/common/VendorExtensions.js +5 -0
  428. package/lib/components/common/ViewNested.d.ts +14 -0
  429. package/lib/components/common/ViewNested.js +31 -0
  430. package/lib/components/graphql/ArrowIcon.d.ts +9 -0
  431. package/lib/components/graphql/ArrowIcon.js +4 -0
  432. package/lib/components/graphql/GraphQLArgumentsSection.d.ts +10 -0
  433. package/lib/components/graphql/GraphQLArgumentsSection.js +1 -0
  434. package/lib/components/graphql/GraphQLEnumEmbedded.d.ts +5 -0
  435. package/lib/components/graphql/GraphQLEnumEmbedded.js +3 -0
  436. package/lib/components/graphql/GraphQLFieldView.d.ts +12 -0
  437. package/lib/components/graphql/GraphQLFieldView.js +1 -0
  438. package/lib/components/graphql/GraphQLFieldsEmbedded.d.ts +9 -0
  439. package/lib/components/graphql/GraphQLFieldsEmbedded.js +1 -0
  440. package/lib/components/graphql/GraphQLGroupTypeList.d.ts +5 -0
  441. package/lib/components/graphql/GraphQLGroupTypeList.js +11 -0
  442. package/lib/components/graphql/GraphQLHeaderExtras.d.ts +7 -0
  443. package/lib/components/graphql/GraphQLHeaderExtras.js +1 -0
  444. package/lib/components/graphql/GraphQLReturnTypeDetails.d.ts +11 -0
  445. package/lib/components/graphql/GraphQLReturnTypeDetails.js +18 -0
  446. package/lib/components/graphql/GraphQLTypeView.d.ts +9 -0
  447. package/lib/components/graphql/GraphQLTypeView.js +1 -0
  448. package/lib/components/graphql/GraphQLUnionEmbedded.d.ts +5 -0
  449. package/lib/components/graphql/GraphQLUnionEmbedded.js +1 -0
  450. package/lib/components/graphql/RequiresScopesButton.d.ts +9 -0
  451. package/lib/components/graphql/RequiresScopesButton.js +38 -0
  452. package/lib/components/graphql/RequiresScopesModal.d.ts +9 -0
  453. package/lib/components/graphql/RequiresScopesModal.js +88 -0
  454. package/lib/components/graphql/ViewNested.d.ts +14 -0
  455. package/lib/components/graphql/ViewNested.js +46 -0
  456. package/lib/components/graphql/renderDescription.d.ts +2 -0
  457. package/lib/components/graphql/renderDescription.js +1 -0
  458. package/lib/components/graphql/sections/GraphQLArgsSection.d.ts +5 -0
  459. package/lib/components/graphql/sections/GraphQLArgsSection.js +7 -0
  460. package/lib/components/graphql/sections/GraphQLFieldsSection.d.ts +5 -0
  461. package/lib/components/graphql/sections/GraphQLFieldsSection.js +1 -0
  462. package/lib/components/graphql/sections/ImplementedBySection.d.ts +5 -0
  463. package/lib/components/graphql/sections/ImplementedBySection.js +1 -0
  464. package/lib/components/graphql/sections/ImplementsSection.d.ts +5 -0
  465. package/lib/components/graphql/sections/ImplementsSection.js +1 -0
  466. package/lib/components/graphql/sections/PossibleTypesSection.d.ts +5 -0
  467. package/lib/components/graphql/sections/PossibleTypesSection.js +1 -0
  468. package/lib/components/graphql/sections/RequiresScopesSection.d.ts +5 -0
  469. package/lib/components/graphql/sections/RequiresScopesSection.js +1 -0
  470. package/lib/components/graphql/sections/ReturnTypeSection.d.ts +5 -0
  471. package/lib/components/graphql/sections/ReturnTypeSection.js +7 -0
  472. package/lib/components/graphql/styled.d.ts +45 -0
  473. package/lib/components/graphql/styled.js +124 -0
  474. package/lib/components/markdoc/Heading.d.ts +11 -0
  475. package/lib/components/markdoc/Heading.js +6 -0
  476. package/lib/components/markdoc/SchemaDefinition.d.ts +11 -0
  477. package/lib/components/markdoc/SchemaDefinition.js +6 -0
  478. package/lib/components/markdoc/apiDocsMarkdocComponents.d.ts +6 -0
  479. package/lib/components/markdoc/apiDocsMarkdocComponents.js +1 -0
  480. package/lib/components/markdoc/buildMarkdocOptions.d.ts +9 -0
  481. package/lib/components/markdoc/buildMarkdocOptions.js +1 -0
  482. package/lib/components/markdoc/defaultMarkdocConfig.d.ts +14 -0
  483. package/lib/components/markdoc/defaultMarkdocConfig.js +1 -0
  484. package/lib/components/markdoc/markdocAdapter.d.ts +11 -0
  485. package/lib/components/markdoc/markdocAdapter.js +1 -0
  486. package/lib/components/markdoc/markdocParser.d.ts +6 -0
  487. package/lib/components/markdoc/markdocParser.js +1 -0
  488. package/lib/components/markdoc/markdocRenderer.d.ts +8 -0
  489. package/lib/components/markdoc/markdocRenderer.js +3 -0
  490. package/lib/components/markdoc/tags/mcp-tag-schemas.d.ts +2 -0
  491. package/lib/components/markdoc/tags/mcp-tag-schemas.js +1 -0
  492. package/lib/components/markdoc/tags/schema-definition-tag.d.ts +2 -0
  493. package/lib/components/markdoc/tags/schema-definition-tag.js +1 -0
  494. package/lib/components/panels/DownloadPanelItem.d.ts +5 -0
  495. package/lib/components/panels/DownloadPanelItem.js +26 -0
  496. package/lib/components/panels/ExampleItem/CallbackPayloadItem.d.ts +5 -0
  497. package/lib/components/panels/ExampleItem/CallbackPayloadItem.js +5 -0
  498. package/lib/components/panels/ExampleItem/CodeSampleItem.d.ts +5 -0
  499. package/lib/components/panels/ExampleItem/CodeSampleItem.js +1 -0
  500. package/lib/components/panels/ExampleItem/ExamplesPanelItem.d.ts +3 -0
  501. package/lib/components/panels/ExampleItem/ExamplesPanelItem.js +1 -0
  502. package/lib/components/panels/ExampleItem/GraphQLQueryItem.d.ts +5 -0
  503. package/lib/components/panels/ExampleItem/GraphQLQueryItem.js +1 -0
  504. package/lib/components/panels/ExampleItem/GraphQLResponseItem.d.ts +5 -0
  505. package/lib/components/panels/ExampleItem/GraphQLResponseItem.js +1 -0
  506. package/lib/components/panels/ExampleItem/GraphQLTypeSampleItem.d.ts +5 -0
  507. package/lib/components/panels/ExampleItem/GraphQLTypeSampleItem.js +1 -0
  508. package/lib/components/panels/ExampleItem/GraphQLVariablesItem.d.ts +5 -0
  509. package/lib/components/panels/ExampleItem/GraphQLVariablesItem.js +1 -0
  510. package/lib/components/panels/ExampleItem/PayloadExampleItem.d.ts +5 -0
  511. package/lib/components/panels/ExampleItem/PayloadExampleItem.js +4 -0
  512. package/lib/components/panels/ExampleItem/ResponseExampleItem.d.ts +5 -0
  513. package/lib/components/panels/ExampleItem/ResponseExampleItem.js +1 -0
  514. package/lib/components/panels/ExampleItem/ServerDropdown.d.ts +17 -0
  515. package/lib/components/panels/ExampleItem/ServerDropdown.js +11 -0
  516. package/lib/components/panels/ExampleItem/hooks.d.ts +25 -0
  517. package/lib/components/panels/ExampleItem/hooks.js +1 -0
  518. package/lib/components/panels/ExampleItem/selectors.d.ts +36 -0
  519. package/lib/components/panels/ExampleItem/selectors.js +1 -0
  520. package/lib/components/panels/ExampleItem/styled.d.ts +164 -0
  521. package/lib/components/panels/ExampleItem/styled.js +128 -0
  522. package/lib/components/panels/ExampleItem/types.d.ts +9 -0
  523. package/lib/components/panels/ExampleItem/types.js +0 -0
  524. package/lib/components/panels/GroupPanelItem.d.ts +5 -0
  525. package/lib/components/panels/GroupPanelItem.js +116 -0
  526. package/lib/components/panels/LanguageItem/LanguageDropdown.d.ts +15 -0
  527. package/lib/components/panels/LanguageItem/LanguageDropdown.js +1 -0
  528. package/lib/components/panels/LanguageItem/LanguageItem.d.ts +11 -0
  529. package/lib/components/panels/LanguageItem/LanguageItem.js +1 -0
  530. package/lib/components/panels/LanguageItem/LanguageList.d.ts +10 -0
  531. package/lib/components/panels/LanguageItem/LanguageList.js +1 -0
  532. package/lib/components/panels/LanguageItem/LanguageListSkeleton.d.ts +4 -0
  533. package/lib/components/panels/LanguageItem/LanguageListSkeleton.js +22 -0
  534. package/lib/components/panels/LanguageItem/LanguagePanelItem.d.ts +5 -0
  535. package/lib/components/panels/LanguageItem/LanguagePanelItem.js +1 -0
  536. package/lib/components/panels/LanguageItem/constants.d.ts +2 -0
  537. package/lib/components/panels/LanguageItem/constants.js +1 -0
  538. package/lib/components/panels/LanguageItem/styled.d.ts +94 -0
  539. package/lib/components/panels/LanguageItem/styled.js +96 -0
  540. package/lib/components/panels/LocationsPanelItem.d.ts +5 -0
  541. package/lib/components/panels/LocationsPanelItem.js +1 -0
  542. package/lib/components/panels/McpExamplePanelItem.d.ts +5 -0
  543. package/lib/components/panels/McpExamplePanelItem.js +6 -0
  544. package/lib/components/panels/McpPanelItem.d.ts +3 -0
  545. package/lib/components/panels/McpPanelItem.js +54 -0
  546. package/lib/components/panels/OverviewPanelItem.d.ts +3 -0
  547. package/lib/components/panels/OverviewPanelItem.js +17 -0
  548. package/lib/components/panels/PanelMapper.d.ts +5 -0
  549. package/lib/components/panels/PanelMapper.js +1 -0
  550. package/lib/components/panels/PanelNodeProps.d.ts +4 -0
  551. package/lib/components/panels/PanelNodeProps.js +0 -0
  552. package/lib/components/panels/ReferencesPanelItem.d.ts +5 -0
  553. package/lib/components/panels/ReferencesPanelItem.js +19 -0
  554. package/lib/components/panels/ServerItem/ServerDescriptionTooltip.d.ts +4 -0
  555. package/lib/components/panels/ServerItem/ServerDescriptionTooltip.js +1 -0
  556. package/lib/components/panels/ServerItem/ServerItem.d.ts +5 -0
  557. package/lib/components/panels/ServerItem/ServerItem.js +40 -0
  558. package/lib/components/panels/ServerItem/ServerPanelItem.d.ts +5 -0
  559. package/lib/components/panels/ServerItem/ServerPanelItem.js +1 -0
  560. package/lib/components/panels/asyncapi/BrokerItem/BrokerBindingsSection.d.ts +7 -0
  561. package/lib/components/panels/asyncapi/BrokerItem/BrokerBindingsSection.js +1 -0
  562. package/lib/components/panels/asyncapi/BrokerItem/BrokerModal.d.ts +8 -0
  563. package/lib/components/panels/asyncapi/BrokerItem/BrokerModal.js +49 -0
  564. package/lib/components/panels/asyncapi/BrokerItem/BrokerOverviewSection.d.ts +6 -0
  565. package/lib/components/panels/asyncapi/BrokerItem/BrokerOverviewSection.js +25 -0
  566. package/lib/components/panels/asyncapi/BrokerItem/BrokerPanel.styled.d.ts +7 -0
  567. package/lib/components/panels/asyncapi/BrokerItem/BrokerPanel.styled.js +25 -0
  568. package/lib/components/panels/asyncapi/BrokerItem/BrokerPanelItem.d.ts +5 -0
  569. package/lib/components/panels/asyncapi/BrokerItem/BrokerPanelItem.js +48 -0
  570. package/lib/components/panels/asyncapi/ChannelBindingItem/ChannelBindingItem.d.ts +5 -0
  571. package/lib/components/panels/asyncapi/ChannelBindingItem/ChannelBindingItem.js +32 -0
  572. package/lib/components/panels/asyncapi/MessageBindingItem/MessageBindingItem.d.ts +5 -0
  573. package/lib/components/panels/asyncapi/MessageBindingItem/MessageBindingItem.js +1 -0
  574. package/lib/components/panels/asyncapi/MessageReferencesItem/MessageReferencesItem.d.ts +5 -0
  575. package/lib/components/panels/asyncapi/MessageReferencesItem/MessageReferencesItem.js +42 -0
  576. package/lib/components/panels/asyncapi/OperationBindingItem/OperationBindingItem.d.ts +5 -0
  577. package/lib/components/panels/asyncapi/OperationBindingItem/OperationBindingItem.js +1 -0
  578. package/lib/components/panels/asyncapi/common/bindingPanel.d.ts +29 -0
  579. package/lib/components/panels/asyncapi/common/bindingPanel.js +48 -0
  580. package/lib/components/panels/shared-panel-styles.d.ts +8 -0
  581. package/lib/components/panels/shared-panel-styles.js +38 -0
  582. package/lib/components/panels/styled.d.ts +20 -0
  583. package/lib/components/panels/styled.js +28 -0
  584. package/lib/components/pluggable/RedocCodeSample.d.ts +12 -0
  585. package/lib/components/pluggable/RedocCodeSample.js +1 -0
  586. package/lib/components/pluggable/RedocExample.d.ts +8 -0
  587. package/lib/components/pluggable/RedocExample.js +7 -0
  588. package/lib/components/pluggable/RedocResponseSamples.d.ts +9 -0
  589. package/lib/components/pluggable/RedocResponseSamples.js +1 -0
  590. package/lib/components/pluggable/RedocSchema.d.ts +12 -0
  591. package/lib/components/pluggable/RedocSchema.js +1 -0
  592. package/lib/components/pluggable/index.d.ts +6 -0
  593. package/lib/components/pluggable/index.js +1 -0
  594. package/lib/constants/openapi.d.ts +30 -0
  595. package/lib/constants/openapi.js +1 -0
  596. package/lib/constants/rendering.d.ts +8 -0
  597. package/lib/constants/rendering.js +1 -0
  598. package/lib/contexts/markdownAdapter.d.ts +21 -0
  599. package/lib/contexts/markdownAdapter.js +1 -0
  600. package/lib/contexts/telemetry.d.ts +3 -0
  601. package/lib/contexts/telemetry.js +1 -0
  602. package/lib/empty-linkedom.d.ts +1 -0
  603. package/lib/empty-linkedom.js +1 -0
  604. package/lib/empty.d.ts +7 -0
  605. package/lib/empty.js +1 -0
  606. package/lib/events/codeSampleCopy.d.ts +2 -0
  607. package/lib/events/codeSampleCopy.js +1 -0
  608. package/lib/events/creator.d.ts +2 -0
  609. package/lib/events/creator.js +1 -0
  610. package/lib/events/index.d.ts +8 -0
  611. package/lib/events/index.js +1 -0
  612. package/lib/events/languageSwitch.d.ts +2 -0
  613. package/lib/events/languageSwitch.js +1 -0
  614. package/lib/events/panelToggle.d.ts +2 -0
  615. package/lib/events/panelToggle.js +1 -0
  616. package/lib/events/serverSwitch.d.ts +2 -0
  617. package/lib/events/serverSwitch.js +1 -0
  618. package/lib/events/tryItOpen.d.ts +2 -0
  619. package/lib/events/tryItOpen.js +1 -0
  620. package/lib/events/tryItSent.d.ts +2 -0
  621. package/lib/events/tryItSent.js +1 -0
  622. package/lib/events/types.d.ts +9 -0
  623. package/lib/events/types.js +1 -0
  624. package/lib/hoc/withItemId.d.ts +6 -0
  625. package/lib/hoc/withItemId.js +1 -0
  626. package/lib/hoc/withReplayPrefetch.d.ts +14 -0
  627. package/lib/hoc/withReplayPrefetch.js +1 -0
  628. package/lib/hoc/withRouter.d.ts +4 -0
  629. package/lib/hoc/withRouter.js +1 -0
  630. package/lib/hoc/withStoreProvider.d.ts +23 -0
  631. package/lib/hoc/withStoreProvider.js +1 -0
  632. package/lib/hooks/useApiDocsRoutes.d.ts +8 -0
  633. package/lib/hooks/useApiDocsRoutes.js +1 -0
  634. package/lib/hooks/useApiDocsScroll.d.ts +9 -0
  635. package/lib/hooks/useApiDocsScroll.js +1 -0
  636. package/lib/hooks/useBodyScrollLock.d.ts +1 -0
  637. package/lib/hooks/useBodyScrollLock.js +1 -0
  638. package/lib/hooks/useCodeHighlight.d.ts +28 -0
  639. package/lib/hooks/useCodeHighlight.js +1 -0
  640. package/lib/hooks/useCopyCodeTelemetry.d.ts +13 -0
  641. package/lib/hooks/useCopyCodeTelemetry.js +1 -0
  642. package/lib/hooks/useDeepLinkSection.d.ts +16 -0
  643. package/lib/hooks/useDeepLinkSection.js +1 -0
  644. package/lib/hooks/useExpandableSection.d.ts +4 -0
  645. package/lib/hooks/useExpandableSection.js +1 -0
  646. package/lib/hooks/useHashLinkRedirect.d.ts +4 -0
  647. package/lib/hooks/useHashLinkRedirect.js +1 -0
  648. package/lib/hooks/useIsExpanded.d.ts +1 -0
  649. package/lib/hooks/useIsExpanded.js +1 -0
  650. package/lib/hooks/useIsHydrated.d.ts +4 -0
  651. package/lib/hooks/useIsHydrated.js +1 -0
  652. package/lib/hooks/useLicense.d.ts +6 -0
  653. package/lib/hooks/useLicense.js +1 -0
  654. package/lib/hooks/useManualScrollAnchor.d.ts +19 -0
  655. package/lib/hooks/useManualScrollAnchor.js +1 -0
  656. package/lib/hooks/useModalDismiss.d.ts +2 -0
  657. package/lib/hooks/useModalDismiss.js +1 -0
  658. package/lib/hooks/useNormalizeUrl.d.ts +2 -0
  659. package/lib/hooks/useNormalizeUrl.js +1 -0
  660. package/lib/hooks/useRouterHashBridge.d.ts +21 -0
  661. package/lib/hooks/useRouterHashBridge.js +1 -0
  662. package/lib/hooks/useScrollSpyUrlSync.d.ts +3 -0
  663. package/lib/hooks/useScrollSpyUrlSync.js +1 -0
  664. package/lib/hooks/useTelemetry.d.ts +2 -0
  665. package/lib/hooks/useTelemetry.js +1 -0
  666. package/lib/hooks/useTelemetryPageMetrics.d.ts +12 -0
  667. package/lib/hooks/useTelemetryPageMetrics.js +1 -0
  668. package/lib/hooks/useTranslate.d.ts +5 -0
  669. package/lib/hooks/useTranslate.js +1 -0
  670. package/lib/hooks/useUrlHash.d.ts +7 -0
  671. package/lib/hooks/useUrlHash.js +1 -0
  672. package/lib/hooks/useUserScrollIntent.d.ts +18 -0
  673. package/lib/hooks/useUserScrollIntent.js +1 -0
  674. package/lib/hooks/useVisitedChannelsTracker.d.ts +6 -0
  675. package/lib/hooks/useVisitedChannelsTracker.js +1 -0
  676. package/lib/icons/CSharpIcon/CSharpIcon.d.ts +2 -0
  677. package/lib/icons/CSharpIcon/CSharpIcon.js +1 -0
  678. package/lib/icons/CSharpIcon/index.d.ts +1 -0
  679. package/lib/icons/CSharpIcon/index.js +1 -0
  680. package/lib/icons/CurlIcon/CurlIcon.d.ts +4 -0
  681. package/lib/icons/CurlIcon/CurlIcon.js +16 -0
  682. package/lib/icons/CurlIcon/index.d.ts +1 -0
  683. package/lib/icons/CurlIcon/index.js +1 -0
  684. package/lib/icons/DefaultMappingIcon/DefaultMappingIcon.d.ts +4 -0
  685. package/lib/icons/DefaultMappingIcon/DefaultMappingIcon.js +10 -0
  686. package/lib/icons/DefaultMappingIcon/index.d.ts +1 -0
  687. package/lib/icons/DefaultMappingIcon/index.js +1 -0
  688. package/lib/icons/GOIcon/GOIcon.d.ts +2 -0
  689. package/lib/icons/GOIcon/GOIcon.js +1 -0
  690. package/lib/icons/GOIcon/index.d.ts +1 -0
  691. package/lib/icons/GOIcon/index.js +1 -0
  692. package/lib/icons/JavaIcon/JavaIcon.d.ts +2 -0
  693. package/lib/icons/JavaIcon/JavaIcon.js +1 -0
  694. package/lib/icons/JavaIcon/index.d.ts +1 -0
  695. package/lib/icons/JavaIcon/index.js +1 -0
  696. package/lib/icons/JavaScriptIcon/JavaScriptIcon.d.ts +2 -0
  697. package/lib/icons/JavaScriptIcon/JavaScriptIcon.js +1 -0
  698. package/lib/icons/JavaScriptIcon/index.d.ts +1 -0
  699. package/lib/icons/JavaScriptIcon/index.js +1 -0
  700. package/lib/icons/ListIcon/ListIcon.d.ts +14 -0
  701. package/lib/icons/ListIcon/ListIcon.js +10 -0
  702. package/lib/icons/NodeJSIcon/NodeJSIcon.d.ts +2 -0
  703. package/lib/icons/NodeJSIcon/NodeJSIcon.js +1 -0
  704. package/lib/icons/NodeJSIcon/index.d.ts +1 -0
  705. package/lib/icons/NodeJSIcon/index.js +1 -0
  706. package/lib/icons/PHPIcon/PHPIcon.d.ts +2 -0
  707. package/lib/icons/PHPIcon/PHPIcon.js +1 -0
  708. package/lib/icons/PHPIcon/index.d.ts +1 -0
  709. package/lib/icons/PHPIcon/index.js +1 -0
  710. package/lib/icons/PayloadIcon/PayloadIcon.d.ts +2 -0
  711. package/lib/icons/PayloadIcon/PayloadIcon.js +1 -0
  712. package/lib/icons/PayloadIcon/index.d.ts +1 -0
  713. package/lib/icons/PayloadIcon/index.js +1 -0
  714. package/lib/icons/PlusCircleIcon/PlusCircleIcon.d.ts +7 -0
  715. package/lib/icons/PlusCircleIcon/PlusCircleIcon.js +10 -0
  716. package/lib/icons/PythonIcon/PythonIcon.d.ts +2 -0
  717. package/lib/icons/PythonIcon/PythonIcon.js +1 -0
  718. package/lib/icons/PythonIcon/index.d.ts +1 -0
  719. package/lib/icons/PythonIcon/index.js +1 -0
  720. package/lib/icons/RIcon/RIcon.d.ts +2 -0
  721. package/lib/icons/RIcon/RIcon.js +1 -0
  722. package/lib/icons/RIcon/index.d.ts +1 -0
  723. package/lib/icons/RIcon/index.js +1 -0
  724. package/lib/icons/RubyIcon/RubyIcon.d.ts +2 -0
  725. package/lib/icons/RubyIcon/RubyIcon.js +1 -0
  726. package/lib/icons/RubyIcon/index.d.ts +1 -0
  727. package/lib/icons/RubyIcon/index.js +1 -0
  728. package/lib/index.d.ts +60 -0
  729. package/lib/index.js +1 -0
  730. package/lib/jotai/app.d.ts +76 -0
  731. package/lib/jotai/app.js +1 -0
  732. package/lib/jotai/examples.d.ts +5 -0
  733. package/lib/jotai/examples.js +1 -0
  734. package/lib/jotai/graphql.d.ts +10 -0
  735. package/lib/jotai/graphql.js +1 -0
  736. package/lib/jotai/itemStore.d.ts +49 -0
  737. package/lib/jotai/itemStore.js +1 -0
  738. package/lib/jotai/routes.d.ts +4 -0
  739. package/lib/jotai/routes.js +1 -0
  740. package/lib/jotai/schema.d.ts +3 -0
  741. package/lib/jotai/schema.js +1 -0
  742. package/lib/jotai/store.d.ts +25 -0
  743. package/lib/jotai/store.js +1 -0
  744. package/lib/options/constants.d.ts +16 -0
  745. package/lib/options/constants.js +1 -0
  746. package/lib/options/helpers.d.ts +26 -0
  747. package/lib/options/helpers.js +1 -0
  748. package/lib/options/normalizeOptions.d.ts +2 -0
  749. package/lib/options/normalizeOptions.js +1 -0
  750. package/lib/pages/EntryPage.d.ts +25 -0
  751. package/lib/pages/EntryPage.js +5 -0
  752. package/lib/pages/GroupPage.d.ts +1 -0
  753. package/lib/pages/GroupPage.js +47 -0
  754. package/lib/pages/ItemPage.d.ts +1 -0
  755. package/lib/pages/ItemPage.js +26 -0
  756. package/lib/pages/NotFoundPage.d.ts +6 -0
  757. package/lib/pages/NotFoundPage.js +1 -0
  758. package/lib/pages/OverviewPage.d.ts +1 -0
  759. package/lib/pages/OverviewPage.js +11 -0
  760. package/lib/pages/TopLevelEntryView.d.ts +17 -0
  761. package/lib/pages/TopLevelEntryView.js +1 -0
  762. package/lib/services/code-samples/builder.d.ts +38 -0
  763. package/lib/services/code-samples/builder.js +1 -0
  764. package/lib/services/code-samples/constants/try-it-loading-state.d.ts +6 -0
  765. package/lib/services/code-samples/constants/try-it-loading-state.js +1 -0
  766. package/lib/services/code-samples/convertSampleToString.d.ts +3 -0
  767. package/lib/services/code-samples/convertSampleToString.js +17 -0
  768. package/lib/services/code-samples/discriminator.d.ts +39 -0
  769. package/lib/services/code-samples/discriminator.js +1 -0
  770. package/lib/services/code-samples/example-key.d.ts +25 -0
  771. package/lib/services/code-samples/example-key.js +1 -0
  772. package/lib/services/code-samples/generators/csharp-newtonsoft.d.ts +9 -0
  773. package/lib/services/code-samples/generators/csharp-newtonsoft.js +2 -0
  774. package/lib/services/code-samples/generators/csharp.d.ts +9 -0
  775. package/lib/services/code-samples/generators/csharp.js +2 -0
  776. package/lib/services/code-samples/generators/curl.d.ts +8 -0
  777. package/lib/services/code-samples/generators/curl.js +7 -0
  778. package/lib/services/code-samples/generators/go.d.ts +13 -0
  779. package/lib/services/code-samples/generators/go.js +3 -0
  780. package/lib/services/code-samples/generators/helpers/code-builder.d.ts +56 -0
  781. package/lib/services/code-samples/generators/helpers/code-builder.js +3 -0
  782. package/lib/services/code-samples/generators/helpers/mime.d.ts +1 -0
  783. package/lib/services/code-samples/generators/helpers/mime.js +1 -0
  784. package/lib/services/code-samples/generators/helpers/oauth2-snippets.d.ts +21 -0
  785. package/lib/services/code-samples/generators/helpers/oauth2-snippets.js +1 -0
  786. package/lib/services/code-samples/generators/helpers/php-array.d.ts +6 -0
  787. package/lib/services/code-samples/generators/helpers/php-array.js +5 -0
  788. package/lib/services/code-samples/generators/helpers/r-utils.d.ts +7 -0
  789. package/lib/services/code-samples/generators/helpers/r-utils.js +6 -0
  790. package/lib/services/code-samples/generators/helpers/shell.d.ts +8 -0
  791. package/lib/services/code-samples/generators/helpers/shell.js +1 -0
  792. package/lib/services/code-samples/generators/helpers/string-utils.d.ts +4 -0
  793. package/lib/services/code-samples/generators/helpers/string-utils.js +1 -0
  794. package/lib/services/code-samples/generators/helpers/stringify-js.d.ts +11 -0
  795. package/lib/services/code-samples/generators/helpers/stringify-js.js +8 -0
  796. package/lib/services/code-samples/generators/helpers/sub-request.d.ts +2 -0
  797. package/lib/services/code-samples/generators/helpers/sub-request.js +1 -0
  798. package/lib/services/code-samples/generators/helpers/url-helpers.d.ts +17 -0
  799. package/lib/services/code-samples/generators/helpers/url-helpers.js +2 -0
  800. package/lib/services/code-samples/generators/index.d.ts +16 -0
  801. package/lib/services/code-samples/generators/index.js +1 -0
  802. package/lib/services/code-samples/generators/java.d.ts +9 -0
  803. package/lib/services/code-samples/generators/java.js +3 -0
  804. package/lib/services/code-samples/generators/java8.d.ts +9 -0
  805. package/lib/services/code-samples/generators/java8.js +2 -0
  806. package/lib/services/code-samples/generators/javascript.d.ts +9 -0
  807. package/lib/services/code-samples/generators/javascript.js +1 -0
  808. package/lib/services/code-samples/generators/node.d.ts +10 -0
  809. package/lib/services/code-samples/generators/node.js +1 -0
  810. package/lib/services/code-samples/generators/php.d.ts +13 -0
  811. package/lib/services/code-samples/generators/php.js +6 -0
  812. package/lib/services/code-samples/generators/python.d.ts +3 -0
  813. package/lib/services/code-samples/generators/python.js +9 -0
  814. package/lib/services/code-samples/generators/r.d.ts +10 -0
  815. package/lib/services/code-samples/generators/r.js +7 -0
  816. package/lib/services/code-samples/generators/ruby.d.ts +10 -0
  817. package/lib/services/code-samples/generators/ruby.js +1 -0
  818. package/lib/services/code-samples/generators/types.d.ts +6 -0
  819. package/lib/services/code-samples/generators/types.js +0 -0
  820. package/lib/services/code-samples/har.d.ts +45 -0
  821. package/lib/services/code-samples/har.js +0 -0
  822. package/lib/services/code-samples/index.d.ts +8 -0
  823. package/lib/services/code-samples/index.js +1 -0
  824. package/lib/services/code-samples/replay/embedded-replay-converter.d.ts +6 -0
  825. package/lib/services/code-samples/replay/embedded-replay-converter.js +1 -0
  826. package/lib/services/code-samples/replay/from-openapi-document.d.ts +12 -0
  827. package/lib/services/code-samples/replay/from-openapi-document.js +1 -0
  828. package/lib/services/code-samples/replay/har-to-code-sample-har.d.ts +41 -0
  829. package/lib/services/code-samples/replay/har-to-code-sample-har.js +1 -0
  830. package/lib/services/code-samples/replay/index.d.ts +8 -0
  831. package/lib/services/code-samples/replay/index.js +1 -0
  832. package/lib/services/code-samples/replay/map-servers.d.ts +19 -0
  833. package/lib/services/code-samples/replay/map-servers.js +1 -0
  834. package/lib/services/code-samples/replay/merge-configure-into-source.d.ts +17 -0
  835. package/lib/services/code-samples/replay/merge-configure-into-source.js +1 -0
  836. package/lib/services/code-samples/replay/normalize-servers.d.ts +3 -0
  837. package/lib/services/code-samples/replay/normalize-servers.js +1 -0
  838. package/lib/services/code-samples/replay/overlay-converter.d.ts +15 -0
  839. package/lib/services/code-samples/replay/overlay-converter.js +1 -0
  840. package/lib/services/code-samples/replay/replay-adapter.d.ts +5 -0
  841. package/lib/services/code-samples/replay/replay-adapter.js +1 -0
  842. package/lib/services/code-samples/replay/replay-handler.d.ts +5 -0
  843. package/lib/services/code-samples/replay/replay-handler.js +1 -0
  844. package/lib/services/code-samples/replay/replay-predefined-env.d.ts +4 -0
  845. package/lib/services/code-samples/replay/replay-predefined-env.js +1 -0
  846. package/lib/services/code-samples/replay/replay-types.d.ts +75 -0
  847. package/lib/services/code-samples/replay/replay-types.js +0 -0
  848. package/lib/services/code-samples/resolvers.d.ts +5 -0
  849. package/lib/services/code-samples/resolvers.js +1 -0
  850. package/lib/services/code-samples/sample-har.d.ts +41 -0
  851. package/lib/services/code-samples/sample-har.js +0 -0
  852. package/lib/services/code-samples/server-variables.d.ts +11 -0
  853. package/lib/services/code-samples/server-variables.js +1 -0
  854. package/lib/services/code-samples/source.d.ts +107 -0
  855. package/lib/services/code-samples/source.js +0 -0
  856. package/lib/services/code-samples/use-resolvers.d.ts +2 -0
  857. package/lib/services/code-samples/use-resolvers.js +1 -0
  858. package/lib/services/code-samples/utils/map-request-values.d.ts +6 -0
  859. package/lib/services/code-samples/utils/map-request-values.js +1 -0
  860. package/lib/services/license/check.d.ts +14 -0
  861. package/lib/services/license/check.js +1 -0
  862. package/lib/services/operation-samples/index.d.ts +14 -0
  863. package/lib/services/operation-samples/index.js +2 -0
  864. package/lib/services/operation-samples/types.d.ts +37 -0
  865. package/lib/services/operation-samples/types.js +0 -0
  866. package/lib/services/schema/dialects/graphqlSchema.d.ts +1 -0
  867. package/lib/services/schema/dialects/graphqlSchema.js +1 -0
  868. package/lib/services/schema/dialects/jsonSchema.d.ts +3 -0
  869. package/lib/services/schema/dialects/jsonSchema.js +1 -0
  870. package/lib/services/schema/index.d.ts +1 -0
  871. package/lib/services/schema/index.js +1 -0
  872. package/lib/services/schema/propertyBuilder.d.ts +32 -0
  873. package/lib/services/schema/propertyBuilder.js +1 -0
  874. package/lib/services/schema/propertyTreeBuilder.d.ts +21 -0
  875. package/lib/services/schema/propertyTreeBuilder.js +1 -0
  876. package/lib/services/schema/schemaProcessor.d.ts +2 -0
  877. package/lib/services/schema/schemaProcessor.js +1 -0
  878. package/lib/services/schema/variant-label.d.ts +6 -0
  879. package/lib/services/schema/variant-label.js +1 -0
  880. package/lib/telemetry/RedocTelemetry.d.ts +15 -0
  881. package/lib/telemetry/RedocTelemetry.js +1 -0
  882. package/lib/types/asyncapi.d.ts +367 -0
  883. package/lib/types/asyncapi.js +1 -0
  884. package/lib/types/common.d.ts +168 -0
  885. package/lib/types/common.js +1 -0
  886. package/lib/types/content.d.ts +535 -0
  887. package/lib/types/content.js +0 -0
  888. package/lib/types/events.d.ts +75 -0
  889. package/lib/types/events.js +0 -0
  890. package/lib/types/graphql-store.d.ts +60 -0
  891. package/lib/types/graphql-store.js +1 -0
  892. package/lib/types/graphql.d.ts +54 -0
  893. package/lib/types/graphql.js +0 -0
  894. package/lib/types/index.d.ts +10 -0
  895. package/lib/types/index.js +1 -0
  896. package/lib/types/openapi.d.ts +586 -0
  897. package/lib/types/openapi.js +1 -0
  898. package/lib/types/options.d.ts +260 -0
  899. package/lib/types/options.js +0 -0
  900. package/lib/types/pluggable.d.ts +4 -0
  901. package/lib/types/pluggable.js +0 -0
  902. package/lib/types/schema.d.ts +155 -0
  903. package/lib/types/schema.js +1 -0
  904. package/lib/types/store.d.ts +182 -0
  905. package/lib/types/store.js +0 -0
  906. package/lib/utils/calculateMaxLength.d.ts +6 -0
  907. package/lib/utils/calculateMaxLength.js +1 -0
  908. package/lib/utils/compose.d.ts +7 -0
  909. package/lib/utils/compose.js +1 -0
  910. package/lib/utils/cookies.d.ts +7 -0
  911. package/lib/utils/cookies.js +1 -0
  912. package/lib/utils/deep-link.d.ts +146 -0
  913. package/lib/utils/deep-link.js +1 -0
  914. package/lib/utils/environments.d.ts +6 -0
  915. package/lib/utils/environments.js +1 -0
  916. package/lib/utils/expansion.d.ts +3 -0
  917. package/lib/utils/expansion.js +1 -0
  918. package/lib/utils/extract-extensions.d.ts +4 -0
  919. package/lib/utils/extract-extensions.js +1 -0
  920. package/lib/utils/fetch-openapi-definition.d.ts +6 -0
  921. package/lib/utils/fetch-openapi-definition.js +1 -0
  922. package/lib/utils/form-urlencoded.d.ts +6 -0
  923. package/lib/utils/form-urlencoded.js +1 -0
  924. package/lib/utils/graphql-directive-utils.d.ts +6 -0
  925. package/lib/utils/graphql-directive-utils.js +3 -0
  926. package/lib/utils/graphql-reference-map.d.ts +3 -0
  927. package/lib/utils/graphql-reference-map.js +1 -0
  928. package/lib/utils/graphql-samples.d.ts +25 -0
  929. package/lib/utils/graphql-samples.js +17 -0
  930. package/lib/utils/graphql-scopes.d.ts +6 -0
  931. package/lib/utils/graphql-scopes.js +1 -0
  932. package/lib/utils/graphql-type-expansion.d.ts +5 -0
  933. package/lib/utils/graphql-type-expansion.js +1 -0
  934. package/lib/utils/http-methods.d.ts +8 -0
  935. package/lib/utils/http-methods.js +1 -0
  936. package/lib/utils/languages.d.ts +18 -0
  937. package/lib/utils/languages.js +1 -0
  938. package/lib/utils/loadAndBundleSpec.d.ts +4 -0
  939. package/lib/utils/loadAndBundleSpec.js +1 -0
  940. package/lib/utils/logo.d.ts +8 -0
  941. package/lib/utils/logo.js +1 -0
  942. package/lib/utils/media-type.d.ts +7 -0
  943. package/lib/utils/media-type.js +1 -0
  944. package/lib/utils/multipart.d.ts +7 -0
  945. package/lib/utils/multipart.js +1 -0
  946. package/lib/utils/refPointer.d.ts +2 -0
  947. package/lib/utils/refPointer.js +1 -0
  948. package/lib/utils/resolveText.d.ts +2 -0
  949. package/lib/utils/resolveText.js +1 -0
  950. package/lib/utils/routing.d.ts +49 -0
  951. package/lib/utils/routing.js +1 -0
  952. package/lib/utils/scroll-anchoring.d.ts +3 -0
  953. package/lib/utils/scroll-anchoring.js +1 -0
  954. package/lib/utils/security-scope.d.ts +3 -0
  955. package/lib/utils/security-scope.js +1 -0
  956. package/lib/utils/serialize-parameter.d.ts +8 -0
  957. package/lib/utils/serialize-parameter.js +1 -0
  958. package/lib/utils/serialize-querystring.d.ts +6 -0
  959. package/lib/utils/serialize-querystring.js +1 -0
  960. package/lib/utils/session-storage.d.ts +2 -0
  961. package/lib/utils/session-storage.js +1 -0
  962. package/lib/utils/split-badges-by-position.d.ts +5 -0
  963. package/lib/utils/split-badges-by-position.js +1 -0
  964. package/lib/utils/status-code.d.ts +1 -0
  965. package/lib/utils/status-code.js +1 -0
  966. package/lib/utils/string.d.ts +18 -0
  967. package/lib/utils/string.js +1 -0
  968. package/lib/utils/telemetry.d.ts +1 -0
  969. package/lib/utils/telemetry.js +1 -0
  970. package/lib/utils/url.d.ts +9 -0
  971. package/lib/utils/url.js +1 -0
  972. package/lib/utils/xml.d.ts +1 -0
  973. package/lib/utils/xml.js +1 -0
  974. package/package.json +97 -0
@@ -0,0 +1 @@
1
+ import{createScopedContext as e}from"../scopedContext.js";const t=e("OpenAPI");export{t as openApiContext};
@@ -0,0 +1,3 @@
1
+ import type { ConfigureRequestValues, ConfigureServerRequestValues } from '@redocly/theme/ext/configure';
2
+ import type { OperationInfo, OpenAPIServer } from '../../../types/openapi.js';
3
+ export declare function applyRequestValuesToOperationInfo(operationInfo: OperationInfo, requestValues: ConfigureRequestValues | ConfigureServerRequestValues, mergedServers?: OpenAPIServer[]): void;
@@ -0,0 +1 @@
1
+ import{isRecord as y,resolveRef as d,isOpenAPIRef as p}from"../../helpers.js";import{openApiContext as R}from"../buildContext.js";import{applyServerVariableDefaults as b,getEffectiveRequestValues as v,getParamValueMap as O,isDirectRequestValues as x,mergeBodyValue as h,updateObjectProperties as k}from"./merge-utils.js";import{hasOpenApiExampleValue as j}from"../resolve-openapi-example-value.js";import{excludeMockServers as E}from"../utils/merge-mock-server.js";function V(t,e,o,r){const n=t.parameters;if(n?.length)for(let f=0;f<n.length;f++){const s=n[f],a=p(s),i=a?d(e,s,o):s;if(!i?.in||!i.name)continue;const u=O(i.in,r)?.[i.name];u!==void 0&&(a?n[f]={...i,example:u}:i.example=u)}}function g(t,e){if(!j(t))return;const o=t.dataValue!==void 0?"dataValue":t.serializedValue!==void 0?"serializedValue":"value",r=t[o],n=y(r)&&y(e)?k(r,e):e;n!==void 0&&(t[o]=n)}function w(t,e,o,r){if(r.body===void 0)return;const n=t.requestBody;if(!n)return;const f=d(e,n,o)??n;if(!(p(f)||!f.content))for(const s of Object.values(f.content)){if(!s)continue;if(s.example!==void 0){const i=h(s.example,r.body);i!==void 0&&(s.example=i)}if(s.examples)for(const i of Object.values(s.examples)){const c=d(e,i,o)??i;p(c)||g(c,r.body)}const a=s.formExamples;if(a&&typeof a=="object")for(const i of Object.keys(a)){const c=a[i];if(!c||typeof c!="object")continue;const u=d(e,c,o)??c;p(u)||g(u,r.body)}}}function B(t,e){(e.security||e.envVariables||e.body!==void 0)&&(t.requestValues={...t.requestValues,...e.security&&{security:e.security},...e.envVariables&&{envVariables:e.envVariables},...e.body!==void 0&&{body:e.body}})}function S(t,e){const o={};for(const r of t){const n=e[r.url];n&&(n.serverVariables&&b(t,n.serverVariables,r.url),o[r.url]={headers:n.headers,queryString:n.query,cookies:n.cookie,security:n.security,...n.envVariables&&{envVariables:n.envVariables},...n.body!==void 0&&{body:n.body}})}return o}function M(t,e){if(x(t))return t;const o=new Set(e.filter(r=>r.isMockServer).map(r=>r.url));return o.size===0?t:Object.fromEntries(Object.entries(t).filter(([r])=>!o.has(r)))}function F(t,e,o){if(!e||Object.keys(e).length===0)return;const{options:r,storeCtx:n,document:f}=R.get(),{ignoreNamedSchemas:s}=r,a=f.servers??[],i=t.servers,c=o&&o.length>0?o:i&&i.length>0?i:a,u=E(c),l=u.length>0?v(M(e,c),u):v(e,c);if(l&&(V(t,n.document,s,l),w(t,n.document,s,l),B(t,l)),x(e)){b(c,e.serverVariables);return}const m=S(c,e);Object.keys(m).length>0&&(t.requestValues={...t.requestValues,serverRequestValues:m})}export{F as applyRequestValuesToOperationInfo};
@@ -0,0 +1,3 @@
1
+ export { resolveRequestValues } from './resolve-request-values.js';
2
+ export type { ResolveRequestValuesParams } from './resolve-request-values.js';
3
+ export { applyRequestValuesToOperationInfo } from './apply-request-values.js';
@@ -0,0 +1 @@
1
+ import{resolveRequestValues as r}from"./resolve-request-values.js";import{applyRequestValuesToOperationInfo as s}from"./apply-request-values.js";export{s as applyRequestValuesToOperationInfo,r as resolveRequestValues};
@@ -0,0 +1,32 @@
1
+ import type { ConfigureRequestValues, ConfigureServerRequestValues, SecurityDetails } from '@redocly/theme/ext/configure';
2
+ import type { OpenAPIParameterLocation, OpenAPIServer } from '../../../types/openapi.js';
3
+ import type { SecuritySchemeCredentials } from '../../../services/code-samples/source.js';
4
+ export declare function getParamValueMap(loc: OpenAPIParameterLocation, source: ConfigureRequestValues): Record<string, string> | undefined;
5
+ export declare function mergeBodyValue(base: unknown, overlay: unknown): unknown;
6
+ export type SchemeForCredentials = {
7
+ id: string;
8
+ type?: string;
9
+ scheme?: string;
10
+ scopes?: string[];
11
+ serverValues?: Record<string, SecuritySchemeCredentials>;
12
+ };
13
+ export declare function updateObjectProperties(original: unknown, updates: unknown): unknown;
14
+ export declare function isDirectRequestValues(value: ConfigureRequestValues | ConfigureServerRequestValues | undefined | null): value is ConfigureRequestValues;
15
+ export declare function getEffectiveRequestValues(requestValues: ConfigureRequestValues | ConfigureServerRequestValues | undefined, servers: readonly {
16
+ url: string;
17
+ }[] | undefined): ConfigureRequestValues | undefined;
18
+ export declare function createSecurityUpdates(scheme: SchemeForCredentials, securityValues: Record<string, SecurityDetails>): SecuritySchemeCredentials;
19
+ export declare function mergeSecurityIntoScheme<S extends SchemeForCredentials>(scheme: S, securityValues: Record<string, SecurityDetails>): S & SecuritySchemeCredentials;
20
+ export declare function mergeSecurityIntoScheme<S extends SchemeForCredentials>(scheme: S, securityValues: Record<string, SecurityDetails>, serverUrl: string): S & {
21
+ serverValues: Record<string, SecuritySchemeCredentials>;
22
+ };
23
+ export declare function applyServerVariableDefaults(servers: OpenAPIServer[] | undefined, serverVariables: Record<string, string> | undefined, targetServerUrl?: string): void;
24
+ /** Immutable variant of {@link applyServerVariableDefaults} for the Replay runtime path. */
25
+ export declare function withServerVariableDefaults<T extends {
26
+ url: string;
27
+ variables?: Record<string, {
28
+ default?: string;
29
+ enum?: string[];
30
+ description?: string;
31
+ }>;
32
+ }>(servers: readonly T[], serverVariables: Record<string, string> | undefined, targetServerUrl?: string): T[];
@@ -0,0 +1 @@
1
+ import{isRecord as u}from"../../helpers.js";function y(e,n){switch(e){case"header":return n.headers;case"query":return n.query;case"path":return n.path;case"cookie":return n.cookie;default:return}}function b(e,n){return n===void 0?e:u(e)&&u(n)?a(e,n):n}function a(e,n){if(!u(e)&&!Array.isArray(e))return n;if(Array.isArray(e)&&Array.isArray(n)){const t=e[0];if(e.length>0&&u(t)){const i=Object.keys(t),f=n.filter(o=>{if(!u(o))return!1;const c=Object.keys(o);return i.some(s=>s in o)&&c.every(s=>i.includes(s))});return f.length>0?f:e}return n}if(Array.isArray(e))return[...e];const r={...e};if(!u(n))return r;for(const[t,i]of Object.entries(n)){if(!(t in e))continue;const f=e[t];Array.isArray(f)||u(f)&&u(i)?r[t]=a(f,i):r[t]=i}return r}function d(e){return u(e)?"headers"in e||"body"in e||"query"in e||"path"in e||"cookie"in e||"security"in e||"envVariables"in e||"serverVariables"in e:!1}function k(e,n){if(!e)return;if(d(e))return e;const r=e;if(n?.length){for(const i of n)if(r[i.url])return r[i.url]}const t=Object.keys(r)[0];return t?r[t]:void 0}function l(e,n){const r=n[e.id]??n.default??{},t={};return r.token?.access_token!==void 0&&(t["x-defaultAccessToken"]=r.token.access_token,t["x-defaultTokenType"]=r.token.token_type||"Bearer"),r.client_id!==void 0&&(t["x-defaultClientId"]=r.client_id),r.client_secret!==void 0&&(t["x-defaultClientSecret"]=r.client_secret),r.scopes!==void 0?t.scopes=r.scopes:e.scopes!==void 0&&(t.scopes=e.scopes),e.type==="http"&&e.scheme==="basic"&&(r.username!==void 0&&(t["x-defaultUsername"]=r.username),r.password!==void 0&&(t["x-defaultPassword"]=r.password),delete t["x-defaultAccessToken"],delete t["x-defaultTokenType"]),t}function x(e,n,r){const t=l(e,n);return r?{...e,serverValues:{...e.serverValues??{},[r]:t}}:{...e,...t}}function A(e,n,r){if(!n||Object.keys(n).length===0||!e?.length)return;const t=r?e.filter(i=>i.url===r):e;for(const i of t)if(i.variables)for(const[f,o]of Object.entries(n)){const c=i.variables[f];c&&(c.default=o)}}function h(e,n,r){return!n||Object.keys(n).length===0?e:e.map(t=>{if(r&&t.url!==r||!t.variables)return t;let i;for(const[f,o]of Object.entries(n))t.variables[f]&&(i||(i={...t.variables}),i[f]={...i[f],default:o});return i?{...t,variables:i}:t})}export{A as applyServerVariableDefaults,l as createSecurityUpdates,k as getEffectiveRequestValues,y as getParamValueMap,d as isDirectRequestValues,b as mergeBodyValue,x as mergeSecurityIntoScheme,a as updateObjectProperties,h as withServerVariableDefaults};
@@ -0,0 +1,17 @@
1
+ import type { ConfigureRequestValues, ConfigureServerRequestValues } from '@redocly/theme/ext/configure';
2
+ import type { UserClaims } from '@redocly/theme/core/types';
3
+ import type { OpenAPIServer } from '@redocly/theme/core/types';
4
+ import type { OperationInfo } from '../../../types/openapi.js';
5
+ export type ResolveRequestValuesParams = {
6
+ operationInfo: OperationInfo;
7
+ info: Record<string, unknown>;
8
+ servers: OpenAPIServer[];
9
+ basePath: string;
10
+ userClaims?: UserClaims;
11
+ dynamicRequestValues?: ConfigureRequestValues | ConfigureServerRequestValues;
12
+ };
13
+ /**
14
+ * Builds configure context, calls the ejected configure() function, and returns
15
+ * merged request values: dynamicRequestValues ?? configResult.requestValues ?? {}.
16
+ */
17
+ export declare function resolveRequestValues(params: ResolveRequestValuesParams): ConfigureRequestValues | ConfigureServerRequestValues;
@@ -0,0 +1 @@
1
+ import{configure as c}from"@redocly/theme/ext/configure";import{getOperationData as m}from"../utils/operation.js";function d(n){const{operationInfo:e,info:r,servers:a,basePath:s,userClaims:i,dynamicRequestValues:t}=n;if(t!=null&&Object.keys(t).length>0)return t;const{slug:u}=m(e,s),l=e.summary||e.operationId||e.pathName||"Unknown Operation",p={userClaims:i,info:r,operation:{name:l,path:e.pathName??"",operationId:e.operationId,href:u,method:e.httpVerb??""},servers:a},o=(c(p)??{}).requestValues;return o!=null&&Object.keys(o).length>0?o:{}}export{d as resolveRequestValues};
@@ -0,0 +1,4 @@
1
+ export declare const SUPPORTED_MCP_TYPES: readonly ['tools', 'resources', 'prompts'];
2
+ export type McpCollectionType = (typeof SUPPORTED_MCP_TYPES)[number];
3
+ export declare const MCP_SERVER_EXPERIMENTAL_CAPABILITIES = "experimental";
4
+ export declare const PAGE_ACTIONS_MCP: "mcp-cursor"[];
@@ -0,0 +1 @@
1
+ const o=["tools","resources","prompts"],r="experimental",t=["mcp-cursor"];export{r as MCP_SERVER_EXPERIMENTAL_CAPABILITIES,t as PAGE_ACTIONS_MCP,o as SUPPORTED_MCP_TYPES};
@@ -0,0 +1,28 @@
1
+ import type { Node } from '@markdoc/markdoc';
2
+ import type { ApiItemContent } from '../../../types/content.js';
3
+ import type { BreadcrumbItem, GroupItem } from '../../../types/store.js';
4
+ import type { OpenAPITagExtended, OperationInfo } from '../../../types/openapi.js';
5
+ import type { ParseMarkdownOptions } from '../../utils/parseMarkdown.js';
6
+ import type { McpGroupItems } from '../items/mcp/item.js';
7
+ export type ChildTagInfo = {
8
+ displayName: string;
9
+ summary?: string;
10
+ slug: string;
11
+ };
12
+ export declare function buildGroupContent({ tag, tagName, headerLabel, description, operations, schemasItems, mcpItems, tagSlug, basePath, breadcrumbs, childTags, markdownOptions, feedback, }: {
13
+ tag: OpenAPITagExtended;
14
+ tagName: string;
15
+ headerLabel?: string;
16
+ description?: string | Node[] | Node;
17
+ operations: OperationInfo[];
18
+ schemasItems?: GroupItem[];
19
+ mcpItems?: McpGroupItems;
20
+ tagSlug: string;
21
+ basePath: string;
22
+ breadcrumbs?: BreadcrumbItem[];
23
+ childTags?: ChildTagInfo[];
24
+ markdownOptions: ParseMarkdownOptions;
25
+ feedback?: {
26
+ hide?: boolean;
27
+ };
28
+ }): ApiItemContent;
@@ -0,0 +1 @@
1
+ import{WEBHOOKS_GROUP_TITLE as W}from"../../../constants/openapi.js";import{contentType as B,nodeTypes as i,panelKind as s}from"../../../types/common.js";import{normalizePath as h,toRelativePath as u}from"../../../utils/url.js";import{parseMarkdown as H}from"../../utils/parseMarkdown.js";import{extractDescriptionSegments as v}from"../../utils/markdoc.js";import{getOperationColor as w,getOperationData as F,getOperationSummary as V}from"../utils/operation.js";import{readRbacScope as j,rbacProp as z}from"../../helpers.js";const X={tools:{title:"MCP Tools",translationKey:"openapi.mcp.tools"},resources:{title:"MCP Resources",translationKey:"openapi.mcp.resources"},prompts:{title:"MCP Prompts",translationKey:"openapi.mcp.prompts"}};function te({tag:r,tagName:f,headerLabel:K,description:A,operations:M,schemasItems:l,mcpItems:T,tagSlug:y,basePath:a,breadcrumbs:N,childTags:c,markdownOptions:d,feedback:_}){const p={nodeType:i.CONTAINER,children:[{nodeType:i.HEADER,level:2,label:K??f,showPageActions:!0}],panels:[]},g=[],O=[],E=[],P=[];for(const e of M){const{slug:o,badges:m,deprecated:n,httpVerb:D,isAdditionalOperation:G,isWebhook:U}=F(e,y),L={name:D,color:w({httpVerb:D,deprecated:n,isAdditionalOperation:G})},I={title:e.pathName,summary:V(e,d),prefix:L,badges:m??[],link:h(u(o,a)),deprecated:n,...z(j(e))};U?(n?P:E).push(I):(n?O:g).push(I)}const R=[...g,...O],S=[...E,...P],t=[];if(c&&c.length>0){const e=c.map(o=>({title:o.displayName,summary:o.summary,link:h(u(o.slug,a)),deprecated:!1,childTag:!0}));t.push({kind:s.GROUP_ITEMS,title:"",items:e})}if(l&&l.length>0&&t.push({kind:s.GROUP_ITEMS,title:"Schemas",titleTranslationKey:"schemas",items:l}),R.length>0&&t.push({kind:s.GROUP_ITEMS,title:"Operations",titleTranslationKey:"operations",items:R}),S.length>0&&t.push({kind:s.GROUP_ITEMS,title:W,titleTranslationKey:"webhooks",items:S}),T){for(const[e,o]of Object.entries(T))if(o.length>0){const{title:m,translationKey:n}=X[e];t.push({kind:s.GROUP_ITEMS,title:m,titleTranslationKey:n,items:o})}}if(t.length>0){const e={children:t};p.panels?.push(e)}const b=v(A,d,{sliceAtFirstHeading:!0}),x=b.some(e=>e.kind==="schemaDefinition"),k=[];for(const e of b){if(!x){p.children?.push(e.node);continue}k.push(e.kind==="schemaDefinition"?e.node:{nodeType:i.CONTAINER,children:[e.node],panels:[]})}if(r.externalDocs){const e=H(r.externalDocs.description,d)??[];p.children?.push({nodeType:i.EXTERNAL_DOCS,url:r.externalDocs.url,description:e})}const C=[p,...k];return _?.hide!==!0&&t.length===0&&C.push({nodeType:i.CONTAINER,children:[{nodeType:i.FEEDBACK,pageSlug:h(u(y,a))}],panels:[]}),{contentType:B.GROUP,seo:r["x-seo"],meta:{name:f,breadcrumbs:N},children:C}}export{te as buildGroupContent};
@@ -0,0 +1,11 @@
1
+ import { REDOCLY_TEAMS_RBAC } from '@redocly/config';
2
+ import type { RbacScopeItems } from '@redocly/config';
3
+ import type { ApiItem } from '../../../types/store.js';
4
+ import type { OpenAPIDefinition } from '../../../types/openapi.js';
5
+ export declare function addTagItems(document: OpenAPIDefinition, result: ApiItem[]): void;
6
+ export declare function processTagGroups(xTagGroups: Array<{
7
+ name: string;
8
+ tags: string[];
9
+ [REDOCLY_TEAMS_RBAC]?: RbacScopeItems;
10
+ }>, result: ApiItem[]): void;
11
+ export declare function processRootTags(tagOrder: string[], childTagNames: Set<string>, result: ApiItem[]): void;
@@ -0,0 +1 @@
1
+ import{REDOCLY_TEAMS_RBAC as f}from"@redocly/config";import{DEFAULT_WEBHOOKS_TAG_NAME as C,GROUP_DEPTH as E,MAX_NESTING_TAGS_LEVEL as _}from"../../../constants/openapi.js";import{encodeBackSlashes as w,safeSlugify as A}from"../../../utils/string.js";import{joinWithSeparator as S,toRelativePath as v}from"../../../utils/url.js";import{extractMarkdownSections as L,buildMarkdownSectionItem as N}from"../../utils/markdoc.js";import{buildGroupContent as R}from"./content.js";import{addOperationItems as P}from"../items/operation/item.js";import{addSchemaDefinitionItems as B}from"../items/schema/item.js";import{addMcpItems as W}from"../items/mcp/item.js";import{openApiContext as p}from"../buildContext.js";function tt(t,n){const r=p.get(),o=U(r.tagsMap),e=j(t),s=t["x-tagGroups"];o.size>0?k(e,o,n):s?.length?H(s,n):k(e,o,n)}function H(t,n){const r=p.get();for(const o of t){n.push({type:"separator",label:o.name,[f]:o[f],content:null});for(const e of o.tags||[]){const s=r.tagsMap.get(e);s&&O(e,s,n,[],void 0,o[f])}}}function k(t,n,r){const o=p.get(),e=new Set;for(const s of t)if(!n.has(s)){const a=o.tagsMap.get(s);a&&G(s,a,r,e)}}function D(t){return t.kind==="badge"||t.kind==="audience"}function b(t,n){return S(t,w(A(n).toLowerCase()))}function U(t){const n=new Set;for(const r of t.values()){const{tag:o}=r;o.parent&&!D(o)&&n.add(o.name)}return n}function j(t){const n=p.get(),o=[...n.hasTopLevelTags?(t.tags||[]).map(s=>s.name):n.collectedTagOrder],e=n.options.schemaDefinitionsTagName;e&&!o.includes(e)&&o.push(e);for(const s of n.collectedTagOrder)o.includes(s)||o.push(s);return o}function G(t,n,r,o,e=E,s,a){const i=p.get();if(o.has(t)||D(n.tag))return;if(e>_){console.warn("Tags exceed the maximum nesting level.");return}o.add(t);const d=b(s??i.basePath,t),m=n.tag[f]??a,u=[];for(const g of n.children){const c=i.tagsMap.get(g);c&&G(g,c,u,o,e+1,d,m)}O(t,n,r,u,d,a)}function z(t){const n=p.get(),r=[];let o=n.tagsMap.get(t)?.tag;for(;o?.parent;){const e=n.tagsMap.get(o.parent);if(!e)break;r.unshift({label:e.tag.summary||e.tag["x-displayName"]||e.tag.name}),o=e.tag}return r}function O(t,n,r,o,e,s){const a=p.get(),{tag:i,operations:d,description:m}=n,u=i[f]??s;if(t===""){P({operations:d,result:r});return}e||(e=b(a.basePath,t));const g=i.summary||i["x-displayName"]||t,c=[];if(m&&a.processContent){const l=v(e,a.basePath);for(const M of L(m,a.options,l,!!t))c.push(N({heading:M,basePath:a.basePath}))}P({operations:d,result:c,basePath:e,parentRbac:u});const h=[];B({tagName:t,tagSlug:e,result:c,groupItems:h});const x={tools:[],resources:[],prompts:[]};if(W({tagName:t,tagSlug:e,result:c,groupItems:x}),c.push(...o),t===C&&c.length===0)return;const I=z(t),y=n.children.map(l=>{const T=a.tagsMap.get(l)?.tag;return{displayName:T?.summary||T?.["x-displayName"]||l,summary:T?.summary,slug:b(e,l)}});r.push({type:"group",label:g,link:e,routeSlug:e,items:c,[f]:u,content:a.processContent?R({tag:i,tagName:t,headerLabel:g,description:m,operations:d,schemasItems:h.length>0?h:void 0,mcpItems:x,tagSlug:e,basePath:a.basePath,breadcrumbs:I.length>0?I:void 0,childTags:y.length>0?y:void 0,markdownOptions:a.options,feedback:a.options.feedback}):null})}export{tt as addTagItems,k as processRootTags,H as processTagGroups};
@@ -0,0 +1,13 @@
1
+ import type { ApiDocAdapterProps, ApiItem, ApiStore } from '../../types/store.js';
2
+ import type { OpenAPIDefinition } from '../../types/openapi.js';
3
+ import type { ApiDocsOptions } from '../../types/options.js';
4
+ export type { OpenApiBuildContext as BuildContext, TagData } from '../../types/openapi.js';
5
+ export declare function processOpenApiDocument({ document, basePath, options, processContent, }: ApiDocAdapterProps & {
6
+ document: OpenAPIDefinition;
7
+ options: ApiDocsOptions;
8
+ processContent?: boolean;
9
+ }): Promise<{
10
+ items: ApiItem[];
11
+ store: ApiStore;
12
+ }>;
13
+ export declare function buildOpenApiItems(): ApiItem[];
@@ -0,0 +1 @@
1
+ import{createStoreContext as s,toRecord as l}from"../helpers.js";import{populateOpenApiStore as p}from"./store.js";import{createBuildContext as u}from"./build/context.js";import{buildOverviewItems as f}from"./items/overview/item.js";import{addTagItems as S}from"./group/item.js";import{openApiContext as m}from"./buildContext.js";import{mergeInMockServer as g}from"./utils/merge-mock-server.js";import{toSidebarLogo as v}from"../../utils/logo.js";function d(){return new Promise(r=>setTimeout(r,0))}function x(r,t){const o=r.servers??[];return g(o.filter(e=>typeof e?.url=="string"),t.mockServer).map(e=>({url:e.url,...e.name&&{name:e.name},...e.isMockServer&&{isMockServer:!0},...typeof e.description=="string"&&e.description&&{description:e.description},...e.variables&&Object.keys(e.variables).length>0&&{variables:e.variables}}))}async function M({document:r,basePath:t="/",options:o,processContent:i=!0}){const e=s(l(r));i&&(p(r,e,o),await d());const a=u({document:r,options:o,basePath:t,storeCtx:e,processContent:i}),n=x(r,o),c=v(r.info?.["x-logo"],r.info?.contact?.url);return m.run(a,()=>({items:b(),store:{schemaStore:e.schemaStore,exampleStore:e.exampleStore,securitySchemeStore:e.securitySchemeStore,mcp:e.document["x-mcp"],schemaCatalogLink:r["x-schema-catalog-link"],...n.length>0&&{servers:n},...c&&{logo:c}}}))}function b(){const r=m.get(),t=[...f(r.document)];return S(r.document,t),t}export{b as buildOpenApiItems,M as processOpenApiDocument};
@@ -0,0 +1,5 @@
1
+ import type { ApiItemContent } from '../../../../types/content.js';
2
+ import type { ApiDocsOptions } from '../../../../types/options.js';
3
+ type McpItemType = 'tool' | 'rsrc' | 'prompt';
4
+ export declare function buildMcpItemContent(mcpType: McpItemType, name: string, id: string, title: string, options: ApiDocsOptions): ApiItemContent;
5
+ export {};
@@ -0,0 +1 @@
1
+ import{contentType as d,nodeTypes as e}from"../../../../types/common.js";import{parseMarkdown as l}from"../../../utils/parseMarkdown.js";import{escapeHTMLAttrChars as n}from"../../utils/helpers.js";const i={tool:"mcpTool",rsrc:"mcpResource",prompt:"mcpPrompt"};function y(r,o,c,t,p){const s=i[r],m=n(o),a=n(c),T=`{% ${s} name="${m}" id="${a}" /%}`;return{contentType:d.ITEM,seo:{title:t},meta:{name:o},children:[{nodeType:e.CONTAINER,children:[{nodeType:e.HEADER,level:2,label:t,showPageActions:!0}],panels:[]},{nodeType:e.MARKDOC,content:l(T,p)??[]}]}}export{y as buildMcpItemContent};
@@ -0,0 +1,9 @@
1
+ import type { ApiItem, GroupItem } from '../../../../types/store.js';
2
+ import { type McpCollectionType } from '../../constants.js';
3
+ export declare function addMcpItems({ tagName, tagSlug, result, groupItems, }: {
4
+ tagName: string;
5
+ tagSlug: string;
6
+ result: ApiItem[];
7
+ groupItems?: McpGroupItems;
8
+ }): void;
9
+ export type McpGroupItems = Record<McpCollectionType, GroupItem[]>;
@@ -0,0 +1 @@
1
+ import{encodeBackSlashes as E,safeSlugify as g}from"../../../../utils/string.js";import{SUPPORTED_MCP_TYPES as M}from"../../constants.js";import{titleize as S}from"../../utils/helpers.js";import{joinWithSeparator as d,normalizePath as T,toRelativePath as b}from"../../../../utils/url.js";import{buildMcpItemContent as k}from"./content.js";import{openApiContext as x}from"../../buildContext.js";const I={tools:"tool",resources:"rsrc",prompts:"prompt"};function _(p,n){const s=n["x-mcp"];if(!s)return[];const i=[];for(const o of M){const c=s[o];if(!c)continue;const m=S(o);for(const e of c)(e.tags?.length?e.tags:[m]).includes(p)&&i.push({entity:e,collectionType:o})}return i}function v({tagName:p,tagSlug:n,result:s,groupItems:i}){const{document:o,options:c,processContent:m,basePath:e}=x.get(),f=_(p,o);for(const{entity:t,collectionType:u}of f){const r=I[u],a=t.title||t.name,h=E(g(t.name).toLowerCase()||t.name.toLowerCase()),l=T(d(n,h)),y=d(n,g(t.name)),P={type:"link",label:a,link:l,routeSlug:l,httpVerb:r,content:m?k(r,t.name,y,a,c):null};s.push(P);const C={title:a,prefix:{name:r,color:r},link:T(b(l,e)),deprecated:!1};i?.[u]?.push(C)}}export{v as addMcpItems};
@@ -0,0 +1,3 @@
1
+ import type { ApiItemContent } from '../../../../types/content.js';
2
+ import type { OperationInfo } from '../../../../types/openapi.js';
3
+ export declare function buildItemContent(operationInfo: OperationInfo, pageSlug: string): ApiItemContent;
@@ -0,0 +1 @@
1
+ import{REDOCLY_TEAMS_RBAC as ee}from"@redocly/config";import{contentType as je,itemVariant as Ne,nodeTypes as u,panelKind as le,schemaKind as H}from"../../../../types/common.js";import{readRbacScope as T,rbacProp as O,registerExample as te,registerSchema as K,resolveContent as pe,resolveRef as D}from"../../../helpers.js";import{applyIgnoreNamedSchemasDeep as Te}from"../../utils/applyIgnoreNamedSchemasDeep.js";import{isStatusCode as Pe}from"../../../../utils/status-code.js";import{parseMarkdown as F}from"../../../utils/parseMarkdown.js";import{extractDescriptionSegments as $e,resolveMarkdocHeadingIds as me}from"../../../utils/markdoc.js";import{getExtensionsForDisplay as ue}from"../../../../utils/extract-extensions.js";import{openApiContext as _}from"../../buildContext.js";import{buildCodeSampleSource as De}from"../../build-code-sample-source.js";import{mergeInMockServer as Be,pickOperationServers as He}from"../../utils/merge-mock-server.js";import{normalizePath as Ke,toRelativePath as Ee}from"../../../../utils/url.js";import{encodeJsonPointerSegment as B}from"../../../../utils/refPointer.js";import{hasOpenApiExampleValue as ge,resolveOpenApiExampleValue as ye}from"../../resolve-openapi-example-value.js";const se="request",ke="responses";function it(e,n){const{options:i,storeCtx:c,basePath:s}=_.get(),t=e.summary||e.operationId||e.pathName||"Unknown Operation",r=[],{feedback:y}=i,d=e.isWebhook||!1,p=[{nodeType:u.HEADER,level:2,label:t,badges:e["x-badges"],isWebhook:d,deprecated:e.deprecated,showPageActions:!0}],o=ue(e,i.showExtensions);Object.keys(o).length>0&&p.push({nodeType:u.EXTENSIONS,extensions:o}),r.push({nodeType:u.CONTAINER,children:p,panels:[]});const m=i.ignoreNamedSchemas,f=e["x-codeSamples"]?.map(({lang:a,label:x,source:h})=>({lang:a,label:x,source:h})),S=He(e.servers,c?.document?.servers),E=Be(S.filter(a=>typeof a?.url=="string"),i.mockServer).map(a=>{const x=T(a);return{url:a.url??"",name:a.name,description:typeof a.description=="string"?a.description:void 0,...a.isMockServer&&{isMockServer:!0},variables:a.variables&&Object.keys(a.variables).length>0?Object.fromEntries(Object.entries(a.variables).map(([h,M])=>[h,{default:M.default}])):void 0,...O(x)}}),b=Oe(e,m),R=Ee(n,s);let l=[];e.description&&(me(e.description,R,se),l=$e(e.description,i));const A=l.some(a=>a.kind==="schemaDefinition"),g=b.find(a=>a.nodeType===u.ITEM&&a.variant==="body"),v=Fe(e,m,d,R||void 0),j=g?.schemaId,q=g?.mediaTypes,N=g?.mediaTypeSchemas,$=T(g),C=[{children:[{kind:le.CODE_SAMPLE,source:v,definitionSamples:f?.length?f:void 0,isWebhook:d,hideReplay:e["x-hideReplay"]===!0,servers:E?.length?E:void 0,schemaId:j,exampleIds:g?.exampleIds,mediaTypes:q,mediaTypeSchemas:N,examples:g?.exampleIds?.map(()=>({}))??[]}],...O($)}];if(b.length>0||l.length>0)if(A){r.push({nodeType:u.CONTAINER,children:[{nodeType:u.HEADER,level:4,label:"Request",labelTranslationKey:"request",deepLinkSuffix:se}],panels:[]});for(const a of l)a.kind==="schemaDefinition"?r.push(a.node):r.push({nodeType:u.CONTAINER,children:[a.node],panels:[]});r.push({nodeType:u.CONTAINER,children:[...b],panels:C})}else r.push({nodeType:u.CONTAINER,children:[{nodeType:u.HEADER,level:4,label:"Request",labelTranslationKey:"request",deepLinkSuffix:se},...l.map(a=>a.node),...b],panels:C});else r.push({nodeType:u.CONTAINER,children:[{nodeType:u.HEADER,level:4,label:"Request",labelTranslationKey:"request",deepLinkSuffix:se},{nodeType:u.EMPTY_MESSAGE,label:"No request data",labelTranslationKey:"noRequestData"}],panels:C});if(e.responses){const a=Re(e,i,R,m);if(a){const x=a.responses?.some(k=>k.schemaId||(k.exampleIds?.length??0)>0),h=a?.responses?.map(k=>{const re=k[ee];return{code:k.code,schemaId:k.schemaId,exampleIds:k.exampleIds,mediaTypes:k.mediaTypes,mediaTypeContent:k.mediaTypeContent,...O(re)}}),M=[];x&&M.push({children:[{kind:le.RESPONSE,headerTitle:"Response",responseCodes:h,examples:[]}]});const U=T(e.responses);r.push({nodeType:u.CONTAINER,children:[{nodeType:u.HEADER,level:4,label:"Responses",labelTranslationKey:"responses",deepLinkSuffix:"responses"},a],panels:M.length>0?M:[],...O(U)})}}if(Array.isArray(e.callbacks)&&e.callbacks.length>0){r.push({nodeType:u.CONTAINER,children:[{nodeType:u.HEADER,level:4,label:"Callbacks",labelTranslationKey:"callbacks",deepLinkSuffix:"callbacks"}],panels:[]});let a=0;for(const x of e.callbacks)if(x.operations)for(const h of x.operations){const M=h.httpVerb??"post",U=`${x.name}/${M}/${a}`,k={pointer:e.pointer+"/callbacks/"+x.name+"/"+M,pathName:h.pathName??x.url??"",httpVerb:M,summary:h.summary,deprecated:h.deprecated,isWebhook:!1,isAdditionalOperation:!1,tags:[],parameters:h.parameters,requestBody:h.requestBody,responses:h.responses,servers:h.servers,security:h.security},re=Oe(k,m),he=Re(k,i,`${R}/callbacks/${U}`,m),oe=[...re];he&&oe.push(he);const ie=h.externalDocs,fe=ue(h,i.showExtensions),Ae={httpVerb:M,pathName:k.pathName,summary:k.summary,operationId:typeof h.operationId=="string"?h.operationId:void 0,description:h.description?F(h.description,i):void 0,deprecated:k.deprecated,callbackName:x.name,callbackId:U,externalDocs:ie?{url:ie.url,description:ie.description}:void 0,extensions:Object.keys(fe).length>0?fe:void 0,contentChildren:oe.length>0?oe:void 0},be=[];if(h.requestBody&&"content"in h.requestBody){const ce=c?.document??{},qe=D(ce,h.requestBody,m)??h.requestBody,ae=pe(ce,qe,m);if(ae){const xe=Object.keys(ae);let X=!1;const de={};for(const[W,P]of Object.entries(ae)){let Q;if(P.schema){const V=P.schema;Q=K(c.schemaStore,c.hashIndex,{kind:H.JSON_SCHEMA,data:V})}const G=`${k.pointer}/requestBody/content/${B(W)}`.replace(/^\//,""),L=[];if(P.example!==void 0){const V=te(c.exampleStore,{value:P.example,id:`${G}/example`});L.push(V),X=!0}if(P.examples)for(const[V,Ie]of Object.entries(P.examples)){const Z=D(ce,Ie,m);if(Z&&ge(Z)){const Me=te(c.exampleStore,{value:ye(Z),summary:Z.summary??V,id:`${G}/examples/${B(V)}`});L.push(Me),X=!0}}de[W]={schemaId:Q,exampleIds:L.length>0?L:void 0},Q&&(X=!0)}const Se=h["x-codeSamples"];if(X||(Se?.length??0)>0){const W=h.servers?.filter(P=>P.url).map(({url:P,name:Q,description:G,variables:L})=>({url:P,name:Q,description:G,variables:L}));be.push({children:[{kind:le.CALLBACK_PAYLOAD,callbackName:U,path:k.pathName,httpVerb:M,servers:W?.length?W:void 0,definitionSamples:Se,mediaTypes:xe.length>0?xe:void 0,mediaTypeSchemas:Object.keys(de).length>0?de:void 0,examples:[]}]})}}}const ve=T(x);r.push({nodeType:u.CONTAINER,children:[{nodeType:u.ITEM,variant:"callback",callback:Ae,pointer:e.pointer+"/callbacks"}],panels:be,...O(ve)}),a++}}y?.hide!==!0&&r.push({nodeType:u.CONTAINER,children:[{nodeType:u.FEEDBACK,pageSlug:Ke(Ee(n,s))}],panels:[]});const w=b.some(a=>{const x=a;return x.variant==="body"&&((x.exampleIds?.length??0)>0||!!x.schemaId)})||(f?.length??0)>0;return{contentType:je.ITEM,itemVariant:Ne.HTTP_ITEM,seo:e["x-seo"],meta:{sourceId:e.operationId,name:t,deprecated:e.deprecated,isWebhook:e.isWebhook||!1,pointer:e.pointer,hasSamples:w},children:r}}function _e(e,n,i){const c=D(n,e,i)??e,{$ref:s,...t}=e,r=typeof s=="string"?{...c,...t}:c;return Te(r,i)}function Y(e,n,i){if(!e||typeof e!="object")return;const c=e,s=D(n,c,i)??c;return Te(s,i)}function we(e,n,i){if(!e||typeof e!="object")return;const c=T(e),s={},t=[];for(const[r,y]of Object.entries(e)){if(r===ee)continue;const d=D(n,y,i)??y,p=d.content,o=p?p[Object.keys(p)[0]]:void 0,m=d.schema??o?.schema??o?.itemSchema,f=Y(m,n,i);if(!f)continue;const S=Ce(d.examples,n,i),E=T(y)??T(d)??c;s[r]={...f,...d.description!==void 0&&{description:d.description},...d.example!==void 0&&{example:d.example},...S&&{examples:S},...O(E)},d.required&&t.push(r)}if(Object.keys(s).length!==0)return{type:"object",properties:s,...t.length>0?{required:t}:{}}}function Le(e){if(typeof e=="string"||e&&typeof e=="object"&&"$$mdtype"in e||Array.isArray(e)&&e.length>0&&e.every(n=>!!n&&typeof n=="object"&&"$$mdtype"in n))return e}function z(e,n){const{storeCtx:i,options:c}=_.get(),s=i.document;return e.map(t=>{const r=t.schema;let y={};if(r&&typeof r=="object")y=r;else if(t.content&&typeof t.content=="object"){const S=t.content,E=Object.keys(S)[0],b=E?S[E]?.schema:void 0;b&&typeof b=="object"&&(y=b)}const d=K(i.schemaStore,i.hashIndex,{kind:H.JSON_SCHEMA,data:y}),p=t["x-badges"],o=y["x-badges"],m=Array.isArray(p)?p:Array.isArray(o)?o:void 0,f=ue(t,c.showExtensions);return{name:String(t.name??""),in:typeof t.in=="string"?t.in:void 0,schemaId:d,description:Le(t.description),required:t.required===!0?!0:void 0,deprecated:t.deprecated===!0?!0:void 0,example:t.example,examples:Ce(t.examples,s,n),...m?.length?{badges:m}:{},...Object.keys(f).length?{extensions:f}:{},...O(T(t))}})}function Ce(e,n,i){if(!e||typeof e!="object")return;const c={};for(const[s,t]of Object.entries(e)){if(!t||typeof t!="object")continue;const r=D(n,t,i)??t;if(!ge(r))continue;const y=ye(r);c[s]={...typeof r.summary=="string"&&{summary:r.summary},...typeof r.description=="string"&&{description:r.description},...y!==void 0&&{value:typeof y=="string"?y:JSON.stringify(y)}}}return Object.keys(c).length>0?c:void 0}function Oe(e,n){const{storeCtx:i,options:c}=_.get(),s=[],t=i.document,r=Ve(e);if(r&&s.push(r),e.parameters&&Array.isArray(e.parameters)){const d=e.parameters.map(l=>_e(l,t,n)),p=d.filter(l=>l.in==="header"),o=d.filter(l=>l.in==="query"),m=d.filter(l=>l.in==="path"),f=d.filter(l=>l.in==="cookie"),S=d.filter(l=>l.in==="querystring"),E=S.filter(l=>!l.content||typeof l.content!="object"),b=S.filter(l=>l.content&&typeof l.content=="object"),R=S.length>0;m.length>0&&s.push({nodeType:u.ITEM,variant:"path",label:"Path",labelTranslationKey:"path",parameters:z(m,n),pointer:e.pointer+"/parameters"}),o.length>0&&!R&&s.push({nodeType:u.ITEM,variant:"query",label:"Query",labelTranslationKey:"query",parameters:z(o,n),pointer:e.pointer+"/parameters"}),E.length>0&&s.push({nodeType:u.ITEM,variant:"querystring",label:"Query String",labelTranslationKey:"querystring",parameters:z(E,n),pointer:e.pointer+"/parameters"});for(const l of b){const A=l.content,g=Object.keys(A),v={};for(const $ of g){const C=A[$];if(!C)continue;let I;const J=C.itemSchema,w=C.schema??J,a=Y(w,t,n);a&&(I=K(i.schemaStore,i.hashIndex,{kind:H.JSON_SCHEMA,data:a}));const x=ne(C,n);v[$]={schemaId:I,exampleIds:x,...O(T(w))}}const j=g[0],q=j?v[j]:void 0,N=F(l.description,c);s.push({nodeType:u.ITEM,variant:"querystring-body",label:String(l.name??""),required:l.required===!0?!0:void 0,mediaTypes:g.length>0?g:void 0,mediaTypeSchemas:Object.keys(v).length>0?v:void 0,schemaId:q?.schemaId,exampleIds:q?.exampleIds,pointer:e.pointer+"/parameters",...N!==void 0?{description:N}:{},...O(T(l))})}f.length>0&&s.push({nodeType:u.ITEM,variant:"cookies",label:"Cookies",labelTranslationKey:"cookie",parameters:z(f,n),pointer:e.pointer+"/parameters"}),p.length>0&&s.push({nodeType:u.ITEM,variant:"headers",label:"Headers",labelTranslationKey:"header",parameters:z(p,n),pointer:e.pointer+"/parameters"})}if(e.requestBody){const y=D(t,e.requestBody,n)??e.requestBody,d=pe(t,y,n),p=d?Object.keys(d):void 0;let o,m,f;if(d&&p){f={};for(const l of p){const A=d[l];if(!A)continue;let g;const v=A.itemSchema,j=A.schema??v,q=Y(j,t,n);q&&(g=K(i.schemaStore,i.hashIndex,{kind:H.JSON_SCHEMA,data:q}));const N=ne(A,n,`${e.pointer}/requestBody/content/${B(l)}`);f[l]={schemaId:g,exampleIds:N,...O(T(j))}}const b=p[0],R=b?f[b]:void 0;o=R?.schemaId,m=R?.exampleIds}const S=F(y.description,c),E=T(e.requestBody)??T(y);s.push({nodeType:u.ITEM,variant:"body",label:"Request Body",labelTranslationKey:"body",required:y.required,mediaTypes:p,mediaTypeSchemas:f,schemaId:o,exampleIds:m,pointer:e.pointer+"/requestBody",...S!==void 0?{description:S}:{},...O(E)})}return s}function Re(e,n,i,c){if(!e.responses)return;const{storeCtx:s}=_.get(),t=s?.document??{},r=e.responses,d=Object.entries(r).filter(([p])=>Pe(p)).map(([p,o])=>{const m=D(t,o,c)??o;let f=T(o)??T(m);const S=pe(t,m,c),E=S?Object.keys(S):[],b=E[0],R=b&&S?S[b]:void 0;let l,A,g,v;if(S&&E.length>0){v={};for(const C of E){const I=S[C];if(!I)continue;let J;const w=I.itemSchema,a=I.schema??w,x=Y(a,t,c);x&&(J=K(s.schemaStore,s.hashIndex,{kind:H.JSON_SCHEMA,data:x}));const h=ne(I,c,`${e.pointer}/responses/${B(p)}/content/${B(C)}`);v[C]={schemaId:J,exampleIds:h,...O(T(a))}}const $=b?v[b]:void 0;l=$?.schemaId,A=$?.exampleIds}else if(R){const $=R.itemSchema,C=R.schema??$,I=Y(C,t,c);I&&(f=f??T(C),l=K(s.schemaStore,s.hashIndex,{kind:H.JSON_SCHEMA,data:I})),A=ne(R,c,b?`${e.pointer}/responses/${B(p)}/content/${B(b)}`:void 0)}const j=we(m.headers,t,c);j&&(g=K(s.schemaStore,s.hashIndex,{kind:H.JSON_SCHEMA,data:j}));let q;m.description&&(q=F(m.description,n),me(q??[],i,`${ke}/${p}`));const N=m["x-summary"]?F(m["x-summary"],n):void 0;return N&&me(N,i,`${ke}/${p}/summary`),{code:p,summary:N,description:q,mediaType:b,mediaTypes:E.length>0?E:void 0,mediaTypeContent:v,schemaId:l,exampleIds:A,headers:m.headers,headerSchemaId:g,...O(f)}});return{nodeType:u.ITEM,variant:"responses",responses:d,pointer:e.pointer+"/responses"}}function ne(e,n,i){const{storeCtx:c}=_.get(),s=[],t=c.document,r=i?.replace(/^\//,"");if(e.example!==void 0){const y=te(c.exampleStore,{value:e.example,...r&&{id:`${r}/example`}});s.push(y)}if(e.examples&&typeof e.examples=="object"){const y=T(e.examples);for(const[d,p]of Object.entries(e.examples)){if(d===ee||!p||typeof p!="object")continue;const o=D(t,p,n)??p,m=T(p)??T(o)??y,f=te(c.exampleStore,{value:ye(o),key:d,summary:typeof o.summary=="string"?o.summary:d,description:typeof o.description=="string"?o.description:void 0,externalValue:typeof o.externalValue=="string"?o.externalValue:void 0,...O(m),...r&&{id:`${r}/examples/${B(d)}`}});s.push(f)}}return s.length>0?s:void 0}function Ve(e){const{storeCtx:n,options:i}=_.get();if(!e.security||!Array.isArray(e.security)||e.security.length===0)return;const c=e.security.map(s=>{const t=Object.entries(s);if(t.length===0)return null;const r=n?.document?.components?.securitySchemes,y=t.map(([d,p])=>{const o=n?.securitySchemeStore[d],m=T(r?.[d])??o?.[ee];return{name:d,scopes:Array.isArray(p)?p:void 0,type:o?.type,scheme:o?.scheme,bearerFormat:o?.bearerFormat,in:o?.in,paramName:o?.paramName,description:o?.description?F(o.description,i):o?.description,openIdConnectUrl:o?.openIdConnectUrl,oauth2MetadataUrl:o?.oauth2MetadataUrl,deprecated:o?.deprecated,flows:o?.flows,...O(m)}}).filter(d=>d.name);return y.length>0?{schemes:y}:null}).filter(s=>s!==null);if(c.length!==0)return{nodeType:u.SECURITY,requirements:c}}function Fe(e,n,i,c){const{storeCtx:s,options:t}=_.get();if(!s)throw new Error("OpenAPI store context is not initialized");return De(e,s,t,n,i,c)}export{it as buildItemContent};
@@ -0,0 +1,9 @@
1
+ import { REDOCLY_TEAMS_RBAC } from '@redocly/config';
2
+ import type { ApiItem } from '../../../../types/store.js';
3
+ import type { OperationInfo } from '../../../../types/openapi.js';
4
+ export declare function addOperationItems({ operations, result, basePath: basePathOverride, parentRbac, }: {
5
+ operations: OperationInfo[];
6
+ result: ApiItem[];
7
+ basePath?: string;
8
+ parentRbac?: OperationInfo[typeof REDOCLY_TEAMS_RBAC];
9
+ }): void;
@@ -0,0 +1 @@
1
+ import{REDOCLY_TEAMS_RBAC as h}from"@redocly/config";import{WEBHOOKS_GROUP_TITLE as k}from"../../../../constants/openapi.js";import{buildItemContent as v}from"./content.js";import{getOperationData as y}from"../../utils/operation.js";import{resolveRequestValues as R,applyRequestValuesToOperationInfo as C}from"../../configure/index.js";import{openApiContext as d}from"../../buildContext.js";import{mergeInMockServer as I,pickOperationServers as S}from"../../utils/merge-mock-server.js";function j({operations:t,result:o,basePath:n,parentRbac:s}){const{basePath:r}=d.get(),e=n??r,{regular:c,regularDeprecated:u,webhooks:p,webhooksDeprecated:a}=D(t);for(const i of[...c,...u])O(i,e,o,s);const f=p.length>0||a.length>0,m=c.length>0||u.length>0;f&&m&&o.push({type:"separator",label:k,variant:"secondary",content:null});for(const i of[...p,...a])O(i,e,o,s)}function D(t){const o=[],n=[],s=[],r=[];for(const e of t)e.isWebhook?(e.deprecated?r:s).push(e):(e.deprecated?n:o).push(e);return{regular:o,regularDeprecated:n,webhooks:s,webhooksDeprecated:r}}function O(t,o,n,s){const{document:r,options:e,processContent:c}=d.get(),u=S(t.servers,r.servers),p=I(u.filter(l=>typeof l?.url=="string"),e.mockServer);if(c){const l=R({operationInfo:t,info:r.info??{},servers:p,basePath:o,userClaims:e.userClaims,dynamicRequestValues:e.dynamicRequestValues});l&&Object.keys(l).length>0&&C(t,l,p)}const{slug:a,badges:f,httpPath:m,seo:i,...b}=y(t,o),g={...b,type:"link",link:a,routeSlug:a,metadata:{...i?{seo:i}:{}},[h]:t[h]??s,content:c?v(t,a):null};f&&Object.assign(g,{badges:f}),m&&Object.assign(g,{httpPath:m}),n.push(g)}export{j as addOperationItems};
@@ -0,0 +1,18 @@
1
+ import type { Node } from '@markdoc/markdoc';
2
+ import type { ContentNode, ApiItemContent } from '../../../../types/content.js';
3
+ import type { OpenAPIDefinition } from '../../../../types/openapi.js';
4
+ import type { ApiDocsOptions, NormalizedDownloadUrl } from '../../../../types/options.js';
5
+ type OverviewContentOptions = {
6
+ downloadUrls?: NormalizedDownloadUrl[];
7
+ basePath: string;
8
+ unstable_hooks: ApiDocsOptions['unstable_hooks'];
9
+ sanitize: ApiDocsOptions['sanitize'];
10
+ markdownParser: ApiDocsOptions['markdownParser'];
11
+ } & Partial<ApiDocsOptions>;
12
+ export declare function buildOverviewContent({ document, description, sectionChildren, options, }: {
13
+ document: OpenAPIDefinition;
14
+ description: string | Node[] | undefined;
15
+ sectionChildren: ContentNode[];
16
+ options: OverviewContentOptions;
17
+ }): ApiItemContent;
18
+ export {};
@@ -0,0 +1 @@
1
+ import{contentType as A,nodeTypes as n}from"../../../../types/common.js";import{asString as S}from"../../../../utils/string.js";import{parseMarkdown as l}from"../../../utils/parseMarkdown.js";import{buildDownloadPanelContent as M}from"../../panels/download.js";import{buildInfoMetadataContentNode as N}from"../../../utils/infoMetadata.js";import{buildOverviewPanelContent as x}from"../../panels/overview.js";import{buildLanguagesPanelContent as V}from"../../panels/languages.js";import{buildMcpPanelContent as W}from"../../panels/mcp.js";import{buildServersPanelContent as _}from"../../panels/servers.js";import{mergeInMockServer as k}from"../../utils/merge-mock-server.js";function G({document:i,description:T,sectionChildren:g,options:o}){const{downloadUrls:p,hideDownloadButtons:y,hideInfoMetadata:D,basePath:m}=o,u=o.codeSamples?.languages??[],e=i.info,f=e?.["x-seo"],c=S(f?.title)??S(e?.title)??"API Documentation",I=e?.version?`${c} (${e.version})`:c,t=[];!y&&p&&t.push(M(p)),t.push(x(e)),u.length&&t.push(V(u));const h=W(i);h&&t.push(h);const O=k(i.servers??[],o.mockServer).map(r=>({...r,description:typeof r.description=="string"?r.description:void 0})),v=_(O);v&&t.push(v);const s={nodeType:n.OVERVIEW_SECTION_WRAPPER,children:[{nodeType:n.HEADER,level:1,label:I,showPageActions:!0}],sectionId:m},C=l(e.summary,o);C&&s.children.push({nodeType:n.MARKDOC,content:C});const E=l(T,o);E&&s.children.push({nodeType:n.OVERVIEW_SECTION_WRAPPER,children:[{nodeType:n.MARKDOC,content:E}],sectionId:m});const R=o,a=i.externalDocs||e?.externalDocs;if(a?.url){const r=l(a.description,R)??[];s.children.push({nodeType:n.EXTERNAL_DOCS,url:a.url,description:r})}const P=N(e,D),d=[s];P&&d.push(P),d.push(...g);const b={nodeType:n.CONTAINER,panels:t,children:d},w={name:c};return{contentType:A.OVERVIEW,seo:f,meta:w,children:[b]}}export{G as buildOverviewContent};
@@ -0,0 +1,3 @@
1
+ import type { ApiItem } from '../../../../types/store.js';
2
+ import type { OpenAPIDefinition } from '../../../../types/openapi.js';
3
+ export declare function buildOverviewItems(document: OpenAPIDefinition): ApiItem[];
@@ -0,0 +1 @@
1
+ import{extractContentUntilFirstHeading as c,collectMarkdownSections as a}from"../../../utils/markdoc.js";import{buildOverviewContent as f}from"./content.js";import{openApiContext as v}from"../../buildContext.js";import{asString as r}from"../../../../utils/string.js";function C(t){const o=v.get(),{basePath:i}=o,s=c(t.info?.description,o.options),{sectionItems:l,sectionChildren:p}=a(t.info?.description,i,o.options),e=f({document:t,description:s,sectionChildren:p,options:{...o.options,basePath:i}}),n=r(e?.seo?.title)??r(t.info?.title);return[{type:"link",label:n||"Overview",labelTranslationKey:n?void 0:"openapi.info.title",link:i,routeSlug:i,content:e},...l]}export{C as buildOverviewItems};
@@ -0,0 +1,3 @@
1
+ import type { ApiItemContent } from '../../../../types/content.js';
2
+ import type { ApiDocsOptions } from '../../../../types/options.js';
3
+ export declare function buildSchemaDefinitionContent(schemaName: string, title: string | undefined, options: ApiDocsOptions): ApiItemContent;
@@ -0,0 +1 @@
1
+ import{contentType as c,itemVariant as p,nodeTypes as n}from"../../../../types/common.js";import{parseMarkdown as a}from"../../../utils/parseMarkdown.js";function d(e,r,s){const t=r??e,o=a(`{% schemaDefinition showWriteOnly=true schemaRef="#/components/schemas/${e}" /%}`,s),i=[{nodeType:n.CONTAINER,children:[{nodeType:n.HEADER,level:2,label:t,showPageActions:!0}],panels:[]}];return o&&i.push({nodeType:n.MARKDOC,content:o}),{contentType:c.ITEM,itemVariant:p.SCHEMA,meta:{name:e},seo:{title:t},children:i}}export{d as buildSchemaDefinitionContent};
@@ -0,0 +1,9 @@
1
+ import type { ApiItem, GroupItem } from '../../../../types/store.js';
2
+ import type { OpenAPIDefinition } from '../../../../types/openapi.js';
3
+ export declare function getSchemaNamesForTag(tagName: string, document: OpenAPIDefinition, schemaDefinitionsTagName: string | undefined): string[];
4
+ export declare function addSchemaDefinitionItems({ tagName, tagSlug, result, groupItems, }: {
5
+ tagName: string;
6
+ tagSlug: string;
7
+ result: ApiItem[];
8
+ groupItems?: GroupItem[];
9
+ }): void;
@@ -0,0 +1 @@
1
+ import{REDOCLY_TEAMS_RBAC as T}from"@redocly/config";import{encodeBackSlashes as x,safeSlugify as R}from"../../../../utils/string.js";import{joinWithSeparator as k,normalizePath as g,toRelativePath as w}from"../../../../utils/url.js";import{readRbacScope as S,rbacProp as d}from"../../../helpers.js";import{buildSchemaDefinitionContent as N}from"./content.js";import{openApiContext as P}from"../../buildContext.js";function A(r,i,a){const c=i.components?.schemas;if(!c)return[];const o=a?[a]:[],s=[];for(const[e,n]of Object.entries(c)){if(e===T)continue;const m=n["x-tags"];(m?.length?m:o).includes(r)&&s.push(e)}return s.sort((e,n)=>e.localeCompare(n))}function O({tagName:r,tagSlug:i,result:a,groupItems:c}){const{document:o,options:s,processContent:e,basePath:n}=P.get(),l=A(r,o,s.schemaDefinitionsTagName),m=S(o.components?.schemas);for(const t of l){const f=o.components?.schemas?.[t],h=f?.title??t,b=x(R(t).toLowerCase()||t.toLowerCase()),p=g(k(i,b)),u=S(f)??m,C={type:"link",label:h,link:p,routeSlug:p,httpVerb:"schema",content:e?N(t,h,s):null,...d(u)};a.push(C),c?.push({title:h,link:g(w(p,n)),deprecated:!1,...d(u)})}}export{O as addSchemaDefinitionItems,A as getSchemaNamesForTag};
@@ -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 @@
1
+ import{panelKind as e}from"../../../types/common.js";function l(n){return{title:"Download OpenAPI description",titleTranslationKey:"download.description.title",children:n.map(t=>({kind:e.DOWNLOAD,label:t.title||t.url,url:t.url}))}}export{l as buildDownloadPanelContent};
@@ -0,0 +1,3 @@
1
+ import type { LanguagesNode } from '../../../types/content.js';
2
+ import type { CodeSamplesConfig } from '../../../types/options.js';
3
+ export declare function buildLanguagesPanelContent(languages: CodeSamplesConfig['languages']): LanguagesNode;
@@ -0,0 +1 @@
1
+ import{panelKind as e}from"../../../types/common.js";function l(t){return{title:"Languages",titleTranslationKey:"languages.title",children:[{kind:e.LANGUAGES,options:t.map(n=>({key:n.key,title:n.label,lang:n.lang}))}]}}export{l as buildLanguagesPanelContent};
@@ -0,0 +1,3 @@
1
+ import type { McpNode } from '../../../types/content.js';
2
+ import type { OpenAPIDefinition } from '../../../types/openapi.js';
3
+ export declare function buildMcpPanelContent(document: OpenAPIDefinition): McpNode | null;
@@ -0,0 +1 @@
1
+ import{panelKind as i}from"../../../types/common.js";import{MCP_SERVER_EXPERIMENTAL_CAPABILITIES as a,PAGE_ACTIONS_MCP as p}from"../constants.js";function u(o){const t=o?.["x-mcp"];if(!t)return null;const n=(t?.servers??o.servers??[])[0]?.url??"",e=[];if(t?.protocolVersion&&e.push({kind:i.ATTRIBUTE,label:"Protocol version",labelTranslationKey:"mcp.protocolVersion",value:t?.protocolVersion??"",withCopyButton:!0,copyContent:t?.protocolVersion??""}),t?.capabilities&&typeof t.capabilities=="object"){const r=Object.keys(t.capabilities).filter(l=>l!==a).map(l=>({text:l,color:"green",icon:"checkmark"}));r.length>0&&e.push({kind:i.TAGS,title:"Capabilities",titleTranslationKey:"mcp.capabilities",tags:r})}return t?.capabilities?.[a]&&e.push({kind:i.ATTRIBUTE,title:"Experimental capabilities",titleTranslationKey:"mcp.experimentalCapabilities",label:"Value",labelTranslationKey:"value",value:JSON.stringify(t.capabilities.experimental),withCopyButton:!0,copyContent:JSON.stringify(t.capabilities.experimental)}),e.push({kind:i.EXTERNAL_LINK,title:"Endpoint",titleTranslationKey:"mcp.endpoint",label:n,url:n,withCopyButton:!0,copyContent:n}),e.push({kind:i.CONNECT_MCP_BUTTON,title:"Connect",actions:p,mcpUrl:n}),{title:"MCP server",titleTranslationKey:"mcp.title",children:e}}export{u as buildMcpPanelContent};
@@ -0,0 +1,3 @@
1
+ import type { OverviewNode } from '../../../types/content.js';
2
+ import type { OpenAPIInfo } from '../../../types/openapi.js';
3
+ export declare function buildOverviewPanelContent(info: OpenAPIInfo | undefined): OverviewNode;
@@ -0,0 +1 @@
1
+ import{panelKind as l}from"../../../types/common.js";function n(e){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,3 @@
1
+ import type { ServerData } from '../../../types/common.js';
2
+ import type { ServersNode } from '../../../types/content.js';
3
+ export declare function buildServersPanelContent(servers: ServerData[]): ServersNode | null;
@@ -0,0 +1 @@
1
+ import{panelKind as t}from"../../../types/common.js";function l(e){return!e||e.length===0?null:{title:"Servers",titleTranslationKey:"servers.title",children:[{kind:t.SERVERS,servers:e,mode:"default"}]}}export{l as buildServersPanelContent};
@@ -0,0 +1,3 @@
1
+ import type { OpenAPIExample } from '../../types/openapi.js';
2
+ export declare function resolveOpenApiExampleValue(example: OpenAPIExample | undefined): unknown;
3
+ export declare function hasOpenApiExampleValue(example: OpenAPIExample | undefined): boolean;
@@ -0,0 +1 @@
1
+ function n(e){if(e)return e.dataValue!==void 0?e.dataValue:e.serializedValue!==void 0?e.serializedValue:e.value}function u(e){return e?e.dataValue!==void 0||e.serializedValue!==void 0||e.value!==void 0:!1}export{u as hasOpenApiExampleValue,n as resolveOpenApiExampleValue};
@@ -0,0 +1,4 @@
1
+ import type { ApiStore, StoreContext } from '../../types/store.js';
2
+ import type { OpenAPIDefinition } from '../../types/openapi.js';
3
+ import type { ApiDocsOptions } from '../../types/options.js';
4
+ export declare function populateOpenApiStore(document: OpenAPIDefinition, storeCtx: StoreContext, options: ApiDocsOptions): ApiStore;
@@ -0,0 +1 @@
1
+ import{schemaKind as w}from"../../types/common.js";import{registerSchema as v,registerExample as E,registerSecurityScheme as V,resolveRef as S,isRecord as y,readRbacScope as l,rbacProp as b,splitRbacSection as g}from"../helpers.js";import{applyIgnoreNamedSchemasDeep as k}from"./utils/applyIgnoreNamedSchemasDeep.js";import{parseMarkdown as A}from"../utils/parseMarkdown.js";import{resolveOpenApiExampleValue as C}from"./resolve-openapi-example-value.js";const I=["x-defaultClientId","x-defaultAccessToken","x-defaultTokenType","x-defaultClientSecret","x-defaultUsername","x-defaultPassword"];function M(d){const c={},r=d;for(const n of I)r[n]&&(c[n]=r[n]);return r["x-serverValues"]&&(c.serverValues=r["x-serverValues"]),c}function j(d,c,r){const{schemaStore:n,exampleStore:f,securitySchemeStore:u,hashIndex:R}=c,{ignoreNamedSchemas:p}=r,x=c.document,a=d.components,h=d["x-root"];if(y(h)){const s=k(h,p),o=y(s)?s:h;v(n,R,{id:"x-root",kind:w.JSON_SCHEMA,title:typeof o.title=="string"?o.title:"Root",data:o})}if(!a)return{schemaStore:n,exampleStore:f,securitySchemeStore:u};if(a.schemas){const{sectionRbac:s,entries:o}=g(a.schemas);for(const[i,t]of o){const e=S(x,t,p)??t,m=k(e,p);y(m)&&v(n,R,{id:`components/schemas/${i}`,kind:w.JSON_SCHEMA,title:typeof m.title=="string"?m.title:i,data:m,...b(s)})}}if(a.examples){const{sectionRbac:s,entries:o}=g(a.examples);for(const[i,t]of o){const e=S(x,t,p)??t;!e||typeof e!="object"||E(f,{id:`components/examples/${i}`,value:C(e),summary:typeof e.summary=="string"?e.summary:void 0,description:typeof e.description=="string"?e.description:void 0,externalValue:e.externalValue,...b(l(t)??l(e)??s)})}}if(a.securitySchemes){const{sectionRbac:s,entries:o}=g(a.securitySchemes);for(const[i,t]of o){if(!t||typeof t!="object")continue;const e=S(x,t,p)??t;if(!e)continue;const m={id:i,type:e.type,scheme:e.scheme,bearerFormat:e.bearerFormat,description:e.description?A(e.description,r):void 0,in:e.in,paramName:e.name,openIdConnectUrl:e.openIdConnectUrl,oauth2MetadataUrl:e.oauth2MetadataUrl,deprecated:e.deprecated,flows:e.flows,...M(e),...b(l(t)??l(e)??s)};V(u,m)}}return{schemaStore:n,exampleStore:f,securitySchemeStore:u}}export{j as populateOpenApiStore};
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Wrapper for JsonPointer. Provides common operations
3
+ */
4
+ export declare class JsonPointer {
5
+ /**
6
+ * returns last JsonPointer token
7
+ * if level > 1 returns levels last (second last/third last)
8
+ * @example
9
+ * // returns subpath
10
+ * JsonPointerHelper.baseName('/path/0/subpath')
11
+ * // returns foo
12
+ * JsonPointerHelper.baseName('/path/foo/subpath', 2)
13
+ */
14
+ static baseName(pointer?: string, level?: number): string;
15
+ /**
16
+ * returns dirname of pointer
17
+ * if level > 1 returns corresponding dirname in the hierarchy
18
+ * @example
19
+ * // returns /path/0
20
+ * JsonPointerHelper.dirName('/path/0/subpath')
21
+ * // returns /path
22
+ * JsonPointerHelper.dirName('/path/foo/subpath', 2)
23
+ */
24
+ static dirName(pointer: string, level?: number): string;
25
+ /**
26
+ * returns relative path tokens
27
+ * @example
28
+ * // returns ['subpath']
29
+ * JsonPointerHelper.relative('/path/0', '/path/0/subpath')
30
+ * // returns ['foo', 'subpath']
31
+ * JsonPointerHelper.relative('/path', '/path/foo/subpath')
32
+ */
33
+ static relative(from: string, to: string): string[];
34
+ /**
35
+ * overridden JsonPointer original parse to take care of prefixing '#' symbol
36
+ * that is not valid JsonPointer
37
+ */
38
+ static parse(pointer?: string): string[];
39
+ /**
40
+ * Creates a JSON pointer path, by joining one or more tokens to a base path.
41
+ *
42
+ * @param {string} base - The base path
43
+ * @param {string|string[]} tokens - The token(s) to append (e.g. ["name", "first"])
44
+ * @returns {string}
45
+ */
46
+ static join(base: string, tokens: string | string[]): string;
47
+ static get<T>(object: GenericObject, pointer: string): T;
48
+ static compile(tokens: string[]): string;
49
+ static escape(pointer: string): string;
50
+ }
51
+ export default JsonPointer;
@@ -0,0 +1 @@
1
+ import a from"json-pointer";const n=a.parse;class s{static baseName(e="",t=1){const r=s.parse(e);return r[r.length-t]}static dirName(e,t=1){const r=s.parse(e);return a.compile(r.slice(0,r.length-t))}static relative(e,t){const r=s.parse(e);return s.parse(t).slice(r.length)}static parse(e=""){let t=e;return t.charAt(0)==="#"&&(t=t.substring(1)),n(t)}static join(e,t){const c=s.parse(e).concat(t);return a.compile(c)}static get(e,t){return a.get(e,t)}static compile(e){return a.compile(e)}static escape(e){return a.escape(e)}}a.parse=s.parse,Object.assign(s,a);var i=s;export{s as JsonPointer,i as default};
@@ -0,0 +1 @@
1
+ export declare function applyIgnoreNamedSchemasDeep(value: unknown, ignoreNamedSchemas?: Set<string>): unknown;
@@ -0,0 +1 @@
1
+ import{isRecord as p}from"../../helpers.js";import{getDefinitionName as e}from"./helpers.js";function o(r,f){if(!f||f.size===0)return r;if(Array.isArray(r))return r.map(t=>o(t,f));if(!p(r))return r;if(typeof r.$ref=="string"){const t=e(r.$ref);return t&&f.has(t)?{type:"object",title:t}:r}const i={};for(const[t,n]of Object.entries(r))i[t]=o(n,f);return i}export{o as applyIgnoreNamedSchemasDeep};
@@ -0,0 +1,14 @@
1
+ export declare function stripTrailingSlash(path: string): string;
2
+ export declare function isNumeric(value: unknown): value is number;
3
+ export declare function isAbsoluteUrl(url: string): boolean;
4
+ /**
5
+ * simple resolve URL which doesn't break on strings with url fragments
6
+ * e.g. resolveUrl('http://test.com:{port}', 'path') results in http://test.com:{port}/path
7
+ */
8
+ export declare function resolveUrl(url: string, to: string): string;
9
+ export declare function titleize(text: string): string;
10
+ export declare function removeQueryStringAndHash(serverUrl: string): string;
11
+ export declare function escapeHTMLAttrChars(str: string): string;
12
+ export declare function sanitizeItemId(id: string): string;
13
+ export declare function get<T = unknown>(object: GenericObject | undefined, path: string | Array<string>, defval?: T): T | unknown;
14
+ export declare function getDefinitionName(pointer?: string): string | undefined;
@@ -0,0 +1 @@
1
+ import{urlParse as s}from"./url.js";function o(e){return e.endsWith("/")?e.substring(0,e.length-1):e}function a(e){return!isNaN(parseFloat(e))&&isFinite(e)}function c(e){return/(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(e)}function f(e,t){let r;if(t.startsWith("//"))r=`${s(e,!0)?.protocol||"https:"}${t}`;else if(c(t))r=t;else if(!t.startsWith("/"))r=o(e)+"/"+t;else{const n=s(e);n?(n.pathname=t,r=n.toString()):r=t}return o(r)}function l(e){return e.charAt(0).toUpperCase()+e.slice(1)}function g(e){try{if(!e)return"";const t=new URL(e);return t.search="",t.hash="",t.toString()}catch{return e}}function h(e){return e.replace(/["\\]/g,"\\$&")}function m(e){return e&&e.replace(/#/g,"_").toLowerCase()}function N(e={},t,r){return typeof t=="string"&&(t=t.split(".")),t.reduce((n,i)=>n&&typeof n=="object"&&i in n?n[i]:r,e)}const u=/^#\/components\/(schemas|pathItems)\/([^/]+)$/;function I(e){return e?.match(u)?.pop()}export{h as escapeHTMLAttrChars,N as get,I as getDefinitionName,c as isAbsoluteUrl,a as isNumeric,g as removeQueryStringAndHash,f as resolveUrl,m as sanitizeItemId,o as stripTrailingSlash,l as titleize};
@@ -0,0 +1,15 @@
1
+ import type { OpenAPIServer } from '../../../types/openapi.js';
2
+ export type MockServerOptions = {
3
+ url?: string;
4
+ position?: 'first' | 'last' | 'replace' | 'off';
5
+ description?: string;
6
+ } | null | undefined;
7
+ export declare function mergeInMockServer(servers: OpenAPIServer[], mockServerOptions: MockServerOptions): OpenAPIServer[];
8
+ /** Operation servers win when non-empty; an empty array falls through to the
9
+ * document servers (see the empty-array test — a `??` fallback would not). */
10
+ export declare function pickOperationServers<T>(operationServers: T[] | undefined, documentServers: T[] | undefined): T[];
11
+ /** Strips servers injected by {@link mergeInMockServer}. Returns the same
12
+ * reference when nothing is flagged. */
13
+ export declare function excludeMockServers<T extends {
14
+ isMockServer?: boolean;
15
+ }>(servers: T[]): T[];
@@ -0,0 +1 @@
1
+ function c(r,t){if(!t?.url)return r;const e={url:t.url,description:t.description,isMockServer:!0};switch(t.position){case"first":return[e,...r];case"last":return[...r,e];case"replace":return[e];default:return r}}function u(r,t){return r&&r.length>0?r:t??[]}function n(r){return r.some(t=>t.isMockServer)?r.filter(t=>!t.isMockServer):r}export{n as excludeMockServers,c as mergeInMockServer,u as pickOperationServers};
@@ -0,0 +1,23 @@
1
+ import type { OperationInfo, OpenAPIXBadges } from '../../../types/openapi.js';
2
+ import type { SeoData } from '../../../types/common.js';
3
+ import type { ParseMarkdownOptions } from '../../utils/parseMarkdown.js';
4
+ type OperationData = {
5
+ slug: string;
6
+ label: string;
7
+ badges?: OpenAPIXBadges[];
8
+ deprecated: boolean;
9
+ isAdditionalOperation?: boolean;
10
+ httpVerb: string;
11
+ httpPath: string;
12
+ isWebhook: boolean;
13
+ seo?: SeoData;
14
+ };
15
+ export declare function getOperationData(operation: OperationInfo, basePath: string): OperationData;
16
+ export declare function getOperationSummary(operation: OperationInfo, markdownOptions: ParseMarkdownOptions): string | undefined;
17
+ type OperationColorProps = {
18
+ deprecated?: boolean;
19
+ isAdditionalOperation?: boolean;
20
+ httpVerb: string;
21
+ };
22
+ export declare function getOperationColor({ deprecated, isAdditionalOperation, httpVerb, }: OperationColorProps): string;
23
+ export {};
@@ -0,0 +1 @@
1
+ import{DEFAULT_TAG_SLUG as p}from"../../../constants/openapi.js";import{asString as s,encodeBackSlashes as i}from"../../../utils/string.js";import{extractSeoDescriptionText as u,extractSummaryText as f}from"../../utils/markdoc.js";import{normalizePath as h,joinWithSeparator as m}from"../../../utils/url.js";import{resolveItemSeo as g}from"../../utils/seo.js";import{sanitizeItemId as I}from"./helpers.js";function A(t,r){const e=t.tags?.length===1&&t.tags[0]==="",n=(t.operationId?e?m(p,i(t.operationId)):i(t.operationId):I(x(t.pointer)))||`${t.httpVerb}${i(t.pathName)}`,c=h(m(r,n.toLowerCase())),o=s(t.summary)??s(t.operationId)??s(t.pathName)??"Unknown Operation",l=g(t,{title:o,description:u(t.description)??s(t.summary)}),d={slug:c,label:o,deprecated:t.deprecated??!1,httpVerb:t.httpVerb,httpPath:t.pathName,isAdditionalOperation:t.isAdditionalOperation??!1,isWebhook:t.isWebhook??!1,seo:l};return t?.["x-badges"]&&(d.badges=t["x-badges"]),d}function U(t,r){const{operationId:e,summary:a}=t;return a||e||f(t.description,r)}function W({deprecated:t,isAdditionalOperation:r,httpVerb:e}){return t?"http-deprecated":r?"http-additional-operation":e}function x(t){return t?t.startsWith("/")?t.slice(1):t:""}export{W as getOperationColor,A as getOperationData,U as getOperationSummary};
@@ -0,0 +1,2 @@
1
+ import type { OpenAPIPath } from '../../../types/openapi.js';
2
+ export declare function resolvePathItemRef(document: Record<string, unknown>, pathItem: OpenAPIPath | undefined | null, openapi?: string): OpenAPIPath | undefined;
@@ -0,0 +1 @@
1
+ import{resolveJsonPointer as u}from"../../helpers.js";function g(r){return String(r??"").startsWith("3.1")}function p(r,e,o){if(!e||typeof e!="object")return;if(typeof e.$ref!="string")return e;const i=g(o);return c(r,e,i,[])}function c(r,e,o,i){const t=e.$ref;if(typeof t!="string")return e;if(i.includes(t)){const s=u(r,t);return{...s?{...s}:{},"x-circular-ref":!0}}const f=u(r,t);if(!f)throw new Error(`Failed to resolve $ref "${t}" for path item`);let n;if(typeof f.$ref=="string"?n=c(r,f,o,[...i,t]):n={...f},o){const{$ref:s,...l}=e;Object.keys(l).length>0&&(n={...n,...l})}return n}export{p as resolvePathItemRef};
@@ -0,0 +1,2 @@
1
+ export declare function urlParse(url: string, slashesDenoteHost?: boolean): URL | null;
2
+ export declare function getUrlDirname(urlLikeString: string): string | undefined;
@@ -0,0 +1 @@
1
+ function s(t,e=!1){let r=t;e&&r.startsWith("//")&&(r="http:"+t);try{return URL?.parse?URL?.parse(r):new URL(r)}catch(n){return console.error("Invalid URL: %s",r,n),null}}function o(t){try{const e=new URL(t);let r=e.pathname;if(r.endsWith("/"))return e.origin+r;const n=r.lastIndexOf("/");return n!==-1?(r=r.substring(0,n+1),e.origin+r):e.origin+"/"}catch(e){console.error(`Invalid URL: ${t}`,e);return}}export{o as getUrlDirname,s as urlParse};
@@ -0,0 +1,2 @@
1
+ import type { ApiItem, ApiStore } from '../types/store.js';
2
+ export declare function propagateRbacToReferencedEntries(items: ApiItem[], store: Pick<ApiStore, 'schemaStore' | 'exampleStore'>): void;
@@ -0,0 +1 @@
1
+ import{REDOCLY_TEAMS_RBAC as p}from"@redocly/config";import{readRbacScope as g,stableStringify as h}from"./helpers.js";function R(r){return!!r&&typeof r=="object"&&!Array.isArray(r)}function b(r){return r==="schemaId"||r.endsWith("SchemaId")}function E(r,d){const{schemaStore:m,exampleStore:y}=d,f=new Map,u=new Map,l=new Map,A=(n,c,e,o)=>{const t=c[e];if(!t||t[p])return;const s=o??"open",i=n.get(e);n.set(e,i===void 0||i===s?s:"open")},a=(n,c)=>{if(Array.isArray(n)){for(const t of n)a(t,c);return}if(!R(n))return;let e=c;const o=g(n);o&&(e=h(o),f.has(e)||f.set(e,o));for(const[t,s]of Object.entries(n))if(t!==p)if(typeof s=="string"&&b(t))A(u,m,s,e);else if(t==="exampleIds"&&Array.isArray(s))for(const i of s)typeof i=="string"&&A(l,y,i,e);else a(s,e)};a(r,null);const S=(n,c)=>{for(const[e,o]of n){if(o==="open")continue;const t=f.get(o);t&&(c[e][p]=t)}};S(u,m),S(l,y)}export{E as propagateRbacToReferencedEntries};
@@ -0,0 +1,5 @@
1
+ export type ScopedContext<T> = {
2
+ run<R>(ctx: T, fn: () => R): R;
3
+ get(): T;
4
+ };
5
+ export declare function createScopedContext<T>(name: string): ScopedContext<T>;
@@ -0,0 +1 @@
1
+ function u(r){let t=null;return{run(e,n){const o=t;t=e;try{return n()}finally{t=o}},get(){if(!t)throw new Error(`${r} context is not available outside of a build`);return t}}}export{u as createScopedContext};