@redocly/openapi-docs 3.0.0-alpha.91 → 3.0.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 (1845) hide show
  1. package/dist/redocly-openapi-docs.min.js +10724 -8651
  2. package/lib/components/ApiInfo/ApiInfo.d.ts +3 -3
  3. package/lib/components/ApiInfo/ApiInfo.js +2 -2
  4. package/lib/components/ApiInfo/Metadata.d.ts +2 -2
  5. package/lib/components/ApiInfo/Metadata.js +1 -1
  6. package/lib/components/ApiInfo/styled.js +4 -1
  7. package/lib/components/CallbackSamples/CallbackSamples.d.ts +4 -4
  8. package/lib/components/CallbackSamples/CallbackSamples.js +15 -1
  9. package/lib/components/Callbacks/CallbackDetails.d.ts +2 -2
  10. package/lib/components/Callbacks/CallbackDetails.js +18 -2
  11. package/lib/components/Callbacks/CallbackOperation.d.ts +4 -2
  12. package/lib/components/Callbacks/CallbackOperation.js +14 -1
  13. package/lib/components/Callbacks/CallbackSummary.d.ts +3 -3
  14. package/lib/components/Callbacks/CallbackSummary.js +18 -1
  15. package/lib/components/Callbacks/CallbacksList.d.ts +5 -3
  16. package/lib/components/Callbacks/CallbacksList.js +1 -1
  17. package/lib/components/Callbacks/styled.js +1 -0
  18. package/lib/components/Content/Content.d.ts +8 -0
  19. package/lib/components/Content/Content.js +2 -0
  20. package/lib/components/Content/index.d.ts +1 -0
  21. package/lib/components/Content/index.js +2 -0
  22. package/lib/components/Content/useAutoScroll.d.ts +1 -0
  23. package/lib/components/Content/useAutoScroll.js +2 -0
  24. package/lib/components/ContentItem/ContentItem.d.ts +3 -3
  25. package/lib/components/ContentItem/ContentItem.js +1 -1
  26. package/lib/components/ContentItem/useIsExpanded.d.ts +5 -0
  27. package/lib/components/ContentItem/useIsExpanded.js +2 -0
  28. package/lib/components/ContentItems/ContentItems.d.ts +3 -3
  29. package/lib/components/ContentItems/ContentItems.js +1 -1
  30. package/lib/components/ContentItems/helpers.d.ts +0 -8
  31. package/lib/components/ContentItems/helpers.js +1 -1
  32. package/lib/components/Discriminator/Discriminator.d.ts +9 -0
  33. package/lib/components/Discriminator/Discriminator.js +6 -0
  34. package/lib/components/Discriminator/index.d.ts +1 -0
  35. package/lib/components/Discriminator/index.js +2 -0
  36. package/lib/components/Download/DownloadSpecification.d.ts +4 -0
  37. package/lib/components/Download/DownloadSpecification.js +40 -0
  38. package/lib/components/Download/index.d.ts +1 -3
  39. package/lib/components/Download/index.js +1 -1
  40. package/lib/components/Download/types.d.ts +10 -14
  41. package/lib/components/Download/useDownloadInfo.d.ts +1 -1
  42. package/lib/components/Download/useDownloadInfo.js +1 -1
  43. package/lib/components/ErrorBoundary/ErrorBoundary.d.ts +2 -2
  44. package/lib/components/ErrorBoundary/ErrorBoundary.js +2 -2
  45. package/lib/components/ExpandAllButton/ExpandAllButton.d.ts +6 -0
  46. package/lib/components/ExpandAllButton/ExpandAllButton.js +4 -0
  47. package/lib/components/ExpandAllButton/getAllNestedSchema.d.ts +8 -0
  48. package/lib/components/ExpandAllButton/getAllNestedSchema.js +2 -0
  49. package/lib/components/ExpandAllButton/index.d.ts +2 -0
  50. package/lib/components/ExpandAllButton/index.js +2 -0
  51. package/lib/components/ExpandAllButton/useUpdateExpandedFields.d.ts +2 -0
  52. package/lib/components/ExpandAllButton/useUpdateExpandedFields.js +2 -0
  53. package/lib/components/ExternalDocumentation/ExternalDocumentation.d.ts +2 -2
  54. package/lib/components/ExternalDocumentation/ExternalDocumentation.js +4 -4
  55. package/lib/components/Language/LanguageDropdown.d.ts +15 -0
  56. package/lib/components/Language/LanguageDropdown.js +2 -0
  57. package/lib/components/Language/LanguageItem.d.ts +11 -0
  58. package/lib/components/Language/LanguageItem.js +2 -0
  59. package/lib/components/Language/LanguageList.d.ts +11 -0
  60. package/lib/components/Language/LanguageList.js +2 -0
  61. package/lib/components/Language/_tests_/LanguageDropdown.test.d.ts +1 -0
  62. package/lib/components/Language/_tests_/LanguageDropdown.test.js +2 -0
  63. package/lib/components/Language/constants.d.ts +1 -0
  64. package/lib/components/Language/constants.js +2 -0
  65. package/lib/components/Language/index.d.ts +3 -0
  66. package/lib/components/Language/index.js +2 -0
  67. package/lib/components/Language/styled.d.ts +30 -0
  68. package/lib/components/Language/styled.js +76 -0
  69. package/lib/components/Markdown/Markdown.d.ts +2 -2
  70. package/lib/components/Markdown/Markdown.js +1 -1
  71. package/lib/components/Markdown/index.d.ts +0 -1
  72. package/lib/components/Markdown/index.js +1 -1
  73. package/lib/components/Markdown/types.d.ts +3 -2
  74. package/lib/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +5 -5
  75. package/lib/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -1
  76. package/lib/components/OperationItem/Description.d.ts +10 -0
  77. package/lib/components/OperationItem/Description.js +2 -0
  78. package/lib/components/OperationItem/OperationItem.d.ts +2 -2
  79. package/lib/components/OperationItem/OperationItem.js +20 -12
  80. package/lib/components/OperationItem/_tests_/OperationItem.test.d.ts +1 -0
  81. package/lib/components/OperationItem/_tests_/OperationItem.test.js +2 -0
  82. package/lib/components/Overlay.d.ts +2 -2
  83. package/lib/components/Overlay.js +1 -1
  84. package/lib/components/Overview/Overview.d.ts +4 -0
  85. package/lib/components/Overview/Overview.js +2 -0
  86. package/lib/components/Overview/index.d.ts +1 -0
  87. package/lib/components/Overview/index.js +2 -0
  88. package/lib/components/PageFooter/PageFooter.d.ts +3 -14
  89. package/lib/components/PageFooter/PageFooter.js +1 -1
  90. package/lib/components/Panel/ContentPanel.d.ts +2 -4
  91. package/lib/components/Panel/ResponsePanel.d.ts +3 -8
  92. package/lib/components/Panel/ResponsePanel.js +7 -8
  93. package/lib/components/Panel/index.d.ts +0 -4
  94. package/lib/components/Panel/index.js +1 -1
  95. package/lib/components/PanelItem/PanelItem.d.ts +9 -0
  96. package/lib/components/PanelItem/PanelItem.js +2 -0
  97. package/lib/components/PanelItem/index.d.ts +2 -0
  98. package/lib/components/PanelItem/index.js +2 -0
  99. package/lib/components/PanelItem/styled.d.ts +17 -0
  100. package/lib/components/PanelItem/styled.js +53 -0
  101. package/lib/components/PayloadSamples/Example.d.ts +2 -2
  102. package/lib/components/PayloadSamples/Example.js +1 -1
  103. package/lib/components/PayloadSamples/ExampleValue.d.ts +1 -1
  104. package/lib/components/PayloadSamples/ExampleValue.js +1 -1
  105. package/lib/components/PayloadSamples/ExternalExample.d.ts +2 -2
  106. package/lib/components/PayloadSamples/ExternalExample.js +1 -1
  107. package/lib/components/PayloadSamples/MediaTypeSamples.d.ts +2 -2
  108. package/lib/components/PayloadSamples/MediaTypeSamples.js +3 -1
  109. package/lib/components/PayloadSamples/PayloadSamples.d.ts +2 -2
  110. package/lib/components/PayloadSamples/PayloadSamples.js +1 -1
  111. package/lib/components/PayloadSamples/styled.d.ts +4 -3
  112. package/lib/components/PayloadSamples/styled.js +10 -5
  113. package/lib/components/PayloadSamples/types.d.ts +0 -1
  114. package/lib/components/PropertyDetails/DescriptionEnums.d.ts +4 -0
  115. package/lib/components/PropertyDetails/DescriptionEnums.js +10 -0
  116. package/lib/components/PropertyDetails/EnumValues.d.ts +3 -0
  117. package/lib/components/PropertyDetails/EnumValues.js +2 -0
  118. package/lib/components/PropertyDetails/Examples.d.ts +5 -0
  119. package/lib/components/PropertyDetails/Examples.js +2 -0
  120. package/lib/components/PropertyDetails/Extensions.d.ts +3 -0
  121. package/lib/components/PropertyDetails/Extensions.js +4 -0
  122. package/lib/components/PropertyDetails/FieldDetail.d.ts +7 -0
  123. package/lib/components/PropertyDetails/FieldDetail.js +8 -0
  124. package/lib/components/PropertyDetails/FieldDetails.d.ts +3 -0
  125. package/lib/components/PropertyDetails/FieldDetails.js +43 -0
  126. package/lib/components/PropertyDetails/Pattern.d.ts +6 -0
  127. package/lib/components/PropertyDetails/Pattern.js +2 -0
  128. package/lib/components/PropertyDetails/PlusCircleIcon.d.ts +7 -0
  129. package/lib/components/PropertyDetails/PlusCircleIcon.js +11 -0
  130. package/lib/components/PropertyDetails/PropertyDetails.d.ts +3 -0
  131. package/lib/components/PropertyDetails/PropertyDetails.js +17 -0
  132. package/lib/components/PropertyDetails/SchemaTypeInfo.d.ts +6 -0
  133. package/lib/components/PropertyDetails/SchemaTypeInfo.js +16 -0
  134. package/lib/components/PropertyDetails/SimpleEnums.d.ts +4 -0
  135. package/lib/components/PropertyDetails/SimpleEnums.js +8 -0
  136. package/lib/components/PropertyDetails/cycleColorsByLevel.d.ts +1 -0
  137. package/lib/components/PropertyDetails/cycleColorsByLevel.js +2 -0
  138. package/lib/components/PropertyDetails/index.d.ts +3 -0
  139. package/lib/components/PropertyDetails/index.js +2 -0
  140. package/lib/components/PropertyDetails/styled.d.ts +16 -0
  141. package/lib/components/PropertyDetails/styled.js +23 -0
  142. package/lib/components/PropertyDetails/types.d.ts +43 -0
  143. package/lib/components/RedoclyOpenAPIDocs/Providers.d.ts +4 -6
  144. package/lib/components/RedoclyOpenAPIDocs/Providers.js +1 -1
  145. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.d.ts +3 -4
  146. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +1 -1
  147. package/lib/components/RedoclyOpenAPIDocs/index.d.ts +2 -2
  148. package/lib/components/RedoclyOpenAPIDocs/index.js +1 -1
  149. package/lib/components/RedoclyOpenAPIDocs/styled.d.ts +0 -8
  150. package/lib/components/RedoclyOpenAPIDocs/styled.js +13 -113
  151. package/lib/components/RedoclyOpenAPIDocs/types.d.ts +16 -33
  152. package/lib/components/RedoclyOpenAPIDocs/utils.d.ts +2 -4
  153. package/lib/components/RedoclyOpenAPIDocs/utils.js +1 -1
  154. package/lib/components/RenderHook/RenderHook.d.ts +3 -3
  155. package/lib/components/RenderHook/RenderHook.js +1 -1
  156. package/lib/components/Replay/EmbeddedReplay.d.ts +11 -0
  157. package/lib/components/Replay/EmbeddedReplay.js +11 -0
  158. package/lib/components/Replay/Replay.d.ts +10 -0
  159. package/lib/components/Replay/Replay.js +14 -0
  160. package/lib/components/Replay/index.d.ts +2 -0
  161. package/lib/components/Replay/index.js +2 -0
  162. package/lib/components/Replay/utils.d.ts +14 -0
  163. package/lib/components/Replay/utils.js +2 -0
  164. package/lib/components/Request/RequestDetails.d.ts +3 -0
  165. package/lib/components/Request/RequestDetails.js +4 -0
  166. package/lib/components/Request/types.d.ts +6 -0
  167. package/lib/components/RequestParameters/Body.d.ts +10 -0
  168. package/lib/components/RequestParameters/Body.js +2 -0
  169. package/lib/components/RequestParameters/ParametersGroup.d.ts +9 -0
  170. package/lib/components/RequestParameters/ParametersGroup.js +21 -0
  171. package/lib/components/RequestParameters/RequestParameters.d.ts +9 -0
  172. package/lib/components/RequestParameters/RequestParameters.js +2 -0
  173. package/lib/components/RequestParameters/index.d.ts +2 -0
  174. package/lib/components/RequestParameters/index.js +2 -0
  175. package/lib/components/RequestSamples/CodeSample.d.ts +3 -4
  176. package/lib/components/RequestSamples/CodeSample.js +9 -1
  177. package/lib/components/RequestSamples/Example.d.ts +3 -4
  178. package/lib/components/RequestSamples/Example.js +1 -1
  179. package/lib/components/RequestSamples/RequestSamples.d.ts +4 -9
  180. package/lib/components/RequestSamples/RequestSamples.js +6 -1
  181. package/lib/components/RequestSamples/useCodeSamples.d.ts +1 -1
  182. package/lib/components/RequestSamples/useCodeSamples.js +1 -1
  183. package/lib/components/ResponseSamples/ResponseSamples.d.ts +5 -3
  184. package/lib/components/ResponseSamples/ResponseSamples.js +1 -1
  185. package/lib/components/ResponseSamples/Summary.d.ts +5 -0
  186. package/lib/components/ResponseSamples/Summary.js +2 -0
  187. package/lib/components/Responses/OperationResponseList.d.ts +8 -2
  188. package/lib/components/Responses/OperationResponseList.js +4 -1
  189. package/lib/components/Responses/ResponseDetails.d.ts +2 -2
  190. package/lib/components/Responses/ResponseDetails.js +1 -3
  191. package/lib/components/Responses/ResponseHeaders.d.ts +2 -2
  192. package/lib/components/Responses/ResponseHeaders.js +1 -1
  193. package/lib/components/Responses/index.d.ts +0 -3
  194. package/lib/components/Responses/index.js +1 -1
  195. package/lib/components/Responses/styled.d.ts +6 -3
  196. package/lib/components/Responses/styled.js +21 -12
  197. package/lib/components/Responses/types.d.ts +5 -7
  198. package/lib/components/RightPanel/RightPanel.d.ts +5 -0
  199. package/lib/components/RightPanel/RightPanel.js +2 -0
  200. package/lib/components/RightPanel/index.d.ts +1 -0
  201. package/lib/components/RightPanel/index.js +2 -0
  202. package/lib/components/Samples/ExampleSwitch.d.ts +2 -3
  203. package/lib/components/Samples/ExampleSwitch.js +1 -1
  204. package/lib/components/Samples/index.d.ts +0 -2
  205. package/lib/components/Samples/index.js +1 -1
  206. package/lib/components/Samples/use-example-key.d.ts +1 -2
  207. package/lib/components/Samples/use-example-key.js +1 -1
  208. package/lib/components/Schema/ArraySchema.d.ts +3 -2
  209. package/lib/components/Schema/ArraySchema.js +33 -3
  210. package/lib/components/Schema/ObjectSchema.d.ts +2 -2
  211. package/lib/components/Schema/ObjectSchema.js +1 -1
  212. package/lib/components/Schema/OneOfSchema.d.ts +2 -2
  213. package/lib/components/Schema/OneOfSchema.js +9 -1
  214. package/lib/components/Schema/RecursiveSchema.d.ts +2 -2
  215. package/lib/components/Schema/RecursiveSchema.js +1 -1
  216. package/lib/components/Schema/Schema.d.ts +2 -2
  217. package/lib/components/Schema/Schema.js +4 -1
  218. package/lib/components/Schema/SubSchema.d.ts +13 -0
  219. package/lib/components/Schema/SubSchema.js +2 -0
  220. package/lib/components/Schema/helpers.d.ts +5 -0
  221. package/lib/components/Schema/helpers.js +2 -0
  222. package/lib/components/Schema/types.d.ts +11 -1
  223. package/lib/components/Schema/useOneOfLocationIdx.d.ts +2 -0
  224. package/lib/components/Schema/useOneOfLocationIdx.js +2 -0
  225. package/lib/components/SchemaDefinition/SchemaDefinition.d.ts +2 -2
  226. package/lib/components/SchemaDefinition/SchemaDefinition.js +1 -4
  227. package/lib/components/SectionContent/SectionContent.d.ts +2 -10
  228. package/lib/components/SectionContent/SectionContent.js +15 -1
  229. package/lib/components/SectionItem/SectionItem.d.ts +2 -2
  230. package/lib/components/SectionItem/SectionItem.js +1 -1
  231. package/lib/components/Security/Divider.d.ts +3 -0
  232. package/lib/components/Security/Divider.js +15 -0
  233. package/lib/components/Security/OAuthFlow.d.ts +6 -0
  234. package/lib/components/Security/OAuthFlow.js +4 -0
  235. package/lib/components/Security/Security.d.ts +7 -0
  236. package/lib/components/Security/Security.js +2 -0
  237. package/lib/components/Security/SecurityButton.d.ts +10 -0
  238. package/lib/components/Security/SecurityButton.js +28 -0
  239. package/lib/components/Security/SecurityFlow.d.ts +5 -0
  240. package/lib/components/Security/SecurityFlow.js +21 -0
  241. package/lib/components/Security/SecurityModal.d.ts +8 -0
  242. package/lib/components/Security/SecurityModal.js +45 -0
  243. package/lib/components/Security/SecuritySchemeItem.d.ts +7 -0
  244. package/lib/components/Security/SecuritySchemeItem.js +20 -0
  245. package/lib/components/Security/helper.d.ts +2 -0
  246. package/lib/components/Security/helper.js +2 -0
  247. package/lib/components/Security/index.d.ts +1 -0
  248. package/lib/components/Security/index.js +2 -0
  249. package/lib/components/Security/styled.d.ts +2 -0
  250. package/lib/components/Security/styled.js +14 -0
  251. package/lib/components/SelectOrLabel/SelectOrLabel.d.ts +7 -0
  252. package/lib/components/SelectOrLabel/SelectOrLabel.js +8 -0
  253. package/lib/components/SelectOrLabel/index.d.ts +1 -0
  254. package/lib/components/SelectOrLabel/index.js +2 -0
  255. package/lib/components/ServerList/ServerList.d.ts +3 -0
  256. package/lib/components/ServerList/ServerList.js +60 -0
  257. package/lib/components/ServerList/index.d.ts +1 -0
  258. package/lib/components/ServerList/index.js +2 -0
  259. package/lib/components/ServerList/types.d.ts +2 -0
  260. package/lib/components/ServerListDropdown/ServerListDropdown.d.ts +7 -0
  261. package/lib/components/ServerListDropdown/ServerListDropdown.js +2 -0
  262. package/lib/components/ServerListDropdown/index.d.ts +1 -0
  263. package/lib/components/ServerListDropdown/index.js +2 -0
  264. package/lib/components/ServerListDropdown/styled.d.ts +6 -0
  265. package/lib/components/ServerListDropdown/styled.js +23 -0
  266. package/lib/components/SideMenu/SideMenu.d.ts +3 -2
  267. package/lib/components/SideMenu/SideMenu.js +3 -1
  268. package/lib/components/SideMenu/hooks/useMenuItems.d.ts +1 -3
  269. package/lib/components/SideMenu/hooks/useMenuItems.js +1 -1
  270. package/lib/components/SideMenu/index.d.ts +0 -3
  271. package/lib/components/SideMenu/index.js +1 -1
  272. package/lib/components/SideMenu/types.d.ts +1 -15
  273. package/lib/components/StickySidebar/SidebarActions.d.ts +1 -0
  274. package/lib/components/StickySidebar/SidebarActions.js +6 -0
  275. package/lib/components/StickySidebar/StickyResponsiveSidebar.d.ts +2 -3
  276. package/lib/components/StickySidebar/StickyResponsiveSidebar.js +12 -26
  277. package/lib/components/Tabs/Tabs.d.ts +8 -0
  278. package/lib/components/Tabs/Tabs.js +35 -0
  279. package/lib/components/Tabs/index.d.ts +2 -5
  280. package/lib/components/Tabs/index.js +1 -1
  281. package/lib/components/Tabs/useTabsState.d.ts +11 -0
  282. package/lib/components/Tabs/useTabsState.js +2 -0
  283. package/lib/components/TagItem/OperationsNavigation.d.ts +9 -0
  284. package/lib/components/TagItem/OperationsNavigation.js +46 -0
  285. package/lib/components/TagItem/TagItem.d.ts +8 -2
  286. package/lib/components/TagItem/TagItem.js +22 -1
  287. package/lib/components/UnsupportedFeatureScreen/UnsupportedFeatureScreen.d.ts +1 -0
  288. package/lib/components/UnsupportedFeatureScreen/UnsupportedFeatureScreen.js +18 -0
  289. package/lib/components/UnsupportedFeatureScreen/index.d.ts +1 -0
  290. package/lib/components/UnsupportedFeatureScreen/index.js +2 -0
  291. package/lib/components/ViewNested/ViewNested.d.ts +13 -0
  292. package/lib/components/ViewNested/ViewNested.js +31 -0
  293. package/lib/components/ViewNested/index.d.ts +1 -0
  294. package/lib/components/ViewNested/index.js +2 -0
  295. package/lib/components/common/BodyContent/BodyContent.d.ts +12 -0
  296. package/lib/components/common/BodyContent/BodyContent.js +28 -0
  297. package/lib/components/common/BodyContent/index.d.ts +1 -0
  298. package/lib/components/common/BodyContent/index.js +2 -0
  299. package/lib/components/common/ClearButton/ClearButton.d.ts +2 -2
  300. package/lib/components/common/ClearButton/ClearButton.js +1 -1
  301. package/lib/components/common/ClearButton/types.d.ts +2 -2
  302. package/lib/components/common/CodeBlockPanel.d.ts +2 -0
  303. package/lib/components/common/CodeBlockPanel.js +6 -0
  304. package/lib/components/common/ConstraintsView.d.ts +5 -0
  305. package/lib/components/common/ConstraintsView.js +4 -0
  306. package/lib/components/common/Dropdown/Dropdown.d.ts +15 -3
  307. package/lib/components/common/Dropdown/Dropdown.js +26 -15
  308. package/lib/components/common/Dropdown/index.d.ts +2 -2
  309. package/lib/components/common/Dropdown/index.js +1 -1
  310. package/lib/components/common/Extensions.d.ts +7 -0
  311. package/lib/components/common/Extensions.js +4 -0
  312. package/lib/components/common/Fields/fields-layout.js +12 -13
  313. package/lib/components/common/Fields/fields.d.ts +33 -16
  314. package/lib/components/common/Fields/fields.js +45 -64
  315. package/lib/components/common/LinkToField.d.ts +3 -9
  316. package/lib/components/common/LinkToField.js +14 -8
  317. package/lib/components/common/OperationItemTitle.d.ts +2 -0
  318. package/lib/components/common/OperationItemTitle.js +33 -0
  319. package/lib/components/common/SchemaSelection/SchemaSelection.d.ts +12 -0
  320. package/lib/components/common/SchemaSelection/SchemaSelection.js +2 -0
  321. package/lib/components/common/SchemaSelection/index.d.ts +1 -0
  322. package/lib/components/common/SchemaSelection/index.js +2 -0
  323. package/lib/components/common/Select/Select.d.ts +3 -0
  324. package/lib/components/common/Select/Select.js +2 -0
  325. package/lib/components/common/Select/index.d.ts +2 -0
  326. package/lib/components/common/Select/index.js +2 -0
  327. package/lib/components/common/Select/styled.d.ts +23 -0
  328. package/lib/components/common/Select/styled.js +111 -0
  329. package/lib/components/common/Select/types.d.ts +20 -0
  330. package/lib/components/common/Skeleton/LanguageListSkeleton.d.ts +4 -0
  331. package/lib/components/common/Skeleton/LanguageListSkeleton.js +23 -0
  332. package/lib/components/common/Skeleton/Skeleton.d.ts +5 -2
  333. package/lib/components/common/Skeleton/Skeleton.js +7 -5
  334. package/lib/components/common/headers.d.ts +0 -1
  335. package/lib/components/common/headers.js +2 -6
  336. package/lib/components/common/index.d.ts +5 -7
  337. package/lib/components/common/index.js +1 -1
  338. package/lib/components/common/linkify.d.ts +4 -3
  339. package/lib/components/common/linkify.js +12 -3
  340. package/lib/components/common/panels.d.ts +5 -1
  341. package/lib/components/common/panels.js +61 -40
  342. package/lib/components/common/schema.d.ts +3 -5
  343. package/lib/components/common/schema.js +26 -20
  344. package/lib/components/common/styled.d.ts +4 -0
  345. package/lib/components/common/styled.js +27 -0
  346. package/lib/components/index.d.ts +4 -13
  347. package/lib/components/index.js +1 -1
  348. package/lib/components/pluggable/RedocExample.d.ts +2 -2
  349. package/lib/components/pluggable/RedocExample.js +1 -1
  350. package/lib/components/pluggable/RedocSchema.d.ts +2 -2
  351. package/lib/components/pluggable/RedocSchema.js +1 -1
  352. package/lib/components/pluggable/index.d.ts +0 -3
  353. package/lib/components/pluggable/index.js +1 -1
  354. package/lib/components/pluggable/styled.components.d.ts +1 -0
  355. package/lib/components/pluggable/styled.components.js +1 -1
  356. package/lib/constants.d.ts +5 -3
  357. package/lib/constants.js +1 -1
  358. package/lib/events/codeSampleCopy.js +1 -1
  359. package/lib/events/index.d.ts +0 -1
  360. package/lib/events/index.js +1 -1
  361. package/lib/events/types.d.ts +1 -8
  362. package/lib/events/types.js +1 -1
  363. package/lib/hoc/types.d.ts +3 -10
  364. package/lib/hoc/utils.d.ts +2 -2
  365. package/lib/hoc/withRouter.d.ts +2 -2
  366. package/lib/hoc/withRouter.js +1 -1
  367. package/lib/hoc/withStore.d.ts +2 -2
  368. package/lib/hoc/withStore.js +1 -1
  369. package/lib/hooks/index.d.ts +2 -0
  370. package/lib/hooks/index.js +1 -1
  371. package/lib/hooks/useActiveWithFallback.d.ts +3 -0
  372. package/lib/hooks/useActiveWithFallback.js +2 -0
  373. package/lib/hooks/useContentItems.js +1 -1
  374. package/lib/hooks/useRouter.d.ts +3 -3
  375. package/lib/hooks/useUppercase2LowercaseRedirect.d.ts +1 -0
  376. package/lib/hooks/useUppercase2LowercaseRedirect.js +2 -0
  377. package/lib/icons/CSharpIcon/CSharpIcon.d.ts +4 -0
  378. package/lib/icons/CSharpIcon/CSharpIcon.js +2 -0
  379. package/lib/icons/CSharpIcon/index.d.ts +1 -0
  380. package/lib/icons/CSharpIcon/index.js +2 -0
  381. package/lib/icons/CurlIcon/CurlIcon.d.ts +4 -0
  382. package/lib/icons/CurlIcon/CurlIcon.js +2 -0
  383. package/lib/icons/CurlIcon/index.d.ts +1 -0
  384. package/lib/icons/CurlIcon/index.js +2 -0
  385. package/lib/icons/GOIcon/GOIcon.d.ts +4 -0
  386. package/lib/icons/GOIcon/GOIcon.js +2 -0
  387. package/lib/icons/GOIcon/index.d.ts +1 -0
  388. package/lib/icons/GOIcon/index.js +2 -0
  389. package/lib/icons/JavaIcon/JavaIcon.d.ts +4 -0
  390. package/lib/icons/JavaIcon/JavaIcon.js +2 -0
  391. package/lib/icons/JavaIcon/index.d.ts +1 -0
  392. package/lib/icons/JavaIcon/index.js +2 -0
  393. package/lib/icons/JavaScriptIcon/JavaScriptIcon.d.ts +4 -0
  394. package/lib/icons/JavaScriptIcon/JavaScriptIcon.js +2 -0
  395. package/lib/icons/JavaScriptIcon/index.d.ts +1 -0
  396. package/lib/icons/JavaScriptIcon/index.js +2 -0
  397. package/lib/icons/NodeJSIcon/NodeJSIcon.d.ts +4 -0
  398. package/lib/icons/NodeJSIcon/NodeJSIcon.js +2 -0
  399. package/lib/icons/NodeJSIcon/index.d.ts +1 -0
  400. package/lib/icons/NodeJSIcon/index.js +2 -0
  401. package/lib/icons/PHPIcon/PHPIcon.d.ts +4 -0
  402. package/lib/icons/PHPIcon/PHPIcon.js +2 -0
  403. package/lib/icons/PHPIcon/index.d.ts +1 -0
  404. package/lib/icons/PHPIcon/index.js +2 -0
  405. package/lib/icons/PayloadIcon/PayloadIcon.d.ts +4 -0
  406. package/lib/icons/PayloadIcon/PayloadIcon.js +2 -0
  407. package/lib/icons/PayloadIcon/index.d.ts +1 -0
  408. package/lib/icons/PayloadIcon/index.js +2 -0
  409. package/lib/icons/PythonIcon/PythonIcon.d.ts +4 -0
  410. package/lib/icons/PythonIcon/PythonIcon.js +2 -0
  411. package/lib/icons/PythonIcon/index.d.ts +1 -0
  412. package/lib/icons/PythonIcon/index.js +2 -0
  413. package/lib/icons/RIcon/RIcon.d.ts +4 -0
  414. package/lib/icons/RIcon/RIcon.js +2 -0
  415. package/lib/icons/RIcon/index.d.ts +1 -0
  416. package/lib/icons/RIcon/index.js +2 -0
  417. package/lib/icons/RubyIcon/RubyIcon.d.ts +4 -0
  418. package/lib/icons/RubyIcon/RubyIcon.js +2 -0
  419. package/lib/icons/RubyIcon/index.d.ts +1 -0
  420. package/lib/icons/RubyIcon/index.js +2 -0
  421. package/lib/index.d.ts +7 -6
  422. package/lib/index.js +1 -1
  423. package/lib/jotai/app.d.ts +34 -22
  424. package/lib/jotai/app.js +1 -1
  425. package/lib/jotai/operation.d.ts +27 -3
  426. package/lib/jotai/operation.js +1 -1
  427. package/lib/jotai/replay.d.ts +3 -0
  428. package/lib/jotai/replay.js +2 -0
  429. package/lib/jotai/store.d.ts +5 -10
  430. package/lib/jotai/store.js +1 -1
  431. package/lib/models/code-sample-options.d.ts +1 -4
  432. package/lib/models/group.d.ts +2 -2
  433. package/lib/models/group.js +1 -1
  434. package/lib/models/index.d.ts +0 -1
  435. package/lib/models/index.js +1 -1
  436. package/lib/models/mediaContent.js +1 -1
  437. package/lib/models/mediaType.js +1 -1
  438. package/lib/models/operation.js +1 -1
  439. package/lib/models/response.js +1 -1
  440. package/lib/models/schema.js +1 -1
  441. package/lib/models/tab.d.ts +4 -0
  442. package/lib/models/tab.js +2 -0
  443. package/lib/models/types.d.ts +13 -15
  444. package/lib/services/OpenAPIParser.d.ts +1 -2
  445. package/lib/services/OpenAPIParser.js +1 -1
  446. package/lib/services/code-samples/constants.d.ts +2 -0
  447. package/lib/services/code-samples/constants.js +2 -0
  448. package/lib/services/code-samples/generator.d.ts +3 -3
  449. package/lib/services/code-samples/generator.js +1 -1
  450. package/lib/services/code-samples/httpsnippet/helpers/code-builder.d.ts +2 -1
  451. package/lib/services/code-samples/httpsnippet/helpers/code-helpers.js +1 -1
  452. package/lib/services/code-samples/httpsnippet/index.d.ts +1 -1
  453. package/lib/services/code-samples/httpsnippet/targets/__mocks__/mock.js +1 -1
  454. package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
  455. package/lib/services/code-samples/httpsnippet/targets/index.d.ts +1 -1
  456. package/lib/services/code-samples/httpsnippet/targets/javascript/index.d.ts +1 -1
  457. package/lib/services/code-samples/types.d.ts +5 -2
  458. package/lib/services/config-options/helpers.d.ts +3 -0
  459. package/lib/services/config-options/helpers.js +2 -0
  460. package/lib/services/config-options/normalizeOptions.d.ts +3 -0
  461. package/lib/services/config-options/normalizeOptions.js +2 -0
  462. package/lib/services/config-options/types.d.ts +54 -0
  463. package/lib/services/history/helpers.d.ts +1 -0
  464. package/lib/services/history/helpers.js +1 -1
  465. package/lib/services/index.d.ts +1 -5
  466. package/lib/services/index.js +1 -1
  467. package/lib/services/menu/builder.d.ts +1 -1
  468. package/lib/services/menu/builder.js +1 -1
  469. package/lib/services/menu/markdown.d.ts +1 -4
  470. package/lib/services/menu/markdown.js +1 -1
  471. package/lib/services/menu/operation.d.ts +2 -5
  472. package/lib/services/menu/operation.js +1 -1
  473. package/lib/services/menu/tags.d.ts +1 -1
  474. package/lib/services/menu/tags.js +1 -1
  475. package/lib/services/types.d.ts +4 -50
  476. package/lib/services/types.js +1 -1
  477. package/lib/services/utils.d.ts +0 -7
  478. package/lib/services/utils.js +1 -1
  479. package/lib/setupTests.js +1 -1
  480. package/lib/standalone.d.ts +2 -6
  481. package/lib/standalone.js +1 -1
  482. package/lib/testProviders.d.ts +2 -6
  483. package/lib/testProviders.js +1 -1
  484. package/lib/types/index.d.ts +0 -1
  485. package/lib/types/index.js +1 -1
  486. package/lib/types/open-api.d.ts +11 -4
  487. package/lib/utils/argValuesHelpers.d.ts +1 -1
  488. package/lib/utils/argValuesHelpers.js +1 -1
  489. package/lib/utils/cookies.d.ts +7 -0
  490. package/lib/utils/cookies.js +2 -0
  491. package/lib/utils/dom.d.ts +0 -1
  492. package/lib/utils/dom.js +1 -1
  493. package/lib/utils/environments.d.ts +4 -0
  494. package/lib/utils/environments.js +2 -0
  495. package/lib/utils/helpers.d.ts +0 -3
  496. package/lib/utils/helpers.js +1 -1
  497. package/lib/utils/index.d.ts +2 -2
  498. package/lib/utils/index.js +1 -1
  499. package/lib/utils/isMobile.d.ts +5 -0
  500. package/lib/utils/isMobile.js +2 -0
  501. package/lib/utils/loadAndBundleSpec.js +1 -1
  502. package/lib/utils/local-storage.js +1 -1
  503. package/lib/utils/object.d.ts +1 -0
  504. package/lib/utils/object.js +1 -1
  505. package/lib/utils/openapi.d.ts +3 -5
  506. package/lib/utils/openapi.js +1 -1
  507. package/lib/utils/path.d.ts +0 -2
  508. package/lib/utils/path.js +1 -1
  509. package/lib/utils/replaceVariables.d.ts +2 -0
  510. package/lib/utils/replaceVariables.js +2 -0
  511. package/lib/utils/saveTextBeforeHeading.d.ts +1 -1
  512. package/lib/utils/saveTextBeforeHeading.js +1 -1
  513. package/lib/utils/security-details.d.ts +1 -5
  514. package/lib/utils/security-details.js +1 -1
  515. package/lib/utils/session-storage.js +1 -1
  516. package/lib/utils/string.d.ts +1 -0
  517. package/lib/utils/string.js +1 -1
  518. package/lib-esm/components/ApiInfo/ApiInfo.d.ts +3 -3
  519. package/lib-esm/components/ApiInfo/ApiInfo.js +2 -2
  520. package/lib-esm/components/ApiInfo/Metadata.d.ts +2 -2
  521. package/lib-esm/components/ApiInfo/Metadata.js +1 -1
  522. package/lib-esm/components/ApiInfo/styled.js +5 -2
  523. package/lib-esm/components/CallbackSamples/CallbackSamples.d.ts +4 -4
  524. package/lib-esm/components/CallbackSamples/CallbackSamples.js +15 -1
  525. package/lib-esm/components/Callbacks/CallbackDetails.d.ts +2 -2
  526. package/lib-esm/components/Callbacks/CallbackDetails.js +18 -2
  527. package/lib-esm/components/Callbacks/CallbackOperation.d.ts +4 -2
  528. package/lib-esm/components/Callbacks/CallbackOperation.js +14 -1
  529. package/lib-esm/components/Callbacks/CallbackSummary.d.ts +3 -3
  530. package/lib-esm/components/Callbacks/CallbackSummary.js +18 -1
  531. package/lib-esm/components/Callbacks/CallbacksList.d.ts +5 -3
  532. package/lib-esm/components/Callbacks/CallbacksList.js +1 -1
  533. package/lib-esm/components/Callbacks/styled.js +1 -0
  534. package/lib-esm/components/Content/Content.d.ts +8 -0
  535. package/lib-esm/components/Content/Content.js +2 -0
  536. package/lib-esm/components/Content/index.d.ts +1 -0
  537. package/lib-esm/components/Content/index.js +2 -0
  538. package/lib-esm/components/Content/useAutoScroll.d.ts +1 -0
  539. package/lib-esm/components/Content/useAutoScroll.js +2 -0
  540. package/lib-esm/components/ContentItem/ContentItem.d.ts +3 -3
  541. package/lib-esm/components/ContentItem/ContentItem.js +1 -1
  542. package/lib-esm/components/ContentItem/useIsExpanded.d.ts +5 -0
  543. package/lib-esm/components/ContentItem/useIsExpanded.js +2 -0
  544. package/lib-esm/components/ContentItems/ContentItems.d.ts +3 -3
  545. package/lib-esm/components/ContentItems/ContentItems.js +1 -1
  546. package/lib-esm/components/ContentItems/helpers.d.ts +0 -8
  547. package/lib-esm/components/ContentItems/helpers.js +1 -1
  548. package/lib-esm/components/Discriminator/Discriminator.d.ts +9 -0
  549. package/lib-esm/components/Discriminator/Discriminator.js +6 -0
  550. package/lib-esm/components/Discriminator/index.d.ts +1 -0
  551. package/lib-esm/components/Discriminator/index.js +2 -0
  552. package/lib-esm/components/Download/DownloadSpecification.d.ts +4 -0
  553. package/lib-esm/components/Download/DownloadSpecification.js +40 -0
  554. package/lib-esm/components/Download/index.d.ts +1 -3
  555. package/lib-esm/components/Download/index.js +1 -1
  556. package/lib-esm/components/Download/types.d.ts +10 -14
  557. package/lib-esm/components/Download/useDownloadInfo.d.ts +1 -1
  558. package/lib-esm/components/Download/useDownloadInfo.js +1 -1
  559. package/lib-esm/components/ErrorBoundary/ErrorBoundary.d.ts +2 -2
  560. package/lib-esm/components/ErrorBoundary/ErrorBoundary.js +2 -2
  561. package/lib-esm/components/ExpandAllButton/ExpandAllButton.d.ts +6 -0
  562. package/lib-esm/components/ExpandAllButton/ExpandAllButton.js +4 -0
  563. package/lib-esm/components/ExpandAllButton/getAllNestedSchema.d.ts +8 -0
  564. package/lib-esm/components/ExpandAllButton/getAllNestedSchema.js +2 -0
  565. package/lib-esm/components/ExpandAllButton/index.d.ts +2 -0
  566. package/lib-esm/components/ExpandAllButton/index.js +2 -0
  567. package/lib-esm/components/ExpandAllButton/useUpdateExpandedFields.d.ts +2 -0
  568. package/lib-esm/components/ExpandAllButton/useUpdateExpandedFields.js +2 -0
  569. package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.d.ts +2 -2
  570. package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.js +4 -4
  571. package/lib-esm/components/Language/LanguageDropdown.d.ts +15 -0
  572. package/lib-esm/components/Language/LanguageDropdown.js +2 -0
  573. package/lib-esm/components/Language/LanguageItem.d.ts +11 -0
  574. package/lib-esm/components/Language/LanguageItem.js +2 -0
  575. package/lib-esm/components/Language/LanguageList.d.ts +11 -0
  576. package/lib-esm/components/Language/LanguageList.js +2 -0
  577. package/lib-esm/components/Language/_tests_/LanguageDropdown.test.d.ts +1 -0
  578. package/lib-esm/components/Language/_tests_/LanguageDropdown.test.js +2 -0
  579. package/lib-esm/components/Language/constants.d.ts +1 -0
  580. package/lib-esm/components/Language/constants.js +2 -0
  581. package/lib-esm/components/Language/index.d.ts +3 -0
  582. package/lib-esm/components/Language/index.js +2 -0
  583. package/lib-esm/components/Language/styled.d.ts +30 -0
  584. package/lib-esm/components/Language/styled.js +76 -0
  585. package/lib-esm/components/Markdown/Markdown.d.ts +2 -2
  586. package/lib-esm/components/Markdown/Markdown.js +1 -1
  587. package/lib-esm/components/Markdown/index.d.ts +0 -1
  588. package/lib-esm/components/Markdown/index.js +1 -1
  589. package/lib-esm/components/Markdown/types.d.ts +3 -2
  590. package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +5 -5
  591. package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -1
  592. package/lib-esm/components/OperationItem/Description.d.ts +10 -0
  593. package/lib-esm/components/OperationItem/Description.js +2 -0
  594. package/lib-esm/components/OperationItem/OperationItem.d.ts +2 -2
  595. package/lib-esm/components/OperationItem/OperationItem.js +19 -11
  596. package/lib-esm/components/OperationItem/_tests_/OperationItem.test.d.ts +1 -0
  597. package/lib-esm/components/OperationItem/_tests_/OperationItem.test.js +2 -0
  598. package/lib-esm/components/Overlay.d.ts +2 -2
  599. package/lib-esm/components/Overlay.js +1 -1
  600. package/lib-esm/components/Overview/Overview.d.ts +4 -0
  601. package/lib-esm/components/Overview/Overview.js +2 -0
  602. package/lib-esm/components/Overview/index.d.ts +1 -0
  603. package/lib-esm/components/Overview/index.js +2 -0
  604. package/lib-esm/components/PageFooter/PageFooter.d.ts +3 -14
  605. package/lib-esm/components/PageFooter/PageFooter.js +1 -1
  606. package/lib-esm/components/Panel/ContentPanel.d.ts +2 -4
  607. package/lib-esm/components/Panel/ResponsePanel.d.ts +3 -8
  608. package/lib-esm/components/Panel/ResponsePanel.js +7 -8
  609. package/lib-esm/components/Panel/index.d.ts +0 -4
  610. package/lib-esm/components/Panel/index.js +1 -1
  611. package/lib-esm/components/PanelItem/PanelItem.d.ts +9 -0
  612. package/lib-esm/components/PanelItem/PanelItem.js +2 -0
  613. package/lib-esm/components/PanelItem/index.d.ts +2 -0
  614. package/lib-esm/components/PanelItem/index.js +2 -0
  615. package/lib-esm/components/PanelItem/styled.d.ts +17 -0
  616. package/lib-esm/components/PanelItem/styled.js +53 -0
  617. package/lib-esm/components/PayloadSamples/Example.d.ts +2 -2
  618. package/lib-esm/components/PayloadSamples/Example.js +1 -1
  619. package/lib-esm/components/PayloadSamples/ExampleValue.d.ts +1 -1
  620. package/lib-esm/components/PayloadSamples/ExampleValue.js +1 -1
  621. package/lib-esm/components/PayloadSamples/ExternalExample.d.ts +2 -2
  622. package/lib-esm/components/PayloadSamples/ExternalExample.js +1 -1
  623. package/lib-esm/components/PayloadSamples/MediaTypeSamples.d.ts +2 -2
  624. package/lib-esm/components/PayloadSamples/MediaTypeSamples.js +3 -1
  625. package/lib-esm/components/PayloadSamples/PayloadSamples.d.ts +2 -2
  626. package/lib-esm/components/PayloadSamples/PayloadSamples.js +1 -1
  627. package/lib-esm/components/PayloadSamples/styled.d.ts +4 -3
  628. package/lib-esm/components/PayloadSamples/styled.js +10 -5
  629. package/lib-esm/components/PayloadSamples/types.d.ts +0 -1
  630. package/lib-esm/components/PropertyDetails/DescriptionEnums.d.ts +4 -0
  631. package/lib-esm/components/PropertyDetails/DescriptionEnums.js +10 -0
  632. package/lib-esm/components/PropertyDetails/EnumValues.d.ts +3 -0
  633. package/lib-esm/components/PropertyDetails/EnumValues.js +2 -0
  634. package/lib-esm/components/PropertyDetails/Examples.d.ts +5 -0
  635. package/lib-esm/components/PropertyDetails/Examples.js +2 -0
  636. package/lib-esm/components/PropertyDetails/Extensions.d.ts +3 -0
  637. package/lib-esm/components/PropertyDetails/Extensions.js +4 -0
  638. package/lib-esm/components/PropertyDetails/FieldDetail.d.ts +7 -0
  639. package/lib-esm/components/PropertyDetails/FieldDetail.js +8 -0
  640. package/lib-esm/components/PropertyDetails/FieldDetails.d.ts +3 -0
  641. package/lib-esm/components/PropertyDetails/FieldDetails.js +43 -0
  642. package/lib-esm/components/PropertyDetails/Pattern.d.ts +6 -0
  643. package/lib-esm/components/PropertyDetails/Pattern.js +2 -0
  644. package/lib-esm/components/PropertyDetails/PlusCircleIcon.d.ts +7 -0
  645. package/lib-esm/components/PropertyDetails/PlusCircleIcon.js +11 -0
  646. package/lib-esm/components/PropertyDetails/PropertyDetails.d.ts +3 -0
  647. package/lib-esm/components/PropertyDetails/PropertyDetails.js +17 -0
  648. package/lib-esm/components/PropertyDetails/SchemaTypeInfo.d.ts +6 -0
  649. package/lib-esm/components/PropertyDetails/SchemaTypeInfo.js +16 -0
  650. package/lib-esm/components/PropertyDetails/SimpleEnums.d.ts +4 -0
  651. package/lib-esm/components/PropertyDetails/SimpleEnums.js +8 -0
  652. package/lib-esm/components/PropertyDetails/cycleColorsByLevel.d.ts +1 -0
  653. package/lib-esm/components/PropertyDetails/cycleColorsByLevel.js +2 -0
  654. package/lib-esm/components/PropertyDetails/index.d.ts +3 -0
  655. package/lib-esm/components/PropertyDetails/index.js +2 -0
  656. package/lib-esm/components/PropertyDetails/styled.d.ts +16 -0
  657. package/lib-esm/components/PropertyDetails/styled.js +23 -0
  658. package/lib-esm/components/PropertyDetails/types.d.ts +43 -0
  659. package/lib-esm/components/RedoclyOpenAPIDocs/Providers.d.ts +4 -6
  660. package/lib-esm/components/RedoclyOpenAPIDocs/Providers.js +1 -1
  661. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.d.ts +3 -4
  662. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +1 -1
  663. package/lib-esm/components/RedoclyOpenAPIDocs/index.d.ts +2 -2
  664. package/lib-esm/components/RedoclyOpenAPIDocs/index.js +1 -1
  665. package/lib-esm/components/RedoclyOpenAPIDocs/styled.d.ts +0 -8
  666. package/lib-esm/components/RedoclyOpenAPIDocs/styled.js +12 -112
  667. package/lib-esm/components/RedoclyOpenAPIDocs/types.d.ts +16 -33
  668. package/lib-esm/components/RedoclyOpenAPIDocs/utils.d.ts +2 -4
  669. package/lib-esm/components/RedoclyOpenAPIDocs/utils.js +1 -1
  670. package/lib-esm/components/RenderHook/RenderHook.d.ts +3 -3
  671. package/lib-esm/components/RenderHook/RenderHook.js +1 -1
  672. package/lib-esm/components/Replay/EmbeddedReplay.d.ts +11 -0
  673. package/lib-esm/components/Replay/EmbeddedReplay.js +11 -0
  674. package/lib-esm/components/Replay/Replay.d.ts +10 -0
  675. package/lib-esm/components/Replay/Replay.js +14 -0
  676. package/lib-esm/components/Replay/index.d.ts +2 -0
  677. package/lib-esm/components/Replay/index.js +2 -0
  678. package/lib-esm/components/Replay/utils.d.ts +14 -0
  679. package/lib-esm/components/Replay/utils.js +2 -0
  680. package/lib-esm/components/Request/RequestDetails.d.ts +3 -0
  681. package/lib-esm/components/Request/RequestDetails.js +4 -0
  682. package/lib-esm/components/Request/types.d.ts +6 -0
  683. package/lib-esm/components/RequestParameters/Body.d.ts +10 -0
  684. package/lib-esm/components/RequestParameters/Body.js +2 -0
  685. package/lib-esm/components/RequestParameters/ParametersGroup.d.ts +9 -0
  686. package/lib-esm/components/RequestParameters/ParametersGroup.js +21 -0
  687. package/lib-esm/components/RequestParameters/RequestParameters.d.ts +9 -0
  688. package/lib-esm/components/RequestParameters/RequestParameters.js +2 -0
  689. package/lib-esm/components/RequestParameters/index.d.ts +2 -0
  690. package/lib-esm/components/RequestParameters/index.js +2 -0
  691. package/lib-esm/components/RequestSamples/CodeSample.d.ts +3 -4
  692. package/lib-esm/components/RequestSamples/CodeSample.js +9 -1
  693. package/lib-esm/components/RequestSamples/Example.d.ts +3 -4
  694. package/lib-esm/components/RequestSamples/Example.js +1 -1
  695. package/lib-esm/components/RequestSamples/RequestSamples.d.ts +4 -9
  696. package/lib-esm/components/RequestSamples/RequestSamples.js +6 -1
  697. package/lib-esm/components/RequestSamples/useCodeSamples.d.ts +1 -1
  698. package/lib-esm/components/RequestSamples/useCodeSamples.js +1 -1
  699. package/lib-esm/components/ResponseSamples/ResponseSamples.d.ts +5 -3
  700. package/lib-esm/components/ResponseSamples/ResponseSamples.js +1 -1
  701. package/lib-esm/components/ResponseSamples/Summary.d.ts +5 -0
  702. package/lib-esm/components/ResponseSamples/Summary.js +2 -0
  703. package/lib-esm/components/Responses/OperationResponseList.d.ts +8 -2
  704. package/lib-esm/components/Responses/OperationResponseList.js +4 -1
  705. package/lib-esm/components/Responses/ResponseDetails.d.ts +2 -2
  706. package/lib-esm/components/Responses/ResponseDetails.js +1 -3
  707. package/lib-esm/components/Responses/ResponseHeaders.d.ts +2 -2
  708. package/lib-esm/components/Responses/ResponseHeaders.js +1 -1
  709. package/lib-esm/components/Responses/index.d.ts +0 -3
  710. package/lib-esm/components/Responses/index.js +1 -1
  711. package/lib-esm/components/Responses/styled.d.ts +6 -3
  712. package/lib-esm/components/Responses/styled.js +21 -12
  713. package/lib-esm/components/Responses/types.d.ts +5 -7
  714. package/lib-esm/components/RightPanel/RightPanel.d.ts +5 -0
  715. package/lib-esm/components/RightPanel/RightPanel.js +2 -0
  716. package/lib-esm/components/RightPanel/index.d.ts +1 -0
  717. package/lib-esm/components/RightPanel/index.js +2 -0
  718. package/lib-esm/components/Samples/ExampleSwitch.d.ts +2 -3
  719. package/lib-esm/components/Samples/ExampleSwitch.js +1 -1
  720. package/lib-esm/components/Samples/index.d.ts +0 -2
  721. package/lib-esm/components/Samples/index.js +1 -1
  722. package/lib-esm/components/Samples/use-example-key.d.ts +1 -2
  723. package/lib-esm/components/Samples/use-example-key.js +1 -1
  724. package/lib-esm/components/Schema/ArraySchema.d.ts +3 -2
  725. package/lib-esm/components/Schema/ArraySchema.js +33 -3
  726. package/lib-esm/components/Schema/ObjectSchema.d.ts +2 -2
  727. package/lib-esm/components/Schema/ObjectSchema.js +1 -1
  728. package/lib-esm/components/Schema/OneOfSchema.d.ts +2 -2
  729. package/lib-esm/components/Schema/OneOfSchema.js +9 -1
  730. package/lib-esm/components/Schema/RecursiveSchema.d.ts +2 -2
  731. package/lib-esm/components/Schema/RecursiveSchema.js +1 -1
  732. package/lib-esm/components/Schema/Schema.d.ts +2 -2
  733. package/lib-esm/components/Schema/Schema.js +4 -1
  734. package/lib-esm/components/Schema/SubSchema.d.ts +13 -0
  735. package/lib-esm/components/Schema/SubSchema.js +2 -0
  736. package/lib-esm/components/Schema/helpers.d.ts +5 -0
  737. package/lib-esm/components/Schema/helpers.js +2 -0
  738. package/lib-esm/components/Schema/types.d.ts +11 -1
  739. package/lib-esm/components/Schema/useOneOfLocationIdx.d.ts +2 -0
  740. package/lib-esm/components/Schema/useOneOfLocationIdx.js +2 -0
  741. package/lib-esm/components/SchemaDefinition/SchemaDefinition.d.ts +2 -2
  742. package/lib-esm/components/SchemaDefinition/SchemaDefinition.js +1 -4
  743. package/lib-esm/components/SectionContent/SectionContent.d.ts +2 -10
  744. package/lib-esm/components/SectionContent/SectionContent.js +15 -1
  745. package/lib-esm/components/SectionItem/SectionItem.d.ts +2 -2
  746. package/lib-esm/components/SectionItem/SectionItem.js +1 -1
  747. package/lib-esm/components/Security/Divider.d.ts +3 -0
  748. package/lib-esm/components/Security/Divider.js +15 -0
  749. package/lib-esm/components/Security/OAuthFlow.d.ts +6 -0
  750. package/lib-esm/components/Security/OAuthFlow.js +4 -0
  751. package/lib-esm/components/Security/Security.d.ts +7 -0
  752. package/lib-esm/components/Security/Security.js +2 -0
  753. package/lib-esm/components/Security/SecurityButton.d.ts +10 -0
  754. package/lib-esm/components/Security/SecurityButton.js +28 -0
  755. package/lib-esm/components/Security/SecurityFlow.d.ts +5 -0
  756. package/lib-esm/components/Security/SecurityFlow.js +21 -0
  757. package/lib-esm/components/Security/SecurityModal.d.ts +8 -0
  758. package/lib-esm/components/Security/SecurityModal.js +45 -0
  759. package/lib-esm/components/Security/SecuritySchemeItem.d.ts +7 -0
  760. package/lib-esm/components/Security/SecuritySchemeItem.js +20 -0
  761. package/lib-esm/components/Security/helper.d.ts +2 -0
  762. package/lib-esm/components/Security/helper.js +2 -0
  763. package/lib-esm/components/Security/index.d.ts +1 -0
  764. package/lib-esm/components/Security/index.js +2 -0
  765. package/lib-esm/components/Security/styled.d.ts +2 -0
  766. package/lib-esm/components/Security/styled.js +14 -0
  767. package/lib-esm/components/SelectOrLabel/SelectOrLabel.d.ts +7 -0
  768. package/lib-esm/components/SelectOrLabel/SelectOrLabel.js +8 -0
  769. package/lib-esm/components/SelectOrLabel/index.d.ts +1 -0
  770. package/lib-esm/components/SelectOrLabel/index.js +2 -0
  771. package/lib-esm/components/ServerList/ServerList.d.ts +3 -0
  772. package/lib-esm/components/ServerList/ServerList.js +60 -0
  773. package/lib-esm/components/ServerList/index.d.ts +1 -0
  774. package/lib-esm/components/ServerList/index.js +2 -0
  775. package/lib-esm/components/ServerList/types.d.ts +2 -0
  776. package/lib-esm/components/ServerListDropdown/ServerListDropdown.d.ts +7 -0
  777. package/lib-esm/components/ServerListDropdown/ServerListDropdown.js +2 -0
  778. package/lib-esm/components/ServerListDropdown/index.d.ts +1 -0
  779. package/lib-esm/components/ServerListDropdown/index.js +2 -0
  780. package/lib-esm/components/ServerListDropdown/styled.d.ts +6 -0
  781. package/lib-esm/components/ServerListDropdown/styled.js +23 -0
  782. package/lib-esm/components/SideMenu/SideMenu.d.ts +3 -2
  783. package/lib-esm/components/SideMenu/SideMenu.js +3 -1
  784. package/lib-esm/components/SideMenu/hooks/useMenuItems.d.ts +1 -3
  785. package/lib-esm/components/SideMenu/hooks/useMenuItems.js +1 -1
  786. package/lib-esm/components/SideMenu/index.d.ts +0 -3
  787. package/lib-esm/components/SideMenu/index.js +1 -1
  788. package/lib-esm/components/SideMenu/types.d.ts +1 -15
  789. package/lib-esm/components/StickySidebar/SidebarActions.d.ts +1 -0
  790. package/lib-esm/components/StickySidebar/SidebarActions.js +6 -0
  791. package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.d.ts +2 -3
  792. package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.js +12 -26
  793. package/lib-esm/components/Tabs/Tabs.d.ts +8 -0
  794. package/lib-esm/components/Tabs/Tabs.js +35 -0
  795. package/lib-esm/components/Tabs/index.d.ts +2 -5
  796. package/lib-esm/components/Tabs/index.js +1 -1
  797. package/lib-esm/components/Tabs/useTabsState.d.ts +11 -0
  798. package/lib-esm/components/Tabs/useTabsState.js +2 -0
  799. package/lib-esm/components/TagItem/OperationsNavigation.d.ts +9 -0
  800. package/lib-esm/components/TagItem/OperationsNavigation.js +46 -0
  801. package/lib-esm/components/TagItem/TagItem.d.ts +8 -2
  802. package/lib-esm/components/TagItem/TagItem.js +22 -1
  803. package/lib-esm/components/UnsupportedFeatureScreen/UnsupportedFeatureScreen.d.ts +1 -0
  804. package/lib-esm/components/UnsupportedFeatureScreen/UnsupportedFeatureScreen.js +18 -0
  805. package/lib-esm/components/UnsupportedFeatureScreen/index.d.ts +1 -0
  806. package/lib-esm/components/UnsupportedFeatureScreen/index.js +2 -0
  807. package/lib-esm/components/ViewNested/ViewNested.d.ts +13 -0
  808. package/lib-esm/components/ViewNested/ViewNested.js +31 -0
  809. package/lib-esm/components/ViewNested/index.d.ts +1 -0
  810. package/lib-esm/components/ViewNested/index.js +2 -0
  811. package/lib-esm/components/common/BodyContent/BodyContent.d.ts +12 -0
  812. package/lib-esm/components/common/BodyContent/BodyContent.js +28 -0
  813. package/lib-esm/components/common/BodyContent/index.d.ts +1 -0
  814. package/lib-esm/components/common/BodyContent/index.js +2 -0
  815. package/lib-esm/components/common/ClearButton/ClearButton.d.ts +2 -2
  816. package/lib-esm/components/common/ClearButton/ClearButton.js +1 -1
  817. package/lib-esm/components/common/ClearButton/types.d.ts +2 -2
  818. package/lib-esm/components/common/CodeBlockPanel.d.ts +2 -0
  819. package/lib-esm/components/common/CodeBlockPanel.js +6 -0
  820. package/lib-esm/components/common/ConstraintsView.d.ts +5 -0
  821. package/lib-esm/components/common/ConstraintsView.js +4 -0
  822. package/lib-esm/components/common/Dropdown/Dropdown.d.ts +15 -3
  823. package/lib-esm/components/common/Dropdown/Dropdown.js +26 -15
  824. package/lib-esm/components/common/Dropdown/index.d.ts +2 -2
  825. package/lib-esm/components/common/Dropdown/index.js +1 -1
  826. package/lib-esm/components/common/Extensions.d.ts +7 -0
  827. package/lib-esm/components/common/Extensions.js +4 -0
  828. package/lib-esm/components/common/Fields/fields-layout.js +12 -13
  829. package/lib-esm/components/common/Fields/fields.d.ts +33 -16
  830. package/lib-esm/components/common/Fields/fields.js +45 -64
  831. package/lib-esm/components/common/LinkToField.d.ts +3 -9
  832. package/lib-esm/components/common/LinkToField.js +14 -8
  833. package/lib-esm/components/common/OperationItemTitle.d.ts +2 -0
  834. package/lib-esm/components/common/OperationItemTitle.js +33 -0
  835. package/lib-esm/components/common/SchemaSelection/SchemaSelection.d.ts +12 -0
  836. package/lib-esm/components/common/SchemaSelection/SchemaSelection.js +2 -0
  837. package/lib-esm/components/common/SchemaSelection/index.d.ts +1 -0
  838. package/lib-esm/components/common/SchemaSelection/index.js +2 -0
  839. package/lib-esm/components/common/Select/Select.d.ts +3 -0
  840. package/lib-esm/components/common/Select/Select.js +2 -0
  841. package/lib-esm/components/common/Select/index.d.ts +2 -0
  842. package/lib-esm/components/common/Select/index.js +2 -0
  843. package/lib-esm/components/common/Select/styled.d.ts +23 -0
  844. package/lib-esm/components/common/Select/styled.js +111 -0
  845. package/lib-esm/components/common/Select/types.d.ts +20 -0
  846. package/lib-esm/components/common/Skeleton/LanguageListSkeleton.d.ts +4 -0
  847. package/lib-esm/components/common/Skeleton/LanguageListSkeleton.js +23 -0
  848. package/lib-esm/components/common/Skeleton/Skeleton.d.ts +5 -2
  849. package/lib-esm/components/common/Skeleton/Skeleton.js +7 -5
  850. package/lib-esm/components/common/headers.d.ts +0 -1
  851. package/lib-esm/components/common/headers.js +2 -6
  852. package/lib-esm/components/common/index.d.ts +5 -7
  853. package/lib-esm/components/common/index.js +1 -1
  854. package/lib-esm/components/common/linkify.d.ts +4 -3
  855. package/lib-esm/components/common/linkify.js +13 -4
  856. package/lib-esm/components/common/panels.d.ts +5 -1
  857. package/lib-esm/components/common/panels.js +65 -44
  858. package/lib-esm/components/common/schema.d.ts +3 -5
  859. package/lib-esm/components/common/schema.js +25 -19
  860. package/lib-esm/components/common/styled.d.ts +4 -0
  861. package/lib-esm/components/common/styled.js +27 -0
  862. package/lib-esm/components/index.d.ts +4 -13
  863. package/lib-esm/components/index.js +1 -1
  864. package/lib-esm/components/pluggable/RedocExample.d.ts +2 -2
  865. package/lib-esm/components/pluggable/RedocExample.js +1 -1
  866. package/lib-esm/components/pluggable/RedocSchema.d.ts +2 -2
  867. package/lib-esm/components/pluggable/RedocSchema.js +1 -1
  868. package/lib-esm/components/pluggable/index.d.ts +0 -3
  869. package/lib-esm/components/pluggable/index.js +1 -1
  870. package/lib-esm/components/pluggable/styled.components.d.ts +1 -0
  871. package/lib-esm/components/pluggable/styled.components.js +1 -1
  872. package/lib-esm/constants.d.ts +5 -3
  873. package/lib-esm/constants.js +1 -1
  874. package/lib-esm/events/codeSampleCopy.js +1 -1
  875. package/lib-esm/events/index.d.ts +0 -1
  876. package/lib-esm/events/index.js +1 -1
  877. package/lib-esm/events/types.d.ts +1 -8
  878. package/lib-esm/events/types.js +1 -1
  879. package/lib-esm/hoc/types.d.ts +3 -10
  880. package/lib-esm/hoc/utils.d.ts +2 -2
  881. package/lib-esm/hoc/withRouter.d.ts +2 -2
  882. package/lib-esm/hoc/withRouter.js +1 -1
  883. package/lib-esm/hoc/withStore.d.ts +2 -2
  884. package/lib-esm/hoc/withStore.js +1 -1
  885. package/lib-esm/hooks/index.d.ts +2 -0
  886. package/lib-esm/hooks/index.js +1 -1
  887. package/lib-esm/hooks/useActiveWithFallback.d.ts +3 -0
  888. package/lib-esm/hooks/useActiveWithFallback.js +2 -0
  889. package/lib-esm/hooks/useContentItems.js +1 -1
  890. package/lib-esm/hooks/useRouter.d.ts +3 -3
  891. package/lib-esm/hooks/useUppercase2LowercaseRedirect.d.ts +1 -0
  892. package/lib-esm/hooks/useUppercase2LowercaseRedirect.js +2 -0
  893. package/lib-esm/icons/CSharpIcon/CSharpIcon.d.ts +4 -0
  894. package/lib-esm/icons/CSharpIcon/CSharpIcon.js +2 -0
  895. package/lib-esm/icons/CSharpIcon/index.d.ts +1 -0
  896. package/lib-esm/icons/CSharpIcon/index.js +2 -0
  897. package/lib-esm/icons/CurlIcon/CurlIcon.d.ts +4 -0
  898. package/lib-esm/icons/CurlIcon/CurlIcon.js +2 -0
  899. package/lib-esm/icons/CurlIcon/index.d.ts +1 -0
  900. package/lib-esm/icons/CurlIcon/index.js +2 -0
  901. package/lib-esm/icons/GOIcon/GOIcon.d.ts +4 -0
  902. package/lib-esm/icons/GOIcon/GOIcon.js +2 -0
  903. package/lib-esm/icons/GOIcon/index.d.ts +1 -0
  904. package/lib-esm/icons/GOIcon/index.js +2 -0
  905. package/lib-esm/icons/JavaIcon/JavaIcon.d.ts +4 -0
  906. package/lib-esm/icons/JavaIcon/JavaIcon.js +2 -0
  907. package/lib-esm/icons/JavaIcon/index.d.ts +1 -0
  908. package/lib-esm/icons/JavaIcon/index.js +2 -0
  909. package/lib-esm/icons/JavaScriptIcon/JavaScriptIcon.d.ts +4 -0
  910. package/lib-esm/icons/JavaScriptIcon/JavaScriptIcon.js +2 -0
  911. package/lib-esm/icons/JavaScriptIcon/index.d.ts +1 -0
  912. package/lib-esm/icons/JavaScriptIcon/index.js +2 -0
  913. package/lib-esm/icons/NodeJSIcon/NodeJSIcon.d.ts +4 -0
  914. package/lib-esm/icons/NodeJSIcon/NodeJSIcon.js +2 -0
  915. package/lib-esm/icons/NodeJSIcon/index.d.ts +1 -0
  916. package/lib-esm/icons/NodeJSIcon/index.js +2 -0
  917. package/lib-esm/icons/PHPIcon/PHPIcon.d.ts +4 -0
  918. package/lib-esm/icons/PHPIcon/PHPIcon.js +2 -0
  919. package/lib-esm/icons/PHPIcon/index.d.ts +1 -0
  920. package/lib-esm/icons/PHPIcon/index.js +2 -0
  921. package/lib-esm/icons/PayloadIcon/PayloadIcon.d.ts +4 -0
  922. package/lib-esm/icons/PayloadIcon/PayloadIcon.js +2 -0
  923. package/lib-esm/icons/PayloadIcon/index.d.ts +1 -0
  924. package/lib-esm/icons/PayloadIcon/index.js +2 -0
  925. package/lib-esm/icons/PythonIcon/PythonIcon.d.ts +4 -0
  926. package/lib-esm/icons/PythonIcon/PythonIcon.js +2 -0
  927. package/lib-esm/icons/PythonIcon/index.d.ts +1 -0
  928. package/lib-esm/icons/PythonIcon/index.js +2 -0
  929. package/lib-esm/icons/RIcon/RIcon.d.ts +4 -0
  930. package/lib-esm/icons/RIcon/RIcon.js +2 -0
  931. package/lib-esm/icons/RIcon/index.d.ts +1 -0
  932. package/lib-esm/icons/RIcon/index.js +2 -0
  933. package/lib-esm/icons/RubyIcon/RubyIcon.d.ts +4 -0
  934. package/lib-esm/icons/RubyIcon/RubyIcon.js +2 -0
  935. package/lib-esm/icons/RubyIcon/index.d.ts +1 -0
  936. package/lib-esm/icons/RubyIcon/index.js +2 -0
  937. package/lib-esm/index.d.ts +7 -6
  938. package/lib-esm/index.js +1 -1
  939. package/lib-esm/jotai/app.d.ts +34 -22
  940. package/lib-esm/jotai/app.js +1 -1
  941. package/lib-esm/jotai/operation.d.ts +27 -3
  942. package/lib-esm/jotai/operation.js +1 -1
  943. package/lib-esm/jotai/replay.d.ts +3 -0
  944. package/lib-esm/jotai/replay.js +2 -0
  945. package/lib-esm/jotai/store.d.ts +5 -10
  946. package/lib-esm/jotai/store.js +1 -1
  947. package/lib-esm/models/code-sample-options.d.ts +1 -4
  948. package/lib-esm/models/group.d.ts +2 -2
  949. package/lib-esm/models/group.js +1 -1
  950. package/lib-esm/models/index.d.ts +0 -1
  951. package/lib-esm/models/index.js +1 -1
  952. package/lib-esm/models/mediaContent.js +1 -1
  953. package/lib-esm/models/mediaType.js +1 -1
  954. package/lib-esm/models/operation.js +1 -1
  955. package/lib-esm/models/response.js +1 -1
  956. package/lib-esm/models/schema.js +1 -1
  957. package/lib-esm/models/tab.d.ts +4 -0
  958. package/lib-esm/models/tab.js +2 -0
  959. package/lib-esm/models/types.d.ts +13 -15
  960. package/lib-esm/services/OpenAPIParser.d.ts +1 -2
  961. package/lib-esm/services/OpenAPIParser.js +1 -1
  962. package/lib-esm/services/code-samples/constants.d.ts +2 -0
  963. package/lib-esm/services/code-samples/constants.js +2 -0
  964. package/lib-esm/services/code-samples/generator.d.ts +3 -3
  965. package/lib-esm/services/code-samples/generator.js +1 -1
  966. package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.d.ts +2 -1
  967. package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.js +1 -1
  968. package/lib-esm/services/code-samples/httpsnippet/index.d.ts +1 -1
  969. package/lib-esm/services/code-samples/httpsnippet/targets/__mocks__/mock.js +1 -1
  970. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
  971. package/lib-esm/services/code-samples/httpsnippet/targets/index.d.ts +1 -1
  972. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/index.d.ts +1 -1
  973. package/lib-esm/services/code-samples/types.d.ts +5 -2
  974. package/lib-esm/services/config-options/helpers.d.ts +3 -0
  975. package/lib-esm/services/config-options/helpers.js +2 -0
  976. package/lib-esm/services/config-options/normalizeOptions.d.ts +3 -0
  977. package/lib-esm/services/config-options/normalizeOptions.js +2 -0
  978. package/lib-esm/services/config-options/types.d.ts +54 -0
  979. package/lib-esm/services/history/helpers.d.ts +1 -0
  980. package/lib-esm/services/history/helpers.js +1 -1
  981. package/lib-esm/services/index.d.ts +1 -5
  982. package/lib-esm/services/index.js +1 -1
  983. package/lib-esm/services/menu/builder.d.ts +1 -1
  984. package/lib-esm/services/menu/builder.js +1 -1
  985. package/lib-esm/services/menu/markdown.d.ts +1 -4
  986. package/lib-esm/services/menu/markdown.js +1 -1
  987. package/lib-esm/services/menu/operation.d.ts +2 -5
  988. package/lib-esm/services/menu/operation.js +1 -1
  989. package/lib-esm/services/menu/tags.d.ts +1 -1
  990. package/lib-esm/services/menu/tags.js +1 -1
  991. package/lib-esm/services/types.d.ts +4 -50
  992. package/lib-esm/services/types.js +1 -1
  993. package/lib-esm/services/utils.d.ts +0 -7
  994. package/lib-esm/services/utils.js +1 -1
  995. package/lib-esm/setupTests.js +1 -1
  996. package/lib-esm/standalone.d.ts +2 -6
  997. package/lib-esm/standalone.js +1 -1
  998. package/lib-esm/testProviders.d.ts +2 -6
  999. package/lib-esm/testProviders.js +1 -1
  1000. package/lib-esm/types/index.d.ts +0 -1
  1001. package/lib-esm/types/index.js +1 -1
  1002. package/lib-esm/types/open-api.d.ts +11 -4
  1003. package/lib-esm/utils/argValuesHelpers.d.ts +1 -1
  1004. package/lib-esm/utils/argValuesHelpers.js +1 -1
  1005. package/lib-esm/utils/cookies.d.ts +7 -0
  1006. package/lib-esm/utils/cookies.js +2 -0
  1007. package/lib-esm/utils/dom.d.ts +0 -1
  1008. package/lib-esm/utils/dom.js +1 -1
  1009. package/lib-esm/utils/environments.d.ts +4 -0
  1010. package/lib-esm/utils/environments.js +2 -0
  1011. package/lib-esm/utils/helpers.d.ts +0 -3
  1012. package/lib-esm/utils/helpers.js +1 -1
  1013. package/lib-esm/utils/index.d.ts +2 -2
  1014. package/lib-esm/utils/index.js +1 -1
  1015. package/lib-esm/utils/isMobile.d.ts +5 -0
  1016. package/lib-esm/utils/isMobile.js +2 -0
  1017. package/lib-esm/utils/loadAndBundleSpec.js +1 -1
  1018. package/lib-esm/utils/local-storage.js +1 -1
  1019. package/lib-esm/utils/object.d.ts +1 -0
  1020. package/lib-esm/utils/object.js +1 -1
  1021. package/lib-esm/utils/openapi.d.ts +3 -5
  1022. package/lib-esm/utils/openapi.js +1 -1
  1023. package/lib-esm/utils/path.d.ts +0 -2
  1024. package/lib-esm/utils/path.js +1 -1
  1025. package/lib-esm/utils/replaceVariables.d.ts +2 -0
  1026. package/lib-esm/utils/replaceVariables.js +2 -0
  1027. package/lib-esm/utils/saveTextBeforeHeading.d.ts +1 -1
  1028. package/lib-esm/utils/saveTextBeforeHeading.js +1 -1
  1029. package/lib-esm/utils/security-details.d.ts +1 -5
  1030. package/lib-esm/utils/security-details.js +1 -1
  1031. package/lib-esm/utils/session-storage.js +1 -1
  1032. package/lib-esm/utils/string.d.ts +1 -0
  1033. package/lib-esm/utils/string.js +1 -1
  1034. package/package.json +16 -30
  1035. package/dist/console.redocly-openapi-docs.min.js +0 -425
  1036. package/dist/oauth2-redirect.html +0 -7
  1037. package/dist/oauth2-redirect.js +0 -9
  1038. package/lib/components/ApiInfo/types.d.ts +0 -9
  1039. package/lib/components/CallbackSamples/CallbackReqSamples.d.ts +0 -7
  1040. package/lib/components/CallbackSamples/CallbackReqSamples.js +0 -4
  1041. package/lib/components/ContentItems/useAutoScroll.d.ts +0 -1
  1042. package/lib/components/ContentItems/useAutoScroll.js +0 -2
  1043. package/lib/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +0 -11
  1044. package/lib/components/DiscriminatorDropdown/DiscriminatorDropdown.js +0 -2
  1045. package/lib/components/DiscriminatorDropdown/index.d.ts +0 -1
  1046. package/lib/components/DiscriminatorDropdown/index.js +0 -2
  1047. package/lib/components/Download/DownloadButtonWithLabel.d.ts +0 -3
  1048. package/lib/components/Download/DownloadButtonWithLabel.js +0 -13
  1049. package/lib/components/Download/DownloadLink.d.ts +0 -3
  1050. package/lib/components/Download/DownloadLink.js +0 -4
  1051. package/lib/components/DropdownOrLabel/DropdownOrLabel.d.ts +0 -7
  1052. package/lib/components/DropdownOrLabel/DropdownOrLabel.js +0 -8
  1053. package/lib/components/DropdownOrLabel/index.d.ts +0 -1
  1054. package/lib/components/DropdownOrLabel/index.js +0 -2
  1055. package/lib/components/Endpoint/Endpoint.d.ts +0 -3
  1056. package/lib/components/Endpoint/Endpoint.js +0 -2
  1057. package/lib/components/Endpoint/ServerList.d.ts +0 -3
  1058. package/lib/components/Endpoint/ServerList.js +0 -2
  1059. package/lib/components/Endpoint/Summary.d.ts +0 -3
  1060. package/lib/components/Endpoint/Summary.js +0 -2
  1061. package/lib/components/Endpoint/api-client.d.ts +0 -7
  1062. package/lib/components/Endpoint/api-client.js +0 -2
  1063. package/lib/components/Endpoint/index.d.ts +0 -2
  1064. package/lib/components/Endpoint/index.js +0 -2
  1065. package/lib/components/Endpoint/styled.d.ts +0 -9
  1066. package/lib/components/Endpoint/styled.js +0 -49
  1067. package/lib/components/Endpoint/types.d.ts +0 -21
  1068. package/lib/components/Fields/ConstraintsView.d.ts +0 -5
  1069. package/lib/components/Fields/ConstraintsView.js +0 -2
  1070. package/lib/components/Fields/DescriptionEnums.d.ts +0 -4
  1071. package/lib/components/Fields/DescriptionEnums.js +0 -5
  1072. package/lib/components/Fields/EnumValues.d.ts +0 -3
  1073. package/lib/components/Fields/EnumValues.js +0 -2
  1074. package/lib/components/Fields/Examples.d.ts +0 -6
  1075. package/lib/components/Fields/Examples.js +0 -2
  1076. package/lib/components/Fields/Extensions.d.ts +0 -3
  1077. package/lib/components/Fields/Extensions.js +0 -4
  1078. package/lib/components/Fields/Field.d.ts +0 -5
  1079. package/lib/components/Fields/Field.js +0 -2
  1080. package/lib/components/Fields/FieldDetail.d.ts +0 -8
  1081. package/lib/components/Fields/FieldDetail.js +0 -2
  1082. package/lib/components/Fields/FieldDetails.d.ts +0 -3
  1083. package/lib/components/Fields/FieldDetails.js +0 -2
  1084. package/lib/components/Fields/SimpleEnums.d.ts +0 -4
  1085. package/lib/components/Fields/SimpleEnums.js +0 -2
  1086. package/lib/components/Fields/index.d.ts +0 -4
  1087. package/lib/components/Fields/index.js +0 -2
  1088. package/lib/components/Fields/styled.d.ts +0 -11
  1089. package/lib/components/Fields/styled.js +0 -30
  1090. package/lib/components/Fields/types.d.ts +0 -40
  1091. package/lib/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +0 -10
  1092. package/lib/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +0 -2
  1093. package/lib/components/GenericChildrenSwitcher/index.d.ts +0 -1
  1094. package/lib/components/GenericChildrenSwitcher/index.js +0 -2
  1095. package/lib/components/Loading/Loading.d.ts +0 -5
  1096. package/lib/components/Loading/Loading.js +0 -9
  1097. package/lib/components/Loading/index.d.ts +0 -1
  1098. package/lib/components/Loading/index.js +0 -2
  1099. package/lib/components/Markdown/styled.d.ts +0 -4
  1100. package/lib/components/Markdown/styled.js +0 -2
  1101. package/lib/components/NextSectionButton/NextSectionButton.d.ts +0 -9
  1102. package/lib/components/NextSectionButton/NextSectionButton.js +0 -2
  1103. package/lib/components/NextSectionButton/index.d.ts +0 -1
  1104. package/lib/components/NextSectionButton/index.js +0 -2
  1105. package/lib/components/OperationParameters/OperationParameters.d.ts +0 -3
  1106. package/lib/components/OperationParameters/OperationParameters.js +0 -2
  1107. package/lib/components/OperationParameters/index.d.ts +0 -1
  1108. package/lib/components/OperationParameters/index.js +0 -2
  1109. package/lib/components/OperationParameters/types.d.ts +0 -13
  1110. package/lib/components/OperationParameters/types.js +0 -2
  1111. package/lib/components/OperationParameters/utils.d.ts +0 -8
  1112. package/lib/components/OperationParameters/utils.js +0 -2
  1113. package/lib/components/Panel/Accordion.d.ts +0 -5
  1114. package/lib/components/Panel/Accordion.js +0 -2
  1115. package/lib/components/Panel/CodeHeader.d.ts +0 -2
  1116. package/lib/components/Panel/CodeHeader.js +0 -15
  1117. package/lib/components/Panel/CodePanel.d.ts +0 -4
  1118. package/lib/components/Panel/CodePanel.js +0 -2
  1119. package/lib/components/Panel/MiddlePanelWrapper.d.ts +0 -1
  1120. package/lib/components/Panel/MiddlePanelWrapper.js +0 -22
  1121. package/lib/components/Parameters/BodyContent.d.ts +0 -9
  1122. package/lib/components/Parameters/BodyContent.js +0 -4
  1123. package/lib/components/Parameters/DropdownWithinHeader.d.ts +0 -5
  1124. package/lib/components/Parameters/DropdownWithinHeader.js +0 -7
  1125. package/lib/components/Parameters/Parameters.d.ts +0 -7
  1126. package/lib/components/Parameters/Parameters.js +0 -2
  1127. package/lib/components/Parameters/ParametersGroup.d.ts +0 -9
  1128. package/lib/components/Parameters/ParametersGroup.js +0 -16
  1129. package/lib/components/Parameters/index.d.ts +0 -2
  1130. package/lib/components/Parameters/index.js +0 -2
  1131. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.d.ts +0 -3
  1132. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.js +0 -2
  1133. package/lib/components/Responses/Response.d.ts +0 -3
  1134. package/lib/components/Responses/Response.js +0 -2
  1135. package/lib/components/Responses/ResponseSummary.d.ts +0 -3
  1136. package/lib/components/Responses/ResponseSummary.js +0 -15
  1137. package/lib/components/Responses/ResponsesList.d.ts +0 -3
  1138. package/lib/components/Responses/ResponsesList.js +0 -2
  1139. package/lib/components/Samples/LoadingWrapper.d.ts +0 -1
  1140. package/lib/components/Samples/LoadingWrapper.js +0 -8
  1141. package/lib/components/Samples/SamplesTabs.d.ts +0 -14
  1142. package/lib/components/Samples/SamplesTabs.js +0 -2
  1143. package/lib/components/Search/MenuItemSearch.d.ts +0 -3
  1144. package/lib/components/Search/MenuItemSearch.js +0 -2
  1145. package/lib/components/Search/Search.d.ts +0 -3
  1146. package/lib/components/Search/Search.js +0 -2
  1147. package/lib/components/Search/SearchBox.d.ts +0 -3
  1148. package/lib/components/Search/SearchBox.js +0 -2
  1149. package/lib/components/Search/SearchField.d.ts +0 -10
  1150. package/lib/components/Search/SearchField.js +0 -2
  1151. package/lib/components/Search/index.d.ts +0 -3
  1152. package/lib/components/Search/index.js +0 -2
  1153. package/lib/components/Search/styled.d.ts +0 -24
  1154. package/lib/components/Search/styled.js +0 -145
  1155. package/lib/components/Search/types.d.ts +0 -42
  1156. package/lib/components/Search/utils.d.ts +0 -11
  1157. package/lib/components/Search/utils.js +0 -2
  1158. package/lib/components/SecurityRequirement/PanelDescription.d.ts +0 -3
  1159. package/lib/components/SecurityRequirement/PanelDescription.js +0 -4
  1160. package/lib/components/SecurityRequirement/RequiredScopesRow.d.ts +0 -4
  1161. package/lib/components/SecurityRequirement/RequiredScopesRow.js +0 -2
  1162. package/lib/components/SecurityRequirement/RequirementElement.d.ts +0 -3
  1163. package/lib/components/SecurityRequirement/RequirementElement.js +0 -24
  1164. package/lib/components/SecurityRequirement/SecurityDefs.d.ts +0 -2
  1165. package/lib/components/SecurityRequirement/SecurityDefs.js +0 -4
  1166. package/lib/components/SecurityRequirement/SecurityRequirement.d.ts +0 -3
  1167. package/lib/components/SecurityRequirement/SecurityRequirement.js +0 -24
  1168. package/lib/components/SecurityRequirement/constants.d.ts +0 -6
  1169. package/lib/components/SecurityRequirement/constants.js +0 -2
  1170. package/lib/components/SecurityRequirement/index.d.ts +0 -3
  1171. package/lib/components/SecurityRequirement/index.js +0 -2
  1172. package/lib/components/SecurityRequirement/styled.d.ts +0 -1
  1173. package/lib/components/SecurityRequirement/styled.js +0 -4
  1174. package/lib/components/SecurityRequirement/types.d.ts +0 -19
  1175. package/lib/components/SecurityRequirement/useSecurityRequirements.d.ts +0 -3
  1176. package/lib/components/SecurityRequirement/useSecurityRequirements.js +0 -2
  1177. package/lib/components/SecuritySchemes/OAuthFlow.d.ts +0 -3
  1178. package/lib/components/SecuritySchemes/OAuthFlow.js +0 -2
  1179. package/lib/components/SecuritySchemes/helpers.d.ts +0 -34
  1180. package/lib/components/SecuritySchemes/helpers.js +0 -2
  1181. package/lib/components/SecuritySchemes/index.d.ts +0 -2
  1182. package/lib/components/SecuritySchemes/index.js +0 -2
  1183. package/lib/components/SecuritySchemes/types.d.ts +0 -5
  1184. package/lib/components/SecuritySchemes/types.js +0 -2
  1185. package/lib/components/SeeMore/SeeMore.d.ts +0 -7
  1186. package/lib/components/SeeMore/SeeMore.js +0 -10
  1187. package/lib/components/SeeMore/index.d.ts +0 -1
  1188. package/lib/components/SeeMore/index.js +0 -2
  1189. package/lib/components/SideMenu/Actions.d.ts +0 -2
  1190. package/lib/components/SideMenu/Actions.js +0 -5
  1191. package/lib/components/SideMenu/MenuItem.d.ts +0 -13
  1192. package/lib/components/SideMenu/MenuItem.js +0 -2
  1193. package/lib/components/SideMenu/MenuItemEternalLink.d.ts +0 -5
  1194. package/lib/components/SideMenu/MenuItemEternalLink.js +0 -2
  1195. package/lib/components/SideMenu/MenuItemLink.d.ts +0 -3
  1196. package/lib/components/SideMenu/MenuItemLink.js +0 -2
  1197. package/lib/components/SideMenu/MenuItems.d.ts +0 -3
  1198. package/lib/components/SideMenu/MenuItems.js +0 -2
  1199. package/lib/components/SideMenu/MenuOperationItemContent.d.ts +0 -9
  1200. package/lib/components/SideMenu/MenuOperationItemContent.js +0 -8
  1201. package/lib/components/SideMenu/hooks/index.d.ts +0 -2
  1202. package/lib/components/SideMenu/hooks/index.js +0 -2
  1203. package/lib/components/SideMenu/hooks/useMenuItemExpanded.d.ts +0 -3
  1204. package/lib/components/SideMenu/hooks/useMenuItemExpanded.js +0 -2
  1205. package/lib/components/SideMenu/styled.d.ts +0 -29
  1206. package/lib/components/SideMenu/styled.js +0 -97
  1207. package/lib/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +0 -3
  1208. package/lib/components/SourceCodeWithFile/SourceCodeWithFile.js +0 -2
  1209. package/lib/components/SourceCodeWithFile/index.d.ts +0 -1
  1210. package/lib/components/SourceCodeWithFile/index.js +0 -2
  1211. package/lib/components/Tabs/CollapsingTabs/CollapsingTab.d.ts +0 -2
  1212. package/lib/components/Tabs/CollapsingTabs/CollapsingTab.js +0 -11
  1213. package/lib/components/Tabs/CollapsingTabs/CollapsingTabList.d.ts +0 -2
  1214. package/lib/components/Tabs/CollapsingTabs/CollapsingTabList.js +0 -12
  1215. package/lib/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +0 -3
  1216. package/lib/components/Tabs/CollapsingTabs/CollapsingTabs.js +0 -2
  1217. package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +0 -19
  1218. package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +0 -2
  1219. package/lib/components/Tabs/CollapsingTabs/index.d.ts +0 -4
  1220. package/lib/components/Tabs/CollapsingTabs/index.js +0 -2
  1221. package/lib/components/Tabs/Tab.d.ts +0 -2
  1222. package/lib/components/Tabs/Tab.js +0 -28
  1223. package/lib/components/Tabs/TabList.d.ts +0 -2
  1224. package/lib/components/Tabs/TabList.js +0 -7
  1225. package/lib/components/Tabs/TabPanel.d.ts +0 -2
  1226. package/lib/components/Tabs/TabPanel.js +0 -11
  1227. package/lib/components/TagItems/TagItems.d.ts +0 -14
  1228. package/lib/components/TagItems/TagItems.js +0 -2
  1229. package/lib/components/TagItems/index.d.ts +0 -1
  1230. package/lib/components/TagItems/index.js +0 -2
  1231. package/lib/components/VersionSwitcher.d.ts +0 -9
  1232. package/lib/components/VersionSwitcher.js +0 -7
  1233. package/lib/components/common/Checkbox.d.ts +0 -10
  1234. package/lib/components/common/Checkbox.js +0 -31
  1235. package/lib/components/common/CheckboxList.d.ts +0 -14
  1236. package/lib/components/common/CheckboxList.js +0 -8
  1237. package/lib/components/common/Dropdown/styled.d.ts +0 -28
  1238. package/lib/components/common/Dropdown/styled.js +0 -133
  1239. package/lib/components/common/Dropdown/types.d.ts +0 -25
  1240. package/lib/components/common/Dropdown/types.js +0 -2
  1241. package/lib/components/common/FileUpload/FileUpload.d.ts +0 -9
  1242. package/lib/components/common/FileUpload/FileUpload.js +0 -2
  1243. package/lib/components/common/FileUpload/helper.d.ts +0 -11
  1244. package/lib/components/common/FileUpload/helper.js +0 -2
  1245. package/lib/components/common/FileUpload/index.d.ts +0 -1
  1246. package/lib/components/common/FileUpload/index.js +0 -2
  1247. package/lib/components/common/LinearProgress.d.ts +0 -2
  1248. package/lib/components/common/LinearProgress.js +0 -104
  1249. package/lib/components/common/Portal/Portal.d.ts +0 -7
  1250. package/lib/components/common/Portal/Portal.js +0 -2
  1251. package/lib/components/common/Portal/index.d.ts +0 -1
  1252. package/lib/components/common/Portal/index.js +0 -2
  1253. package/lib/components/common/TextField.d.ts +0 -35
  1254. package/lib/components/common/TextField.js +0 -50
  1255. package/lib/components/common/form.d.ts +0 -17
  1256. package/lib/components/common/form.js +0 -64
  1257. package/lib/components/common/perfect-scrollbar.d.ts +0 -18
  1258. package/lib/components/common/perfect-scrollbar.js +0 -4
  1259. package/lib/components/common/shelfs.d.ts +0 -3
  1260. package/lib/components/common/shelfs.js +0 -23
  1261. package/lib/components/icons/CrossIcon.d.ts +0 -5
  1262. package/lib/components/icons/CrossIcon.js +0 -11
  1263. package/lib/components/icons/FileIcon.d.ts +0 -5
  1264. package/lib/components/icons/FileIcon.js +0 -9
  1265. package/lib/components/icons/LinkIcon.d.ts +0 -5
  1266. package/lib/components/icons/LinkIcon.js +0 -11
  1267. package/lib/components/icons/LockIcon.d.ts +0 -3
  1268. package/lib/components/icons/LockIcon.js +0 -12
  1269. package/lib/components/icons/SearchIcon.d.ts +0 -6
  1270. package/lib/components/icons/SearchIcon.js +0 -11
  1271. package/lib/components/icons/ShelfIcon.d.ts +0 -3
  1272. package/lib/components/icons/ShelfIcon.js +0 -12
  1273. package/lib/components/icons/Spinner.d.ts +0 -3
  1274. package/lib/components/icons/Spinner.js +0 -19
  1275. package/lib/components/icons/index.d.ts +0 -8
  1276. package/lib/components/icons/index.js +0 -2
  1277. package/lib/components/icons/types.d.ts +0 -10
  1278. package/lib/components/icons/types.js +0 -2
  1279. package/lib/components/pluggable/PullRight.d.ts +0 -4
  1280. package/lib/components/pluggable/PullRight.js +0 -7
  1281. package/lib/components/pluggable/RedocRequestBody.d.ts +0 -7
  1282. package/lib/components/pluggable/RedocRequestBody.js +0 -2
  1283. package/lib/components/pluggable/RedocResponse.d.ts +0 -6
  1284. package/lib/components/pluggable/RedocResponse.js +0 -2
  1285. package/lib/components/rightPanel/ActionPanel.d.ts +0 -11
  1286. package/lib/components/rightPanel/ActionPanel.js +0 -4
  1287. package/lib/components/rightPanel/AuthPanel/AuthPanel.d.ts +0 -3
  1288. package/lib/components/rightPanel/AuthPanel/AuthPanel.js +0 -2
  1289. package/lib/components/rightPanel/AuthPanel/index.d.ts +0 -2
  1290. package/lib/components/rightPanel/AuthPanel/index.js +0 -2
  1291. package/lib/components/rightPanel/AuthPanel/types.d.ts +0 -11
  1292. package/lib/components/rightPanel/AuthPanel/types.js +0 -2
  1293. package/lib/components/rightPanel/CodemirrorInput/CodemirrorInput.d.ts +0 -4
  1294. package/lib/components/rightPanel/CodemirrorInput/CodemirrorInput.js +0 -2
  1295. package/lib/components/rightPanel/CodemirrorInput/helpers.d.ts +0 -6
  1296. package/lib/components/rightPanel/CodemirrorInput/helpers.js +0 -2
  1297. package/lib/components/rightPanel/CodemirrorInput/index.d.ts +0 -1
  1298. package/lib/components/rightPanel/CodemirrorInput/index.js +0 -2
  1299. package/lib/components/rightPanel/CodemirrorInput/styled.d.ts +0 -2
  1300. package/lib/components/rightPanel/CodemirrorInput/styled.js +0 -53
  1301. package/lib/components/rightPanel/CodemirrorInput/types.d.ts +0 -11
  1302. package/lib/components/rightPanel/CodemirrorInput/types.js +0 -2
  1303. package/lib/components/rightPanel/Console/Console.d.ts +0 -3
  1304. package/lib/components/rightPanel/Console/Console.js +0 -2
  1305. package/lib/components/rightPanel/Console/ConsoleLazy.d.ts +0 -3
  1306. package/lib/components/rightPanel/Console/ConsoleLazy.js +0 -2
  1307. package/lib/components/rightPanel/Console/ConsoleWrapper.d.ts +0 -9
  1308. package/lib/components/rightPanel/Console/ConsoleWrapper.js +0 -2
  1309. package/lib/components/rightPanel/Console/Request.d.ts +0 -3
  1310. package/lib/components/rightPanel/Console/Request.js +0 -2
  1311. package/lib/components/rightPanel/Console/index.d.ts +0 -1
  1312. package/lib/components/rightPanel/Console/index.js +0 -2
  1313. package/lib/components/rightPanel/Console/shallowCopyForTryIt.d.ts +0 -2
  1314. package/lib/components/rightPanel/Console/shallowCopyForTryIt.js +0 -2
  1315. package/lib/components/rightPanel/Console/types.d.ts +0 -26
  1316. package/lib/components/rightPanel/Console/types.js +0 -2
  1317. package/lib/components/rightPanel/ConsoleTabs/ConsoleTabs.d.ts +0 -7
  1318. package/lib/components/rightPanel/ConsoleTabs/ConsoleTabs.js +0 -2
  1319. package/lib/components/rightPanel/ConsoleTabs/index.d.ts +0 -2
  1320. package/lib/components/rightPanel/ConsoleTabs/index.js +0 -2
  1321. package/lib/components/rightPanel/ConsoleTabs/styled.d.ts +0 -5
  1322. package/lib/components/rightPanel/ConsoleTabs/styled.js +0 -38
  1323. package/lib/components/rightPanel/OAuth2Flow/Error.d.ts +0 -8
  1324. package/lib/components/rightPanel/OAuth2Flow/Error.js +0 -2
  1325. package/lib/components/rightPanel/OAuth2Flow/OAuth2Flow.d.ts +0 -3
  1326. package/lib/components/rightPanel/OAuth2Flow/OAuth2Flow.js +0 -2
  1327. package/lib/components/rightPanel/OAuth2Flow/index.d.ts +0 -2
  1328. package/lib/components/rightPanel/OAuth2Flow/index.js +0 -2
  1329. package/lib/components/rightPanel/OAuth2Flow/styled.d.ts +0 -4
  1330. package/lib/components/rightPanel/OAuth2Flow/styled.js +0 -14
  1331. package/lib/components/rightPanel/OAuth2Flow/types.d.ts +0 -17
  1332. package/lib/components/rightPanel/OAuth2Flow/types.js +0 -2
  1333. package/lib/components/rightPanel/OAuth2TokenInput.d.ts +0 -16
  1334. package/lib/components/rightPanel/OAuth2TokenInput.js +0 -2
  1335. package/lib/components/rightPanel/OpenIDConnect.d.ts +0 -15
  1336. package/lib/components/rightPanel/OpenIDConnect.js +0 -2
  1337. package/lib/components/rightPanel/ParameterArray.d.ts +0 -10
  1338. package/lib/components/rightPanel/ParameterArray.js +0 -30
  1339. package/lib/components/rightPanel/ParameterDropdown.d.ts +0 -8
  1340. package/lib/components/rightPanel/ParameterDropdown.js +0 -2
  1341. package/lib/components/rightPanel/RequestBody/Body.d.ts +0 -3
  1342. package/lib/components/rightPanel/RequestBody/Body.js +0 -2
  1343. package/lib/components/rightPanel/RequestBody/RequestBody.d.ts +0 -3
  1344. package/lib/components/rightPanel/RequestBody/RequestBody.js +0 -2
  1345. package/lib/components/rightPanel/RequestBody/index.d.ts +0 -2
  1346. package/lib/components/rightPanel/RequestBody/index.js +0 -2
  1347. package/lib/components/rightPanel/RequestBody/types.d.ts +0 -16
  1348. package/lib/components/rightPanel/RequestBody/types.js +0 -2
  1349. package/lib/components/rightPanel/RequestBodyForm.d.ts +0 -9
  1350. package/lib/components/rightPanel/RequestBodyForm.js +0 -10
  1351. package/lib/components/rightPanel/RequestMimeLabel.d.ts +0 -1
  1352. package/lib/components/rightPanel/RequestMimeLabel.js +0 -5
  1353. package/lib/components/rightPanel/ResponseBody.d.ts +0 -5
  1354. package/lib/components/rightPanel/ResponseBody.js +0 -2
  1355. package/lib/components/rightPanel/ResponseHeadersList.d.ts +0 -4
  1356. package/lib/components/rightPanel/ResponseHeadersList.js +0 -10
  1357. package/lib/components/rightPanel/ResponsePanel.d.ts +0 -10
  1358. package/lib/components/rightPanel/ResponsePanel.js +0 -18
  1359. package/lib/components/rightPanel/Scope.d.ts +0 -7
  1360. package/lib/components/rightPanel/Scope.js +0 -2
  1361. package/lib/components/rightPanel/ServerVariable.d.ts +0 -11
  1362. package/lib/components/rightPanel/ServerVariable.js +0 -5
  1363. package/lib/components/rightPanel/ServersDropdown/ServersDropdown.d.ts +0 -3
  1364. package/lib/components/rightPanel/ServersDropdown/ServersDropdown.js +0 -4
  1365. package/lib/components/rightPanel/ServersDropdown/index.d.ts +0 -1
  1366. package/lib/components/rightPanel/ServersDropdown/index.js +0 -2
  1367. package/lib/components/rightPanel/ServersDropdown/types.d.ts +0 -6
  1368. package/lib/components/rightPanel/ServersDropdown/types.js +0 -2
  1369. package/lib/components/rightPanel/TryItPanel.d.ts +0 -7
  1370. package/lib/components/rightPanel/TryItPanel.js +0 -14
  1371. package/lib/components/rightPanel/styled.d.ts +0 -16
  1372. package/lib/components/rightPanel/styled.js +0 -76
  1373. package/lib/components/rightPanel/types.d.ts +0 -10
  1374. package/lib/components/rightPanel/types.js +0 -2
  1375. package/lib/components/rightPanel/utils.d.ts +0 -28
  1376. package/lib/components/rightPanel/utils.js +0 -2
  1377. package/lib/components/shared/HttpVerb.d.ts +0 -2
  1378. package/lib/components/shared/HttpVerb.js +0 -4
  1379. package/lib/components/shared/MimeLabel.d.ts +0 -1
  1380. package/lib/components/shared/MimeLabel.js +0 -12
  1381. package/lib/components/shared/NoSampleLabel.d.ts +0 -2
  1382. package/lib/components/shared/NoSampleLabel.js +0 -10
  1383. package/lib/components/shared/index.d.ts +0 -3
  1384. package/lib/components/shared/index.js +0 -2
  1385. package/lib/events/serverSwitch.d.ts +0 -2
  1386. package/lib/events/serverSwitch.js +0 -2
  1387. package/lib/models/file-upload.d.ts +0 -11
  1388. package/lib/models/file-upload.js +0 -2
  1389. package/lib/oauth2-redirect-page/handler/helpers.d.ts +0 -6
  1390. package/lib/oauth2-redirect-page/handler/helpers.js +0 -2
  1391. package/lib/oauth2-redirect-page/handler/oauth2-redirect-handler.d.ts +0 -1
  1392. package/lib/oauth2-redirect-page/handler/oauth2-redirect-handler.js +0 -2
  1393. package/lib/oauth2-redirect-page/index.d.ts +0 -1
  1394. package/lib/oauth2-redirect-page/index.js +0 -2
  1395. package/lib/services/MarkerService.d.ts +0 -11
  1396. package/lib/services/MarkerService.js +0 -2
  1397. package/lib/services/OAuth2.d.ts +0 -43
  1398. package/lib/services/OAuth2.js +0 -2
  1399. package/lib/services/OpenIDConnect.d.ts +0 -38
  1400. package/lib/services/OpenIDConnect.js +0 -2
  1401. package/lib/services/Options/helpers.d.ts +0 -8
  1402. package/lib/services/Options/helpers.js +0 -2
  1403. package/lib/services/Options/normalizeOptions.d.ts +0 -2
  1404. package/lib/services/Options/normalizeOptions.js +0 -2
  1405. package/lib/services/Options/types.d.ts +0 -279
  1406. package/lib/services/Options/types.js +0 -2
  1407. package/lib/services/labels/LabelsService.d.ts +0 -3
  1408. package/lib/services/labels/LabelsService.js +0 -2
  1409. package/lib/services/labels/index.d.ts +0 -2
  1410. package/lib/services/labels/index.js +0 -2
  1411. package/lib/services/labels/types.d.ts +0 -29
  1412. package/lib/services/labels/types.js +0 -2
  1413. package/lib/services/menu/helpers.d.ts +0 -6
  1414. package/lib/services/menu/helpers.js +0 -2
  1415. package/lib/services/search/DeepSearchStore.d.ts +0 -19
  1416. package/lib/services/search/DeepSearchStore.js +0 -2
  1417. package/lib/services/search/RemoteSearch.d.ts +0 -17
  1418. package/lib/services/search/RemoteSearch.js +0 -2
  1419. package/lib/services/search/SearchStore.d.ts +0 -14
  1420. package/lib/services/search/SearchStore.js +0 -2
  1421. package/lib/services/search/SearchWorker.worker.d.ts +0 -17
  1422. package/lib/services/search/SearchWorker.worker.js +0 -2
  1423. package/lib/services/search/index.d.ts +0 -4
  1424. package/lib/services/search/index.js +0 -2
  1425. package/lib/services/search/types.d.ts +0 -15
  1426. package/lib/services/search/types.js +0 -2
  1427. package/lib/services/search/useSearch.d.ts +0 -13
  1428. package/lib/services/search/useSearch.js +0 -2
  1429. package/lib/types/server.d.ts +0 -7
  1430. package/lib/types/server.js +0 -2
  1431. package/lib/utils/media-css.d.ts +0 -8
  1432. package/lib/utils/media-css.js +0 -2
  1433. package/lib/utils/typeGuards.d.ts +0 -5
  1434. package/lib/utils/typeGuards.js +0 -2
  1435. package/lib-esm/components/ApiInfo/types.d.ts +0 -9
  1436. package/lib-esm/components/CallbackSamples/CallbackReqSamples.d.ts +0 -7
  1437. package/lib-esm/components/CallbackSamples/CallbackReqSamples.js +0 -4
  1438. package/lib-esm/components/ContentItems/useAutoScroll.d.ts +0 -1
  1439. package/lib-esm/components/ContentItems/useAutoScroll.js +0 -2
  1440. package/lib-esm/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +0 -11
  1441. package/lib-esm/components/DiscriminatorDropdown/DiscriminatorDropdown.js +0 -2
  1442. package/lib-esm/components/DiscriminatorDropdown/index.d.ts +0 -1
  1443. package/lib-esm/components/DiscriminatorDropdown/index.js +0 -2
  1444. package/lib-esm/components/Download/DownloadButtonWithLabel.d.ts +0 -3
  1445. package/lib-esm/components/Download/DownloadButtonWithLabel.js +0 -13
  1446. package/lib-esm/components/Download/DownloadLink.d.ts +0 -3
  1447. package/lib-esm/components/Download/DownloadLink.js +0 -4
  1448. package/lib-esm/components/DropdownOrLabel/DropdownOrLabel.d.ts +0 -7
  1449. package/lib-esm/components/DropdownOrLabel/DropdownOrLabel.js +0 -8
  1450. package/lib-esm/components/DropdownOrLabel/index.d.ts +0 -1
  1451. package/lib-esm/components/DropdownOrLabel/index.js +0 -2
  1452. package/lib-esm/components/Endpoint/Endpoint.d.ts +0 -3
  1453. package/lib-esm/components/Endpoint/Endpoint.js +0 -2
  1454. package/lib-esm/components/Endpoint/ServerList.d.ts +0 -3
  1455. package/lib-esm/components/Endpoint/ServerList.js +0 -2
  1456. package/lib-esm/components/Endpoint/Summary.d.ts +0 -3
  1457. package/lib-esm/components/Endpoint/Summary.js +0 -2
  1458. package/lib-esm/components/Endpoint/api-client.d.ts +0 -7
  1459. package/lib-esm/components/Endpoint/api-client.js +0 -2
  1460. package/lib-esm/components/Endpoint/index.d.ts +0 -2
  1461. package/lib-esm/components/Endpoint/index.js +0 -2
  1462. package/lib-esm/components/Endpoint/styled.d.ts +0 -9
  1463. package/lib-esm/components/Endpoint/styled.js +0 -49
  1464. package/lib-esm/components/Endpoint/types.d.ts +0 -21
  1465. package/lib-esm/components/Fields/ConstraintsView.d.ts +0 -5
  1466. package/lib-esm/components/Fields/ConstraintsView.js +0 -2
  1467. package/lib-esm/components/Fields/DescriptionEnums.d.ts +0 -4
  1468. package/lib-esm/components/Fields/DescriptionEnums.js +0 -5
  1469. package/lib-esm/components/Fields/EnumValues.d.ts +0 -3
  1470. package/lib-esm/components/Fields/EnumValues.js +0 -2
  1471. package/lib-esm/components/Fields/Examples.d.ts +0 -6
  1472. package/lib-esm/components/Fields/Examples.js +0 -2
  1473. package/lib-esm/components/Fields/Extensions.d.ts +0 -3
  1474. package/lib-esm/components/Fields/Extensions.js +0 -4
  1475. package/lib-esm/components/Fields/Field.d.ts +0 -5
  1476. package/lib-esm/components/Fields/Field.js +0 -2
  1477. package/lib-esm/components/Fields/FieldDetail.d.ts +0 -8
  1478. package/lib-esm/components/Fields/FieldDetail.js +0 -2
  1479. package/lib-esm/components/Fields/FieldDetails.d.ts +0 -3
  1480. package/lib-esm/components/Fields/FieldDetails.js +0 -2
  1481. package/lib-esm/components/Fields/SimpleEnums.d.ts +0 -4
  1482. package/lib-esm/components/Fields/SimpleEnums.js +0 -2
  1483. package/lib-esm/components/Fields/index.d.ts +0 -4
  1484. package/lib-esm/components/Fields/index.js +0 -2
  1485. package/lib-esm/components/Fields/styled.d.ts +0 -11
  1486. package/lib-esm/components/Fields/styled.js +0 -30
  1487. package/lib-esm/components/Fields/types.d.ts +0 -40
  1488. package/lib-esm/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +0 -10
  1489. package/lib-esm/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +0 -2
  1490. package/lib-esm/components/GenericChildrenSwitcher/index.d.ts +0 -1
  1491. package/lib-esm/components/GenericChildrenSwitcher/index.js +0 -2
  1492. package/lib-esm/components/Loading/Loading.d.ts +0 -5
  1493. package/lib-esm/components/Loading/Loading.js +0 -9
  1494. package/lib-esm/components/Loading/index.d.ts +0 -1
  1495. package/lib-esm/components/Loading/index.js +0 -2
  1496. package/lib-esm/components/Markdown/styled.d.ts +0 -4
  1497. package/lib-esm/components/Markdown/styled.js +0 -2
  1498. package/lib-esm/components/NextSectionButton/NextSectionButton.d.ts +0 -9
  1499. package/lib-esm/components/NextSectionButton/NextSectionButton.js +0 -2
  1500. package/lib-esm/components/NextSectionButton/index.d.ts +0 -1
  1501. package/lib-esm/components/NextSectionButton/index.js +0 -2
  1502. package/lib-esm/components/OperationParameters/OperationParameters.d.ts +0 -3
  1503. package/lib-esm/components/OperationParameters/OperationParameters.js +0 -2
  1504. package/lib-esm/components/OperationParameters/index.d.ts +0 -1
  1505. package/lib-esm/components/OperationParameters/index.js +0 -2
  1506. package/lib-esm/components/OperationParameters/types.d.ts +0 -13
  1507. package/lib-esm/components/OperationParameters/types.js +0 -2
  1508. package/lib-esm/components/OperationParameters/utils.d.ts +0 -8
  1509. package/lib-esm/components/OperationParameters/utils.js +0 -2
  1510. package/lib-esm/components/Panel/Accordion.d.ts +0 -5
  1511. package/lib-esm/components/Panel/Accordion.js +0 -2
  1512. package/lib-esm/components/Panel/CodeHeader.d.ts +0 -2
  1513. package/lib-esm/components/Panel/CodeHeader.js +0 -15
  1514. package/lib-esm/components/Panel/CodePanel.d.ts +0 -4
  1515. package/lib-esm/components/Panel/CodePanel.js +0 -2
  1516. package/lib-esm/components/Panel/MiddlePanelWrapper.d.ts +0 -1
  1517. package/lib-esm/components/Panel/MiddlePanelWrapper.js +0 -22
  1518. package/lib-esm/components/Parameters/BodyContent.d.ts +0 -9
  1519. package/lib-esm/components/Parameters/BodyContent.js +0 -4
  1520. package/lib-esm/components/Parameters/DropdownWithinHeader.d.ts +0 -5
  1521. package/lib-esm/components/Parameters/DropdownWithinHeader.js +0 -7
  1522. package/lib-esm/components/Parameters/Parameters.d.ts +0 -7
  1523. package/lib-esm/components/Parameters/Parameters.js +0 -2
  1524. package/lib-esm/components/Parameters/ParametersGroup.d.ts +0 -9
  1525. package/lib-esm/components/Parameters/ParametersGroup.js +0 -16
  1526. package/lib-esm/components/Parameters/index.d.ts +0 -2
  1527. package/lib-esm/components/Parameters/index.js +0 -2
  1528. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.d.ts +0 -3
  1529. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.js +0 -2
  1530. package/lib-esm/components/Responses/Response.d.ts +0 -3
  1531. package/lib-esm/components/Responses/Response.js +0 -2
  1532. package/lib-esm/components/Responses/ResponseSummary.d.ts +0 -3
  1533. package/lib-esm/components/Responses/ResponseSummary.js +0 -15
  1534. package/lib-esm/components/Responses/ResponsesList.d.ts +0 -3
  1535. package/lib-esm/components/Responses/ResponsesList.js +0 -2
  1536. package/lib-esm/components/Samples/LoadingWrapper.d.ts +0 -1
  1537. package/lib-esm/components/Samples/LoadingWrapper.js +0 -8
  1538. package/lib-esm/components/Samples/SamplesTabs.d.ts +0 -14
  1539. package/lib-esm/components/Samples/SamplesTabs.js +0 -2
  1540. package/lib-esm/components/Search/MenuItemSearch.d.ts +0 -3
  1541. package/lib-esm/components/Search/MenuItemSearch.js +0 -2
  1542. package/lib-esm/components/Search/Search.d.ts +0 -3
  1543. package/lib-esm/components/Search/Search.js +0 -2
  1544. package/lib-esm/components/Search/SearchBox.d.ts +0 -3
  1545. package/lib-esm/components/Search/SearchBox.js +0 -2
  1546. package/lib-esm/components/Search/SearchField.d.ts +0 -10
  1547. package/lib-esm/components/Search/SearchField.js +0 -2
  1548. package/lib-esm/components/Search/index.d.ts +0 -3
  1549. package/lib-esm/components/Search/index.js +0 -2
  1550. package/lib-esm/components/Search/styled.d.ts +0 -24
  1551. package/lib-esm/components/Search/styled.js +0 -145
  1552. package/lib-esm/components/Search/types.d.ts +0 -42
  1553. package/lib-esm/components/Search/utils.d.ts +0 -11
  1554. package/lib-esm/components/Search/utils.js +0 -2
  1555. package/lib-esm/components/SecurityRequirement/PanelDescription.d.ts +0 -3
  1556. package/lib-esm/components/SecurityRequirement/PanelDescription.js +0 -4
  1557. package/lib-esm/components/SecurityRequirement/RequiredScopesRow.d.ts +0 -4
  1558. package/lib-esm/components/SecurityRequirement/RequiredScopesRow.js +0 -2
  1559. package/lib-esm/components/SecurityRequirement/RequirementElement.d.ts +0 -3
  1560. package/lib-esm/components/SecurityRequirement/RequirementElement.js +0 -24
  1561. package/lib-esm/components/SecurityRequirement/SecurityDefs.d.ts +0 -2
  1562. package/lib-esm/components/SecurityRequirement/SecurityDefs.js +0 -4
  1563. package/lib-esm/components/SecurityRequirement/SecurityRequirement.d.ts +0 -3
  1564. package/lib-esm/components/SecurityRequirement/SecurityRequirement.js +0 -24
  1565. package/lib-esm/components/SecurityRequirement/constants.d.ts +0 -6
  1566. package/lib-esm/components/SecurityRequirement/constants.js +0 -2
  1567. package/lib-esm/components/SecurityRequirement/index.d.ts +0 -3
  1568. package/lib-esm/components/SecurityRequirement/index.js +0 -2
  1569. package/lib-esm/components/SecurityRequirement/styled.d.ts +0 -1
  1570. package/lib-esm/components/SecurityRequirement/styled.js +0 -4
  1571. package/lib-esm/components/SecurityRequirement/types.d.ts +0 -19
  1572. package/lib-esm/components/SecurityRequirement/useSecurityRequirements.d.ts +0 -3
  1573. package/lib-esm/components/SecurityRequirement/useSecurityRequirements.js +0 -2
  1574. package/lib-esm/components/SecuritySchemes/OAuthFlow.d.ts +0 -3
  1575. package/lib-esm/components/SecuritySchemes/OAuthFlow.js +0 -2
  1576. package/lib-esm/components/SecuritySchemes/helpers.d.ts +0 -34
  1577. package/lib-esm/components/SecuritySchemes/helpers.js +0 -2
  1578. package/lib-esm/components/SecuritySchemes/index.d.ts +0 -2
  1579. package/lib-esm/components/SecuritySchemes/index.js +0 -2
  1580. package/lib-esm/components/SecuritySchemes/types.d.ts +0 -5
  1581. package/lib-esm/components/SecuritySchemes/types.js +0 -2
  1582. package/lib-esm/components/SeeMore/SeeMore.d.ts +0 -7
  1583. package/lib-esm/components/SeeMore/SeeMore.js +0 -10
  1584. package/lib-esm/components/SeeMore/index.d.ts +0 -1
  1585. package/lib-esm/components/SeeMore/index.js +0 -2
  1586. package/lib-esm/components/SideMenu/Actions.d.ts +0 -2
  1587. package/lib-esm/components/SideMenu/Actions.js +0 -5
  1588. package/lib-esm/components/SideMenu/MenuItem.d.ts +0 -13
  1589. package/lib-esm/components/SideMenu/MenuItem.js +0 -2
  1590. package/lib-esm/components/SideMenu/MenuItemEternalLink.d.ts +0 -5
  1591. package/lib-esm/components/SideMenu/MenuItemEternalLink.js +0 -2
  1592. package/lib-esm/components/SideMenu/MenuItemLink.d.ts +0 -3
  1593. package/lib-esm/components/SideMenu/MenuItemLink.js +0 -2
  1594. package/lib-esm/components/SideMenu/MenuItems.d.ts +0 -3
  1595. package/lib-esm/components/SideMenu/MenuItems.js +0 -2
  1596. package/lib-esm/components/SideMenu/MenuOperationItemContent.d.ts +0 -9
  1597. package/lib-esm/components/SideMenu/MenuOperationItemContent.js +0 -8
  1598. package/lib-esm/components/SideMenu/hooks/index.d.ts +0 -2
  1599. package/lib-esm/components/SideMenu/hooks/index.js +0 -2
  1600. package/lib-esm/components/SideMenu/hooks/useMenuItemExpanded.d.ts +0 -3
  1601. package/lib-esm/components/SideMenu/hooks/useMenuItemExpanded.js +0 -2
  1602. package/lib-esm/components/SideMenu/styled.d.ts +0 -29
  1603. package/lib-esm/components/SideMenu/styled.js +0 -97
  1604. package/lib-esm/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +0 -3
  1605. package/lib-esm/components/SourceCodeWithFile/SourceCodeWithFile.js +0 -2
  1606. package/lib-esm/components/SourceCodeWithFile/index.d.ts +0 -1
  1607. package/lib-esm/components/SourceCodeWithFile/index.js +0 -2
  1608. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTab.d.ts +0 -2
  1609. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTab.js +0 -11
  1610. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabList.d.ts +0 -2
  1611. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabList.js +0 -12
  1612. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +0 -3
  1613. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabs.js +0 -2
  1614. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +0 -19
  1615. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +0 -2
  1616. package/lib-esm/components/Tabs/CollapsingTabs/index.d.ts +0 -4
  1617. package/lib-esm/components/Tabs/CollapsingTabs/index.js +0 -2
  1618. package/lib-esm/components/Tabs/Tab.d.ts +0 -2
  1619. package/lib-esm/components/Tabs/Tab.js +0 -28
  1620. package/lib-esm/components/Tabs/TabList.d.ts +0 -2
  1621. package/lib-esm/components/Tabs/TabList.js +0 -7
  1622. package/lib-esm/components/Tabs/TabPanel.d.ts +0 -2
  1623. package/lib-esm/components/Tabs/TabPanel.js +0 -11
  1624. package/lib-esm/components/TagItems/TagItems.d.ts +0 -14
  1625. package/lib-esm/components/TagItems/TagItems.js +0 -2
  1626. package/lib-esm/components/TagItems/index.d.ts +0 -1
  1627. package/lib-esm/components/TagItems/index.js +0 -2
  1628. package/lib-esm/components/VersionSwitcher.d.ts +0 -9
  1629. package/lib-esm/components/VersionSwitcher.js +0 -7
  1630. package/lib-esm/components/common/Checkbox.d.ts +0 -10
  1631. package/lib-esm/components/common/Checkbox.js +0 -31
  1632. package/lib-esm/components/common/CheckboxList.d.ts +0 -14
  1633. package/lib-esm/components/common/CheckboxList.js +0 -8
  1634. package/lib-esm/components/common/Dropdown/styled.d.ts +0 -28
  1635. package/lib-esm/components/common/Dropdown/styled.js +0 -133
  1636. package/lib-esm/components/common/Dropdown/types.d.ts +0 -25
  1637. package/lib-esm/components/common/Dropdown/types.js +0 -2
  1638. package/lib-esm/components/common/FileUpload/FileUpload.d.ts +0 -9
  1639. package/lib-esm/components/common/FileUpload/FileUpload.js +0 -2
  1640. package/lib-esm/components/common/FileUpload/helper.d.ts +0 -11
  1641. package/lib-esm/components/common/FileUpload/helper.js +0 -2
  1642. package/lib-esm/components/common/FileUpload/index.d.ts +0 -1
  1643. package/lib-esm/components/common/FileUpload/index.js +0 -2
  1644. package/lib-esm/components/common/LinearProgress.d.ts +0 -2
  1645. package/lib-esm/components/common/LinearProgress.js +0 -104
  1646. package/lib-esm/components/common/Portal/Portal.d.ts +0 -7
  1647. package/lib-esm/components/common/Portal/Portal.js +0 -2
  1648. package/lib-esm/components/common/Portal/index.d.ts +0 -1
  1649. package/lib-esm/components/common/Portal/index.js +0 -2
  1650. package/lib-esm/components/common/TextField.d.ts +0 -35
  1651. package/lib-esm/components/common/TextField.js +0 -79
  1652. package/lib-esm/components/common/form.d.ts +0 -17
  1653. package/lib-esm/components/common/form.js +0 -64
  1654. package/lib-esm/components/common/perfect-scrollbar.d.ts +0 -18
  1655. package/lib-esm/components/common/perfect-scrollbar.js +0 -4
  1656. package/lib-esm/components/common/shelfs.d.ts +0 -3
  1657. package/lib-esm/components/common/shelfs.js +0 -23
  1658. package/lib-esm/components/icons/CrossIcon.d.ts +0 -5
  1659. package/lib-esm/components/icons/CrossIcon.js +0 -11
  1660. package/lib-esm/components/icons/FileIcon.d.ts +0 -5
  1661. package/lib-esm/components/icons/FileIcon.js +0 -9
  1662. package/lib-esm/components/icons/LinkIcon.d.ts +0 -5
  1663. package/lib-esm/components/icons/LinkIcon.js +0 -11
  1664. package/lib-esm/components/icons/LockIcon.d.ts +0 -3
  1665. package/lib-esm/components/icons/LockIcon.js +0 -12
  1666. package/lib-esm/components/icons/SearchIcon.d.ts +0 -6
  1667. package/lib-esm/components/icons/SearchIcon.js +0 -11
  1668. package/lib-esm/components/icons/ShelfIcon.d.ts +0 -3
  1669. package/lib-esm/components/icons/ShelfIcon.js +0 -12
  1670. package/lib-esm/components/icons/Spinner.d.ts +0 -3
  1671. package/lib-esm/components/icons/Spinner.js +0 -19
  1672. package/lib-esm/components/icons/index.d.ts +0 -8
  1673. package/lib-esm/components/icons/index.js +0 -2
  1674. package/lib-esm/components/icons/types.d.ts +0 -10
  1675. package/lib-esm/components/icons/types.js +0 -2
  1676. package/lib-esm/components/pluggable/PullRight.d.ts +0 -4
  1677. package/lib-esm/components/pluggable/PullRight.js +0 -7
  1678. package/lib-esm/components/pluggable/RedocRequestBody.d.ts +0 -7
  1679. package/lib-esm/components/pluggable/RedocRequestBody.js +0 -2
  1680. package/lib-esm/components/pluggable/RedocResponse.d.ts +0 -6
  1681. package/lib-esm/components/pluggable/RedocResponse.js +0 -2
  1682. package/lib-esm/components/rightPanel/ActionPanel.d.ts +0 -11
  1683. package/lib-esm/components/rightPanel/ActionPanel.js +0 -4
  1684. package/lib-esm/components/rightPanel/AuthPanel/AuthPanel.d.ts +0 -3
  1685. package/lib-esm/components/rightPanel/AuthPanel/AuthPanel.js +0 -2
  1686. package/lib-esm/components/rightPanel/AuthPanel/index.d.ts +0 -2
  1687. package/lib-esm/components/rightPanel/AuthPanel/index.js +0 -2
  1688. package/lib-esm/components/rightPanel/AuthPanel/types.d.ts +0 -11
  1689. package/lib-esm/components/rightPanel/AuthPanel/types.js +0 -2
  1690. package/lib-esm/components/rightPanel/CodemirrorInput/CodemirrorInput.d.ts +0 -4
  1691. package/lib-esm/components/rightPanel/CodemirrorInput/CodemirrorInput.js +0 -2
  1692. package/lib-esm/components/rightPanel/CodemirrorInput/helpers.d.ts +0 -6
  1693. package/lib-esm/components/rightPanel/CodemirrorInput/helpers.js +0 -2
  1694. package/lib-esm/components/rightPanel/CodemirrorInput/index.d.ts +0 -1
  1695. package/lib-esm/components/rightPanel/CodemirrorInput/index.js +0 -2
  1696. package/lib-esm/components/rightPanel/CodemirrorInput/styled.d.ts +0 -2
  1697. package/lib-esm/components/rightPanel/CodemirrorInput/styled.js +0 -53
  1698. package/lib-esm/components/rightPanel/CodemirrorInput/types.d.ts +0 -11
  1699. package/lib-esm/components/rightPanel/CodemirrorInput/types.js +0 -2
  1700. package/lib-esm/components/rightPanel/Console/Console.d.ts +0 -3
  1701. package/lib-esm/components/rightPanel/Console/Console.js +0 -2
  1702. package/lib-esm/components/rightPanel/Console/ConsoleLazy.d.ts +0 -3
  1703. package/lib-esm/components/rightPanel/Console/ConsoleLazy.js +0 -2
  1704. package/lib-esm/components/rightPanel/Console/ConsoleWrapper.d.ts +0 -9
  1705. package/lib-esm/components/rightPanel/Console/ConsoleWrapper.js +0 -2
  1706. package/lib-esm/components/rightPanel/Console/Request.d.ts +0 -3
  1707. package/lib-esm/components/rightPanel/Console/Request.js +0 -2
  1708. package/lib-esm/components/rightPanel/Console/index.d.ts +0 -1
  1709. package/lib-esm/components/rightPanel/Console/index.js +0 -2
  1710. package/lib-esm/components/rightPanel/Console/shallowCopyForTryIt.d.ts +0 -2
  1711. package/lib-esm/components/rightPanel/Console/shallowCopyForTryIt.js +0 -2
  1712. package/lib-esm/components/rightPanel/Console/types.d.ts +0 -26
  1713. package/lib-esm/components/rightPanel/Console/types.js +0 -2
  1714. package/lib-esm/components/rightPanel/ConsoleTabs/ConsoleTabs.d.ts +0 -7
  1715. package/lib-esm/components/rightPanel/ConsoleTabs/ConsoleTabs.js +0 -2
  1716. package/lib-esm/components/rightPanel/ConsoleTabs/index.d.ts +0 -2
  1717. package/lib-esm/components/rightPanel/ConsoleTabs/index.js +0 -2
  1718. package/lib-esm/components/rightPanel/ConsoleTabs/styled.d.ts +0 -5
  1719. package/lib-esm/components/rightPanel/ConsoleTabs/styled.js +0 -38
  1720. package/lib-esm/components/rightPanel/OAuth2Flow/Error.d.ts +0 -8
  1721. package/lib-esm/components/rightPanel/OAuth2Flow/Error.js +0 -2
  1722. package/lib-esm/components/rightPanel/OAuth2Flow/OAuth2Flow.d.ts +0 -3
  1723. package/lib-esm/components/rightPanel/OAuth2Flow/OAuth2Flow.js +0 -2
  1724. package/lib-esm/components/rightPanel/OAuth2Flow/index.d.ts +0 -2
  1725. package/lib-esm/components/rightPanel/OAuth2Flow/index.js +0 -2
  1726. package/lib-esm/components/rightPanel/OAuth2Flow/styled.d.ts +0 -4
  1727. package/lib-esm/components/rightPanel/OAuth2Flow/styled.js +0 -14
  1728. package/lib-esm/components/rightPanel/OAuth2Flow/types.d.ts +0 -17
  1729. package/lib-esm/components/rightPanel/OAuth2Flow/types.js +0 -2
  1730. package/lib-esm/components/rightPanel/OAuth2TokenInput.d.ts +0 -16
  1731. package/lib-esm/components/rightPanel/OAuth2TokenInput.js +0 -2
  1732. package/lib-esm/components/rightPanel/OpenIDConnect.d.ts +0 -15
  1733. package/lib-esm/components/rightPanel/OpenIDConnect.js +0 -2
  1734. package/lib-esm/components/rightPanel/ParameterArray.d.ts +0 -10
  1735. package/lib-esm/components/rightPanel/ParameterArray.js +0 -30
  1736. package/lib-esm/components/rightPanel/ParameterDropdown.d.ts +0 -8
  1737. package/lib-esm/components/rightPanel/ParameterDropdown.js +0 -2
  1738. package/lib-esm/components/rightPanel/RequestBody/Body.d.ts +0 -3
  1739. package/lib-esm/components/rightPanel/RequestBody/Body.js +0 -2
  1740. package/lib-esm/components/rightPanel/RequestBody/RequestBody.d.ts +0 -3
  1741. package/lib-esm/components/rightPanel/RequestBody/RequestBody.js +0 -2
  1742. package/lib-esm/components/rightPanel/RequestBody/index.d.ts +0 -2
  1743. package/lib-esm/components/rightPanel/RequestBody/index.js +0 -2
  1744. package/lib-esm/components/rightPanel/RequestBody/types.d.ts +0 -16
  1745. package/lib-esm/components/rightPanel/RequestBody/types.js +0 -2
  1746. package/lib-esm/components/rightPanel/RequestBodyForm.d.ts +0 -9
  1747. package/lib-esm/components/rightPanel/RequestBodyForm.js +0 -10
  1748. package/lib-esm/components/rightPanel/RequestMimeLabel.d.ts +0 -1
  1749. package/lib-esm/components/rightPanel/RequestMimeLabel.js +0 -5
  1750. package/lib-esm/components/rightPanel/ResponseBody.d.ts +0 -5
  1751. package/lib-esm/components/rightPanel/ResponseBody.js +0 -2
  1752. package/lib-esm/components/rightPanel/ResponseHeadersList.d.ts +0 -4
  1753. package/lib-esm/components/rightPanel/ResponseHeadersList.js +0 -10
  1754. package/lib-esm/components/rightPanel/ResponsePanel.d.ts +0 -10
  1755. package/lib-esm/components/rightPanel/ResponsePanel.js +0 -18
  1756. package/lib-esm/components/rightPanel/Scope.d.ts +0 -7
  1757. package/lib-esm/components/rightPanel/Scope.js +0 -2
  1758. package/lib-esm/components/rightPanel/ServerVariable.d.ts +0 -11
  1759. package/lib-esm/components/rightPanel/ServerVariable.js +0 -5
  1760. package/lib-esm/components/rightPanel/ServersDropdown/ServersDropdown.d.ts +0 -3
  1761. package/lib-esm/components/rightPanel/ServersDropdown/ServersDropdown.js +0 -4
  1762. package/lib-esm/components/rightPanel/ServersDropdown/index.d.ts +0 -1
  1763. package/lib-esm/components/rightPanel/ServersDropdown/index.js +0 -2
  1764. package/lib-esm/components/rightPanel/ServersDropdown/types.d.ts +0 -6
  1765. package/lib-esm/components/rightPanel/ServersDropdown/types.js +0 -2
  1766. package/lib-esm/components/rightPanel/TryItPanel.d.ts +0 -7
  1767. package/lib-esm/components/rightPanel/TryItPanel.js +0 -14
  1768. package/lib-esm/components/rightPanel/styled.d.ts +0 -16
  1769. package/lib-esm/components/rightPanel/styled.js +0 -76
  1770. package/lib-esm/components/rightPanel/types.d.ts +0 -10
  1771. package/lib-esm/components/rightPanel/types.js +0 -2
  1772. package/lib-esm/components/rightPanel/utils.d.ts +0 -28
  1773. package/lib-esm/components/rightPanel/utils.js +0 -2
  1774. package/lib-esm/components/shared/HttpVerb.d.ts +0 -2
  1775. package/lib-esm/components/shared/HttpVerb.js +0 -4
  1776. package/lib-esm/components/shared/MimeLabel.d.ts +0 -1
  1777. package/lib-esm/components/shared/MimeLabel.js +0 -12
  1778. package/lib-esm/components/shared/NoSampleLabel.d.ts +0 -2
  1779. package/lib-esm/components/shared/NoSampleLabel.js +0 -10
  1780. package/lib-esm/components/shared/index.d.ts +0 -3
  1781. package/lib-esm/components/shared/index.js +0 -2
  1782. package/lib-esm/events/serverSwitch.d.ts +0 -2
  1783. package/lib-esm/events/serverSwitch.js +0 -2
  1784. package/lib-esm/models/file-upload.d.ts +0 -11
  1785. package/lib-esm/models/file-upload.js +0 -2
  1786. package/lib-esm/oauth2-redirect-page/handler/helpers.d.ts +0 -6
  1787. package/lib-esm/oauth2-redirect-page/handler/helpers.js +0 -2
  1788. package/lib-esm/oauth2-redirect-page/handler/oauth2-redirect-handler.d.ts +0 -1
  1789. package/lib-esm/oauth2-redirect-page/handler/oauth2-redirect-handler.js +0 -2
  1790. package/lib-esm/oauth2-redirect-page/index.d.ts +0 -1
  1791. package/lib-esm/oauth2-redirect-page/index.js +0 -2
  1792. package/lib-esm/services/MarkerService.d.ts +0 -11
  1793. package/lib-esm/services/MarkerService.js +0 -2
  1794. package/lib-esm/services/OAuth2.d.ts +0 -43
  1795. package/lib-esm/services/OAuth2.js +0 -2
  1796. package/lib-esm/services/OpenIDConnect.d.ts +0 -38
  1797. package/lib-esm/services/OpenIDConnect.js +0 -2
  1798. package/lib-esm/services/Options/helpers.d.ts +0 -8
  1799. package/lib-esm/services/Options/helpers.js +0 -2
  1800. package/lib-esm/services/Options/normalizeOptions.d.ts +0 -2
  1801. package/lib-esm/services/Options/normalizeOptions.js +0 -2
  1802. package/lib-esm/services/Options/types.d.ts +0 -279
  1803. package/lib-esm/services/Options/types.js +0 -2
  1804. package/lib-esm/services/labels/LabelsService.d.ts +0 -3
  1805. package/lib-esm/services/labels/LabelsService.js +0 -2
  1806. package/lib-esm/services/labels/index.d.ts +0 -2
  1807. package/lib-esm/services/labels/index.js +0 -2
  1808. package/lib-esm/services/labels/types.d.ts +0 -29
  1809. package/lib-esm/services/labels/types.js +0 -2
  1810. package/lib-esm/services/menu/helpers.d.ts +0 -6
  1811. package/lib-esm/services/menu/helpers.js +0 -2
  1812. package/lib-esm/services/search/DeepSearchStore.d.ts +0 -19
  1813. package/lib-esm/services/search/DeepSearchStore.js +0 -2
  1814. package/lib-esm/services/search/RemoteSearch.d.ts +0 -17
  1815. package/lib-esm/services/search/RemoteSearch.js +0 -2
  1816. package/lib-esm/services/search/SearchStore.d.ts +0 -14
  1817. package/lib-esm/services/search/SearchStore.js +0 -2
  1818. package/lib-esm/services/search/SearchWorker.worker.d.ts +0 -17
  1819. package/lib-esm/services/search/SearchWorker.worker.js +0 -2
  1820. package/lib-esm/services/search/index.d.ts +0 -4
  1821. package/lib-esm/services/search/index.js +0 -2
  1822. package/lib-esm/services/search/types.d.ts +0 -15
  1823. package/lib-esm/services/search/types.js +0 -2
  1824. package/lib-esm/services/search/useSearch.d.ts +0 -13
  1825. package/lib-esm/services/search/useSearch.js +0 -2
  1826. package/lib-esm/types/server.d.ts +0 -7
  1827. package/lib-esm/types/server.js +0 -2
  1828. package/lib-esm/utils/media-css.d.ts +0 -8
  1829. package/lib-esm/utils/media-css.js +0 -2
  1830. package/lib-esm/utils/typeGuards.d.ts +0 -5
  1831. package/lib-esm/utils/typeGuards.js +0 -2
  1832. /package/lib/components/{ApiInfo → PropertyDetails}/types.js +0 -0
  1833. /package/lib/components/{Endpoint → Request}/types.js +0 -0
  1834. /package/lib/components/{Fields → ServerList}/types.js +0 -0
  1835. /package/lib/components/{Search → common/Select}/types.js +0 -0
  1836. /package/lib/services/{Options → config-options}/index.d.ts +0 -0
  1837. /package/lib/services/{Options → config-options}/index.js +0 -0
  1838. /package/lib/{components/SecurityRequirement → services/config-options}/types.js +0 -0
  1839. /package/lib-esm/components/{ApiInfo → PropertyDetails}/types.js +0 -0
  1840. /package/lib-esm/components/{Endpoint → Request}/types.js +0 -0
  1841. /package/lib-esm/components/{Fields → ServerList}/types.js +0 -0
  1842. /package/lib-esm/components/{Search → common/Select}/types.js +0 -0
  1843. /package/lib-esm/services/{Options → config-options}/index.d.ts +0 -0
  1844. /package/lib-esm/services/{Options → config-options}/index.js +0 -0
  1845. /package/lib-esm/{components/SecurityRequirement → services/config-options}/types.js +0 -0
