@redocly/openapi-docs 3.0.0 → 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 (1889) hide show
  1. package/dist/redocly-openapi-docs.min.js +10663 -8387
  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 -10
  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 -7
  144. package/lib/components/RedoclyOpenAPIDocs/Providers.js +1 -1
  145. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.d.ts +3 -3
  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 +3 -5
  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 -8
  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/useActivateExample.js +1 -1
  372. package/lib/hooks/useActiveWithFallback.d.ts +3 -0
  373. package/lib/hooks/useActiveWithFallback.js +2 -0
  374. package/lib/hooks/useContentItems.js +1 -1
  375. package/lib/hooks/useRouter.d.ts +4 -2
  376. package/lib/hooks/useUppercase2LowercaseRedirect.d.ts +1 -0
  377. package/lib/hooks/useUppercase2LowercaseRedirect.js +2 -0
  378. package/lib/icons/CSharpIcon/CSharpIcon.d.ts +4 -0
  379. package/lib/icons/CSharpIcon/CSharpIcon.js +2 -0
  380. package/lib/icons/CSharpIcon/index.d.ts +1 -0
  381. package/lib/icons/CSharpIcon/index.js +2 -0
  382. package/lib/icons/CurlIcon/CurlIcon.d.ts +4 -0
  383. package/lib/icons/CurlIcon/CurlIcon.js +2 -0
  384. package/lib/icons/CurlIcon/index.d.ts +1 -0
  385. package/lib/icons/CurlIcon/index.js +2 -0
  386. package/lib/icons/GOIcon/GOIcon.d.ts +4 -0
  387. package/lib/icons/GOIcon/GOIcon.js +2 -0
  388. package/lib/icons/GOIcon/index.d.ts +1 -0
  389. package/lib/icons/GOIcon/index.js +2 -0
  390. package/lib/icons/JavaIcon/JavaIcon.d.ts +4 -0
  391. package/lib/icons/JavaIcon/JavaIcon.js +2 -0
  392. package/lib/icons/JavaIcon/index.d.ts +1 -0
  393. package/lib/icons/JavaIcon/index.js +2 -0
  394. package/lib/icons/JavaScriptIcon/JavaScriptIcon.d.ts +4 -0
  395. package/lib/icons/JavaScriptIcon/JavaScriptIcon.js +2 -0
  396. package/lib/icons/JavaScriptIcon/index.d.ts +1 -0
  397. package/lib/icons/JavaScriptIcon/index.js +2 -0
  398. package/lib/icons/NodeJSIcon/NodeJSIcon.d.ts +4 -0
  399. package/lib/icons/NodeJSIcon/NodeJSIcon.js +2 -0
  400. package/lib/icons/NodeJSIcon/index.d.ts +1 -0
  401. package/lib/icons/NodeJSIcon/index.js +2 -0
  402. package/lib/icons/PHPIcon/PHPIcon.d.ts +4 -0
  403. package/lib/icons/PHPIcon/PHPIcon.js +2 -0
  404. package/lib/icons/PHPIcon/index.d.ts +1 -0
  405. package/lib/icons/PHPIcon/index.js +2 -0
  406. package/lib/icons/PayloadIcon/PayloadIcon.d.ts +4 -0
  407. package/lib/icons/PayloadIcon/PayloadIcon.js +2 -0
  408. package/lib/icons/PayloadIcon/index.d.ts +1 -0
  409. package/lib/icons/PayloadIcon/index.js +2 -0
  410. package/lib/icons/PythonIcon/PythonIcon.d.ts +4 -0
  411. package/lib/icons/PythonIcon/PythonIcon.js +2 -0
  412. package/lib/icons/PythonIcon/index.d.ts +1 -0
  413. package/lib/icons/PythonIcon/index.js +2 -0
  414. package/lib/icons/RIcon/RIcon.d.ts +4 -0
  415. package/lib/icons/RIcon/RIcon.js +2 -0
  416. package/lib/icons/RIcon/index.d.ts +1 -0
  417. package/lib/icons/RIcon/index.js +2 -0
  418. package/lib/icons/RubyIcon/RubyIcon.d.ts +4 -0
  419. package/lib/icons/RubyIcon/RubyIcon.js +2 -0
  420. package/lib/icons/RubyIcon/index.d.ts +1 -0
  421. package/lib/icons/RubyIcon/index.js +2 -0
  422. package/lib/index.d.ts +8 -7
  423. package/lib/index.js +1 -1
  424. package/lib/jotai/app.d.ts +50 -0
  425. package/lib/jotai/app.js +2 -0
  426. package/lib/jotai/nexus.d.ts +5 -0
  427. package/lib/jotai/nexus.js +2 -0
  428. package/lib/jotai/operation.d.ts +39 -0
  429. package/lib/jotai/operation.js +2 -0
  430. package/lib/jotai/replay.d.ts +3 -0
  431. package/lib/jotai/replay.js +2 -0
  432. package/lib/jotai/store.d.ts +16 -0
  433. package/lib/jotai/store.js +2 -0
  434. package/lib/models/code-sample-options.d.ts +1 -4
  435. package/lib/models/group.d.ts +2 -2
  436. package/lib/models/group.js +1 -1
  437. package/lib/models/index.d.ts +0 -1
  438. package/lib/models/index.js +1 -1
  439. package/lib/models/mediaContent.js +1 -1
  440. package/lib/models/mediaType.js +1 -1
  441. package/lib/models/operation.js +1 -1
  442. package/lib/models/response.js +1 -1
  443. package/lib/models/schema.js +1 -1
  444. package/lib/models/security.js +1 -1
  445. package/lib/models/tab.d.ts +4 -0
  446. package/lib/models/tab.js +2 -0
  447. package/lib/models/types.d.ts +13 -15
  448. package/lib/services/OpenAPIParser.d.ts +1 -2
  449. package/lib/services/OpenAPIParser.js +1 -1
  450. package/lib/services/code-samples/constants.d.ts +2 -0
  451. package/lib/services/code-samples/constants.js +2 -0
  452. package/lib/services/code-samples/generator.d.ts +3 -3
  453. package/lib/services/code-samples/generator.js +1 -1
  454. package/lib/services/code-samples/httpsnippet/helpers/code-builder.d.ts +2 -1
  455. package/lib/services/code-samples/httpsnippet/helpers/code-builder.js +1 -1
  456. package/lib/services/code-samples/httpsnippet/helpers/code-helpers.js +1 -1
  457. package/lib/services/code-samples/httpsnippet/helpers/constants.d.ts +1 -0
  458. package/lib/services/code-samples/httpsnippet/helpers/constants.js +1 -1
  459. package/lib/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.d.ts +2 -0
  460. package/lib/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.js +1 -1
  461. package/lib/services/code-samples/httpsnippet/index.d.ts +1 -1
  462. package/lib/services/code-samples/httpsnippet/targets/__mocks__/mock.js +1 -1
  463. package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
  464. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.d.ts +10 -0
  465. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.js +2 -0
  466. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.d.ts +10 -0
  467. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.js +2 -0
  468. package/lib/services/code-samples/httpsnippet/targets/index.d.ts +9 -0
  469. package/lib/services/code-samples/httpsnippet/targets/index.js +1 -1
  470. package/lib/services/code-samples/httpsnippet/targets/python/requests.js +1 -1
  471. package/lib/services/code-samples/types.d.ts +10 -4
  472. package/lib/services/config-options/helpers.d.ts +3 -0
  473. package/lib/services/config-options/helpers.js +2 -0
  474. package/lib/services/config-options/normalizeOptions.d.ts +3 -0
  475. package/lib/services/config-options/normalizeOptions.js +2 -0
  476. package/lib/services/config-options/types.d.ts +54 -0
  477. package/lib/services/history/helpers.d.ts +1 -0
  478. package/lib/services/history/helpers.js +1 -1
  479. package/lib/services/index.d.ts +1 -5
  480. package/lib/services/index.js +1 -1
  481. package/lib/services/menu/builder.d.ts +1 -1
  482. package/lib/services/menu/builder.js +1 -1
  483. package/lib/services/menu/markdown.d.ts +1 -4
  484. package/lib/services/menu/markdown.js +1 -1
  485. package/lib/services/menu/operation.d.ts +2 -5
  486. package/lib/services/menu/operation.js +1 -1
  487. package/lib/services/menu/tags.d.ts +1 -1
  488. package/lib/services/menu/tags.js +1 -1
  489. package/lib/services/types.d.ts +4 -50
  490. package/lib/services/types.js +1 -1
  491. package/lib/services/utils.d.ts +0 -7
  492. package/lib/services/utils.js +1 -1
  493. package/lib/setupTests.d.ts +1 -2
  494. package/lib/setupTests.js +1 -1
  495. package/lib/standalone.d.ts +2 -6
  496. package/lib/standalone.js +1 -1
  497. package/lib/testProviders.d.ts +2 -3
  498. package/lib/testProviders.js +1 -1
  499. package/lib/types/index.d.ts +0 -1
  500. package/lib/types/index.js +1 -1
  501. package/lib/types/open-api.d.ts +15 -5
  502. package/lib/utils/argValuesHelpers.d.ts +1 -1
  503. package/lib/utils/argValuesHelpers.js +1 -1
  504. package/lib/utils/cookies.d.ts +7 -0
  505. package/lib/utils/cookies.js +2 -0
  506. package/lib/utils/dom.d.ts +0 -1
  507. package/lib/utils/dom.js +1 -1
  508. package/lib/utils/environments.d.ts +4 -0
  509. package/lib/utils/environments.js +2 -0
  510. package/lib/utils/helpers.d.ts +2 -3
  511. package/lib/utils/helpers.js +1 -1
  512. package/lib/utils/index.d.ts +2 -2
  513. package/lib/utils/index.js +1 -1
  514. package/lib/utils/isMobile.d.ts +5 -0
  515. package/lib/utils/isMobile.js +2 -0
  516. package/lib/utils/loadAndBundleSpec.js +1 -1
  517. package/lib/utils/local-storage.js +1 -1
  518. package/lib/utils/object.d.ts +1 -0
  519. package/lib/utils/object.js +1 -1
  520. package/lib/utils/openapi.d.ts +3 -5
  521. package/lib/utils/openapi.js +1 -1
  522. package/lib/utils/path.d.ts +0 -1
  523. package/lib/utils/path.js +1 -1
  524. package/lib/utils/replaceVariables.d.ts +2 -0
  525. package/lib/utils/replaceVariables.js +2 -0
  526. package/lib/utils/saveTextBeforeHeading.d.ts +1 -1
  527. package/lib/utils/saveTextBeforeHeading.js +1 -1
  528. package/lib/utils/security-details.d.ts +1 -5
  529. package/lib/utils/security-details.js +1 -1
  530. package/lib/utils/session-storage.js +1 -1
  531. package/lib/utils/string.d.ts +1 -0
  532. package/lib/utils/string.js +1 -1
  533. package/lib-esm/components/ApiInfo/ApiInfo.d.ts +3 -3
  534. package/lib-esm/components/ApiInfo/ApiInfo.js +2 -2
  535. package/lib-esm/components/ApiInfo/Metadata.d.ts +2 -2
  536. package/lib-esm/components/ApiInfo/Metadata.js +1 -1
  537. package/lib-esm/components/ApiInfo/styled.js +5 -2
  538. package/lib-esm/components/CallbackSamples/CallbackSamples.d.ts +4 -4
  539. package/lib-esm/components/CallbackSamples/CallbackSamples.js +15 -1
  540. package/lib-esm/components/Callbacks/CallbackDetails.d.ts +2 -2
  541. package/lib-esm/components/Callbacks/CallbackDetails.js +18 -2
  542. package/lib-esm/components/Callbacks/CallbackOperation.d.ts +4 -2
  543. package/lib-esm/components/Callbacks/CallbackOperation.js +14 -1
  544. package/lib-esm/components/Callbacks/CallbackSummary.d.ts +3 -3
  545. package/lib-esm/components/Callbacks/CallbackSummary.js +18 -1
  546. package/lib-esm/components/Callbacks/CallbacksList.d.ts +5 -3
  547. package/lib-esm/components/Callbacks/CallbacksList.js +1 -1
  548. package/lib-esm/components/Callbacks/styled.js +1 -0
  549. package/lib-esm/components/Content/Content.d.ts +8 -0
  550. package/lib-esm/components/Content/Content.js +2 -0
  551. package/lib-esm/components/Content/index.d.ts +1 -0
  552. package/lib-esm/components/Content/index.js +2 -0
  553. package/lib-esm/components/Content/useAutoScroll.d.ts +1 -0
  554. package/lib-esm/components/Content/useAutoScroll.js +2 -0
  555. package/lib-esm/components/ContentItem/ContentItem.d.ts +3 -3
  556. package/lib-esm/components/ContentItem/ContentItem.js +1 -1
  557. package/lib-esm/components/ContentItem/useIsExpanded.d.ts +5 -0
  558. package/lib-esm/components/ContentItem/useIsExpanded.js +2 -0
  559. package/lib-esm/components/ContentItems/ContentItems.d.ts +3 -3
  560. package/lib-esm/components/ContentItems/ContentItems.js +1 -1
  561. package/lib-esm/components/ContentItems/helpers.d.ts +0 -8
  562. package/lib-esm/components/ContentItems/helpers.js +1 -1
  563. package/lib-esm/components/Discriminator/Discriminator.d.ts +9 -0
  564. package/lib-esm/components/Discriminator/Discriminator.js +6 -0
  565. package/lib-esm/components/Discriminator/index.d.ts +1 -0
  566. package/lib-esm/components/Discriminator/index.js +2 -0
  567. package/lib-esm/components/Download/DownloadSpecification.d.ts +4 -0
  568. package/lib-esm/components/Download/DownloadSpecification.js +40 -0
  569. package/lib-esm/components/Download/index.d.ts +1 -3
  570. package/lib-esm/components/Download/index.js +1 -1
  571. package/lib-esm/components/Download/types.d.ts +10 -14
  572. package/lib-esm/components/Download/useDownloadInfo.d.ts +1 -1
  573. package/lib-esm/components/Download/useDownloadInfo.js +1 -1
  574. package/lib-esm/components/ErrorBoundary/ErrorBoundary.d.ts +2 -2
  575. package/lib-esm/components/ErrorBoundary/ErrorBoundary.js +2 -2
  576. package/lib-esm/components/ExpandAllButton/ExpandAllButton.d.ts +6 -0
  577. package/lib-esm/components/ExpandAllButton/ExpandAllButton.js +4 -0
  578. package/lib-esm/components/ExpandAllButton/getAllNestedSchema.d.ts +8 -0
  579. package/lib-esm/components/ExpandAllButton/getAllNestedSchema.js +2 -0
  580. package/lib-esm/components/ExpandAllButton/index.d.ts +2 -0
  581. package/lib-esm/components/ExpandAllButton/index.js +2 -0
  582. package/lib-esm/components/ExpandAllButton/useUpdateExpandedFields.d.ts +2 -0
  583. package/lib-esm/components/ExpandAllButton/useUpdateExpandedFields.js +2 -0
  584. package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.d.ts +2 -2
  585. package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.js +4 -4
  586. package/lib-esm/components/Language/LanguageDropdown.d.ts +15 -0
  587. package/lib-esm/components/Language/LanguageDropdown.js +2 -0
  588. package/lib-esm/components/Language/LanguageItem.d.ts +11 -0
  589. package/lib-esm/components/Language/LanguageItem.js +2 -0
  590. package/lib-esm/components/Language/LanguageList.d.ts +11 -0
  591. package/lib-esm/components/Language/LanguageList.js +2 -0
  592. package/lib-esm/components/Language/_tests_/LanguageDropdown.test.js +2 -0
  593. package/lib-esm/components/Language/constants.d.ts +1 -0
  594. package/lib-esm/components/Language/constants.js +2 -0
  595. package/lib-esm/components/Language/index.d.ts +3 -0
  596. package/lib-esm/components/Language/index.js +2 -0
  597. package/lib-esm/components/Language/styled.d.ts +30 -0
  598. package/lib-esm/components/Language/styled.js +76 -0
  599. package/lib-esm/components/Markdown/Markdown.d.ts +2 -2
  600. package/lib-esm/components/Markdown/Markdown.js +1 -1
  601. package/lib-esm/components/Markdown/index.d.ts +0 -1
  602. package/lib-esm/components/Markdown/index.js +1 -1
  603. package/lib-esm/components/Markdown/types.d.ts +3 -2
  604. package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +5 -5
  605. package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -1
  606. package/lib-esm/components/OperationItem/Description.d.ts +10 -0
  607. package/lib-esm/components/OperationItem/Description.js +2 -0
  608. package/lib-esm/components/OperationItem/OperationItem.d.ts +2 -2
  609. package/lib-esm/components/OperationItem/OperationItem.js +19 -9
  610. package/lib-esm/components/OperationItem/_tests_/OperationItem.test.js +2 -0
  611. package/lib-esm/components/Overlay.d.ts +2 -2
  612. package/lib-esm/components/Overlay.js +1 -1
  613. package/lib-esm/components/Overview/Overview.d.ts +4 -0
  614. package/lib-esm/components/Overview/Overview.js +2 -0
  615. package/lib-esm/components/Overview/index.d.ts +1 -0
  616. package/lib-esm/components/Overview/index.js +2 -0
  617. package/lib-esm/components/PageFooter/PageFooter.d.ts +3 -14
  618. package/lib-esm/components/PageFooter/PageFooter.js +1 -1
  619. package/lib-esm/components/Panel/ContentPanel.d.ts +2 -4
  620. package/lib-esm/components/Panel/ResponsePanel.d.ts +3 -8
  621. package/lib-esm/components/Panel/ResponsePanel.js +7 -8
  622. package/lib-esm/components/Panel/index.d.ts +0 -4
  623. package/lib-esm/components/Panel/index.js +1 -1
  624. package/lib-esm/components/PanelItem/PanelItem.d.ts +9 -0
  625. package/lib-esm/components/PanelItem/PanelItem.js +2 -0
  626. package/lib-esm/components/PanelItem/index.d.ts +2 -0
  627. package/lib-esm/components/PanelItem/index.js +2 -0
  628. package/lib-esm/components/PanelItem/styled.d.ts +17 -0
  629. package/lib-esm/components/PanelItem/styled.js +53 -0
  630. package/lib-esm/components/PayloadSamples/Example.d.ts +2 -2
  631. package/lib-esm/components/PayloadSamples/Example.js +1 -1
  632. package/lib-esm/components/PayloadSamples/ExampleValue.d.ts +1 -1
  633. package/lib-esm/components/PayloadSamples/ExampleValue.js +1 -1
  634. package/lib-esm/components/PayloadSamples/ExternalExample.d.ts +2 -2
  635. package/lib-esm/components/PayloadSamples/ExternalExample.js +1 -1
  636. package/lib-esm/components/PayloadSamples/MediaTypeSamples.d.ts +2 -2
  637. package/lib-esm/components/PayloadSamples/MediaTypeSamples.js +3 -1
  638. package/lib-esm/components/PayloadSamples/PayloadSamples.d.ts +2 -2
  639. package/lib-esm/components/PayloadSamples/PayloadSamples.js +1 -1
  640. package/lib-esm/components/PayloadSamples/styled.d.ts +4 -3
  641. package/lib-esm/components/PayloadSamples/styled.js +10 -5
  642. package/lib-esm/components/PayloadSamples/types.d.ts +0 -1
  643. package/lib-esm/components/PropertyDetails/DescriptionEnums.d.ts +4 -0
  644. package/lib-esm/components/PropertyDetails/DescriptionEnums.js +10 -0
  645. package/lib-esm/components/PropertyDetails/EnumValues.d.ts +3 -0
  646. package/lib-esm/components/PropertyDetails/EnumValues.js +2 -0
  647. package/lib-esm/components/PropertyDetails/Examples.d.ts +5 -0
  648. package/lib-esm/components/PropertyDetails/Examples.js +2 -0
  649. package/lib-esm/components/PropertyDetails/Extensions.d.ts +3 -0
  650. package/lib-esm/components/PropertyDetails/Extensions.js +4 -0
  651. package/lib-esm/components/PropertyDetails/FieldDetail.d.ts +7 -0
  652. package/lib-esm/components/PropertyDetails/FieldDetail.js +8 -0
  653. package/lib-esm/components/PropertyDetails/FieldDetails.d.ts +3 -0
  654. package/lib-esm/components/PropertyDetails/FieldDetails.js +43 -0
  655. package/lib-esm/components/PropertyDetails/Pattern.d.ts +6 -0
  656. package/lib-esm/components/PropertyDetails/Pattern.js +2 -0
  657. package/lib-esm/components/PropertyDetails/PlusCircleIcon.d.ts +7 -0
  658. package/lib-esm/components/PropertyDetails/PlusCircleIcon.js +11 -0
  659. package/lib-esm/components/PropertyDetails/PropertyDetails.d.ts +3 -0
  660. package/lib-esm/components/PropertyDetails/PropertyDetails.js +17 -0
  661. package/lib-esm/components/PropertyDetails/SchemaTypeInfo.d.ts +6 -0
  662. package/lib-esm/components/PropertyDetails/SchemaTypeInfo.js +16 -0
  663. package/lib-esm/components/PropertyDetails/SimpleEnums.d.ts +4 -0
  664. package/lib-esm/components/PropertyDetails/SimpleEnums.js +8 -0
  665. package/lib-esm/components/PropertyDetails/cycleColorsByLevel.d.ts +1 -0
  666. package/lib-esm/components/PropertyDetails/cycleColorsByLevel.js +2 -0
  667. package/lib-esm/components/PropertyDetails/index.d.ts +3 -0
  668. package/lib-esm/components/PropertyDetails/index.js +2 -0
  669. package/lib-esm/components/PropertyDetails/styled.d.ts +16 -0
  670. package/lib-esm/components/PropertyDetails/styled.js +23 -0
  671. package/lib-esm/components/PropertyDetails/types.d.ts +43 -0
  672. package/lib-esm/components/RedoclyOpenAPIDocs/Providers.d.ts +4 -7
  673. package/lib-esm/components/RedoclyOpenAPIDocs/Providers.js +1 -1
  674. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.d.ts +3 -3
  675. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +1 -1
  676. package/lib-esm/components/RedoclyOpenAPIDocs/index.d.ts +2 -2
  677. package/lib-esm/components/RedoclyOpenAPIDocs/index.js +1 -1
  678. package/lib-esm/components/RedoclyOpenAPIDocs/styled.d.ts +0 -8
  679. package/lib-esm/components/RedoclyOpenAPIDocs/styled.js +12 -112
  680. package/lib-esm/components/RedoclyOpenAPIDocs/types.d.ts +16 -33
  681. package/lib-esm/components/RedoclyOpenAPIDocs/utils.d.ts +3 -5
  682. package/lib-esm/components/RedoclyOpenAPIDocs/utils.js +1 -1
  683. package/lib-esm/components/RenderHook/RenderHook.d.ts +3 -3
  684. package/lib-esm/components/RenderHook/RenderHook.js +1 -1
  685. package/lib-esm/components/Replay/EmbeddedReplay.d.ts +11 -0
  686. package/lib-esm/components/Replay/EmbeddedReplay.js +11 -0
  687. package/lib-esm/components/Replay/Replay.d.ts +10 -0
  688. package/lib-esm/components/Replay/Replay.js +14 -0
  689. package/lib-esm/components/Replay/index.d.ts +2 -0
  690. package/lib-esm/components/Replay/index.js +2 -0
  691. package/lib-esm/components/Replay/utils.d.ts +14 -0
  692. package/lib-esm/components/Replay/utils.js +2 -0
  693. package/lib-esm/components/Request/RequestDetails.d.ts +3 -0
  694. package/lib-esm/components/Request/RequestDetails.js +4 -0
  695. package/lib-esm/components/Request/types.d.ts +6 -0
  696. package/lib-esm/components/RequestParameters/Body.d.ts +10 -0
  697. package/lib-esm/components/RequestParameters/Body.js +2 -0
  698. package/lib-esm/components/RequestParameters/ParametersGroup.d.ts +9 -0
  699. package/lib-esm/components/RequestParameters/ParametersGroup.js +21 -0
  700. package/lib-esm/components/RequestParameters/RequestParameters.d.ts +9 -0
  701. package/lib-esm/components/RequestParameters/RequestParameters.js +2 -0
  702. package/lib-esm/components/RequestParameters/index.d.ts +2 -0
  703. package/lib-esm/components/RequestParameters/index.js +2 -0
  704. package/lib-esm/components/RequestSamples/CodeSample.d.ts +3 -4
  705. package/lib-esm/components/RequestSamples/CodeSample.js +9 -1
  706. package/lib-esm/components/RequestSamples/Example.d.ts +3 -4
  707. package/lib-esm/components/RequestSamples/Example.js +1 -1
  708. package/lib-esm/components/RequestSamples/RequestSamples.d.ts +4 -9
  709. package/lib-esm/components/RequestSamples/RequestSamples.js +6 -1
  710. package/lib-esm/components/RequestSamples/useCodeSamples.d.ts +1 -1
  711. package/lib-esm/components/RequestSamples/useCodeSamples.js +1 -1
  712. package/lib-esm/components/ResponseSamples/ResponseSamples.d.ts +5 -3
  713. package/lib-esm/components/ResponseSamples/ResponseSamples.js +1 -1
  714. package/lib-esm/components/ResponseSamples/Summary.d.ts +5 -0
  715. package/lib-esm/components/ResponseSamples/Summary.js +2 -0
  716. package/lib-esm/components/Responses/OperationResponseList.d.ts +8 -2
  717. package/lib-esm/components/Responses/OperationResponseList.js +4 -1
  718. package/lib-esm/components/Responses/ResponseDetails.d.ts +2 -2
  719. package/lib-esm/components/Responses/ResponseDetails.js +1 -3
  720. package/lib-esm/components/Responses/ResponseHeaders.d.ts +2 -2
  721. package/lib-esm/components/Responses/ResponseHeaders.js +1 -1
  722. package/lib-esm/components/Responses/index.d.ts +0 -3
  723. package/lib-esm/components/Responses/index.js +1 -1
  724. package/lib-esm/components/Responses/styled.d.ts +6 -3
  725. package/lib-esm/components/Responses/styled.js +21 -12
  726. package/lib-esm/components/Responses/types.d.ts +5 -7
  727. package/lib-esm/components/RightPanel/RightPanel.d.ts +5 -0
  728. package/lib-esm/components/RightPanel/RightPanel.js +2 -0
  729. package/lib-esm/components/RightPanel/index.d.ts +1 -0
  730. package/lib-esm/components/RightPanel/index.js +2 -0
  731. package/lib-esm/components/Samples/ExampleSwitch.d.ts +2 -3
  732. package/lib-esm/components/Samples/ExampleSwitch.js +1 -1
  733. package/lib-esm/components/Samples/index.d.ts +0 -2
  734. package/lib-esm/components/Samples/index.js +1 -1
  735. package/lib-esm/components/Samples/use-example-key.d.ts +1 -2
  736. package/lib-esm/components/Samples/use-example-key.js +1 -1
  737. package/lib-esm/components/Schema/ArraySchema.d.ts +3 -2
  738. package/lib-esm/components/Schema/ArraySchema.js +33 -3
  739. package/lib-esm/components/Schema/ObjectSchema.d.ts +2 -2
  740. package/lib-esm/components/Schema/ObjectSchema.js +1 -1
  741. package/lib-esm/components/Schema/OneOfSchema.d.ts +2 -2
  742. package/lib-esm/components/Schema/OneOfSchema.js +9 -1
  743. package/lib-esm/components/Schema/RecursiveSchema.d.ts +2 -2
  744. package/lib-esm/components/Schema/RecursiveSchema.js +1 -1
  745. package/lib-esm/components/Schema/Schema.d.ts +2 -2
  746. package/lib-esm/components/Schema/Schema.js +4 -1
  747. package/lib-esm/components/Schema/SubSchema.d.ts +13 -0
  748. package/lib-esm/components/Schema/SubSchema.js +2 -0
  749. package/lib-esm/components/Schema/helpers.d.ts +5 -0
  750. package/lib-esm/components/Schema/helpers.js +2 -0
  751. package/lib-esm/components/Schema/types.d.ts +11 -1
  752. package/lib-esm/components/Schema/useOneOfLocationIdx.d.ts +2 -0
  753. package/lib-esm/components/Schema/useOneOfLocationIdx.js +2 -0
  754. package/lib-esm/components/SchemaDefinition/SchemaDefinition.d.ts +2 -2
  755. package/lib-esm/components/SchemaDefinition/SchemaDefinition.js +1 -4
  756. package/lib-esm/components/SectionContent/SectionContent.d.ts +2 -10
  757. package/lib-esm/components/SectionContent/SectionContent.js +15 -1
  758. package/lib-esm/components/SectionItem/SectionItem.d.ts +2 -2
  759. package/lib-esm/components/SectionItem/SectionItem.js +1 -1
  760. package/lib-esm/components/Security/Divider.d.ts +3 -0
  761. package/lib-esm/components/Security/Divider.js +15 -0
  762. package/lib-esm/components/Security/OAuthFlow.d.ts +6 -0
  763. package/lib-esm/components/Security/OAuthFlow.js +4 -0
  764. package/lib-esm/components/Security/Security.d.ts +7 -0
  765. package/lib-esm/components/Security/Security.js +2 -0
  766. package/lib-esm/components/Security/SecurityButton.d.ts +10 -0
  767. package/lib-esm/components/Security/SecurityButton.js +28 -0
  768. package/lib-esm/components/Security/SecurityFlow.d.ts +5 -0
  769. package/lib-esm/components/Security/SecurityFlow.js +21 -0
  770. package/lib-esm/components/Security/SecurityModal.d.ts +8 -0
  771. package/lib-esm/components/Security/SecurityModal.js +45 -0
  772. package/lib-esm/components/Security/SecuritySchemeItem.d.ts +7 -0
  773. package/lib-esm/components/Security/SecuritySchemeItem.js +20 -0
  774. package/lib-esm/components/Security/helper.d.ts +2 -0
  775. package/lib-esm/components/Security/helper.js +2 -0
  776. package/lib-esm/components/Security/index.d.ts +1 -0
  777. package/lib-esm/components/Security/index.js +2 -0
  778. package/lib-esm/components/Security/styled.d.ts +2 -0
  779. package/lib-esm/components/Security/styled.js +14 -0
  780. package/lib-esm/components/SelectOrLabel/SelectOrLabel.d.ts +7 -0
  781. package/lib-esm/components/SelectOrLabel/SelectOrLabel.js +8 -0
  782. package/lib-esm/components/SelectOrLabel/index.d.ts +1 -0
  783. package/lib-esm/components/SelectOrLabel/index.js +2 -0
  784. package/lib-esm/components/ServerList/ServerList.d.ts +3 -0
  785. package/lib-esm/components/ServerList/ServerList.js +60 -0
  786. package/lib-esm/components/ServerList/index.d.ts +1 -0
  787. package/lib-esm/components/ServerList/index.js +2 -0
  788. package/lib-esm/components/ServerList/types.d.ts +2 -0
  789. package/lib-esm/components/ServerListDropdown/ServerListDropdown.d.ts +7 -0
  790. package/lib-esm/components/ServerListDropdown/ServerListDropdown.js +2 -0
  791. package/lib-esm/components/ServerListDropdown/index.d.ts +1 -0
  792. package/lib-esm/components/ServerListDropdown/index.js +2 -0
  793. package/lib-esm/components/ServerListDropdown/styled.d.ts +6 -0
  794. package/lib-esm/components/ServerListDropdown/styled.js +23 -0
  795. package/lib-esm/components/SideMenu/SideMenu.d.ts +3 -2
  796. package/lib-esm/components/SideMenu/SideMenu.js +3 -1
  797. package/lib-esm/components/SideMenu/hooks/useMenuItems.d.ts +1 -3
  798. package/lib-esm/components/SideMenu/hooks/useMenuItems.js +1 -1
  799. package/lib-esm/components/SideMenu/index.d.ts +0 -3
  800. package/lib-esm/components/SideMenu/index.js +1 -1
  801. package/lib-esm/components/SideMenu/types.d.ts +1 -15
  802. package/lib-esm/components/StickySidebar/SidebarActions.d.ts +1 -0
  803. package/lib-esm/components/StickySidebar/SidebarActions.js +6 -0
  804. package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.d.ts +2 -3
  805. package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.js +12 -26
  806. package/lib-esm/components/Tabs/Tabs.d.ts +8 -0
  807. package/lib-esm/components/Tabs/Tabs.js +35 -0
  808. package/lib-esm/components/Tabs/index.d.ts +2 -5
  809. package/lib-esm/components/Tabs/index.js +1 -1
  810. package/lib-esm/components/Tabs/useTabsState.d.ts +11 -0
  811. package/lib-esm/components/Tabs/useTabsState.js +2 -0
  812. package/lib-esm/components/TagItem/OperationsNavigation.d.ts +9 -0
  813. package/lib-esm/components/TagItem/OperationsNavigation.js +46 -0
  814. package/lib-esm/components/TagItem/TagItem.d.ts +8 -2
  815. package/lib-esm/components/TagItem/TagItem.js +22 -1
  816. package/lib-esm/components/UnsupportedFeatureScreen/UnsupportedFeatureScreen.d.ts +1 -0
  817. package/lib-esm/components/UnsupportedFeatureScreen/UnsupportedFeatureScreen.js +18 -0
  818. package/lib-esm/components/UnsupportedFeatureScreen/index.d.ts +1 -0
  819. package/lib-esm/components/UnsupportedFeatureScreen/index.js +2 -0
  820. package/lib-esm/components/ViewNested/ViewNested.d.ts +13 -0
  821. package/lib-esm/components/ViewNested/ViewNested.js +31 -0
  822. package/lib-esm/components/ViewNested/index.d.ts +1 -0
  823. package/lib-esm/components/ViewNested/index.js +2 -0
  824. package/lib-esm/components/common/BodyContent/BodyContent.d.ts +12 -0
  825. package/lib-esm/components/common/BodyContent/BodyContent.js +28 -0
  826. package/lib-esm/components/common/BodyContent/index.d.ts +1 -0
  827. package/lib-esm/components/common/BodyContent/index.js +2 -0
  828. package/lib-esm/components/common/ClearButton/ClearButton.d.ts +2 -2
  829. package/lib-esm/components/common/ClearButton/ClearButton.js +1 -1
  830. package/lib-esm/components/common/ClearButton/types.d.ts +2 -2
  831. package/lib-esm/components/common/CodeBlockPanel.d.ts +2 -0
  832. package/lib-esm/components/common/CodeBlockPanel.js +6 -0
  833. package/lib-esm/components/common/ConstraintsView.d.ts +5 -0
  834. package/lib-esm/components/common/ConstraintsView.js +4 -0
  835. package/lib-esm/components/common/Dropdown/Dropdown.d.ts +15 -3
  836. package/lib-esm/components/common/Dropdown/Dropdown.js +26 -15
  837. package/lib-esm/components/common/Dropdown/index.d.ts +2 -2
  838. package/lib-esm/components/common/Dropdown/index.js +1 -1
  839. package/lib-esm/components/common/Extensions.d.ts +7 -0
  840. package/lib-esm/components/common/Extensions.js +4 -0
  841. package/lib-esm/components/common/Fields/fields-layout.js +12 -13
  842. package/lib-esm/components/common/Fields/fields.d.ts +33 -16
  843. package/lib-esm/components/common/Fields/fields.js +45 -64
  844. package/lib-esm/components/common/LinkToField.d.ts +3 -8
  845. package/lib-esm/components/common/LinkToField.js +14 -8
  846. package/lib-esm/components/common/OperationItemTitle.d.ts +2 -0
  847. package/lib-esm/components/common/OperationItemTitle.js +33 -0
  848. package/lib-esm/components/common/SchemaSelection/SchemaSelection.d.ts +12 -0
  849. package/lib-esm/components/common/SchemaSelection/SchemaSelection.js +2 -0
  850. package/lib-esm/components/common/SchemaSelection/index.d.ts +1 -0
  851. package/lib-esm/components/common/SchemaSelection/index.js +2 -0
  852. package/lib-esm/components/common/Select/Select.d.ts +3 -0
  853. package/lib-esm/components/common/Select/Select.js +2 -0
  854. package/lib-esm/components/common/Select/index.d.ts +2 -0
  855. package/lib-esm/components/common/Select/index.js +2 -0
  856. package/lib-esm/components/common/Select/styled.d.ts +23 -0
  857. package/lib-esm/components/common/Select/styled.js +111 -0
  858. package/lib-esm/components/common/Select/types.d.ts +20 -0
  859. package/lib-esm/components/common/Skeleton/LanguageListSkeleton.d.ts +4 -0
  860. package/lib-esm/components/common/Skeleton/LanguageListSkeleton.js +23 -0
  861. package/lib-esm/components/common/Skeleton/Skeleton.d.ts +5 -2
  862. package/lib-esm/components/common/Skeleton/Skeleton.js +7 -5
  863. package/lib-esm/components/common/headers.d.ts +0 -1
  864. package/lib-esm/components/common/headers.js +2 -6
  865. package/lib-esm/components/common/index.d.ts +5 -7
  866. package/lib-esm/components/common/index.js +1 -1
  867. package/lib-esm/components/common/linkify.d.ts +4 -3
  868. package/lib-esm/components/common/linkify.js +13 -4
  869. package/lib-esm/components/common/panels.d.ts +5 -1
  870. package/lib-esm/components/common/panels.js +65 -44
  871. package/lib-esm/components/common/schema.d.ts +3 -5
  872. package/lib-esm/components/common/schema.js +25 -19
  873. package/lib-esm/components/common/styled.d.ts +4 -0
  874. package/lib-esm/components/common/styled.js +27 -0
  875. package/lib-esm/components/index.d.ts +4 -13
  876. package/lib-esm/components/index.js +1 -1
  877. package/lib-esm/components/pluggable/RedocExample.d.ts +2 -2
  878. package/lib-esm/components/pluggable/RedocExample.js +1 -1
  879. package/lib-esm/components/pluggable/RedocSchema.d.ts +2 -2
  880. package/lib-esm/components/pluggable/RedocSchema.js +1 -1
  881. package/lib-esm/components/pluggable/index.d.ts +0 -3
  882. package/lib-esm/components/pluggable/index.js +1 -1
  883. package/lib-esm/components/pluggable/styled.components.d.ts +1 -0
  884. package/lib-esm/components/pluggable/styled.components.js +1 -1
  885. package/lib-esm/constants.d.ts +5 -3
  886. package/lib-esm/constants.js +1 -1
  887. package/lib-esm/events/codeSampleCopy.js +1 -1
  888. package/lib-esm/events/index.d.ts +0 -1
  889. package/lib-esm/events/index.js +1 -1
  890. package/lib-esm/events/types.d.ts +1 -8
  891. package/lib-esm/events/types.js +1 -1
  892. package/lib-esm/hoc/types.d.ts +3 -10
  893. package/lib-esm/hoc/utils.d.ts +2 -2
  894. package/lib-esm/hoc/withRouter.d.ts +2 -2
  895. package/lib-esm/hoc/withRouter.js +1 -1
  896. package/lib-esm/hoc/withStore.d.ts +2 -2
  897. package/lib-esm/hoc/withStore.js +1 -1
  898. package/lib-esm/hooks/index.d.ts +2 -0
  899. package/lib-esm/hooks/index.js +1 -1
  900. package/lib-esm/hooks/useActivateExample.js +1 -1
  901. package/lib-esm/hooks/useActiveWithFallback.d.ts +3 -0
  902. package/lib-esm/hooks/useActiveWithFallback.js +2 -0
  903. package/lib-esm/hooks/useContentItems.js +1 -1
  904. package/lib-esm/hooks/useRouter.d.ts +4 -2
  905. package/lib-esm/hooks/useUppercase2LowercaseRedirect.d.ts +1 -0
  906. package/lib-esm/hooks/useUppercase2LowercaseRedirect.js +2 -0
  907. package/lib-esm/icons/CSharpIcon/CSharpIcon.d.ts +4 -0
  908. package/lib-esm/icons/CSharpIcon/CSharpIcon.js +2 -0
  909. package/lib-esm/icons/CSharpIcon/index.d.ts +1 -0
  910. package/lib-esm/icons/CSharpIcon/index.js +2 -0
  911. package/lib-esm/icons/CurlIcon/CurlIcon.d.ts +4 -0
  912. package/lib-esm/icons/CurlIcon/CurlIcon.js +2 -0
  913. package/lib-esm/icons/CurlIcon/index.d.ts +1 -0
  914. package/lib-esm/icons/CurlIcon/index.js +2 -0
  915. package/lib-esm/icons/GOIcon/GOIcon.d.ts +4 -0
  916. package/lib-esm/icons/GOIcon/GOIcon.js +2 -0
  917. package/lib-esm/icons/GOIcon/index.d.ts +1 -0
  918. package/lib-esm/icons/GOIcon/index.js +2 -0
  919. package/lib-esm/icons/JavaIcon/JavaIcon.d.ts +4 -0
  920. package/lib-esm/icons/JavaIcon/JavaIcon.js +2 -0
  921. package/lib-esm/icons/JavaIcon/index.d.ts +1 -0
  922. package/lib-esm/icons/JavaIcon/index.js +2 -0
  923. package/lib-esm/icons/JavaScriptIcon/JavaScriptIcon.d.ts +4 -0
  924. package/lib-esm/icons/JavaScriptIcon/JavaScriptIcon.js +2 -0
  925. package/lib-esm/icons/JavaScriptIcon/index.d.ts +1 -0
  926. package/lib-esm/icons/JavaScriptIcon/index.js +2 -0
  927. package/lib-esm/icons/NodeJSIcon/NodeJSIcon.d.ts +4 -0
  928. package/lib-esm/icons/NodeJSIcon/NodeJSIcon.js +2 -0
  929. package/lib-esm/icons/NodeJSIcon/index.d.ts +1 -0
  930. package/lib-esm/icons/NodeJSIcon/index.js +2 -0
  931. package/lib-esm/icons/PHPIcon/PHPIcon.d.ts +4 -0
  932. package/lib-esm/icons/PHPIcon/PHPIcon.js +2 -0
  933. package/lib-esm/icons/PHPIcon/index.d.ts +1 -0
  934. package/lib-esm/icons/PHPIcon/index.js +2 -0
  935. package/lib-esm/icons/PayloadIcon/PayloadIcon.d.ts +4 -0
  936. package/lib-esm/icons/PayloadIcon/PayloadIcon.js +2 -0
  937. package/lib-esm/icons/PayloadIcon/index.d.ts +1 -0
  938. package/lib-esm/icons/PayloadIcon/index.js +2 -0
  939. package/lib-esm/icons/PythonIcon/PythonIcon.d.ts +4 -0
  940. package/lib-esm/icons/PythonIcon/PythonIcon.js +2 -0
  941. package/lib-esm/icons/PythonIcon/index.d.ts +1 -0
  942. package/lib-esm/icons/PythonIcon/index.js +2 -0
  943. package/lib-esm/icons/RIcon/RIcon.d.ts +4 -0
  944. package/lib-esm/icons/RIcon/RIcon.js +2 -0
  945. package/lib-esm/icons/RIcon/index.d.ts +1 -0
  946. package/lib-esm/icons/RIcon/index.js +2 -0
  947. package/lib-esm/icons/RubyIcon/RubyIcon.d.ts +4 -0
  948. package/lib-esm/icons/RubyIcon/RubyIcon.js +2 -0
  949. package/lib-esm/icons/RubyIcon/index.d.ts +1 -0
  950. package/lib-esm/icons/RubyIcon/index.js +2 -0
  951. package/lib-esm/index.d.ts +8 -7
  952. package/lib-esm/index.js +1 -1
  953. package/lib-esm/jotai/app.d.ts +50 -0
  954. package/lib-esm/jotai/app.js +2 -0
  955. package/lib-esm/jotai/nexus.d.ts +5 -0
  956. package/lib-esm/jotai/nexus.js +2 -0
  957. package/lib-esm/jotai/operation.d.ts +39 -0
  958. package/lib-esm/jotai/operation.js +2 -0
  959. package/lib-esm/jotai/replay.d.ts +3 -0
  960. package/lib-esm/jotai/replay.js +2 -0
  961. package/lib-esm/jotai/store.d.ts +16 -0
  962. package/lib-esm/jotai/store.js +2 -0
  963. package/lib-esm/models/code-sample-options.d.ts +1 -4
  964. package/lib-esm/models/group.d.ts +2 -2
  965. package/lib-esm/models/group.js +1 -1
  966. package/lib-esm/models/index.d.ts +0 -1
  967. package/lib-esm/models/index.js +1 -1
  968. package/lib-esm/models/mediaContent.js +1 -1
  969. package/lib-esm/models/mediaType.js +1 -1
  970. package/lib-esm/models/operation.js +1 -1
  971. package/lib-esm/models/response.js +1 -1
  972. package/lib-esm/models/schema.js +1 -1
  973. package/lib-esm/models/security.js +1 -1
  974. package/lib-esm/models/tab.d.ts +4 -0
  975. package/lib-esm/models/tab.js +2 -0
  976. package/lib-esm/models/types.d.ts +13 -15
  977. package/lib-esm/services/OpenAPIParser.d.ts +1 -2
  978. package/lib-esm/services/OpenAPIParser.js +1 -1
  979. package/lib-esm/services/code-samples/constants.d.ts +2 -0
  980. package/lib-esm/services/code-samples/constants.js +2 -0
  981. package/lib-esm/services/code-samples/generator.d.ts +3 -3
  982. package/lib-esm/services/code-samples/generator.js +1 -1
  983. package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.d.ts +2 -1
  984. package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.js +1 -1
  985. package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.js +1 -1
  986. package/lib-esm/services/code-samples/httpsnippet/helpers/constants.d.ts +1 -0
  987. package/lib-esm/services/code-samples/httpsnippet/helpers/constants.js +1 -1
  988. package/lib-esm/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.d.ts +2 -0
  989. package/lib-esm/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.js +1 -1
  990. package/lib-esm/services/code-samples/httpsnippet/index.d.ts +1 -1
  991. package/lib-esm/services/code-samples/httpsnippet/targets/__mocks__/mock.js +1 -1
  992. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
  993. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.d.ts +10 -0
  994. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.js +2 -0
  995. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.d.ts +10 -0
  996. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.js +2 -0
  997. package/lib-esm/services/code-samples/httpsnippet/targets/index.d.ts +9 -0
  998. package/lib-esm/services/code-samples/httpsnippet/targets/index.js +1 -1
  999. package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.js +1 -1
  1000. package/lib-esm/services/code-samples/types.d.ts +10 -4
  1001. package/lib-esm/services/config-options/helpers.d.ts +3 -0
  1002. package/lib-esm/services/config-options/helpers.js +2 -0
  1003. package/lib-esm/services/config-options/normalizeOptions.d.ts +3 -0
  1004. package/lib-esm/services/config-options/normalizeOptions.js +2 -0
  1005. package/lib-esm/services/config-options/types.d.ts +54 -0
  1006. package/lib-esm/services/history/helpers.d.ts +1 -0
  1007. package/lib-esm/services/history/helpers.js +1 -1
  1008. package/lib-esm/services/index.d.ts +1 -5
  1009. package/lib-esm/services/index.js +1 -1
  1010. package/lib-esm/services/menu/builder.d.ts +1 -1
  1011. package/lib-esm/services/menu/builder.js +1 -1
  1012. package/lib-esm/services/menu/markdown.d.ts +1 -4
  1013. package/lib-esm/services/menu/markdown.js +1 -1
  1014. package/lib-esm/services/menu/operation.d.ts +2 -5
  1015. package/lib-esm/services/menu/operation.js +1 -1
  1016. package/lib-esm/services/menu/tags.d.ts +1 -1
  1017. package/lib-esm/services/menu/tags.js +1 -1
  1018. package/lib-esm/services/types.d.ts +4 -50
  1019. package/lib-esm/services/types.js +1 -1
  1020. package/lib-esm/services/utils.d.ts +0 -7
  1021. package/lib-esm/services/utils.js +1 -1
  1022. package/lib-esm/setupTests.d.ts +1 -2
  1023. package/lib-esm/setupTests.js +1 -1
  1024. package/lib-esm/standalone.d.ts +2 -6
  1025. package/lib-esm/standalone.js +1 -1
  1026. package/lib-esm/testProviders.d.ts +2 -3
  1027. package/lib-esm/testProviders.js +1 -1
  1028. package/lib-esm/types/index.d.ts +0 -1
  1029. package/lib-esm/types/index.js +1 -1
  1030. package/lib-esm/types/open-api.d.ts +15 -5
  1031. package/lib-esm/utils/argValuesHelpers.d.ts +1 -1
  1032. package/lib-esm/utils/argValuesHelpers.js +1 -1
  1033. package/lib-esm/utils/cookies.d.ts +7 -0
  1034. package/lib-esm/utils/cookies.js +2 -0
  1035. package/lib-esm/utils/dom.d.ts +0 -1
  1036. package/lib-esm/utils/dom.js +1 -1
  1037. package/lib-esm/utils/environments.d.ts +4 -0
  1038. package/lib-esm/utils/environments.js +2 -0
  1039. package/lib-esm/utils/helpers.d.ts +2 -3
  1040. package/lib-esm/utils/helpers.js +1 -1
  1041. package/lib-esm/utils/index.d.ts +2 -2
  1042. package/lib-esm/utils/index.js +1 -1
  1043. package/lib-esm/utils/isMobile.d.ts +5 -0
  1044. package/lib-esm/utils/isMobile.js +2 -0
  1045. package/lib-esm/utils/loadAndBundleSpec.js +1 -1
  1046. package/lib-esm/utils/local-storage.js +1 -1
  1047. package/lib-esm/utils/object.d.ts +1 -0
  1048. package/lib-esm/utils/object.js +1 -1
  1049. package/lib-esm/utils/openapi.d.ts +3 -5
  1050. package/lib-esm/utils/openapi.js +1 -1
  1051. package/lib-esm/utils/path.d.ts +0 -1
  1052. package/lib-esm/utils/path.js +1 -1
  1053. package/lib-esm/utils/replaceVariables.d.ts +2 -0
  1054. package/lib-esm/utils/replaceVariables.js +2 -0
  1055. package/lib-esm/utils/saveTextBeforeHeading.d.ts +1 -1
  1056. package/lib-esm/utils/saveTextBeforeHeading.js +1 -1
  1057. package/lib-esm/utils/security-details.d.ts +1 -5
  1058. package/lib-esm/utils/security-details.js +1 -1
  1059. package/lib-esm/utils/session-storage.js +1 -1
  1060. package/lib-esm/utils/string.d.ts +1 -0
  1061. package/lib-esm/utils/string.js +1 -1
  1062. package/package.json +67 -87
  1063. package/dist/console.redocly-openapi-docs.min.js +0 -439
  1064. package/dist/oauth2-redirect.html +0 -7
  1065. package/dist/oauth2-redirect.js +0 -9
  1066. package/lib/components/ApiInfo/types.d.ts +0 -9
  1067. package/lib/components/CallbackSamples/CallbackReqSamples.d.ts +0 -7
  1068. package/lib/components/CallbackSamples/CallbackReqSamples.js +0 -4
  1069. package/lib/components/ContentItems/useAutoScroll.d.ts +0 -1
  1070. package/lib/components/ContentItems/useAutoScroll.js +0 -2
  1071. package/lib/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +0 -11
  1072. package/lib/components/DiscriminatorDropdown/DiscriminatorDropdown.js +0 -2
  1073. package/lib/components/DiscriminatorDropdown/index.d.ts +0 -1
  1074. package/lib/components/DiscriminatorDropdown/index.js +0 -2
  1075. package/lib/components/Download/DownloadButtonWithLabel.d.ts +0 -3
  1076. package/lib/components/Download/DownloadButtonWithLabel.js +0 -13
  1077. package/lib/components/Download/DownloadLink.d.ts +0 -3
  1078. package/lib/components/Download/DownloadLink.js +0 -4
  1079. package/lib/components/DropdownOrLabel/DropdownOrLabel.d.ts +0 -7
  1080. package/lib/components/DropdownOrLabel/DropdownOrLabel.js +0 -8
  1081. package/lib/components/DropdownOrLabel/index.d.ts +0 -1
  1082. package/lib/components/DropdownOrLabel/index.js +0 -2
  1083. package/lib/components/Endpoint/Endpoint.d.ts +0 -3
  1084. package/lib/components/Endpoint/Endpoint.js +0 -2
  1085. package/lib/components/Endpoint/ServerList.d.ts +0 -3
  1086. package/lib/components/Endpoint/ServerList.js +0 -2
  1087. package/lib/components/Endpoint/Summary.d.ts +0 -3
  1088. package/lib/components/Endpoint/Summary.js +0 -2
  1089. package/lib/components/Endpoint/api-client.d.ts +0 -7
  1090. package/lib/components/Endpoint/api-client.js +0 -2
  1091. package/lib/components/Endpoint/index.d.ts +0 -2
  1092. package/lib/components/Endpoint/index.js +0 -2
  1093. package/lib/components/Endpoint/styled.d.ts +0 -9
  1094. package/lib/components/Endpoint/styled.js +0 -49
  1095. package/lib/components/Endpoint/types.d.ts +0 -21
  1096. package/lib/components/Fields/ConstraintsView.d.ts +0 -5
  1097. package/lib/components/Fields/ConstraintsView.js +0 -2
  1098. package/lib/components/Fields/DescriptionEnums.d.ts +0 -4
  1099. package/lib/components/Fields/DescriptionEnums.js +0 -5
  1100. package/lib/components/Fields/EnumValues.d.ts +0 -3
  1101. package/lib/components/Fields/EnumValues.js +0 -2
  1102. package/lib/components/Fields/Examples.d.ts +0 -6
  1103. package/lib/components/Fields/Examples.js +0 -2
  1104. package/lib/components/Fields/Extensions.d.ts +0 -3
  1105. package/lib/components/Fields/Extensions.js +0 -4
  1106. package/lib/components/Fields/Field.d.ts +0 -5
  1107. package/lib/components/Fields/Field.js +0 -2
  1108. package/lib/components/Fields/FieldDetail.d.ts +0 -8
  1109. package/lib/components/Fields/FieldDetail.js +0 -2
  1110. package/lib/components/Fields/FieldDetails.d.ts +0 -3
  1111. package/lib/components/Fields/FieldDetails.js +0 -2
  1112. package/lib/components/Fields/SimpleEnums.d.ts +0 -4
  1113. package/lib/components/Fields/SimpleEnums.js +0 -2
  1114. package/lib/components/Fields/index.d.ts +0 -4
  1115. package/lib/components/Fields/index.js +0 -2
  1116. package/lib/components/Fields/styled.d.ts +0 -11
  1117. package/lib/components/Fields/styled.js +0 -30
  1118. package/lib/components/Fields/types.d.ts +0 -40
  1119. package/lib/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +0 -10
  1120. package/lib/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +0 -2
  1121. package/lib/components/GenericChildrenSwitcher/index.d.ts +0 -1
  1122. package/lib/components/GenericChildrenSwitcher/index.js +0 -2
  1123. package/lib/components/Loading/Loading.d.ts +0 -5
  1124. package/lib/components/Loading/Loading.js +0 -9
  1125. package/lib/components/Loading/index.d.ts +0 -1
  1126. package/lib/components/Loading/index.js +0 -2
  1127. package/lib/components/Markdown/styled.d.ts +0 -4
  1128. package/lib/components/Markdown/styled.js +0 -2
  1129. package/lib/components/NextSectionButton/NextSectionButton.d.ts +0 -9
  1130. package/lib/components/NextSectionButton/NextSectionButton.js +0 -2
  1131. package/lib/components/NextSectionButton/index.d.ts +0 -1
  1132. package/lib/components/NextSectionButton/index.js +0 -2
  1133. package/lib/components/OperationParameters/OperationParameters.d.ts +0 -3
  1134. package/lib/components/OperationParameters/OperationParameters.js +0 -2
  1135. package/lib/components/OperationParameters/index.d.ts +0 -1
  1136. package/lib/components/OperationParameters/index.js +0 -2
  1137. package/lib/components/OperationParameters/types.d.ts +0 -14
  1138. package/lib/components/OperationParameters/types.js +0 -2
  1139. package/lib/components/OperationParameters/utils.d.ts +0 -8
  1140. package/lib/components/OperationParameters/utils.js +0 -2
  1141. package/lib/components/Panel/Accordion.d.ts +0 -5
  1142. package/lib/components/Panel/Accordion.js +0 -2
  1143. package/lib/components/Panel/CodeHeader.d.ts +0 -2
  1144. package/lib/components/Panel/CodeHeader.js +0 -15
  1145. package/lib/components/Panel/CodePanel.d.ts +0 -4
  1146. package/lib/components/Panel/CodePanel.js +0 -2
  1147. package/lib/components/Panel/MiddlePanelWrapper.d.ts +0 -1
  1148. package/lib/components/Panel/MiddlePanelWrapper.js +0 -22
  1149. package/lib/components/Parameters/BodyContent.d.ts +0 -9
  1150. package/lib/components/Parameters/BodyContent.js +0 -4
  1151. package/lib/components/Parameters/DropdownWithinHeader.d.ts +0 -5
  1152. package/lib/components/Parameters/DropdownWithinHeader.js +0 -7
  1153. package/lib/components/Parameters/Parameters.d.ts +0 -7
  1154. package/lib/components/Parameters/Parameters.js +0 -2
  1155. package/lib/components/Parameters/ParametersGroup.d.ts +0 -9
  1156. package/lib/components/Parameters/ParametersGroup.js +0 -16
  1157. package/lib/components/Parameters/index.d.ts +0 -2
  1158. package/lib/components/Parameters/index.js +0 -2
  1159. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.d.ts +0 -3
  1160. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.js +0 -2
  1161. package/lib/components/Responses/Response.d.ts +0 -3
  1162. package/lib/components/Responses/Response.js +0 -2
  1163. package/lib/components/Responses/ResponseSummary.d.ts +0 -3
  1164. package/lib/components/Responses/ResponseSummary.js +0 -15
  1165. package/lib/components/Responses/ResponsesList.d.ts +0 -3
  1166. package/lib/components/Responses/ResponsesList.js +0 -2
  1167. package/lib/components/Samples/LoadingWrapper.d.ts +0 -1
  1168. package/lib/components/Samples/LoadingWrapper.js +0 -8
  1169. package/lib/components/Samples/SamplesTabs.d.ts +0 -14
  1170. package/lib/components/Samples/SamplesTabs.js +0 -2
  1171. package/lib/components/Search/MenuItemSearch.d.ts +0 -3
  1172. package/lib/components/Search/MenuItemSearch.js +0 -2
  1173. package/lib/components/Search/Search.d.ts +0 -3
  1174. package/lib/components/Search/Search.js +0 -2
  1175. package/lib/components/Search/SearchBox.d.ts +0 -3
  1176. package/lib/components/Search/SearchBox.js +0 -2
  1177. package/lib/components/Search/SearchField.d.ts +0 -10
  1178. package/lib/components/Search/SearchField.js +0 -2
  1179. package/lib/components/Search/index.d.ts +0 -3
  1180. package/lib/components/Search/index.js +0 -2
  1181. package/lib/components/Search/styled.d.ts +0 -24
  1182. package/lib/components/Search/styled.js +0 -145
  1183. package/lib/components/Search/types.d.ts +0 -42
  1184. package/lib/components/Search/utils.d.ts +0 -11
  1185. package/lib/components/Search/utils.js +0 -2
  1186. package/lib/components/SecurityRequirement/PanelDescription.d.ts +0 -3
  1187. package/lib/components/SecurityRequirement/PanelDescription.js +0 -4
  1188. package/lib/components/SecurityRequirement/RequiredScopesRow.d.ts +0 -4
  1189. package/lib/components/SecurityRequirement/RequiredScopesRow.js +0 -2
  1190. package/lib/components/SecurityRequirement/RequirementElement.d.ts +0 -3
  1191. package/lib/components/SecurityRequirement/RequirementElement.js +0 -24
  1192. package/lib/components/SecurityRequirement/SecurityDefs.d.ts +0 -2
  1193. package/lib/components/SecurityRequirement/SecurityDefs.js +0 -4
  1194. package/lib/components/SecurityRequirement/SecurityRequirement.d.ts +0 -3
  1195. package/lib/components/SecurityRequirement/SecurityRequirement.js +0 -24
  1196. package/lib/components/SecurityRequirement/constants.d.ts +0 -6
  1197. package/lib/components/SecurityRequirement/constants.js +0 -2
  1198. package/lib/components/SecurityRequirement/index.d.ts +0 -3
  1199. package/lib/components/SecurityRequirement/index.js +0 -2
  1200. package/lib/components/SecurityRequirement/styled.d.ts +0 -1
  1201. package/lib/components/SecurityRequirement/styled.js +0 -4
  1202. package/lib/components/SecurityRequirement/types.d.ts +0 -19
  1203. package/lib/components/SecurityRequirement/useSecurityRequirements.d.ts +0 -3
  1204. package/lib/components/SecurityRequirement/useSecurityRequirements.js +0 -2
  1205. package/lib/components/SecuritySchemes/OAuthFlow.d.ts +0 -3
  1206. package/lib/components/SecuritySchemes/OAuthFlow.js +0 -2
  1207. package/lib/components/SecuritySchemes/helpers.d.ts +0 -34
  1208. package/lib/components/SecuritySchemes/helpers.js +0 -2
  1209. package/lib/components/SecuritySchemes/index.d.ts +0 -2
  1210. package/lib/components/SecuritySchemes/index.js +0 -2
  1211. package/lib/components/SecuritySchemes/types.d.ts +0 -5
  1212. package/lib/components/SecuritySchemes/types.js +0 -2
  1213. package/lib/components/SeeMore/SeeMore.d.ts +0 -7
  1214. package/lib/components/SeeMore/SeeMore.js +0 -10
  1215. package/lib/components/SeeMore/index.d.ts +0 -1
  1216. package/lib/components/SeeMore/index.js +0 -2
  1217. package/lib/components/SideMenu/Actions.d.ts +0 -2
  1218. package/lib/components/SideMenu/Actions.js +0 -5
  1219. package/lib/components/SideMenu/MenuItem.d.ts +0 -13
  1220. package/lib/components/SideMenu/MenuItem.js +0 -2
  1221. package/lib/components/SideMenu/MenuItemEternalLink.d.ts +0 -5
  1222. package/lib/components/SideMenu/MenuItemEternalLink.js +0 -2
  1223. package/lib/components/SideMenu/MenuItemLink.d.ts +0 -3
  1224. package/lib/components/SideMenu/MenuItemLink.js +0 -2
  1225. package/lib/components/SideMenu/MenuItems.d.ts +0 -3
  1226. package/lib/components/SideMenu/MenuItems.js +0 -2
  1227. package/lib/components/SideMenu/MenuOperationItemContent.d.ts +0 -9
  1228. package/lib/components/SideMenu/MenuOperationItemContent.js +0 -8
  1229. package/lib/components/SideMenu/hooks/index.d.ts +0 -2
  1230. package/lib/components/SideMenu/hooks/index.js +0 -2
  1231. package/lib/components/SideMenu/hooks/useMenuItemExpanded.d.ts +0 -3
  1232. package/lib/components/SideMenu/hooks/useMenuItemExpanded.js +0 -2
  1233. package/lib/components/SideMenu/styled.d.ts +0 -29
  1234. package/lib/components/SideMenu/styled.js +0 -97
  1235. package/lib/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +0 -3
  1236. package/lib/components/SourceCodeWithFile/SourceCodeWithFile.js +0 -2
  1237. package/lib/components/SourceCodeWithFile/index.d.ts +0 -1
  1238. package/lib/components/SourceCodeWithFile/index.js +0 -2
  1239. package/lib/components/Tabs/CollapsingTabs/CollapsingTab.d.ts +0 -1
  1240. package/lib/components/Tabs/CollapsingTabs/CollapsingTab.js +0 -11
  1241. package/lib/components/Tabs/CollapsingTabs/CollapsingTabList.d.ts +0 -1
  1242. package/lib/components/Tabs/CollapsingTabs/CollapsingTabList.js +0 -12
  1243. package/lib/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +0 -3
  1244. package/lib/components/Tabs/CollapsingTabs/CollapsingTabs.js +0 -2
  1245. package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +0 -19
  1246. package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +0 -2
  1247. package/lib/components/Tabs/CollapsingTabs/index.d.ts +0 -4
  1248. package/lib/components/Tabs/CollapsingTabs/index.js +0 -2
  1249. package/lib/components/Tabs/Tab.d.ts +0 -2
  1250. package/lib/components/Tabs/Tab.js +0 -28
  1251. package/lib/components/Tabs/TabList.d.ts +0 -2
  1252. package/lib/components/Tabs/TabList.js +0 -7
  1253. package/lib/components/Tabs/TabPanel.d.ts +0 -2
  1254. package/lib/components/Tabs/TabPanel.js +0 -11
  1255. package/lib/components/TagItems/TagItems.d.ts +0 -14
  1256. package/lib/components/TagItems/TagItems.js +0 -2
  1257. package/lib/components/TagItems/index.d.ts +0 -1
  1258. package/lib/components/TagItems/index.js +0 -2
  1259. package/lib/components/VersionSwitcher.d.ts +0 -9
  1260. package/lib/components/VersionSwitcher.js +0 -7
  1261. package/lib/components/common/Checkbox.d.ts +0 -10
  1262. package/lib/components/common/Checkbox.js +0 -31
  1263. package/lib/components/common/CheckboxList.d.ts +0 -13
  1264. package/lib/components/common/CheckboxList.js +0 -8
  1265. package/lib/components/common/Dropdown/styled.d.ts +0 -28
  1266. package/lib/components/common/Dropdown/styled.js +0 -133
  1267. package/lib/components/common/Dropdown/types.d.ts +0 -25
  1268. package/lib/components/common/Dropdown/types.js +0 -2
  1269. package/lib/components/common/FileUpload/FileUpload.d.ts +0 -9
  1270. package/lib/components/common/FileUpload/FileUpload.js +0 -2
  1271. package/lib/components/common/FileUpload/helper.d.ts +0 -11
  1272. package/lib/components/common/FileUpload/helper.js +0 -2
  1273. package/lib/components/common/FileUpload/index.d.ts +0 -1
  1274. package/lib/components/common/FileUpload/index.js +0 -2
  1275. package/lib/components/common/LinearProgress.d.ts +0 -2
  1276. package/lib/components/common/LinearProgress.js +0 -104
  1277. package/lib/components/common/Portal/Portal.d.ts +0 -6
  1278. package/lib/components/common/Portal/Portal.js +0 -2
  1279. package/lib/components/common/Portal/index.d.ts +0 -1
  1280. package/lib/components/common/Portal/index.js +0 -2
  1281. package/lib/components/common/TextField.d.ts +0 -28
  1282. package/lib/components/common/TextField.js +0 -50
  1283. package/lib/components/common/form.d.ts +0 -17
  1284. package/lib/components/common/form.js +0 -64
  1285. package/lib/components/common/perfect-scrollbar.d.ts +0 -18
  1286. package/lib/components/common/perfect-scrollbar.js +0 -4
  1287. package/lib/components/common/shelfs.d.ts +0 -3
  1288. package/lib/components/common/shelfs.js +0 -23
  1289. package/lib/components/icons/CrossIcon.d.ts +0 -5
  1290. package/lib/components/icons/CrossIcon.js +0 -11
  1291. package/lib/components/icons/FileIcon.d.ts +0 -5
  1292. package/lib/components/icons/FileIcon.js +0 -9
  1293. package/lib/components/icons/LinkIcon.d.ts +0 -5
  1294. package/lib/components/icons/LinkIcon.js +0 -11
  1295. package/lib/components/icons/LockIcon.d.ts +0 -3
  1296. package/lib/components/icons/LockIcon.js +0 -12
  1297. package/lib/components/icons/SearchIcon.d.ts +0 -6
  1298. package/lib/components/icons/SearchIcon.js +0 -11
  1299. package/lib/components/icons/ShelfIcon.d.ts +0 -3
  1300. package/lib/components/icons/ShelfIcon.js +0 -12
  1301. package/lib/components/icons/Spinner.d.ts +0 -3
  1302. package/lib/components/icons/Spinner.js +0 -19
  1303. package/lib/components/icons/index.d.ts +0 -8
  1304. package/lib/components/icons/index.js +0 -2
  1305. package/lib/components/icons/types.d.ts +0 -10
  1306. package/lib/components/icons/types.js +0 -2
  1307. package/lib/components/pluggable/PullRight.d.ts +0 -4
  1308. package/lib/components/pluggable/PullRight.js +0 -7
  1309. package/lib/components/pluggable/RedocRequestBody.d.ts +0 -7
  1310. package/lib/components/pluggable/RedocRequestBody.js +0 -2
  1311. package/lib/components/pluggable/RedocResponse.d.ts +0 -6
  1312. package/lib/components/pluggable/RedocResponse.js +0 -2
  1313. package/lib/components/rightPanel/ActionPanel.d.ts +0 -12
  1314. package/lib/components/rightPanel/ActionPanel.js +0 -4
  1315. package/lib/components/rightPanel/AuthPanel/AuthPanel.d.ts +0 -3
  1316. package/lib/components/rightPanel/AuthPanel/AuthPanel.js +0 -2
  1317. package/lib/components/rightPanel/AuthPanel/index.d.ts +0 -2
  1318. package/lib/components/rightPanel/AuthPanel/index.js +0 -2
  1319. package/lib/components/rightPanel/AuthPanel/types.d.ts +0 -14
  1320. package/lib/components/rightPanel/AuthPanel/types.js +0 -2
  1321. package/lib/components/rightPanel/CodemirrorInput/CodemirrorInput.d.ts +0 -5
  1322. package/lib/components/rightPanel/CodemirrorInput/CodemirrorInput.js +0 -2
  1323. package/lib/components/rightPanel/CodemirrorInput/helpers.js +0 -2
  1324. package/lib/components/rightPanel/CodemirrorInput/index.d.ts +0 -1
  1325. package/lib/components/rightPanel/CodemirrorInput/index.js +0 -2
  1326. package/lib/components/rightPanel/CodemirrorInput/styled.d.ts +0 -1
  1327. package/lib/components/rightPanel/CodemirrorInput/styled.js +0 -54
  1328. package/lib/components/rightPanel/CodemirrorInput/types.d.ts +0 -22
  1329. package/lib/components/rightPanel/CodemirrorInput/types.js +0 -2
  1330. package/lib/components/rightPanel/Console/Console.d.ts +0 -3
  1331. package/lib/components/rightPanel/Console/Console.js +0 -2
  1332. package/lib/components/rightPanel/Console/ConsoleLazy.d.ts +0 -3
  1333. package/lib/components/rightPanel/Console/ConsoleLazy.js +0 -2
  1334. package/lib/components/rightPanel/Console/ConsoleWrapper.d.ts +0 -9
  1335. package/lib/components/rightPanel/Console/ConsoleWrapper.js +0 -2
  1336. package/lib/components/rightPanel/Console/Request.d.ts +0 -3
  1337. package/lib/components/rightPanel/Console/Request.js +0 -2
  1338. package/lib/components/rightPanel/Console/index.d.ts +0 -1
  1339. package/lib/components/rightPanel/Console/index.js +0 -2
  1340. package/lib/components/rightPanel/Console/shallowCopyForTryIt.d.ts +0 -2
  1341. package/lib/components/rightPanel/Console/shallowCopyForTryIt.js +0 -2
  1342. package/lib/components/rightPanel/Console/types.d.ts +0 -29
  1343. package/lib/components/rightPanel/Console/types.js +0 -2
  1344. package/lib/components/rightPanel/ConsoleTabs/ConsoleTabs.d.ts +0 -7
  1345. package/lib/components/rightPanel/ConsoleTabs/ConsoleTabs.js +0 -2
  1346. package/lib/components/rightPanel/ConsoleTabs/index.d.ts +0 -2
  1347. package/lib/components/rightPanel/ConsoleTabs/index.js +0 -2
  1348. package/lib/components/rightPanel/ConsoleTabs/styled.d.ts +0 -5
  1349. package/lib/components/rightPanel/ConsoleTabs/styled.js +0 -38
  1350. package/lib/components/rightPanel/OAuth2Flow/Error.d.ts +0 -8
  1351. package/lib/components/rightPanel/OAuth2Flow/Error.js +0 -2
  1352. package/lib/components/rightPanel/OAuth2Flow/OAuth2Flow.d.ts +0 -3
  1353. package/lib/components/rightPanel/OAuth2Flow/OAuth2Flow.js +0 -2
  1354. package/lib/components/rightPanel/OAuth2Flow/index.d.ts +0 -2
  1355. package/lib/components/rightPanel/OAuth2Flow/index.js +0 -2
  1356. package/lib/components/rightPanel/OAuth2Flow/styled.d.ts +0 -4
  1357. package/lib/components/rightPanel/OAuth2Flow/styled.js +0 -14
  1358. package/lib/components/rightPanel/OAuth2Flow/types.d.ts +0 -20
  1359. package/lib/components/rightPanel/OAuth2Flow/types.js +0 -2
  1360. package/lib/components/rightPanel/OAuth2TokenInput.d.ts +0 -22
  1361. package/lib/components/rightPanel/OAuth2TokenInput.js +0 -2
  1362. package/lib/components/rightPanel/OpenIDConnect.d.ts +0 -18
  1363. package/lib/components/rightPanel/OpenIDConnect.js +0 -2
  1364. package/lib/components/rightPanel/ParameterArray.d.ts +0 -10
  1365. package/lib/components/rightPanel/ParameterArray.js +0 -30
  1366. package/lib/components/rightPanel/ParameterDropdown.d.ts +0 -7
  1367. package/lib/components/rightPanel/ParameterDropdown.js +0 -2
  1368. package/lib/components/rightPanel/RequestBody/Body.d.ts +0 -3
  1369. package/lib/components/rightPanel/RequestBody/Body.js +0 -2
  1370. package/lib/components/rightPanel/RequestBody/RequestBody.d.ts +0 -3
  1371. package/lib/components/rightPanel/RequestBody/RequestBody.js +0 -2
  1372. package/lib/components/rightPanel/RequestBody/index.d.ts +0 -2
  1373. package/lib/components/rightPanel/RequestBody/index.js +0 -2
  1374. package/lib/components/rightPanel/RequestBody/types.d.ts +0 -17
  1375. package/lib/components/rightPanel/RequestBody/types.js +0 -2
  1376. package/lib/components/rightPanel/RequestBodyForm.d.ts +0 -11
  1377. package/lib/components/rightPanel/RequestBodyForm.js +0 -10
  1378. package/lib/components/rightPanel/RequestMimeLabel.d.ts +0 -1
  1379. package/lib/components/rightPanel/RequestMimeLabel.js +0 -5
  1380. package/lib/components/rightPanel/ResponseBody.d.ts +0 -5
  1381. package/lib/components/rightPanel/ResponseBody.js +0 -2
  1382. package/lib/components/rightPanel/ResponseHeadersList.d.ts +0 -4
  1383. package/lib/components/rightPanel/ResponseHeadersList.js +0 -10
  1384. package/lib/components/rightPanel/ResponsePanel.d.ts +0 -10
  1385. package/lib/components/rightPanel/ResponsePanel.js +0 -18
  1386. package/lib/components/rightPanel/Scope.d.ts +0 -7
  1387. package/lib/components/rightPanel/Scope.js +0 -2
  1388. package/lib/components/rightPanel/ServerVariable.d.ts +0 -11
  1389. package/lib/components/rightPanel/ServerVariable.js +0 -5
  1390. package/lib/components/rightPanel/ServersDropdown/ServersDropdown.d.ts +0 -3
  1391. package/lib/components/rightPanel/ServersDropdown/ServersDropdown.js +0 -4
  1392. package/lib/components/rightPanel/ServersDropdown/index.d.ts +0 -1
  1393. package/lib/components/rightPanel/ServersDropdown/index.js +0 -2
  1394. package/lib/components/rightPanel/ServersDropdown/types.d.ts +0 -6
  1395. package/lib/components/rightPanel/ServersDropdown/types.js +0 -2
  1396. package/lib/components/rightPanel/TryItPanel.d.ts +0 -7
  1397. package/lib/components/rightPanel/TryItPanel.js +0 -14
  1398. package/lib/components/rightPanel/styled.d.ts +0 -16
  1399. package/lib/components/rightPanel/styled.js +0 -76
  1400. package/lib/components/rightPanel/types.d.ts +0 -10
  1401. package/lib/components/rightPanel/types.js +0 -2
  1402. package/lib/components/rightPanel/utils.d.ts +0 -28
  1403. package/lib/components/rightPanel/utils.js +0 -2
  1404. package/lib/components/shared/HttpVerb.d.ts +0 -2
  1405. package/lib/components/shared/HttpVerb.js +0 -4
  1406. package/lib/components/shared/MimeLabel.d.ts +0 -1
  1407. package/lib/components/shared/MimeLabel.js +0 -12
  1408. package/lib/components/shared/NoSampleLabel.d.ts +0 -2
  1409. package/lib/components/shared/NoSampleLabel.js +0 -10
  1410. package/lib/components/shared/index.d.ts +0 -3
  1411. package/lib/components/shared/index.js +0 -2
  1412. package/lib/events/serverSwitch.d.ts +0 -2
  1413. package/lib/events/serverSwitch.js +0 -2
  1414. package/lib/models/file-upload.d.ts +0 -11
  1415. package/lib/models/file-upload.js +0 -2
  1416. package/lib/oauth2-redirect-page/handler/helpers.d.ts +0 -6
  1417. package/lib/oauth2-redirect-page/handler/helpers.js +0 -2
  1418. package/lib/oauth2-redirect-page/handler/oauth2-redirect-handler.d.ts +0 -1
  1419. package/lib/oauth2-redirect-page/handler/oauth2-redirect-handler.js +0 -2
  1420. package/lib/oauth2-redirect-page/index.d.ts +0 -1
  1421. package/lib/oauth2-redirect-page/index.js +0 -2
  1422. package/lib/recoil/app.d.ts +0 -36
  1423. package/lib/recoil/app.js +0 -2
  1424. package/lib/recoil/nexus.d.ts +0 -6
  1425. package/lib/recoil/nexus.js +0 -2
  1426. package/lib/recoil/operation.d.ts +0 -11
  1427. package/lib/recoil/operation.js +0 -2
  1428. package/lib/recoil/store.d.ts +0 -19
  1429. package/lib/recoil/store.js +0 -2
  1430. package/lib/services/MarkerService.d.ts +0 -11
  1431. package/lib/services/MarkerService.js +0 -2
  1432. package/lib/services/OAuth2.d.ts +0 -43
  1433. package/lib/services/OAuth2.js +0 -2
  1434. package/lib/services/OpenIDConnect.d.ts +0 -38
  1435. package/lib/services/OpenIDConnect.js +0 -2
  1436. package/lib/services/Options/helpers.d.ts +0 -8
  1437. package/lib/services/Options/helpers.js +0 -2
  1438. package/lib/services/Options/normalizeOptions.d.ts +0 -2
  1439. package/lib/services/Options/normalizeOptions.js +0 -2
  1440. package/lib/services/Options/types.d.ts +0 -277
  1441. package/lib/services/Options/types.js +0 -2
  1442. package/lib/services/labels/LabelsService.d.ts +0 -3
  1443. package/lib/services/labels/LabelsService.js +0 -2
  1444. package/lib/services/labels/index.d.ts +0 -2
  1445. package/lib/services/labels/index.js +0 -2
  1446. package/lib/services/labels/types.d.ts +0 -28
  1447. package/lib/services/labels/types.js +0 -2
  1448. package/lib/services/menu/helpers.d.ts +0 -6
  1449. package/lib/services/menu/helpers.js +0 -2
  1450. package/lib/services/search/DeepSearchStore.d.ts +0 -19
  1451. package/lib/services/search/DeepSearchStore.js +0 -2
  1452. package/lib/services/search/RemoteSearch.d.ts +0 -17
  1453. package/lib/services/search/RemoteSearch.js +0 -2
  1454. package/lib/services/search/SearchStore.d.ts +0 -14
  1455. package/lib/services/search/SearchStore.js +0 -2
  1456. package/lib/services/search/SearchWorker.worker.d.ts +0 -17
  1457. package/lib/services/search/SearchWorker.worker.js +0 -2
  1458. package/lib/services/search/index.d.ts +0 -4
  1459. package/lib/services/search/index.js +0 -2
  1460. package/lib/services/search/types.d.ts +0 -15
  1461. package/lib/services/search/types.js +0 -2
  1462. package/lib/services/search/useSearch.d.ts +0 -13
  1463. package/lib/services/search/useSearch.js +0 -2
  1464. package/lib/types/server.d.ts +0 -7
  1465. package/lib/types/server.js +0 -2
  1466. package/lib/utils/media-css.d.ts +0 -8
  1467. package/lib/utils/media-css.js +0 -2
  1468. package/lib/utils/typeGuards.d.ts +0 -4
  1469. package/lib/utils/typeGuards.js +0 -2
  1470. package/lib-esm/components/ApiInfo/types.d.ts +0 -9
  1471. package/lib-esm/components/CallbackSamples/CallbackReqSamples.d.ts +0 -7
  1472. package/lib-esm/components/CallbackSamples/CallbackReqSamples.js +0 -4
  1473. package/lib-esm/components/ContentItems/useAutoScroll.d.ts +0 -1
  1474. package/lib-esm/components/ContentItems/useAutoScroll.js +0 -2
  1475. package/lib-esm/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +0 -11
  1476. package/lib-esm/components/DiscriminatorDropdown/DiscriminatorDropdown.js +0 -2
  1477. package/lib-esm/components/DiscriminatorDropdown/index.d.ts +0 -1
  1478. package/lib-esm/components/DiscriminatorDropdown/index.js +0 -2
  1479. package/lib-esm/components/Download/DownloadButtonWithLabel.d.ts +0 -3
  1480. package/lib-esm/components/Download/DownloadButtonWithLabel.js +0 -13
  1481. package/lib-esm/components/Download/DownloadLink.d.ts +0 -3
  1482. package/lib-esm/components/Download/DownloadLink.js +0 -4
  1483. package/lib-esm/components/DropdownOrLabel/DropdownOrLabel.d.ts +0 -7
  1484. package/lib-esm/components/DropdownOrLabel/DropdownOrLabel.js +0 -8
  1485. package/lib-esm/components/DropdownOrLabel/index.d.ts +0 -1
  1486. package/lib-esm/components/DropdownOrLabel/index.js +0 -2
  1487. package/lib-esm/components/Endpoint/Endpoint.d.ts +0 -3
  1488. package/lib-esm/components/Endpoint/Endpoint.js +0 -2
  1489. package/lib-esm/components/Endpoint/ServerList.d.ts +0 -3
  1490. package/lib-esm/components/Endpoint/ServerList.js +0 -2
  1491. package/lib-esm/components/Endpoint/Summary.d.ts +0 -3
  1492. package/lib-esm/components/Endpoint/Summary.js +0 -2
  1493. package/lib-esm/components/Endpoint/api-client.d.ts +0 -7
  1494. package/lib-esm/components/Endpoint/api-client.js +0 -2
  1495. package/lib-esm/components/Endpoint/index.d.ts +0 -2
  1496. package/lib-esm/components/Endpoint/index.js +0 -2
  1497. package/lib-esm/components/Endpoint/styled.d.ts +0 -9
  1498. package/lib-esm/components/Endpoint/styled.js +0 -49
  1499. package/lib-esm/components/Endpoint/types.d.ts +0 -21
  1500. package/lib-esm/components/Fields/ConstraintsView.d.ts +0 -5
  1501. package/lib-esm/components/Fields/ConstraintsView.js +0 -2
  1502. package/lib-esm/components/Fields/DescriptionEnums.d.ts +0 -4
  1503. package/lib-esm/components/Fields/DescriptionEnums.js +0 -5
  1504. package/lib-esm/components/Fields/EnumValues.d.ts +0 -3
  1505. package/lib-esm/components/Fields/EnumValues.js +0 -2
  1506. package/lib-esm/components/Fields/Examples.d.ts +0 -6
  1507. package/lib-esm/components/Fields/Examples.js +0 -2
  1508. package/lib-esm/components/Fields/Extensions.d.ts +0 -3
  1509. package/lib-esm/components/Fields/Extensions.js +0 -4
  1510. package/lib-esm/components/Fields/Field.d.ts +0 -5
  1511. package/lib-esm/components/Fields/Field.js +0 -2
  1512. package/lib-esm/components/Fields/FieldDetail.d.ts +0 -8
  1513. package/lib-esm/components/Fields/FieldDetail.js +0 -2
  1514. package/lib-esm/components/Fields/FieldDetails.d.ts +0 -3
  1515. package/lib-esm/components/Fields/FieldDetails.js +0 -2
  1516. package/lib-esm/components/Fields/SimpleEnums.d.ts +0 -4
  1517. package/lib-esm/components/Fields/SimpleEnums.js +0 -2
  1518. package/lib-esm/components/Fields/index.d.ts +0 -4
  1519. package/lib-esm/components/Fields/index.js +0 -2
  1520. package/lib-esm/components/Fields/styled.d.ts +0 -11
  1521. package/lib-esm/components/Fields/styled.js +0 -30
  1522. package/lib-esm/components/Fields/types.d.ts +0 -40
  1523. package/lib-esm/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +0 -10
  1524. package/lib-esm/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +0 -2
  1525. package/lib-esm/components/GenericChildrenSwitcher/index.d.ts +0 -1
  1526. package/lib-esm/components/GenericChildrenSwitcher/index.js +0 -2
  1527. package/lib-esm/components/Loading/Loading.d.ts +0 -5
  1528. package/lib-esm/components/Loading/Loading.js +0 -9
  1529. package/lib-esm/components/Loading/index.d.ts +0 -1
  1530. package/lib-esm/components/Loading/index.js +0 -2
  1531. package/lib-esm/components/Markdown/styled.d.ts +0 -4
  1532. package/lib-esm/components/Markdown/styled.js +0 -2
  1533. package/lib-esm/components/NextSectionButton/NextSectionButton.d.ts +0 -9
  1534. package/lib-esm/components/NextSectionButton/NextSectionButton.js +0 -2
  1535. package/lib-esm/components/NextSectionButton/index.d.ts +0 -1
  1536. package/lib-esm/components/NextSectionButton/index.js +0 -2
  1537. package/lib-esm/components/OperationParameters/OperationParameters.d.ts +0 -3
  1538. package/lib-esm/components/OperationParameters/OperationParameters.js +0 -2
  1539. package/lib-esm/components/OperationParameters/index.d.ts +0 -1
  1540. package/lib-esm/components/OperationParameters/index.js +0 -2
  1541. package/lib-esm/components/OperationParameters/types.d.ts +0 -14
  1542. package/lib-esm/components/OperationParameters/types.js +0 -2
  1543. package/lib-esm/components/OperationParameters/utils.d.ts +0 -8
  1544. package/lib-esm/components/OperationParameters/utils.js +0 -2
  1545. package/lib-esm/components/Panel/Accordion.d.ts +0 -5
  1546. package/lib-esm/components/Panel/Accordion.js +0 -2
  1547. package/lib-esm/components/Panel/CodeHeader.d.ts +0 -2
  1548. package/lib-esm/components/Panel/CodeHeader.js +0 -15
  1549. package/lib-esm/components/Panel/CodePanel.d.ts +0 -4
  1550. package/lib-esm/components/Panel/CodePanel.js +0 -2
  1551. package/lib-esm/components/Panel/MiddlePanelWrapper.d.ts +0 -1
  1552. package/lib-esm/components/Panel/MiddlePanelWrapper.js +0 -22
  1553. package/lib-esm/components/Parameters/BodyContent.d.ts +0 -9
  1554. package/lib-esm/components/Parameters/BodyContent.js +0 -4
  1555. package/lib-esm/components/Parameters/DropdownWithinHeader.d.ts +0 -5
  1556. package/lib-esm/components/Parameters/DropdownWithinHeader.js +0 -7
  1557. package/lib-esm/components/Parameters/Parameters.d.ts +0 -7
  1558. package/lib-esm/components/Parameters/Parameters.js +0 -2
  1559. package/lib-esm/components/Parameters/ParametersGroup.d.ts +0 -9
  1560. package/lib-esm/components/Parameters/ParametersGroup.js +0 -16
  1561. package/lib-esm/components/Parameters/index.d.ts +0 -2
  1562. package/lib-esm/components/Parameters/index.js +0 -2
  1563. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.d.ts +0 -3
  1564. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.js +0 -2
  1565. package/lib-esm/components/Responses/Response.d.ts +0 -3
  1566. package/lib-esm/components/Responses/Response.js +0 -2
  1567. package/lib-esm/components/Responses/ResponseSummary.d.ts +0 -3
  1568. package/lib-esm/components/Responses/ResponseSummary.js +0 -15
  1569. package/lib-esm/components/Responses/ResponsesList.d.ts +0 -3
  1570. package/lib-esm/components/Responses/ResponsesList.js +0 -2
  1571. package/lib-esm/components/Samples/LoadingWrapper.d.ts +0 -1
  1572. package/lib-esm/components/Samples/LoadingWrapper.js +0 -8
  1573. package/lib-esm/components/Samples/SamplesTabs.d.ts +0 -14
  1574. package/lib-esm/components/Samples/SamplesTabs.js +0 -2
  1575. package/lib-esm/components/Search/MenuItemSearch.d.ts +0 -3
  1576. package/lib-esm/components/Search/MenuItemSearch.js +0 -2
  1577. package/lib-esm/components/Search/Search.d.ts +0 -3
  1578. package/lib-esm/components/Search/Search.js +0 -2
  1579. package/lib-esm/components/Search/SearchBox.d.ts +0 -3
  1580. package/lib-esm/components/Search/SearchBox.js +0 -2
  1581. package/lib-esm/components/Search/SearchField.d.ts +0 -10
  1582. package/lib-esm/components/Search/SearchField.js +0 -2
  1583. package/lib-esm/components/Search/index.d.ts +0 -3
  1584. package/lib-esm/components/Search/index.js +0 -2
  1585. package/lib-esm/components/Search/styled.d.ts +0 -24
  1586. package/lib-esm/components/Search/styled.js +0 -145
  1587. package/lib-esm/components/Search/types.d.ts +0 -42
  1588. package/lib-esm/components/Search/utils.d.ts +0 -11
  1589. package/lib-esm/components/Search/utils.js +0 -2
  1590. package/lib-esm/components/SecurityRequirement/PanelDescription.d.ts +0 -3
  1591. package/lib-esm/components/SecurityRequirement/PanelDescription.js +0 -4
  1592. package/lib-esm/components/SecurityRequirement/RequiredScopesRow.d.ts +0 -4
  1593. package/lib-esm/components/SecurityRequirement/RequiredScopesRow.js +0 -2
  1594. package/lib-esm/components/SecurityRequirement/RequirementElement.d.ts +0 -3
  1595. package/lib-esm/components/SecurityRequirement/RequirementElement.js +0 -24
  1596. package/lib-esm/components/SecurityRequirement/SecurityDefs.d.ts +0 -2
  1597. package/lib-esm/components/SecurityRequirement/SecurityDefs.js +0 -4
  1598. package/lib-esm/components/SecurityRequirement/SecurityRequirement.d.ts +0 -3
  1599. package/lib-esm/components/SecurityRequirement/SecurityRequirement.js +0 -24
  1600. package/lib-esm/components/SecurityRequirement/constants.d.ts +0 -6
  1601. package/lib-esm/components/SecurityRequirement/constants.js +0 -2
  1602. package/lib-esm/components/SecurityRequirement/index.d.ts +0 -3
  1603. package/lib-esm/components/SecurityRequirement/index.js +0 -2
  1604. package/lib-esm/components/SecurityRequirement/styled.d.ts +0 -1
  1605. package/lib-esm/components/SecurityRequirement/styled.js +0 -4
  1606. package/lib-esm/components/SecurityRequirement/types.d.ts +0 -19
  1607. package/lib-esm/components/SecurityRequirement/useSecurityRequirements.d.ts +0 -3
  1608. package/lib-esm/components/SecurityRequirement/useSecurityRequirements.js +0 -2
  1609. package/lib-esm/components/SecuritySchemes/OAuthFlow.d.ts +0 -3
  1610. package/lib-esm/components/SecuritySchemes/OAuthFlow.js +0 -2
  1611. package/lib-esm/components/SecuritySchemes/helpers.d.ts +0 -34
  1612. package/lib-esm/components/SecuritySchemes/helpers.js +0 -2
  1613. package/lib-esm/components/SecuritySchemes/index.d.ts +0 -2
  1614. package/lib-esm/components/SecuritySchemes/index.js +0 -2
  1615. package/lib-esm/components/SecuritySchemes/types.d.ts +0 -5
  1616. package/lib-esm/components/SecuritySchemes/types.js +0 -2
  1617. package/lib-esm/components/SeeMore/SeeMore.d.ts +0 -7
  1618. package/lib-esm/components/SeeMore/SeeMore.js +0 -10
  1619. package/lib-esm/components/SeeMore/index.d.ts +0 -1
  1620. package/lib-esm/components/SeeMore/index.js +0 -2
  1621. package/lib-esm/components/SideMenu/Actions.d.ts +0 -2
  1622. package/lib-esm/components/SideMenu/Actions.js +0 -5
  1623. package/lib-esm/components/SideMenu/MenuItem.d.ts +0 -13
  1624. package/lib-esm/components/SideMenu/MenuItem.js +0 -2
  1625. package/lib-esm/components/SideMenu/MenuItemEternalLink.d.ts +0 -5
  1626. package/lib-esm/components/SideMenu/MenuItemEternalLink.js +0 -2
  1627. package/lib-esm/components/SideMenu/MenuItemLink.d.ts +0 -3
  1628. package/lib-esm/components/SideMenu/MenuItemLink.js +0 -2
  1629. package/lib-esm/components/SideMenu/MenuItems.d.ts +0 -3
  1630. package/lib-esm/components/SideMenu/MenuItems.js +0 -2
  1631. package/lib-esm/components/SideMenu/MenuOperationItemContent.d.ts +0 -9
  1632. package/lib-esm/components/SideMenu/MenuOperationItemContent.js +0 -8
  1633. package/lib-esm/components/SideMenu/hooks/index.d.ts +0 -2
  1634. package/lib-esm/components/SideMenu/hooks/index.js +0 -2
  1635. package/lib-esm/components/SideMenu/hooks/useMenuItemExpanded.d.ts +0 -3
  1636. package/lib-esm/components/SideMenu/hooks/useMenuItemExpanded.js +0 -2
  1637. package/lib-esm/components/SideMenu/styled.d.ts +0 -29
  1638. package/lib-esm/components/SideMenu/styled.js +0 -97
  1639. package/lib-esm/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +0 -3
  1640. package/lib-esm/components/SourceCodeWithFile/SourceCodeWithFile.js +0 -2
  1641. package/lib-esm/components/SourceCodeWithFile/index.d.ts +0 -1
  1642. package/lib-esm/components/SourceCodeWithFile/index.js +0 -2
  1643. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTab.d.ts +0 -1
  1644. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTab.js +0 -11
  1645. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabList.d.ts +0 -1
  1646. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabList.js +0 -12
  1647. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +0 -3
  1648. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabs.js +0 -2
  1649. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +0 -19
  1650. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +0 -2
  1651. package/lib-esm/components/Tabs/CollapsingTabs/index.d.ts +0 -4
  1652. package/lib-esm/components/Tabs/CollapsingTabs/index.js +0 -2
  1653. package/lib-esm/components/Tabs/Tab.d.ts +0 -2
  1654. package/lib-esm/components/Tabs/Tab.js +0 -28
  1655. package/lib-esm/components/Tabs/TabList.d.ts +0 -2
  1656. package/lib-esm/components/Tabs/TabList.js +0 -7
  1657. package/lib-esm/components/Tabs/TabPanel.d.ts +0 -2
  1658. package/lib-esm/components/Tabs/TabPanel.js +0 -11
  1659. package/lib-esm/components/TagItems/TagItems.d.ts +0 -14
  1660. package/lib-esm/components/TagItems/TagItems.js +0 -2
  1661. package/lib-esm/components/TagItems/index.d.ts +0 -1
  1662. package/lib-esm/components/TagItems/index.js +0 -2
  1663. package/lib-esm/components/VersionSwitcher.d.ts +0 -9
  1664. package/lib-esm/components/VersionSwitcher.js +0 -7
  1665. package/lib-esm/components/common/Checkbox.d.ts +0 -10
  1666. package/lib-esm/components/common/Checkbox.js +0 -31
  1667. package/lib-esm/components/common/CheckboxList.d.ts +0 -13
  1668. package/lib-esm/components/common/CheckboxList.js +0 -8
  1669. package/lib-esm/components/common/Dropdown/styled.d.ts +0 -28
  1670. package/lib-esm/components/common/Dropdown/styled.js +0 -133
  1671. package/lib-esm/components/common/Dropdown/types.d.ts +0 -25
  1672. package/lib-esm/components/common/Dropdown/types.js +0 -2
  1673. package/lib-esm/components/common/FileUpload/FileUpload.d.ts +0 -9
  1674. package/lib-esm/components/common/FileUpload/FileUpload.js +0 -2
  1675. package/lib-esm/components/common/FileUpload/helper.d.ts +0 -11
  1676. package/lib-esm/components/common/FileUpload/helper.js +0 -2
  1677. package/lib-esm/components/common/FileUpload/index.d.ts +0 -1
  1678. package/lib-esm/components/common/FileUpload/index.js +0 -2
  1679. package/lib-esm/components/common/LinearProgress.d.ts +0 -2
  1680. package/lib-esm/components/common/LinearProgress.js +0 -104
  1681. package/lib-esm/components/common/Portal/Portal.d.ts +0 -6
  1682. package/lib-esm/components/common/Portal/Portal.js +0 -2
  1683. package/lib-esm/components/common/Portal/index.d.ts +0 -1
  1684. package/lib-esm/components/common/Portal/index.js +0 -2
  1685. package/lib-esm/components/common/TextField.d.ts +0 -28
  1686. package/lib-esm/components/common/TextField.js +0 -79
  1687. package/lib-esm/components/common/form.d.ts +0 -17
  1688. package/lib-esm/components/common/form.js +0 -64
  1689. package/lib-esm/components/common/perfect-scrollbar.d.ts +0 -18
  1690. package/lib-esm/components/common/perfect-scrollbar.js +0 -4
  1691. package/lib-esm/components/common/shelfs.d.ts +0 -3
  1692. package/lib-esm/components/common/shelfs.js +0 -23
  1693. package/lib-esm/components/icons/CrossIcon.d.ts +0 -5
  1694. package/lib-esm/components/icons/CrossIcon.js +0 -11
  1695. package/lib-esm/components/icons/FileIcon.d.ts +0 -5
  1696. package/lib-esm/components/icons/FileIcon.js +0 -9
  1697. package/lib-esm/components/icons/LinkIcon.d.ts +0 -5
  1698. package/lib-esm/components/icons/LinkIcon.js +0 -11
  1699. package/lib-esm/components/icons/LockIcon.d.ts +0 -3
  1700. package/lib-esm/components/icons/LockIcon.js +0 -12
  1701. package/lib-esm/components/icons/SearchIcon.d.ts +0 -6
  1702. package/lib-esm/components/icons/SearchIcon.js +0 -11
  1703. package/lib-esm/components/icons/ShelfIcon.d.ts +0 -3
  1704. package/lib-esm/components/icons/ShelfIcon.js +0 -12
  1705. package/lib-esm/components/icons/Spinner.d.ts +0 -3
  1706. package/lib-esm/components/icons/Spinner.js +0 -19
  1707. package/lib-esm/components/icons/index.d.ts +0 -8
  1708. package/lib-esm/components/icons/index.js +0 -2
  1709. package/lib-esm/components/icons/types.d.ts +0 -10
  1710. package/lib-esm/components/icons/types.js +0 -2
  1711. package/lib-esm/components/pluggable/PullRight.d.ts +0 -4
  1712. package/lib-esm/components/pluggable/PullRight.js +0 -7
  1713. package/lib-esm/components/pluggable/RedocRequestBody.d.ts +0 -7
  1714. package/lib-esm/components/pluggable/RedocRequestBody.js +0 -2
  1715. package/lib-esm/components/pluggable/RedocResponse.d.ts +0 -6
  1716. package/lib-esm/components/pluggable/RedocResponse.js +0 -2
  1717. package/lib-esm/components/rightPanel/ActionPanel.d.ts +0 -12
  1718. package/lib-esm/components/rightPanel/ActionPanel.js +0 -4
  1719. package/lib-esm/components/rightPanel/AuthPanel/AuthPanel.d.ts +0 -3
  1720. package/lib-esm/components/rightPanel/AuthPanel/AuthPanel.js +0 -2
  1721. package/lib-esm/components/rightPanel/AuthPanel/index.d.ts +0 -2
  1722. package/lib-esm/components/rightPanel/AuthPanel/index.js +0 -2
  1723. package/lib-esm/components/rightPanel/AuthPanel/types.d.ts +0 -14
  1724. package/lib-esm/components/rightPanel/AuthPanel/types.js +0 -2
  1725. package/lib-esm/components/rightPanel/CodemirrorInput/CodemirrorInput.d.ts +0 -5
  1726. package/lib-esm/components/rightPanel/CodemirrorInput/CodemirrorInput.js +0 -2
  1727. package/lib-esm/components/rightPanel/CodemirrorInput/helpers.js +0 -2
  1728. package/lib-esm/components/rightPanel/CodemirrorInput/index.d.ts +0 -1
  1729. package/lib-esm/components/rightPanel/CodemirrorInput/index.js +0 -2
  1730. package/lib-esm/components/rightPanel/CodemirrorInput/styled.d.ts +0 -1
  1731. package/lib-esm/components/rightPanel/CodemirrorInput/styled.js +0 -54
  1732. package/lib-esm/components/rightPanel/CodemirrorInput/types.d.ts +0 -22
  1733. package/lib-esm/components/rightPanel/CodemirrorInput/types.js +0 -2
  1734. package/lib-esm/components/rightPanel/Console/Console.d.ts +0 -3
  1735. package/lib-esm/components/rightPanel/Console/Console.js +0 -2
  1736. package/lib-esm/components/rightPanel/Console/ConsoleLazy.d.ts +0 -3
  1737. package/lib-esm/components/rightPanel/Console/ConsoleLazy.js +0 -2
  1738. package/lib-esm/components/rightPanel/Console/ConsoleWrapper.d.ts +0 -9
  1739. package/lib-esm/components/rightPanel/Console/ConsoleWrapper.js +0 -2
  1740. package/lib-esm/components/rightPanel/Console/Request.d.ts +0 -3
  1741. package/lib-esm/components/rightPanel/Console/Request.js +0 -2
  1742. package/lib-esm/components/rightPanel/Console/index.d.ts +0 -1
  1743. package/lib-esm/components/rightPanel/Console/index.js +0 -2
  1744. package/lib-esm/components/rightPanel/Console/shallowCopyForTryIt.d.ts +0 -2
  1745. package/lib-esm/components/rightPanel/Console/shallowCopyForTryIt.js +0 -2
  1746. package/lib-esm/components/rightPanel/Console/types.d.ts +0 -29
  1747. package/lib-esm/components/rightPanel/Console/types.js +0 -2
  1748. package/lib-esm/components/rightPanel/ConsoleTabs/ConsoleTabs.d.ts +0 -7
  1749. package/lib-esm/components/rightPanel/ConsoleTabs/ConsoleTabs.js +0 -2
  1750. package/lib-esm/components/rightPanel/ConsoleTabs/index.d.ts +0 -2
  1751. package/lib-esm/components/rightPanel/ConsoleTabs/index.js +0 -2
  1752. package/lib-esm/components/rightPanel/ConsoleTabs/styled.d.ts +0 -5
  1753. package/lib-esm/components/rightPanel/ConsoleTabs/styled.js +0 -38
  1754. package/lib-esm/components/rightPanel/OAuth2Flow/Error.d.ts +0 -8
  1755. package/lib-esm/components/rightPanel/OAuth2Flow/Error.js +0 -2
  1756. package/lib-esm/components/rightPanel/OAuth2Flow/OAuth2Flow.d.ts +0 -3
  1757. package/lib-esm/components/rightPanel/OAuth2Flow/OAuth2Flow.js +0 -2
  1758. package/lib-esm/components/rightPanel/OAuth2Flow/index.d.ts +0 -2
  1759. package/lib-esm/components/rightPanel/OAuth2Flow/index.js +0 -2
  1760. package/lib-esm/components/rightPanel/OAuth2Flow/styled.d.ts +0 -4
  1761. package/lib-esm/components/rightPanel/OAuth2Flow/styled.js +0 -14
  1762. package/lib-esm/components/rightPanel/OAuth2Flow/types.d.ts +0 -20
  1763. package/lib-esm/components/rightPanel/OAuth2Flow/types.js +0 -2
  1764. package/lib-esm/components/rightPanel/OAuth2TokenInput.d.ts +0 -22
  1765. package/lib-esm/components/rightPanel/OAuth2TokenInput.js +0 -2
  1766. package/lib-esm/components/rightPanel/OpenIDConnect.d.ts +0 -18
  1767. package/lib-esm/components/rightPanel/OpenIDConnect.js +0 -2
  1768. package/lib-esm/components/rightPanel/ParameterArray.d.ts +0 -10
  1769. package/lib-esm/components/rightPanel/ParameterArray.js +0 -30
  1770. package/lib-esm/components/rightPanel/ParameterDropdown.d.ts +0 -7
  1771. package/lib-esm/components/rightPanel/ParameterDropdown.js +0 -2
  1772. package/lib-esm/components/rightPanel/RequestBody/Body.d.ts +0 -3
  1773. package/lib-esm/components/rightPanel/RequestBody/Body.js +0 -2
  1774. package/lib-esm/components/rightPanel/RequestBody/RequestBody.d.ts +0 -3
  1775. package/lib-esm/components/rightPanel/RequestBody/RequestBody.js +0 -2
  1776. package/lib-esm/components/rightPanel/RequestBody/index.d.ts +0 -2
  1777. package/lib-esm/components/rightPanel/RequestBody/index.js +0 -2
  1778. package/lib-esm/components/rightPanel/RequestBody/types.d.ts +0 -17
  1779. package/lib-esm/components/rightPanel/RequestBody/types.js +0 -2
  1780. package/lib-esm/components/rightPanel/RequestBodyForm.d.ts +0 -11
  1781. package/lib-esm/components/rightPanel/RequestBodyForm.js +0 -10
  1782. package/lib-esm/components/rightPanel/RequestMimeLabel.d.ts +0 -1
  1783. package/lib-esm/components/rightPanel/RequestMimeLabel.js +0 -5
  1784. package/lib-esm/components/rightPanel/ResponseBody.d.ts +0 -5
  1785. package/lib-esm/components/rightPanel/ResponseBody.js +0 -2
  1786. package/lib-esm/components/rightPanel/ResponseHeadersList.d.ts +0 -4
  1787. package/lib-esm/components/rightPanel/ResponseHeadersList.js +0 -10
  1788. package/lib-esm/components/rightPanel/ResponsePanel.d.ts +0 -10
  1789. package/lib-esm/components/rightPanel/ResponsePanel.js +0 -18
  1790. package/lib-esm/components/rightPanel/Scope.d.ts +0 -7
  1791. package/lib-esm/components/rightPanel/Scope.js +0 -2
  1792. package/lib-esm/components/rightPanel/ServerVariable.d.ts +0 -11
  1793. package/lib-esm/components/rightPanel/ServerVariable.js +0 -5
  1794. package/lib-esm/components/rightPanel/ServersDropdown/ServersDropdown.d.ts +0 -3
  1795. package/lib-esm/components/rightPanel/ServersDropdown/ServersDropdown.js +0 -4
  1796. package/lib-esm/components/rightPanel/ServersDropdown/index.d.ts +0 -1
  1797. package/lib-esm/components/rightPanel/ServersDropdown/index.js +0 -2
  1798. package/lib-esm/components/rightPanel/ServersDropdown/types.d.ts +0 -6
  1799. package/lib-esm/components/rightPanel/ServersDropdown/types.js +0 -2
  1800. package/lib-esm/components/rightPanel/TryItPanel.d.ts +0 -7
  1801. package/lib-esm/components/rightPanel/TryItPanel.js +0 -14
  1802. package/lib-esm/components/rightPanel/styled.d.ts +0 -16
  1803. package/lib-esm/components/rightPanel/styled.js +0 -76
  1804. package/lib-esm/components/rightPanel/types.d.ts +0 -10
  1805. package/lib-esm/components/rightPanel/types.js +0 -2
  1806. package/lib-esm/components/rightPanel/utils.d.ts +0 -28
  1807. package/lib-esm/components/rightPanel/utils.js +0 -2
  1808. package/lib-esm/components/shared/HttpVerb.d.ts +0 -2
  1809. package/lib-esm/components/shared/HttpVerb.js +0 -4
  1810. package/lib-esm/components/shared/MimeLabel.d.ts +0 -1
  1811. package/lib-esm/components/shared/MimeLabel.js +0 -12
  1812. package/lib-esm/components/shared/NoSampleLabel.d.ts +0 -2
  1813. package/lib-esm/components/shared/NoSampleLabel.js +0 -10
  1814. package/lib-esm/components/shared/index.d.ts +0 -3
  1815. package/lib-esm/components/shared/index.js +0 -2
  1816. package/lib-esm/events/serverSwitch.d.ts +0 -2
  1817. package/lib-esm/events/serverSwitch.js +0 -2
  1818. package/lib-esm/models/file-upload.d.ts +0 -11
  1819. package/lib-esm/models/file-upload.js +0 -2
  1820. package/lib-esm/oauth2-redirect-page/handler/helpers.d.ts +0 -6
  1821. package/lib-esm/oauth2-redirect-page/handler/helpers.js +0 -2
  1822. package/lib-esm/oauth2-redirect-page/handler/oauth2-redirect-handler.d.ts +0 -1
  1823. package/lib-esm/oauth2-redirect-page/handler/oauth2-redirect-handler.js +0 -2
  1824. package/lib-esm/oauth2-redirect-page/index.d.ts +0 -1
  1825. package/lib-esm/oauth2-redirect-page/index.js +0 -2
  1826. package/lib-esm/recoil/app.d.ts +0 -36
  1827. package/lib-esm/recoil/app.js +0 -2
  1828. package/lib-esm/recoil/nexus.d.ts +0 -6
  1829. package/lib-esm/recoil/nexus.js +0 -2
  1830. package/lib-esm/recoil/operation.d.ts +0 -11
  1831. package/lib-esm/recoil/operation.js +0 -2
  1832. package/lib-esm/recoil/store.d.ts +0 -19
  1833. package/lib-esm/recoil/store.js +0 -2
  1834. package/lib-esm/services/MarkerService.d.ts +0 -11
  1835. package/lib-esm/services/MarkerService.js +0 -2
  1836. package/lib-esm/services/OAuth2.d.ts +0 -43
  1837. package/lib-esm/services/OAuth2.js +0 -2
  1838. package/lib-esm/services/OpenIDConnect.d.ts +0 -38
  1839. package/lib-esm/services/OpenIDConnect.js +0 -2
  1840. package/lib-esm/services/Options/helpers.d.ts +0 -8
  1841. package/lib-esm/services/Options/helpers.js +0 -2
  1842. package/lib-esm/services/Options/normalizeOptions.d.ts +0 -2
  1843. package/lib-esm/services/Options/normalizeOptions.js +0 -2
  1844. package/lib-esm/services/Options/types.d.ts +0 -277
  1845. package/lib-esm/services/Options/types.js +0 -2
  1846. package/lib-esm/services/labels/LabelsService.d.ts +0 -3
  1847. package/lib-esm/services/labels/LabelsService.js +0 -2
  1848. package/lib-esm/services/labels/index.d.ts +0 -2
  1849. package/lib-esm/services/labels/index.js +0 -2
  1850. package/lib-esm/services/labels/types.d.ts +0 -28
  1851. package/lib-esm/services/labels/types.js +0 -2
  1852. package/lib-esm/services/menu/helpers.d.ts +0 -6
  1853. package/lib-esm/services/menu/helpers.js +0 -2
  1854. package/lib-esm/services/search/DeepSearchStore.d.ts +0 -19
  1855. package/lib-esm/services/search/DeepSearchStore.js +0 -2
  1856. package/lib-esm/services/search/RemoteSearch.d.ts +0 -17
  1857. package/lib-esm/services/search/RemoteSearch.js +0 -2
  1858. package/lib-esm/services/search/SearchStore.d.ts +0 -14
  1859. package/lib-esm/services/search/SearchStore.js +0 -2
  1860. package/lib-esm/services/search/SearchWorker.worker.d.ts +0 -17
  1861. package/lib-esm/services/search/SearchWorker.worker.js +0 -2
  1862. package/lib-esm/services/search/index.d.ts +0 -4
  1863. package/lib-esm/services/search/index.js +0 -2
  1864. package/lib-esm/services/search/types.d.ts +0 -15
  1865. package/lib-esm/services/search/types.js +0 -2
  1866. package/lib-esm/services/search/useSearch.d.ts +0 -13
  1867. package/lib-esm/services/search/useSearch.js +0 -2
  1868. package/lib-esm/types/server.d.ts +0 -7
  1869. package/lib-esm/types/server.js +0 -2
  1870. package/lib-esm/utils/media-css.d.ts +0 -8
  1871. package/lib-esm/utils/media-css.js +0 -2
  1872. package/lib-esm/utils/typeGuards.d.ts +0 -4
  1873. package/lib-esm/utils/typeGuards.js +0 -2
  1874. /package/lib/components/{ApiInfo → PropertyDetails}/types.js +0 -0
  1875. /package/lib/components/{Endpoint → Request}/types.js +0 -0
  1876. /package/lib/components/{Fields → ServerList}/types.js +0 -0
  1877. /package/lib/components/{Search → common/Select}/types.js +0 -0
  1878. /package/lib/services/{Options → config-options}/index.d.ts +0 -0
  1879. /package/lib/services/{Options → config-options}/index.js +0 -0
  1880. /package/lib/{components/SecurityRequirement → services/config-options}/types.js +0 -0
  1881. /package/lib-esm/components/{rightPanel/CodemirrorInput/helpers.d.ts → Language/_tests_/LanguageDropdown.test.d.ts} +0 -0
  1882. /package/{lib/components/rightPanel/CodemirrorInput/helpers.d.ts → lib-esm/components/OperationItem/_tests_/OperationItem.test.d.ts} +0 -0
  1883. /package/lib-esm/components/{ApiInfo → PropertyDetails}/types.js +0 -0
  1884. /package/lib-esm/components/{Endpoint → Request}/types.js +0 -0
  1885. /package/lib-esm/components/{Fields → ServerList}/types.js +0 -0
  1886. /package/lib-esm/components/{Search → common/Select}/types.js +0 -0
  1887. /package/lib-esm/services/{Options → config-options}/index.d.ts +0 -0
  1888. /package/lib-esm/services/{Options → config-options}/index.js +0 -0
  1889. /package/lib-esm/{components/SecurityRequirement → services/config-options}/types.js +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";var __rest=this&&this.__rest||function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(i[r[s]]=e[r[s]])}return i};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSchema=void 0;const OpenAPIParser_1=require("../services/OpenAPIParser"),utils_1=require("../utils"),services_1=require("../services"),field_1=require("./field");function getSchema({parser:e,schemaOrRef:t,pointer:i,options:r,isChild:s=!1,baseRefsStack:n=[],deps:o,absolutePointer:a}){var l,p,d,c,f,m,u,y;const{resolved:O,refsStack:h}=e.deref(t,n,!0),v=t.$ref||i||"",b=(0,OpenAPIParser_1.pushRef)(h,v),P=e.mergeAllOf(O,v,b,t.$ref||a),g=P.type||(0,utils_1.detectType)(P),x={parser:e,options:r,deps:o,schemaOrRef:t,isChild:s,typePrefix:"",pointer:v,absolutePointer:a,refsStack:b,rawSchema:O,type:g,isCircular:!!P["x-circular-ref"],title:P.title||(0,utils_1.isNamedDefinition)(v)&&utils_1.JsonPointer.baseName(v)||"",description:(0,utils_1.getValueFromMdParsedExtension)(P,"description")||"",format:P.format,enum:P.enum||[],example:P.example,deprecated:!!P.deprecated,pattern:P.pattern,externalDocs:P.externalDocs,displayFormat:P.format,isPrimitive:(0,utils_1.isPrimitiveType)(P,g),constraints:(0,utils_1.humanizeConstraints)(P),default:P.default,readOnly:!!P.readOnly,writeOnly:!!P.writeOnly,const:P.const||"",contentEncoding:P.contentEncoding,contentMediaType:P.contentMediaType,minItems:P.minItems,maxItems:P.maxItems,nullable:P.nullable||P["x-nullable"],schema:P,displayType:"",items:void 0,extensions:void 0,oneOfType:"",discriminatorProp:void 0,oneOf:void 0,"x-enumDescriptions":(0,utils_1.getValueFromMdParsedExtension)(P,"x-enumDescriptions"),get fields(){if(hasType(x,"object")||hasType(x,"array")&&(Array.isArray(P.items)||Array.isArray(P.prefixItems)))return buildFields(e,P,v,r,b,o)}};if((P.nullable||P["x-nullable"])&&(Array.isArray(x.type)&&!x.type.some((e=>null===e||"null"===e))?x.type=[...x.type,"null"]:Array.isArray(x.type)||null===x.type&&"null"===x.type||(x.type=[x.type,"null"])),x.displayType=Array.isArray(x.type)?x.type.map((e=>null===e?"null":e)).join(" or "):x.type,x.isCircular)return x;if(P.if&&P.then||P.if&&P.else){const{oneOf:t,oneOfType:i}=initConditionalOperators({schema:P,parser:e,pointer:v,options:r,deps:o,refsStack:b});return x.oneOf=t,x.oneOfType=i,x}if(!s&&void 0!==getDiscriminator(P)){const{oneOf:t,discriminatorProp:i}=initDiscriminator({schema:P,parser:e,deps:o,mergedSchema:P,options:r,pointer:v,refsStack:b});return x.oneOf=t,x.discriminatorProp=i,x}if(s&&Array.isArray(P.oneOf)&&P.oneOf.find((e=>e.$ref===v))&&delete P.oneOf,void 0!==P.oneOf){const{oneOf:t,displayType:i}=initOneOf({schemaOneOf:P.oneOf,parser:e,deps:o,options:r,pointer:v,refsStack:b,schema:P});return x.oneOfType="One of",t&&(x.oneOf=t),x.displayType=i,void 0!==P.anyOf&&console.warn(`oneOf and anyOf are not supported on the same level. Skipping anyOf at ${v}`),x}if(void 0!==P.anyOf){const{oneOf:t,displayType:i}=initOneOf({schemaOneOf:P.anyOf,parser:e,deps:o,options:r,pointer:v,refsStack:b,schema:P});return t&&(x.oneOf=t),x.displayType=i,x.oneOfType="Any of",x}if(hasType(x,"array")&&(P.items&&(x.items=getSchema({parser:e,schemaOrRef:P.items,pointer:v+"/items",options:r,baseRefsStack:b,deps:o,absolutePointer:utils_1.JsonPointer.join(P.absolutePointer||"",["items"])})),x.displayType=P.prefixItems||Array.isArray(P.items)?"items":(0,utils_1.pluralizeType)((null===(l=x.items)||void 0===l?void 0:l.displayType)||x.displayType),x.displayFormat=(null===(p=x.items)||void 0===p?void 0:p.format)||"",x.typePrefix=(null===(d=x.items)||void 0===d?void 0:d.typePrefix)||""+(0,services_1.l)("arrayOf"),x.title=x.title||(null===(c=x.items)||void 0===c?void 0:c.title)||"",x.isPrimitive=void 0!==(null===(f=x.items)||void 0===f?void 0:f.isPrimitive)?null===(m=x.items)||void 0===m?void 0:m.isPrimitive:x.isPrimitive,void 0===x.example&&void 0!==(null===(u=x.items)||void 0===u?void 0:u.example)&&(x.example=[x.items.example]),(null===(y=x.items)||void 0===y?void 0:y.isPrimitive)&&(x.enum=x.items.enum,x["x-enumDescriptions"]=(0,utils_1.getValueFromMdParsedExtension)(x.items,"x-enumDescriptions")),Array.isArray(x.type))){const e=x.type.filter((e=>"array"!==e));e.length&&(x.displayType+=` or ${e.join(" or ")}`)}return x.enum.length&&r.sortEnumValuesAlphabetically&&x.enum.sort(),r.showExtensions&&(x.extensions=(0,utils_1.extractExtensions)(P,r.showExtensions)),x}function initDiscriminator({schema:e,parser:t,pointer:i,options:r,refsStack:s,deps:n,mergedSchema:o}){const a=getDiscriminator(e),l=null==a?void 0:a.propertyName,p=t.findDerived([...o["x-parentRefs"]||[],i]);if(e.oneOf)for(const t of e.oneOf){if(void 0===t.$ref)continue;const e=utils_1.JsonPointer.baseName(t.$ref);p[t.$ref]=e}const d=(null==a?void 0:a.mapping)||{};let c=(null==a?void 0:a["x-explicitMappingOnly"])||!1;0===Object.keys(d).length&&(c=!1);const f={};for(const e in d){const t=d[e];Array.isArray(f[t])?f[t].push(e):f[t]=[e]}const m=c?Object.assign({},f):Object.assign(Object.assign({},p),f);let u=[];for(const e of Object.keys(m)){const t=m[e];if(Array.isArray(t))for(const i of t)u.push({$ref:e,name:i});else u.push({$ref:e,name:t})}const y=Object.keys(d);0!==y.length&&(u=u.sort(((e,t)=>{const i=y.indexOf(e.name),r=y.indexOf(t.name);return i<0&&r<0?e.name.localeCompare(t.name):i<0?1:r<0?-1:i-r})));return{oneOf:u.map((({$ref:e,name:i},a)=>{const l=getSchema({parser:t,schemaOrRef:{$ref:e},pointer:e,options:r,isChild:!0,baseRefsStack:s.slice(0,-1),deps:Object.assign(Object.assign({},n),{parentFieldFullPath:n.parentFieldFullPath?n.parentFieldFullPath+"/"+a:a.toString()}),absolutePointer:o.absolutePointer});return l.title=i,l})),discriminatorProp:l}}function initOneOf({schemaOneOf:e,parser:t,refsStack:i,pointer:r,schema:s,options:n,deps:o}){const a=e.map(((e,a)=>{const{resolved:l,refsStack:p}=t.deref(e,i,!0),d=t.mergeAllOf(l,r+"/oneOf/"+a,p),c=(0,utils_1.isNamedDefinition)(e.$ref)&&!d.title?utils_1.JsonPointer.baseName(e.$ref):`${d.title||""}${d.const&&JSON.stringify(d.const)||""}`;return getSchema({parser:t,schemaOrRef:Object.assign(Object.assign({},d),{title:c,allOf:[Object.assign(Object.assign({},s),{oneOf:void 0,anyOf:void 0})],discriminator:l.allOf?void 0:d.discriminator}),pointer:e.$ref||r+"/oneOf/"+a,options:n,baseRefsStack:p,deps:Object.assign(Object.assign({},o),{parentFieldFullPath:o.parentFieldFullPath?o.parentFieldFullPath+"/"+a:a.toString()})})}));let l;if(n.simpleOneOfTypeLabel){l=collectUniqueOneOfTypesDeep(s).join(" or ")}else l=a.map((e=>{let t=e.typePrefix+(e.title?`${e.title} (${e.displayType})`:e.displayType);return t.indexOf(" or ")>-1&&(t=`(${t})`),t})).join(" or ");return{oneOf:a,displayType:l}}function initConditionalOperators({schema:e,parser:t,pointer:i,options:r,refsStack:s,deps:n}){const{if:o,else:a={},then:l={}}=e,p=__rest(e,["if","else","then"]);return{oneOf:[{allOf:[p,l,o],title:o&&o["x-displayName"]||(null==o?void 0:o.title)||"case 1"},{allOf:[p,a],title:a&&a["x-displayName"]||(null==a?void 0:a.title)||"case 2"}].map(((e,o)=>getSchema({parser:t,schemaOrRef:Object.assign({},e),pointer:i+"/oneOf/"+o,options:r,baseRefsStack:s,deps:Object.assign(Object.assign({},n),{parentFieldFullPath:n.parentFieldFullPath?n.parentFieldFullPath+"/"+o:o.toString()})}))),oneOfType:"One of"}}function normalizeField(e,t,i){return e||(console.warn(`Field "${t}" is invalid, skipping.\n Field must be an object but got ${typeof e} at "${i}"`),{})}function buildFields(e,t,i,r,s,n){let o=t.properties||(hasType(t,"array")?t.prefixItems||t.items:void 0)||{};const a=t.patternProperties||{},l=t.additionalProperties||t.unevaluatedProperties,p=t.prefixItems?t.items:t.additionalItems,d=t.default||{};let c=Object.keys(o).map((a=>{var l;const p=normalizeField(o[a],a,i),c=void 0!==t.required&&t.required.indexOf(a)>-1;return(0,field_1.getField)(e,{name:t.properties?a:`[${a}]`,required:c,schema:Object.assign(Object.assign({},p),{example:(null===(l=t.example)||void 0===l?void 0:l[a])||p.example,default:void 0===p.default&&d?d[a]:p.default})},i+"/properties/"+a,r,n,s,utils_1.JsonPointer.join(t.absolutePointer||"",["properties",a]))}));return r.sortPropsAlphabetically&&(c=(0,utils_1.sortByField)(c,"name")),r.requiredPropsFirst&&(c=(0,utils_1.sortByRequired)(c,r.sortPropsAlphabetically?void 0:t.required)),c.push(...Object.keys(a).map((t=>{const o=normalizeField(a[t],t,i);return(0,field_1.getField)(e,{name:t,required:!1,schema:o,kind:"patternProperties"},`${i}/patternProperties/${t}`,r,n,s)}))),((0,utils_1.isObject)(l)||!0===l)&&c.push((0,field_1.getField)(e,{name:((0,utils_1.isObject)(l)&&l["x-additionalPropertiesName"]||"property name").concat("*"),required:!1,schema:!0===l?{}:l,kind:"additionalProperties"},i+"/additionalProperties",r,n,s,utils_1.JsonPointer.join(t.absolutePointer||"",["additionalProperties"]))),c.push(...buildAdditionalItems({parser:e,schema:p,fieldsCount:c.length,$ref:i,options:r,refsStack:s,deps:n})),c}function buildAdditionalItems({parser:e,schema:t=!1,fieldsCount:i,$ref:r,options:s,refsStack:n,deps:o}){return"boolean"==typeof t?t?[(0,field_1.getField)(e,{name:`[${i}...]`,schema:{},kind:"additionalItems"},`${r}/additionalItems`,s,o,n)]:[]:Array.isArray(t)?[...t.map(((t,a)=>(0,field_1.getField)(e,{name:`[${i+a}]`,schema:t,kind:"additionalItems"},`${r}/additionalItems/${a}`,s,o,n)))]:(0,utils_1.isObject)(t)?[(0,field_1.getField)(e,{name:`[${i}...]`,schema:t,kind:"additionalItems"},`${r}/additionalItems`,s,o,n)]:[]}function getDiscriminator(e){return e.discriminator||e["x-discriminator"]}function collectUniqueOneOfTypesDeep(e){const t=new Set;return function e(i){for(const r of i.oneOf||[])r.oneOf?e(r):r.type&&t.add(r.type)}(e),Array.from(t.values())}function hasType(e,t){return e.type===t||Array.isArray(e.type)&&e.type.includes(t)}exports.getSchema=getSchema;
