@redocly/openapi-docs 3.24.0-next.9 → 3.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (314) hide show
  1. package/dist/{redocly-openapi-docs.min.AiChatProvider-DcsGB2gP.js → redocly-openapi-docs.min.AiChatProvider-j-VDfFJ9.js} +3 -3
  2. package/dist/{redocly-openapi-docs.min.AiChatSqliteDBStorage-wCZA4usG.js → redocly-openapi-docs.min.AiChatSqliteDBStorage-BBRBmffc.js} +1 -1
  3. package/dist/{redocly-openapi-docs.min.AiPanel-jo7fqtSt.js → redocly-openapi-docs.min.AiPanel-DTzHqAiI.js} +116 -116
  4. package/dist/redocly-openapi-docs.min.FileWatcher-DDoyaS7A.js +1 -0
  5. package/dist/redocly-openapi-docs.min.Observable-D6wKbFwB.js +1 -0
  6. package/dist/redocly-openapi-docs.min.SemanticSearchService-DNFOPBZK.js +1 -0
  7. package/dist/{redocly-openapi-docs.min.SqliteDBStorage-B_f6WR8o.js → redocly-openapi-docs.min.SqliteDBStorage-Dy40Vq04.js} +1 -1
  8. package/dist/redocly-openapi-docs.min.TauriFileSystemAdapter-CpViFqJQ.js +1 -0
  9. package/dist/redocly-openapi-docs.min.TauriRootStorage-TCUrp2uB.js +1 -0
  10. package/dist/redocly-openapi-docs.min.ai-chat-mappers-CmX-8902.js +1 -0
  11. package/dist/redocly-openapi-docs.min.core-BYyFOtMX.js +1 -0
  12. package/dist/redocly-openapi-docs.min.external-resolver-BkceRyB4.js +2 -0
  13. package/dist/redocly-openapi-docs.min.index-BCcol5vU.js +1 -0
  14. package/dist/redocly-openapi-docs.min.index-C6uU_v-b.js +1 -0
  15. package/dist/redocly-openapi-docs.min.index-CmXZfuiZ.js +7730 -0
  16. package/dist/redocly-openapi-docs.min.index-DVWw0ICA.js +1 -0
  17. package/dist/redocly-openapi-docs.min.index-YnvLQkG_.js +1 -0
  18. package/dist/redocly-openapi-docs.min.index-xl_tBaHD.js +1 -0
  19. package/dist/redocly-openapi-docs.min.js +1 -1
  20. package/dist/{redocly-openapi-docs.min.lint-C-zlwxhp.js → redocly-openapi-docs.min.lint-2YpbCz3r.js} +69 -69
  21. package/dist/{redocly-openapi-docs.min.lint-graphql-qEh9cZHx.js → redocly-openapi-docs.min.lint-graphql-Bgfcu2tP.js} +1 -1
  22. package/dist/redocly-openapi-docs.min.periodic-revalidation-Dsp-n7ui.js +1 -0
  23. package/dist/redocly-openapi-docs.min.promise-map-limit-Db_42GvV.js +1 -0
  24. package/dist/{redocly-openapi-docs.min.respect-run-hfNPYQ9x.js → redocly-openapi-docs.min.respect-run-Ct8taisL.js} +1 -1
  25. package/dist/redocly-openapi-docs.min.standalone-BPCdJgtH.js +11995 -0
  26. package/dist/redocly-openapi-docs.min.tauri-path-CmqBCxGb.js +1 -0
  27. package/dist/{redocly-openapi-docs.min.useAiChatQueries-DgSsCKMW.js → redocly-openapi-docs.min.useAiChatQueries-t8oy8jik.js} +80 -80
  28. package/lib/components/ApiInfo/__tests__/ApiInfo.test.d.ts +1 -0
  29. package/lib/components/ApiInfo/__tests__/ApiInfo.test.js +46 -0
  30. package/lib/components/Callbacks/CallbackOperation.js +1 -1
  31. package/lib/components/Callbacks/__tests__/Callbacks.test.d.ts +1 -0
  32. package/lib/components/Callbacks/__tests__/Callbacks.test.js +46 -0
  33. package/lib/components/Content/__tests__/useAutoScroll.test.d.ts +1 -0
  34. package/lib/components/Content/__tests__/useAutoScroll.test.js +88 -0
  35. package/lib/components/Content/useAutoScroll.js +1 -1
  36. package/lib/components/ContentItem/__tests__/useIsExpanded.test.d.ts +1 -0
  37. package/lib/components/ContentItem/__tests__/useIsExpanded.test.js +123 -0
  38. package/lib/components/ContentItem/useIsExpanded.js +1 -1
  39. package/lib/components/ContentItems/ContentItems.js +1 -1
  40. package/lib/components/ContentItems/VirtualList.js +1 -1
  41. package/lib/components/ContentItems/__tests__/Items.test.d.ts +1 -0
  42. package/lib/components/ContentItems/__tests__/Items.test.js +66 -0
  43. package/lib/components/ContentItems/__tests__/VirtualList.test.d.ts +1 -0
  44. package/lib/components/ContentItems/__tests__/VirtualList.test.js +135 -0
  45. package/lib/components/ContentItems/useScrollOnRender.js +1 -1
  46. package/lib/components/Discriminator/__tests__/DiscriminatorDropdown.test.d.ts +1 -0
  47. package/lib/components/Discriminator/__tests__/DiscriminatorDropdown.test.js +63 -0
  48. package/lib/components/Download/__tests__/DownloadSpecification.test.d.ts +1 -0
  49. package/lib/components/Download/__tests__/DownloadSpecification.test.js +52 -0
  50. package/lib/components/ExpandAllButton/__tests__/ExpandAllButton.test.d.ts +1 -0
  51. package/lib/components/ExpandAllButton/__tests__/ExpandAllButton.test.js +60 -0
  52. package/lib/components/ExpandAllButton/__tests__/helpers.test.d.ts +1 -0
  53. package/lib/components/ExpandAllButton/__tests__/helpers.test.js +133 -0
  54. package/lib/components/Language/__tests__/LanguageDropdown.test.d.ts +1 -0
  55. package/lib/components/Language/__tests__/LanguageDropdown.test.js +23 -0
  56. package/lib/components/Markdown/__tests__/Markdown.test.d.ts +1 -0
  57. package/lib/components/Markdown/__tests__/Markdown.test.js +34 -0
  58. package/lib/components/McpOverview/__tests__/McpOverview.test.d.ts +1 -0
  59. package/lib/components/McpOverview/__tests__/McpOverview.test.js +66 -0
  60. package/lib/components/McpTool/__tests__/McpPrompt.test.d.ts +1 -0
  61. package/lib/components/McpTool/__tests__/McpPrompt.test.js +57 -0
  62. package/lib/components/McpTool/__tests__/McpResource.test.d.ts +1 -0
  63. package/lib/components/McpTool/__tests__/McpResource.test.js +81 -0
  64. package/lib/components/McpTool/__tests__/McpTool.test.d.ts +1 -0
  65. package/lib/components/McpTool/__tests__/McpTool.test.js +82 -0
  66. package/lib/components/MediaTypeSwitch/__tests__/MediaTypesSwitch.test.d.ts +1 -0
  67. package/lib/components/MediaTypeSwitch/__tests__/MediaTypesSwitch.test.js +79 -0
  68. package/lib/components/OperationItem/__tests__/OperationItem.test.d.ts +1 -0
  69. package/lib/components/OperationItem/__tests__/OperationItem.test.js +70 -0
  70. package/lib/components/OperationItem/__tests__/__mocks__/mock-intersection-observer.d.ts +16 -0
  71. package/lib/components/OperationItem/__tests__/__mocks__/mock-intersection-observer.js +42 -0
  72. package/lib/components/Overview/__tests__/Overview.test.d.ts +1 -0
  73. package/lib/components/Overview/__tests__/Overview.test.js +59 -0
  74. package/lib/components/PayloadSamples/__tests__/Example.test.d.ts +1 -0
  75. package/lib/components/PayloadSamples/__tests__/Example.test.js +36 -0
  76. package/lib/components/PayloadSamples/__tests__/ExampleValue.test.d.ts +1 -0
  77. package/lib/components/PayloadSamples/__tests__/ExampleValue.test.js +197 -0
  78. package/lib/components/PayloadSamples/__tests__/PayloadSamples.test.d.ts +1 -0
  79. package/lib/components/PayloadSamples/__tests__/PayloadSamples.test.js +38 -0
  80. package/lib/components/PropertyDetails/__tests__/Extensions.test.d.ts +1 -0
  81. package/lib/components/PropertyDetails/__tests__/Extensions.test.js +21 -0
  82. package/lib/components/PropertyDetails/__tests__/FieldDetail.test.d.ts +1 -0
  83. package/lib/components/PropertyDetails/__tests__/FieldDetail.test.js +52 -0
  84. package/lib/components/PropertyDetails/__tests__/FieldDetails.test.d.ts +1 -0
  85. package/lib/components/PropertyDetails/__tests__/FieldDetails.test.js +191 -0
  86. package/lib/components/PropertyDetails/__tests__/PropertyDetails.test.d.ts +1 -0
  87. package/lib/components/PropertyDetails/__tests__/PropertyDetails.test.js +365 -0
  88. package/lib/components/PropertyDetails/__tests__/cycleColorsByLevel.test.d.ts +1 -0
  89. package/lib/components/PropertyDetails/__tests__/cycleColorsByLevel.test.js +23 -0
  90. package/lib/components/RedoclyOpenAPIDocs/__tests__/AppProvider.test.d.ts +1 -0
  91. package/lib/components/RedoclyOpenAPIDocs/__tests__/AppProvider.test.js +16 -0
  92. package/lib/components/RedoclyOpenAPIDocs/__tests__/RedoclyOpenAPIDocs.test.d.ts +1 -0
  93. package/lib/components/RedoclyOpenAPIDocs/__tests__/RedoclyOpenAPIDocs.test.js +104 -0
  94. package/lib/components/RenderHook/__tests__/RenderHook.test.d.ts +1 -0
  95. package/lib/components/RenderHook/__tests__/RenderHook.test.js +15 -0
  96. package/lib/components/Replay/__tests__/utils.test.d.ts +1 -0
  97. package/lib/components/Replay/__tests__/utils.test.js +526 -0
  98. package/lib/components/Request/__tests__/RequestDetails.test.d.ts +1 -0
  99. package/lib/components/Request/__tests__/RequestDetails.test.js +98 -0
  100. package/lib/components/RequestSamples/__tests__/Example.test.d.ts +1 -0
  101. package/lib/components/RequestSamples/__tests__/Example.test.js +384 -0
  102. package/lib/components/RequestSamples/__tests__/RequestSamples.test.d.ts +1 -0
  103. package/lib/components/RequestSamples/__tests__/RequestSamples.test.js +226 -0
  104. package/lib/components/RequestSamples/__tests__/useCodeSamples.test.d.ts +1 -0
  105. package/lib/components/RequestSamples/__tests__/useCodeSamples.test.js +64 -0
  106. package/lib/components/ResponseSamples/__tests__/ResponseSamples.test.d.ts +1 -0
  107. package/lib/components/ResponseSamples/__tests__/ResponseSamples.test.js +29 -0
  108. package/lib/components/Responses/OperationResponseList.js +1 -1
  109. package/lib/components/Responses/__tests__/OperationResponseList.test.d.ts +1 -0
  110. package/lib/components/Responses/__tests__/OperationResponseList.test.js +89 -0
  111. package/lib/components/Responses/__tests__/ResponseDetails.test.d.ts +1 -0
  112. package/lib/components/Responses/__tests__/ResponseDetails.test.js +111 -0
  113. package/lib/components/Responses/__tests__/ResponsesHeaders.test.d.ts +1 -0
  114. package/lib/components/Responses/__tests__/ResponsesHeaders.test.js +26 -0
  115. package/lib/components/Schema/Schema.js +1 -1
  116. package/lib/components/Schema/SubSchema.js +1 -1
  117. package/lib/components/Schema/__tests__/ArraySchema.test.d.ts +1 -0
  118. package/lib/components/Schema/__tests__/ArraySchema.test.js +93 -0
  119. package/lib/components/Schema/__tests__/ObjectSchema.test.d.ts +1 -0
  120. package/lib/components/Schema/__tests__/ObjectSchema.test.js +115 -0
  121. package/lib/components/Schema/__tests__/OneOfSchema.test.d.ts +1 -0
  122. package/lib/components/Schema/__tests__/OneOfSchema.test.js +33 -0
  123. package/lib/components/Schema/__tests__/Schema.test.d.ts +1 -0
  124. package/lib/components/Schema/__tests__/Schema.test.js +67 -0
  125. package/lib/components/Schema/__tests__/useOneOfLocationIdx.test.d.ts +1 -0
  126. package/lib/components/Schema/__tests__/useOneOfLocationIdx.test.js +22 -0
  127. package/lib/components/Schema/useOneOfLocationIdx.js +1 -1
  128. package/lib/components/SchemaCatalogLink/__tests__/SchemaCatalogLink.test.d.ts +1 -0
  129. package/lib/components/SchemaCatalogLink/__tests__/SchemaCatalogLink.test.js +95 -0
  130. package/lib/components/Security/__tests__/Security.test.d.ts +1 -0
  131. package/lib/components/Security/__tests__/Security.test.js +38 -0
  132. package/lib/components/Security/__tests__/SecurityButton.test.d.ts +1 -0
  133. package/lib/components/Security/__tests__/SecurityButton.test.js +92 -0
  134. package/lib/components/Security/__tests__/SecurityModal.test.d.ts +1 -0
  135. package/lib/components/Security/__tests__/SecurityModal.test.js +172 -0
  136. package/lib/components/ServerList/__tests__/ServerList.test.d.ts +1 -0
  137. package/lib/components/ServerList/__tests__/ServerList.test.js +83 -0
  138. package/lib/components/SideMenu/hooks/useMenuItems.js +1 -1
  139. package/lib/components/StickySidebar/StickyResponsiveSidebar.js +1 -1
  140. package/lib/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
  141. package/lib/components/Tabs/__tests__/Tabs.test.js +27 -0
  142. package/lib/components/TagItem/OperationsNavigation.js +1 -1
  143. package/lib/components/TagItem/TagItem.js +1 -1
  144. package/lib/components/ViewNested/__tests__/ViewNested.test.d.ts +1 -0
  145. package/lib/components/ViewNested/__tests__/ViewNested.test.js +42 -0
  146. package/lib/components/__tests__/Samples/ExampleSwitch.test.d.ts +1 -0
  147. package/lib/components/__tests__/Samples/ExampleSwitch.test.js +45 -0
  148. package/lib/components/__tests__/Samples/use-example-key.test.d.ts +1 -0
  149. package/lib/components/__tests__/Samples/use-example-key.test.js +28 -0
  150. package/lib/components/__tests__/common/ClearButton.test.d.ts +1 -0
  151. package/lib/components/__tests__/common/ClearButton.test.js +18 -0
  152. package/lib/components/__tests__/common/Dropdown.test.d.ts +1 -0
  153. package/lib/components/__tests__/common/Dropdown.test.js +52 -0
  154. package/lib/components/__tests__/mocks/examples.d.ts +4 -0
  155. package/lib/components/__tests__/mocks/examples.js +115 -0
  156. package/lib/components/common/LinkToField.js +1 -1
  157. package/lib/components/common/__tests__/Dropdown.test.d.ts +1 -0
  158. package/lib/components/common/__tests__/Dropdown.test.js +129 -0
  159. package/lib/components/common/__tests__/LinkToField.test.d.ts +1 -0
  160. package/lib/components/common/__tests__/LinkToField.test.js +39 -0
  161. package/lib/components/common/linkify.js +1 -1
  162. package/lib/hooks/useRouter.js +1 -1
  163. package/lib/hooks/useUppercase2LowercaseRedirect.js +1 -1
  164. package/lib/jotai/__tests__/app.test.d.ts +1 -0
  165. package/lib/jotai/__tests__/app.test.js +53 -0
  166. package/lib/models/__tests__/Callback.test.d.ts +1 -0
  167. package/lib/models/__tests__/Callback.test.js +15 -0
  168. package/lib/models/__tests__/FieldModel.test.d.ts +1 -0
  169. package/lib/models/__tests__/FieldModel.test.js +117 -0
  170. package/lib/models/__tests__/MediaContent.test.d.ts +1 -0
  171. package/lib/models/__tests__/MediaContent.test.js +105 -0
  172. package/lib/models/__tests__/Operation.test.d.ts +1 -0
  173. package/lib/models/__tests__/Operation.test.js +459 -0
  174. package/lib/models/__tests__/Response.test.d.ts +1 -0
  175. package/lib/models/__tests__/Response.test.js +221 -0
  176. package/lib/models/__tests__/Schema.circular.test.d.ts +1 -0
  177. package/lib/models/__tests__/Schema.circular.test.js +694 -0
  178. package/lib/models/__tests__/Schema.test.d.ts +1 -0
  179. package/lib/models/__tests__/Schema.test.js +1395 -0
  180. package/lib/models/__tests__/example.test.d.ts +1 -0
  181. package/lib/models/__tests__/example.test.js +90 -0
  182. package/lib/models/__tests__/group.test.d.ts +1 -0
  183. package/lib/models/__tests__/group.test.js +52 -0
  184. package/lib/models/__tests__/helpers.d.ts +5 -0
  185. package/lib/models/__tests__/helpers.js +62 -0
  186. package/lib/models/__tests__/request.test.d.ts +1 -0
  187. package/lib/models/__tests__/request.test.js +119 -0
  188. package/lib/services/__tests__/OpenAPIParser.test.d.ts +1 -0
  189. package/lib/services/__tests__/OpenAPIParser.test.js +80 -0
  190. package/lib/services/__tests__/check.test.d.ts +1 -0
  191. package/lib/services/__tests__/check.test.js +22 -0
  192. package/lib/services/__tests__/utils.test.d.ts +1 -0
  193. package/lib/services/__tests__/utils.test.js +42 -0
  194. package/lib/services/code-samples/__tests__/apply-environments.test.d.ts +1 -0
  195. package/lib/services/code-samples/__tests__/apply-environments.test.js +64 -0
  196. package/lib/services/code-samples/__tests__/build-code-samples.test.d.ts +1 -0
  197. package/lib/services/code-samples/__tests__/build-code-samples.test.js +70 -0
  198. package/lib/services/code-samples/__tests__/convertSampleToString.test.d.ts +1 -0
  199. package/lib/services/code-samples/__tests__/convertSampleToString.test.js +116 -0
  200. package/lib/services/code-samples/__tests__/generator-data-value.test.d.ts +1 -0
  201. package/lib/services/code-samples/__tests__/generator-data-value.test.js +277 -0
  202. package/lib/services/code-samples/__tests__/generator-serialized-value.test.d.ts +1 -0
  203. package/lib/services/code-samples/__tests__/generator-serialized-value.test.js +258 -0
  204. package/lib/services/code-samples/__tests__/generator-value.test.d.ts +1 -0
  205. package/lib/services/code-samples/__tests__/generator-value.test.js +273 -0
  206. package/lib/services/code-samples/__tests__/generator.test.d.ts +249 -0
  207. package/lib/services/code-samples/__tests__/generator.test.js +1201 -0
  208. package/lib/services/code-samples/__tests__/get-example-value-by-mime-type.test.d.ts +1 -0
  209. package/lib/services/code-samples/__tests__/get-example-value-by-mime-type.test.js +31 -0
  210. package/lib/services/code-samples/httpsnippet/__tests__/device-authorization.test.d.ts +1 -0
  211. package/lib/services/code-samples/httpsnippet/__tests__/device-authorization.test.js +222 -0
  212. package/lib/services/code-samples/httpsnippet/helpers/__tests__/code-helpers.test.d.ts +1 -0
  213. package/lib/services/code-samples/httpsnippet/helpers/__tests__/code-helpers.test.js +129 -0
  214. package/lib/services/code-samples/httpsnippet/helpers/__tests__/string-utility.test.d.ts +1 -0
  215. package/lib/services/code-samples/httpsnippet/helpers/__tests__/string-utility.test.js +49 -0
  216. package/lib/services/code-samples/httpsnippet/targets/csharp/__tests__/httpclient.test.d.ts +1 -0
  217. package/lib/services/code-samples/httpsnippet/targets/csharp/__tests__/httpclient.test.js +172 -0
  218. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/__tests__/httpclient.test.d.ts +1 -0
  219. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/__tests__/httpclient.test.js +172 -0
  220. package/lib/services/code-samples/httpsnippet/targets/go/__tests__/native.test.d.ts +1 -0
  221. package/lib/services/code-samples/httpsnippet/targets/go/__tests__/native.test.js +130 -0
  222. package/lib/services/code-samples/httpsnippet/targets/java/__tests__/httpclient.test.d.ts +1 -0
  223. package/lib/services/code-samples/httpsnippet/targets/java/__tests__/httpclient.test.js +191 -0
  224. package/lib/services/code-samples/httpsnippet/targets/java8/__tests__/apachehttp.test.d.ts +1 -0
  225. package/lib/services/code-samples/httpsnippet/targets/java8/__tests__/apachehttp.test.js +172 -0
  226. package/lib/services/code-samples/httpsnippet/targets/javascript/__tests__/fetch.test.d.ts +1 -0
  227. package/lib/services/code-samples/httpsnippet/targets/javascript/__tests__/fetch.test.js +85 -0
  228. package/lib/services/code-samples/httpsnippet/targets/node/__tests__/fetch.test.d.ts +1 -0
  229. package/lib/services/code-samples/httpsnippet/targets/node/__tests__/fetch.test.js +85 -0
  230. package/lib/services/code-samples/httpsnippet/targets/php/__tests__/curl.test.d.ts +1 -0
  231. package/lib/services/code-samples/httpsnippet/targets/php/__tests__/curl.test.js +126 -0
  232. package/lib/services/code-samples/httpsnippet/targets/python/__tests__/requests.test.d.ts +1 -0
  233. package/lib/services/code-samples/httpsnippet/targets/python/__tests__/requests.test.js +105 -0
  234. package/lib/services/code-samples/httpsnippet/targets/r/__tests__/httr.test.d.ts +1 -0
  235. package/lib/services/code-samples/httpsnippet/targets/r/__tests__/httr.test.js +126 -0
  236. package/lib/services/code-samples/httpsnippet/targets/ruby/__tests__/native.test.d.ts +1 -0
  237. package/lib/services/code-samples/httpsnippet/targets/ruby/__tests__/native.test.js +129 -0
  238. package/lib/services/code-samples/httpsnippet/targets/shell/__tests__/curl.test.d.ts +1 -0
  239. package/lib/services/code-samples/httpsnippet/targets/shell/__tests__/curl.test.js +129 -0
  240. package/lib/services/config-options/__tests__/helpers.test.d.ts +1 -0
  241. package/lib/services/config-options/__tests__/helpers.test.js +234 -0
  242. package/lib/services/history/__tests__/helpers.test.d.ts +1 -0
  243. package/lib/services/history/__tests__/helpers.test.js +19 -0
  244. package/lib/services/menu/__tests__/buildNestedTagsItems.test.d.ts +1 -0
  245. package/lib/services/menu/__tests__/buildNestedTagsItems.test.js +109 -0
  246. package/lib/services/menu/__tests__/builder.test.d.ts +1 -0
  247. package/lib/services/menu/__tests__/builder.test.js +307 -0
  248. package/lib/services/menu/__tests__/operation.test.d.ts +1 -0
  249. package/lib/services/menu/__tests__/operation.test.js +240 -0
  250. package/lib/services/menu/__tests__/tags.test.d.ts +1 -0
  251. package/lib/services/menu/__tests__/tags.test.js +71 -0
  252. package/lib/telemetry/RedocTelemetry.js +31 -1
  253. package/lib/telemetry/__tests__/RedocTelemetry.test.d.ts +1 -0
  254. package/lib/telemetry/__tests__/RedocTelemetry.test.js +107 -0
  255. package/lib/testProviders.d.ts +6 -0
  256. package/lib/testProviders.js +14 -0
  257. package/lib/utils/__tests__/areArraysEqual.test.d.ts +1 -0
  258. package/lib/utils/__tests__/areArraysEqual.test.js +33 -0
  259. package/lib/utils/__tests__/argValuesHelpers.d.ts +1 -0
  260. package/lib/utils/__tests__/argValuesHelpers.js +56 -0
  261. package/lib/utils/__tests__/calculateMaxLength.test.d.ts +1 -0
  262. package/lib/utils/__tests__/calculateMaxLength.test.js +119 -0
  263. package/lib/utils/__tests__/configure-helpers.test.d.ts +1 -0
  264. package/lib/utils/__tests__/configure-helpers.test.js +356 -0
  265. package/lib/utils/__tests__/convertSwagger2OpenAPI.test.d.ts +1 -0
  266. package/lib/utils/__tests__/convertSwagger2OpenAPI.test.js +392 -0
  267. package/lib/utils/__tests__/debounce.test.d.ts +1 -0
  268. package/lib/utils/__tests__/debounce.test.js +54 -0
  269. package/lib/utils/__tests__/debug.test.d.ts +1 -0
  270. package/lib/utils/__tests__/debug.test.js +23 -0
  271. package/lib/utils/__tests__/dom.test.d.ts +1 -0
  272. package/lib/utils/__tests__/dom.test.js +108 -0
  273. package/lib/utils/__tests__/getBreadcrumbs.test.d.ts +1 -0
  274. package/lib/utils/__tests__/getBreadcrumbs.test.js +98 -0
  275. package/lib/utils/__tests__/hasNestedFields.test.d.ts +1 -0
  276. package/lib/utils/__tests__/hasNestedFields.test.js +147 -0
  277. package/lib/utils/__tests__/helpers.test.d.ts +1 -0
  278. package/lib/utils/__tests__/helpers.test.js +174 -0
  279. package/lib/utils/__tests__/isMobile.test.d.ts +1 -0
  280. package/lib/utils/__tests__/isMobile.test.js +28 -0
  281. package/lib/utils/__tests__/loadAndBundleSpec.test.d.ts +1 -0
  282. package/lib/utils/__tests__/loadAndBundleSpec.test.js +22 -0
  283. package/lib/utils/__tests__/local-storage.test.d.ts +1 -0
  284. package/lib/utils/__tests__/local-storage.test.js +48 -0
  285. package/lib/utils/__tests__/object.test.d.ts +1 -0
  286. package/lib/utils/__tests__/object.test.js +45 -0
  287. package/lib/utils/__tests__/openapi.test.d.ts +1 -0
  288. package/lib/utils/__tests__/openapi.test.js +1378 -0
  289. package/lib/utils/__tests__/path.test.d.ts +1 -0
  290. package/lib/utils/__tests__/path.test.js +16 -0
  291. package/lib/utils/__tests__/queryString.test.d.ts +1 -0
  292. package/lib/utils/__tests__/queryString.test.js +60 -0
  293. package/lib/utils/__tests__/replaceVariables.test.d.ts +1 -0
  294. package/lib/utils/__tests__/replaceVariables.test.js +46 -0
  295. package/lib/utils/__tests__/simplifyAstStructure.test.d.ts +1 -0
  296. package/lib/utils/__tests__/simplifyAstStructure.test.js +26 -0
  297. package/lib/utils/__tests__/sort.test.d.ts +1 -0
  298. package/lib/utils/__tests__/sort.test.js +16 -0
  299. package/lib/utils/__tests__/string.test.d.ts +1 -0
  300. package/lib/utils/__tests__/string.test.js +16 -0
  301. package/lib/utils/__tests__/theme-helpers.test.d.ts +1 -0
  302. package/lib/utils/__tests__/theme-helpers.test.js +24 -0
  303. package/lib/utils/__tests__/url.test.d.ts +1 -0
  304. package/lib/utils/__tests__/url.test.js +134 -0
  305. package/lib/utils/path.d.ts +1 -1
  306. package/package.json +12 -12
  307. package/dist/redocly-openapi-docs.min.ai-chat-mappers-MY79QAeW.js +0 -1
  308. package/dist/redocly-openapi-docs.min.external-resolver-3KMJv7SC.js +0 -2
  309. package/dist/redocly-openapi-docs.min.index-BYVMr_la.js +0 -1
  310. package/dist/redocly-openapi-docs.min.index-CsqzTi3Z.js +0 -7586
  311. package/dist/redocly-openapi-docs.min.index-D8F7x0S6.js +0 -1
  312. package/dist/redocly-openapi-docs.min.index-qqKTpI_q.js +0 -1
  313. package/dist/redocly-openapi-docs.min.standalone-Ci6886Cr.js +0 -12114
  314. package/dist/redocly-openapi-docs.min.tauri-path-Bs1-AQjc.js +0 -1