@@ -1,2 +1,2 @@
1
- const spec={openapi:"3.0.0",servers:[{url:"//petstore.swagger.io/v2",description:"Default server"},{url:"//petstore.swagger.io/sandbox",description:"Sandbox server"}],info:{description:"This is a sample server Petstore server.\nYou can find out more about Swagger at\n[http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/).\nFor this sample, you can use the api key `special-key` to test the authorization filters.\n\n# Introduction\nThis API is documented in **OpenAPI format** and is based on\n[Petstore sample](http://petstore.swagger.io/) provided by [swagger.io](http://swagger.io) team.\nIt was **extended** to illustrate features of [generator-openapi-repo](https://github.com/Rebilly/generator-openapi-repo)\ntool and [ReDoc](https://github.com/Redocly/redoc) documentation. In addition to standard\nOpenAPI syntax we use a few [vendor extensions](https://github.com/Redocly/redoc/blob/master/docs/redoc-vendor-extensions.md).\n\n# OpenAPI Specification\nThis API is documented in **OpenAPI format** and is based on\n[Petstore sample](http://petstore.swagger.io/) provided by [swagger.io](http://swagger.io) team.\nIt was **extended** to illustrate features of [generator-openapi-repo](https://github.com/Rebilly/generator-openapi-repo)\ntool and [ReDoc](https://github.com/Redocly/redoc) documentation. In addition to standard\nOpenAPI syntax we use a few [vendor extensions](https://github.com/Redocly/redoc/blob/master/docs/redoc-vendor-extensions.md).\n\n## Subheader 1\n\nConsectetur adipiscing elit. Etiam fringilla tincidunt magna non dignissim. Vestibulum vestibulum ipsum augue, sed rhoncus diam consequat sodales. Sed facilisis maximus enim, ut scelerisque lorem ullamcorper eget. Suspendisse venenatis non lectus sed bibendum.\n*Duis neque ante, ultrices at ornare aliquam, vulputate ac dolor.*\n\n## Subheader 2\n\nLorem ipsum dolor sit amet. Ut tempor sem vitae dui varius, consequat varius ligula fringilla. Nulla accumsan pellentesque lorem eu pharetra. Duis vel est metus. Nulla id quam eget ante egestas fringilla. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vulputate pulvinar turpis, ac convallis quam.\n\n# Cross-Origin Resource Sharing\nThis API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/).\nAnd that allows cross-domain communication from the browser.\nAll responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.\n\n# Authentication\n\nPetstore offers two forms of authentication:\n - API Key\n - OAuth2\nOAuth2 - an open protocol to allow secure authorization in a simple\nand standard method from web, mobile and desktop applications.\n\n<SecurityDefinitions />\n",version:"1.0.0",title:"Swagger Petstore",termsOfService:"http://swagger.io/terms/",contact:{name:"API Support",email:"apiteam@swagger.io",url:"https://github.com/Redocly/redoc"},"x-logo":{url:"https://redocly.github.io/redoc/petstore-logo.png",altText:"Petstore logo"},license:{name:"Apache 2.0",url:"http://www.apache.org/licenses/LICENSE-2.0.html"}},externalDocs:{description:"Find out how to create Github repo for your OpenAPI spec.",url:"https://github.com/Rebilly/generator-openapi-repo"},tags:[{name:"pet",description:"Lorem ipsum dolor sit amet.\n\n**Consectetur** adipiscing elit. Etiam fringilla tincidunt magna non dignissim. Vestibulum vestibulum ipsum augue, sed rhoncus diam consequat sodales. Sed facilisis maximus enim, ut scelerisque lorem ullamcorper eget. Suspendisse venenatis non lectus sed bibendum.\n*Duis neque ante, ultrices at ornare aliquam, vulputate ac dolor.*\n\nPellentesque nulla lorem:\n- dapibus lacinia magna vitae, \n- eleifend bibendum nisi\n\nNullam pretium erat ut augue mollis, id varius orci pretium. \n> Ut efficitur eget dui eget molestie.\n\nUt tempor sem vitae dui varius, consequat varius ligula fringilla. Nulla accumsan pellentesque lorem eu pharetra. Duis vel est metus. Nulla id quam eget ante egestas fringilla. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vulputate pulvinar turpis, ac convallis quam.\n[More info](http://swagger.io)\n"},{name:"store"},{name:"user",description:"Operations about user\n\n## Custom section 1\nNullam pretium erat ut augue mollis, id varius orci pretium. \n\n\n## Custom section 2\nNulla accumsan pellentesque lorem eu pharetra. Duis vel est metus. Nulla id quam eget ante egestas fringilla. Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n\nSome Item\n"},{name:"pet_model","x-displayName":"The Pet Model",description:'<SchemaDefinition schemaRef="#/components/schemas/Pet" />\n'},{name:"store_model","x-displayName":"The Order Model",description:'<SchemaDefinition schemaRef="#/components/schemas/Order" exampleRef="#/components/examples/Order" showReadOnly={true} showWriteOnly={true} />\n'}],"x-tagGroups":[{name:"General",tags:["pet","store"]},{name:"User Management",tags:["user"]},{name:"Models",tags:["pet_model","store_model"]}],paths:{"/pet":{parameters:[{name:"Accept-Language",in:"header",description:"The language you prefer for messages. Supported values are en-AU, en-CA, en-GB, en-US",example:"en-US",required:!1,schema:{type:"string",default:"en-AU"}},{name:"cookieParam",in:"cookie",description:"Some cookie",required:!0,schema:{type:"integer",format:"int64"}}],post:{tags:["pet"],summary:"Add a new pet to the store",description:"Add new pet to the store inventory.",operationId:"addPet",responses:{405:{description:"Invalid input"}},security:[{petstore_auth:["write:pets","read:pets"]}],"x-codeSamples":[{lang:"C#",source:'PetStore.v1.Pet pet = new PetStore.v1.Pet();\npet.setApiKey("your api key");\npet.petType = PetStore.v1.Pet.TYPE_DOG;\npet.name = "Rex";\n// set other fields\nPetStoreResponse response = pet.create();\nif (response.statusCode == HttpStatusCode.Created)\n{\n // Successfully created\n}\nelse\n{\n // Something wrong -- check response for errors\n Console.WriteLine(response.getRawResponse());\n}\n'},{lang:"PHP",source:'$form = new \\PetStore\\Entities\\Pet();\n$form->setPetType("Dog");\n$form->setName("Rex");\n// set other fields\ntry {\n $pet = $client->pets()->create($form);\n} catch (UnprocessableEntityException $e) {\n var_dump($e->getErrors());\n}\n'}],requestBody:{$ref:"#/components/requestBodies/Pet"}},put:{tags:["pet"],summary:"Update an existing pet",description:"",operationId:"updatePet",responses:{400:{description:"Invalid ID supplied"},404:{description:"Pet not found"},405:{description:"Validation exception"}},security:[{petstore_auth:["write:pets","read:pets"]}],"x-codeSamples":[{lang:"PHP",source:'$form = new \\PetStore\\Entities\\Pet();\n$form->setPetId(1);\n$form->setPetType("Dog");\n$form->setName("Rex");\n// set other fields\ntry {\n $pet = $client->pets()->update($form);\n} catch (UnprocessableEntityException $e) {\n var_dump($e->getErrors());\n}\n'}],requestBody:{$ref:"#/components/requestBodies/Pet"}}},"/pet/{petId}":{get:{tags:["pet"],summary:"Find pet by ID",description:"Returns a single pet",operationId:"getPetById",parameters:[{name:"petId",in:"path",description:"ID of pet to return",required:!0,deprecated:!0,schema:{type:"integer",format:"int64"}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/Pet"}},"application/xml":{schema:{$ref:"#/components/schemas/Pet"}}}},400:{description:"Invalid ID supplied"},404:{description:"Pet not found"}},security:[{api_key:[]}]},post:{tags:["pet"],summary:"Updates a pet in the store with form data",description:"",operationId:"updatePetWithForm",parameters:[{name:"petId",in:"path",description:"ID of pet that needs to be updated",required:!0,schema:{type:"integer",format:"int64"}}],responses:{405:{description:"Invalid input"}},security:[{petstore_auth:["write:pets","read:pets"]}],requestBody:{content:{"application/x-www-form-urlencoded":{schema:{type:"object",properties:{name:{description:"Updated name of the pet",type:"string"},status:{description:"Updated status of the pet",type:"string"}}}}}}},delete:{tags:["pet"],summary:"Deletes a pet",description:"",operationId:"deletePet",parameters:[{name:"api_key",in:"header",required:!1,schema:{type:"string"},example:"Bearer <TOKEN>"},{name:"petId",in:"path",description:"Pet id to delete",required:!0,schema:{type:"integer",format:"int64"}}],responses:{400:{description:"Invalid pet value"}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/pet/{petId}/uploadImage":{post:{tags:["pet"],summary:"uploads an image",description:"",operationId:"uploadFile",parameters:[{name:"petId",in:"path",description:"ID of pet to update",required:!0,schema:{type:"integer",format:"int64"}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/ApiResponse"}}}}},security:[{petstore_auth:["write:pets","read:pets"]}],requestBody:{content:{"application/octet-stream":{schema:{type:"string",format:"binary"}}}}}},"/pet/{petId}/uploadImage/{data}":{post:{tags:["pet"],summary:"uploads an image",description:"",operationId:"uploadFile",parameters:[{name:"petId",in:"path",description:"ID of pet to update",required:!0,schema:{type:"integer",format:"int64"}},{name:"data",in:"path",description:"ID of pet to update",required:!0,schema:{type:"integer",format:"int64"}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/ApiResponse"}}}}},security:[{petstore_auth:["write:pets","read:pets"]}],requestBody:{content:{"application/octet-stream":{schema:{type:"string",format:"binary"}}}}}},"/pet/findByStatus":{get:{tags:["pet"],summary:"Finds Pets by status",description:"Multiple status values can be provided with comma separated strings",operationId:"findPetsByStatus",parameters:[{name:"status",in:"query",description:"Status values that need to be considered for filter",required:!0,style:"form",schema:{type:"array",minItems:1,maxItems:3,items:{type:"string",enum:["available","pending","sold"],default:"available"}}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Pet"}}},"application/xml":{schema:{type:"array",items:{$ref:"#/components/schemas/Pet"}}}}},400:{description:"Invalid status value"}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/pet/findByTags":{get:{tags:["pet"],summary:"Finds Pets by tags",description:"Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",operationId:"findPetsByTags",deprecated:!0,parameters:[{name:"tags",in:"query",description:"Tags to filter by",required:!0,style:"form",schema:{type:"array",items:{type:"string"}}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Pet"}}},"application/xml":{schema:{type:"array",items:{$ref:"#/components/schemas/Pet"}}}}},400:{description:"Invalid tag value"}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/store/inventory":{get:{tags:["store"],summary:"Returns pet inventories by status",description:"Returns a map of status codes to quantities",operationId:"getInventory",responses:{200:{description:"successful operation",content:{"application/json":{schema:{type:"object",additionalProperties:{type:"integer",format:"int32"}}}}}},security:[{api_key:[]}]}},"/store/order":{post:{tags:["store"],summary:"Place an order for a pet",description:"",operationId:"placeOrder",responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/Order"}},"application/xml":{schema:{$ref:"#/components/schemas/Order"}}}},400:{description:"Invalid Order",content:{"application/json":{example:{status:400,message:"Invalid Order"}}}}},requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/Order"}}},description:"order placed for purchasing the pet",required:!0}}},"/store/order/{orderId}":{get:{tags:["store"],summary:"Find purchase order by ID",description:"For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions",operationId:"getOrderById",parameters:[{name:"orderId",in:"path",description:"ID of pet that needs to be fetched",required:!0,schema:{type:"integer",format:"int64",minimum:1,maximum:5}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/Order"}},"application/xml":{schema:{$ref:"#/components/schemas/Order"}}}},400:{description:"Invalid ID supplied"},404:{description:"Order not found"}}},delete:{tags:["store"],summary:"Delete purchase order by ID",description:"For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors",operationId:"deleteOrder",parameters:[{name:"orderId",in:"path",description:"ID of the order that needs to be deleted",required:!0,schema:{type:"string",minimum:1}}],responses:{400:{description:"Invalid ID supplied"},404:{description:"Order not found"}}}},"/store/subscribe":{post:{tags:["store"],summary:"Subscribe to the Store events",description:"Add subscription for a store events",requestBody:{content:{"application/json":{schema:{type:"object",properties:{callbackUrl:{type:"string",format:"uri",description:"This URL will be called by the server when the desired event will occur",example:"https://myserver.com/send/callback/here"},eventName:{type:"string",description:"Event name for the subscription",enum:["orderInProgress","orderShipped","orderDelivered"],example:"orderInProgress"}},required:["callbackUrl","eventName"]}}}},responses:{201:{description:"Subscription added",content:{"application/json":{schema:{type:"object",properties:{subscriptionId:{type:"string",example:"AAA-123-BBB-456"}}}}}}},callbacks:{orderInProgress:{"{$request.body#/callbackUrl}?event={$request.body#/eventName}":{servers:[{url:"//callback-url.path-level/v1",description:"Path level server 1"},{url:"//callback-url.path-level/v2",description:"Path level server 2"}],post:{summary:"Order in Progress (Summary)",description:'A callback triggered every time an Order is updated status to "inProgress" (Description)',externalDocs:{description:"Find out more",url:"https://more-details.com/demo"},requestBody:{content:{"application/json":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"},timestamp:{type:"string",format:"date-time",example:"2018-10-19T16:46:45Z"},status:{type:"string",example:"inProgress"}}}},"application/xml":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"}}},example:'<?xml version="1.0" encoding="UTF-8"?>\n<root>\n <orderId>123</orderId>\n <status>inProgress</status>\n <timestamp>2018-10-19T16:46:45Z</timestamp>\n</root>\n'}}},responses:{200:{description:"Callback successfully processed and no retries will be performed",content:{"application/json":{schema:{type:"object",properties:{someProp:{type:"string",example:"123"}}}}}},299:{description:"Response for cancelling subscription"},500:{description:"Callback processing failed and retries will be performed"}},"x-codeSamples":[{lang:"C#",source:'PetStore.v1.Pet pet = new PetStore.v1.Pet();\npet.setApiKey("your api key");\npet.petType = PetStore.v1.Pet.TYPE_DOG;\npet.name = "Rex";\n// set other fields\nPetStoreResponse response = pet.create();\nif (response.statusCode == HttpStatusCode.Created)\n{\n // Successfully created\n}\nelse\n{\n // Something wrong -- check response for errors\n Console.WriteLine(response.getRawResponse());\n}\n'},{lang:"PHP",source:'$form = new \\PetStore\\Entities\\Pet();\n$form->setPetType("Dog");\n$form->setName("Rex");\n// set other fields\ntry {\n $pet = $client->pets()->create($form);\n} catch (UnprocessableEntityException $e) {\n var_dump($e->getErrors());\n}\n'}]},put:{description:"Order in Progress (Only Description)",servers:[{url:"//callback-url.operation-level/v1",description:"Operation level server 1 (Operation override)"},{url:"//callback-url.operation-level/v2",description:"Operation level server 2 (Operation override)"}],requestBody:{content:{"application/json":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"},timestamp:{type:"string",format:"date-time",example:"2018-10-19T16:46:45Z"},status:{type:"string",example:"inProgress"}}}},"application/xml":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"}}},example:'<?xml version="1.0" encoding="UTF-8"?>\n<root>\n <orderId>123</orderId>\n <status>inProgress</status>\n <timestamp>2018-10-19T16:46:45Z</timestamp>\n</root>\n'}}},responses:{200:{description:"Callback successfully processed and no retries will be performed",content:{"application/json":{schema:{type:"object",properties:{someProp:{type:"string",example:"123"}}}}}}}}}},orderShipped:{"{$request.body#/callbackUrl}?event={$request.body#/eventName}":{post:{description:"Very long description\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor\nincididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis\nnostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\nDuis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu\nfugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in\nculpa qui officia deserunt mollit anim id est laborum.\n",requestBody:{content:{"application/json":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"},timestamp:{type:"string",format:"date-time",example:"2018-10-19T16:46:45Z"},estimatedDeliveryDate:{type:"string",format:"date-time",example:"2018-11-11T16:00:00Z"}}}}}},responses:{200:{description:"Callback successfully processed and no retries will be performed"}}}}},orderDelivered:{"http://notificationServer.com?url={$request.body#/callbackUrl}&event={$request.body#/eventName}":{post:{deprecated:!0,summary:"Order delivered",description:"A callback triggered every time an Order is delivered to the recipient",requestBody:{content:{"application/json":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"},timestamp:{type:"string",format:"date-time",example:"2018-10-19T16:46:45Z"}}}}}},responses:{200:{description:"Callback successfully processed and no retries will be performed"}}}}}}}},"/user":{post:{tags:["user"],summary:"Create user",description:"This can only be done by the logged in user.",operationId:"createUser",responses:{default:{description:"successful operation"}},requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/User"}}},description:"Created user object",required:!0}}},"/user/{username}":{get:{tags:["user"],summary:"Get user by user name",description:"",operationId:"getUserByName",parameters:[{name:"username",in:"path",description:"The name that needs to be fetched. Use user1 for testing. ",required:!0,schema:{type:"string"}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/User"}},"application/xml":{schema:{$ref:"#/components/schemas/User"}}}},400:{description:"Invalid username supplied"},404:{description:"User not found"}}},put:{tags:["user"],summary:"Updated user",description:"This can only be done by the logged in user.",operationId:"updateUser",parameters:[{name:"username",in:"path",description:"name that need to be deleted",required:!0,schema:{type:"string"}}],responses:{400:{description:"Invalid user supplied"},404:{description:"User not found"}},requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/User"}}},description:"Updated user object",required:!0}},delete:{tags:["user"],summary:"Delete user",description:"This can only be done by the logged in user.",operationId:"deleteUser",parameters:[{name:"username",in:"path",description:"The name that needs to be deleted",required:!0,schema:{type:"string"}}],responses:{400:{description:"Invalid username supplied"},404:{description:"User not found"}}}},"/user/createWithArray":{post:{tags:["user"],summary:"Creates list of users with given input array",description:"",operationId:"createUsersWithArrayInput",responses:{default:{description:"successful operation"}},requestBody:{$ref:"#/components/requestBodies/UserArray"}}},"/user/createWithList":{post:{tags:["user"],summary:"Creates list of users with given input array",description:"",operationId:"createUsersWithListInput",responses:{default:{description:"successful operation"}},requestBody:{$ref:"#/components/requestBodies/UserArray"}}},"/user/login":{get:{tags:["user"],summary:"Logs user into the system",description:"",operationId:"loginUser",parameters:[{name:"username",in:"query",description:"The user name for login",required:!0,schema:{type:"string"}},{name:"password",in:"query",description:"The password for login in clear text",required:!0,schema:{type:"string"}}],responses:{200:{description:"successful operation",headers:{"X-Rate-Limit":{description:"calls per hour allowed by the user",schema:{type:"integer",format:"int32"}},"X-Expires-After":{description:"date in UTC when token expires",schema:{type:"string",format:"date-time"}}},content:{"application/json":{schema:{type:"string"},examples:{response:{value:"OK"}}},"application/xml":{schema:{type:"string"},examples:{response:{value:"<Message> OK </Message>"}}},"text/plain":{examples:{response:{value:"OK"}}}}},400:{description:"Invalid username/password supplied"}}}},"/user/logout":{get:{tags:["user"],summary:"Logs out current logged in user session",description:"",operationId:"logoutUser",responses:{default:{description:"successful operation"}}}}},components:{schemas:{ApiResponse:{type:"object",properties:{code:{type:"integer",format:"int32"},type:{type:"string"},message:{type:"string"}}},Cat:{description:"A representation of a cat",allOf:[{$ref:"#/components/schemas/Pet"},{type:"object",properties:{huntingSkill:{type:"string",description:"The measured skill for hunting",default:"lazy",example:"adventurous",enum:["clueless","lazy","adventurous","aggressive"]}},required:["huntingSkill"]}]},Category:{type:"object",properties:{id:{description:"Category ID",allOf:[{$ref:"#/components/schemas/Id"}]},name:{description:"Category name",type:"string",minLength:1},sub:{description:"Test Sub Category",type:"object",properties:{prop1:{type:"string",description:"Dumb Property"}}}},xml:{name:"Category"}},Dog:{description:"A representation of a dog",allOf:[{$ref:"#/components/schemas/Pet"},{type:"object",properties:{packSize:{type:"integer",format:"int32",description:"The size of the pack the dog is from",default:1,minimum:1}},required:["packSize"]}]},HoneyBee:{description:"A representation of a honey bee",allOf:[{$ref:"#/components/schemas/Pet"},{type:"object",properties:{honeyPerDay:{type:"number",description:"Average amount of honey produced per day in ounces",example:3.14,multipleOf:.01}},required:["honeyPerDay"]}]},Id:{type:"integer",format:"int64",readOnly:!0},Order:{type:"object",properties:{id:{description:"Order ID",allOf:[{$ref:"#/components/schemas/Id"}]},petId:{description:"Pet ID",allOf:[{$ref:"#/components/schemas/Id"}]},quantity:{type:"integer",format:"int32",minimum:1,default:1},shipDate:{description:"Estimated ship date",type:"string",format:"date-time"},status:{type:"string",description:"Order Status",enum:["placed","approved","delivered"]},complete:{description:"Indicates whenever order was completed or not",type:"boolean",default:!1,readOnly:!0},requestId:{description:"Unique Request Id",type:"string",writeOnly:!0}},xml:{name:"Order"}},Pet:{type:"object",required:["name","photoUrls"],discriminator:{propertyName:"petType",mapping:{cat:"#/components/schemas/Cat",dog:"#/components/schemas/Dog",bee:"#/components/schemas/HoneyBee"}},properties:{id:{externalDocs:{description:"Find more info here",url:"https://example.com"},description:"Pet ID",allOf:[{$ref:"#/components/schemas/Id"}]},category:{description:"Categories this pet belongs to",allOf:[{$ref:"#/components/schemas/Category"}]},name:{description:"The name given to a pet",type:"string",example:"Guru"},photoUrls:{description:"The list of URL to a cute photos featuring pet",type:"array",maxItems:20,xml:{name:"photoUrl",wrapped:!0},items:{type:"string",format:"url"}},friend:{allOf:[{$ref:"#/components/schemas/Pet"}]},tags:{description:"Tags attached to the pet",type:"array",minItems:1,xml:{name:"tag",wrapped:!0},items:{$ref:"#/components/schemas/Tag"}},status:{type:"string",description:"Pet status in the store",enum:["available","pending","sold"]},petType:{description:"Type of a pet",type:"string"}},xml:{name:"Pet"}},Tag:{type:"object",properties:{id:{description:"Tag ID",allOf:[{$ref:"#/components/schemas/Id"}]},name:{description:"Tag name",type:"string",minLength:1}},xml:{name:"Tag"}},User:{type:"object",properties:{id:{$ref:"#/components/schemas/Id"},pet:{oneOf:[{$ref:"#/components/schemas/Pet"},{$ref:"#/components/schemas/Tag"}]},username:{description:"User supplied username",type:"string",minLength:4,example:"John78"},firstName:{description:"User first name",type:"string",minLength:1,example:"John"},lastName:{description:"User last name",type:"string",minLength:1,example:"Smith"},email:{description:"User email address",type:"string",format:"email",example:"john.smith@example.com"},password:{type:"string",description:"User password, MUST contain a mix of upper and lower case letters, as well as digits",format:"password",minLength:8,pattern:"/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/",example:"drowssaP123"},phone:{description:"User phone number in international format",type:"string",pattern:"/^\\+(?:[0-9]-?){6,14}[0-9]$/",example:"+1-202-555-0192"},userStatus:{description:"User status",type:"integer",format:"int32"}},xml:{name:"User"}}},requestBodies:{Pet:{content:{"application/json":{schema:{allOf:[{description:"My Pet",title:"Pettie"},{$ref:"#/components/schemas/Pet"}]}},"application/xml":{schema:{type:"object",properties:{name:{type:"string",description:"hooray"}}}}},description:"Pet object that needs to be added to the store",required:!0},UserArray:{content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/User"}}}},description:"List of user object",required:!0}},securitySchemes:{petstore_auth:{description:"Get access to data while protecting your account credentials.\nOAuth2 is also a safer and more secure way to give you access.\n",type:"oauth2",flows:{clientCredentials:{tokenUrl:"http://petstore.swagger.io/api/oauth/dialog",scopes:{"write:pets":"modify pets in your account","read:pets":"read your pets"}}}},api_key:{description:"For this sample, you can use the api key `special-key` to test the authorization filters.\n",type:"apiKey",name:"api_key",in:"header"}},examples:{Order:{value:{quantity:1,shipDate:"2018-10-19T16:46:45Z",status:"placed",complete:!1}}}},"x-webhooks":{newPet:{post:{summary:"New pet",description:"Information about a new pet in the systems",operationId:"newPet",tags:["pet"],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/Pet"}}}},responses:{200:{description:"Return a 200 status to indicate that the data was received successfully"}}}}}};export const originalOptions={withImports:!0,withComments:!1,skipOptionalParameters:!1,withOAuth2Call:!0,spec:spec};export const source={"POST http://petstore.swagger.io/v2/pet":{method:"post",url:"http://petstore.swagger.io/v2/pet",httpVersion:"HTTP/1.1",cookies:[{name:"cookieParam",value:"0"}],headers:[{name:"Content-Type",value:"application/json"},{name:"Accept-Language",value:"en-AU"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],postData:{mimeType:"application/json",text:'{"category":{"name":"string","sub":{"prop1":"string"}},"name":"Guru","photoUrls":["string"],"friend":{},"tags":[{"name":"string"}],"status":"available","petType":"cat","huntingSkill":"adventurous"}',params:[],jsonObj:{category:{name:"string",sub:{prop1:"string"}},name:"Guru",photoUrls:["string"],friend:{},tags:[{name:"string"}],status:"available",petType:"cat",huntingSkill:"adventurous"}},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{},serverVariables:{},queryObj:{},headersObj:{"Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{cookieParam:"0"},allHeaders:{cookie:"cookieParam=0","Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"",query:{},pathname:"/v2/pet",path:"/v2/pet",href:"http://petstore.swagger.io/v2/pet"},fullUrl:"http://petstore.swagger.io/v2/pet"},"POST http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}":{method:"post",url:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}",httpVersion:"HTTP/1.1",cookies:[],headers:[{name:"Content-Type",value:"application/octet-stream"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{petId:"",data:""},serverVariables:{},queryObj:{},headersObj:{"Content-Type":"application/octet-stream",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{},allHeaders:{"Content-Type":"application/octet-stream",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"",query:{},pathname:"/v2/pet/{petId}/uploadImage/{data}",path:"/v2/pet/{petId}/uploadImage/{data}",href:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}"},fullUrl:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}"},"PUT http://petstore.swagger.io/v2/pet":{method:"put",url:"http://petstore.swagger.io/v2/pet",httpVersion:"HTTP/1.1",cookies:[{name:"cookieParam",value:"0"}],headers:[{name:"Content-Type",value:"application/json"},{name:"Accept-Language",value:"en-AU"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],postData:{mimeType:"application/json",text:'{"category":{"name":"string","sub":{"prop1":"string"}},"name":"Guru","photoUrls":["string"],"friend":{},"tags":[{"name":"string"}],"status":"available","petType":"cat","huntingSkill":"adventurous"}',params:[],jsonObj:{category:{name:"string",sub:{prop1:"string"}},name:"Guru",photoUrls:["string"],friend:{},tags:[{name:"string"}],status:"available",petType:"cat",huntingSkill:"adventurous"}},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{},serverVariables:{},queryObj:{},headersObj:{"Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{cookieParam:"0"},allHeaders:{cookie:"cookieParam=0","Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"",query:{},pathname:"/v2/pet",path:"/v2/pet",href:"http://petstore.swagger.io/v2/pet"},fullUrl:"http://petstore.swagger.io/v2/pet"},"POST http://petstore.swagger.io/v2/pet/{petId}/uploadImage":{method:"post",url:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage",httpVersion:"HTTP/1.1",cookies:[],headers:[{name:"Content-Type",value:"application/octet-stream"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{petId:""},serverVariables:{},queryObj:{},headersObj:{"Content-Type":"application/octet-stream",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{},allHeaders:{"Content-Type":"application/octet-stream",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"",query:{},pathname:"/v2/pet/{petId}/uploadImage",path:"/v2/pet/{petId}/uploadImage",href:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage"},fullUrl:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage"},"GET http://petstore.swagger.io/v2/pet/findByStatus/{id}":{method:"get",url:"http://petstore.swagger.io/v2/pet/findByStatus/{id}",httpVersion:"HTTP/1.1",cookies:[],headers:[{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[{name:"status",value:"available"}],headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{id:""},serverVariables:{},queryObj:{status:"available"},headersObj:{Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{},allHeaders:{Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"status=available",query:{status:"available"},pathname:"/v2/pet/findByStatus/{id}",path:"/v2/pet/findByStatus/{id}?status=available",href:"http://petstore.swagger.io/v2/pet/findByStatus/%7Bid%7D"},fullUrl:"http://petstore.swagger.io/v2/pet/findByStatus/{id}?status=available"},"POST https://{customerId}.saas-app.com:{port}/v2":{method:"post",url:"https://{customerId}.saas-app.com:{port}/v2/pet",httpVersion:"HTTP/1.1",cookies:[{name:"cookieParam",value:"0"}],headers:[{name:"Content-Type",value:"application/json"},{name:"Accept-Language",value:"en-AU"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],postData:{mimeType:"application/json",text:"text",params:[],jsonObj:{category:{name:"string",sub:{prop1:"string"}},name:"Guru",photoUrls:["string"],friend:{},tags:[{name:"string"}],cvv_check:"string",status:"available",petType:"cat",huntingSkill:"adventurous"}},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[],pathParameters:{},serverVariables:{customerId:"demo",port:"443"},queryObj:{},headersObj:{"Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{cookieParam:"0"},allHeaders:{cookie:"cookieParam=0","Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"https:",slashes:!0,auth:null,host:"",port:null,hostname:"",hash:null,search:"",query:{},pathname:"{customerId}.saas-app.com:{port}/v2/pet",path:"{customerId}.saas-app.com:{port}/v2/pet",href:"https:///%7BcustomerId%7D.saas-app.com:%7Bport%7D/v2/pet"},fullUrl:"https://{customerId}.saas-app.com:{port}/v2/pet"},"POST http://petstore.swagger.io/login":{method:"post",url:"http://petstore.swagger.io/login",httpVersion:"HTTP/1.1",headers:[],queryString:[],postData:{mimeType:"application/json",text:"text",params:[],jsonObj:{}},basicAuth:{username:"usernamestring",password:"passwordstring"},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[],pathParameters:{},queryObj:{},headersObj:{},cookiesObj:{},allHeaders:{},serverVariables:{},cookies:[{name:"cookieParam",value:"0"}],uriObj:{protocol:"https:",slashes:!0,auth:null,host:"",port:null,hostname:"",hash:null,search:"",query:{},pathname:"petstore.swagger.io/login",path:"petstore.swagger.io/login",href:"https://petstore.swagger.io/login"},fullUrl:"https://petstore.swagger.io/login"}};export const serverVariablesOptions={withImports:!0,withComments:!1,skipOptionalParameters:!1,withOAuth2Call:!0,spec:Object.assign(Object.assign({},spec),{servers:[{url:"https://{customerId}.saas-app.com:{port}/v2",variables:{customerId:{default:"demo",description:"Customer ID assigned by the service provider"},port:{enum:["443","8443"],default:"443"}}}]})};
1
+ const spec={openapi:"3.0.0",servers:[{url:"//petstore.swagger.io/v2",description:"Default server"},{url:"//petstore.swagger.io/sandbox",description:"Sandbox server"}],info:{description:"This is a sample server Petstore server.\nYou can find out more about Swagger at\n[http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/).\nFor this sample, you can use the api key `special-key` to test the authorization filters.\n\n# Introduction\nThis API is documented in **OpenAPI format** and is based on\n[Petstore sample](http://petstore.swagger.io/) provided by [swagger.io](http://swagger.io) team.\nIt was **extended** to illustrate features of [generator-openapi-repo](https://github.com/Rebilly/generator-openapi-repo)\ntool and [ReDoc](https://github.com/Redocly/redoc) documentation. In addition to standard\nOpenAPI syntax we use a few [vendor extensions](https://github.com/Redocly/redoc/blob/master/docs/redoc-vendor-extensions.md).\n\n# OpenAPI Specification\nThis API is documented in **OpenAPI format** and is based on\n[Petstore sample](http://petstore.swagger.io/) provided by [swagger.io](http://swagger.io) team.\nIt was **extended** to illustrate features of [generator-openapi-repo](https://github.com/Rebilly/generator-openapi-repo)\ntool and [ReDoc](https://github.com/Redocly/redoc) documentation. In addition to standard\nOpenAPI syntax we use a few [vendor extensions](https://github.com/Redocly/redoc/blob/master/docs/redoc-vendor-extensions.md).\n\n## Subheader 1\n\nConsectetur adipiscing elit. Etiam fringilla tincidunt magna non dignissim. Vestibulum vestibulum ipsum augue, sed rhoncus diam consequat sodales. Sed facilisis maximus enim, ut scelerisque lorem ullamcorper eget. Suspendisse venenatis non lectus sed bibendum.\n*Duis neque ante, ultrices at ornare aliquam, vulputate ac dolor.*\n\n## Subheader 2\n\nLorem ipsum dolor sit amet. Ut tempor sem vitae dui varius, consequat varius ligula fringilla. Nulla accumsan pellentesque lorem eu pharetra. Duis vel est metus. Nulla id quam eget ante egestas fringilla. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vulputate pulvinar turpis, ac convallis quam.\n\n# Cross-Origin Resource Sharing\nThis API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/).\nAnd that allows cross-domain communication from the browser.\nAll responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.\n\n# Authentication\n\nPetstore offers two forms of authentication:\n - API Key\n - OAuth2\nOAuth2 - an open protocol to allow secure authorization in a simple\nand standard method from web, mobile and desktop applications.\n",version:"1.0.0",title:"Swagger Petstore",termsOfService:"http://swagger.io/terms/",contact:{name:"API Support",email:"apiteam@swagger.io",url:"https://github.com/Redocly/redoc"},"x-logo":{url:"https://redocly.github.io/redoc/petstore-logo.png",altText:"Petstore logo"},license:{name:"Apache 2.0",url:"http://www.apache.org/licenses/LICENSE-2.0.html"}},externalDocs:{description:"Find out how to create Github repo for your OpenAPI spec.",url:"https://github.com/Rebilly/generator-openapi-repo"},tags:[{name:"pet",description:"Lorem ipsum dolor sit amet.\n\n**Consectetur** adipiscing elit. Etiam fringilla tincidunt magna non dignissim. Vestibulum vestibulum ipsum augue, sed rhoncus diam consequat sodales. Sed facilisis maximus enim, ut scelerisque lorem ullamcorper eget. Suspendisse venenatis non lectus sed bibendum.\n*Duis neque ante, ultrices at ornare aliquam, vulputate ac dolor.*\n\nPellentesque nulla lorem:\n- dapibus lacinia magna vitae, \n- eleifend bibendum nisi\n\nNullam pretium erat ut augue mollis, id varius orci pretium. \n> Ut efficitur eget dui eget molestie.\n\nUt tempor sem vitae dui varius, consequat varius ligula fringilla. Nulla accumsan pellentesque lorem eu pharetra. Duis vel est metus. Nulla id quam eget ante egestas fringilla. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vulputate pulvinar turpis, ac convallis quam.\n[More info](http://swagger.io)\n"},{name:"store"},{name:"user",description:"Operations about user\n\n## Custom section 1\nNullam pretium erat ut augue mollis, id varius orci pretium. \n\n\n## Custom section 2\nNulla accumsan pellentesque lorem eu pharetra. Duis vel est metus. Nulla id quam eget ante egestas fringilla. Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n\nSome Item\n"},{name:"pet_model","x-displayName":"The Pet Model",description:'<SchemaDefinition schemaRef="#/components/schemas/Pet" />\n'},{name:"store_model","x-displayName":"The Order Model",description:'<SchemaDefinition schemaRef="#/components/schemas/Order" exampleRef="#/components/examples/Order" showReadOnly={true} showWriteOnly={true} />\n'}],"x-tagGroups":[{name:"General",tags:["pet","store"]},{name:"User Management",tags:["user"]},{name:"Models",tags:["pet_model","store_model"]}],paths:{"/pet":{parameters:[{name:"Accept-Language",in:"header",description:"The language you prefer for messages. Supported values are en-AU, en-CA, en-GB, en-US",example:"en-US",required:!1,schema:{type:"string",default:"en-AU"}},{name:"cookieParam",in:"cookie",description:"Some cookie",required:!0,schema:{type:"integer",format:"int64"}}],post:{tags:["pet"],summary:"Add a new pet to the store",description:"Add new pet to the store inventory.",operationId:"addPet",responses:{405:{description:"Invalid input"}},security:[{petstore_auth:["write:pets","read:pets"]}],"x-codeSamples":[{lang:"C#",source:'PetStore.v1.Pet pet = new PetStore.v1.Pet();\npet.setApiKey("your api key");\npet.petType = PetStore.v1.Pet.TYPE_DOG;\npet.name = "Rex";\n// set other fields\nPetStoreResponse response = pet.create();\nif (response.statusCode == HttpStatusCode.Created)\n{\n // Successfully created\n}\nelse\n{\n // Something wrong -- check response for errors\n Console.WriteLine(response.getRawResponse());\n}\n'},{lang:"PHP",source:'$form = new \\PetStore\\Entities\\Pet();\n$form->setPetType("Dog");\n$form->setName("Rex");\n// set other fields\ntry {\n $pet = $client->pets()->create($form);\n} catch (UnprocessableEntityException $e) {\n var_dump($e->getErrors());\n}\n'}],requestBody:{$ref:"#/components/requestBodies/Pet"}},put:{tags:["pet"],summary:"Update an existing pet",description:"",operationId:"updatePet",responses:{400:{description:"Invalid ID supplied"},404:{description:"Pet not found"},405:{description:"Validation exception"}},security:[{petstore_auth:["write:pets","read:pets"]}],"x-codeSamples":[{lang:"PHP",source:'$form = new \\PetStore\\Entities\\Pet();\n$form->setPetId(1);\n$form->setPetType("Dog");\n$form->setName("Rex");\n// set other fields\ntry {\n $pet = $client->pets()->update($form);\n} catch (UnprocessableEntityException $e) {\n var_dump($e->getErrors());\n}\n'}],requestBody:{$ref:"#/components/requestBodies/Pet"}}},"/pet/{petId}":{get:{tags:["pet"],summary:"Find pet by ID",description:"Returns a single pet",operationId:"getPetById",parameters:[{name:"petId",in:"path",description:"ID of pet to return",required:!0,deprecated:!0,schema:{type:"integer",format:"int64"}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/Pet"}},"application/xml":{schema:{$ref:"#/components/schemas/Pet"}}}},400:{description:"Invalid ID supplied"},404:{description:"Pet not found"}},security:[{api_key:[]}]},post:{tags:["pet"],summary:"Updates a pet in the store with form data",description:"",operationId:"updatePetWithForm",parameters:[{name:"petId",in:"path",description:"ID of pet that needs to be updated",required:!0,schema:{type:"integer",format:"int64"}}],responses:{405:{description:"Invalid input"}},security:[{petstore_auth:["write:pets","read:pets"]}],requestBody:{content:{"application/x-www-form-urlencoded":{schema:{type:"object",properties:{name:{description:"Updated name of the pet",type:"string"},status:{description:"Updated status of the pet",type:"string"}}}}}}},delete:{tags:["pet"],summary:"Deletes a pet",description:"",operationId:"deletePet",parameters:[{name:"api_key",in:"header",required:!1,schema:{type:"string"},example:"Bearer <TOKEN>"},{name:"petId",in:"path",description:"Pet id to delete",required:!0,schema:{type:"integer",format:"int64"}}],responses:{400:{description:"Invalid pet value"}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/pet/{petId}/uploadImage":{post:{tags:["pet"],summary:"uploads an image",description:"",operationId:"uploadFile",parameters:[{name:"petId",in:"path",description:"ID of pet to update",required:!0,schema:{type:"integer",format:"int64"}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/ApiResponse"}}}}},security:[{petstore_auth:["write:pets","read:pets"]}],requestBody:{content:{"application/octet-stream":{schema:{type:"string",format:"binary"}}}}}},"/pet/{petId}/uploadImage/{data}":{post:{tags:["pet"],summary:"uploads an image",description:"",operationId:"uploadFile",parameters:[{name:"petId",in:"path",description:"ID of pet to update",required:!0,schema:{type:"integer",format:"int64"}},{name:"data",in:"path",description:"ID of pet to update",required:!0,schema:{type:"integer",format:"int64"}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/ApiResponse"}}}}},security:[{petstore_auth:["write:pets","read:pets"]}],requestBody:{content:{"application/octet-stream":{schema:{type:"string",format:"binary"}}}}}},"/pet/findByStatus":{get:{tags:["pet"],summary:"Finds Pets by status",description:"Multiple status values can be provided with comma separated strings",operationId:"findPetsByStatus",parameters:[{name:"status",in:"query",description:"Status values that need to be considered for filter",required:!0,style:"form",schema:{type:"array",minItems:1,maxItems:3,items:{type:"string",enum:["available","pending","sold"],default:"available"}}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Pet"}}},"application/xml":{schema:{type:"array",items:{$ref:"#/components/schemas/Pet"}}}}},400:{description:"Invalid status value"}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/pet/findByTags":{get:{tags:["pet"],summary:"Finds Pets by tags",description:"Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",operationId:"findPetsByTags",deprecated:!0,parameters:[{name:"tags",in:"query",description:"Tags to filter by",required:!0,style:"form",schema:{type:"array",items:{type:"string"}}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Pet"}}},"application/xml":{schema:{type:"array",items:{$ref:"#/components/schemas/Pet"}}}}},400:{description:"Invalid tag value"}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/store/inventory":{get:{tags:["store"],summary:"Returns pet inventories by status",description:"Returns a map of status codes to quantities",operationId:"getInventory",responses:{200:{description:"successful operation",content:{"application/json":{schema:{type:"object",additionalProperties:{type:"integer",format:"int32"}}}}}},security:[{api_key:[]}]}},"/store/order":{post:{tags:["store"],summary:"Place an order for a pet",description:"",operationId:"placeOrder",responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/Order"}},"application/xml":{schema:{$ref:"#/components/schemas/Order"}}}},400:{description:"Invalid Order",content:{"application/json":{example:{status:400,message:"Invalid Order"}}}}},requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/Order"}}},description:"order placed for purchasing the pet",required:!0}}},"/store/order/{orderId}":{get:{tags:["store"],summary:"Find purchase order by ID",description:"For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions",operationId:"getOrderById",parameters:[{name:"orderId",in:"path",description:"ID of pet that needs to be fetched",required:!0,schema:{type:"integer",format:"int64",minimum:1,maximum:5}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/Order"}},"application/xml":{schema:{$ref:"#/components/schemas/Order"}}}},400:{description:"Invalid ID supplied"},404:{description:"Order not found"}}},delete:{tags:["store"],summary:"Delete purchase order by ID",description:"For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors",operationId:"deleteOrder",parameters:[{name:"orderId",in:"path",description:"ID of the order that needs to be deleted",required:!0,schema:{type:"string",minimum:1}}],responses:{400:{description:"Invalid ID supplied"},404:{description:"Order not found"}}}},"/store/subscribe":{post:{tags:["store"],summary:"Subscribe to the Store events",description:"Add subscription for a store events",requestBody:{content:{"application/json":{schema:{type:"object",properties:{callbackUrl:{type:"string",format:"uri",description:"This URL will be called by the server when the desired event will occur",example:"https://myserver.com/send/callback/here"},eventName:{type:"string",description:"Event name for the subscription",enum:["orderInProgress","orderShipped","orderDelivered"],example:"orderInProgress"}},required:["callbackUrl","eventName"]}}}},responses:{201:{description:"Subscription added",content:{"application/json":{schema:{type:"object",properties:{subscriptionId:{type:"string",example:"AAA-123-BBB-456"}}}}}}},callbacks:{orderInProgress:{"{$request.body#/callbackUrl}?event={$request.body#/eventName}":{servers:[{url:"//callback-url.path-level/v1",description:"Path level server 1"},{url:"//callback-url.path-level/v2",description:"Path level server 2"}],post:{summary:"Order in Progress (Summary)",description:'A callback triggered every time an Order is updated status to "inProgress" (Description)',externalDocs:{description:"Find out more",url:"https://more-details.com/demo"},requestBody:{content:{"application/json":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"},timestamp:{type:"string",format:"date-time",example:"2018-10-19T16:46:45Z"},status:{type:"string",example:"inProgress"}}}},"application/xml":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"}}},example:'<?xml version="1.0" encoding="UTF-8"?>\n<root>\n <orderId>123</orderId>\n <status>inProgress</status>\n <timestamp>2018-10-19T16:46:45Z</timestamp>\n</root>\n'}}},responses:{200:{description:"Callback successfully processed and no retries will be performed",content:{"application/json":{schema:{type:"object",properties:{someProp:{type:"string",example:"123"}}}}}},299:{description:"Response for cancelling subscription"},500:{description:"Callback processing failed and retries will be performed"}},"x-codeSamples":[{lang:"C#",source:'PetStore.v1.Pet pet = new PetStore.v1.Pet();\npet.setApiKey("your api key");\npet.petType = PetStore.v1.Pet.TYPE_DOG;\npet.name = "Rex";\n// set other fields\nPetStoreResponse response = pet.create();\nif (response.statusCode == HttpStatusCode.Created)\n{\n // Successfully created\n}\nelse\n{\n // Something wrong -- check response for errors\n Console.WriteLine(response.getRawResponse());\n}\n'},{lang:"PHP",source:'$form = new \\PetStore\\Entities\\Pet();\n$form->setPetType("Dog");\n$form->setName("Rex");\n// set other fields\ntry {\n $pet = $client->pets()->create($form);\n} catch (UnprocessableEntityException $e) {\n var_dump($e->getErrors());\n}\n'}]},put:{description:"Order in Progress (Only Description)",servers:[{url:"//callback-url.operation-level/v1",description:"Operation level server 1 (Operation override)"},{url:"//callback-url.operation-level/v2",description:"Operation level server 2 (Operation override)"}],requestBody:{content:{"application/json":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"},timestamp:{type:"string",format:"date-time",example:"2018-10-19T16:46:45Z"},status:{type:"string",example:"inProgress"}}}},"application/xml":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"}}},example:'<?xml version="1.0" encoding="UTF-8"?>\n<root>\n <orderId>123</orderId>\n <status>inProgress</status>\n <timestamp>2018-10-19T16:46:45Z</timestamp>\n</root>\n'}}},responses:{200:{description:"Callback successfully processed and no retries will be performed",content:{"application/json":{schema:{type:"object",properties:{someProp:{type:"string",example:"123"}}}}}}}}}},orderShipped:{"{$request.body#/callbackUrl}?event={$request.body#/eventName}":{post:{description:"Very long description\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor\nincididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis\nnostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\nDuis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu\nfugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in\nculpa qui officia deserunt mollit anim id est laborum.\n",requestBody:{content:{"application/json":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"},timestamp:{type:"string",format:"date-time",example:"2018-10-19T16:46:45Z"},estimatedDeliveryDate:{type:"string",format:"date-time",example:"2018-11-11T16:00:00Z"}}}}}},responses:{200:{description:"Callback successfully processed and no retries will be performed"}}}}},orderDelivered:{"http://notificationServer.com?url={$request.body#/callbackUrl}&event={$request.body#/eventName}":{post:{deprecated:!0,summary:"Order delivered",description:"A callback triggered every time an Order is delivered to the recipient",requestBody:{content:{"application/json":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"},timestamp:{type:"string",format:"date-time",example:"2018-10-19T16:46:45Z"}}}}}},responses:{200:{description:"Callback successfully processed and no retries will be performed"}}}}}}}},"/user":{post:{tags:["user"],summary:"Create user",description:"This can only be done by the logged in user.",operationId:"createUser",responses:{default:{description:"successful operation"}},requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/User"}}},description:"Created user object",required:!0}}},"/user/{username}":{get:{tags:["user"],summary:"Get user by user name",description:"",operationId:"getUserByName",parameters:[{name:"username",in:"path",description:"The name that needs to be fetched. Use user1 for testing. ",required:!0,schema:{type:"string"}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/User"}},"application/xml":{schema:{$ref:"#/components/schemas/User"}}}},400:{description:"Invalid username supplied"},404:{description:"User not found"}}},put:{tags:["user"],summary:"Updated user",description:"This can only be done by the logged in user.",operationId:"updateUser",parameters:[{name:"username",in:"path",description:"name that need to be deleted",required:!0,schema:{type:"string"}}],responses:{400:{description:"Invalid user supplied"},404:{description:"User not found"}},requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/User"}}},description:"Updated user object",required:!0}},delete:{tags:["user"],summary:"Delete user",description:"This can only be done by the logged in user.",operationId:"deleteUser",parameters:[{name:"username",in:"path",description:"The name that needs to be deleted",required:!0,schema:{type:"string"}}],responses:{400:{description:"Invalid username supplied"},404:{description:"User not found"}}}},"/user/createWithArray":{post:{tags:["user"],summary:"Creates list of users with given input array",description:"",operationId:"createUsersWithArrayInput",responses:{default:{description:"successful operation"}},requestBody:{$ref:"#/components/requestBodies/UserArray"}}},"/user/createWithList":{post:{tags:["user"],summary:"Creates list of users with given input array",description:"",operationId:"createUsersWithListInput",responses:{default:{description:"successful operation"}},requestBody:{$ref:"#/components/requestBodies/UserArray"}}},"/user/login":{get:{tags:["user"],summary:"Logs user into the system",description:"",operationId:"loginUser",parameters:[{name:"username",in:"query",description:"The user name for login",required:!0,schema:{type:"string"}},{name:"password",in:"query",description:"The password for login in clear text",required:!0,schema:{type:"string"}}],responses:{200:{description:"successful operation",headers:{"X-Rate-Limit":{description:"calls per hour allowed by the user",schema:{type:"integer",format:"int32"}},"X-Expires-After":{description:"date in UTC when token expires",schema:{type:"string",format:"date-time"}}},content:{"application/json":{schema:{type:"string"},examples:{response:{value:"OK"}}},"application/xml":{schema:{type:"string"},examples:{response:{value:"<Message> OK </Message>"}}},"text/plain":{examples:{response:{value:"OK"}}}}},400:{description:"Invalid username/password supplied"}}}},"/user/logout":{get:{tags:["user"],summary:"Logs out current logged in user session",description:"",operationId:"logoutUser",responses:{default:{description:"successful operation"}}}}},components:{schemas:{ApiResponse:{type:"object",properties:{code:{type:"integer",format:"int32"},type:{type:"string"},message:{type:"string"}}},Cat:{description:"A representation of a cat",allOf:[{$ref:"#/components/schemas/Pet"},{type:"object",properties:{huntingSkill:{type:"string",description:"The measured skill for hunting",default:"lazy",example:"adventurous",enum:["clueless","lazy","adventurous","aggressive"]}},required:["huntingSkill"]}]},Category:{type:"object",properties:{id:{description:"Category ID",allOf:[{$ref:"#/components/schemas/Id"}]},name:{description:"Category name",type:"string",minLength:1},sub:{description:"Test Sub Category",type:"object",properties:{prop1:{type:"string",description:"Dumb Property"}}}},xml:{name:"Category"}},Dog:{description:"A representation of a dog",allOf:[{$ref:"#/components/schemas/Pet"},{type:"object",properties:{packSize:{type:"integer",format:"int32",description:"The size of the pack the dog is from",default:1,minimum:1}},required:["packSize"]}]},HoneyBee:{description:"A representation of a honey bee",allOf:[{$ref:"#/components/schemas/Pet"},{type:"object",properties:{honeyPerDay:{type:"number",description:"Average amount of honey produced per day in ounces",example:3.14,multipleOf:.01}},required:["honeyPerDay"]}]},Id:{type:"integer",format:"int64",readOnly:!0},Order:{type:"object",properties:{id:{description:"Order ID",allOf:[{$ref:"#/components/schemas/Id"}]},petId:{description:"Pet ID",allOf:[{$ref:"#/components/schemas/Id"}]},quantity:{type:"integer",format:"int32",minimum:1,default:1},shipDate:{description:"Estimated ship date",type:"string",format:"date-time"},status:{type:"string",description:"Order Status",enum:["placed","approved","delivered"]},complete:{description:"Indicates whenever order was completed or not",type:"boolean",default:!1,readOnly:!0},requestId:{description:"Unique Request Id",type:"string",writeOnly:!0}},xml:{name:"Order"}},Pet:{type:"object",required:["name","photoUrls"],discriminator:{propertyName:"petType",mapping:{cat:"#/components/schemas/Cat",dog:"#/components/schemas/Dog",bee:"#/components/schemas/HoneyBee"}},properties:{id:{externalDocs:{description:"Find more info here",url:"https://example.com"},description:"Pet ID",allOf:[{$ref:"#/components/schemas/Id"}]},category:{description:"Categories this pet belongs to",allOf:[{$ref:"#/components/schemas/Category"}]},name:{description:"The name given to a pet",type:"string",example:"Guru"},photoUrls:{description:"The list of URL to a cute photos featuring pet",type:"array",maxItems:20,xml:{name:"photoUrl",wrapped:!0},items:{type:"string",format:"url"}},friend:{allOf:[{$ref:"#/components/schemas/Pet"}]},tags:{description:"Tags attached to the pet",type:"array",minItems:1,xml:{name:"tag",wrapped:!0},items:{$ref:"#/components/schemas/Tag"}},status:{type:"string",description:"Pet status in the store",enum:["available","pending","sold"]},petType:{description:"Type of a pet",type:"string"}},xml:{name:"Pet"}},Tag:{type:"object",properties:{id:{description:"Tag ID",allOf:[{$ref:"#/components/schemas/Id"}]},name:{description:"Tag name",type:"string",minLength:1}},xml:{name:"Tag"}},User:{type:"object",properties:{id:{$ref:"#/components/schemas/Id"},pet:{oneOf:[{$ref:"#/components/schemas/Pet"},{$ref:"#/components/schemas/Tag"}]},username:{description:"User supplied username",type:"string",minLength:4,example:"John78"},firstName:{description:"User first name",type:"string",minLength:1,example:"John"},lastName:{description:"User last name",type:"string",minLength:1,example:"Smith"},email:{description:"User email address",type:"string",format:"email",example:"john.smith@example.com"},password:{type:"string",description:"User password, MUST contain a mix of upper and lower case letters, as well as digits",format:"password",minLength:8,pattern:"/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/",example:"drowssaP123"},phone:{description:"User phone number in international format",type:"string",pattern:"/^\\+(?:[0-9]-?){6,14}[0-9]$/",example:"+1-202-555-0192"},userStatus:{description:"User status",type:"integer",format:"int32"}},xml:{name:"User"}}},requestBodies:{Pet:{content:{"application/json":{schema:{allOf:[{description:"My Pet",title:"Pettie"},{$ref:"#/components/schemas/Pet"}]}},"application/xml":{schema:{type:"object",properties:{name:{type:"string",description:"hooray"}}}}},description:"Pet object that needs to be added to the store",required:!0},UserArray:{content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/User"}}}},description:"List of user object",required:!0}},securitySchemes:{petstore_auth:{description:"Get access to data while protecting your account credentials.\nOAuth2 is also a safer and more secure way to give you access.\n",type:"oauth2",flows:{clientCredentials:{tokenUrl:"http://petstore.swagger.io/api/oauth/dialog",scopes:{"write:pets":"modify pets in your account","read:pets":"read your pets"}}}},api_key:{description:"For this sample, you can use the api key `special-key` to test the authorization filters.\n",type:"apiKey",name:"api_key",in:"header"}},examples:{Order:{value:{quantity:1,shipDate:"2018-10-19T16:46:45Z",status:"placed",complete:!1}}}},"x-webhooks":{newPet:{post:{summary:"New pet",description:"Information about a new pet in the systems",operationId:"newPet",tags:["pet"],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/Pet"}}}},responses:{200:{description:"Return a 200 status to indicate that the data was received successfully"}}}}}};export const originalOptions={withImports:!0,withComments:!1,skipOptionalParameters:!1,withOAuth2Call:!0,spec:spec};export const source={"POST http://petstore.swagger.io/v2/pet":{method:"post",url:"http://petstore.swagger.io/v2/pet",httpVersion:"HTTP/1.1",cookies:[{name:"cookieParam",value:"0"}],headers:[{name:"Content-Type",value:"application/json"},{name:"Accept-Language",value:"en-AU"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],postData:{mimeType:"application/json",text:'{"category":{"name":"string","sub":{"prop1":"string"}},"name":"Guru","photoUrls":["string"],"friend":{},"tags":[{"name":"string"}],"status":"available","petType":"cat","huntingSkill":"adventurous"}',params:[],jsonObj:{category:{name:"string",sub:{prop1:"string"}},name:"Guru",photoUrls:["string"],friend:{},tags:[{name:"string"}],status:"available",petType:"cat",huntingSkill:"adventurous"}},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{},serverVariables:{},queryObj:{},headersObj:{"Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{cookieParam:"0"},allHeaders:{cookie:"cookieParam=0","Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"",query:{},pathname:"/v2/pet",path:"/v2/pet",href:"http://petstore.swagger.io/v2/pet"},fullUrl:"http://petstore.swagger.io/v2/pet"},"POST http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}":{method:"post",url:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}",httpVersion:"HTTP/1.1",cookies:[],headers:[{name:"Content-Type",value:"application/octet-stream"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{petId:"",data:""},serverVariables:{},queryObj:{},headersObj:{"Content-Type":"application/octet-stream",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{},allHeaders:{"Content-Type":"application/octet-stream",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"",query:{},pathname:"/v2/pet/{petId}/uploadImage/{data}",path:"/v2/pet/{petId}/uploadImage/{data}",href:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}"},fullUrl:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}"},"PUT http://petstore.swagger.io/v2/pet":{method:"put",url:"http://petstore.swagger.io/v2/pet",httpVersion:"HTTP/1.1",cookies:[{name:"cookieParam",value:"0"}],headers:[{name:"Content-Type",value:"application/json"},{name:"Accept-Language",value:"en-AU"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],postData:{mimeType:"application/json",text:'{"category":{"name":"string","sub":{"prop1":"string"}},"name":"Guru","photoUrls":["string"],"friend":{},"tags":[{"name":"string"}],"status":"available","petType":"cat","huntingSkill":"adventurous"}',params:[],jsonObj:{category:{name:"string",sub:{prop1:"string"}},name:"Guru",photoUrls:["string"],friend:{},tags:[{name:"string"}],status:"available",petType:"cat",huntingSkill:"adventurous"}},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{},serverVariables:{},queryObj:{},headersObj:{"Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{cookieParam:"0"},allHeaders:{cookie:"cookieParam=0","Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"",query:{},pathname:"/v2/pet",path:"/v2/pet",href:"http://petstore.swagger.io/v2/pet"},fullUrl:"http://petstore.swagger.io/v2/pet"},"POST http://petstore.swagger.io/v2/pet/{petId}/uploadImage":{method:"post",url:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage",httpVersion:"HTTP/1.1",cookies:[],headers:[{name:"Content-Type",value:"application/octet-stream"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{petId:""},serverVariables:{},queryObj:{},headersObj:{"Content-Type":"application/octet-stream",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{},allHeaders:{"Content-Type":"application/octet-stream",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"",query:{},pathname:"/v2/pet/{petId}/uploadImage",path:"/v2/pet/{petId}/uploadImage",href:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage"},fullUrl:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage"},"GET http://petstore.swagger.io/v2/pet/findByStatus/{id}":{method:"get",url:"http://petstore.swagger.io/v2/pet/findByStatus/{id}",httpVersion:"HTTP/1.1",cookies:[],headers:[{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[{name:"status",value:"available"}],headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{id:""},serverVariables:{},queryObj:{status:"available"},headersObj:{Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{},allHeaders:{Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"status=available",query:{status:"available"},pathname:"/v2/pet/findByStatus/{id}",path:"/v2/pet/findByStatus/{id}?status=available",href:"http://petstore.swagger.io/v2/pet/findByStatus/%7Bid%7D"},fullUrl:"http://petstore.swagger.io/v2/pet/findByStatus/{id}?status=available"},"POST https://{customerId}.saas-app.com:{port}/v2":{method:"post",url:"https://{customerId}.saas-app.com:{port}/v2/pet",httpVersion:"HTTP/1.1",cookies:[{name:"cookieParam",value:"0"}],headers:[{name:"Content-Type",value:"application/json"},{name:"Accept-Language",value:"en-AU"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],postData:{mimeType:"application/json",text:"text",params:[],jsonObj:{category:{name:"string",sub:{prop1:"string"}},name:"Guru",photoUrls:["string"],friend:{},tags:[{name:"string"}],cvv_check:"string",status:"available",petType:"cat",huntingSkill:"adventurous"}},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[],pathParameters:{},serverVariables:{customerId:"demo",port:"443"},queryObj:{},headersObj:{"Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{cookieParam:"0"},allHeaders:{cookie:"cookieParam=0","Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"https:",slashes:!0,auth:null,host:"",port:null,hostname:"",hash:null,search:"",query:{},pathname:"{customerId}.saas-app.com:{port}/v2/pet",path:"{customerId}.saas-app.com:{port}/v2/pet",href:"https:///%7BcustomerId%7D.saas-app.com:%7Bport%7D/v2/pet"},fullUrl:"https://{customerId}.saas-app.com:{port}/v2/pet"},"POST http://petstore.swagger.io/login":{method:"post",url:"http://petstore.swagger.io/login",httpVersion:"HTTP/1.1",headers:[],queryString:[],postData:{mimeType:"application/json",text:"text",params:[],jsonObj:{}},basicAuth:{username:"usernamestring",password:"passwordstring"},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[],pathParameters:{},queryObj:{},headersObj:{},cookiesObj:{},allHeaders:{},serverVariables:{},cookies:[{name:"cookieParam",value:"0"}],uriObj:{protocol:"https:",slashes:!0,auth:null,host:"",port:null,hostname:"",hash:null,search:"",query:{},pathname:"petstore.swagger.io/login",path:"petstore.swagger.io/login",href:"https://petstore.swagger.io/login"},fullUrl:"https://petstore.swagger.io/login"}};export const serverVariablesOptions={withImports:!0,withComments:!1,skipOptionalParameters:!1,withOAuth2Call:!0,spec:Object.assign(Object.assign({},spec),{servers:[{url:"https://{customerId}.saas-app.com:{port}/v2",variables:{customerId:{default:"demo",description:"Customer ID assigned by the service provider"},port:{enum:["443","8443"],default:"443"}}}]})};
2
2
  //# sourceMappingURL=mock.js.map
@@ -1,2 +1,2 @@
1
- import{CodeBuilder}from"../../helpers/code-builder";import{HTTPSnippet}from"../..";import{buildUrlExpression,printUrlVariablesDeclarations}from"../../helpers/code-helpers";import{isEmptyObject,normalizeMimeType}from"../../../../utils";import{capitalizeFirst}from"../../../generator";import{Lang}from"../../helpers/constants";import{MediaTypes}from"../../../../../constants";import{checkIfIsObject,isLastInArray,isLastProperty}from"../../../../../utils";const handler=function(t,e,{target:s,client:a}){var n,i,r,o;const p=Object.assign({indent:" ",withWrapper:!0},e),u=new CodeBuilder({indentation:p.indent,variablesPrefix:p.variablesPrefix,capitalize:!0,lang:Lang.CSHARP}),l=formatHttpMethod(t.method);if(p.withComments&&addComments(u),p.withWrapper&&(u.push("using System;"),u.push("using System.Net.Http;"),u.push("using System.Threading.Tasks;"),(h(MediaTypes.JSON)||h(MediaTypes.XML)||t.basicAuth)&&u.push("using System.Text;"),(h(MediaTypes.URL_ENCODED)||(null===(n=t.securityOAuth2ExtraCalls)||void 0===n?void 0:n.length))&&u.push("using System.Collections.Generic;"),(h(MediaTypes.JSON)||(null===(i=t.securityOAuth2ExtraCalls)||void 0===i?void 0:i.length))&&u.push("using System.Text.Json;"),m()&&u.push("using System.IO;"),(m()||t.basicAuth)&&u.push("using System.Net.Http.Headers;"),u.blank(),u.push("public class Program"),u.push("{"),u.push(1,"public static async Task Main()"),u.push(1,"{")),null===(r=t.securityOAuth2ExtraCalls)||void 0===r?void 0:r.length){const e=new HTTPSnippet(null===(o=t.securityOAuth2ExtraCalls)||void 0===o?void 0:o[0]).convert(s,a,Object.assign(Object.assign({},p),{withImports:!1,withWrapper:!1,withComments:!1,variablesPrefix:"oauth2"}));u.push(e),u.push(2,"var oauth2Response = await oauth2Request.Content.ReadAsStringAsync();"),u.push(2,"JObject inputJObject = JObject.Parse(oauth2Response);"),u.push(2,'var accessToken = inputJObject["access_token"].ToString();'),u.blank()}const c=Object.keys(t.allHeaders).filter((t=>{switch(t.toLowerCase()){case"content-type":case"content-length":case"accept-encoding":return!1;default:return!0}}));if(c.length?(u.push(2,"System.Net.Http.HttpClient client = new()"),u.push(2,"{"),u.push(3,"DefaultRequestHeaders ="),u.push(3,"{"),c.forEach((e=>{var s;u.push(4,'{"%s", %s},',e,(null===(s=t.securityOAuth2ExtraCalls)||void 0===s?void 0:s.length)?'"Bearer " + accessToken':`"${t.allHeaders[e]}"`)})),u.push(3,"}"),u.push(2,"};")):u.push(2,"System.Net.Http.HttpClient client = new();"),u.blank(),t.basicAuth){const{username:e,password:s}=t.basicAuth;u.push(2,`string base64String = Convert.ToBase64String(Encoding.ASCII.GetBytes("${e}:${s}"));`),u.push(2,'client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(@"Basic", base64String);'),u.blank()}if(t.postData)switch(normalizeMimeType(t.postData.mimeType)){case MediaTypes.URL_ENCODED:t.postData.params&&(u.blank(),u.push(2,"List<KeyValuePair<string, string>> postData = new List<KeyValuePair<string, string>>();"),t.postData.params.forEach((t=>{u.push(2,'postData.Add(new KeyValuePair<string, string>("%s", "%s"));',t.name,t.value)})),u.blank());break;case MediaTypes.MULTIPART:t.postData.params&&(u.blank(),u.push(2,"MultipartFormDataContent postData = new MultipartFormDataContent();"),t.postData.params.forEach((t=>{u.push(2,'postData.Add(new StringContent("%s"), "%s");',t.value,t.name)})));break;case MediaTypes.JSON:t.postData.jsonObj&&(u.push(2,"string json = JsonSerializer.Serialize(new"),u.push(2,"{"),y(t.postData.jsonObj,3),u.push(2,"});"),u.blank(),u.push(2,'using StringContent postData = new(json, Encoding.UTF8, "%s");',t.postData.mimeType));break;case MediaTypes.XML:t.postData.text&&(t.postData.text.trim().split("\n").forEach(((t,e)=>{const s=(0===e?'string xml = @"':"")+t.replace(/"/g,'""');u.push(0===e?2:3,s)})),u.push(2,'";'),u.push(2,'using StringContent postData = new StringContent(xml, Encoding.UTF8, "%s");',t.postData.mimeType))}else m()&&(u.push(2,"var ms = new MemoryStream();"),u.push(2,"var postData = new StreamContent(ms);"),u.push(2,'postData.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");'));return printUrlVariablesDeclarations(t,u,3),u.push(2,"using HttpResponseMessage %s = await client.%sAsync(%s%s);",u.var("request"),l,buildUrlExpression(t,u),p.withImports?isDataMethod(t.method)?normalizeMimeType(t.postData&&t.postData.mimeType)===MediaTypes.URL_ENCODED?", new FormUrlEncodedContent(postData)":"delete"===t.method?"":t.postData&&t.postData.params||m()?", postData":", null":"":", new FormUrlEncodedContent(postData)"),p.withWrapper&&(u.push(2,"string response = await request.Content.ReadAsStringAsync();"),u.blank(),u.push(2,"Console.WriteLine(response);"),u.push(1,"}"),u.push("}")),u.join();function h(e){return t.postData&&normalizeMimeType(t.postData.mimeType)===e}function m(){return t.headersObj&&t.headersObj["Content-Type"]===MediaTypes.OCTET_STREAM}function d(t,e){t.forEach(((s,a)=>{const n=!isLastInArray(t,a);Array.isArray(s)?d(s,e+1):checkIfIsObject(s)?(u.push(e+1,"new {"),y(s,e+2),u.push(e+1,"}%s",n?",":"")):u.push(e+1,'"%s"%s',s,n?",":"")})),u.push(e,"},")}function y(t,e){for(const[s,a]of Object.entries(t)){const n=!isLastProperty(t,s);if(Array.isArray(a))u.push(e,"%s = new[] {",s),d(a,e);else if(checkIfIsObject(a)){const t=isEmptyObject(a);u.push(e,"%s = new %s",s,t?"{},":"{"),t||(y(a,e+1),u.push(e,"}%s",n?",":""))}else u.push(e,'%s = "%s"%s',s,a,n?",":"")}}};export const info={key:"httpclient",title:"HttpClient",link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",description:".NET Standard HTTP Client"};export default handler;function addComments(t){t.push("// Requires >= .NET 5"),t.blank()}function formatHttpMethod(t){return capitalizeFirst(t.toLowerCase())}function isDataMethod(t){return t&&["POST","PUT","DELETE","PATCH"].includes(t.toUpperCase())}
1
+ import{isObject}from"@redocly/theme";import{CodeBuilder}from"../../helpers/code-builder";import{HTTPSnippet}from"../..";import{buildUrlExpression,printUrlVariablesDeclarations}from"../../helpers/code-helpers";import{isEmptyObject,normalizeMimeType}from"../../../../utils";import{capitalizeFirst}from"../../../generator";import{Lang}from"../../helpers/constants";import{MediaTypes}from"../../../../../constants";import{isLastInArray,isLastProperty}from"../../../../../utils";const handler=function(t,e,{target:s,client:a}){var n,i,r,o;const p=Object.assign({indent:" ",withWrapper:!0},e),u=new CodeBuilder({indentation:p.indent,variablesPrefix:p.variablesPrefix,capitalize:!0,lang:Lang.CSHARP}),l=formatHttpMethod(t.method);if(p.withComments&&addComments(u),p.withWrapper&&(u.push("using System;"),u.push("using System.Net.Http;"),u.push("using System.Threading.Tasks;"),(c(MediaTypes.JSON)||c(MediaTypes.XML)||t.basicAuth)&&u.push("using System.Text;"),(c(MediaTypes.URL_ENCODED)||(null===(n=t.securityOAuth2ExtraCalls)||void 0===n?void 0:n.length))&&u.push("using System.Collections.Generic;"),(c(MediaTypes.JSON)||(null===(i=t.securityOAuth2ExtraCalls)||void 0===i?void 0:i.length))&&u.push("using System.Text.Json;"),m()&&u.push("using System.IO;"),(m()||t.basicAuth)&&u.push("using System.Net.Http.Headers;"),u.blank(),u.push("public class Program"),u.push("{"),u.push(1,"public static async Task Main()"),u.push(1,"{")),null===(r=t.securityOAuth2ExtraCalls)||void 0===r?void 0:r.length){const e=new HTTPSnippet(null===(o=t.securityOAuth2ExtraCalls)||void 0===o?void 0:o[0]).convert(s,a,Object.assign(Object.assign({},p),{withImports:!1,withWrapper:!1,withComments:!1,variablesPrefix:"oauth2"}));u.push(e),u.push(2,"var oauth2Response = await oauth2Request.Content.ReadAsStringAsync();"),u.push(2,"JObject inputJObject = JObject.Parse(oauth2Response);"),u.push(2,'var accessToken = inputJObject["access_token"].ToString();'),u.blank()}const h=Object.keys(t.allHeaders).filter((t=>{switch(t.toLowerCase()){case"content-type":case"content-length":case"accept-encoding":return!1;default:return!0}}));if(h.length?(u.push(2,"System.Net.Http.HttpClient client = new()"),u.push(2,"{"),u.push(3,"DefaultRequestHeaders ="),u.push(3,"{"),h.forEach((e=>{var s;u.push(4,'{"%s", %s},',e,(null===(s=t.securityOAuth2ExtraCalls)||void 0===s?void 0:s.length)?'"Bearer " + accessToken':`"${t.allHeaders[e]}"`)})),u.push(3,"}"),u.push(2,"};")):u.push(2,"System.Net.Http.HttpClient client = new();"),u.blank(),t.basicAuth){const{username:e,password:s}=t.basicAuth;u.push(2,`string base64String = Convert.ToBase64String(Encoding.ASCII.GetBytes("${e}:${s}"));`),u.push(2,'client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(@"Basic", base64String);'),u.blank()}if(t.postData)switch(normalizeMimeType(t.postData.mimeType)){case MediaTypes.URL_ENCODED:t.postData.params&&(u.blank(),u.push(2,"List<KeyValuePair<string, string>> postData = new List<KeyValuePair<string, string>>();"),t.postData.params.forEach((t=>{u.push(2,'postData.Add(new KeyValuePair<string, string>("%s", "%s"));',t.name,t.value)})),u.blank());break;case MediaTypes.MULTIPART:t.postData.params&&(u.blank(),u.push(2,"MultipartFormDataContent postData = new MultipartFormDataContent();"),t.postData.params.forEach((t=>{u.push(2,'postData.Add(new StringContent("%s"), "%s");',t.value,t.name)})));break;case MediaTypes.JSON:t.postData.jsonObj&&(u.push(2,"string json = JsonSerializer.Serialize(new"),u.push(2,"{"),y(t.postData.jsonObj,3),u.push(2,"});"),u.blank(),u.push(2,'using StringContent postData = new(json, Encoding.UTF8, "%s");',t.postData.mimeType));break;case MediaTypes.XML:t.postData.text&&(t.postData.text.trim().split("\n").forEach(((t,e)=>{const s=(0===e?'string xml = @"':"")+t.replace(/"/g,'""');u.push(0===e?2:3,s)})),u.push(2,'";'),u.push(2,'using StringContent postData = new StringContent(xml, Encoding.UTF8, "%s");',t.postData.mimeType))}else m()&&(u.push(2,"var ms = new MemoryStream();"),u.push(2,"var postData = new StreamContent(ms);"),u.push(2,'postData.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");'));return printUrlVariablesDeclarations(t,u,3),u.push(2,"using HttpResponseMessage %s = await client.%sAsync(%s%s);",u.var("request"),l,buildUrlExpression(t,u),p.withImports?isDataMethod(t.method)?normalizeMimeType(t.postData&&t.postData.mimeType)===MediaTypes.URL_ENCODED?", new FormUrlEncodedContent(postData)":"delete"===t.method?"":t.postData&&t.postData.params||m()?", postData":", null":"":", new FormUrlEncodedContent(postData)"),p.withWrapper&&(u.push(2,"string response = await request.Content.ReadAsStringAsync();"),u.blank(),u.push(2,"Console.WriteLine(response);"),u.push(1,"}"),u.push("}")),u.join();function c(e){return t.postData&&normalizeMimeType(t.postData.mimeType)===e}function m(){return t.headersObj&&t.headersObj["Content-Type"]===MediaTypes.OCTET_STREAM}function d(t,e){t.forEach(((s,a)=>{const n=!isLastInArray(t,a);Array.isArray(s)?d(s,e+1):isObject(s)?(u.push(e+1,"new {"),y(s,e+2),u.push(e+1,"}%s",n?",":"")):u.push(e+1,'"%s"%s',s,n?",":"")})),u.push(e,"},")}function y(t,e){for(const[s,a]of Object.entries(t)){const n=!isLastProperty(t,s);if(Array.isArray(a))u.push(e,"%s = new[] {",s),d(a,e);else if(isObject(a)){const t=isEmptyObject(a);u.push(e,"%s = new %s",s,t?"{},":"{"),t||(y(a,e+1),u.push(e,"}%s",n?",":""))}else u.push(e,'%s = "%s"%s',s,a,n?",":"")}}};export const info={key:"httpclient",title:"HttpClient",link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",description:".NET Standard HTTP Client"};export default handler;function addComments(t){t.push("// Requires >= .NET 5"),t.blank()}function formatHttpMethod(t){return capitalizeFirst(t.toLowerCase())}function isDataMethod(t){return t&&["POST","PUT","DELETE","PATCH"].includes(t.toUpperCase())}
2
2
  //# sourceMappingURL=httpclient.js.map
@@ -7,7 +7,7 @@ declare const targets: {
7
7
  default: string;
8
8
  };
9
9
  fetch: import("..").LanguageHandler<(import("../..").BasicLanguageOptions & {
10
- credentials?: "omit" | "same-origin" | "include" | undefined;
10
+ credentials?: "same-origin" | "omit" | "include" | undefined;
11
11
  }) | undefined>;
12
12
  };
13
13
  node: {
@@ -6,7 +6,7 @@ declare const _default: {
6
6
  default: string;
7
7
  };
8
8
  fetch: import("../..").LanguageHandler<(import("../../..").BasicLanguageOptions & {
9
- credentials?: "omit" | "same-origin" | "include" | undefined;
9
+ credentials?: "same-origin" | "omit" | "include" | undefined;
10
10
  }) | undefined>;
11
11
  };
12
12
  export default _default;
@@ -5,7 +5,7 @@ export interface BasicLanguageOptions {
5
5
  withComments?: boolean;
6
6
  }
7
7
  interface CodeSampleBasicConfig {
8
- lang: Languages;
8
+ lang: Languages | 'Payload';
9
9
  label?: string;
10
10
  options?: BasicLanguageOptions;
11
11
  }
@@ -51,6 +51,9 @@ export interface RubyCodeSampleConfig extends CodeSampleBasicConfig {
51
51
  export interface RCodeSampleConfig extends CodeSampleBasicConfig {
52
52
  lang: 'R';
53
53
  }
54
+ export interface PayloadCodeSampleConfig extends CodeSampleBasicConfig {
55
+ lang: 'Payload';
56
+ }
54
57
  export type CodeSampleConfig = CurlCodeSampleConfig | JavaScriptCodeSampleConfig | NodeJsCodeSampleConfig | PythonCodeSampleConfig | Java8CodeSampleConfig | JavaCodeSampleConfig | CSharpCodeSampleConfig | CSharpNewtonsoftCodeSampleConfig | PHPCodeSampleConfig | GoCodeSampleConfig | RubyCodeSampleConfig | RCodeSampleConfig;
55
58
  /**
56
59
  * Code Samples Generator rules
@@ -58,7 +61,7 @@ export type CodeSampleConfig = CurlCodeSampleConfig | JavaScriptCodeSampleConfig
58
61
  * - In addition code samples will be generated only for defined languages in array
59
62
  */
60
63
  export interface CodeSamplesConfig {
61
- languages: CodeSampleConfig[];
64
+ languages: (CodeSampleConfig | PayloadCodeSampleConfig)[];
62
65
  skipOptionalParameters?: boolean;
63
66
  withOAuth2Call?: boolean;
64
67
  onSampleTabClick?: (label: string) => void;
@@ -0,0 +1,3 @@
1
+ import type { RedocConfig } from '@redocly/config';
2
+ export declare function normalizeShowExtensions(value: RedocConfig['showExtensions']): string[] | boolean;
3
+ export declare function normalizeScrollYOffset(value: RedocConfig['scrollYOffset']): () => number;
@@ -0,0 +1,2 @@
1
+ import{querySelector}from"../../utils/dom";import{isNumeric}from"../../utils/helpers";export function normalizeShowExtensions(e){if(void 0===e)return!1;if(""===e)return!0;if("string"!=typeof e)return e;switch(e){case"true":return!0;case"false":return!1;default:return e.split(",").map((e=>e.trim()))}}export function normalizeScrollYOffset(e){if("string"==typeof e&&!isNumeric(e)){const t=querySelector(e);t||console.warn("scrollYOffset value is a selector to non-existing element. Using offset 0 by default");const r=t&&t.getBoundingClientRect().bottom||0;return()=>r}return"number"==typeof e||isNumeric(e)?()=>"number"==typeof e?e:parseFloat(e):"function"==typeof e?()=>{const t=e();return"number"!=typeof t&&console.warn(`scrollYOffset should return number but returned value "${t}" of type ${typeof t}`),t}:(void 0!==e&&console.warn("Wrong value for scrollYOffset ReDoc option: should be string, number or function"),()=>0)}
2
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1,3 @@
1
+ import type { Options } from './types';
2
+ import type { RedocConfig } from '@redocly/config';
3
+ export declare function normalizeOptions(raw?: RedocConfig, defaultOptions?: RedocConfig): Options;
@@ -0,0 +1,2 @@
1
+ import{LayoutVariant,isUndefined,addTrailingSlash}from"@redocly/theme";import{WindowReferenceOptions}from"../../constants";import{argValueToBoolean,argValueToExpandLevel,argValueToInt,argValueToNumber,getWindowReferenceOptions,normalizePath}from"../../utils";import{normalizeShowExtensions,normalizeScrollYOffset}from"./helpers";import{Languages}from"../code-samples/constants";export function normalizeOptions(e,o){var n,a,i,s,l,r,t,d,u,c,m;e=Object.assign(Object.assign(Object.assign({},o),e),{markdocOptions:Object.assign(Object.assign({},null==e?void 0:e.markdocOptions),{components:Object.assign(Object.assign({},null===(n=null==o?void 0:o.markdocOptions)||void 0===n?void 0:n.components),null===(a=null==e?void 0:e.markdocOptions)||void 0===a?void 0:a.components),tags:Object.assign(Object.assign({},null===(i=null==o?void 0:o.markdocOptions)||void 0===i?void 0:i.tags),null===(s=null==e?void 0:e.markdocOptions)||void 0===s?void 0:s.tags),nodes:Object.assign(Object.assign(Object.assign({},null===(l=null==o?void 0:o.markdocOptions)||void 0===l?void 0:l.nodes),null===(r=null==e?void 0:e.markdocOptions)||void 0===r?void 0:r.nodes),{heading:(null===(d=null===(t=null==o?void 0:o.markdocOptions)||void 0===t?void 0:t.nodes)||void 0===d?void 0:d.heading)||(null===(u=null==e?void 0:e.markdocOptions)||void 0===u?void 0:u.nodes.heading)})})});const p=Array.isArray(e.ignoreNamedSchemas)?e.ignoreNamedSchemas:null===(c=e.ignoreNamedSchemas)||void 0===c?void 0:c.split(",").map((e=>e.trim()));return{downloadUrls:e.downloadUrls,schemaDefinitionsTagName:e.schemaDefinitionsTagName,corsProxyUrl:e.corsProxyUrl&&addTrailingSlash(e.corsProxyUrl),hideSidebar:argValueToBoolean(e.hideSidebar,!1),jsonSamplesExpandLevel:argValueToExpandLevel(e.jsonSamplesExpandLevel,2),generatedSamplesMaxDepth:argValueToInt(e.generatedSamplesMaxDepth,8),hideDownloadButtons:argValueToBoolean(e.hideDownloadButtons,!1),hideInfoMetadata:argValueToBoolean(e.hideInfoMetadata,!1),hideLoading:argValueToBoolean(e.hideLoading,!1),hideSchemaTitles:argValueToBoolean(e.hideSchemaTitles,!1),maxDisplayedEnumValues:argValueToNumber(e.maxDisplayedEnumValues),mockServer:(null===(m=e.mockServer)||void 0===m?void 0:m.url)?{url:e.mockServer.url,position:e.mockServer.position||"first",description:e.mockServer.description||"Mock server"}:void 0,hideReplay:argValueToBoolean(e.hideReplay,!1),oAuth2RedirectURI:e.oAuth2RedirectURI||null,onlyRequiredInSamples:argValueToBoolean(e.onlyRequiredInSamples,!1),onDeepLinkClick:e.onDeepLinkClick||getWindowReferenceOptions(WindowReferenceOptions.ON_DEEP_LINK_CLICK),requestInterceptor:e.requestInterceptor||getWindowReferenceOptions(WindowReferenceOptions.REQUEST_INTERCEPTOR),routingBasePath:isUndefined(e.disableRouter)?"":e.routingBasePath&&normalizePath(e.routingBasePath)||"",schemasExpansionLevel:argValueToExpandLevel(e.schemasExpansionLevel),feedback:e.feedback||{hide:!1},sortRequiredPropsFirst:argValueToBoolean(e.sortRequiredPropsFirst,!1),scrollYOffset:normalizeScrollYOffset(e.scrollYOffset),showExtensions:normalizeShowExtensions(e.showExtensions),sanitize:argValueToBoolean(e.sanitize,!1),skipBundle:argValueToBoolean(e.skipBundle,!1),ignoreNamedSchemas:new Set(p),markdocOptions:null==e?void 0:e.markdocOptions,codeSamples:e.codeSamples||{languages:Object.values(Languages).map((e=>({lang:e})))},layout:e.layout||LayoutVariant.THREE_PANEL,events:e.events||{},unstable_hooks:e.unstable_hooks||getWindowReferenceOptions(WindowReferenceOptions.HOOKS)||{},unstable_externalCodeSamples:e.unstable_externalCodeSamples||[],hidePropertiesPrefix:argValueToBoolean(null==e?void 0:e.hidePropertiesPrefix,!1)}}
2
+ //# sourceMappingURL=normalizeOptions.js.map
@@ -0,0 +1,54 @@
1
+ import type { ComponentType } from 'react';
2
+ import type { Schema, ConfigFunction } from '@markdoc/markdoc/dist/src/types';
3
+ import type { CodeSamplesConfig } from '../code-samples';
4
+ import type { HooksConfig, Unstable_ExternalCodeSample } from '../types';
5
+ import type { Events } from '../../events';
6
+ import type { LayoutVariant } from '@redocly/theme';
7
+ import type { OperationModel } from '../../models/types';
8
+ import type { DownloadUrlsConfig } from '../../components/Download/types';
9
+ export interface Options {
10
+ scrollYOffset: () => number;
11
+ hideLoading: boolean;
12
+ markdocOptions?: {
13
+ tags: Record<string, Schema>;
14
+ nodes: Record<string, Schema>;
15
+ components: Record<string, ComponentType>;
16
+ variables?: Record<string, any>;
17
+ partials?: Record<string, any>;
18
+ functions?: Record<string, ConfigFunction>;
19
+ };
20
+ hideSidebar: boolean;
21
+ feedback: Record<string, any>;
22
+ unstable_hooks: HooksConfig;
23
+ hideReplay: boolean;
24
+ oAuth2RedirectURI: string | null;
25
+ corsProxyUrl?: string;
26
+ requestInterceptor: ((req: Request, operation: OperationModel) => void) | undefined | null;
27
+ sortRequiredPropsFirst: boolean;
28
+ sanitize: boolean;
29
+ hideDownloadButtons: boolean | null;
30
+ downloadUrls?: DownloadUrlsConfig;
31
+ onlyRequiredInSamples: boolean;
32
+ generatedSamplesMaxDepth: number;
33
+ showExtensions: string[] | boolean;
34
+ hideSchemaTitles: boolean;
35
+ jsonSamplesExpandLevel: number;
36
+ schemasExpansionLevel: number | undefined;
37
+ mockServer?: {
38
+ url: string;
39
+ position: 'first' | 'last' | 'replace' | 'off';
40
+ description: string;
41
+ };
42
+ maxDisplayedEnumValues: number;
43
+ ignoreNamedSchemas: Set<string>;
44
+ unstable_externalCodeSamples: Unstable_ExternalCodeSample[];
45
+ schemaDefinitionsTagName?: string;
46
+ layout: LayoutVariant;
47
+ hideInfoMetadata: boolean;
48
+ events: Events;
49
+ onDeepLinkClick: ((link: string) => void) | undefined | null;
50
+ skipBundle: boolean;
51
+ routingBasePath: string;
52
+ codeSamples: CodeSamplesConfig;
53
+ hidePropertiesPrefix: boolean;
54
+ }
@@ -2,3 +2,4 @@ import type { FieldModel } from '../../models';
2
2
  export declare function isSameHash(a: string, b: string): boolean;
3
3
  export declare function constructFieldDeepFragment(field: FieldModel): string;
4
4
  export declare function joinWithSeparator(base?: string, path?: string, sep?: string): string;
5
+ export declare function makeDeepLink(operationId: string, suffix: string): string;
@@ -1,2 +1,2 @@
1
- import{queryString}from"../../utils";import{getActiveMediaType}from"../../models/mediaContent";export function isSameHash(e,o){return e===o||"#"+e===o||e==="#"+o}function getContentTypeName(e){var o,n,t,i,d,s,p,r,l,v,u,a,c;if(!e.in)return"request"===e.deps.type&&(null===(t=null===(n=null===(o=e.deps.operation)||void 0===o?void 0:o.requestBody)||void 0===n?void 0:n.content)||void 0===t?void 0:t.mediaTypes)?(null===(s=null===(d=null===(i=e.deps.operation)||void 0===i?void 0:i.requestBody)||void 0===d?void 0:d.content)||void 0===s?void 0:s.mediaTypes.length)>1?(null===(r=null===(p=e.deps.operation)||void 0===p?void 0:p.requestBody)||void 0===r?void 0:r.content)&&getActiveMediaType(e.deps.operation.requestBody.content).name:void 0:"response"===e.deps.type&&(null===(v=null===(l=e.deps.response)||void 0===l?void 0:l.content)||void 0===v?void 0:v.mediaTypes)&&(null===(a=null===(u=e.deps.response)||void 0===u?void 0:u.content)||void 0===a?void 0:a.mediaTypes.length)>1?(null===(c=e.deps.response)||void 0===c?void 0:c.content)&&getActiveMediaType(e.deps.response.content).name:void 0}export function constructFieldDeepFragment(e){var o,n;if(!e)return"";const t={t:e.deps.type,in:e.in||e.deps.in,c:"response"===e.deps.type?null===(o=e.deps.response)||void 0===o?void 0:o.code:void 0,cb:(null===(n=e.deps.operation)||void 0===n?void 0:n.isCallback)?e.deps.operation.callbackId:void 0,ct:getContentTypeName(e),path:e.fieldFullPath};return queryString.stringify(t,{encode:!1,sort:!1})}export function joinWithSeparator(e="",o="",n="/"){return e.endsWith(n)&&(e=e.slice(0,-n.length)),o.startsWith(n)&&(o=o.slice(n.length)),e&&o?e+n+o:e+o}
1
+ import{encodeBackSlashes,queryString}from"../../utils";import{getActiveMediaType}from"../../models/mediaContent";export function isSameHash(e,o){return e===o||"#"+e===o||e==="#"+o}function getContentTypeName(e){var o,n,t,i,d,s,r,p,l,a,v,u,c;if(!e.in)return"request"===e.deps.type&&(null===(t=null===(n=null===(o=e.deps.operation)||void 0===o?void 0:o.requestBody)||void 0===n?void 0:n.content)||void 0===t?void 0:t.mediaTypes)?(null===(s=null===(d=null===(i=e.deps.operation)||void 0===i?void 0:i.requestBody)||void 0===d?void 0:d.content)||void 0===s?void 0:s.mediaTypes.length)>1?(null===(p=null===(r=e.deps.operation)||void 0===r?void 0:r.requestBody)||void 0===p?void 0:p.content)&&getActiveMediaType(e.deps.operation.requestBody.content).name:void 0:"response"===e.deps.type&&(null===(a=null===(l=e.deps.response)||void 0===l?void 0:l.content)||void 0===a?void 0:a.mediaTypes)&&(null===(u=null===(v=e.deps.response)||void 0===v?void 0:v.content)||void 0===u?void 0:u.mediaTypes.length)>1?(null===(c=e.deps.response)||void 0===c?void 0:c.content)&&getActiveMediaType(e.deps.response.content).name:void 0}export function constructFieldDeepFragment(e){var o,n;if(!e)return"";const t={t:e.deps.type,in:e.in||e.deps.in,c:"response"===e.deps.type?null===(o=e.deps.response)||void 0===o?void 0:o.code:void 0,cb:(null===(n=e.deps.operation)||void 0===n?void 0:n.isCallback)?e.deps.operation.callbackId:void 0,ct:getContentTypeName(e),path:e.fieldFullPath};return queryString.stringify(t,{encode:!1,sort:!1})}export function joinWithSeparator(e="",o="",n="/"){return e.endsWith(n)&&(e=e.slice(0,-n.length)),o.startsWith(n)&&(o=o.slice(n.length)),e&&o?e+n+o:e+o}export function makeDeepLink(e,o){return(`/${e=encodeBackSlashes(e)}#`+joinWithSeparator(e,o)).toLowerCase()}
2
2
  //# sourceMappingURL=helpers.js.map
@@ -1,12 +1,8 @@
1
1
  export * from './history';
2
2
  export * from './code-samples';
3
3
  export * from './types';
4
- export * from './labels';
5
4
  export { OpenAPIParser } from './OpenAPIParser';
6
5
  export { buildContentItems } from './menu';
7
- export { SearchStore } from './search';
8
- export type { SearchResultMeta } from './search';
9
- export { MarkerService } from './MarkerService';
10
6
  export * from './types';
11
- export * from './Options';
7
+ export * from './config-options';
12
8
  export { deepClone } from './utils';
@@ -1,2 +1,2 @@
1
- export*from"./history";export*from"./code-samples";export*from"./types";export*from"./labels";export{OpenAPIParser}from"./OpenAPIParser";export{buildContentItems}from"./menu";export{SearchStore}from"./search";export{MarkerService}from"./MarkerService";export*from"./types";export*from"./Options";export{deepClone}from"./utils";
1
+ export*from"./history";export*from"./code-samples";export*from"./types";export{OpenAPIParser}from"./OpenAPIParser";export{buildContentItems}from"./menu";export*from"./types";export*from"./config-options";export{deepClone}from"./utils";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import type { OpenAPIParser } from '../OpenAPIParser';
2
- import type { Options } from '../Options';
2
+ import type { Options } from '../config-options';
3
3
  import type { ContentItemModel } from '../../models';
4
4
  import type { ExtendedMenuItem, IMenuItem } from '../types';
5
5
  export declare function buildMenuStructure(parser: OpenAPIParser, options: Options): ContentItemModel[];
@@ -1,2 +1,2 @@
1
- import{getTagGroupsItems,getTagsItems,getTagsWithOperations}from"./tags";import{addMarkdownItems}from"./markdown";import{flattenByProp,getValueFromMdParsedExtension,normalizePath}from"../../utils";import{joinWithSeparator}from"../history";export function buildMenuStructure(e,t){var i,o,n;const{definition:r}=e,{hideInfoSection:a,hideInfoDescription:s,pagination:d,schemaDefinitionsTagName:m,markdownHeadingsAnchorLevel:l,infoLabel:u}=t,f=a&&"none"!==d?[]:[{id:"",name:(null===(o=null===(i=null==r?void 0:r.info)||void 0===i?void 0:i["x-seo"])||void 0===o?void 0:o.title)||u||(null===(n=null==r?void 0:r.info)||void 0===n?void 0:n.title)||"Overview",href:"/",depth:a?-1:1,level:1,type:"section",infoDefinition:r.info,items:[]}],p=[...r.tags||[]];!p.find((e=>(null==e?void 0:e.name)===m))&&m&&p.push({name:m});const h=getTagsWithOperations(e,p),g=r["x-tagGroups"];return a||s||f.push(...addMarkdownItems(getValueFromMdParsedExtension(r.info,"description")||"",void 0,1,l,d)),g&&g.length>0?f.push(...getTagGroupsItems(e,void 0,g,h,t)):f.push(...getTagsItems(e,h,void 0,void 0,t)),f}function addVersionToHref(e,t){return e.map((e=>(e.href&&(e.href=normalizePath(joinWithSeparator(t,e.href,"/"))),e.id&&"tag"===e.type&&(e.id=normalizePath(joinWithSeparator(t,e.id,"/"))),e.items&&addVersionToHref(e.items,t),e)))}export function buildContentItems(e,t){const i=buildMenuStructure(e,t),o=e.versionPath?addVersionToHref(i,e.versionPath):i;return{contentItems:o,flatItems:flattenByProp(o||[],"items")}}
1
+ import{getTagGroupsItems,getTagsItems,getTagsWithOperations}from"./tags";import{addMarkdownItems}from"./markdown";import{flattenByProp,getValueFromMdParsedExtension}from"../../utils";export function buildMenuStructure(t,e){var o,i,n;const{definition:s}=t,{schemaDefinitionsTagName:r}=e,d=[{id:"",name:(null===(i=null===(o=null==s?void 0:s.info)||void 0===o?void 0:o["x-seo"])||void 0===i?void 0:i.title)||(null===(n=null==s?void 0:s.info)||void 0===n?void 0:n.title)||"Overview",href:"/",depth:1,level:1,type:"section",infoDefinition:s.info,items:[]}],a=[...s.tags||[]];!a.find((t=>(null==t?void 0:t.name)===r))&&r&&a.push({name:r});const u=getTagsWithOperations(t,a),l=s["x-tagGroups"];return d.push(...addMarkdownItems(getValueFromMdParsedExtension(s.info,"description")||"",void 0,1)),l&&l.length>0?d.push(...getTagGroupsItems(t,void 0,l,u,e)):d.push(...getTagsItems(t,u,void 0,void 0,e)),d}export function buildContentItems(t,e){const o=buildMenuStructure(t,e);return{contentItems:o,flatItems:flattenByProp(o||[],"items")}}
2
2
  //# sourceMappingURL=builder.js.map
@@ -1,11 +1,8 @@
1
1
  import type { ContentItemModel, GroupModel } from '../../models';
2
- import { Pagination } from '../types';
3
2
  /**
4
3
  * extracts items from markdown description
5
4
  * @param description - markdown source
6
5
  * @param parent
7
6
  * @param initialDepth - number of items depth
8
- * @param markdownHeadingsAnchorLevel - level of headings renders as a section from markdown.
9
- * @param pagination
10
7
  */
11
- export declare function addMarkdownItems(description: string | GenericObject, parent: GroupModel | undefined, initialDepth: number, markdownHeadingsAnchorLevel?: number, pagination?: Pagination): ContentItemModel[];
8
+ export declare function addMarkdownItems(description: string | GenericObject, parent: GroupModel | undefined, initialDepth: number): ContentItemModel[];
@@ -1,2 +1,2 @@
1
- import{parse,Ast}from"@markdoc/markdoc";import{Pagination}from"../types";import{getTagOrGroup}from"../../models";import{isString,safeSlugify,unescapeHTMLChars}from"../../utils";export function addMarkdownItems(t,e,i,n=2,o=Pagination.Section){const r=isString(t)?parse(t):Ast.fromJSON(JSON.stringify(null==t?void 0:t.result)),s=[];let l;const a=(t,e,i=s,n,o)=>{let r;t=unescapeHTMLChars(t),n.attributes.id?r=n.attributes.id:(r=o?`${o}/${safeSlugify(t)}`:`section/${safeSlugify(t)}`,n.attributes.id=r);const l={id:r,name:t,level:e,items:[],ast:[n]};return i.push(l),l},d=(t,e)=>{var i,n;null===(n=null===(i=t[t.length-1])||void 0===i?void 0:i.ast)||void 0===n||n.push(e)},u=t=>{var e;for(const i of t.children){const t=getMarkdownContent(i)||"";"heading"===i.type&&1===i.attributes.level?l=a(t,i.attributes.level,void 0,i):i.attributes.level<=n?a(t,i.attributes.level,null==l?void 0:l.items,i,null==l?void 0:l.id):(null===(e=null==l?void 0:l.items)||void 0===e?void 0:e.length)?d(null==l?void 0:l.items,i):(null==s?void 0:s.length)&&d(s,i)}};if(Array.isArray(r))for(const t of r)u(t);else u(r);return mapHeadingsDeep(e,s,i,{pagination:o,markdownHeadingsAnchorLevel:n})}function mapHeadingsDeep(t,e,i=1,n){return e.map((e=>{const o=getTagOrGroup("section",e,n,t);return o.depth=i,e.items&&(o.items=mapHeadingsDeep(o,e.items,i+1,n)),o}))}function getMarkdownContent(t){var e,i;return"string"==typeof(null===(e=null==t?void 0:t.attributes)||void 0===e?void 0:e.content)?null===(i=t.attributes)||void 0===i?void 0:i.content:(null==t?void 0:t.children)?getMarkdownContent(t.children[0]):void 0}
1
+ import{parse,Ast}from"@markdoc/markdoc";import{isString}from"@redocly/theme";import{getTagOrGroup}from"../../models";import{safeSlugify,unescapeHTMLChars}from"../../utils";export function addMarkdownItems(t,e,i){const n=isString(t)?parse(t):Ast.fromJSON(JSON.stringify(null==t?void 0:t.result)),o=[];let r;const s=(t,e,i=o,n,r)=>{let s;t=unescapeHTMLChars(t),n.attributes.id?s=n.attributes.id:(s=r?`${r}/${safeSlugify(t)}`:`section/${safeSlugify(t)}`,n.attributes.id=s);const l={id:s.toLowerCase(),name:t,level:e,items:[],ast:[n]};return i.push(l),l},l=(t,e)=>{var i,n;null===(n=null===(i=t[t.length-1])||void 0===i?void 0:i.ast)||void 0===n||n.push(e)},a=t=>{var e;for(const i of t.children){const t=getMarkdownContent(i)||"";"heading"===i.type&&1===i.attributes.level?r=s(t,i.attributes.level,void 0,i):i.attributes.level?s(t,i.attributes.level,null==r?void 0:r.items,i,null==r?void 0:r.id):(null===(e=null==r?void 0:r.items)||void 0===e?void 0:e.length)?l(null==r?void 0:r.items,i):(null==o?void 0:o.length)&&l(o,i)}};if(Array.isArray(n))for(const t of n)a(t);else a(n);return mapHeadingsDeep(e,o,i)}function mapHeadingsDeep(t,e,i=1){return e.map((e=>{const n=getTagOrGroup("section",e,t);return n.depth=i,e.items&&(n.items=mapHeadingsDeep(n,e.items,i+1)),n}))}function getMarkdownContent(t){var e,i;return"string"==typeof(null===(e=null==t?void 0:t.attributes)||void 0===e?void 0:e.content)?null===(i=t.attributes)||void 0===i?void 0:i.content:(null==t?void 0:t.children)?getMarkdownContent(t.children[0]):void 0}
2
2
  //# sourceMappingURL=markdown.js.map
@@ -1,13 +1,10 @@
1
1
  import type { GroupModel, OperationMenuItem, ContentItemModel } from '../../models';
2
2
  import type { TagInfo } from '../types';
3
- import type { Options } from '../Options';
4
- import { Pagination } from '../types';
5
3
  /**
6
4
  * Returns array of Operation items for the tag
7
5
  * @param parent parent OperationsGroup
8
6
  * @param tag tag info returned from `getTagsWithOperations`
9
7
  * @param depth items depth
10
- * @param options - normalized options
11
8
  */
12
- export declare function getOperationsItems(parent: GroupModel | undefined, tag: TagInfo, depth: number, options: Options): OperationMenuItem[];
13
- export declare function getHref({ type, id, parent }: Pick<ContentItemModel, 'id' | 'parent' | 'type'>, pagination: Pagination): string;
9
+ export declare function getOperationsItems(parent: GroupModel | undefined, tag: TagInfo, depth: number): OperationMenuItem[];
10
+ export declare function getHref({ id }: Pick<ContentItemModel, 'id'>): string;
@@ -1,2 +1,2 @@
1
- import{alphabeticallyByProp,getOperationId,getOperationName,normalizePath}from"../../utils";import{Pagination}from"../types";import{joinWithSeparator}from"../history";export function getOperationsItems(t,e,o,a){if(0===e.operations.length)return[];const i=[];for(const r of e.operations){const e=getOperationId(r,a.pagination,t),n="operation";i.push({id:e,type:n,parent:t,operationDefinition:r,depth:o,name:getOperationName(r),httpVerb:r.httpVerb,path:r.pathName,items:[],isWebhook:r.isWebhook,operationId:r.operationId,href:getHref({id:e,type:n,parent:t},a.pagination)})}return a.sortOperationsAlphabetically&&i.sort(alphabeticallyByProp("name")),i}export function getHref({type:t,id:e,parent:o},a){switch(a){case Pagination.None:return`#${e}`;case Pagination.Item:return"section"===t?"tag"===(null==o?void 0:o.type)?normalizePath(joinWithSeparator(o.id,e,"#")):`#${e}`:o&&"group"!==o.type?normalizePath(joinWithSeparator(o.id,e)):normalizePath(e);case Pagination.Section:return"operation"===t||"schema"===t?normalizePath(o?joinWithSeparator(o.id,e,"#"):`#${e}`):"section"===t?o?`#${e}`:normalizePath(`#${e}`):normalizePath(e);default:return""}}
1
+ import{encodeBackSlashes,getOperationId,getOperationName}from"../../utils";export function getOperationsItems(e,t,o){if(0===t.operations.length)return[];const r=[],a=[];for(const p of t.operations){const t=getOperationId(p,e),n={id:t,type:"operation",parent:e,operationDefinition:p,depth:o,name:getOperationName(p),httpVerb:p.httpVerb,path:p.pathName,items:[],isWebhook:p.isWebhook,operationId:p.operationId,badges:p["x-badges"]||[],href:getHref({id:t}),deprecated:!!p.deprecated};p.isWebhook?a.push(n):r.push(n)}return[...r.sort(((e,t)=>Number(e.deprecated)-Number(t.deprecated))),...a.sort(((e,t)=>Number(e.deprecated)-Number(t.deprecated)))]}export function getHref({id:e}){return encodeBackSlashes(`/${e}`.toLowerCase())}
2
2
  //# sourceMappingURL=operation.js.map
@@ -1,7 +1,7 @@
1
1
  import type { OpenAPIParser } from '../OpenAPIParser';
2
2
  import type { ContentItemModel, GroupModel } from '../../models';
3
3
  import type { TagGroup, TagsInfoMap } from '../types';
4
- import type { Options } from '../Options';
4
+ import type { Options } from '../config-options';
5
5
  import type { OpenAPITag } from '../../types';
6
6
  /**
7
7
  * Returns array of OperationsGroup items for the tags of the group or for all tags
@@ -1,2 +1,2 @@
1
- import{getTagOrGroup}from"../../models/group";import{GROUP_DEPTH}from"../../constants";import{alphabeticallyByProp,getValueFromMdParsedExtension,isOperationName,JsonPointer}from"../../utils";import{getOperationsItems}from"./operation";import{addMarkdownItems}from"./markdown";export function getTagsItems(e,t,n,o,a){let s;if(s=void 0===o?Object.keys(t):o.tags,!Array.isArray(s))return console.warn("Unexpected values of tags. Check tags or x-tagGroups in your definition."),[];const i=s.map((e=>t[e]?(t[e].used=!0,t[e]):(console.warn(`Non-existing tag "${e}" is added to the group "${null==o?void 0:o.name}"`),null))),r=[];for(const t of i){if(!t)continue;const o=getTagOrGroup("tag",t,{pagination:a.pagination,markdownHeadingsAnchorLevel:a.markdownHeadingsAnchorLevel},n);if(o.depth=GROUP_DEPTH+1,""===t.name){const e=[...addMarkdownItems(getValueFromMdParsedExtension(t,"description")||"",o,o.depth+1,a.markdownHeadingsAnchorLevel,a.pagination),...getOperationsItems(void 0,t,o.depth+1,a)];r.push(...e);continue}const s=getTagRelatedSchema({definition:e.definition,tag:t,parent:o,schemaDefinitionsTagName:a.schemaDefinitionsTagName,options:{pagination:a.pagination,markdownHeadingsAnchorLevel:a.markdownHeadingsAnchorLevel}});o.items=[...s,...addMarkdownItems(getValueFromMdParsedExtension(t,"description")||"",o,o.depth+1,a.markdownHeadingsAnchorLevel,a.pagination),...getOperationsItems(o,t,o.depth+1,a)],r.push(o)}return a.sortTagsAlphabetically&&r.sort(alphabeticallyByProp("name")),r}export function getTagGroupsItems(e,t,n,o,a){const s=[];for(const i of n){const n=getTagOrGroup("group",i,{pagination:a.pagination,markdownHeadingsAnchorLevel:a.markdownHeadingsAnchorLevel},t);n.depth=GROUP_DEPTH,n.items=getTagsItems(e,o,n,i,a),s.push(n)}return s}function getTagRelatedSchema({definition:e,tag:t,parent:n,schemaDefinitionsTagName:o,options:a}){var s;const i=o?[o]:[];return Object.entries((null===(s=e.components)||void 0===s?void 0:s.schemas)||{}).map((([e,o])=>{if(!(o["x-tags"]||i).includes(t.name))return null;const s=getTagOrGroup("schema",{name:e,"x-displayName":`${o.title||e}`,description:`{% schemaDefinition showWriteOnly="true" schemaRef="#/components/schemas/${e}" /%}`,isSchema:!0,level:2},a,n);return s.depth=n.depth+1,s})).filter(Boolean)}export function getTagsWithOperations(e,t){const{definition:n}=e,o={},a=n["x-webhooks"]||n.webhooks;for(const e of t||[])o[e.name]=Object.assign(Object.assign({},e),{operations:[]});return n.paths&&getTags(e,n.paths,o),a&&getTags(e,a,o,!0),o}function getTags(e,t,n,o){for(const a of Object.keys(t||{})){const s=t[a],i=Object.keys(s).filter(isOperationName);for(const t of i){const i=s[t];if(s.$ref){const{resolved:t}=e.deref(s);getTags(e,{[a]:t},n,o);continue}let r=null==i?void 0:i.tags;r&&r.length||(r=[""]);for(const e of r){let r=n[e];void 0===r&&(r={name:e,operations:[]},n[e]=r),r["x-traitTag"]||r.operations.push(Object.assign(Object.assign({},i),{pathName:a,pointer:JsonPointer.compile(["paths",a,t]),httpVerb:t,pathParameters:s.parameters||[],pathServers:s.servers,isWebhook:!!o}))}}}}
1
+ import{getTagOrGroup}from"../../models/group";import{GROUP_DEPTH}from"../../constants";import{getValueFromMdParsedExtension,isOperationName,JsonPointer}from"../../utils";import{getOperationsItems}from"./operation";import{addMarkdownItems}from"./markdown";export function getTagsItems(e,t,o,n,s){let a;if(a=void 0===n?Object.keys(t):n.tags,!Array.isArray(a))return console.warn("Unexpected values of tags. Check tags or x-tagGroups in your definition."),[];const r=a.map((e=>t[e]?(t[e].used=!0,t[e]):(console.warn(`Non-existing tag "${e}" is added to the group "${null==n?void 0:n.name}"`),null))),i=[];for(const t of r){if(!t)continue;const n=getTagOrGroup("tag",t,o);if(n.depth=GROUP_DEPTH+1,""===t.name){const e=[...addMarkdownItems(getValueFromMdParsedExtension(t,"description")||"",n,n.depth+1),...getOperationsItems(void 0,t,n.depth+1)];i.push(...e);continue}const a=getTagRelatedSchema({definition:e.definition,tag:t,parent:n,schemaDefinitionsTagName:s.schemaDefinitionsTagName});n.items=[...a,...addMarkdownItems(getValueFromMdParsedExtension(t,"description")||"",n,n.depth+1),...getOperationsItems(n,t,n.depth+1)],i.push(n)}return i}export function getTagGroupsItems(e,t,o,n,s){const a=[];for(const r of o){const o=getTagOrGroup("group",r,t);o.depth=GROUP_DEPTH,o.items=getTagsItems(e,n,o,r,s),a.push(o)}return a}function getTagRelatedSchema({definition:e,tag:t,parent:o,schemaDefinitionsTagName:n}){var s;const a=n?[n]:[];return Object.entries((null===(s=e.components)||void 0===s?void 0:s.schemas)||{}).map((([e,n])=>{if(!(n["x-tags"]||a).includes(t.name))return null;const s=getTagOrGroup("schema",{name:e,"x-displayName":`${n.title||e}`,description:`{% schemaDefinition showWriteOnly="true" schemaRef="#/components/schemas/${e}" /%}`,isSchema:!0,level:2},o);return s.depth=o.depth+1,s})).filter(Boolean)}export function getTagsWithOperations(e,t){const{definition:o}=e,n={},s=o["x-webhooks"]||o.webhooks;for(const e of t||[])n[e.name]=Object.assign(Object.assign({},e),{operations:[]});return o.paths&&getTags(e,o.paths,n),s&&getTags(e,s,n,!0),n}function getTags(e,t,o,n){for(const s of Object.keys(t||{})){const a=t[s],r=Object.keys(a).filter(isOperationName);for(const t of r){const r=a[t];if(a.$ref){const{resolved:t}=e.deref(a);getTags(e,{[s]:t},o,n);continue}let i=null==r?void 0:r.tags;i&&i.length||(i=[""]);for(const e of i){let i=o[e];void 0===i&&(i={name:e,operations:[]},o[e]=i),i["x-traitTag"]||i.operations.push(Object.assign(Object.assign({},r),{pathName:s,pointer:JsonPointer.compile(["paths",s,t]),httpVerb:t,pathParameters:a.parameters||[],pathServers:a.servers,isWebhook:!!n}))}}}}
2
2
  //# sourceMappingURL=tags.js.map