1
+ "use strict";var __rest=this&&this.__rest||function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]])}return i};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSchema=void 0;const theme_1=require("@redocly/theme"),OpenAPIParser_1=require("../services/OpenAPIParser"),utils_1=require("../utils"),field_1=require("./field");function getSchema({parser:e,schemaOrRef:t,pointer:i,options:r,isChild:n=!1,baseRefsStack:s=[],deps:o,absolutePointer:a}){var l,p,d,c,f,m,u,y,O;const{resolved:h,refsStack:v}=e.deref(t,s,!0),b=t.$ref||i||a||"",P=(0,OpenAPIParser_1.pushRef)(v,b),g=e.mergeAllOf(h,b,P,t.$ref||a),x=g.type||(0,utils_1.detectType)(g),_={operationPointer:(null===(l=o.operation)||void 0===l?void 0:l.pointer)||a||"",schemaOrRef:t,isChild:n,typePrefix:"",pointer:b,absolutePointer:a,refsStack:P,rawSchema:h,type:x,isCircular:!!g["x-circular-ref"],title:g.title||(0,utils_1.isNamedDefinition)(b)&&utils_1.JsonPointer.baseName(b)||"",description:(0,utils_1.getValueFromMdParsedExtension)(g,"description")||"",format:g.format,enum:g.enum||[],example:g.example,deprecated:!!g.deprecated,pattern:g.pattern,externalDocs:g.externalDocs,displayFormat:g.format,isPrimitive:(0,utils_1.isPrimitiveType)(g,x),constraints:(0,utils_1.humanizeConstraints)(g),default:g.default,readOnly:!!g.readOnly,writeOnly:!!g.writeOnly,const:g.const||"",contentEncoding:g.contentEncoding,contentMediaType:g.contentMediaType,minItems:g.minItems,maxItems:g.maxItems,nullable:g.nullable||g["x-nullable"],schema:g,displayType:"",items:void 0,extensions:void 0,oneOfType:"",discriminatorProp:void 0,oneOf:void 0,"x-enumDescriptions":(0,utils_1.getValueFromMdParsedExtension)(g,"x-enumDescriptions"),get fields(){if(hasType(_,"object")||hasType(_,"array")&&(Array.isArray(g.items)||Array.isArray(g.prefixItems)))return buildFields(e,g,b,r,P,o)}};if((g.nullable||g["x-nullable"])&&(Array.isArray(_.type)&&!_.type.some((e=>null===e||"null"===e))?_.type=[..._.type,"null"]:Array.isArray(_.type)||null===_.type&&"null"===_.type||(_.type=[_.type,"null"])),_.displayType=Array.isArray(_.type)?_.type.map((e=>null===e?"null":e)).join(" or "):_.type,_.isCircular)return _;if(g.if&&g.then||g.if&&g.else){const{oneOf:t,oneOfType:i}=initConditionalOperators({schema:g,parser:e,pointer:b,options:r,deps:o,refsStack:P});return _.oneOf=t,_.oneOfType=i,_}if(!n&&void 0!==getDiscriminator(g)){const{oneOf:t,discriminatorProp:i}=initDiscriminator({schema:g,parser:e,deps:o,mergedSchema:g,options:r,pointer:b,refsStack:P});return _.oneOf=t,_.discriminatorProp=i,_}if(n&&Array.isArray(g.oneOf)&&g.oneOf.find((e=>e.$ref===b))&&delete g.oneOf,void 0!==g.oneOf){const{oneOf:t,displayType:i}=initOneOf({schemaOneOf:g.oneOf,parser:e,deps:o,options:r,pointer:b,refsStack:P,schema:g});return _.oneOfType="One of",t&&(_.oneOf=t),_.displayType=i,void 0!==g.anyOf&&console.warn(`oneOf and anyOf are not supported on the same level. Skipping anyOf at ${b}`),_}if(void 0!==g.anyOf){const{oneOf:t,displayType:i}=initOneOf({schemaOneOf:g.anyOf,parser:e,deps:o,options:r,pointer:b,refsStack:P,schema:g});return t&&(_.oneOf=t),_.displayType=i,_.oneOfType="Any of",_}if(hasType(_,"array")&&(g.items&&(_.items=getSchema({parser:e,schemaOrRef:g.items,pointer:b+"/items",options:r,baseRefsStack:P,deps:o,absolutePointer:utils_1.JsonPointer.join(g.absolutePointer||"",["items"])})),_.displayType=g.prefixItems||Array.isArray(g.items)?"items":(0,utils_1.pluralizeType)((null===(p=_.items)||void 0===p?void 0:p.displayType)||_.displayType),_.displayFormat=(null===(d=_.items)||void 0===d?void 0:d.format)||"",_.typePrefix=(null===(c=_.items)||void 0===c?void 0:c.typePrefix)||"Array of ",_.title=_.title||(null===(f=_.items)||void 0===f?void 0:f.title)||"",_.isPrimitive=void 0!==(null===(m=_.items)||void 0===m?void 0:m.isPrimitive)?null===(u=_.items)||void 0===u?void 0:u.isPrimitive:_.isPrimitive,void 0===_.example&&void 0!==(null===(y=_.items)||void 0===y?void 0:y.example)&&(_.example=[_.items.example]),(null===(O=_.items)||void 0===O?void 0:O.isPrimitive)&&(_.enum=_.items.enum,_["x-enumDescriptions"]=(0,utils_1.getValueFromMdParsedExtension)(_.items,"x-enumDescriptions")),Array.isArray(_.type))){const e=_.type.filter((e=>"array"!==e));e.length&&(_.displayType+=` or ${e.join(" or ")}`)}return r.showExtensions&&(_.extensions=(0,utils_1.extractExtensions)(g,r.showExtensions)),_}function initDiscriminator({schema:e,parser:t,pointer:i,options:r,refsStack:n,deps:s,mergedSchema:o}){const a=getDiscriminator(e),l=null==a?void 0:a.propertyName,p=t.findDerived([...o["x-parentRefs"]||[],i]);if(e.oneOf)for(const t of e.oneOf){if(void 0===t.$ref)continue;const e=utils_1.JsonPointer.baseName(t.$ref);p[t.$ref]=e}const d=(null==a?void 0:a.mapping)||{};let c=(null==a?void 0:a["x-explicitMappingOnly"])||!1;0===Object.keys(d).length&&(c=!1);const f={};for(const e in d){const t=d[e];Array.isArray(f[t])?f[t].push(e):f[t]=[e]}const m=c?Object.assign({},f):Object.assign(Object.assign({},p),f);let u=[];for(const e of Object.keys(m)){const t=m[e];if(Array.isArray(t))for(const i of t)u.push({$ref:e,name:i});else u.push({$ref:e,name:t})}const y=Object.keys(d);0!==y.length&&(u=u.sort(((e,t)=>{const i=y.indexOf(e.name),r=y.indexOf(t.name);return i<0&&r<0?e.name.localeCompare(t.name):i<0?1:r<0?-1:i-r})));return{oneOf:u.map((({$ref:e,name:i},a)=>{const l=getSchema({parser:t,schemaOrRef:{$ref:e},pointer:e,options:r,isChild:!0,baseRefsStack:n.slice(0,-1),deps:Object.assign(Object.assign({},s),{parentFieldFullPath:s.parentFieldFullPath?s.parentFieldFullPath+"&d="+a:"&d="+a.toString()}),absolutePointer:o.absolutePointer});return l.title=i,l})),discriminatorProp:l}}function initOneOf({schemaOneOf:e,parser:t,refsStack:i,pointer:r,schema:n,options:s,deps:o}){const a=e.map(((e,a)=>{const{resolved:l,refsStack:p}=t.deref(e,i,!0),d=t.mergeAllOf(l,r+"/oneOf/"+a,p),c=(0,utils_1.isNamedDefinition)(e.$ref)&&!d.title?utils_1.JsonPointer.baseName(e.$ref):`${d.title||""}${d.const&&JSON.stringify(d.const)||""}`;return getSchema({parser:t,schemaOrRef:Object.assign(Object.assign({},d),{title:c,allOf:[Object.assign(Object.assign({},n),{oneOf:void 0,anyOf:void 0})],discriminator:l.allOf?void 0:d.discriminator}),pointer:e.$ref||r+"/oneOf/"+a,options:s,baseRefsStack:p,deps:Object.assign(Object.assign({},o),{parentFieldFullPath:o.parentFieldFullPath?o.parentFieldFullPath+"&oneOf="+a:"&oneOf="+a.toString()})})})),l=a.map((e=>{let t=e.typePrefix+(e.title?`${e.title} (${e.displayType})`:e.displayType);return t.indexOf(" or ")>-1&&(t=`(${t})`),t})).join(" or ");return{oneOf:a,displayType:l}}function initConditionalOperators({schema:e,parser:t,pointer:i,options:r,refsStack:n,deps:s}){const{if:o,else:a={},then:l={}}=e,p=__rest(e,["if","else","then"]);return{oneOf:[{allOf:[p,l,o],title:o&&o["x-displayName"]||(null==o?void 0:o.title)||"case 1"},{allOf:[p,a],title:a&&a["x-displayName"]||(null==a?void 0:a.title)||"case 2"}].map(((e,o)=>getSchema({parser:t,schemaOrRef:Object.assign({},e),pointer:i+"/oneOf/"+o,options:r,baseRefsStack:n,deps:Object.assign(Object.assign({},s),{parentFieldFullPath:s.parentFieldFullPath?s.parentFieldFullPath+"&oneOf="+o:"&oneOf="+o.toString()})}))),oneOfType:"One of"}}function normalizeField(e,t,i){return e||(console.warn(`Field "${t}" is invalid, skipping.\n Field must be an object but got ${typeof e} at "${i}"`),{})}function buildFields(e,t,i,r,n,s){let o=t.properties||(hasType(t,"array")?t.prefixItems||t.items:void 0)||{};const a=t.patternProperties||{},l=t.additionalProperties||t.unevaluatedProperties,p=t.prefixItems?t.items:t.additionalItems,d=t.default||{};let c=Object.keys(o).map((a=>{var l;const p=normalizeField(o[a],a,i),c=void 0!==t.required&&t.required.indexOf(a)>-1;return(0,field_1.getField)(e,{name:t.properties?a:`[${a}]`,required:c,schema:Object.assign(Object.assign({},p),{example:(null===(l=t.example)||void 0===l?void 0:l[a])||p.example,default:void 0===p.default&&d?d[a]:p.default})},i+"/properties/"+a,r,s,n,utils_1.JsonPointer.join(t.absolutePointer||"",["properties",a]))}));return r.sortRequiredPropsFirst&&(c=(0,utils_1.sortByRequired)(c,t.required)),c.push(...Object.keys(a).map((t=>{const o=normalizeField(a[t],t,i);return(0,field_1.getField)(e,{name:t,required:!1,schema:o,kind:"patternProperties"},`${i}/patternProperties/${t}`,r,s,n)}))),((0,theme_1.isObject)(l)||!0===l)&&c.push((0,field_1.getField)(e,{name:((0,theme_1.isObject)(l)&&l["x-additionalPropertiesName"]||"property name").concat("*"),required:!1,schema:!0===l?{}:l,kind:"additionalProperties"},i+"/additionalProperties",r,s,n,utils_1.JsonPointer.join(t.absolutePointer||"",["additionalProperties"]))),c.push(...buildAdditionalItems({parser:e,schema:p,fieldsCount:c.length,$ref:i,options:r,refsStack:n,deps:s})),(0,utils_1.sortByDeprecated)(c)}function buildAdditionalItems({parser:e,schema:t=!1,fieldsCount:i,$ref:r,options:n,refsStack:s,deps:o}){return"boolean"==typeof t?t?[(0,field_1.getField)(e,{name:`[${i}...]`,schema:{},kind:"additionalItems"},`${r}/additionalItems`,n,o,s)]:[]:Array.isArray(t)?[...t.map(((t,a)=>(0,field_1.getField)(e,{name:`[${i+a}]`,schema:t,kind:"additionalItems"},`${r}/additionalItems/${a}`,n,o,s)))]:(0,theme_1.isObject)(t)?[(0,field_1.getField)(e,{name:`[${i}...]`,schema:t,kind:"additionalItems"},`${r}/additionalItems`,n,o,s)]:[]}function getDiscriminator(e){return e.discriminator||e["x-discriminator"]}function hasType(e,t){return e.type===t||Array.isArray(e.type)&&e.type.includes(t)}exports.getSchema=getSchema;
2
2
  //# sourceMappingURL=schema.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSecuritySchemes=exports.getSecurityScheme=exports.getSecurityRequirement=void 0;const utils_1=require("../utils");function getSecurityRequirement({requirement:e,parser:t}){const r=t.definition.components&&t.definition.components.securitySchemes||{};return{schemes:Object.keys(e||{}).map((i=>{const n=t.deref(r[i]).resolved,c=e[i]||[];if(n)return Object.assign(Object.assign({},n),{id:i,sectionId:i,scopes:c});console.warn(`Non existing security scheme referenced: ${i}. Skipping`)})).filter(Boolean)}}function getSecurityScheme(e,t,r){if(!(null==e?void 0:e.deref))return{};const{resolved:i}=e.deref(r),n=t,c=i.type,s=(0,utils_1.getValueFromMdParsedExtension)(i,"description")||"";let o,u,m,p={};switch(i.type){case"apiKey":o={name:i.name,in:i.in};break;case"http":u={scheme:i.scheme,bearerFormat:i.bearerFormat};break;case"openIdConnect":m={connectUrl:i.openIdConnectUrl};break;case"oauth2":p=i.flows}return{id:t,sectionId:n,type:c,description:s,apiKey:o,http:u,flows:p,openId:m}}function getSecuritySchemes({parser:e}){var t,r;if(!e)return[];const i=(null===(r=null===(t=e.definition)||void 0===t?void 0:t.components)||void 0===r?void 0:r.securitySchemes)||{};return Object.keys(i).map((t=>getSecurityScheme(e,t,i[t])))}exports.getSecurityRequirement=getSecurityRequirement,exports.getSecurityScheme=getSecurityScheme,exports.getSecuritySchemes=getSecuritySchemes;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSecuritySchemes=exports.getSecurityScheme=exports.getSecurityRequirement=void 0;const utils_1=require("../utils");function getSecurityRequirement({requirement:e,parser:t}){const r=t.definition.components&&t.definition.components.securitySchemes||{};return{schemes:Object.keys(e||{}).map((i=>{const c=t.deref(r[i]).resolved,n=e[i]||[];if(c)return Object.assign(Object.assign({},c),{id:i,sectionId:i,scopes:n})})).filter(Boolean)}}function getSecurityScheme(e,t,r){if(!(null==e?void 0:e.deref))return{};const{resolved:i}=e.deref(r),c=t,n=i.type,s=(0,utils_1.getValueFromMdParsedExtension)(i,"description")||"";let o,u,m,p={};switch(i.type){case"apiKey":o={name:i.name,in:i.in};break;case"http":u={scheme:i.scheme,bearerFormat:i.bearerFormat};break;case"openIdConnect":m={connectUrl:i.openIdConnectUrl};break;case"oauth2":p=i.flows}return{id:t,sectionId:c,type:n,description:s,apiKey:o,http:u,flows:p,openId:m}}function getSecuritySchemes({parser:e}){var t,r;if(!e)return[];const i=(null===(r=null===(t=e.definition)||void 0===t?void 0:t.components)||void 0===r?void 0:r.securitySchemes)||{};return Object.keys(i).map((t=>getSecurityScheme(e,t,i[t])))}exports.getSecurityRequirement=getSecurityRequirement,exports.getSecurityScheme=getSecurityScheme,exports.getSecuritySchemes=getSecuritySchemes;