@@ -1,3 +1,3 @@
1
- import{bS as B}from"./redocly-openapi-docs.min.standalone-Ci6886Cr.js";import{G as y,T as C,F as x,H as I,I as M,J as K,K as A,L as U,M as V,N as a,O as k,P as G,Q as $,U as R,V as Y,W as j}from"./redocly-openapi-docs.min.lint-C-zlwxhp.js";function u(s,t,e){return new y(`Syntax Error: ${e}`,{source:s,positions:[t]})}var n;(function(s){s.SOF="<SOF>",s.EOF="<EOF>",s.BANG="!",s.DOLLAR="$",s.AMP="&",s.PAREN_L="(",s.PAREN_R=")",s.DOT=".",s.SPREAD="...",s.COLON=":",s.EQUALS="=",s.AT="@",s.BRACKET_L="[",s.BRACKET_R="]",s.BRACE_L="{",s.PIPE="|",s.BRACE_R="}",s.NAME="Name",s.INT="Int",s.FLOAT="Float",s.STRING="String",s.BLOCK_STRING="BlockString",s.COMMENT="Comment"})(n||(n={}));class q{constructor(t){const e=new C(n.SOF,0,0,0,0);this.source=t,this.lastToken=e,this.token=e,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==n.EOF)do if(t.next)t=t.next;else{const e=Q(this,t.end);t.next=e,e.prev=t,t=e}while(t.kind===n.COMMENT);return t}}function z(s){return s===n.BANG||s===n.DOLLAR||s===n.AMP||s===n.PAREN_L||s===n.PAREN_R||s===n.DOT||s===n.SPREAD||s===n.COLON||s===n.EQUALS||s===n.AT||s===n.BRACKET_L||s===n.BRACKET_R||s===n.BRACE_L||s===n.PIPE||s===n.BRACE_R}function m(s){return s>=0&&s<=55295||s>=57344&&s<=1114111}function N(s,t){return L(s.charCodeAt(t))&&g(s.charCodeAt(t+1))}function L(s){return s>=55296&&s<=56319}function g(s){return s>=56320&&s<=57343}function E(s,t){const e=s.source.body.codePointAt(t);if(e===void 0)return n.EOF;if(e>=32&&e<=126){const r=String.fromCodePoint(e);return r==='"'?`'"'`:`"${r}"`}return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function p(s,t,e,r,i){const o=s.line,c=1+e-s.lineStart;return new C(t,e,r,o,c,i)}function Q(s,t){const e=s.source.body,r=e.length;let i=t;for(;i<r;){const o=e.charCodeAt(i);switch(o){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++s.line,s.lineStart=i;continue;case 13:e.charCodeAt(i+1)===10?i+=2:++i,++s.line,s.lineStart=i;continue;case 35:return X(s,i);case 33:return p(s,n.BANG,i,i+1);case 36:return p(s,n.DOLLAR,i,i+1);case 38:return p(s,n.AMP,i,i+1);case 40:return p(s,n.PAREN_L,i,i+1);case 41:return p(s,n.PAREN_R,i,i+1);case 46:if(e.charCodeAt(i+1)===46&&e.charCodeAt(i+2)===46)return p(s,n.SPREAD,i,i+3);break;case 58:return p(s,n.COLON,i,i+1);case 61:return p(s,n.EQUALS,i,i+1);case 64:return p(s,n.AT,i,i+1);case 91:return p(s,n.BRACKET_L,i,i+1);case 93:return p(s,n.BRACKET_R,i,i+1);case 123:return p(s,n.BRACE_L,i,i+1);case 124:return p(s,n.PIPE,i,i+1);case 125:return p(s,n.BRACE_R,i,i+1);case 34:return e.charCodeAt(i+1)===34&&e.charCodeAt(i+2)===34?te(s,i):H(s,i)}if(x(o)||o===45)return J(s,i,o);if(I(o))return ie(s,i);throw u(s.source,i,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:m(o)||N(e,i)?`Unexpected character: ${E(s,i)}.`:`Invalid character: ${E(s,i)}.`)}return p(s,n.EOF,r,r)}function X(s,t){const e=s.source.body,r=e.length;let i=t+1;for(;i<r;){const o=e.charCodeAt(i);if(o===10||o===13)break;if(m(o))++i;else if(N(e,i))i+=2;else break}return p(s,n.COMMENT,t,i,e.slice(t+1,i))}function J(s,t,e){const r=s.source.body;let i=t,o=e,c=!1;if(o===45&&(o=r.charCodeAt(++i)),o===48){if(o=r.charCodeAt(++i),x(o))throw u(s.source,i,`Invalid number, unexpected digit after 0: ${E(s,i)}.`)}else i=v(s,i,o),o=r.charCodeAt(i);if(o===46&&(c=!0,o=r.charCodeAt(++i),i=v(s,i,o),o=r.charCodeAt(i)),(o===69||o===101)&&(c=!0,o=r.charCodeAt(++i),(o===43||o===45)&&(o=r.charCodeAt(++i)),i=v(s,i,o),o=r.charCodeAt(i)),o===46||I(o))throw u(s.source,i,`Invalid number, expected digit but got: ${E(s,i)}.`);return p(s,c?n.FLOAT:n.INT,t,i,r.slice(t,i))}function v(s,t,e){if(!x(e))throw u(s.source,t,`Invalid number, expected digit but got: ${E(s,t)}.`);const r=s.source.body;let i=t+1;for(;x(r.charCodeAt(i));)++i;return i}function H(s,t){const e=s.source.body,r=e.length;let i=t+1,o=i,c="";for(;i<r;){const h=e.charCodeAt(i);if(h===34)return c+=e.slice(o,i),p(s,n.STRING,t,i+1,c);if(h===92){c+=e.slice(o,i);const d=e.charCodeAt(i+1)===117?e.charCodeAt(i+2)===123?W(s,i):Z(s,i):ee(s,i);c+=d.value,i+=d.size,o=i;continue}if(h===10||h===13)break;if(m(h))++i;else if(N(e,i))i+=2;else throw u(s.source,i,`Invalid character within String: ${E(s,i)}.`)}throw u(s.source,i,"Unterminated string.")}function W(s,t){const e=s.source.body;let r=0,i=3;for(;i<12;){const o=e.charCodeAt(t+i++);if(o===125){if(i<5||!m(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|T(o),r<0)break}throw u(s.source,t,`Invalid Unicode escape sequence: "${e.slice(t,t+i)}".`)}function Z(s,t){const e=s.source.body,r=S(e,t+2);if(m(r))return{value:String.fromCodePoint(r),size:6};if(L(r)&&e.charCodeAt(t+6)===92&&e.charCodeAt(t+7)===117){const i=S(e,t+8);if(g(i))return{value:String.fromCodePoint(r,i),size:12}}throw u(s.source,t,`Invalid Unicode escape sequence: "${e.slice(t,t+6)}".`)}function S(s,t){return T(s.charCodeAt(t))<<12|T(s.charCodeAt(t+1))<<8|T(s.charCodeAt(t+2))<<4|T(s.charCodeAt(t+3))}function T(s){return s>=48&&s<=57?s-48:s>=65&&s<=70?s-55:s>=97&&s<=102?s-87:-1}function ee(s,t){const e=s.source.body;switch(e.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
1
+ import{bN as B}from"./redocly-openapi-docs.min.standalone-BPCdJgtH.js";import{G as y,T as C,F as x,H as I,I as M,J as K,K as A,L as U,M as V,N as a,O as k,P as G,Q as $,U as R,V as Y,W as j}from"./redocly-openapi-docs.min.lint-2YpbCz3r.js";function u(s,t,e){return new y(`Syntax Error: ${e}`,{source:s,positions:[t]})}var n;(function(s){s.SOF="<SOF>",s.EOF="<EOF>",s.BANG="!",s.DOLLAR="$",s.AMP="&",s.PAREN_L="(",s.PAREN_R=")",s.DOT=".",s.SPREAD="...",s.COLON=":",s.EQUALS="=",s.AT="@",s.BRACKET_L="[",s.BRACKET_R="]",s.BRACE_L="{",s.PIPE="|",s.BRACE_R="}",s.NAME="Name",s.INT="Int",s.FLOAT="Float",s.STRING="String",s.BLOCK_STRING="BlockString",s.COMMENT="Comment"})(n||(n={}));class q{constructor(t){const e=new C(n.SOF,0,0,0,0);this.source=t,this.lastToken=e,this.token=e,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==n.EOF)do if(t.next)t=t.next;else{const e=Q(this,t.end);t.next=e,e.prev=t,t=e}while(t.kind===n.COMMENT);return t}}function z(s){return s===n.BANG||s===n.DOLLAR||s===n.AMP||s===n.PAREN_L||s===n.PAREN_R||s===n.DOT||s===n.SPREAD||s===n.COLON||s===n.EQUALS||s===n.AT||s===n.BRACKET_L||s===n.BRACKET_R||s===n.BRACE_L||s===n.PIPE||s===n.BRACE_R}function m(s){return s>=0&&s<=55295||s>=57344&&s<=1114111}function N(s,t){return L(s.charCodeAt(t))&&g(s.charCodeAt(t+1))}function L(s){return s>=55296&&s<=56319}function g(s){return s>=56320&&s<=57343}function E(s,t){const e=s.source.body.codePointAt(t);if(e===void 0)return n.EOF;if(e>=32&&e<=126){const r=String.fromCodePoint(e);return r==='"'?`'"'`:`"${r}"`}return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function p(s,t,e,r,i){const o=s.line,c=1+e-s.lineStart;return new C(t,e,r,o,c,i)}function Q(s,t){const e=s.source.body,r=e.length;let i=t;for(;i<r;){const o=e.charCodeAt(i);switch(o){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++s.line,s.lineStart=i;continue;case 13:e.charCodeAt(i+1)===10?i+=2:++i,++s.line,s.lineStart=i;continue;case 35:return X(s,i);case 33:return p(s,n.BANG,i,i+1);case 36:return p(s,n.DOLLAR,i,i+1);case 38:return p(s,n.AMP,i,i+1);case 40:return p(s,n.PAREN_L,i,i+1);case 41:return p(s,n.PAREN_R,i,i+1);case 46:if(e.charCodeAt(i+1)===46&&e.charCodeAt(i+2)===46)return p(s,n.SPREAD,i,i+3);break;case 58:return p(s,n.COLON,i,i+1);case 61:return p(s,n.EQUALS,i,i+1);case 64:return p(s,n.AT,i,i+1);case 91:return p(s,n.BRACKET_L,i,i+1);case 93:return p(s,n.BRACKET_R,i,i+1);case 123:return p(s,n.BRACE_L,i,i+1);case 124:return p(s,n.PIPE,i,i+1);case 125:return p(s,n.BRACE_R,i,i+1);case 34:return e.charCodeAt(i+1)===34&&e.charCodeAt(i+2)===34?te(s,i):H(s,i)}if(x(o)||o===45)return J(s,i,o);if(I(o))return ie(s,i);throw u(s.source,i,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:m(o)||N(e,i)?`Unexpected character: ${E(s,i)}.`:`Invalid character: ${E(s,i)}.`)}return p(s,n.EOF,r,r)}function X(s,t){const e=s.source.body,r=e.length;let i=t+1;for(;i<r;){const o=e.charCodeAt(i);if(o===10||o===13)break;if(m(o))++i;else if(N(e,i))i+=2;else break}return p(s,n.COMMENT,t,i,e.slice(t+1,i))}function J(s,t,e){const r=s.source.body;let i=t,o=e,c=!1;if(o===45&&(o=r.charCodeAt(++i)),o===48){if(o=r.charCodeAt(++i),x(o))throw u(s.source,i,`Invalid number, unexpected digit after 0: ${E(s,i)}.`)}else i=v(s,i,o),o=r.charCodeAt(i);if(o===46&&(c=!0,o=r.charCodeAt(++i),i=v(s,i,o),o=r.charCodeAt(i)),(o===69||o===101)&&(c=!0,o=r.charCodeAt(++i),(o===43||o===45)&&(o=r.charCodeAt(++i)),i=v(s,i,o),o=r.charCodeAt(i)),o===46||I(o))throw u(s.source,i,`Invalid number, expected digit but got: ${E(s,i)}.`);return p(s,c?n.FLOAT:n.INT,t,i,r.slice(t,i))}function v(s,t,e){if(!x(e))throw u(s.source,t,`Invalid number, expected digit but got: ${E(s,t)}.`);const r=s.source.body;let i=t+1;for(;x(r.charCodeAt(i));)++i;return i}function H(s,t){const e=s.source.body,r=e.length;let i=t+1,o=i,c="";for(;i<r;){const h=e.charCodeAt(i);if(h===34)return c+=e.slice(o,i),p(s,n.STRING,t,i+1,c);if(h===92){c+=e.slice(o,i);const d=e.charCodeAt(i+1)===117?e.charCodeAt(i+2)===123?W(s,i):Z(s,i):ee(s,i);c+=d.value,i+=d.size,o=i;continue}if(h===10||h===13)break;if(m(h))++i;else if(N(e,i))i+=2;else throw u(s.source,i,`Invalid character within String: ${E(s,i)}.`)}throw u(s.source,i,"Unterminated string.")}function W(s,t){const e=s.source.body;let r=0,i=3;for(;i<12;){const o=e.charCodeAt(t+i++);if(o===125){if(i<5||!m(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|T(o),r<0)break}throw u(s.source,t,`Invalid Unicode escape sequence: "${e.slice(t,t+i)}".`)}function Z(s,t){const e=s.source.body,r=S(e,t+2);if(m(r))return{value:String.fromCodePoint(r),size:6};if(L(r)&&e.charCodeAt(t+6)===92&&e.charCodeAt(t+7)===117){const i=S(e,t+8);if(g(i))return{value:String.fromCodePoint(r,i),size:12}}throw u(s.source,t,`Invalid Unicode escape sequence: "${e.slice(t,t+6)}".`)}function S(s,t){return T(s.charCodeAt(t))<<12|T(s.charCodeAt(t+1))<<8|T(s.charCodeAt(t+2))<<4|T(s.charCodeAt(t+3))}function T(s){return s>=48&&s<=57?s-48:s>=65&&s<=70?s-55:s>=97&&s<=102?s-87:-1}function ee(s,t){const e=s.source.body;switch(e.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
2
2
  `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw u(s.source,t,`Invalid character escape sequence: "${e.slice(t,t+2)}".`)}function te(s,t){const e=s.source.body,r=e.length;let i=s.lineStart,o=t+3,c=o,h="";const d=[];for(;o<r;){const f=e.charCodeAt(o);if(f===34&&e.charCodeAt(o+1)===34&&e.charCodeAt(o+2)===34){h+=e.slice(c,o),d.push(h);const l=p(s,n.BLOCK_STRING,t,o+3,M(d).join(`
3
3
  `));return s.line+=d.length-1,s.lineStart=i,l}if(f===92&&e.charCodeAt(o+1)===34&&e.charCodeAt(o+2)===34&&e.charCodeAt(o+3)===34){h+=e.slice(c,o),c=o+1,o+=4;continue}if(f===10||f===13){h+=e.slice(c,o),d.push(h),f===13&&e.charCodeAt(o+1)===10?o+=2:++o,h="",c=o,i=o;continue}if(m(f))++o;else if(N(e,o))o+=2;else throw u(s.source,o,`Invalid character within String: ${E(s,o)}.`)}throw u(s.source,o,"Unterminated string.")}function ie(s,t){const e=s.source.body,r=e.length;let i=t+1;for(;i<r;){const o=e.charCodeAt(i);if(K(o))++i;else break}return p(s,n.NAME,t,i,e.slice(t,i))}class D{constructor(t,e="GraphQL request",r={line:1,column:1}){typeof t=="string"||A(!1,`Body must be a string. Received: ${U(t)}.`),this.body=t,this.name=e,this.locationOffset=r,this.locationOffset.line>0||A(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||A(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function se(s){return V(s,D)}function re(s,t){const e=new ne(s,t),r=e.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:e.tokenCount}),r}class ne{constructor(t,e={}){const{lexer:r,...i}=e;if(r)this._lexer=r;else{const o=se(t)?t:new D(t);this._lexer=new q(o)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(n.NAME);return this.node(t,{kind:a.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:a.DOCUMENT,definitions:this.many(n.SOF,this.parseDefinition,n.EOF)})}parseDefinition(){if(this.peek(n.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),e=t?this._lexer.lookahead():this._lexer.token;if(t&&e.kind===n.BRACE_L)throw u(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(e.kind===n.NAME){switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(e.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw u(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(e.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(e)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(n.BRACE_L))return this.node(t,{kind:a.OPERATION_DEFINITION,operation:k.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const e=this.parseDescription(),r=this.parseOperationType();let i;return this.peek(n.NAME)&&(i=this.parseName()),this.node(t,{kind:a.OPERATION_DEFINITION,operation:r,description:e,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(n.NAME);switch(t.value){case"query":return k.QUERY;case"mutation":return k.MUTATION;case"subscription":return k.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(n.PAREN_L,this.parseVariableDefinition,n.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:a.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(n.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(n.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(n.DOLLAR),this.node(t,{kind:a.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:a.SELECTION_SET,selections:this.many(n.BRACE_L,this.parseSelection,n.BRACE_R)})}parseSelection(){return this.peek(n.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,e=this.parseName();let r,i;return this.expectOptionalToken(n.COLON)?(r=e,i=this.parseName()):i=e,this.node(t,{kind:a.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(n.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const e=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(n.PAREN_L,e,n.PAREN_R)}parseArgument(t=!1){const e=this._lexer.token,r=this.parseName();return this.expectToken(n.COLON),this.node(e,{kind:a.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(n.SPREAD);const e=this.expectOptionalKeyword("on");return!e&&this.peek(n.NAME)?this.node(t,{kind:a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:a.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token,e=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:a.FRAGMENT_DEFINITION,description:e,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:a.FRAGMENT_DEFINITION,description:e,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const e=this._lexer.token;switch(e.kind){case n.BRACKET_L:return this.parseList(t);case n.BRACE_L:return this.parseObject(t);case n.INT:return this.advanceLexer(),this.node(e,{kind:a.INT,value:e.value});case n.FLOAT:return this.advanceLexer(),this.node(e,{kind:a.FLOAT,value:e.value});case n.STRING:case n.BLOCK_STRING:return this.parseStringLiteral();case n.NAME:switch(this.advanceLexer(),e.value){case"true":return this.node(e,{kind:a.BOOLEAN,value:!0});case"false":return this.node(e,{kind:a.BOOLEAN,value:!1});case"null":return this.node(e,{kind:a.NULL});default:return this.node(e,{kind:a.ENUM,value:e.value})}case n.DOLLAR:if(t)if(this.expectToken(n.DOLLAR),this._lexer.token.kind===n.NAME){const r=this._lexer.token.value;throw u(this._lexer.source,e.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(e);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:a.STRING,value:t.value,block:t.kind===n.BLOCK_STRING})}parseList(t){const e=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:a.LIST,values:this.any(n.BRACKET_L,e,n.BRACKET_R)})}parseObject(t){const e=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:a.OBJECT,fields:this.any(n.BRACE_L,e,n.BRACE_R)})}parseObjectField(t){const e=this._lexer.token,r=this.parseName();return this.expectToken(n.COLON),this.node(e,{kind:a.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const e=[];for(;this.peek(n.AT);)e.push(this.parseDirective(t));return e}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const e=this._lexer.token;return this.expectToken(n.AT),this.node(e,{kind:a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let e;if(this.expectOptionalToken(n.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(n.BRACKET_R),e=this.node(t,{kind:a.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(n.BANG)?this.node(t,{kind:a.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:a.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(n.STRING)||this.peek(n.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),i=this.many(n.BRACE_L,this.parseOperationTypeDefinition,n.BRACE_R);return this.node(t,{kind:a.SCHEMA_DEFINITION,description:e,directives:r,operationTypes:i})}parseOperationTypeDefinition(){const t=this._lexer.token,e=this.parseOperationType();this.expectToken(n.COLON);const r=this.parseNamedType();return this.node(t,{kind:a.OPERATION_TYPE_DEFINITION,operation:e,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:a.SCALAR_TYPE_DEFINITION,description:e,name:r,directives:i})}parseObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(t,{kind:a.OBJECT_TYPE_DEFINITION,description:e,name:r,interfaces:i,directives:o,fields:c})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(n.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(n.BRACE_L,this.parseFieldDefinition,n.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(n.COLON);const o=this.parseTypeReference(),c=this.parseConstDirectives();return this.node(t,{kind:a.FIELD_DEFINITION,description:e,name:r,arguments:i,type:o,directives:c})}parseArgumentDefs(){return this.optionalMany(n.PAREN_L,this.parseInputValueDef,n.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseName();this.expectToken(n.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(n.EQUALS)&&(o=this.parseConstValueLiteral());const c=this.parseConstDirectives();return this.node(t,{kind:a.INPUT_VALUE_DEFINITION,description:e,name:r,type:i,defaultValue:o,directives:c})}parseInterfaceTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(t,{kind:a.INTERFACE_TYPE_DEFINITION,description:e,name:r,interfaces:i,directives:o,fields:c})}parseUnionTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:a.UNION_TYPE_DEFINITION,description:e,name:r,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(n.EQUALS)?this.delimitedMany(n.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:a.ENUM_TYPE_DEFINITION,description:e,name:r,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(n.BRACE_L,this.parseEnumValueDefinition,n.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:a.ENUM_VALUE_DEFINITION,description:e,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw u(this._lexer.source,this._lexer.token.start,`${_(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:a.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:r,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(n.BRACE_L,this.parseInputValueDef,n.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===n.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension();break}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const e=this.parseConstDirectives(),r=this.optionalMany(n.BRACE_L,this.parseOperationTypeDefinition,n.BRACE_R);if(e.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:a.SCHEMA_EXTENSION,directives:e,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const e=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:a.SCALAR_TYPE_EXTENSION,name:e,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const e=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:a.OBJECT_TYPE_EXTENSION,name:e,interfaces:r,directives:i,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const e=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:a.INTERFACE_TYPE_EXTENSION,name:e,interfaces:r,directives:i,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const e=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:a.UNION_TYPE_EXTENSION,name:e,directives:r,types:i})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const e=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:a.ENUM_TYPE_EXTENSION,name:e,directives:r,values:i})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const e=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:a.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:r,fields:i})}parseDirectiveDefinitionExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(n.AT);const e=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:a.DIRECTIVE_EXTENSION,name:e,directives:r})}parseDirectiveDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(n.AT);const r=this.parseName(),i=this.parseArgumentDefs(),o=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],c=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const h=this.parseDirectiveLocations();return this.node(t,{kind:a.DIRECTIVE_DEFINITION,description:e,name:r,arguments:i,directives:o,repeatable:c,locations:h})}parseDirectiveLocations(){return this.delimitedMany(n.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,e=this.parseName();if(Object.prototype.hasOwnProperty.call(G,e.value))return e;throw this.unexpected(t)}parseSchemaCoordinate(){const t=this._lexer.token,e=this.expectOptionalToken(n.AT),r=this.parseName();let i;!e&&this.expectOptionalToken(n.DOT)&&(i=this.parseName());let o;return(e||i)&&this.expectOptionalToken(n.PAREN_L)&&(o=this.parseName(),this.expectToken(n.COLON),this.expectToken(n.PAREN_R)),e?o?this.node(t,{kind:a.DIRECTIVE_ARGUMENT_COORDINATE,name:r,argumentName:o}):this.node(t,{kind:a.DIRECTIVE_COORDINATE,name:r}):i?o?this.node(t,{kind:a.ARGUMENT_COORDINATE,name:r,fieldName:i,argumentName:o}):this.node(t,{kind:a.MEMBER_COORDINATE,name:r,memberName:i}):this.node(t,{kind:a.TYPE_COORDINATE,name:r})}node(t,e){return this._options.noLocation!==!0&&(e.loc=new $(t,this._lexer.lastToken,this._lexer.source)),e}peek(t){return this._lexer.token.kind===t}expectToken(t){const e=this._lexer.token;if(e.kind===t)return this.advanceLexer(),e;throw u(this._lexer.source,e.start,`Expected ${w(t)}, found ${_(e)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const e=this._lexer.token;if(e.kind===n.NAME&&e.value===t)this.advanceLexer();else throw u(this._lexer.source,e.start,`Expected "${t}", found ${_(e)}.`)}expectOptionalKeyword(t){const e=this._lexer.token;return e.kind===n.NAME&&e.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const e=t??this._lexer.token;return u(this._lexer.source,e.start,`Unexpected ${_(e)}.`)}any(t,e,r){this.expectToken(t);const i=[];for(;!this.expectOptionalToken(r);)i.push(e.call(this));return i}optionalMany(t,e,r){if(this.expectOptionalToken(t)){const i=[];do i.push(e.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,e,r){this.expectToken(t);const i=[];do i.push(e.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,e){this.expectOptionalToken(t);const r=[];do r.push(e.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,e=this._lexer.advance();if(e.kind!==n.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw u(this._lexer.source,e.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function _(s){const t=s.value;return w(s.kind)+(t!=null?` "${t}"`:"")}function w(s){return z(s)?`"${s}"`:s}function oe(s,t){const e={};for(const r of Object.keys(s)){const i=s[r];if(!i)continue;const o=typeof i=="function"?i:i.enter,c=typeof i=="function"?void 0:i.leave;e[r]={...o?{enter:b(o,t)}:{},...c?{leave:b(c,t)}:{}}}return e}function b(s,t){return(e,r,i,o,c)=>{s(e,ae(e,t,c))}}function ae(s,t,e=[]){const{ruleId:r,severity:i,message:o,source:c,config:h,problems:d}=t,f=e.filter(l=>!Array.isArray(l));return{source:c,config:h,ancestors:f,report(l){const P=l.node??s,O=l.loc??ce(P),F={source:c,pointer:void 0,start:O?.start??{line:1,col:1},end:O?.end};d.push({ruleId:l.ruleId??r,severity:l.severity??i,message:o?o.replace("{{message}}",l.message):l.message,suggest:l.suggest??[],location:[F]})}}}function ce(s){if(!s?.loc)return;const t=R(s.loc.source,s.loc.start),e=R(s.loc.source,s.loc.end);return{start:{line:t.line,col:t.column},end:{line:e.line,col:e.column}}}function he(s){const{document:t,config:e}=s,r=t.source;if(r.body.trim()==="")return[{ruleId:"struct",severity:"error",message:"The GraphQL document is empty. Expected at least one type definition.",suggest:[],location:[{source:r,pointer:void 0,start:{line:1,col:1}}]}];let i;try{i=re(new D(r.body,r.absoluteRef))}catch(h){if(h instanceof y)return[pe(h,r)];throw h}const o=e.getRulesForSpecVersion("graphql")??[],c=B(o,e,"rules","graphql");return ue({ast:i,source:r,config:e,rules:c}).map(h=>e.addProblemToIgnore(h))}function pe(s,t){const e=s.locations?.[0];return{ruleId:"struct",severity:"error",message:s.message,suggest:[],location:[{source:t,pointer:void 0,start:e?{line:e.line,col:e.column}:{line:1,col:1}}]}}function ue(s){const{ast:t,source:e,config:r,rules:i}=s,o=[],c=i.map(({ruleId:h,severity:d,message:f,visitor:l})=>oe(l,{ruleId:h,severity:d,message:f,source:e,config:r,problems:o}));return c.length>0&&Y(t,j(c)),o}export{he as lintGraphqlDocument};
@@ -0,0 +1 @@
1
+ const s=3e5;function n(e){return()=>({apis:e.apis.get({noproxy:!0})??[],collections:e.collections.get({noproxy:!0})??[]})}function l(e,o,i=3e5){let t=!1;const r=n(o),a=setInterval(()=>{t||e.getIndexingActivityState().inProgress||(t=!0,e.reindex(r).catch(c=>console.error("Semantic index revalidation:",c)).finally(()=>{t=!1}))},i);return()=>clearInterval(a)}export{s as INDEX_REVALIDATION_INTERVAL_MS,n as createIndexSnapshotGetter,l as startPeriodicIndexRevalidation};
@@ -0,0 +1 @@
1
+ async function a(s,o,i){const n=[],e=[];for(const c of s){const r=Promise.resolve().then(()=>i(c,s));if(n.push(r),o<=s.length){const t=r.then(()=>e.splice(e.indexOf(t),1));e.push(t),e.length>=o&&await Promise.race(e)}}return Promise.all(n)}export{a as p};
@@ -1,4 +1,4 @@
1
- import{aP as Fe,aQ as oi,aR as Ca,aS as $,aT as sa,aU as me,aV as ve,aW as _e,aX as Ie,aY as hn,aZ as qs,a_ as gn,a$ as Zs,b0 as Us,b1 as pn,b2 as Ys,b3 as wa,b4 as ti,b5 as vn}from"./redocly-openapi-docs.min.index-CsqzTi3Z.js";import{x as ce,aF as we,J as la,bu as $s,c as si}from"./redocly-openapi-docs.min.standalone-Ci6886Cr.js";import{d as bn,z as yn,c as Qs,s as Xs,p as el,j as al,E as zn}from"./redocly-openapi-docs.min.lint-C-zlwxhp.js";function il(e){return ce(e)&&"name"in e&&"value"in e&&!("in"in e)}function li(e){return ce(e)&&"in"in e&&typeof e.in=="string"&&["header","query","path","cookie"].includes(e.in)}const nl=/^image\/(png|jpeg|gif|bmp|webp|svg\+xml)|application\/pdf$/;function fn(e){return e.startsWith("$file(")&&e.endsWith(")")?e.substring(7,e.length-2):e}const Sn=async(e,i,a,r,n)=>{const t=we.dirname(r),s=we.resolve(t,fn(a));e.append(i,await n.options.requestFileLoader.getFileBody(s))},Mn=(e,i,a,r,n,t)=>{Object.entries(a).forEach(([s,l])=>{const c=t?`${t}[${s}]`:s;typeof l=="string"&&l.startsWith("$file(")&&l.endsWith(")")?e.push(Sn(i,c,l,r,n)):Array.isArray(l)?l.forEach(u=>{typeof u=="string"&&u.startsWith("$file(")&&u.endsWith(")")?e.push(Sn(i,c,u,r,n)):i.append(c,u.toString())}):ce(l)?Mn(e,i,l,r,n,c):(typeof l=="string"||typeof l=="number"||typeof l=="boolean")&&i.append(c,l.toString())})},rl=async(e,i,a,r)=>{if(ce(e)){const n=[];Mn(n,i,e,a,r),await Promise.all(n)}},ol=async(e,i)=>{if(typeof e=="string"&&e.startsWith("$file(")&&e.endsWith(")")){const a=we.resolve(we.dirname(i.options.filePath),fn(e));return i.options.requestFileLoader.getFileBody(a)}else return e};async function tl(e,i){if(!e)return{payload:void 0,contentType:void 0,encoding:void 0,replacements:void 0};const{payload:a,contentType:r}=e;if(r==="multipart/form-data"){const n=new FormData,t=we.resolve(i.options.filePath);return await rl(a,n,t,i),{...e,payload:n}}else{if(r==="application/octet-stream"||typeof r=="string"&&nl.test(r))return{...e,payload:await ol(a,i),contentType:"application/octet-stream"};if(r==="application/x-www-form-urlencoded"&&typeof a=="string")return{...e,payload:Object.fromEntries(new URLSearchParams(a).entries()),contentType:"application/x-www-form-urlencoded"}}return e}function sl({payload:e,replacements:i,expressionContext:a,logger:r}){for(const n of i){const{target:t,value:s}=n;if(typeof t!="string")throw new Error(`Invalid JSON Pointer: ${t}`);try{const l=la.get(e,t),c=Fe({payload:s,context:a,logger:r});l!==void 0&&la.set(e,t,c)}catch{throw new Error(`Invalid JSON Pointer: ${t}`)}}}const ll=["parameters","failureActions","successActions"];function ul(e,i){const{reference:a,value:r}=e;if(!ll.some(t=>a.includes(`$components.${t}`)))throw new Error("Invalid reference: available components are $components.parameters, $components.failureActions, or $components.successActions");const n=oi({value:a,ctx:i,logger:i.options.logger});return ce(n)&&"value"in n&&r?{...n,value:r}:n}function va(e,i){return"reference"in e?ul(e,i):e}const ne={SUCCESS_CRITERIA_CHECK:"success criteria check",STATUS_CODE_CHECK:"status code check",SCHEMA_CHECK:"schema check",CONTENT_TYPE_CHECK:"content-type check",GLOBAL_TIMEOUT_ERROR:"global timeout error",MAX_STEPS_REACHED_ERROR:"maximum steps reached",NETWORK_ERROR:"failed network request",UNEXPECTED_ERROR:"unexpected error"};class jn extends Error{}class Bn extends jn{}class An extends jn{}async function cl(e){const{descriptionPath:i,externalRefResolver:a,base:r}=e,n=await bn({base:r,ref:i,config:e.config,dereference:!0,externalRefResolver:a});if(!n)throw new Error(`Could not find source description file '${i}'.`);return n.bundle.parsed}const dl={title:"[REPLACE WITH API title]",version:"[REPLACE WITH API version]"};function Pn(e,i){if(e)try{return $s(e,{skipReadOnly:!0,skipNonRequired:!1,quiet:!0})}catch(a){i.error(Ca(" Error while generating test data from JSON Schema ")+`
1
+ import{a$ as Fe,b0 as oi,b1 as Ca,b2 as $,b3 as sa,b4 as me,b5 as ve,b6 as _e,b7 as Ie,b8 as hn,b9 as qs,aO as gn,aP as Zs,ba as Us,bb as pn,bc as Ys,bd as wa,be as ti,bf as vn}from"./redocly-openapi-docs.min.index-CmXZfuiZ.js";import{l as ce,p as we,J as la,bp as $s,d as si}from"./redocly-openapi-docs.min.standalone-BPCdJgtH.js";import{d as bn,z as yn,c as Qs,s as Xs,p as el,j as al,E as zn}from"./redocly-openapi-docs.min.lint-2YpbCz3r.js";function il(e){return ce(e)&&"name"in e&&"value"in e&&!("in"in e)}function li(e){return ce(e)&&"in"in e&&typeof e.in=="string"&&["header","query","path","cookie"].includes(e.in)}const nl=/^image\/(png|jpeg|gif|bmp|webp|svg\+xml)|application\/pdf$/;function fn(e){return e.startsWith("$file(")&&e.endsWith(")")?e.substring(7,e.length-2):e}const Sn=async(e,i,a,r,n)=>{const t=we.dirname(r),s=we.resolve(t,fn(a));e.append(i,await n.options.requestFileLoader.getFileBody(s))},Mn=(e,i,a,r,n,t)=>{Object.entries(a).forEach(([s,l])=>{const c=t?`${t}[${s}]`:s;typeof l=="string"&&l.startsWith("$file(")&&l.endsWith(")")?e.push(Sn(i,c,l,r,n)):Array.isArray(l)?l.forEach(u=>{typeof u=="string"&&u.startsWith("$file(")&&u.endsWith(")")?e.push(Sn(i,c,u,r,n)):i.append(c,u.toString())}):ce(l)?Mn(e,i,l,r,n,c):(typeof l=="string"||typeof l=="number"||typeof l=="boolean")&&i.append(c,l.toString())})},rl=async(e,i,a,r)=>{if(ce(e)){const n=[];Mn(n,i,e,a,r),await Promise.all(n)}},ol=async(e,i)=>{if(typeof e=="string"&&e.startsWith("$file(")&&e.endsWith(")")){const a=we.resolve(we.dirname(i.options.filePath),fn(e));return i.options.requestFileLoader.getFileBody(a)}else return e};async function tl(e,i){if(!e)return{payload:void 0,contentType:void 0,encoding:void 0,replacements:void 0};const{payload:a,contentType:r}=e;if(r==="multipart/form-data"){const n=new FormData,t=we.resolve(i.options.filePath);return await rl(a,n,t,i),{...e,payload:n}}else{if(r==="application/octet-stream"||typeof r=="string"&&nl.test(r))return{...e,payload:await ol(a,i),contentType:"application/octet-stream"};if(r==="application/x-www-form-urlencoded"&&typeof a=="string")return{...e,payload:Object.fromEntries(new URLSearchParams(a).entries()),contentType:"application/x-www-form-urlencoded"}}return e}function sl({payload:e,replacements:i,expressionContext:a,logger:r}){for(const n of i){const{target:t,value:s}=n;if(typeof t!="string")throw new Error(`Invalid JSON Pointer: ${t}`);try{const l=la.get(e,t),c=Fe({payload:s,context:a,logger:r});l!==void 0&&la.set(e,t,c)}catch{throw new Error(`Invalid JSON Pointer: ${t}`)}}}const ll=["parameters","failureActions","successActions"];function ul(e,i){const{reference:a,value:r}=e;if(!ll.some(t=>a.includes(`$components.${t}`)))throw new Error("Invalid reference: available components are $components.parameters, $components.failureActions, or $components.successActions");const n=oi({value:a,ctx:i,logger:i.options.logger});return ce(n)&&"value"in n&&r?{...n,value:r}:n}function va(e,i){return"reference"in e?ul(e,i):e}const ne={SUCCESS_CRITERIA_CHECK:"success criteria check",STATUS_CODE_CHECK:"status code check",SCHEMA_CHECK:"schema check",CONTENT_TYPE_CHECK:"content-type check",GLOBAL_TIMEOUT_ERROR:"global timeout error",MAX_STEPS_REACHED_ERROR:"maximum steps reached",NETWORK_ERROR:"failed network request",UNEXPECTED_ERROR:"unexpected error"};class jn extends Error{}class Bn extends jn{}class An extends jn{}async function cl(e){const{descriptionPath:i,externalRefResolver:a,base:r}=e,n=await bn({base:r,ref:i,config:e.config,dereference:!0,externalRefResolver:a});if(!n)throw new Error(`Could not find source description file '${i}'.`);return n.bundle.parsed}const dl={title:"[REPLACE WITH API title]",version:"[REPLACE WITH API version]"};function Pn(e,i){if(e)try{return $s(e,{skipReadOnly:!0,skipNonRequired:!1,quiet:!0})}catch(a){i.error(Ca(" Error while generating test data from JSON Schema ")+`
2
2
  `+a);return}}function ml(e,i){if(e?.example)return e.example;if(ce(e?.examples))return Cn(e.examples);if(e?.schema)return Pn(e.schema,i)}function Cn(e){if(ce(e)){const i=Object.keys(e)[0];return i?e[i]?.value:void 0}else return}function kl(e,i){const a=e?.requestBody?.content||{},[r,n]=Object.entries(a)[0]||[],t=n?.example||Cn(n?.examples)||Pn(n?.schema,i),s=hl(e);return{parameters:gl([...wn(e.pathParameters,i),...wn(e.parameters,i)]).filter(({value:l})=>l),contentTypeParameters:[...r?[{name:"content-type",in:"header",value:r}]:[],...s?[{name:"accept",in:"header",value:s}]:[]],requestBody:t,contentType:r}}function hl(e){return e?.responses?Array.from(new Set(Object.values(e.responses).flatMap(i=>ce(i)&&"content"in i?Object.keys(i.content||{}):[]))).join(", "):void 0}function wn(e,i){return(e||[]).filter(a=>a?.required===!0).map(a=>{if(li(a))return{name:a.name,in:a.in,value:ml(a,i),...a.allowReserved&&{allowReserved:a.allowReserved}}}).filter(a=>a!==void 0)}function gl(e){const i={};for(const a of e)li(a)&&(i[(a.name+":"+a.in).toLowerCase()]=a);return Object.values(i)}function pl(e,i){let a,r;if(e.includes("$sourceDescriptions.")){const[,c,u]=e.split(".");a=c,r=u}else e.includes(".")?[a,r]=e.split("."):(r=e,a=Object.keys(i)[0]);const n=Object.keys(i);if(!i[a])throw new Error(`Unknown description name ${$(a)} at ${$(e)}. Available descriptions: ${n.join(", ")}.`);const t=i[a],s=t?.components?.securitySchemes,l=t.servers;for(const[c,u]of Object.entries(i[a].paths)){if(!u)return;for(const[m,h]of Object.entries(u))if(h.operationId===r)return{servers:u.servers||l,...h,pathParameters:h.parameters||[],path:c,method:m,descriptionName:a,securitySchemes:s}}throw new Error(`Unknown operationId ${$(r)} at ${$(e)}.`)}function vl(e,i){const{$sourceDescriptions:a,sourceDescriptions:r}=i,[n,t]=e.split("#");if(!r)throw new Error("Missing described sourceDescriptions");const s=r.find(A=>{if(["openapi","arazzo"].includes(A.type)){if(n.includes("$sourceDescriptions.")){const[,D]=n.split(".");return A.name===D}return"url"in A&&A.url===n}return!1})?.name;if(!s)throw new Error(`Unknown operationPath ${$(e)}. API description ${$(n)} is not listed in 'sourceDescriptions' workflow section.`);const l=a[s]||{},c=l?.components?.securitySchemes,[u,m,h]=la.parse(t);if(u!=="paths")throw new Error(`Invalid fragment identifier: ${t} at operationPath ${$(e)}.`);const{servers:p}=l,v=la.get(l,t)||{},j=la.get(l,la.compile(["paths",m]))||{};return{servers:j.servers||p,...v,pathParameters:j.parameters||[],path:m,method:h,descriptionName:s,securitySchemes:c}}function bl(e,i){if(!e.operationId&&!e.operationPath)return;const{$sourceDescriptions:a,sourceDescriptions:r}=i,{operationId:n,operationPath:t}=e;return n?pl(n,a):t?vl(t,{$sourceDescriptions:a,sourceDescriptions:r}):void 0}function yl({statusCode:e,contentType:i,descriptionResponses:a}){return a?(a[e]||a.default)?.content?.[i]?.schema:void 0}function zl(e,i){if(!i)return;const a=i.requestBody?.content;return a&&a[e]?.schema||void 0}function Kn({ctx:e,security:i,operation:a}){const{scheme:r,schemeName:n}=i;if(r)return i.scheme;if(n){if(typeof n=="string"&&n.startsWith("$sourceDescriptions.")){const[t,s,l]=n.split("."),c=(s&&e.$sourceDescriptions[s])?.components?.securitySchemes;return l&&c?c[l]:void 0}return a?.securitySchemes?.[n]}}function Ka(){}function Tn(){return typeof WeakMap<"u"?new WeakMap:fl()}function fl(){return{add:Ka,delete:Ka,get:Ka,set:Ka,has:function(e){return!1}}}var Sl=Object.prototype.hasOwnProperty,ui=function(e,i){return Sl.call(e,i)};function ci(e,i){for(var a in i)ui(i,a)&&(e[a]=i[a]);return e}var Ml=/^[ \t]*(?:\r\n|\r|\n)/,jl=/(?:\r\n|\r|\n)[ \t]*$/,Bl=/^(?:[\r\n]|$)/,Al=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,Pl=/^[ \t]*[\r\n][ \t\r\n]*$/;function Ln(e,i,a){var r=0,n=e[0].match(Al);n&&(r=n[1].length);var t="(\\r\\n|\\r|\\n).{0,"+r+"}",s=new RegExp(t,"g");i&&(e=e.slice(1));var l=a.newline,c=a.trimLeadingNewline,u=a.trimTrailingNewline,m=typeof l=="string",h=e.length,p=e.map(function(v,j){return v=v.replace(s,"$1"),j===0&&c&&(v=v.replace(Ml,"")),j===h-1&&u&&(v=v.replace(jl,"")),m&&(v=v.replace(/\r\n|\n|\r/g,function(A){return l})),v});return p}function Cl(e,i){for(var a="",r=0,n=e.length;r<n;r++)a+=e[r],r<n-1&&(a+=i[r]);return a}function wl(e){return ui(e,"raw")&&ui(e,"length")}function Nn(e){var i=Tn(),a=Tn();function r(t){for(var s=[],l=1;l<arguments.length;l++)s[l-1]=arguments[l];if(wl(t)){var c=t,u=(s[0]===r||s[0]===xe)&&Pl.test(c[0])&&Bl.test(c[1]),m=u?a:i,h=m.get(c);if(h||(h=Ln(c,u,e),m.set(c,h)),s.length===0)return h[0];var p=Cl(h,u?s.slice(1):s);return p}else return Nn(ci(ci({},e),t||{}))}var n=ci(r,{string:function(t){return Ln([t],!1,e)[0]}});return n}var xe=Nn({trimLeadingNewline:!0,trimTrailingNewline:!0});if(typeof module<"u")try{module.exports=xe,Object.defineProperty(xe,"__esModule",{value:!0}),xe.default=xe,xe.outdent=xe}catch{}function Kl(e){return`${Math.ceil(performance.now()-e)}ms`}function Ta(e){const i=e.length;let a=0,r=0,n=0,t=0,s=0,l=0,c=0;const u=new Set;let m=0;const h=new Set,p=new Set;for(const v of e){const j=xn(v.executedSteps);let A=!1;for(const D of j){if(t++,D.retriesLeft&&D.retriesLeft!==0)continue;n++;let I=!1;for(const G of D.checks)if(r++,!G.passed)switch(G.severity){case"warn":s++,u.add(v.workflowId),p.add(v.workflowId+":"+D.stepId);break;case"off":l++,h.add(v.workflowId+":"+D.stepId);break;default:a++,I=!0}I&&(m++,A=!0)}A&&c++}return{workflows:{passed:i-c,failed:c,warnings:u.size,skipped:0,total:i},steps:{passed:n-m,failed:m,warnings:p.size,skipped:h.size,total:n},checks:{passed:r-a,failed:a,warnings:s,skipped:l,total:r},totalRequests:t}}function xn(e){return e.flatMap(i=>"executedSteps"in i?xn(i.executedSteps):[i])}function Tl(e){try{return JSON.parse(e),!0}catch{return!1}}function Ll(e,i){const a=e.endsWith("/")?e.slice(0,-1):e,r=i.startsWith("/")?i.slice(1):i;return`${a}/${r}`}const Dn=50;function Hn({testNameToDisplay:e,checks:i,verboseLogs:a,verboseResponseLogs:r,logger:n}){const t=i.every(({passed:s})=>s);n.output(` ${t?sa("\u2713"):$("\u2717")} ${me(e)}`),a&&(n.output(`${ze}
3
3
  `+(Rn({logs:a,logger:n})||"")),n.printNewLine()),r&&(n.output(`${ze}
4
4
  `+(Rn({logs:r,type:"response",logger:n})||"")),n.printNewLine()),n.printNewLine();for(const s of i)n.output(`${re(Nl(s,s.severity),4)}