2
2
  //# sourceMappingURL=security.js.map
@@ -0,0 +1,4 @@
1
+ export type TabType<T extends Object = {}> = {
2
+ title: string;
3
+ key: string;
4
+ } & T;
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
2
+ //# sourceMappingURL=tab.js.map
@@ -1,7 +1,7 @@
1
1
  import type { Node } from '@markdoc/markdoc';
2
- import type { OpenAPISecurityScheme, OpenAPIEncoding, OpenAPIMediaType, OpenAPIParameterLocation, OpenAPIParameterStyle, OpenAPIExternalDocumentation, Server, OpenAPIServer, OpenAPIXCodeSample, OpenAPISchema, Referenced, OpenAPIInfo } from '../types';
2
+ import type { OpenAPISecurityScheme, OpenAPIEncoding, OpenAPIMediaType, OpenAPIParameterLocation, OpenAPIParameterStyle, OpenAPIExternalDocumentation, OpenAPIServer, OpenAPIXCodeSample, OpenAPIXBadges, OpenAPISchema, Referenced, OpenAPIInfo } from '../types';
3
3
  import type { OpenAPIParser } from '../services/OpenAPIParser';
4
- import type { Options } from '../services/Options';
4
+ import type { Options } from '../services/config-options';
5
5
  import type { ExtendedOpenAPIOperation, MenuItemGroupType, MenuItemType, MergedOpenAPISchema, Unstable_ExternalCodeSample } from '../services/types';
6
6
  export type ContentItemModel = GroupModel | OperationMenuItem;
7
7
  export interface ExtendedOpenAPISecurityScheme extends OpenAPISecurityScheme {
@@ -40,7 +40,7 @@ export type ExampleModel = {
40
40
  value: any;
41
41
  rawValue: any;
42
42
  externalValueUrl?: string;
43
- summary?: string;
43
+ summary?: string | GenericObject;
44
44
  description?: string | GenericObject;
45
45
  mime: string;
46
46
  encoding?: {
@@ -51,6 +51,9 @@ export type MediaTypeModel = {
51
51
  examples?: {
52
52
  [name: string]: ExampleModel;
53
53
  };
54
+ formExamples?: {
55
+ [name: string]: ExampleModel;
56
+ };
54
57
  schema?: SchemaModel;
55
58
  name: string;
56
59
  isRequestType: boolean;
@@ -76,7 +79,6 @@ export type MediaContentModelInput = {
76
79
  };
77
80
  };
78
81
  export type ResponseModel = {
79
- expanded: boolean;
80
82
  content?: MediaContentModel;
81
83
  code: string;
82
84
  summary: string | GenericObject;
@@ -119,10 +121,6 @@ export type OperationModel = {
119
121
  externalDocs?: OpenAPIExternalDocumentation;
120
122
  items: ContentItemModel[];
121
123
  depth: number;
122
- activeExampleName?: string;
123
- activeServer: Server;
124
- defaultExampleName?: string | false;
125
- defaultMimeType?: string;
126
124
  pointer: string;
127
125
  operationId?: string;
128
126
  httpVerb: string;
@@ -138,16 +136,17 @@ export type OperationModel = {
138
136
  requestBody?: RequestBodyModel;
139
137
  payload?: {
140
138
  lang: string;
141
- label: string;
139
+ label?: string;
142
140
  source: string;
143
- requestBodyContent: MediaContentModel;
141
+ requestBodyContent?: MediaContentModel;
144
142
  };
145
143
  definitionSamples: OpenAPIXCodeSample[] | Unstable_ExternalCodeSample[];
144
+ badges: OpenAPIXBadges[];
146
145
  hasSamples: boolean;
146
+ hideReplay: boolean;
147
147
  parameters: FieldModel[];
148
148
  responses: ResponseModel[];
149
149
  callbacks: CallbackModel[];
150
- hideTryItPanel: boolean;
151
150
  };
152
151
  export type GroupModel = {
153
152
  id: string;
@@ -172,17 +171,16 @@ export type OperationMenuItem = {
172
171
  depth: number;
173
172
  items: ContentItemModel[];
174
173
  parent?: GroupModel;
175
- deprecated?: boolean;
174
+ deprecated: boolean;
176
175
  type: 'operation';
177
176
  httpVerb: string;
178
177
  path: string;
179
178
  isWebhook: boolean;
180
179
  operationId?: string;
180
+ badges?: OpenAPIXBadges[];
181
181
  };
182
182
  export type SchemaModel = {
183
- parser: OpenAPIParser;
184
- options: Options;
185
- deps: Deps;
183
+ operationPointer: string;
186
184
  schemaOrRef: Referenced<OpenAPISchema>;
187
185
  isChild: boolean;
188
186
  refsStack: string[];
@@ -1,6 +1,6 @@
1
1
  import type { OpenAPIRef, OpenAPIDefinition } from '../types';
2
2
  import type { MergedOpenAPISchema } from './types';
3
- import type { Options } from './Options/types';
3
+ import type { Options } from './config-options/types';
4
4
  /**
5
5
  * Loads and keeps spec. Provides raw spec operations
6
6
  */
@@ -10,7 +10,6 @@ export declare class OpenAPIParser {
10
10
  private options;
11
11
  definitionUrl?: string;
12
12
  definition: OpenAPIDefinition;
13
- versionPath?: string;
14
13
  private readonly allowMergeRefs;
15
14
  constructor(definition: OpenAPIDefinition, definitionUrl?: string, options?: Options & {
16
15
  versionId?: string;
@@ -1,2 +1,2 @@
1
- "use strict";var __rest=this&&this.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]])}return r};Object.defineProperty(exports,"__esModule",{value:!0}),exports.OpenAPIParser=exports.concatRefStacks=exports.pushRef=void 0;const utils_1=require("../utils"),JsonPointer_1=require("../utils/JsonPointer"),normalizeOptions_1=require("./Options/normalizeOptions");function pushRef(e,t){return t&&e[e.length-1]!==t?[...e,t]:e}function concatRefStacks(e,t){return t?e.concat(t):e}exports.pushRef=pushRef,exports.concatRefStacks=concatRefStacks;class OpenAPIParser{constructor(e,t,r=(0,normalizeOptions_1.normalizeOptions)({})){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"definitionUrl",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"definition",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"versionPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"allowMergeRefs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"byRef",{enumerable:!0,configurable:!0,writable:!0,value:e=>{let t;if(this.definition){"#"!==e.charAt(0)&&(e="#"+e),e=decodeURIComponent(e);try{t=JsonPointer_1.JsonPointer.get(this.definition,e)}catch(e){}return t||{}}}}),this.definition=Object.assign({},e),this.validate(e),this.versionPath=r.versionId,this.definition=e,this.allowMergeRefs=e.openapi.startsWith("3.1");const i=utils_1.IS_BROWSER?window.location.href:"";"string"==typeof t&&(this.definitionUrl=new URL(t,i).href)}validate(e){if(void 0===e.openapi)throw new Error("Document must be valid OpenAPI 3.0.0 definition")}isRef(e){return!!e&&(void 0!==e.$ref&&null!==e.$ref)}deref(e,t=[],r=!1){const i=null==e?void 0:e["x-refsStack"];if(t=concatRefStacks(t,i),this.isRef(e)){const i=(0,utils_1.getDefinitionName)(e.$ref);if(i&&this.options.ignoreNamedSchemas.has(i))return{resolved:{type:"object",title:i},refsStack:t};let n=this.byRef(e.$ref);if(!n)throw new Error(`Failed to resolve $ref "${e.$ref}"`);let s=t;if(t.includes(e.$ref))n=Object.assign({},n,{"x-circular-ref":!0});else if(this.isRef(n)){const e=this.deref(n,t,r);s=e.refsStack,n=e.resolved}return s=pushRef(t,e.$ref),n=this.allowMergeRefs?this.mergeRefs(e,n,r):n,{resolved:n,refsStack:s}}return{resolved:e,refsStack:concatRefStacks(t,i)}}mergeRefs(e,t,r){const{$ref:i}=e,n=__rest(e,["$ref"]),s=Object.keys(n);if(0===s.length)return t;if(r&&s.some((e=>!["description","title","externalDocs","x-refsStack","x-parentRefs","readOnly","writeOnly"].includes(e)))){const e=n,{description:r,title:i,readOnly:s,writeOnly:o}=e;return{allOf:[{description:r,title:i,readOnly:s,writeOnly:o},t,__rest(e,["description","title","readOnly","writeOnly"])]}}return Object.assign(Object.assign({},t),n)}mergeAllOf(e,t,r,i=""){var n;if(e["x-circular-ref"])return e;if(void 0===(e=this.hoistOneOfs(e)).allOf)return Object.assign({absolutePointer:i},e);let s=Object.assign(Object.assign({},e),{"x-parentRefs":[],absolutePointer:JsonPointer_1.JsonPointer.join(i,["allOf"]),allOf:void 0,title:e.title||(0,utils_1.getDefinitionName)(t)});void 0!==s.properties&&"object"==typeof s.properties&&(s.properties=Object.assign({},s.properties)),void 0!==s.items&&"object"==typeof s.items&&(s.items=Object.assign({},s.items));const o=e.allOf.map(((e,t)=>{var n;const{resolved:o,refsStack:a}=this.deref(e,r,!0),l=e.$ref,f=l||JsonPointer_1.JsonPointer.join(i,[String(t)]),c=this.mergeAllOf(o,l,a,f);if(!c["x-circular-ref"]||!c.allOf)return l&&(null===(n=s["x-parentRefs"])||void 0===n||n.push(...c["x-parentRefs"]||[],l)),{$ref:l,refsStack:pushRef(a,l),schema:c,absolutePointer:f}})).filter((e=>void 0!==e));for(const[e,{schema:r,refsStack:i,absolutePointer:a}]of o.entries()){const{type:o,enum:l,properties:f,items:c,required:p,title:d,description:u,readOnly:O,writeOnly:y,oneOf:b,anyOf:h,"x-circular-ref":v}=r,m=__rest(r,["type","enum","properties","items","required","title","description","readOnly","writeOnly","oneOf","anyOf","x-circular-ref"]);if(s.type===o||void 0===s.type||void 0===o){if(void 0!==o&&(Array.isArray(o)&&Array.isArray(s.type)?s.type=[...o,...s.type]:s.type=o),void 0!==l&&(Array.isArray(l)&&Array.isArray(s.enum)?s.enum=Array.from(new Set([...l,...s.enum])):s.enum=l),void 0!==f&&"object"==typeof f){s.properties=s.properties||{};for(const r in f){const o=concatRefStacks(i,null===(n=f[r])||void 0===n?void 0:n["x-refsStack"]);if(s.properties[r]){if(!v){const i=this.mergeAllOf({allOf:[s.properties[r],f[r]],"x-refsStack":o},t+"/properties/"+r,o,JsonPointer_1.JsonPointer.join(a,["allOf",String(e),"properties",r]));s.properties[r]=i}}else s.properties[r]=Object.assign(Object.assign({},f[r]),{absolutePointer:JsonPointer_1.JsonPointer.join(a,["properties",r]),"x-refsStack":o})}}if(void 0!==c&&!v){const e="boolean"==typeof s.items?{}:Object.assign({},s.items),n="boolean"==typeof r.items?{}:Object.assign({},r.items);s.items=this.mergeAllOf({allOf:[e,n]},t+"/items",i)}void 0!==b&&(s.oneOf=b),void 0!==h&&(s.anyOf=h),void 0!==p&&(s.required=[...s.required||[],...p]),s=Object.assign(Object.assign(Object.assign({},s),{title:s.title||d,description:s.description||u,readOnly:void 0!==s.readOnly?s.readOnly:O,writeOnly:void 0!==s.writeOnly?s.writeOnly:y,"x-circular-ref":s["x-circular-ref"]||v}),m)}}return s}findDerived(e){const t={},r=this.definition.components&&this.definition.components.schemas||{};for(const i in r){const{resolved:n}=this.deref(r[i]);void 0!==n.allOf&&n.allOf.find((t=>void 0!==t.$ref&&e.indexOf(t.$ref)>-1))&&(t["#/components/schemas/"+i]=[n["x-discriminator-value"]||i])}return t}hoistOneOfs(e){if(void 0===e.allOf)return e;const t=e.allOf;for(let e=0;e<t.length;e++){const r=t[e];if(Array.isArray(r.oneOf)){const i=t.slice(0,e),n=t.slice(e+1);return{oneOf:r.oneOf.map((e=>({allOf:[...i,e,...n]})))}}}return e}}exports.OpenAPIParser=OpenAPIParser;
1
+ "use strict";var __rest=this&&this.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]])}return r};Object.defineProperty(exports,"__esModule",{value:!0}),exports.OpenAPIParser=exports.concatRefStacks=exports.pushRef=void 0;const theme_1=require("@redocly/theme"),utils_1=require("../utils"),JsonPointer_1=require("../utils/JsonPointer"),normalizeOptions_1=require("./config-options/normalizeOptions");function pushRef(e,t){return t&&e[e.length-1]!==t?[...e,t]:e}function concatRefStacks(e,t){return t?e.concat(t):e}exports.pushRef=pushRef,exports.concatRefStacks=concatRefStacks;class OpenAPIParser{constructor(e,t,r=(0,normalizeOptions_1.normalizeOptions)({})){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"definitionUrl",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"definition",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"allowMergeRefs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"byRef",{enumerable:!0,configurable:!0,writable:!0,value:e=>{let t;if(this.definition){"#"!==e.charAt(0)&&(e="#"+e),e=decodeURIComponent(e);try{t=JsonPointer_1.JsonPointer.get(this.definition,e)}catch(e){}return t||{}}}}),this.definition=Object.assign({},e),this.validate(e),this.definition=e,this.allowMergeRefs=e.openapi.startsWith("3.1");const i=theme_1.IS_BROWSER?window.location.href:"";"string"==typeof t&&(this.definitionUrl=new URL(t,i).href)}validate(e){if(void 0===e.openapi)throw new Error("Document must be valid OpenAPI 3.0.0 definition")}isRef(e){return!!e&&(void 0!==e.$ref&&null!==e.$ref)}deref(e,t=[],r=!1){const i=null==e?void 0:e["x-refsStack"];if(t=concatRefStacks(t,i),this.isRef(e)){const i=(0,utils_1.getDefinitionName)(e.$ref);if(i&&this.options.ignoreNamedSchemas.has(i))return{resolved:{type:"object",title:i},refsStack:t};let n=this.byRef(e.$ref);if(!n)throw new Error(`Failed to resolve $ref "${e.$ref}"`);let s=t;if(t.includes(e.$ref))n=Object.assign({},n,{"x-circular-ref":!0});else if(this.isRef(n)){const e=this.deref(n,t,r);s=e.refsStack,n=e.resolved}return s=pushRef(t,e.$ref),n=this.allowMergeRefs?this.mergeRefs(e,n,r):n,{resolved:n,refsStack:s}}return{resolved:e,refsStack:concatRefStacks(t,i)}}mergeRefs(e,t,r){const{$ref:i}=e,n=__rest(e,["$ref"]),s=Object.keys(n);if(0===s.length)return t;if(r&&s.some((e=>!["description","title","externalDocs","x-refsStack","x-parentRefs","readOnly","writeOnly"].includes(e)))){const e=n,{description:r,title:i,readOnly:s,writeOnly:o}=e;return{allOf:[{description:r,title:i,readOnly:s,writeOnly:o},t,__rest(e,["description","title","readOnly","writeOnly"])]}}return Object.assign(Object.assign({},t),n)}mergeAllOf(e,t,r,i=""){var n;if(e["x-circular-ref"])return e;if(void 0===(e=this.hoistOneOfs(e)).allOf)return Object.assign({absolutePointer:i},e);let s=Object.assign(Object.assign({},e),{"x-parentRefs":[],absolutePointer:JsonPointer_1.JsonPointer.join(i,["allOf"]),allOf:void 0,title:e.title||(0,utils_1.getDefinitionName)(t)});void 0!==s.properties&&"object"==typeof s.properties&&(s.properties=Object.assign({},s.properties)),void 0!==s.items&&"object"==typeof s.items&&(s.items=Object.assign({},s.items));const o=e.allOf.map(((e,t)=>{var n;const{resolved:o,refsStack:a}=this.deref(e,r,!0),l=e.$ref,f=l||JsonPointer_1.JsonPointer.join(i,[String(t)]),c=this.mergeAllOf(o,l,a,f);if(!c["x-circular-ref"]||!c.allOf)return l&&(null===(n=s["x-parentRefs"])||void 0===n||n.push(...c["x-parentRefs"]||[],l)),{$ref:l,refsStack:pushRef(a,l),schema:c,absolutePointer:f}})).filter((e=>void 0!==e));for(const[e,{schema:r,refsStack:i,absolutePointer:a}]of o.entries()){const{type:o,enum:l,properties:f,items:c,required:p,title:d,description:O,readOnly:u,writeOnly:y,oneOf:b,anyOf:h,"x-circular-ref":m}=r,v=__rest(r,["type","enum","properties","items","required","title","description","readOnly","writeOnly","oneOf","anyOf","x-circular-ref"]);if(s.type===o||void 0===s.type||void 0===o){if(void 0!==o&&(Array.isArray(o)&&Array.isArray(s.type)?s.type=[...o,...s.type]:s.type=o),void 0!==l&&(Array.isArray(l)&&Array.isArray(s.enum)?s.enum=Array.from(new Set([...l,...s.enum])):s.enum=l),void 0!==f&&"object"==typeof f){s.properties=s.properties||{};for(const r in f){const o=concatRefStacks(i,null===(n=f[r])||void 0===n?void 0:n["x-refsStack"]);if(s.properties[r]){if(!m){const i=this.mergeAllOf({allOf:[s.properties[r],f[r]],"x-refsStack":o},t+"/properties/"+r,o,JsonPointer_1.JsonPointer.join(a,["allOf",String(e),"properties",r]));s.properties[r]=i}}else s.properties[r]=Object.assign(Object.assign({},f[r]),{absolutePointer:JsonPointer_1.JsonPointer.join(a,["properties",r]),"x-refsStack":o})}}if(void 0!==c&&!m){const e="boolean"==typeof s.items?{}:Object.assign({},s.items),n="boolean"==typeof r.items?{}:Object.assign({},r.items);s.items=this.mergeAllOf({allOf:[e,n]},t+"/items",i)}void 0!==b&&(s.oneOf=b),void 0!==h&&(s.anyOf=h),void 0!==p&&(s.required=[...s.required||[],...p]),s=Object.assign(Object.assign(Object.assign({},s),{title:s.title||d,description:s.description||O,readOnly:void 0!==s.readOnly?s.readOnly:u,writeOnly:void 0!==s.writeOnly?s.writeOnly:y,"x-circular-ref":s["x-circular-ref"]||m}),v)}}return s}findDerived(e){const t={},r=this.definition.components&&this.definition.components.schemas||{};for(const i in r){const{resolved:n}=this.deref(r[i]);void 0!==n.allOf&&n.allOf.find((t=>void 0!==t.$ref&&e.indexOf(t.$ref)>-1))&&(t["#/components/schemas/"+i]=[n["x-discriminator-value"]||i])}return t}hoistOneOfs(e){if(void 0===e.allOf)return e;const t=e.allOf;for(let e=0;e<t.length;e++){const r=t[e];if(Array.isArray(r.oneOf)){const i=t.slice(0,e),n=t.slice(e+1);return{oneOf:r.oneOf.map((e=>({allOf:[...i,e,...n]})))}}}return e}}exports.OpenAPIParser=OpenAPIParser;
2
2
  //# sourceMappingURL=OpenAPIParser.js.map
@@ -0,0 +1,2 @@
1
+ import type { Languages as LanguagesType } from './types';
2
+ export declare const Languages: Record<string, LanguagesType | 'Payload'>;
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Languages=void 0,exports.Languages={curl:"curl",JavaScript:"JavaScript",NodeJs:"Node.js",Python:"Python",Java:"Java",CSharp:"C#",PHP:"PHP",Go:"Go",Ruby:"Ruby",R:"R",Payload:"Payload"};
2
+ //# sourceMappingURL=constants.js.map
@@ -1,7 +1,6 @@
1
1
  import type { OperationModel } from '../../models';
2
2
  import type * as HAR from './har';
3
3
  import type { Languages } from './types';
4
- import type { ServerVariables } from '../../types';
5
4
  export type CustomHAR = HAR.Request & {
6
5
  securityOAuth2ExtraCalls?: HAR.Request[];
7
6
  basicAuth?: {
@@ -11,16 +10,17 @@ export type CustomHAR = HAR.Request & {
11
10
  pathParameters?: {
12
11
  [key in string]: string;
13
12
  };
14
- serverVariables?: ServerVariables;
13
+ serverVariables?: Record<string, string>;
15
14
  allResponseCodes?: string[];
16
15
  };
17
- export declare function getCodeSample({ lang, operation, exampleName, pathParams, properties, options, }: {
16
+ export declare function getCodeSample({ lang, operation, exampleName, pathParams, properties, options, environment, }: {
18
17
  lang: Languages;
19
18
  operation: OperationModel;
20
19
  exampleName?: string;
21
20
  pathParams?: GenericObject;
22
21
  properties?: GenericObject;
23
22
  options?: GenericObject;
23
+ environment: Record<string, string>;
24
24
  }): string;
25
25
  export declare function isDefined<T>(arg?: T): arg is T;
26
26
  export declare function capitalizeFirst(str: string): string;
@@ -1,2 +1,2 @@
1
- "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&__createBinding(t,e,a);return __setModuleDefault(t,e),t},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.capitalizeFirst=exports.isDefined=exports.getCodeSample=void 0;const Sampler=__importStar(require("openapi-sampler")),deepmerge_1=__importDefault(require("deepmerge")),utils_1=require("../../utils"),utils_2=require("../utils"),constants_1=require("../../constants"),labels_1=require("../labels"),httpsnippet_1=require("./httpsnippet"),string_utility_1=__importDefault(require("./httpsnippet/helpers/string-utility")),mediaContent_1=require("../../models/mediaContent");function mapOperationToHAR(e,{exampleName:t="",skipOptionalParameters:a=!1,withOAuth2Call:r=!1,spec:i,generatedPayloadSamplesMaxDepth:s=8,pathParams:n={},properties:l={}},{activeServer:o,requestValues:u}){var p,c,d,m;const{securityHeaders:h,securityCookies:f,securityQueries:_,securityOAuth2ExtraCalls:v,basicAuth:y}=getSecurityData(null===(p=e.security)||void 0===p?void 0:p[0],r),g=(null===(c=null==e?void 0:e.requestBody)||void 0===c?void 0:c.content)&&(0,mediaContent_1.getActiveMediaType)(e.requestBody.content),O={skipNonRequired:a,skipReadOnly:!0,maxSampleDepth:s},S={path:null==u?void 0:u.path,cookie:null==u?void 0:u.cookie,header:null==u?void 0:u.header,query:null==u?void 0:u.query,body:null==u?void 0:u.body};let T=!1;const b=e.parameters.filter((e=>"header"===e.in)).filter((e=>!(a&&!e.required))).map((e=>{var t;return{name:e.name,value:(null===(t=S.header)||void 0===t?void 0:t[e.name])||(0,utils_1.getParameterValue)("header",e.name)||(0,utils_1.serializeParameterValue)(e,Sampler.sample(e.schema.rawSchema,O,i))}})).map((e=>((null==g?void 0:g.name)&&"content-type"===e.name.toLowerCase()&&(T=!0,e.value=g.name),e))).concat(h);!T&&(null==g?void 0:g.name)&&b.unshift({name:"Content-Type",value:null==g?void 0:g.name});const C=e.parameters.filter((e=>"cookie"===e.in)).filter((e=>!(a&&!e.required))).map((e=>utils_1.queryString.parse((0,utils_1.serializeParameterValue)(e,Sampler.sample(e.schema.rawSchema,O,i))))).reduce(((e,t)=>{var a;for(const[r,i]of Object.entries(t))e.push({name:r,value:String((null===(a=S.cookie)||void 0===a?void 0:a[r])||i)});return e}),[]).concat(f),D=e.parameters.filter((e=>"query"===e.in)).filter((e=>!(a&&!e.required))).map((e=>utils_1.queryString.parse((0,utils_1.serializeParameterValue)(e,Sampler.sample(e.schema.rawSchema,O,i))))).reduce(((e,t)=>{var a,r,i;for(const[s,n]of Object.entries(t))e.push({name:s,value:(0,utils_1.isArrayOfObjects)(null===(a=S.query)||void 0===a?void 0:a[s])&&JSON.stringify((0,utils_1.deleteEmptyArrayItem)(null===(r=S.query)||void 0===r?void 0:r[s]))||String((null===(i=S.query)||void 0===i?void 0:i[s])||n)});return e}),[]).concat(_),E=`${null===(d=o||e.activeServer)||void 0===d?void 0:d.url.replace(/\/$/,"")}/${e.path.replace(/^\//,"")}`,j=e.parameters.filter((e=>"path"===e.in)).reduce(((e,t)=>{var a;const{in:r,name:i}=t;return e[i]=(null===(a=S.path)||void 0===a?void 0:a[i])||n[i]||(0,utils_1.getParameterValue)(r,i),e}),{}),P=null===(m=null==g?void 0:g.examples)||void 0===m?void 0:m[t],A=(null==g?void 0:g.examples)||{},[q]=Object.values(A),w=S.body||(null==P?void 0:P.value)||(null==q?void 0:q.value)||(null==g?void 0:g.schema)&&Sampler.sample(null==g?void 0:g.schema.rawSchema,O,i),R=null==g?void 0:g.name.toLowerCase();let k="",M=[];switch((0,utils_2.normalizeMimeType)(R)){case constants_1.MediaTypes.JSON:k=JSON.stringify(getDataRequest(w,l));break;case constants_1.MediaTypes.URL_ENCODED:case constants_1.MediaTypes.MULTIPART:k=utils_1.queryString.stringify(getDataRequest(w,l)),M=objectToHarParams(getDataRequest(w,l));break;default:k=String(w||"")}const x=k?{mimeType:(null==g?void 0:g.name)||constants_1.MediaTypes.OCTET_STREAM,text:k,params:M}:void 0,H=e.responses.map((e=>e.code));return{method:e.httpVerb,url:E,httpVersion:"HTTP/1.1",cookies:C,headers:b,queryString:D,postData:x,headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:v,basicAuth:y,pathParameters:j,serverVariables:(null==o?void 0:o.variables)||e.activeServer.variables,allResponseCodes:H}}const defaultOptions={withImports:!0,withComments:!1},langToSnippetConfig={curl:{code:"shell",defaultTarget:"curl",defaultOptions:Object.assign(Object.assign({},defaultOptions),{short:!0})},JavaScript:{code:"javascript",defaultTarget:"fetch",defaultOptions:Object.assign(Object.assign({},defaultOptions),{withImports:!1})},"Node.js":{code:"node",defaultTarget:"fetch",defaultOptions:Object.assign({},defaultOptions)},Python:{code:"python",defaultTarget:"requests",defaultOptions:Object.assign({},defaultOptions)},"Java8+Apache":{code:"java8",defaultTarget:"apachehttp",defaultOptions:Object.assign({},defaultOptions)},Java:{code:"java",defaultTarget:"httpclient",defaultOptions:Object.assign({},defaultOptions)},"C#":{code:"csharp",defaultTarget:"httpclient",defaultOptions:Object.assign({},defaultOptions)},Go:{code:"go",defaultTarget:"http.DefaultClient",defaultOptions:Object.assign({},defaultOptions)},PHP:{code:"php",defaultTarget:"curl",defaultOptions:Object.assign({},defaultOptions)},Ruby:{code:"ruby",defaultTarget:"net::http",defaultOptions:Object.assign({},defaultOptions)},R:{code:"r",defaultTarget:"httr",defaultOptions:Object.assign({},defaultOptions)}};function getCodeSample({lang:e,operation:t,exampleName:a,pathParams:r,properties:i,options:s={}}){try{const{skipOptionalParameters:n,withOAuth2Call:l,spec:o,generatedPayloadSamplesMaxDepth:u,store:p}=s,c=mapOperationToHAR(t,{exampleName:a,pathParams:r,properties:i,skipOptionalParameters:n,withOAuth2Call:l,spec:o,generatedPayloadSamplesMaxDepth:u},p),d=new httpsnippet_1.HTTPSnippet(c);return langToSnippetConfig[e]?d.convert(langToSnippetConfig[e].code,langToSnippetConfig[e].defaultTarget,Object.assign(Object.assign({},langToSnippetConfig[e].defaultOptions),s)):"Language is not supported."}catch(e){return console.error(e),"Failed to generate code sample."}}function getSecurityData(e,t){var a,r,i,s;const n={securityHeaders:[],securityCookies:[],securityQueries:[],securityOAuth2ExtraCalls:[],basicAuth:void 0};for(const l of(null==e?void 0:e.schemes)||[]){const e=(0,utils_1.getSecurityDetails)(l.id);switch(l.type){case"openIdConnect":null===(a=n.securityHeaders)||void 0===a||a.push({name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"});break;case"oauth2":{const a=e.token?`${e.token.token_type||"Bearer"} ${e.token.access_token}`:"Bearer <YOUR_TOKEN_HERE>";l.flows.clientCredentials&&t?n.securityOAuth2ExtraCalls.push(getOAuth2ClientCredsCallHar(l.flows.clientCredentials,l.scopes,e)):l.flows.password&&t&&n.securityOAuth2ExtraCalls.push(getOAuth2PasswordCallHar(l.flows.password,l.scopes,e)),null===(r=n.securityHeaders)||void 0===r||r.push({name:"Authorization",value:a});break}case"apiKey":{const t=e.raw||"YOUR_API_KEY_HERE";"header"===l.in&&(null===(i=n.securityHeaders)||void 0===i||i.push({name:l.name,value:t})),"cookie"===l.in&&n.securityCookies.push({name:l.name,value:t}),"query"===l.in&&n.securityQueries.push({name:l.name,value:t});break}case"http":"basic"===l.scheme?n.basicAuth={username:e.username||`<${string_utility_1.default.toSnakeCase((0,labels_1.l)("tryItAuthBasicUsername"))}>`,password:e.password||`<${string_utility_1.default.toSnakeCase((0,labels_1.l)("tryItAuthBasicPassword"))}>`}:null===(s=n.securityHeaders)||void 0===s||s.push({name:"Authorization",value:`${capitalizeFirst(l.scheme||"bearer")} <YOUR_${l.bearerFormat||"TOKEN"}_HERE>`})}}return n}function getOAuth2PasswordCallHar(e,t,a){return{method:"POST",url:e.tokenUrl,httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:constants_1.MediaTypes.URL_ENCODED},{name:"Accept",value:constants_1.MediaTypes.JSON}],queryString:[],postData:{mimeType:constants_1.MediaTypes.URL_ENCODED,text:"",params:[{name:"grant_type",value:"password"},{name:"client_id",value:a.client_id||"YOUR_CLIENT_ID"},{name:"client_secret",value:a.client_secret||"YOUR_CLIENT_SECRET"},{name:"username",value:a.username||"<username>"},{name:"password",value:a.password||"<password>"},t.length?{name:"scope",value:t.join(" ")}:void 0].filter(isDefined)},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}}function getOAuth2ClientCredsCallHar(e,t,a){return{method:"POST",url:e.tokenUrl,httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:constants_1.MediaTypes.URL_ENCODED},{name:"Accept",value:constants_1.MediaTypes.JSON}],queryString:[],postData:{mimeType:constants_1.MediaTypes.URL_ENCODED,text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:a.client_id||"YOUR_CLIENT_ID"},{name:"client_secret",value:a.client_secret||"YOUR_CLIENT_SECRET"},t.length?{name:"scope",value:t.join(" ")}:void 0].filter(isDefined)},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}}function getDataRequest(e,t){if(e){if("object"==typeof e)return(0,deepmerge_1.default)(e,t,{arrayMerge:utils_2.arrayMergeStrategy});try{return(0,deepmerge_1.default)(JSON.parse(e),t,{arrayMerge:utils_2.arrayMergeStrategy})}catch(e){return!1}}return!1}function objectToHarParams(e){const t=[];for(const[a,r]of Object.entries(e))t.push({name:a,value:String(r)});return t}function isDefined(e){return void 0!==e}function capitalizeFirst(e){return e.charAt(0).toUpperCase()+e.slice(1)}exports.getCodeSample=getCodeSample,exports.isDefined=isDefined,exports.capitalizeFirst=capitalizeFirst;
1
+ "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a);var s=Object.getOwnPropertyDescriptor(t,a);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,s)}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&__createBinding(t,e,a);return __setModuleDefault(t,e),t},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.capitalizeFirst=exports.isDefined=exports.getCodeSample=void 0;const Sampler=__importStar(require("openapi-sampler")),deepmerge_1=__importDefault(require("deepmerge")),utils_1=require("../../utils"),utils_2=require("../utils"),constants_1=require("../../constants"),httpsnippet_1=require("./httpsnippet"),mediaContent_1=require("../../models/mediaContent");function mapOperationToHAR(e,{exampleName:t="",skipOptionalParameters:a=!1,withOAuth2Call:r=!1,spec:s,generatedPayloadSamplesMaxDepth:i=8,pathParams:n={},properties:o={}},{environment:l,requestValues:u}){var p,c,d;const m=l.server,f=e.servers.find((e=>e.url===m))||e.servers[0],{securityHeaders:h,securityCookies:_,securityQueries:O,securityOAuth2ExtraCalls:g,basicAuth:v}=getSecurityData(null===(p=e.security)||void 0===p?void 0:p[0],r,l),y=(null===(c=null==e?void 0:e.requestBody)||void 0===c?void 0:c.content)&&(0,mediaContent_1.getActiveMediaType)(e.requestBody.content),T={skipNonRequired:a,skipReadOnly:!0,maxSampleDepth:i},S=u;let C=!1;const b=e.parameters.filter((e=>"header"===e.in)).filter((e=>!(a&&!e.required))).map((e=>{var t;return{name:e.name,value:(null===(t=S.header)||void 0===t?void 0:t[e.name])||(0,utils_1.getParameterValue)("header",e.name)||(0,utils_1.serializeParameterValue)(e,Sampler.sample(e.schema.rawSchema,T,s))}})).map((e=>((null==y?void 0:y.name)&&"content-type"===e.name.toLowerCase()&&(C=!0,e.value=y.name),e))).concat(h);!C&&(null==y?void 0:y.name)&&b.unshift({name:"Content-Type",value:null==y?void 0:y.name});const D=e.parameters.filter((e=>"cookie"===e.in)).filter((e=>!(a&&!e.required))).map((e=>utils_1.queryString.parse((0,utils_1.serializeParameterValue)(e,Sampler.sample(e.schema.rawSchema,T,s))))).reduce(((e,t)=>{var a;for(const[r,s]of Object.entries(t))e.push({name:r,value:String((null===(a=S.cookie)||void 0===a?void 0:a[r])||s)});return e}),[]).concat(_),E=e.parameters.filter((e=>"query"===e.in)).filter((e=>!(a&&!e.required))).map((e=>utils_1.queryString.parse((0,utils_1.serializeParameterValue)(e,Sampler.sample(e.schema.rawSchema,T,s))))).reduce(((e,t)=>{var a,r,s;for(const[i,n]of Object.entries(t))e.push({name:i,value:(0,utils_1.isArrayOfObjects)(null===(a=S.query)||void 0===a?void 0:a[i])&&JSON.stringify((0,utils_1.deleteEmptyArrayItem)(null===(r=S.query)||void 0===r?void 0:r[i]))||String((null===(s=S.query)||void 0===s?void 0:s[i])||n)});return e}),[]).concat(O),j=`${null==f?void 0:f.url.replace(/\/$/,"")}/${e.path.replace(/^\//,"")}`,P=e.parameters.filter((e=>"path"===e.in)).reduce(((e,t)=>{var a;const{in:r,name:s}=t;return e[s]=(null===(a=S.path)||void 0===a?void 0:a[s])||n[s]||(0,utils_1.getParameterValue)(r,s),e}),{}),w=null===(d=null==y?void 0:y.examples)||void 0===d?void 0:d[t],A=(null==y?void 0:y.examples)||{},[q]=Object.values(A),R=(null==S?void 0:S.body)||(null==w?void 0:w.value)||(null==q?void 0:q.value)||(null==y?void 0:y.schema)&&Sampler.sample(null==y?void 0:y.schema.rawSchema,T,s),k=null==y?void 0:y.name.toLowerCase();let M="",x=[];switch((0,utils_2.normalizeMimeType)(k)){case constants_1.MediaTypes.JSON:case constants_1.MediaTypes.XML:M=JSON.stringify(getDataRequest(R,o));break;case constants_1.MediaTypes.URL_ENCODED:case constants_1.MediaTypes.MULTIPART:M=utils_1.queryString.stringify(getDataRequest(R,o)),x=objectToHarParams(getDataRequest(R,o));break;default:M=String(R||"")}const N=M?{mimeType:(null==y?void 0:y.name)||constants_1.MediaTypes.OCTET_STREAM,text:M,params:x}:void 0,H=e.responses.map((e=>e.code));return{method:e.httpVerb,url:j,httpVersion:"HTTP/1.1",cookies:D,headers:b,queryString:E,postData:N,headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:g,basicAuth:v,pathParameters:P,serverVariables:l,allResponseCodes:H}}const defaultOptions={withImports:!0,withComments:!1},langToSnippetConfig={curl:{code:"shell",defaultTarget:"curl",defaultOptions:Object.assign(Object.assign({},defaultOptions),{short:!0})},JavaScript:{code:"javascript",defaultTarget:"fetch",defaultOptions:Object.assign(Object.assign({},defaultOptions),{withImports:!1})},"Node.js":{code:"node",defaultTarget:"fetch",defaultOptions:Object.assign({},defaultOptions)},Python:{code:"python",defaultTarget:"requests",defaultOptions:Object.assign({},defaultOptions)},"Java8+Apache":{code:"java8",defaultTarget:"apachehttp",defaultOptions:Object.assign({},defaultOptions)},Java:{code:"java",defaultTarget:"httpclient",defaultOptions:Object.assign({},defaultOptions)},"C#":{code:"csharp",defaultTarget:"httpclient",defaultOptions:Object.assign({},defaultOptions)},"C#+Newtonsoft":{code:"csharpNewtonsoft",defaultTarget:"httpclient",defaultOptions:Object.assign({},defaultOptions)},Go:{code:"go",defaultTarget:"http.DefaultClient",defaultOptions:Object.assign({},defaultOptions)},PHP:{code:"php",defaultTarget:"curl",defaultOptions:Object.assign({},defaultOptions)},Ruby:{code:"ruby",defaultTarget:"net::http",defaultOptions:Object.assign({},defaultOptions)},R:{code:"r",defaultTarget:"httr",defaultOptions:Object.assign({},defaultOptions)}};function getCodeSample({lang:e,operation:t,exampleName:a,pathParams:r,properties:s,options:i={},environment:n}){try{const{skipOptionalParameters:o,withOAuth2Call:l,spec:u,generatedPayloadSamplesMaxDepth:p,store:c}=i,d=mapOperationToHAR(t,{exampleName:a,pathParams:r,properties:s,skipOptionalParameters:o,withOAuth2Call:l,spec:u,generatedPayloadSamplesMaxDepth:p},{environment:n,requestValues:c.requestValues}),m=new httpsnippet_1.HTTPSnippet(d);return langToSnippetConfig[e]?m.convert(langToSnippetConfig[e].code,langToSnippetConfig[e].defaultTarget,Object.assign(Object.assign({},langToSnippetConfig[e].defaultOptions),i)):"Language is not supported."}catch(e){return console.error(e),"Failed to generate code sample."}}function getSecurityData(e,t,a){var r,s,i,n;const o={securityHeaders:[],securityCookies:[],securityQueries:[],securityOAuth2ExtraCalls:[],basicAuth:void 0};for(const l of(null==e?void 0:e.schemes)||[]){const e=(0,utils_1.getSecurityDetails)(l.id,a);switch(l.type){case"openIdConnect":null===(r=o.securityHeaders)||void 0===r||r.push({name:"Authorization",value:e.token?`${e.token.token_type||"Bearer"} ${e.token.access_token}`:"Bearer <YOUR_TOKEN_HERE>"});break;case"oauth2":{const a=e.token?`${e.token.token_type||"Bearer"} ${e.token.access_token}`:"Bearer <YOUR_TOKEN_HERE>";l.flows.clientCredentials&&t?o.securityOAuth2ExtraCalls.push(getOAuth2ClientCredsCallHar(l.flows.clientCredentials,l.scopes,e)):l.flows.password&&t&&o.securityOAuth2ExtraCalls.push(getOAuth2PasswordCallHar(l.flows.password,l.scopes,e)),null===(s=o.securityHeaders)||void 0===s||s.push({name:"Authorization",value:a});break}case"apiKey":{const t=e.raw||"YOUR_API_KEY_HERE";"header"===l.in&&(null===(i=o.securityHeaders)||void 0===i||i.push({name:l.name,value:t})),"cookie"===l.in&&o.securityCookies.push({name:l.name,value:t}),"query"===l.in&&o.securityQueries.push({name:l.name,value:t});break}case"http":"basic"===l.scheme?o.basicAuth={username:String(e.username),password:String(e.password)}:null===(n=o.securityHeaders)||void 0===n||n.push({name:"Authorization",value:`${capitalizeFirst(l.scheme||"bearer")} <YOUR_${l.bearerFormat||"TOKEN"}_HERE>`})}}return o}function getOAuth2PasswordCallHar(e,t,a){return{method:"POST",url:e.tokenUrl,httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:constants_1.MediaTypes.URL_ENCODED},{name:"Accept",value:constants_1.MediaTypes.JSON}],queryString:[],postData:{mimeType:constants_1.MediaTypes.URL_ENCODED,text:"",params:[{name:"grant_type",value:"password"},{name:"client_id",value:a.client_id||"YOUR_CLIENT_ID"},{name:"client_secret",value:a.client_secret||"YOUR_CLIENT_SECRET"},{name:"username",value:a.username||"<username>"},{name:"password",value:a.password||"<password>"},t.length?{name:"scope",value:t.join(" ")}:void 0].filter(isDefined)},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}}function getOAuth2ClientCredsCallHar(e,t,a){return{method:"POST",url:e.tokenUrl,httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:constants_1.MediaTypes.URL_ENCODED},{name:"Accept",value:constants_1.MediaTypes.JSON}],queryString:[],postData:{mimeType:constants_1.MediaTypes.URL_ENCODED,text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:a.client_id||"YOUR_CLIENT_ID"},{name:"client_secret",value:a.client_secret||"YOUR_CLIENT_SECRET"},t.length?{name:"scope",value:t.join(" ")}:void 0].filter(isDefined)},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}}function getDataRequest(e,t){if(e){if("object"==typeof e)return(0,deepmerge_1.default)(e,t,{arrayMerge:utils_2.arrayMergeStrategy});try{return(0,deepmerge_1.default)(JSON.parse(e),t,{arrayMerge:utils_2.arrayMergeStrategy})}catch(e){return!1}}return!1}function objectToHarParams(e,t=""){const a=[];for(const[r,s]of Object.entries(e)){const e=t?`${t}[${r}]`:r;"object"==typeof s&&null!==s?a.push(...objectToHarParams(s,e)):a.push({name:e,value:String(s)})}return a}function isDefined(e){return void 0!==e}function capitalizeFirst(e){return e.charAt(0).toUpperCase()+e.slice(1)}exports.getCodeSample=getCodeSample,exports.isDefined=isDefined,exports.capitalizeFirst=capitalizeFirst;
2
2
  //# sourceMappingURL=generator.js.map
@@ -1,3 +1,4 @@
1
+ import type { OpenAPIServerVariable } from '../../../../types';
1
2
  import { VariableType } from './constants';
2
3
  /**
3
4
  * Helper object to format and aggragate lines of code.
@@ -15,7 +16,7 @@ export declare class CodeBuilder {
15
16
  private lang;
16
17
  langOptions: {
17
18
  stringLiteral: (t: string) => string;
18
- variableWrapperFn: (variableName: string, variableValue?: string) => string;
19
+ variableWrapperFn: (variableName: string, variableValue?: OpenAPIServerVariable | string) => string;
19
20
  variableDeclaration: (v: string) => string;
20
21
  joinSymbol: string;
21
22
  urlFieldName: string;
@@ -1,2 +1,2 @@
1
- "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,i)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&__createBinding(t,e,n);return __setModuleDefault(t,e),t},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CodeBuilder=void 0;const util=__importStar(require("util")),constants_1=require("./constants"),string_utility_1=__importDefault(require("./string-utility")),langToVarNameConvention={[constants_1.Lang.NODEJS]:constants_1.NamingVariableConventions.CAMEL_CASE,[constants_1.Lang.JAVASCRIPT]:constants_1.NamingVariableConventions.CAMEL_CASE,[constants_1.Lang.PYTHON]:constants_1.NamingVariableConventions.UNDER_SCORES,[constants_1.Lang.JAVA8]:constants_1.NamingVariableConventions.CAMEL_CASE,[constants_1.Lang.JAVA]:constants_1.NamingVariableConventions.CAMEL_CASE,[constants_1.Lang.CSHARP]:constants_1.NamingVariableConventions.PASCAL_CASE,[constants_1.Lang.CURL]:constants_1.NamingVariableConventions.CAMEL_CASE,[constants_1.Lang.GO]:constants_1.NamingVariableConventions.CAMEL_CASE,[constants_1.Lang.PHP]:constants_1.NamingVariableConventions.CAMEL_CASE,[constants_1.Lang.RUBY]:constants_1.NamingVariableConventions.UNDER_SCORES,[constants_1.Lang.R]:constants_1.NamingVariableConventions.UNDER_SCORES},langOptions={default:{joinSymbol:"",variableWrapperFn:e=>e,stringLiteral:e=>e,variableDeclaration:e=>e,urlFieldName:"url"},[constants_1.Lang.CSHARP]:{joinSymbol:" + ",stringLiteral:e=>`"${e}"`,variableDeclaration:e=>`var ${e} = "%s";`,urlFieldName:"fullUrl"},[constants_1.Lang.GO]:{joinSymbol:" + ",stringLiteral:e=>`"${e}"`,variableDeclaration:e=>`${e} := "%s";`},[constants_1.Lang.JAVA]:{joinSymbol:" + ",stringLiteral:e=>`"${e}"`,variableDeclaration:e=>`var ${e} = "%s";`,urlFieldName:"pathname"},[constants_1.Lang.JAVA8]:{joinSymbol:" + ",stringLiteral:e=>`"${e}"`,variableDeclaration:e=>`String ${e} = "%s";`,urlFieldName:"fullUrl"},[constants_1.Lang.JAVASCRIPT]:{variableWrapperFn:e=>"${"+e+"}",variableDeclaration:e=>`const ${e} = '%s';`},[constants_1.Lang.NODEJS]:{variableWrapperFn:e=>"${"+e+"}",variableDeclaration:e=>`const ${e} = '%s';`},[constants_1.Lang.PHP]:{joinSymbol:" . ",stringLiteral:e=>`"${e}"`,variableDeclaration:e=>`const ${e} = "%s";`},[constants_1.Lang.PYTHON]:{stringLiteral:e=>`"${e}"`,joinSymbol:" + ",variableDeclaration:e=>`${e} = "%s"`},[constants_1.Lang.RUBY]:{joinSymbol:" + ",stringLiteral:e=>`'${e}'`,variableDeclaration:e=>`${e} = '%s'`},[constants_1.Lang.CURL]:{variableWrapperFn:(e,t)=>t||`{${e}}`,urlFieldName:"fullUrl",rawName:!0},[constants_1.Lang.R]:{joinSymbol:" %&% ",variableDeclaration:e=>`${e} = "%s"`,urlFieldName:"fullUrl",stringLiteral:e=>`"${e}"`,variableWrapperFn:e=>`${e}`}},reservedVariableNames=["response","request","requests","data","url","payload","main","accessToken","resp","Program","client","postData","App","httpClient","params","pathname","host","body","fetch","query"];class CodeBuilder{constructor({indentation:e,lineJoin:t="\n",variablesPrefix:n="",capitalize:a=!1,lang:i=constants_1.Lang.CURL}){Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"indentation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"variablesPrefix",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lineJoin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"capitalize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lang",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"langOptions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=[],this.indentation=e,this.variablesPrefix=n,this.lineJoin=t||"\n",this.capitalize=a,this.lang=i,this.langOptions=Object.assign(Object.assign({},langOptions.default),langOptions[i])}buildLine(e,t){let n="",a=2;if("string"==typeof e)a=1,t=e,e=0;else if(null===e)return null;for(;e;)n+=this.indentation,e--;const i=Array.prototype.slice.call(arguments,a,arguments.length);return i.unshift(n+t),util.format.apply(this,i)}unshift(...e){return this.code.unshift(this.buildLine.apply(this,e)),this}push(...e){return this.code.push(this.buildLine.apply(this,e)),this}blank(){return this.code.push(null),this}join(){return this.code.join(this.lineJoin)}clean(){this.code.splice(1)}var(e,t=constants_1.VariableType.CUSTOM){if(t===constants_1.VariableType.PATH){let t=this.variablesPrefix+e;switch(reservedVariableNames.includes(t)&&(t=`${t}_path`),langToVarNameConvention[this.lang]){case constants_1.NamingVariableConventions.UNDER_SCORES:t=string_utility_1.default.toSnakeCase(t);break;case constants_1.NamingVariableConventions.PASCAL_CASE:t=string_utility_1.default.toPascalCase(t);break;case constants_1.NamingVariableConventions.CAMEL_CASE:default:t=string_utility_1.default.toCamelCase(t)}return t}return this.variablesPrefix?this.variablesPrefix+(this.capitalize?string_utility_1.default.toPascalCase(e):e):e}}exports.CodeBuilder=CodeBuilder;
1
+ "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(n,a,t,e){void 0===e&&(e=t);var i=Object.getOwnPropertyDescriptor(a,t);i&&!("get"in i?!a.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return a[t]}}),Object.defineProperty(n,e,i)}:function(n,a,t,e){void 0===e&&(e=t),n[e]=a[t]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(n,a){Object.defineProperty(n,"default",{enumerable:!0,value:a})}:function(n,a){n.default=a}),__importStar=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var a={};if(null!=n)for(var t in n)"default"!==t&&Object.prototype.hasOwnProperty.call(n,t)&&__createBinding(a,n,t);return __setModuleDefault(a,n),a},__importDefault=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CodeBuilder=void 0;const util=__importStar(require("util")),constants_1=require("./constants"),string_utility_1=__importDefault(require("./string-utility")),langToVarNameConvention={[constants_1.Lang.NODEJS]:constants_1.NamingVariableConventions.CAMEL_CASE,[constants_1.Lang.JAVASCRIPT]:constants_1.NamingVariableConventions.CAMEL_CASE,[constants_1.Lang.PYTHON]:constants_1.NamingVariableConventions.UNDER_SCORES,[constants_1.Lang.JAVA8]:constants_1.NamingVariableConventions.CAMEL_CASE,[constants_1.Lang.JAVA]:constants_1.NamingVariableConventions.CAMEL_CASE,[constants_1.Lang.CSHARP]:constants_1.NamingVariableConventions.PASCAL_CASE,[constants_1.Lang.CSHARPNEWTONSOFT]:constants_1.NamingVariableConventions.PASCAL_CASE,[constants_1.Lang.CURL]:constants_1.NamingVariableConventions.CAMEL_CASE,[constants_1.Lang.GO]:constants_1.NamingVariableConventions.CAMEL_CASE,[constants_1.Lang.PHP]:constants_1.NamingVariableConventions.CAMEL_CASE,[constants_1.Lang.RUBY]:constants_1.NamingVariableConventions.UNDER_SCORES,[constants_1.Lang.R]:constants_1.NamingVariableConventions.UNDER_SCORES},langOptions={default:{joinSymbol:"",variableWrapperFn:n=>n,stringLiteral:n=>n,variableDeclaration:n=>n,urlFieldName:"url"},[constants_1.Lang.CSHARP]:{joinSymbol:" + ",stringLiteral:n=>`"${n}"`,variableDeclaration:n=>`var ${n} = "%s";`,urlFieldName:"fullUrl"},[constants_1.Lang.CSHARPNEWTONSOFT]:{joinSymbol:" + ",stringLiteral:n=>`"${n}"`,variableDeclaration:n=>`var ${n} = "%s";`,urlFieldName:"fullUrl"},[constants_1.Lang.GO]:{joinSymbol:" + ",stringLiteral:n=>`"${n}"`,variableDeclaration:n=>`${n} := "%s";`},[constants_1.Lang.JAVA]:{joinSymbol:" + ",stringLiteral:n=>`"${n}"`,variableDeclaration:n=>`var ${n} = "%s";`,urlFieldName:"pathname"},[constants_1.Lang.JAVA8]:{joinSymbol:" + ",stringLiteral:n=>`"${n}"`,variableDeclaration:n=>`String ${n} = "%s";`,urlFieldName:"fullUrl"},[constants_1.Lang.JAVASCRIPT]:{variableWrapperFn:n=>"${"+n+"}",variableDeclaration:n=>`const ${n} = '%s';`},[constants_1.Lang.NODEJS]:{variableWrapperFn:n=>"${"+n+"}",variableDeclaration:n=>`const ${n} = '%s';`},[constants_1.Lang.PHP]:{joinSymbol:" . ",stringLiteral:n=>`"${n}"`,variableDeclaration:n=>`const ${n} = "%s";`},[constants_1.Lang.PYTHON]:{stringLiteral:n=>`"${n}"`,joinSymbol:" + ",variableDeclaration:n=>`${n} = "%s"`},[constants_1.Lang.RUBY]:{joinSymbol:" + ",stringLiteral:n=>`'${n}'`,variableDeclaration:n=>`${n} = '%s'`},[constants_1.Lang.CURL]:{variableWrapperFn:(n,a)=>a||`{${n}}`,urlFieldName:"fullUrl",rawName:!0},[constants_1.Lang.R]:{joinSymbol:" %&% ",variableDeclaration:n=>`${n} = "%s"`,urlFieldName:"fullUrl",stringLiteral:n=>`"${n}"`,variableWrapperFn:n=>`${n}`}},reservedVariableNames=["response","request","requests","data","url","payload","main","accessToken","resp","Program","client","postData","App","httpClient","params","pathname","host","body","fetch","query"];class CodeBuilder{constructor({indentation:n,lineJoin:a="\n",variablesPrefix:t="",capitalize:e=!1,lang:i=constants_1.Lang.CURL}){Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"indentation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"variablesPrefix",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lineJoin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"capitalize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lang",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"langOptions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=[],this.indentation=n,this.variablesPrefix=t,this.lineJoin=a||"\n",this.capitalize=e,this.lang=i,this.langOptions=Object.assign(Object.assign({},langOptions.default),langOptions[i])}buildLine(n,a){let t="",e=2;if("string"==typeof n)e=1,a=n,n=0;else if(null===n)return null;for(;n;)t+=this.indentation,n--;const i=Array.prototype.slice.call(arguments,e,arguments.length);return i.unshift(t+a),util.format.apply(this,i)}unshift(...n){return this.code.unshift(this.buildLine.apply(this,n)),this}push(...n){return this.code.push(this.buildLine.apply(this,n)),this}blank(){return this.code.push(null),this}join(){return this.code.join(this.lineJoin)}clean(){this.code.splice(1)}var(n,a=constants_1.VariableType.CUSTOM){if(a===constants_1.VariableType.PATH){let a=this.variablesPrefix+n;switch(reservedVariableNames.includes(a)&&(a=`${a}_path`),langToVarNameConvention[this.lang]){case constants_1.NamingVariableConventions.UNDER_SCORES:a=string_utility_1.default.toSnakeCase(a);break;case constants_1.NamingVariableConventions.PASCAL_CASE:a=string_utility_1.default.toPascalCase(a);break;case constants_1.NamingVariableConventions.CAMEL_CASE:default:a=string_utility_1.default.toCamelCase(a)}return a}return this.variablesPrefix?this.variablesPrefix+(this.capitalize?string_utility_1.default.toPascalCase(n):n):n}}exports.CodeBuilder=CodeBuilder;
2
2
  //# sourceMappingURL=code-builder.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.printUrlVariablesDeclarations=exports.buildUrlExpression=exports.parseUrlIntoOperands=exports.addIndentation=exports.getPreserveTransformer=void 0;const constants_1=require("./constants");function getPreserveTransformer({body:e,authorizationHeader:r}){return function(n,t,a){return e&&"body"===t&&"string"==typeof n.body?n.body:r&&"Authorization"===t&&"string"==typeof n.Authorization?n.Authorization:a}}function addIndentation(e,{level:r=0,indent:n=" ",firstLine:t=!0}={}){const a=n.repeat(r),s=e.replace(/(\r\n|\n|\r)/gm,`\n${a}`);return t?a.concat(s):s}function parseUrlIntoOperands(e,r){const n=Object.keys(r).map((r=>({name:r,idx:e.indexOf(`{${r}}`)}))).filter((({idx:e})=>e>-1)).sort(((e,r)=>e.idx-r.idx)),t=[];let a=0;for(const{name:r,idx:s}of n)s>a&&t.push({type:"string",value:e.substring(a,s)}),t.push({type:"variable",name:r}),a=s+r.length+2;return a<e.length&&t.push({type:"string",value:e.substring(a)}),t}function buildUrlExpression(e,r){const{joinSymbol:n,variableWrapperFn:t,stringLiteral:a,urlFieldName:s,rawName:i}=r.langOptions,{pathParameters:o={},serverVariables:l={}}=e,p=Object.assign(Object.assign({},o),l);return parseUrlIntoOperands(e[s]||"",p).map((e=>{if("variable"===e.type){const n=p[e.name],a=i?e.name:r.var(e.name,constants_1.VariableType.PATH);return t(a,n)}return a(e.value)})).join(n)}function printUrlVariablesDeclarations({pathParameters:e={},serverVariables:r={}},n,t){Object.entries(Object.assign(Object.assign({},e),r)).forEach((([e,r])=>{const a=r||`YOUR_${e}_PARAMETER`,s=n.var(e,constants_1.VariableType.PATH);void 0!==t?n.push(t,n.langOptions.variableDeclaration(s),a):n.push(n.langOptions.variableDeclaration(s),a)}))}exports.getPreserveTransformer=getPreserveTransformer,exports.addIndentation=addIndentation,exports.parseUrlIntoOperands=parseUrlIntoOperands,exports.buildUrlExpression=buildUrlExpression,exports.printUrlVariablesDeclarations=printUrlVariablesDeclarations;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.printUrlVariablesDeclarations=exports.buildUrlExpression=exports.parseUrlIntoOperands=exports.addIndentation=exports.getPreserveTransformer=void 0;const constants_1=require("./constants");function getPreserveTransformer({body:e,authorizationHeader:r}){return function(n,t,a){return e&&"body"===t&&"string"==typeof n.body?n.body:r&&"Authorization"===t&&"string"==typeof n.Authorization?n.Authorization:a}}function addIndentation(e,{level:r=0,indent:n=" ",firstLine:t=!0}={}){const a=n.repeat(r),s=e.replace(/(\r\n|\n|\r)/gm,`\n${a}`);return t?a.concat(s):s}function parseUrlIntoOperands(e,r){const n=Object.keys(r).map((r=>({name:r,idx:e.indexOf(`{${r}}`)}))).filter((({idx:e})=>e>-1)).sort(((e,r)=>e.idx-r.idx)),t=[];let a=0;for(const{name:r,idx:s}of n)s>a&&t.push({type:"string",value:e.substring(a,s)}),t.push({type:"variable",name:r}),a=s+r.length+2;return a<e.length&&t.push({type:"string",value:e.substring(a)}),t}function buildUrlExpression(e,r){const{joinSymbol:n,variableWrapperFn:t,stringLiteral:a,urlFieldName:s,rawName:i}=r.langOptions,{pathParameters:o={},serverVariables:l={}}=e,p=Object.assign(Object.assign({},o),l);return parseUrlIntoOperands(e[s]||"",p).map((e=>{if("variable"===e.type){const n=p[e.name],a=i?e.name:r.var(e.name,constants_1.VariableType.PATH);return t(a,n)}return a(e.value)})).join(n)}function printUrlVariablesDeclarations({pathParameters:e={},serverVariables:r={}},n,t){Object.entries(Object.assign(Object.assign({},e),r)).forEach((([e,r])=>{if("server"===e)return;const a=r||`YOUR_${e}_PARAMETER`,s=n.var(e,constants_1.VariableType.PATH);void 0!==t?n.push(t,n.langOptions.variableDeclaration(s),a):n.push(n.langOptions.variableDeclaration(s),a)}))}exports.getPreserveTransformer=getPreserveTransformer,exports.addIndentation=addIndentation,exports.parseUrlIntoOperands=parseUrlIntoOperands,exports.buildUrlExpression=buildUrlExpression,exports.printUrlVariablesDeclarations=printUrlVariablesDeclarations;
2
2
  //# sourceMappingURL=code-helpers.js.map
@@ -5,6 +5,7 @@ export declare enum Lang {
5
5
  JAVA8 = "Java8+Apache",
6
6
  JAVA = "Java",
7
7
  CSHARP = "C#",
8
+ CSHARPNEWTONSOFT = "C#+Newtonsoft",
8
9
  CURL = "curl",
9
10
  GO = "Go",
10
11
  PHP = "PHP",
@@ -1,2 +1,2 @@
1
- "use strict";var Lang,NamingVariableConventions,VariableType;Object.defineProperty(exports,"__esModule",{value:!0}),exports.VariableType=exports.NamingVariableConventions=exports.Lang=void 0,function(a){a.NODEJS="Node.js",a.JAVASCRIPT="javascript",a.PYTHON="Python",a.JAVA8="Java8+Apache",a.JAVA="Java",a.CSHARP="C#",a.CURL="curl",a.GO="Go",a.PHP="PHP",a.RUBY="Ruby",a.R="R"}(Lang=exports.Lang||(exports.Lang={})),function(a){a.UNDER_SCORES="under_scores",a.CAMEL_CASE="camelCase",a.PASCAL_CASE="PascalCase"}(NamingVariableConventions=exports.NamingVariableConventions||(exports.NamingVariableConventions={})),function(a){a.IMPORT="import",a.CUSTOM="custom",a.PATH="path"}(VariableType=exports.VariableType||(exports.VariableType={}));
1
+ "use strict";var Lang,NamingVariableConventions,VariableType;Object.defineProperty(exports,"__esModule",{value:!0}),exports.VariableType=exports.NamingVariableConventions=exports.Lang=void 0,function(a){a.NODEJS="Node.js",a.JAVASCRIPT="javascript",a.PYTHON="Python",a.JAVA8="Java8+Apache",a.JAVA="Java",a.CSHARP="C#",a.CSHARPNEWTONSOFT="C#+Newtonsoft",a.CURL="curl",a.GO="Go",a.PHP="PHP",a.RUBY="Ruby",a.R="R"}(Lang||(exports.Lang=Lang={})),function(a){a.UNDER_SCORES="under_scores",a.CAMEL_CASE="camelCase",a.PASCAL_CASE="PascalCase"}(NamingVariableConventions||(exports.NamingVariableConventions=NamingVariableConventions={})),function(a){a.IMPORT="import",a.CUSTOM="custom",a.PATH="path"}(VariableType||(exports.VariableType=VariableType={}));
2
2
  //# sourceMappingURL=constants.js.map
@@ -6,6 +6,7 @@ export declare const printUrlVariablesDeclarationsOutput: {
6
6
  'Java8+Apache': string;
7
7
  Java: string;
8
8
  'C#': string;
9
+ 'C#+Newtonsoft': string;
9
10
  curl: string;
10
11
  Go: string;
11
12
  PHP: string;
@@ -20,6 +21,7 @@ export declare const buildUrlExpressionData: {
20
21
  'Java8+Apache': string;
21
22
  Java: string;
22
23
  'C#': string;
24
+ 'C#+Newtonsoft': string;
23
25
  curl: string;
24
26
  Go: string;
25
27
  PHP: string;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.buildUrlExpressionData=exports.buildUrlExpressionCases=exports.printUrlVariablesDeclarationsOutput=exports.commonVariablesInput=void 0,exports.commonVariablesInput={pathParameters:{pathParam1:"pathParam1Value",pathParam2:"pathParam2Value"},serverVariables:{serverVariable1:"serverVariable1Value",serverVariable2:"serverVariable2Value"}},exports.printUrlVariablesDeclarationsOutput={"Node.js":"const variablesPrefixpathParam1 = 'pathParam1Value';\nconst variablesPrefixpathParam2 = 'pathParam2Value';\nconst variablesPrefixserverVariable1 = 'serverVariable1Value';\nconst variablesPrefixserverVariable2 = 'serverVariable2Value';",javascript:"const variablesPrefixpathParam1 = 'pathParam1Value';\nconst variablesPrefixpathParam2 = 'pathParam2Value';\nconst variablesPrefixserverVariable1 = 'serverVariable1Value';\nconst variablesPrefixserverVariable2 = 'serverVariable2Value';",Python:'variables_prefixpath_param_1 = "pathParam1Value"\nvariables_prefixpath_param_2 = "pathParam2Value"\nvariables_prefixserver_variable_1 = "serverVariable1Value"\nvariables_prefixserver_variable_2 = "serverVariable2Value"',"Java8+Apache":'String variablesPrefixpathParam1 = "pathParam1Value";\nString variablesPrefixpathParam2 = "pathParam2Value";\nString variablesPrefixserverVariable1 = "serverVariable1Value";\nString variablesPrefixserverVariable2 = "serverVariable2Value";',Java:'var variablesPrefixpathParam1 = "pathParam1Value";\nvar variablesPrefixpathParam2 = "pathParam2Value";\nvar variablesPrefixserverVariable1 = "serverVariable1Value";\nvar variablesPrefixserverVariable2 = "serverVariable2Value";',"C#":'var VariablesPrefixpathParam1 = "pathParam1Value";\nvar VariablesPrefixpathParam2 = "pathParam2Value";\nvar VariablesPrefixserverVariable1 = "serverVariable1Value";\nvar VariablesPrefixserverVariable2 = "serverVariable2Value";',curl:"variablesPrefixpathParam1 pathParam1Value\nvariablesPrefixpathParam2 pathParam2Value\nvariablesPrefixserverVariable1 serverVariable1Value\nvariablesPrefixserverVariable2 serverVariable2Value",Go:'variablesPrefixpathParam1 := "pathParam1Value";\nvariablesPrefixpathParam2 := "pathParam2Value";\nvariablesPrefixserverVariable1 := "serverVariable1Value";\nvariablesPrefixserverVariable2 := "serverVariable2Value";',PHP:'const variablesPrefixpathParam1 = "pathParam1Value";\nconst variablesPrefixpathParam2 = "pathParam2Value";\nconst variablesPrefixserverVariable1 = "serverVariable1Value";\nconst variablesPrefixserverVariable2 = "serverVariable2Value";',Ruby:"variables_prefixpath_param_1 = 'pathParam1Value'\nvariables_prefixpath_param_2 = 'pathParam2Value'\nvariables_prefixserver_variable_1 = 'serverVariable1Value'\nvariables_prefixserver_variable_2 = 'serverVariable2Value'",R:'variables_prefixpath_param_1 = "pathParam1Value"\nvariables_prefixpath_param_2 = "pathParam2Value"\nvariables_prefixserver_variable_1 = "serverVariable1Value"\nvariables_prefixserver_variable_2 = "serverVariable2Value"'},exports.buildUrlExpressionCases={},exports.buildUrlExpressionData={"Node.js":"http://acme.com/${variablesPrefixpathParam1}/${variablesPrefixpathParam2}/${variablesPrefixserverVariable1}/${variablesPrefixserverVariable2}",javascript:"http://acme.com/${variablesPrefixpathParam1}/${variablesPrefixpathParam2}/${variablesPrefixserverVariable1}/${variablesPrefixserverVariable2}",Python:'"http://acme.com/" + variables_prefixpath_param_1 + "/" + variables_prefixpath_param_2 + "/" + variables_prefixserver_variable_1 + "/" + variables_prefixserver_variable_2',"Java8+Apache":'"http://acme.com/" + variablesPrefixpathParam1 + "/" + variablesPrefixpathParam2 + "/" + variablesPrefixserverVariable1 + "/" + variablesPrefixserverVariable2',Java:'"http://acme.com/" + variablesPrefixpathParam1 + "/" + variablesPrefixpathParam2 + "/" + variablesPrefixserverVariable1 + "/" + variablesPrefixserverVariable2',"C#":'"http://acme.com/" + VariablesPrefixpathParam1 + "/" + VariablesPrefixpathParam2 + "/" + VariablesPrefixserverVariable1 + "/" + VariablesPrefixserverVariable2',curl:"http://acme.com/pathParam1Value/pathParam2Value/serverVariable1Value/serverVariable2Value",Go:'"http://acme.com/" + variablesPrefixpathParam1 + "/" + variablesPrefixpathParam2 + "/" + variablesPrefixserverVariable1 + "/" + variablesPrefixserverVariable2',PHP:'"http://acme.com/" . variablesPrefixpathParam1 . "/" . variablesPrefixpathParam2 . "/" . variablesPrefixserverVariable1 . "/" . variablesPrefixserverVariable2',Ruby:"'http://acme.com/' + variables_prefixpath_param_1 + '/' + variables_prefixpath_param_2 + '/' + variables_prefixserver_variable_1 + '/' + variables_prefixserver_variable_2",R:'"http://acme.com/" %&% variables_prefixpath_param_1 %&% "/" %&% variables_prefixpath_param_2 %&% "/" %&% variables_prefixserver_variable_1 %&% "/" %&% variables_prefixserver_variable_2'};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.buildUrlExpressionData=exports.buildUrlExpressionCases=exports.printUrlVariablesDeclarationsOutput=exports.commonVariablesInput=void 0,exports.commonVariablesInput={pathParameters:{pathParam1:"pathParam1Value",pathParam2:"pathParam2Value"},serverVariables:{serverVariable1:"serverVariable1Value",serverVariable2:"serverVariable2Value"}},exports.printUrlVariablesDeclarationsOutput={"Node.js":"const variablesPrefixpathParam1 = 'pathParam1Value';\nconst variablesPrefixpathParam2 = 'pathParam2Value';\nconst variablesPrefixserverVariable1 = 'serverVariable1Value';\nconst variablesPrefixserverVariable2 = 'serverVariable2Value';",javascript:"const variablesPrefixpathParam1 = 'pathParam1Value';\nconst variablesPrefixpathParam2 = 'pathParam2Value';\nconst variablesPrefixserverVariable1 = 'serverVariable1Value';\nconst variablesPrefixserverVariable2 = 'serverVariable2Value';",Python:'variables_prefixpath_param_1 = "pathParam1Value"\nvariables_prefixpath_param_2 = "pathParam2Value"\nvariables_prefixserver_variable_1 = "serverVariable1Value"\nvariables_prefixserver_variable_2 = "serverVariable2Value"',"Java8+Apache":'String variablesPrefixpathParam1 = "pathParam1Value";\nString variablesPrefixpathParam2 = "pathParam2Value";\nString variablesPrefixserverVariable1 = "serverVariable1Value";\nString variablesPrefixserverVariable2 = "serverVariable2Value";',Java:'var variablesPrefixpathParam1 = "pathParam1Value";\nvar variablesPrefixpathParam2 = "pathParam2Value";\nvar variablesPrefixserverVariable1 = "serverVariable1Value";\nvar variablesPrefixserverVariable2 = "serverVariable2Value";',"C#":'var VariablesPrefixpathParam1 = "pathParam1Value";\nvar VariablesPrefixpathParam2 = "pathParam2Value";\nvar VariablesPrefixserverVariable1 = "serverVariable1Value";\nvar VariablesPrefixserverVariable2 = "serverVariable2Value";',"C#+Newtonsoft":'var VariablesPrefixpathParam1 = "pathParam1Value";\nvar VariablesPrefixpathParam2 = "pathParam2Value";\nvar VariablesPrefixserverVariable1 = "serverVariable1Value";\nvar VariablesPrefixserverVariable2 = "serverVariable2Value";',curl:"variablesPrefixpathParam1 pathParam1Value\nvariablesPrefixpathParam2 pathParam2Value\nvariablesPrefixserverVariable1 serverVariable1Value\nvariablesPrefixserverVariable2 serverVariable2Value",Go:'variablesPrefixpathParam1 := "pathParam1Value";\nvariablesPrefixpathParam2 := "pathParam2Value";\nvariablesPrefixserverVariable1 := "serverVariable1Value";\nvariablesPrefixserverVariable2 := "serverVariable2Value";',PHP:'const variablesPrefixpathParam1 = "pathParam1Value";\nconst variablesPrefixpathParam2 = "pathParam2Value";\nconst variablesPrefixserverVariable1 = "serverVariable1Value";\nconst variablesPrefixserverVariable2 = "serverVariable2Value";',Ruby:"variables_prefixpath_param_1 = 'pathParam1Value'\nvariables_prefixpath_param_2 = 'pathParam2Value'\nvariables_prefixserver_variable_1 = 'serverVariable1Value'\nvariables_prefixserver_variable_2 = 'serverVariable2Value'",R:'variables_prefixpath_param_1 = "pathParam1Value"\nvariables_prefixpath_param_2 = "pathParam2Value"\nvariables_prefixserver_variable_1 = "serverVariable1Value"\nvariables_prefixserver_variable_2 = "serverVariable2Value"'},exports.buildUrlExpressionCases={},exports.buildUrlExpressionData={"Node.js":"http://acme.com/${variablesPrefixpathParam1}/${variablesPrefixpathParam2}/${variablesPrefixserverVariable1}/${variablesPrefixserverVariable2}",javascript:"http://acme.com/${variablesPrefixpathParam1}/${variablesPrefixpathParam2}/${variablesPrefixserverVariable1}/${variablesPrefixserverVariable2}",Python:'"http://acme.com/" + variables_prefixpath_param_1 + "/" + variables_prefixpath_param_2 + "/" + variables_prefixserver_variable_1 + "/" + variables_prefixserver_variable_2',"Java8+Apache":'"http://acme.com/" + variablesPrefixpathParam1 + "/" + variablesPrefixpathParam2 + "/" + variablesPrefixserverVariable1 + "/" + variablesPrefixserverVariable2',Java:'"http://acme.com/" + variablesPrefixpathParam1 + "/" + variablesPrefixpathParam2 + "/" + variablesPrefixserverVariable1 + "/" + variablesPrefixserverVariable2',"C#":'"http://acme.com/" + VariablesPrefixpathParam1 + "/" + VariablesPrefixpathParam2 + "/" + VariablesPrefixserverVariable1 + "/" + VariablesPrefixserverVariable2',"C#+Newtonsoft":'"http://acme.com/" + VariablesPrefixpathParam1 + "/" + VariablesPrefixpathParam2 + "/" + VariablesPrefixserverVariable1 + "/" + VariablesPrefixserverVariable2',curl:"http://acme.com/pathParam1Value/pathParam2Value/serverVariable1Value/serverVariable2Value",Go:'"http://acme.com/" + variablesPrefixpathParam1 + "/" + variablesPrefixpathParam2 + "/" + variablesPrefixserverVariable1 + "/" + variablesPrefixserverVariable2',PHP:'"http://acme.com/" . variablesPrefixpathParam1 . "/" . variablesPrefixpathParam2 . "/" . variablesPrefixserverVariable1 . "/" . variablesPrefixserverVariable2',Ruby:"'http://acme.com/' + variables_prefixpath_param_1 + '/' + variables_prefixpath_param_2 + '/' + variables_prefixserver_variable_1 + '/' + variables_prefixserver_variable_2",R:'"http://acme.com/" %&% variables_prefixpath_param_1 %&% "/" %&% variables_prefixpath_param_2 %&% "/" %&% variables_prefixserver_variable_1 %&% "/" %&% variables_prefixserver_variable_2'};
2
2
  //# sourceMappingURL=code-helpers-mock.js.map
@@ -19,7 +19,7 @@ export interface SnippetRequest extends CustomHAR {
19
19
  };
20
20
  uriObj?: any;
21
21
  pathParameters: KeyValueAreStrings;
22
- serverVariables: KeyValueAreStrings;
22
+ serverVariables: Record<string, string>;
23
23
  fullUrl?: string;
24
24
  }
25
25
  export declare class HTTPSnippet {