@redocly/openapi-docs 3.11.0-rc.1 → 3.11.0

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 (1441) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/redocly-openapi-docs.min.js +11829 -10841
  3. package/lib/components/ApiInfo/ApiInfo.d.ts +1 -1
  4. package/lib/components/ApiInfo/ApiInfo.js +1 -2
  5. package/lib/components/ApiInfo/Metadata.d.ts +1 -1
  6. package/lib/components/ApiInfo/Metadata.js +1 -2
  7. package/lib/components/ApiInfo/index.d.ts +1 -1
  8. package/lib/components/ApiInfo/index.js +1 -2
  9. package/lib/components/ApiInfo/styled.d.ts +4 -4
  10. package/lib/components/ApiInfo/styled.js +8 -9
  11. package/lib/components/CallbackSamples/CallbackSamples.js +4 -5
  12. package/lib/components/CallbackSamples/index.d.ts +1 -1
  13. package/lib/components/CallbackSamples/index.js +1 -2
  14. package/lib/components/Callbacks/CallbackDetails.d.ts +1 -1
  15. package/lib/components/Callbacks/CallbackDetails.js +3 -4
  16. package/lib/components/Callbacks/CallbackOperation.d.ts +1 -1
  17. package/lib/components/Callbacks/CallbackOperation.js +3 -4
  18. package/lib/components/Callbacks/CallbackSummary.d.ts +1 -1
  19. package/lib/components/Callbacks/CallbackSummary.js +3 -4
  20. package/lib/components/Callbacks/CallbacksList.d.ts +1 -1
  21. package/lib/components/Callbacks/CallbacksList.js +1 -2
  22. package/lib/components/Callbacks/index.d.ts +3 -3
  23. package/lib/components/Callbacks/index.js +1 -2
  24. package/lib/components/Callbacks/styled.d.ts +1 -3
  25. package/lib/components/Callbacks/styled.js +2 -3
  26. package/lib/components/Content/Content.d.ts +1 -1
  27. package/lib/components/Content/Content.js +1 -2
  28. package/lib/components/Content/index.d.ts +1 -1
  29. package/lib/components/Content/index.js +1 -2
  30. package/lib/components/Content/useAutoScroll.js +1 -2
  31. package/lib/components/ContentItem/ContentItem.d.ts +1 -1
  32. package/lib/components/ContentItem/ContentItem.js +1 -2
  33. package/lib/components/ContentItem/index.d.ts +1 -1
  34. package/lib/components/ContentItem/index.js +1 -2
  35. package/lib/components/ContentItem/useIsExpanded.d.ts +1 -1
  36. package/lib/components/ContentItem/useIsExpanded.js +1 -2
  37. package/lib/components/ContentItems/ContentItems.d.ts +1 -1
  38. package/lib/components/ContentItems/ContentItems.js +1 -2
  39. package/lib/components/ContentItems/Items.js +1 -2
  40. package/lib/components/ContentItems/VirtualList.d.ts +1 -1
  41. package/lib/components/ContentItems/VirtualList.js +1 -2
  42. package/lib/components/ContentItems/helpers.d.ts +3 -3
  43. package/lib/components/ContentItems/helpers.js +1 -2
  44. package/lib/components/ContentItems/index.d.ts +1 -1
  45. package/lib/components/ContentItems/index.js +1 -2
  46. package/lib/components/ContentItems/useScrollOnRender.d.ts +1 -1
  47. package/lib/components/ContentItems/useScrollOnRender.js +1 -2
  48. package/lib/components/Discriminator/Discriminator.d.ts +1 -1
  49. package/lib/components/Discriminator/Discriminator.js +2 -3
  50. package/lib/components/Discriminator/index.d.ts +1 -1
  51. package/lib/components/Discriminator/index.js +1 -2
  52. package/lib/components/Download/DownloadSpecification.js +4 -5
  53. package/lib/components/Download/index.d.ts +1 -1
  54. package/lib/components/Download/index.js +1 -2
  55. package/lib/components/Download/types.js +0 -2
  56. package/lib/components/Download/useDownloadInfo.d.ts +1 -1
  57. package/lib/components/Download/useDownloadInfo.js +1 -2
  58. package/lib/components/ErrorBoundary/ErrorBoundary.js +2 -3
  59. package/lib/components/ErrorBoundary/index.d.ts +1 -1
  60. package/lib/components/ErrorBoundary/index.js +1 -2
  61. package/lib/components/ExpandAllButton/ExpandAllButton.js +2 -3
  62. package/lib/components/ExpandAllButton/index.d.ts +1 -1
  63. package/lib/components/ExpandAllButton/index.js +1 -2
  64. package/lib/components/ExternalDocumentation/ExternalDocumentation.d.ts +1 -1
  65. package/lib/components/ExternalDocumentation/ExternalDocumentation.js +4 -5
  66. package/lib/components/ExternalDocumentation/index.d.ts +1 -1
  67. package/lib/components/ExternalDocumentation/index.js +1 -2
  68. package/lib/components/Language/LanguageDropdown.d.ts +1 -1
  69. package/lib/components/Language/LanguageDropdown.js +1 -2
  70. package/lib/components/Language/LanguageItem.d.ts +1 -1
  71. package/lib/components/Language/LanguageItem.js +1 -2
  72. package/lib/components/Language/LanguageList.d.ts +1 -1
  73. package/lib/components/Language/LanguageList.js +1 -2
  74. package/lib/components/Language/_tests_/LanguageDropdown.test.js +1 -2
  75. package/lib/components/Language/constants.js +1 -2
  76. package/lib/components/Language/index.d.ts +3 -3
  77. package/lib/components/Language/index.js +1 -2
  78. package/lib/components/Language/styled.d.ts +8 -31
  79. package/lib/components/Language/styled.js +11 -12
  80. package/lib/components/Markdown/Markdown.d.ts +1 -1
  81. package/lib/components/Markdown/Markdown.js +1 -2
  82. package/lib/components/Markdown/index.d.ts +2 -2
  83. package/lib/components/Markdown/index.js +1 -2
  84. package/lib/components/Markdown/types.js +0 -2
  85. package/lib/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +2 -2
  86. package/lib/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -2
  87. package/lib/components/MediaTypeSwitch/index.d.ts +1 -1
  88. package/lib/components/MediaTypeSwitch/index.js +1 -2
  89. package/lib/components/OperationItem/Description.d.ts +1 -1
  90. package/lib/components/OperationItem/Description.js +1 -2
  91. package/lib/components/OperationItem/OperationItem.d.ts +1 -3
  92. package/lib/components/OperationItem/OperationItem.js +5 -6
  93. package/lib/components/OperationItem/_tests_/OperationItem.test.js +1 -2
  94. package/lib/components/OperationItem/_tests_/__mocks__/mock-intersection-observer.js +1 -2
  95. package/lib/components/OperationItem/index.d.ts +2 -2
  96. package/lib/components/OperationItem/index.js +1 -2
  97. package/lib/components/OperationItem/types.d.ts +1 -1
  98. package/lib/components/OperationItem/types.js +0 -2
  99. package/lib/components/Overlay.d.ts +1 -1
  100. package/lib/components/Overlay.js +3 -4
  101. package/lib/components/Overview/Overview.d.ts +1 -1
  102. package/lib/components/Overview/Overview.js +1 -2
  103. package/lib/components/Overview/index.d.ts +1 -1
  104. package/lib/components/Overview/index.js +1 -2
  105. package/lib/components/PageFooter/PageFooter.js +1 -2
  106. package/lib/components/PageFooter/index.d.ts +1 -1
  107. package/lib/components/PageFooter/index.js +1 -2
  108. package/lib/components/Panel/ResponsePanel.d.ts +2 -3
  109. package/lib/components/Panel/ResponsePanel.js +6 -7
  110. package/lib/components/Panel/Trigger.d.ts +1 -1
  111. package/lib/components/Panel/Trigger.js +2 -3
  112. package/lib/components/Panel/index.d.ts +2 -2
  113. package/lib/components/Panel/index.js +1 -2
  114. package/lib/components/PanelItem/PanelItem.js +1 -2
  115. package/lib/components/PanelItem/index.d.ts +2 -2
  116. package/lib/components/PanelItem/index.js +1 -2
  117. package/lib/components/PanelItem/styled.d.ts +8 -16
  118. package/lib/components/PanelItem/styled.js +9 -10
  119. package/lib/components/PayloadSamples/Example.d.ts +1 -1
  120. package/lib/components/PayloadSamples/Example.js +1 -2
  121. package/lib/components/PayloadSamples/ExampleValue.d.ts +1 -1
  122. package/lib/components/PayloadSamples/ExampleValue.js +1 -2
  123. package/lib/components/PayloadSamples/MediaTypeSamples.d.ts +1 -1
  124. package/lib/components/PayloadSamples/MediaTypeSamples.js +2 -3
  125. package/lib/components/PayloadSamples/PayloadSamples.d.ts +1 -1
  126. package/lib/components/PayloadSamples/PayloadSamples.js +1 -2
  127. package/lib/components/PayloadSamples/index.d.ts +6 -5
  128. package/lib/components/PayloadSamples/index.js +1 -2
  129. package/lib/components/PayloadSamples/styled.d.ts +3 -4
  130. package/lib/components/PayloadSamples/styled.js +4 -5
  131. package/lib/components/PayloadSamples/types.d.ts +3 -3
  132. package/lib/components/PayloadSamples/types.js +0 -2
  133. package/lib/components/PropertyDetails/DescriptionEnums.d.ts +1 -1
  134. package/lib/components/PropertyDetails/DescriptionEnums.js +3 -4
  135. package/lib/components/PropertyDetails/EnumValues.d.ts +1 -1
  136. package/lib/components/PropertyDetails/EnumValues.js +1 -2
  137. package/lib/components/PropertyDetails/Examples.d.ts +1 -1
  138. package/lib/components/PropertyDetails/Examples.js +1 -2
  139. package/lib/components/PropertyDetails/Extensions.d.ts +1 -1
  140. package/lib/components/PropertyDetails/Extensions.js +2 -3
  141. package/lib/components/PropertyDetails/FieldDetail.js +2 -3
  142. package/lib/components/PropertyDetails/FieldDetails.d.ts +1 -1
  143. package/lib/components/PropertyDetails/FieldDetails.js +6 -7
  144. package/lib/components/PropertyDetails/Pattern.js +1 -2
  145. package/lib/components/PropertyDetails/PlusCircleIcon.js +4 -5
  146. package/lib/components/PropertyDetails/PropertyDetails.d.ts +1 -1
  147. package/lib/components/PropertyDetails/PropertyDetails.js +2 -3
  148. package/lib/components/PropertyDetails/SchemaTypeInfo.js +2 -3
  149. package/lib/components/PropertyDetails/SimpleEnums.d.ts +1 -1
  150. package/lib/components/PropertyDetails/SimpleEnums.js +2 -3
  151. package/lib/components/PropertyDetails/cycleColorsByLevel.js +1 -2
  152. package/lib/components/PropertyDetails/index.d.ts +3 -3
  153. package/lib/components/PropertyDetails/index.js +1 -2
  154. package/lib/components/PropertyDetails/styled.d.ts +6 -6
  155. package/lib/components/PropertyDetails/styled.js +7 -8
  156. package/lib/components/PropertyDetails/types.d.ts +3 -2
  157. package/lib/components/PropertyDetails/types.js +0 -2
  158. package/lib/components/RedoclyOpenAPIDocs/Providers.d.ts +2 -3
  159. package/lib/components/RedoclyOpenAPIDocs/Providers.js +1 -2
  160. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.d.ts +2 -3
  161. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +1 -2
  162. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsStandalone.d.ts +8 -0
  163. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsStandalone.js +1 -0
  164. package/lib/components/RedoclyOpenAPIDocs/index.d.ts +4 -4
  165. package/lib/components/RedoclyOpenAPIDocs/index.js +1 -2
  166. package/lib/components/RedoclyOpenAPIDocs/styled.d.ts +1 -1
  167. package/lib/components/RedoclyOpenAPIDocs/styled.js +2 -3
  168. package/lib/components/RedoclyOpenAPIDocs/types.d.ts +3 -3
  169. package/lib/components/RedoclyOpenAPIDocs/types.js +0 -2
  170. package/lib/components/RedoclyOpenAPIDocs/utils.d.ts +1 -4
  171. package/lib/components/RedoclyOpenAPIDocs/utils.js +1 -2
  172. package/lib/components/RenderHook/RenderHook.d.ts +2 -2
  173. package/lib/components/RenderHook/RenderHook.js +1 -2
  174. package/lib/components/RenderHook/index.d.ts +1 -1
  175. package/lib/components/RenderHook/index.js +1 -2
  176. package/lib/components/Replay/EmbeddedReplay.d.ts +1 -1
  177. package/lib/components/Replay/EmbeddedReplay.js +3 -4
  178. package/lib/components/Replay/Replay.d.ts +1 -1
  179. package/lib/components/Replay/Replay.js +1 -2
  180. package/lib/components/Replay/index.d.ts +2 -2
  181. package/lib/components/Replay/index.js +1 -2
  182. package/lib/components/Replay/utils.d.ts +4 -4
  183. package/lib/components/Replay/utils.js +1 -2
  184. package/lib/components/Request/RequestDetails.d.ts +1 -1
  185. package/lib/components/Request/RequestDetails.js +2 -3
  186. package/lib/components/Request/types.js +0 -2
  187. package/lib/components/RequestParameters/Body.d.ts +1 -1
  188. package/lib/components/RequestParameters/Body.js +1 -2
  189. package/lib/components/RequestParameters/ParametersGroup.d.ts +1 -1
  190. package/lib/components/RequestParameters/ParametersGroup.js +4 -5
  191. package/lib/components/RequestParameters/RequestParameters.d.ts +1 -1
  192. package/lib/components/RequestParameters/RequestParameters.js +1 -2
  193. package/lib/components/RequestParameters/index.d.ts +3 -2
  194. package/lib/components/RequestParameters/index.js +1 -2
  195. package/lib/components/RequestSamples/CodeSample.d.ts +3 -3
  196. package/lib/components/RequestSamples/CodeSample.js +2 -3
  197. package/lib/components/RequestSamples/Example.d.ts +1 -1
  198. package/lib/components/RequestSamples/Example.js +1 -2
  199. package/lib/components/RequestSamples/RequestSamples.d.ts +2 -2
  200. package/lib/components/RequestSamples/RequestSamples.js +5 -6
  201. package/lib/components/RequestSamples/index.d.ts +2 -2
  202. package/lib/components/RequestSamples/index.js +1 -2
  203. package/lib/components/RequestSamples/useCodeSamples.d.ts +3 -3
  204. package/lib/components/RequestSamples/useCodeSamples.js +1 -2
  205. package/lib/components/ResponseSamples/ResponseSamples.d.ts +2 -2
  206. package/lib/components/ResponseSamples/ResponseSamples.js +1 -2
  207. package/lib/components/ResponseSamples/Summary.js +1 -2
  208. package/lib/components/ResponseSamples/index.d.ts +1 -1
  209. package/lib/components/ResponseSamples/index.js +1 -2
  210. package/lib/components/Responses/OperationResponseList.d.ts +3 -3
  211. package/lib/components/Responses/OperationResponseList.js +2 -3
  212. package/lib/components/Responses/ResponseDetails.d.ts +1 -1
  213. package/lib/components/Responses/ResponseDetails.js +1 -2
  214. package/lib/components/Responses/ResponseHeaders.d.ts +1 -1
  215. package/lib/components/Responses/ResponseHeaders.js +1 -2
  216. package/lib/components/Responses/index.d.ts +5 -3
  217. package/lib/components/Responses/index.js +1 -2
  218. package/lib/components/Responses/styled.d.ts +5 -5
  219. package/lib/components/Responses/styled.js +6 -7
  220. package/lib/components/Responses/types.d.ts +1 -1
  221. package/lib/components/Responses/types.js +0 -2
  222. package/lib/components/RightPanel/RightPanel.d.ts +1 -1
  223. package/lib/components/RightPanel/RightPanel.js +1 -2
  224. package/lib/components/RightPanel/index.d.ts +1 -1
  225. package/lib/components/RightPanel/index.js +1 -2
  226. package/lib/components/Samples/ExampleSwitch.d.ts +1 -1
  227. package/lib/components/Samples/ExampleSwitch.js +1 -2
  228. package/lib/components/Samples/index.d.ts +2 -2
  229. package/lib/components/Samples/index.js +1 -2
  230. package/lib/components/Samples/use-example-key.d.ts +1 -1
  231. package/lib/components/Samples/use-example-key.js +1 -2
  232. package/lib/components/Schema/ArraySchema.d.ts +1 -1
  233. package/lib/components/Schema/ArraySchema.js +1 -2
  234. package/lib/components/Schema/ObjectSchema.d.ts +1 -1
  235. package/lib/components/Schema/ObjectSchema.js +1 -2
  236. package/lib/components/Schema/OneOfSchema.d.ts +11 -2
  237. package/lib/components/Schema/OneOfSchema.js +3 -4
  238. package/lib/components/Schema/RecursiveSchema.d.ts +1 -1
  239. package/lib/components/Schema/RecursiveSchema.js +1 -2
  240. package/lib/components/Schema/Schema.d.ts +1 -1
  241. package/lib/components/Schema/Schema.js +2 -3
  242. package/lib/components/Schema/SubSchema.js +1 -2
  243. package/lib/components/Schema/helpers.d.ts +1 -1
  244. package/lib/components/Schema/helpers.js +1 -2
  245. package/lib/components/Schema/index.d.ts +5 -5
  246. package/lib/components/Schema/index.js +1 -2
  247. package/lib/components/Schema/types.d.ts +7 -1
  248. package/lib/components/Schema/types.js +0 -2
  249. package/lib/components/Schema/useOneOfLocationIdx.d.ts +1 -1
  250. package/lib/components/Schema/useOneOfLocationIdx.js +1 -2
  251. package/lib/components/SchemaDefinition/SchemaDefinition.js +2 -3
  252. package/lib/components/SchemaDefinition/index.d.ts +1 -1
  253. package/lib/components/SchemaDefinition/index.js +1 -2
  254. package/lib/components/SectionContent/SectionContent.d.ts +3 -10
  255. package/lib/components/SectionContent/SectionContent.js +6 -7
  256. package/lib/components/SectionContent/index.d.ts +1 -1
  257. package/lib/components/SectionContent/index.js +1 -2
  258. package/lib/components/SectionItem/SectionItem.d.ts +1 -1
  259. package/lib/components/SectionItem/SectionItem.js +1 -2
  260. package/lib/components/SectionItem/index.d.ts +1 -1
  261. package/lib/components/SectionItem/index.js +1 -2
  262. package/lib/components/Security/Divider.js +2 -3
  263. package/lib/components/Security/OAuthFlow.d.ts +1 -1
  264. package/lib/components/Security/OAuthFlow.js +1 -2
  265. package/lib/components/Security/OAuthScopes.d.ts +2 -2
  266. package/lib/components/Security/OAuthScopes.js +9 -10
  267. package/lib/components/Security/Security.d.ts +1 -1
  268. package/lib/components/Security/Security.js +1 -2
  269. package/lib/components/Security/SecurityButton.d.ts +1 -1
  270. package/lib/components/Security/SecurityButton.js +7 -8
  271. package/lib/components/Security/SecurityFlow.d.ts +1 -1
  272. package/lib/components/Security/SecurityFlow.js +4 -5
  273. package/lib/components/Security/SecurityModal.d.ts +1 -1
  274. package/lib/components/Security/SecurityModal.js +5 -6
  275. package/lib/components/Security/SecuritySchemeItem.js +4 -5
  276. package/lib/components/Security/helper.d.ts +1 -1
  277. package/lib/components/Security/helper.js +1 -2
  278. package/lib/components/Security/index.d.ts +10 -1
  279. package/lib/components/Security/index.js +1 -2
  280. package/lib/components/Security/styled.d.ts +2 -2
  281. package/lib/components/Security/styled.js +3 -4
  282. package/lib/components/SelectOrLabel/SelectOrLabel.d.ts +1 -1
  283. package/lib/components/SelectOrLabel/SelectOrLabel.js +2 -3
  284. package/lib/components/SelectOrLabel/index.d.ts +1 -1
  285. package/lib/components/SelectOrLabel/index.js +1 -2
  286. package/lib/components/ServerList/ServerList.d.ts +1 -1
  287. package/lib/components/ServerList/ServerList.js +10 -11
  288. package/lib/components/ServerList/index.d.ts +1 -1
  289. package/lib/components/ServerList/index.js +1 -2
  290. package/lib/components/ServerList/types.d.ts +1 -1
  291. package/lib/components/ServerList/types.js +0 -2
  292. package/lib/components/ServerListDropdown/ServerListDropdown.d.ts +1 -1
  293. package/lib/components/ServerListDropdown/ServerListDropdown.js +1 -2
  294. package/lib/components/ServerListDropdown/index.d.ts +1 -1
  295. package/lib/components/ServerListDropdown/index.js +1 -2
  296. package/lib/components/ServerListDropdown/styled.d.ts +4 -5
  297. package/lib/components/ServerListDropdown/styled.js +6 -7
  298. package/lib/components/SideMenu/SideMenu.d.ts +2 -2
  299. package/lib/components/SideMenu/SideMenu.js +2 -3
  300. package/lib/components/SideMenu/hooks/useMenuItems.d.ts +2 -2
  301. package/lib/components/SideMenu/hooks/useMenuItems.js +1 -2
  302. package/lib/components/SideMenu/index.d.ts +1 -1
  303. package/lib/components/SideMenu/index.js +1 -2
  304. package/lib/components/SideMenu/types.d.ts +1 -1
  305. package/lib/components/SideMenu/types.js +0 -2
  306. package/lib/components/StickySidebar/SidebarActions.js +2 -3
  307. package/lib/components/StickySidebar/StickyResponsiveSidebar.js +3 -4
  308. package/lib/components/StickySidebar/index.d.ts +1 -1
  309. package/lib/components/StickySidebar/index.js +1 -2
  310. package/lib/components/Tabs/Tabs.d.ts +1 -1
  311. package/lib/components/Tabs/Tabs.js +5 -6
  312. package/lib/components/Tabs/index.d.ts +2 -2
  313. package/lib/components/Tabs/index.js +1 -2
  314. package/lib/components/Tabs/useTabsState.d.ts +1 -1
  315. package/lib/components/Tabs/useTabsState.js +1 -2
  316. package/lib/components/TagItem/OperationNavigationItems.d.ts +1 -1
  317. package/lib/components/TagItem/OperationNavigationItems.js +4 -5
  318. package/lib/components/TagItem/OperationsNavigation.d.ts +1 -1
  319. package/lib/components/TagItem/OperationsNavigation.js +2 -3
  320. package/lib/components/TagItem/TagItem.d.ts +1 -1
  321. package/lib/components/TagItem/TagItem.js +7 -9
  322. package/lib/components/TagItem/index.d.ts +1 -1
  323. package/lib/components/TagItem/index.js +1 -2
  324. package/lib/components/TagItem/styled.d.ts +1 -1
  325. package/lib/components/TagItem/styled.js +2 -3
  326. package/lib/components/TagItem/types.d.ts +1 -1
  327. package/lib/components/TagItem/types.js +0 -2
  328. package/lib/components/ViewNested/ViewNested.js +7 -8
  329. package/lib/components/ViewNested/index.d.ts +1 -1
  330. package/lib/components/ViewNested/index.js +1 -2
  331. package/lib/components/common/Badges.d.ts +3 -7
  332. package/lib/components/common/Badges.js +4 -5
  333. package/lib/components/common/BodyContent/BodyContent.d.ts +1 -1
  334. package/lib/components/common/BodyContent/BodyContent.js +4 -5
  335. package/lib/components/common/BodyContent/index.d.ts +1 -1
  336. package/lib/components/common/BodyContent/index.js +1 -2
  337. package/lib/components/common/ClearButton/ClearButton.d.ts +1 -1
  338. package/lib/components/common/ClearButton/ClearButton.js +1 -2
  339. package/lib/components/common/ClearButton/index.d.ts +2 -2
  340. package/lib/components/common/ClearButton/index.js +1 -2
  341. package/lib/components/common/ClearButton/styled.d.ts +1 -1
  342. package/lib/components/common/ClearButton/styled.js +2 -3
  343. package/lib/components/common/ClearButton/types.js +0 -2
  344. package/lib/components/common/CodeBlockPanel.d.ts +1 -2
  345. package/lib/components/common/CodeBlockPanel.js +3 -4
  346. package/lib/components/common/ConstraintsView.js +2 -3
  347. package/lib/components/common/Dropdown/Dropdown.js +4 -5
  348. package/lib/components/common/Dropdown/index.d.ts +2 -2
  349. package/lib/components/common/Dropdown/index.js +1 -2
  350. package/lib/components/common/ExpandableExample/ExpandableExample.js +3 -4
  351. package/lib/components/common/ExpandableExample/index.d.ts +1 -1
  352. package/lib/components/common/ExpandableExample/index.js +1 -2
  353. package/lib/components/common/Extensions.js +2 -3
  354. package/lib/components/common/Fields/fields-layout.d.ts +8 -14
  355. package/lib/components/common/Fields/fields-layout.js +57 -50
  356. package/lib/components/common/Fields/fields.d.ts +17 -38
  357. package/lib/components/common/Fields/fields.js +17 -18
  358. package/lib/components/common/Fields/index.d.ts +2 -2
  359. package/lib/components/common/Fields/index.js +1 -2
  360. package/lib/components/common/LinkToField.d.ts +2 -5
  361. package/lib/components/common/LinkToField.js +6 -7
  362. package/lib/components/common/OperationItemTitle.d.ts +2 -2
  363. package/lib/components/common/OperationItemTitle.js +5 -6
  364. package/lib/components/common/SchemaSelection/SchemaSelection.d.ts +1 -1
  365. package/lib/components/common/SchemaSelection/SchemaSelection.js +1 -2
  366. package/lib/components/common/SchemaSelection/index.d.ts +1 -1
  367. package/lib/components/common/SchemaSelection/index.js +1 -2
  368. package/lib/components/common/Select/Select.d.ts +1 -1
  369. package/lib/components/common/Select/Select.js +1 -2
  370. package/lib/components/common/Select/index.d.ts +2 -2
  371. package/lib/components/common/Select/index.js +1 -2
  372. package/lib/components/common/Select/styled.d.ts +4 -22
  373. package/lib/components/common/Select/styled.js +12 -13
  374. package/lib/components/common/Select/types.js +0 -2
  375. package/lib/components/common/Skeleton/LanguageListSkeleton.js +6 -7
  376. package/lib/components/common/Skeleton/Skeleton.d.ts +1 -3
  377. package/lib/components/common/Skeleton/Skeleton.js +5 -6
  378. package/lib/components/common/Skeleton/index.d.ts +2 -1
  379. package/lib/components/common/Skeleton/index.js +1 -2
  380. package/lib/components/common/headers.d.ts +1 -1
  381. package/lib/components/common/headers.js +2 -3
  382. package/lib/components/common/index.d.ts +14 -14
  383. package/lib/components/common/index.js +1 -2
  384. package/lib/components/common/linkify.d.ts +1 -1
  385. package/lib/components/common/linkify.js +4 -5
  386. package/lib/components/common/mixins.js +2 -3
  387. package/lib/components/common/panels.d.ts +4 -17
  388. package/lib/components/common/panels.js +27 -28
  389. package/lib/components/common/schema.d.ts +4 -7
  390. package/lib/components/common/schema.js +8 -9
  391. package/lib/components/common/styled.d.ts +6 -7
  392. package/lib/components/common/styled.js +7 -8
  393. package/lib/components/index.d.ts +23 -23
  394. package/lib/components/index.js +1 -2
  395. package/lib/components/pluggable/RedocExample.d.ts +1 -1
  396. package/lib/components/pluggable/RedocExample.js +1 -2
  397. package/lib/components/pluggable/RedocSchema.d.ts +4 -2
  398. package/lib/components/pluggable/RedocSchema.js +1 -2
  399. package/lib/components/pluggable/index.d.ts +2 -2
  400. package/lib/components/pluggable/index.js +1 -2
  401. package/lib/components/pluggable/styled.components.d.ts +3 -7
  402. package/lib/components/pluggable/styled.components.js +4 -5
  403. package/lib/constants.js +1 -2
  404. package/lib/empty.d.ts +5 -2
  405. package/lib/empty.js +1 -2
  406. package/lib/events/codeSampleCopy.d.ts +1 -1
  407. package/lib/events/codeSampleCopy.js +1 -2
  408. package/lib/events/creator.d.ts +1 -1
  409. package/lib/events/creator.js +1 -2
  410. package/lib/events/index.d.ts +8 -8
  411. package/lib/events/index.js +1 -2
  412. package/lib/events/languageSwitch.d.ts +1 -1
  413. package/lib/events/languageSwitch.js +1 -2
  414. package/lib/events/panelToggle.d.ts +1 -1
  415. package/lib/events/panelToggle.js +1 -2
  416. package/lib/events/serverSwitch.d.ts +1 -1
  417. package/lib/events/serverSwitch.js +1 -2
  418. package/lib/events/tryItOpen.d.ts +1 -1
  419. package/lib/events/tryItOpen.js +1 -2
  420. package/lib/events/tryItSent.d.ts +1 -1
  421. package/lib/events/tryItSent.js +1 -2
  422. package/lib/events/types.d.ts +1 -1
  423. package/lib/events/types.js +1 -2
  424. package/lib/hoc/types.d.ts +3 -3
  425. package/lib/hoc/types.js +0 -2
  426. package/lib/hoc/utils.js +1 -2
  427. package/lib/hoc/withRouter.d.ts +1 -1
  428. package/lib/hoc/withRouter.js +1 -2
  429. package/lib/hoc/withStore.d.ts +1 -1
  430. package/lib/hoc/withStore.js +1 -2
  431. package/lib/hooks/index.d.ts +8 -8
  432. package/lib/hooks/index.js +1 -2
  433. package/lib/hooks/useActivateExample.d.ts +1 -1
  434. package/lib/hooks/useActivateExample.js +1 -2
  435. package/lib/hooks/useActiveWithFallback.js +1 -2
  436. package/lib/hooks/useContentItems.d.ts +2 -2
  437. package/lib/hooks/useContentItems.js +1 -2
  438. package/lib/hooks/useLicense.d.ts +1 -1
  439. package/lib/hooks/useLicense.js +1 -2
  440. package/lib/hooks/usePerformanceMetrics.js +1 -2
  441. package/lib/hooks/useRouter.d.ts +1 -1
  442. package/lib/hooks/useRouter.js +1 -2
  443. package/lib/hooks/useTelemetry.js +1 -2
  444. package/lib/hooks/useTranslate.js +1 -2
  445. package/lib/hooks/useUppercase2LowercaseRedirect.js +1 -2
  446. package/lib/icons/CSharpIcon/CSharpIcon.d.ts +1 -3
  447. package/lib/icons/CSharpIcon/CSharpIcon.js +1 -2
  448. package/lib/icons/CSharpIcon/index.d.ts +1 -1
  449. package/lib/icons/CSharpIcon/index.js +1 -2
  450. package/lib/icons/CurlIcon/CurlIcon.d.ts +1 -3
  451. package/lib/icons/CurlIcon/CurlIcon.js +2 -3
  452. package/lib/icons/CurlIcon/index.d.ts +1 -1
  453. package/lib/icons/CurlIcon/index.js +1 -2
  454. package/lib/icons/GOIcon/GOIcon.d.ts +1 -3
  455. package/lib/icons/GOIcon/GOIcon.js +1 -2
  456. package/lib/icons/GOIcon/index.d.ts +1 -1
  457. package/lib/icons/GOIcon/index.js +1 -2
  458. package/lib/icons/JavaIcon/JavaIcon.d.ts +1 -3
  459. package/lib/icons/JavaIcon/JavaIcon.js +1 -2
  460. package/lib/icons/JavaIcon/index.d.ts +1 -1
  461. package/lib/icons/JavaIcon/index.js +1 -2
  462. package/lib/icons/JavaScriptIcon/JavaScriptIcon.d.ts +1 -3
  463. package/lib/icons/JavaScriptIcon/JavaScriptIcon.js +1 -2
  464. package/lib/icons/JavaScriptIcon/index.d.ts +1 -1
  465. package/lib/icons/JavaScriptIcon/index.js +1 -2
  466. package/lib/icons/NodeJSIcon/NodeJSIcon.d.ts +1 -3
  467. package/lib/icons/NodeJSIcon/NodeJSIcon.js +1 -2
  468. package/lib/icons/NodeJSIcon/index.d.ts +1 -1
  469. package/lib/icons/NodeJSIcon/index.js +1 -2
  470. package/lib/icons/PHPIcon/PHPIcon.d.ts +1 -3
  471. package/lib/icons/PHPIcon/PHPIcon.js +1 -2
  472. package/lib/icons/PHPIcon/index.d.ts +1 -1
  473. package/lib/icons/PHPIcon/index.js +1 -2
  474. package/lib/icons/PayloadIcon/PayloadIcon.d.ts +1 -3
  475. package/lib/icons/PayloadIcon/PayloadIcon.js +1 -2
  476. package/lib/icons/PayloadIcon/index.d.ts +1 -1
  477. package/lib/icons/PayloadIcon/index.js +1 -2
  478. package/lib/icons/PythonIcon/PythonIcon.d.ts +1 -3
  479. package/lib/icons/PythonIcon/PythonIcon.js +1 -2
  480. package/lib/icons/PythonIcon/index.d.ts +1 -1
  481. package/lib/icons/PythonIcon/index.js +1 -2
  482. package/lib/icons/RIcon/RIcon.d.ts +1 -3
  483. package/lib/icons/RIcon/RIcon.js +1 -2
  484. package/lib/icons/RIcon/index.d.ts +1 -1
  485. package/lib/icons/RIcon/index.js +1 -2
  486. package/lib/icons/RubyIcon/RubyIcon.d.ts +1 -3
  487. package/lib/icons/RubyIcon/RubyIcon.js +1 -2
  488. package/lib/icons/RubyIcon/index.d.ts +1 -1
  489. package/lib/icons/RubyIcon/index.js +1 -2
  490. package/lib/index.d.ts +52 -43
  491. package/lib/index.js +1 -2
  492. package/lib/jotai/app.d.ts +2 -2
  493. package/lib/jotai/app.js +1 -2
  494. package/lib/jotai/operation.js +1 -2
  495. package/lib/jotai/replay.d.ts +1 -1
  496. package/lib/jotai/replay.js +1 -2
  497. package/lib/jotai/store.d.ts +1 -1
  498. package/lib/jotai/store.js +1 -2
  499. package/lib/jotai/use-write-atom.js +1 -2
  500. package/lib/models/callback.d.ts +3 -3
  501. package/lib/models/callback.js +1 -2
  502. package/lib/models/code-sample-options.d.ts +2 -2
  503. package/lib/models/code-sample-options.js +0 -2
  504. package/lib/models/example.d.ts +3 -3
  505. package/lib/models/example.js +1 -2
  506. package/lib/models/field.d.ts +3 -3
  507. package/lib/models/field.js +1 -2
  508. package/lib/models/group.d.ts +3 -3
  509. package/lib/models/group.js +1 -2
  510. package/lib/models/index.d.ts +15 -15
  511. package/lib/models/index.js +1 -2
  512. package/lib/models/mediaContent.d.ts +2 -2
  513. package/lib/models/mediaContent.js +1 -2
  514. package/lib/models/mediaType.d.ts +3 -3
  515. package/lib/models/mediaType.js +1 -2
  516. package/lib/models/operation.d.ts +3 -3
  517. package/lib/models/operation.js +1 -2
  518. package/lib/models/request.d.ts +3 -3
  519. package/lib/models/request.js +1 -2
  520. package/lib/models/response.d.ts +3 -3
  521. package/lib/models/response.js +1 -2
  522. package/lib/models/schema.d.ts +3 -3
  523. package/lib/models/schema.js +2 -2
  524. package/lib/models/security.d.ts +3 -3
  525. package/lib/models/security.js +1 -2
  526. package/lib/models/tab.js +0 -2
  527. package/lib/models/types.d.ts +4 -4
  528. package/lib/models/types.js +0 -2
  529. package/lib/services/OpenAPIParser.d.ts +3 -3
  530. package/lib/services/OpenAPIParser.js +1 -2
  531. package/lib/services/check.js +1 -2
  532. package/lib/services/code-samples/constants.d.ts +1 -1
  533. package/lib/services/code-samples/constants.js +1 -2
  534. package/lib/services/code-samples/generator.d.ts +3 -3
  535. package/lib/services/code-samples/generator.js +1 -2
  536. package/lib/services/code-samples/httpsnippet/helpers/code-builder.d.ts +2 -2
  537. package/lib/services/code-samples/httpsnippet/helpers/code-builder.js +3 -2
  538. package/lib/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +2 -2
  539. package/lib/services/code-samples/httpsnippet/helpers/code-helpers.js +2 -2
  540. package/lib/services/code-samples/httpsnippet/helpers/constants.js +1 -2
  541. package/lib/services/code-samples/httpsnippet/helpers/lodash-int.js +1 -2
  542. package/lib/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.js +37 -2
  543. package/lib/services/code-samples/httpsnippet/helpers/reducer.js +1 -2
  544. package/lib/services/code-samples/httpsnippet/helpers/shell.js +1 -2
  545. package/lib/services/code-samples/httpsnippet/helpers/string-utility.js +1 -2
  546. package/lib/services/code-samples/httpsnippet/index.d.ts +12 -6
  547. package/lib/services/code-samples/httpsnippet/index.js +1 -2
  548. package/lib/services/code-samples/httpsnippet/targets/__mocks__/mock.js +146 -2
  549. package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.d.ts +2 -2
  550. package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.js +2 -2
  551. package/lib/services/code-samples/httpsnippet/targets/csharp/index.d.ts +1 -1
  552. package/lib/services/code-samples/httpsnippet/targets/csharp/index.js +1 -2
  553. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.d.ts +2 -2
  554. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.js +2 -2
  555. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.d.ts +1 -1
  556. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.js +1 -2
  557. package/lib/services/code-samples/httpsnippet/targets/go/index.d.ts +1 -1
  558. package/lib/services/code-samples/httpsnippet/targets/go/index.js +1 -2
  559. package/lib/services/code-samples/httpsnippet/targets/go/native.d.ts +2 -2
  560. package/lib/services/code-samples/httpsnippet/targets/go/native.js +3 -2
  561. package/lib/services/code-samples/httpsnippet/targets/index.d.ts +12 -12
  562. package/lib/services/code-samples/httpsnippet/targets/index.js +1 -2
  563. package/lib/services/code-samples/httpsnippet/targets/java/httpclient.d.ts +2 -2
  564. package/lib/services/code-samples/httpsnippet/targets/java/httpclient.js +3 -2
  565. package/lib/services/code-samples/httpsnippet/targets/java/index.d.ts +1 -1
  566. package/lib/services/code-samples/httpsnippet/targets/java/index.js +1 -2
  567. package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.d.ts +2 -2
  568. package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.js +2 -2
  569. package/lib/services/code-samples/httpsnippet/targets/java8/index.d.ts +1 -1
  570. package/lib/services/code-samples/httpsnippet/targets/java8/index.js +1 -2
  571. package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.d.ts +2 -2
  572. package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.js +1 -2
  573. package/lib/services/code-samples/httpsnippet/targets/javascript/index.d.ts +1 -1
  574. package/lib/services/code-samples/httpsnippet/targets/javascript/index.js +1 -2
  575. package/lib/services/code-samples/httpsnippet/targets/node/fetch.d.ts +2 -2
  576. package/lib/services/code-samples/httpsnippet/targets/node/fetch.js +1 -2
  577. package/lib/services/code-samples/httpsnippet/targets/node/index.d.ts +1 -1
  578. package/lib/services/code-samples/httpsnippet/targets/node/index.js +1 -2
  579. package/lib/services/code-samples/httpsnippet/targets/php/curl.d.ts +2 -2
  580. package/lib/services/code-samples/httpsnippet/targets/php/curl.js +5 -2
  581. package/lib/services/code-samples/httpsnippet/targets/php/index.d.ts +1 -1
  582. package/lib/services/code-samples/httpsnippet/targets/php/index.js +1 -2
  583. package/lib/services/code-samples/httpsnippet/targets/php/types.js +0 -2
  584. package/lib/services/code-samples/httpsnippet/targets/php/utils.d.ts +1 -1
  585. package/lib/services/code-samples/httpsnippet/targets/php/utils.js +5 -2
  586. package/lib/services/code-samples/httpsnippet/targets/python/index.d.ts +1 -1
  587. package/lib/services/code-samples/httpsnippet/targets/python/index.js +1 -2
  588. package/lib/services/code-samples/httpsnippet/targets/python/requests.d.ts +2 -2
  589. package/lib/services/code-samples/httpsnippet/targets/python/requests.js +6 -2
  590. package/lib/services/code-samples/httpsnippet/targets/r/httr.d.ts +2 -2
  591. package/lib/services/code-samples/httpsnippet/targets/r/httr.js +1 -2
  592. package/lib/services/code-samples/httpsnippet/targets/r/index.d.ts +1 -1
  593. package/lib/services/code-samples/httpsnippet/targets/r/index.js +1 -2
  594. package/lib/services/code-samples/httpsnippet/targets/r/utils.d.ts +3 -3
  595. package/lib/services/code-samples/httpsnippet/targets/r/utils.js +6 -2
  596. package/lib/services/code-samples/httpsnippet/targets/ruby/index.d.ts +1 -1
  597. package/lib/services/code-samples/httpsnippet/targets/ruby/index.js +1 -2
  598. package/lib/services/code-samples/httpsnippet/targets/ruby/native.d.ts +2 -2
  599. package/lib/services/code-samples/httpsnippet/targets/ruby/native.js +1 -2
  600. package/lib/services/code-samples/httpsnippet/targets/shell/curl.d.ts +2 -2
  601. package/lib/services/code-samples/httpsnippet/targets/shell/curl.js +6 -2
  602. package/lib/services/code-samples/httpsnippet/targets/shell/index.d.ts +1 -1
  603. package/lib/services/code-samples/httpsnippet/targets/shell/index.js +1 -2
  604. package/lib/services/code-samples/index.d.ts +2 -2
  605. package/lib/services/code-samples/index.js +1 -2
  606. package/lib/services/code-samples/types.js +0 -2
  607. package/lib/services/config-options/helpers.js +1 -2
  608. package/lib/services/config-options/index.d.ts +2 -2
  609. package/lib/services/config-options/index.js +1 -2
  610. package/lib/services/config-options/normalizeOptions.d.ts +1 -1
  611. package/lib/services/config-options/normalizeOptions.js +1 -2
  612. package/lib/services/config-options/types.d.ts +5 -5
  613. package/lib/services/config-options/types.js +0 -2
  614. package/lib/services/history/helpers.d.ts +1 -1
  615. package/lib/services/history/helpers.js +1 -2
  616. package/lib/services/history/index.d.ts +1 -1
  617. package/lib/services/history/index.js +1 -2
  618. package/lib/services/index.d.ts +8 -8
  619. package/lib/services/index.js +1 -2
  620. package/lib/services/menu/builder.d.ts +3 -3
  621. package/lib/services/menu/builder.js +1 -2
  622. package/lib/services/menu/index.d.ts +1 -1
  623. package/lib/services/menu/index.js +1 -2
  624. package/lib/services/menu/markdown.d.ts +1 -1
  625. package/lib/services/menu/markdown.js +1 -2
  626. package/lib/services/menu/operation.d.ts +2 -2
  627. package/lib/services/menu/operation.js +1 -2
  628. package/lib/services/menu/tags.d.ts +5 -5
  629. package/lib/services/menu/tags.js +1 -2
  630. package/lib/services/types.d.ts +1 -4
  631. package/lib/services/types.js +0 -2
  632. package/lib/services/utils.js +1 -2
  633. package/lib/standalone.d.ts +4 -19
  634. package/lib/standalone.js +1 -2
  635. package/lib/styled-components.d.ts +1 -0
  636. package/lib/styled-components.js +1 -0
  637. package/lib/types/app.js +0 -2
  638. package/lib/types/index.d.ts +3 -3
  639. package/lib/types/index.js +1 -2
  640. package/lib/types/open-api.js +0 -2
  641. package/lib/types/security.js +0 -2
  642. package/lib/utils/JsonPointer.js +1 -2
  643. package/lib/utils/areArraysEqual.js +1 -2
  644. package/lib/utils/argValuesHelpers.js +1 -2
  645. package/lib/utils/compose.js +1 -2
  646. package/lib/utils/configure-helpers.d.ts +1 -1
  647. package/lib/utils/configure-helpers.js +1 -2
  648. package/lib/utils/convertSwagger2OpenAPI.d.ts +2 -0
  649. package/lib/utils/convertSwagger2OpenAPI.js +1 -0
  650. package/lib/utils/cookies.js +1 -2
  651. package/lib/utils/debounce.js +1 -2
  652. package/lib/utils/debug.js +1 -2
  653. package/lib/utils/dom.js +1 -2
  654. package/lib/utils/environments.d.ts +1 -1
  655. package/lib/utils/environments.js +1 -2
  656. package/lib/utils/helpers.js +12 -2
  657. package/lib/utils/index.d.ts +23 -23
  658. package/lib/utils/index.js +1 -2
  659. package/lib/utils/isMobile.js +1 -2
  660. package/lib/utils/loadAndBundleSpec.d.ts +2 -3
  661. package/lib/utils/loadAndBundleSpec.js +1 -2
  662. package/lib/utils/local-storage.js +1 -2
  663. package/lib/utils/object.js +1 -2
  664. package/lib/utils/openapi.d.ts +4 -4
  665. package/lib/utils/openapi.js +1 -2
  666. package/lib/utils/parameters.js +1 -2
  667. package/lib/utils/path.js +1 -2
  668. package/lib/utils/queryString.js +1 -2
  669. package/lib/utils/replaceVariables.d.ts +1 -1
  670. package/lib/utils/replaceVariables.js +1 -2
  671. package/lib/utils/saveTextBeforeHeading.js +1 -2
  672. package/lib/utils/security-details.d.ts +1 -1
  673. package/lib/utils/security-details.js +1 -2
  674. package/lib/utils/session-storage.js +1 -2
  675. package/lib/utils/simplifyAstStructure.js +1 -2
  676. package/lib/utils/sort.js +1 -2
  677. package/lib/utils/string.js +1 -2
  678. package/lib/utils/test-utils.js +1 -2
  679. package/lib/utils/theme-helpers.js +3 -4
  680. package/lib/utils/url.d.ts +2 -0
  681. package/lib/utils/url.js +1 -0
  682. package/package.json +26 -48
  683. package/bin.js +0 -4
  684. package/lib/utils/createParsedDocument.d.ts +0 -2
  685. package/lib/utils/createParsedDocument.js +0 -2
  686. package/lib-esm/components/ApiInfo/ApiInfo.d.ts +0 -7
  687. package/lib-esm/components/ApiInfo/ApiInfo.js +0 -2
  688. package/lib-esm/components/ApiInfo/Metadata.d.ts +0 -9
  689. package/lib-esm/components/ApiInfo/Metadata.js +0 -2
  690. package/lib-esm/components/ApiInfo/index.d.ts +0 -1
  691. package/lib-esm/components/ApiInfo/index.js +0 -2
  692. package/lib-esm/components/ApiInfo/styled.d.ts +0 -4
  693. package/lib-esm/components/ApiInfo/styled.js +0 -27
  694. package/lib-esm/components/CallbackSamples/CallbackSamples.d.ts +0 -7
  695. package/lib-esm/components/CallbackSamples/CallbackSamples.js +0 -16
  696. package/lib-esm/components/CallbackSamples/index.d.ts +0 -1
  697. package/lib-esm/components/CallbackSamples/index.js +0 -2
  698. package/lib-esm/components/Callbacks/CallbackDetails.d.ts +0 -7
  699. package/lib-esm/components/Callbacks/CallbackDetails.js +0 -20
  700. package/lib-esm/components/Callbacks/CallbackOperation.d.ts +0 -8
  701. package/lib-esm/components/Callbacks/CallbackOperation.js +0 -15
  702. package/lib-esm/components/Callbacks/CallbackSummary.d.ts +0 -8
  703. package/lib-esm/components/Callbacks/CallbackSummary.js +0 -19
  704. package/lib-esm/components/Callbacks/CallbacksList.d.ts +0 -7
  705. package/lib-esm/components/Callbacks/CallbacksList.js +0 -2
  706. package/lib-esm/components/Callbacks/index.d.ts +0 -3
  707. package/lib-esm/components/Callbacks/index.js +0 -2
  708. package/lib-esm/components/Callbacks/styled.d.ts +0 -3
  709. package/lib-esm/components/Callbacks/styled.js +0 -8
  710. package/lib-esm/components/Content/Content.d.ts +0 -7
  711. package/lib-esm/components/Content/Content.js +0 -2
  712. package/lib-esm/components/Content/index.d.ts +0 -1
  713. package/lib-esm/components/Content/index.js +0 -2
  714. package/lib-esm/components/Content/useAutoScroll.d.ts +0 -3
  715. package/lib-esm/components/Content/useAutoScroll.js +0 -2
  716. package/lib-esm/components/ContentItem/ContentItem.d.ts +0 -11
  717. package/lib-esm/components/ContentItem/ContentItem.js +0 -2
  718. package/lib-esm/components/ContentItem/index.d.ts +0 -1
  719. package/lib-esm/components/ContentItem/index.js +0 -2
  720. package/lib-esm/components/ContentItem/useIsExpanded.d.ts +0 -5
  721. package/lib-esm/components/ContentItem/useIsExpanded.js +0 -2
  722. package/lib-esm/components/ContentItems/ContentItems.d.ts +0 -8
  723. package/lib-esm/components/ContentItems/ContentItems.js +0 -2
  724. package/lib-esm/components/ContentItems/Items.d.ts +0 -7
  725. package/lib-esm/components/ContentItems/Items.js +0 -2
  726. package/lib-esm/components/ContentItems/VirtualList.d.ts +0 -7
  727. package/lib-esm/components/ContentItems/VirtualList.js +0 -2
  728. package/lib-esm/components/ContentItems/helpers.d.ts +0 -10
  729. package/lib-esm/components/ContentItems/helpers.js +0 -2
  730. package/lib-esm/components/ContentItems/index.d.ts +0 -1
  731. package/lib-esm/components/ContentItems/index.js +0 -2
  732. package/lib-esm/components/ContentItems/useScrollOnRender.d.ts +0 -3
  733. package/lib-esm/components/ContentItems/useScrollOnRender.js +0 -2
  734. package/lib-esm/components/Discriminator/Discriminator.d.ts +0 -10
  735. package/lib-esm/components/Discriminator/Discriminator.js +0 -6
  736. package/lib-esm/components/Discriminator/index.d.ts +0 -1
  737. package/lib-esm/components/Discriminator/index.js +0 -2
  738. package/lib-esm/components/Download/DownloadSpecification.d.ts +0 -4
  739. package/lib-esm/components/Download/DownloadSpecification.js +0 -40
  740. package/lib-esm/components/Download/index.d.ts +0 -1
  741. package/lib-esm/components/Download/index.js +0 -2
  742. package/lib-esm/components/Download/types.d.ts +0 -15
  743. package/lib-esm/components/Download/types.js +0 -2
  744. package/lib-esm/components/Download/useDownloadInfo.d.ts +0 -2
  745. package/lib-esm/components/Download/useDownloadInfo.js +0 -2
  746. package/lib-esm/components/ErrorBoundary/ErrorBoundary.d.ts +0 -9
  747. package/lib-esm/components/ErrorBoundary/ErrorBoundary.js +0 -5
  748. package/lib-esm/components/ErrorBoundary/index.d.ts +0 -1
  749. package/lib-esm/components/ErrorBoundary/index.js +0 -2
  750. package/lib-esm/components/ExpandAllButton/ExpandAllButton.d.ts +0 -8
  751. package/lib-esm/components/ExpandAllButton/ExpandAllButton.js +0 -4
  752. package/lib-esm/components/ExpandAllButton/index.d.ts +0 -1
  753. package/lib-esm/components/ExpandAllButton/index.js +0 -2
  754. package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.d.ts +0 -7
  755. package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.js +0 -5
  756. package/lib-esm/components/ExternalDocumentation/index.d.ts +0 -1
  757. package/lib-esm/components/ExternalDocumentation/index.js +0 -2
  758. package/lib-esm/components/Language/LanguageDropdown.d.ts +0 -15
  759. package/lib-esm/components/Language/LanguageDropdown.js +0 -2
  760. package/lib-esm/components/Language/LanguageItem.d.ts +0 -11
  761. package/lib-esm/components/Language/LanguageItem.js +0 -2
  762. package/lib-esm/components/Language/LanguageList.d.ts +0 -10
  763. package/lib-esm/components/Language/LanguageList.js +0 -2
  764. package/lib-esm/components/Language/_tests_/LanguageDropdown.test.d.ts +0 -1
  765. package/lib-esm/components/Language/_tests_/LanguageDropdown.test.js +0 -2
  766. package/lib-esm/components/Language/constants.d.ts +0 -2
  767. package/lib-esm/components/Language/constants.js +0 -2
  768. package/lib-esm/components/Language/index.d.ts +0 -3
  769. package/lib-esm/components/Language/index.js +0 -2
  770. package/lib-esm/components/Language/styled.d.ts +0 -31
  771. package/lib-esm/components/Language/styled.js +0 -82
  772. package/lib-esm/components/Markdown/Markdown.d.ts +0 -3
  773. package/lib-esm/components/Markdown/Markdown.js +0 -2
  774. package/lib-esm/components/Markdown/index.d.ts +0 -2
  775. package/lib-esm/components/Markdown/index.js +0 -2
  776. package/lib-esm/components/Markdown/types.d.ts +0 -10
  777. package/lib-esm/components/Markdown/types.js +0 -2
  778. package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +0 -11
  779. package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.js +0 -2
  780. package/lib-esm/components/MediaTypeSwitch/index.d.ts +0 -1
  781. package/lib-esm/components/MediaTypeSwitch/index.js +0 -2
  782. package/lib-esm/components/OperationItem/Description.d.ts +0 -10
  783. package/lib-esm/components/OperationItem/Description.js +0 -2
  784. package/lib-esm/components/OperationItem/OperationItem.d.ts +0 -5
  785. package/lib-esm/components/OperationItem/OperationItem.js +0 -22
  786. package/lib-esm/components/OperationItem/_tests_/OperationItem.test.d.ts +0 -1
  787. package/lib-esm/components/OperationItem/_tests_/OperationItem.test.js +0 -2
  788. package/lib-esm/components/OperationItem/_tests_/__mocks__/mock-intersection-observer.d.ts +0 -15
  789. package/lib-esm/components/OperationItem/_tests_/__mocks__/mock-intersection-observer.js +0 -2
  790. package/lib-esm/components/OperationItem/index.d.ts +0 -2
  791. package/lib-esm/components/OperationItem/index.js +0 -2
  792. package/lib-esm/components/OperationItem/types.d.ts +0 -4
  793. package/lib-esm/components/OperationItem/types.js +0 -2
  794. package/lib-esm/components/Overlay.d.ts +0 -6
  795. package/lib-esm/components/Overlay.js +0 -43
  796. package/lib-esm/components/Overview/Overview.d.ts +0 -9
  797. package/lib-esm/components/Overview/Overview.js +0 -2
  798. package/lib-esm/components/Overview/index.d.ts +0 -1
  799. package/lib-esm/components/Overview/index.js +0 -2
  800. package/lib-esm/components/PageFooter/PageFooter.d.ts +0 -2
  801. package/lib-esm/components/PageFooter/PageFooter.js +0 -2
  802. package/lib-esm/components/PageFooter/index.d.ts +0 -1
  803. package/lib-esm/components/PageFooter/index.js +0 -2
  804. package/lib-esm/components/Panel/ResponsePanel.d.ts +0 -3
  805. package/lib-esm/components/Panel/ResponsePanel.js +0 -25
  806. package/lib-esm/components/Panel/Trigger.d.ts +0 -1
  807. package/lib-esm/components/Panel/Trigger.js +0 -8
  808. package/lib-esm/components/Panel/index.d.ts +0 -2
  809. package/lib-esm/components/Panel/index.js +0 -2
  810. package/lib-esm/components/PanelItem/PanelItem.d.ts +0 -9
  811. package/lib-esm/components/PanelItem/PanelItem.js +0 -2
  812. package/lib-esm/components/PanelItem/index.d.ts +0 -2
  813. package/lib-esm/components/PanelItem/index.js +0 -2
  814. package/lib-esm/components/PanelItem/styled.d.ts +0 -16
  815. package/lib-esm/components/PanelItem/styled.js +0 -53
  816. package/lib-esm/components/PayloadSamples/Example.d.ts +0 -3
  817. package/lib-esm/components/PayloadSamples/Example.js +0 -2
  818. package/lib-esm/components/PayloadSamples/ExampleValue.d.ts +0 -2
  819. package/lib-esm/components/PayloadSamples/ExampleValue.js +0 -2
  820. package/lib-esm/components/PayloadSamples/MediaTypeSamples.d.ts +0 -2
  821. package/lib-esm/components/PayloadSamples/MediaTypeSamples.js +0 -4
  822. package/lib-esm/components/PayloadSamples/PayloadSamples.d.ts +0 -2
  823. package/lib-esm/components/PayloadSamples/PayloadSamples.js +0 -2
  824. package/lib-esm/components/PayloadSamples/index.d.ts +0 -5
  825. package/lib-esm/components/PayloadSamples/index.js +0 -2
  826. package/lib-esm/components/PayloadSamples/styled.d.ts +0 -4
  827. package/lib-esm/components/PayloadSamples/styled.js +0 -22
  828. package/lib-esm/components/PayloadSamples/types.d.ts +0 -25
  829. package/lib-esm/components/PayloadSamples/types.js +0 -2
  830. package/lib-esm/components/PropertyDetails/DescriptionEnums.d.ts +0 -4
  831. package/lib-esm/components/PropertyDetails/DescriptionEnums.js +0 -10
  832. package/lib-esm/components/PropertyDetails/EnumValues.d.ts +0 -2
  833. package/lib-esm/components/PropertyDetails/EnumValues.js +0 -2
  834. package/lib-esm/components/PropertyDetails/Examples.d.ts +0 -5
  835. package/lib-esm/components/PropertyDetails/Examples.js +0 -2
  836. package/lib-esm/components/PropertyDetails/Extensions.d.ts +0 -2
  837. package/lib-esm/components/PropertyDetails/Extensions.js +0 -4
  838. package/lib-esm/components/PropertyDetails/FieldDetail.d.ts +0 -7
  839. package/lib-esm/components/PropertyDetails/FieldDetail.js +0 -8
  840. package/lib-esm/components/PropertyDetails/FieldDetails.d.ts +0 -2
  841. package/lib-esm/components/PropertyDetails/FieldDetails.js +0 -40
  842. package/lib-esm/components/PropertyDetails/Pattern.d.ts +0 -6
  843. package/lib-esm/components/PropertyDetails/Pattern.js +0 -2
  844. package/lib-esm/components/PropertyDetails/PlusCircleIcon.d.ts +0 -7
  845. package/lib-esm/components/PropertyDetails/PlusCircleIcon.js +0 -11
  846. package/lib-esm/components/PropertyDetails/PropertyDetails.d.ts +0 -2
  847. package/lib-esm/components/PropertyDetails/PropertyDetails.js +0 -18
  848. package/lib-esm/components/PropertyDetails/SchemaTypeInfo.d.ts +0 -6
  849. package/lib-esm/components/PropertyDetails/SchemaTypeInfo.js +0 -16
  850. package/lib-esm/components/PropertyDetails/SimpleEnums.d.ts +0 -4
  851. package/lib-esm/components/PropertyDetails/SimpleEnums.js +0 -8
  852. package/lib-esm/components/PropertyDetails/cycleColorsByLevel.d.ts +0 -1
  853. package/lib-esm/components/PropertyDetails/cycleColorsByLevel.js +0 -2
  854. package/lib-esm/components/PropertyDetails/index.d.ts +0 -3
  855. package/lib-esm/components/PropertyDetails/index.js +0 -2
  856. package/lib-esm/components/PropertyDetails/styled.d.ts +0 -6
  857. package/lib-esm/components/PropertyDetails/styled.js +0 -23
  858. package/lib-esm/components/PropertyDetails/types.d.ts +0 -47
  859. package/lib-esm/components/PropertyDetails/types.js +0 -2
  860. package/lib-esm/components/RedoclyOpenAPIDocs/Providers.d.ts +0 -4
  861. package/lib-esm/components/RedoclyOpenAPIDocs/Providers.js +0 -2
  862. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.d.ts +0 -4
  863. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +0 -2
  864. package/lib-esm/components/RedoclyOpenAPIDocs/index.d.ts +0 -4
  865. package/lib-esm/components/RedoclyOpenAPIDocs/index.js +0 -2
  866. package/lib-esm/components/RedoclyOpenAPIDocs/styled.d.ts +0 -1
  867. package/lib-esm/components/RedoclyOpenAPIDocs/styled.js +0 -22
  868. package/lib-esm/components/RedoclyOpenAPIDocs/types.d.ts +0 -47
  869. package/lib-esm/components/RedoclyOpenAPIDocs/types.js +0 -2
  870. package/lib-esm/components/RedoclyOpenAPIDocs/utils.d.ts +0 -8
  871. package/lib-esm/components/RedoclyOpenAPIDocs/utils.js +0 -2
  872. package/lib-esm/components/RenderHook/RenderHook.d.ts +0 -8
  873. package/lib-esm/components/RenderHook/RenderHook.js +0 -2
  874. package/lib-esm/components/RenderHook/index.d.ts +0 -1
  875. package/lib-esm/components/RenderHook/index.js +0 -2
  876. package/lib-esm/components/Replay/EmbeddedReplay.d.ts +0 -9
  877. package/lib-esm/components/Replay/EmbeddedReplay.js +0 -11
  878. package/lib-esm/components/Replay/Replay.d.ts +0 -9
  879. package/lib-esm/components/Replay/Replay.js +0 -2
  880. package/lib-esm/components/Replay/index.d.ts +0 -2
  881. package/lib-esm/components/Replay/index.js +0 -2
  882. package/lib-esm/components/Replay/utils.d.ts +0 -42
  883. package/lib-esm/components/Replay/utils.js +0 -2
  884. package/lib-esm/components/Request/RequestDetails.d.ts +0 -2
  885. package/lib-esm/components/Request/RequestDetails.js +0 -4
  886. package/lib-esm/components/Request/types.d.ts +0 -10
  887. package/lib-esm/components/Request/types.js +0 -2
  888. package/lib-esm/components/RequestParameters/Body.d.ts +0 -9
  889. package/lib-esm/components/RequestParameters/Body.js +0 -2
  890. package/lib-esm/components/RequestParameters/ParametersGroup.d.ts +0 -8
  891. package/lib-esm/components/RequestParameters/ParametersGroup.js +0 -21
  892. package/lib-esm/components/RequestParameters/RequestParameters.d.ts +0 -9
  893. package/lib-esm/components/RequestParameters/RequestParameters.js +0 -2
  894. package/lib-esm/components/RequestParameters/index.d.ts +0 -2
  895. package/lib-esm/components/RequestParameters/index.js +0 -2
  896. package/lib-esm/components/RequestSamples/CodeSample.d.ts +0 -16
  897. package/lib-esm/components/RequestSamples/CodeSample.js +0 -10
  898. package/lib-esm/components/RequestSamples/Example.d.ts +0 -9
  899. package/lib-esm/components/RequestSamples/Example.js +0 -2
  900. package/lib-esm/components/RequestSamples/RequestSamples.d.ts +0 -10
  901. package/lib-esm/components/RequestSamples/RequestSamples.js +0 -13
  902. package/lib-esm/components/RequestSamples/index.d.ts +0 -2
  903. package/lib-esm/components/RequestSamples/index.js +0 -2
  904. package/lib-esm/components/RequestSamples/useCodeSamples.d.ts +0 -10
  905. package/lib-esm/components/RequestSamples/useCodeSamples.js +0 -2
  906. package/lib-esm/components/ResponseSamples/ResponseSamples.d.ts +0 -12
  907. package/lib-esm/components/ResponseSamples/ResponseSamples.js +0 -2
  908. package/lib-esm/components/ResponseSamples/Summary.d.ts +0 -5
  909. package/lib-esm/components/ResponseSamples/Summary.js +0 -2
  910. package/lib-esm/components/ResponseSamples/index.d.ts +0 -1
  911. package/lib-esm/components/ResponseSamples/index.js +0 -2
  912. package/lib-esm/components/Responses/OperationResponseList.d.ts +0 -16
  913. package/lib-esm/components/Responses/OperationResponseList.js +0 -5
  914. package/lib-esm/components/Responses/ResponseDetails.d.ts +0 -2
  915. package/lib-esm/components/Responses/ResponseDetails.js +0 -2
  916. package/lib-esm/components/Responses/ResponseHeaders.d.ts +0 -2
  917. package/lib-esm/components/Responses/ResponseHeaders.js +0 -2
  918. package/lib-esm/components/Responses/index.d.ts +0 -3
  919. package/lib-esm/components/Responses/index.js +0 -2
  920. package/lib-esm/components/Responses/styled.d.ts +0 -5
  921. package/lib-esm/components/Responses/styled.js +0 -23
  922. package/lib-esm/components/Responses/types.d.ts +0 -13
  923. package/lib-esm/components/Responses/types.js +0 -2
  924. package/lib-esm/components/RightPanel/RightPanel.d.ts +0 -5
  925. package/lib-esm/components/RightPanel/RightPanel.js +0 -2
  926. package/lib-esm/components/RightPanel/index.d.ts +0 -1
  927. package/lib-esm/components/RightPanel/index.js +0 -2
  928. package/lib-esm/components/Samples/ExampleSwitch.d.ts +0 -14
  929. package/lib-esm/components/Samples/ExampleSwitch.js +0 -2
  930. package/lib-esm/components/Samples/index.d.ts +0 -2
  931. package/lib-esm/components/Samples/index.js +0 -2
  932. package/lib-esm/components/Samples/use-example-key.d.ts +0 -6
  933. package/lib-esm/components/Samples/use-example-key.js +0 -2
  934. package/lib-esm/components/Schema/ArraySchema.d.ts +0 -2
  935. package/lib-esm/components/Schema/ArraySchema.js +0 -2
  936. package/lib-esm/components/Schema/ObjectSchema.d.ts +0 -2
  937. package/lib-esm/components/Schema/ObjectSchema.js +0 -2
  938. package/lib-esm/components/Schema/OneOfSchema.d.ts +0 -2
  939. package/lib-esm/components/Schema/OneOfSchema.js +0 -11
  940. package/lib-esm/components/Schema/RecursiveSchema.d.ts +0 -2
  941. package/lib-esm/components/Schema/RecursiveSchema.js +0 -2
  942. package/lib-esm/components/Schema/Schema.d.ts +0 -2
  943. package/lib-esm/components/Schema/Schema.js +0 -6
  944. package/lib-esm/components/Schema/SubSchema.d.ts +0 -14
  945. package/lib-esm/components/Schema/SubSchema.js +0 -2
  946. package/lib-esm/components/Schema/helpers.d.ts +0 -5
  947. package/lib-esm/components/Schema/helpers.js +0 -2
  948. package/lib-esm/components/Schema/index.d.ts +0 -5
  949. package/lib-esm/components/Schema/index.js +0 -2
  950. package/lib-esm/components/Schema/types.d.ts +0 -38
  951. package/lib-esm/components/Schema/types.js +0 -2
  952. package/lib-esm/components/Schema/useOneOfLocationIdx.d.ts +0 -2
  953. package/lib-esm/components/Schema/useOneOfLocationIdx.js +0 -2
  954. package/lib-esm/components/SchemaDefinition/SchemaDefinition.d.ts +0 -8
  955. package/lib-esm/components/SchemaDefinition/SchemaDefinition.js +0 -4
  956. package/lib-esm/components/SchemaDefinition/index.d.ts +0 -1
  957. package/lib-esm/components/SchemaDefinition/index.js +0 -2
  958. package/lib-esm/components/SectionContent/SectionContent.d.ts +0 -17
  959. package/lib-esm/components/SectionContent/SectionContent.js +0 -14
  960. package/lib-esm/components/SectionContent/index.d.ts +0 -1
  961. package/lib-esm/components/SectionContent/index.js +0 -2
  962. package/lib-esm/components/SectionItem/SectionItem.d.ts +0 -7
  963. package/lib-esm/components/SectionItem/SectionItem.js +0 -2
  964. package/lib-esm/components/SectionItem/index.d.ts +0 -1
  965. package/lib-esm/components/SectionItem/index.js +0 -2
  966. package/lib-esm/components/Security/Divider.d.ts +0 -3
  967. package/lib-esm/components/Security/Divider.js +0 -15
  968. package/lib-esm/components/Security/OAuthFlow.d.ts +0 -6
  969. package/lib-esm/components/Security/OAuthFlow.js +0 -2
  970. package/lib-esm/components/Security/OAuthScopes.d.ts +0 -13
  971. package/lib-esm/components/Security/OAuthScopes.js +0 -34
  972. package/lib-esm/components/Security/Security.d.ts +0 -7
  973. package/lib-esm/components/Security/Security.js +0 -2
  974. package/lib-esm/components/Security/SecurityButton.d.ts +0 -10
  975. package/lib-esm/components/Security/SecurityButton.js +0 -31
  976. package/lib-esm/components/Security/SecurityFlow.d.ts +0 -5
  977. package/lib-esm/components/Security/SecurityFlow.js +0 -17
  978. package/lib-esm/components/Security/SecurityModal.d.ts +0 -8
  979. package/lib-esm/components/Security/SecurityModal.js +0 -45
  980. package/lib-esm/components/Security/SecuritySchemeItem.d.ts +0 -7
  981. package/lib-esm/components/Security/SecuritySchemeItem.js +0 -21
  982. package/lib-esm/components/Security/helper.d.ts +0 -2
  983. package/lib-esm/components/Security/helper.js +0 -2
  984. package/lib-esm/components/Security/index.d.ts +0 -1
  985. package/lib-esm/components/Security/index.js +0 -2
  986. package/lib-esm/components/Security/styled.d.ts +0 -2
  987. package/lib-esm/components/Security/styled.js +0 -14
  988. package/lib-esm/components/SelectOrLabel/SelectOrLabel.d.ts +0 -7
  989. package/lib-esm/components/SelectOrLabel/SelectOrLabel.js +0 -8
  990. package/lib-esm/components/SelectOrLabel/index.d.ts +0 -1
  991. package/lib-esm/components/SelectOrLabel/index.js +0 -2
  992. package/lib-esm/components/ServerList/ServerList.d.ts +0 -3
  993. package/lib-esm/components/ServerList/ServerList.js +0 -60
  994. package/lib-esm/components/ServerList/index.d.ts +0 -1
  995. package/lib-esm/components/ServerList/index.js +0 -2
  996. package/lib-esm/components/ServerList/types.d.ts +0 -5
  997. package/lib-esm/components/ServerList/types.js +0 -2
  998. package/lib-esm/components/ServerListDropdown/ServerListDropdown.d.ts +0 -7
  999. package/lib-esm/components/ServerListDropdown/ServerListDropdown.js +0 -2
  1000. package/lib-esm/components/ServerListDropdown/index.d.ts +0 -1
  1001. package/lib-esm/components/ServerListDropdown/index.js +0 -2
  1002. package/lib-esm/components/ServerListDropdown/styled.d.ts +0 -5
  1003. package/lib-esm/components/ServerListDropdown/styled.js +0 -23
  1004. package/lib-esm/components/SideMenu/SideMenu.d.ts +0 -8
  1005. package/lib-esm/components/SideMenu/SideMenu.js +0 -4
  1006. package/lib-esm/components/SideMenu/hooks/useMenuItems.d.ts +0 -7
  1007. package/lib-esm/components/SideMenu/hooks/useMenuItems.js +0 -2
  1008. package/lib-esm/components/SideMenu/index.d.ts +0 -1
  1009. package/lib-esm/components/SideMenu/index.js +0 -2
  1010. package/lib-esm/components/SideMenu/types.d.ts +0 -16
  1011. package/lib-esm/components/SideMenu/types.js +0 -2
  1012. package/lib-esm/components/StickySidebar/SidebarActions.d.ts +0 -1
  1013. package/lib-esm/components/StickySidebar/SidebarActions.js +0 -6
  1014. package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.d.ts +0 -9
  1015. package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.js +0 -25
  1016. package/lib-esm/components/StickySidebar/index.d.ts +0 -1
  1017. package/lib-esm/components/StickySidebar/index.js +0 -2
  1018. package/lib-esm/components/Tabs/Tabs.d.ts +0 -8
  1019. package/lib-esm/components/Tabs/Tabs.js +0 -35
  1020. package/lib-esm/components/Tabs/index.d.ts +0 -2
  1021. package/lib-esm/components/Tabs/index.js +0 -2
  1022. package/lib-esm/components/Tabs/useTabsState.d.ts +0 -11
  1023. package/lib-esm/components/Tabs/useTabsState.js +0 -2
  1024. package/lib-esm/components/TagItem/OperationNavigationItems.d.ts +0 -9
  1025. package/lib-esm/components/TagItem/OperationNavigationItems.js +0 -37
  1026. package/lib-esm/components/TagItem/OperationsNavigation.d.ts +0 -3
  1027. package/lib-esm/components/TagItem/OperationsNavigation.js +0 -7
  1028. package/lib-esm/components/TagItem/TagItem.d.ts +0 -9
  1029. package/lib-esm/components/TagItem/TagItem.js +0 -24
  1030. package/lib-esm/components/TagItem/index.d.ts +0 -1
  1031. package/lib-esm/components/TagItem/index.js +0 -2
  1032. package/lib-esm/components/TagItem/styled.d.ts +0 -1
  1033. package/lib-esm/components/TagItem/styled.js +0 -6
  1034. package/lib-esm/components/TagItem/types.d.ts +0 -5
  1035. package/lib-esm/components/TagItem/types.js +0 -2
  1036. package/lib-esm/components/ViewNested/ViewNested.d.ts +0 -13
  1037. package/lib-esm/components/ViewNested/ViewNested.js +0 -35
  1038. package/lib-esm/components/ViewNested/index.d.ts +0 -1
  1039. package/lib-esm/components/ViewNested/index.js +0 -2
  1040. package/lib-esm/components/common/Badges.d.ts +0 -13
  1041. package/lib-esm/components/common/Badges.js +0 -19
  1042. package/lib-esm/components/common/BodyContent/BodyContent.d.ts +0 -11
  1043. package/lib-esm/components/common/BodyContent/BodyContent.js +0 -28
  1044. package/lib-esm/components/common/BodyContent/index.d.ts +0 -1
  1045. package/lib-esm/components/common/BodyContent/index.js +0 -2
  1046. package/lib-esm/components/common/ClearButton/ClearButton.d.ts +0 -2
  1047. package/lib-esm/components/common/ClearButton/ClearButton.js +0 -2
  1048. package/lib-esm/components/common/ClearButton/index.d.ts +0 -2
  1049. package/lib-esm/components/common/ClearButton/index.js +0 -2
  1050. package/lib-esm/components/common/ClearButton/styled.d.ts +0 -1
  1051. package/lib-esm/components/common/ClearButton/styled.js +0 -16
  1052. package/lib-esm/components/common/ClearButton/types.d.ts +0 -6
  1053. package/lib-esm/components/common/ClearButton/types.js +0 -2
  1054. package/lib-esm/components/common/CodeBlockPanel.d.ts +0 -2
  1055. package/lib-esm/components/common/CodeBlockPanel.js +0 -6
  1056. package/lib-esm/components/common/ConstraintsView.d.ts +0 -4
  1057. package/lib-esm/components/common/ConstraintsView.js +0 -4
  1058. package/lib-esm/components/common/Dropdown/Dropdown.d.ts +0 -12
  1059. package/lib-esm/components/common/Dropdown/Dropdown.js +0 -27
  1060. package/lib-esm/components/common/Dropdown/index.d.ts +0 -2
  1061. package/lib-esm/components/common/Dropdown/index.js +0 -2
  1062. package/lib-esm/components/common/ExpandableExample/ExpandableExample.d.ts +0 -5
  1063. package/lib-esm/components/common/ExpandableExample/ExpandableExample.js +0 -10
  1064. package/lib-esm/components/common/ExpandableExample/index.d.ts +0 -1
  1065. package/lib-esm/components/common/ExpandableExample/index.js +0 -2
  1066. package/lib-esm/components/common/Extensions.d.ts +0 -6
  1067. package/lib-esm/components/common/Extensions.js +0 -4
  1068. package/lib-esm/components/common/Fields/fields-layout.d.ts +0 -15
  1069. package/lib-esm/components/common/Fields/fields-layout.js +0 -223
  1070. package/lib-esm/components/common/Fields/fields.d.ts +0 -38
  1071. package/lib-esm/components/common/Fields/fields.js +0 -93
  1072. package/lib-esm/components/common/Fields/index.d.ts +0 -2
  1073. package/lib-esm/components/common/Fields/index.js +0 -2
  1074. package/lib-esm/components/common/LinkToField.d.ts +0 -13
  1075. package/lib-esm/components/common/LinkToField.js +0 -20
  1076. package/lib-esm/components/common/OperationItemTitle.d.ts +0 -2
  1077. package/lib-esm/components/common/OperationItemTitle.js +0 -33
  1078. package/lib-esm/components/common/SchemaSelection/SchemaSelection.d.ts +0 -12
  1079. package/lib-esm/components/common/SchemaSelection/SchemaSelection.js +0 -2
  1080. package/lib-esm/components/common/SchemaSelection/index.d.ts +0 -1
  1081. package/lib-esm/components/common/SchemaSelection/index.js +0 -2
  1082. package/lib-esm/components/common/Select/Select.d.ts +0 -2
  1083. package/lib-esm/components/common/Select/Select.js +0 -2
  1084. package/lib-esm/components/common/Select/index.d.ts +0 -2
  1085. package/lib-esm/components/common/Select/index.js +0 -2
  1086. package/lib-esm/components/common/Select/styled.d.ts +0 -22
  1087. package/lib-esm/components/common/Select/styled.js +0 -111
  1088. package/lib-esm/components/common/Select/types.d.ts +0 -20
  1089. package/lib-esm/components/common/Select/types.js +0 -2
  1090. package/lib-esm/components/common/Skeleton/LanguageListSkeleton.d.ts +0 -4
  1091. package/lib-esm/components/common/Skeleton/LanguageListSkeleton.js +0 -23
  1092. package/lib-esm/components/common/Skeleton/Skeleton.d.ts +0 -5
  1093. package/lib-esm/components/common/Skeleton/Skeleton.js +0 -33
  1094. package/lib-esm/components/common/Skeleton/index.d.ts +0 -1
  1095. package/lib-esm/components/common/Skeleton/index.js +0 -2
  1096. package/lib-esm/components/common/headers.d.ts +0 -1
  1097. package/lib-esm/components/common/headers.js +0 -8
  1098. package/lib-esm/components/common/index.d.ts +0 -14
  1099. package/lib-esm/components/common/index.js +0 -2
  1100. package/lib-esm/components/common/linkify.d.ts +0 -10
  1101. package/lib-esm/components/common/linkify.js +0 -21
  1102. package/lib-esm/components/common/mixins.d.ts +0 -1
  1103. package/lib-esm/components/common/mixins.js +0 -5
  1104. package/lib-esm/components/common/panels.d.ts +0 -17
  1105. package/lib-esm/components/common/panels.js +0 -123
  1106. package/lib-esm/components/common/schema.d.ts +0 -7
  1107. package/lib-esm/components/common/schema.js +0 -74
  1108. package/lib-esm/components/common/styled.d.ts +0 -7
  1109. package/lib-esm/components/common/styled.js +0 -59
  1110. package/lib-esm/components/index.d.ts +0 -23
  1111. package/lib-esm/components/index.js +0 -2
  1112. package/lib-esm/components/pluggable/RedocExample.d.ts +0 -11
  1113. package/lib-esm/components/pluggable/RedocExample.js +0 -2
  1114. package/lib-esm/components/pluggable/RedocSchema.d.ts +0 -10
  1115. package/lib-esm/components/pluggable/RedocSchema.js +0 -2
  1116. package/lib-esm/components/pluggable/index.d.ts +0 -2
  1117. package/lib-esm/components/pluggable/index.js +0 -2
  1118. package/lib-esm/components/pluggable/styled.components.d.ts +0 -7
  1119. package/lib-esm/components/pluggable/styled.components.js +0 -13
  1120. package/lib-esm/constants.d.ts +0 -25
  1121. package/lib-esm/constants.js +0 -2
  1122. package/lib-esm/empty.d.ts +0 -2
  1123. package/lib-esm/empty.js +0 -2
  1124. package/lib-esm/events/codeSampleCopy.d.ts +0 -2
  1125. package/lib-esm/events/codeSampleCopy.js +0 -2
  1126. package/lib-esm/events/creator.d.ts +0 -2
  1127. package/lib-esm/events/creator.js +0 -2
  1128. package/lib-esm/events/index.d.ts +0 -8
  1129. package/lib-esm/events/index.js +0 -2
  1130. package/lib-esm/events/languageSwitch.d.ts +0 -2
  1131. package/lib-esm/events/languageSwitch.js +0 -2
  1132. package/lib-esm/events/panelToggle.d.ts +0 -2
  1133. package/lib-esm/events/panelToggle.js +0 -2
  1134. package/lib-esm/events/serverSwitch.d.ts +0 -2
  1135. package/lib-esm/events/serverSwitch.js +0 -2
  1136. package/lib-esm/events/tryItOpen.d.ts +0 -2
  1137. package/lib-esm/events/tryItOpen.js +0 -2
  1138. package/lib-esm/events/tryItSent.d.ts +0 -2
  1139. package/lib-esm/events/tryItSent.js +0 -2
  1140. package/lib-esm/events/types.d.ts +0 -83
  1141. package/lib-esm/events/types.js +0 -2
  1142. package/lib-esm/hoc/types.d.ts +0 -51
  1143. package/lib-esm/hoc/types.js +0 -2
  1144. package/lib-esm/hoc/utils.d.ts +0 -2
  1145. package/lib-esm/hoc/utils.js +0 -2
  1146. package/lib-esm/hoc/withRouter.d.ts +0 -3
  1147. package/lib-esm/hoc/withRouter.js +0 -2
  1148. package/lib-esm/hoc/withStore.d.ts +0 -3
  1149. package/lib-esm/hoc/withStore.js +0 -2
  1150. package/lib-esm/hooks/index.d.ts +0 -8
  1151. package/lib-esm/hooks/index.js +0 -2
  1152. package/lib-esm/hooks/useActivateExample.d.ts +0 -2
  1153. package/lib-esm/hooks/useActivateExample.js +0 -2
  1154. package/lib-esm/hooks/useActiveWithFallback.d.ts +0 -3
  1155. package/lib-esm/hooks/useActiveWithFallback.js +0 -2
  1156. package/lib-esm/hooks/useContentItems.d.ts +0 -12
  1157. package/lib-esm/hooks/useContentItems.js +0 -2
  1158. package/lib-esm/hooks/useLicense.d.ts +0 -5
  1159. package/lib-esm/hooks/useLicense.js +0 -2
  1160. package/lib-esm/hooks/usePerformanceMetrics.d.ts +0 -5
  1161. package/lib-esm/hooks/usePerformanceMetrics.js +0 -2
  1162. package/lib-esm/hooks/useRouter.d.ts +0 -13
  1163. package/lib-esm/hooks/useRouter.js +0 -2
  1164. package/lib-esm/hooks/useTelemetry.d.ts +0 -2
  1165. package/lib-esm/hooks/useTelemetry.js +0 -2
  1166. package/lib-esm/hooks/useTranslate.d.ts +0 -2
  1167. package/lib-esm/hooks/useTranslate.js +0 -2
  1168. package/lib-esm/hooks/useUppercase2LowercaseRedirect.d.ts +0 -1
  1169. package/lib-esm/hooks/useUppercase2LowercaseRedirect.js +0 -2
  1170. package/lib-esm/icons/CSharpIcon/CSharpIcon.d.ts +0 -4
  1171. package/lib-esm/icons/CSharpIcon/CSharpIcon.js +0 -2
  1172. package/lib-esm/icons/CSharpIcon/index.d.ts +0 -1
  1173. package/lib-esm/icons/CSharpIcon/index.js +0 -2
  1174. package/lib-esm/icons/CurlIcon/CurlIcon.d.ts +0 -6
  1175. package/lib-esm/icons/CurlIcon/CurlIcon.js +0 -15
  1176. package/lib-esm/icons/CurlIcon/index.d.ts +0 -1
  1177. package/lib-esm/icons/CurlIcon/index.js +0 -2
  1178. package/lib-esm/icons/GOIcon/GOIcon.d.ts +0 -4
  1179. package/lib-esm/icons/GOIcon/GOIcon.js +0 -2
  1180. package/lib-esm/icons/GOIcon/index.d.ts +0 -1
  1181. package/lib-esm/icons/GOIcon/index.js +0 -2
  1182. package/lib-esm/icons/JavaIcon/JavaIcon.d.ts +0 -4
  1183. package/lib-esm/icons/JavaIcon/JavaIcon.js +0 -2
  1184. package/lib-esm/icons/JavaIcon/index.d.ts +0 -1
  1185. package/lib-esm/icons/JavaIcon/index.js +0 -2
  1186. package/lib-esm/icons/JavaScriptIcon/JavaScriptIcon.d.ts +0 -4
  1187. package/lib-esm/icons/JavaScriptIcon/JavaScriptIcon.js +0 -2
  1188. package/lib-esm/icons/JavaScriptIcon/index.d.ts +0 -1
  1189. package/lib-esm/icons/JavaScriptIcon/index.js +0 -2
  1190. package/lib-esm/icons/NodeJSIcon/NodeJSIcon.d.ts +0 -4
  1191. package/lib-esm/icons/NodeJSIcon/NodeJSIcon.js +0 -2
  1192. package/lib-esm/icons/NodeJSIcon/index.d.ts +0 -1
  1193. package/lib-esm/icons/NodeJSIcon/index.js +0 -2
  1194. package/lib-esm/icons/PHPIcon/PHPIcon.d.ts +0 -4
  1195. package/lib-esm/icons/PHPIcon/PHPIcon.js +0 -2
  1196. package/lib-esm/icons/PHPIcon/index.d.ts +0 -1
  1197. package/lib-esm/icons/PHPIcon/index.js +0 -2
  1198. package/lib-esm/icons/PayloadIcon/PayloadIcon.d.ts +0 -4
  1199. package/lib-esm/icons/PayloadIcon/PayloadIcon.js +0 -2
  1200. package/lib-esm/icons/PayloadIcon/index.d.ts +0 -1
  1201. package/lib-esm/icons/PayloadIcon/index.js +0 -2
  1202. package/lib-esm/icons/PythonIcon/PythonIcon.d.ts +0 -4
  1203. package/lib-esm/icons/PythonIcon/PythonIcon.js +0 -2
  1204. package/lib-esm/icons/PythonIcon/index.d.ts +0 -1
  1205. package/lib-esm/icons/PythonIcon/index.js +0 -2
  1206. package/lib-esm/icons/RIcon/RIcon.d.ts +0 -4
  1207. package/lib-esm/icons/RIcon/RIcon.js +0 -2
  1208. package/lib-esm/icons/RIcon/index.d.ts +0 -1
  1209. package/lib-esm/icons/RIcon/index.js +0 -2
  1210. package/lib-esm/icons/RubyIcon/RubyIcon.d.ts +0 -4
  1211. package/lib-esm/icons/RubyIcon/RubyIcon.js +0 -2
  1212. package/lib-esm/icons/RubyIcon/index.d.ts +0 -1
  1213. package/lib-esm/icons/RubyIcon/index.js +0 -2
  1214. package/lib-esm/index.d.ts +0 -44
  1215. package/lib-esm/index.js +0 -2
  1216. package/lib-esm/jotai/app.d.ts +0 -51
  1217. package/lib-esm/jotai/app.js +0 -2
  1218. package/lib-esm/jotai/operation.d.ts +0 -37
  1219. package/lib-esm/jotai/operation.js +0 -2
  1220. package/lib-esm/jotai/replay.d.ts +0 -7
  1221. package/lib-esm/jotai/replay.js +0 -2
  1222. package/lib-esm/jotai/store.d.ts +0 -16
  1223. package/lib-esm/jotai/store.js +0 -2
  1224. package/lib-esm/jotai/use-write-atom.d.ts +0 -1
  1225. package/lib-esm/jotai/use-write-atom.js +0 -2
  1226. package/lib-esm/models/callback.d.ts +0 -5
  1227. package/lib-esm/models/callback.js +0 -2
  1228. package/lib-esm/models/code-sample-options.d.ts +0 -8
  1229. package/lib-esm/models/code-sample-options.js +0 -2
  1230. package/lib-esm/models/example.d.ts +0 -9
  1231. package/lib-esm/models/example.js +0 -2
  1232. package/lib-esm/models/field.d.ts +0 -7
  1233. package/lib-esm/models/field.js +0 -2
  1234. package/lib-esm/models/group.d.ts +0 -4
  1235. package/lib-esm/models/group.js +0 -2
  1236. package/lib-esm/models/index.d.ts +0 -15
  1237. package/lib-esm/models/index.js +0 -2
  1238. package/lib-esm/models/mediaContent.d.ts +0 -7
  1239. package/lib-esm/models/mediaContent.js +0 -2
  1240. package/lib-esm/models/mediaType.d.ts +0 -19
  1241. package/lib-esm/models/mediaType.js +0 -2
  1242. package/lib-esm/models/operation.d.ts +0 -20
  1243. package/lib-esm/models/operation.js +0 -2
  1244. package/lib-esm/models/request.d.ts +0 -12
  1245. package/lib-esm/models/request.js +0 -2
  1246. package/lib-esm/models/response.d.ts +0 -14
  1247. package/lib-esm/models/response.js +0 -2
  1248. package/lib-esm/models/schema.d.ts +0 -13
  1249. package/lib-esm/models/schema.js +0 -2
  1250. package/lib-esm/models/security.d.ts +0 -8
  1251. package/lib-esm/models/security.js +0 -2
  1252. package/lib-esm/models/tab.d.ts +0 -4
  1253. package/lib-esm/models/tab.js +0 -2
  1254. package/lib-esm/models/types.d.ts +0 -265
  1255. package/lib-esm/models/types.js +0 -2
  1256. package/lib-esm/services/OpenAPIParser.d.ts +0 -52
  1257. package/lib-esm/services/OpenAPIParser.js +0 -2
  1258. package/lib-esm/services/check.d.ts +0 -13
  1259. package/lib-esm/services/check.js +0 -2
  1260. package/lib-esm/services/code-samples/constants.d.ts +0 -2
  1261. package/lib-esm/services/code-samples/constants.js +0 -2
  1262. package/lib-esm/services/code-samples/generator.d.ts +0 -29
  1263. package/lib-esm/services/code-samples/generator.js +0 -2
  1264. package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.d.ts +0 -83
  1265. package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.js +0 -2
  1266. package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +0 -28
  1267. package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.js +0 -2
  1268. package/lib-esm/services/code-samples/httpsnippet/helpers/constants.d.ts +0 -24
  1269. package/lib-esm/services/code-samples/httpsnippet/helpers/constants.js +0 -2
  1270. package/lib-esm/services/code-samples/httpsnippet/helpers/lodash-int.d.ts +0 -5
  1271. package/lib-esm/services/code-samples/httpsnippet/helpers/lodash-int.js +0 -2
  1272. package/lib-esm/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.d.ts +0 -30
  1273. package/lib-esm/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.js +0 -2
  1274. package/lib-esm/services/code-samples/httpsnippet/helpers/reducer.d.ts +0 -1
  1275. package/lib-esm/services/code-samples/httpsnippet/helpers/reducer.js +0 -2
  1276. package/lib-esm/services/code-samples/httpsnippet/helpers/shell.d.ts +0 -10
  1277. package/lib-esm/services/code-samples/httpsnippet/helpers/shell.js +0 -2
  1278. package/lib-esm/services/code-samples/httpsnippet/helpers/string-utility.d.ts +0 -7
  1279. package/lib-esm/services/code-samples/httpsnippet/helpers/string-utility.js +0 -2
  1280. package/lib-esm/services/code-samples/httpsnippet/index.d.ts +0 -47
  1281. package/lib-esm/services/code-samples/httpsnippet/index.js +0 -2
  1282. package/lib-esm/services/code-samples/httpsnippet/targets/__mocks__/mock.d.ts +0 -3565
  1283. package/lib-esm/services/code-samples/httpsnippet/targets/__mocks__/mock.js +0 -2
  1284. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.d.ts +0 -10
  1285. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.js +0 -2
  1286. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/index.d.ts +0 -10
  1287. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/index.js +0 -2
  1288. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.d.ts +0 -10
  1289. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.js +0 -2
  1290. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.d.ts +0 -10
  1291. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.js +0 -2
  1292. package/lib-esm/services/code-samples/httpsnippet/targets/go/index.d.ts +0 -10
  1293. package/lib-esm/services/code-samples/httpsnippet/targets/go/index.js +0 -2
  1294. package/lib-esm/services/code-samples/httpsnippet/targets/go/native.d.ts +0 -10
  1295. package/lib-esm/services/code-samples/httpsnippet/targets/go/native.js +0 -2
  1296. package/lib-esm/services/code-samples/httpsnippet/targets/index.d.ts +0 -115
  1297. package/lib-esm/services/code-samples/httpsnippet/targets/index.js +0 -2
  1298. package/lib-esm/services/code-samples/httpsnippet/targets/java/httpclient.d.ts +0 -10
  1299. package/lib-esm/services/code-samples/httpsnippet/targets/java/httpclient.js +0 -2
  1300. package/lib-esm/services/code-samples/httpsnippet/targets/java/index.d.ts +0 -10
  1301. package/lib-esm/services/code-samples/httpsnippet/targets/java/index.js +0 -2
  1302. package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.d.ts +0 -10
  1303. package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.js +0 -2
  1304. package/lib-esm/services/code-samples/httpsnippet/targets/java8/index.d.ts +0 -10
  1305. package/lib-esm/services/code-samples/httpsnippet/targets/java8/index.js +0 -2
  1306. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.d.ts +0 -10
  1307. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.js +0 -2
  1308. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/index.d.ts +0 -12
  1309. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/index.js +0 -2
  1310. package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.d.ts +0 -10
  1311. package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.js +0 -2
  1312. package/lib-esm/services/code-samples/httpsnippet/targets/node/index.d.ts +0 -10
  1313. package/lib-esm/services/code-samples/httpsnippet/targets/node/index.js +0 -2
  1314. package/lib-esm/services/code-samples/httpsnippet/targets/php/curl.d.ts +0 -10
  1315. package/lib-esm/services/code-samples/httpsnippet/targets/php/curl.js +0 -2
  1316. package/lib-esm/services/code-samples/httpsnippet/targets/php/index.d.ts +0 -10
  1317. package/lib-esm/services/code-samples/httpsnippet/targets/php/index.js +0 -2
  1318. package/lib-esm/services/code-samples/httpsnippet/targets/php/types.d.ts +0 -11
  1319. package/lib-esm/services/code-samples/httpsnippet/targets/php/types.js +0 -2
  1320. package/lib-esm/services/code-samples/httpsnippet/targets/php/utils.d.ts +0 -2
  1321. package/lib-esm/services/code-samples/httpsnippet/targets/php/utils.js +0 -2
  1322. package/lib-esm/services/code-samples/httpsnippet/targets/python/index.d.ts +0 -10
  1323. package/lib-esm/services/code-samples/httpsnippet/targets/python/index.js +0 -2
  1324. package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.d.ts +0 -4
  1325. package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.js +0 -2
  1326. package/lib-esm/services/code-samples/httpsnippet/targets/r/httr.d.ts +0 -4
  1327. package/lib-esm/services/code-samples/httpsnippet/targets/r/httr.js +0 -2
  1328. package/lib-esm/services/code-samples/httpsnippet/targets/r/index.d.ts +0 -10
  1329. package/lib-esm/services/code-samples/httpsnippet/targets/r/index.js +0 -2
  1330. package/lib-esm/services/code-samples/httpsnippet/targets/r/utils.d.ts +0 -5
  1331. package/lib-esm/services/code-samples/httpsnippet/targets/r/utils.js +0 -2
  1332. package/lib-esm/services/code-samples/httpsnippet/targets/ruby/index.d.ts +0 -10
  1333. package/lib-esm/services/code-samples/httpsnippet/targets/ruby/index.js +0 -2
  1334. package/lib-esm/services/code-samples/httpsnippet/targets/ruby/native.d.ts +0 -10
  1335. package/lib-esm/services/code-samples/httpsnippet/targets/ruby/native.js +0 -2
  1336. package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.d.ts +0 -10
  1337. package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.js +0 -2
  1338. package/lib-esm/services/code-samples/httpsnippet/targets/shell/index.d.ts +0 -12
  1339. package/lib-esm/services/code-samples/httpsnippet/targets/shell/index.js +0 -2
  1340. package/lib-esm/services/code-samples/index.d.ts +0 -2
  1341. package/lib-esm/services/code-samples/index.js +0 -2
  1342. package/lib-esm/services/code-samples/types.d.ts +0 -72
  1343. package/lib-esm/services/code-samples/types.js +0 -2
  1344. package/lib-esm/services/config-options/helpers.d.ts +0 -3
  1345. package/lib-esm/services/config-options/helpers.js +0 -2
  1346. package/lib-esm/services/config-options/index.d.ts +0 -2
  1347. package/lib-esm/services/config-options/index.js +0 -2
  1348. package/lib-esm/services/config-options/normalizeOptions.d.ts +0 -3
  1349. package/lib-esm/services/config-options/normalizeOptions.js +0 -2
  1350. package/lib-esm/services/config-options/types.d.ts +0 -55
  1351. package/lib-esm/services/config-options/types.js +0 -2
  1352. package/lib-esm/services/history/helpers.d.ts +0 -5
  1353. package/lib-esm/services/history/helpers.js +0 -2
  1354. package/lib-esm/services/history/index.d.ts +0 -1
  1355. package/lib-esm/services/history/index.js +0 -2
  1356. package/lib-esm/services/index.d.ts +0 -8
  1357. package/lib-esm/services/index.js +0 -2
  1358. package/lib-esm/services/menu/builder.d.ts +0 -8
  1359. package/lib-esm/services/menu/builder.js +0 -2
  1360. package/lib-esm/services/menu/index.d.ts +0 -1
  1361. package/lib-esm/services/menu/index.js +0 -2
  1362. package/lib-esm/services/menu/markdown.d.ts +0 -8
  1363. package/lib-esm/services/menu/markdown.js +0 -2
  1364. package/lib-esm/services/menu/operation.d.ts +0 -10
  1365. package/lib-esm/services/menu/operation.js +0 -2
  1366. package/lib-esm/services/menu/tags.d.ts +0 -27
  1367. package/lib-esm/services/menu/tags.js +0 -2
  1368. package/lib-esm/services/types.d.ts +0 -126
  1369. package/lib-esm/services/types.js +0 -2
  1370. package/lib-esm/services/utils.d.ts +0 -18
  1371. package/lib-esm/services/utils.js +0 -2
  1372. package/lib-esm/standalone.d.ts +0 -24
  1373. package/lib-esm/standalone.js +0 -2
  1374. package/lib-esm/types/app.d.ts +0 -6
  1375. package/lib-esm/types/app.js +0 -2
  1376. package/lib-esm/types/index.d.ts +0 -3
  1377. package/lib-esm/types/index.js +0 -2
  1378. package/lib-esm/types/open-api.d.ts +0 -368
  1379. package/lib-esm/types/open-api.js +0 -2
  1380. package/lib-esm/types/security.d.ts +0 -11
  1381. package/lib-esm/types/security.js +0 -2
  1382. package/lib-esm/utils/JsonPointer.d.ts +0 -51
  1383. package/lib-esm/utils/JsonPointer.js +0 -2
  1384. package/lib-esm/utils/areArraysEqual.d.ts +0 -1
  1385. package/lib-esm/utils/areArraysEqual.js +0 -2
  1386. package/lib-esm/utils/argValuesHelpers.d.ts +0 -4
  1387. package/lib-esm/utils/argValuesHelpers.js +0 -2
  1388. package/lib-esm/utils/compose.d.ts +0 -1
  1389. package/lib-esm/utils/compose.js +0 -2
  1390. package/lib-esm/utils/configure-helpers.d.ts +0 -11
  1391. package/lib-esm/utils/configure-helpers.js +0 -2
  1392. package/lib-esm/utils/cookies.d.ts +0 -7
  1393. package/lib-esm/utils/cookies.js +0 -2
  1394. package/lib-esm/utils/createParsedDocument.d.ts +0 -2
  1395. package/lib-esm/utils/createParsedDocument.js +0 -2
  1396. package/lib-esm/utils/debounce.d.ts +0 -1
  1397. package/lib-esm/utils/debounce.js +0 -2
  1398. package/lib-esm/utils/debug.d.ts +0 -2
  1399. package/lib-esm/utils/debug.js +0 -2
  1400. package/lib-esm/utils/dom.d.ts +0 -7
  1401. package/lib-esm/utils/dom.js +0 -2
  1402. package/lib-esm/utils/environments.d.ts +0 -4
  1403. package/lib-esm/utils/environments.js +0 -2
  1404. package/lib-esm/utils/helpers.d.ts +0 -46
  1405. package/lib-esm/utils/helpers.js +0 -2
  1406. package/lib-esm/utils/index.d.ts +0 -23
  1407. package/lib-esm/utils/index.js +0 -2
  1408. package/lib-esm/utils/isMobile.d.ts +0 -5
  1409. package/lib-esm/utils/isMobile.js +0 -2
  1410. package/lib-esm/utils/loadAndBundleSpec.d.ts +0 -3
  1411. package/lib-esm/utils/loadAndBundleSpec.js +0 -2
  1412. package/lib-esm/utils/local-storage.d.ts +0 -2
  1413. package/lib-esm/utils/local-storage.js +0 -2
  1414. package/lib-esm/utils/object.d.ts +0 -3
  1415. package/lib-esm/utils/object.js +0 -2
  1416. package/lib-esm/utils/openapi.d.ts +0 -43
  1417. package/lib-esm/utils/openapi.js +0 -2
  1418. package/lib-esm/utils/parameters.d.ts +0 -2
  1419. package/lib-esm/utils/parameters.js +0 -2
  1420. package/lib-esm/utils/path.d.ts +0 -4
  1421. package/lib-esm/utils/path.js +0 -2
  1422. package/lib-esm/utils/queryString.d.ts +0 -9
  1423. package/lib-esm/utils/queryString.js +0 -2
  1424. package/lib-esm/utils/replaceVariables.d.ts +0 -2
  1425. package/lib-esm/utils/replaceVariables.js +0 -2
  1426. package/lib-esm/utils/saveTextBeforeHeading.d.ts +0 -7
  1427. package/lib-esm/utils/saveTextBeforeHeading.js +0 -2
  1428. package/lib-esm/utils/security-details.d.ts +0 -9
  1429. package/lib-esm/utils/security-details.js +0 -2
  1430. package/lib-esm/utils/session-storage.d.ts +0 -2
  1431. package/lib-esm/utils/session-storage.js +0 -2
  1432. package/lib-esm/utils/simplifyAstStructure.d.ts +0 -2
  1433. package/lib-esm/utils/simplifyAstStructure.js +0 -2
  1434. package/lib-esm/utils/sort.d.ts +0 -6
  1435. package/lib-esm/utils/sort.js +0 -2
  1436. package/lib-esm/utils/string.d.ts +0 -13
  1437. package/lib-esm/utils/string.js +0 -2
  1438. package/lib-esm/utils/test-utils.d.ts +0 -1
  1439. package/lib-esm/utils/test-utils.js +0 -2
  1440. package/lib-esm/utils/theme-helpers.d.ts +0 -3
  1441. package/lib-esm/utils/theme-helpers.js +0 -4
@@ -6,7 +6,7 @@ declare const targets: {
6
6
  extname: string;
7
7
  default: string;
8
8
  };
9
- fetch: import("..").LanguageHandler<(import("../..").BasicLanguageOptions & {
9
+ fetch: import("../index.js").LanguageHandler<(import("../../types.js").BasicLanguageOptions & {
10
10
  credentials?: "omit" | "same-origin" | "include";
11
11
  }) | undefined>;
12
12
  };
@@ -17,7 +17,7 @@ declare const targets: {
17
17
  extname: string;
18
18
  default: string;
19
19
  };
20
- fetch: import("..").LanguageHandler<import("../..").BasicLanguageOptions | undefined>;
20
+ fetch: import("../index.js").LanguageHandler<import("../../types.js").BasicLanguageOptions | undefined>;
21
21
  };
22
22
  python: {
23
23
  info: {
@@ -26,7 +26,7 @@ declare const targets: {
26
26
  extname: string;
27
27
  default: string;
28
28
  };
29
- requests: import("..").LanguageHandler<import("../..").BasicLanguageOptions | undefined>;
29
+ requests: import("../index.js").LanguageHandler<import("../../types.js").BasicLanguageOptions | undefined>;
30
30
  };
31
31
  shell: {
32
32
  info: {
@@ -35,7 +35,7 @@ declare const targets: {
35
35
  extname: string;
36
36
  default: string;
37
37
  };
38
- curl: import("..").LanguageHandler<(import("../..").BasicLanguageOptions & {
38
+ curl: import("../index.js").LanguageHandler<(import("../../types.js").BasicLanguageOptions & {
39
39
  binary?: boolean;
40
40
  }) | undefined>;
41
41
  };
@@ -46,7 +46,7 @@ declare const targets: {
46
46
  extname: string;
47
47
  default: string;
48
48
  };
49
- apachehttp: import("..").LanguageHandler<import("../..").BasicLanguageOptions | undefined>;
49
+ apachehttp: import("../index.js").LanguageHandler<import("../../types.js").BasicLanguageOptions | undefined>;
50
50
  };
51
51
  java: {
52
52
  info: {
@@ -55,7 +55,7 @@ declare const targets: {
55
55
  extname: string;
56
56
  default: string;
57
57
  };
58
- httpclient: import("..").LanguageHandler<import("../..").BasicLanguageOptions | undefined>;
58
+ httpclient: import("../index.js").LanguageHandler<import("../../types.js").BasicLanguageOptions | undefined>;
59
59
  };
60
60
  csharp: {
61
61
  info: {
@@ -64,7 +64,7 @@ declare const targets: {
64
64
  extname: string;
65
65
  default: string;
66
66
  };
67
- httpclient: import("..").LanguageHandler<import("../..").BasicLanguageOptions | undefined>;
67
+ httpclient: import("../index.js").LanguageHandler<import("../../types.js").BasicLanguageOptions | undefined>;
68
68
  };
69
69
  csharpNewtonsoft: {
70
70
  info: {
@@ -73,7 +73,7 @@ declare const targets: {
73
73
  extname: string;
74
74
  default: string;
75
75
  };
76
- httpclient: import("..").LanguageHandler<import("../..").BasicLanguageOptions | undefined>;
76
+ httpclient: import("../index.js").LanguageHandler<import("../../types.js").BasicLanguageOptions | undefined>;
77
77
  };
78
78
  go: {
79
79
  info: {
@@ -82,7 +82,7 @@ declare const targets: {
82
82
  extname: string;
83
83
  default: string;
84
84
  };
85
- native: import("..").LanguageHandler<import("../..").BasicLanguageOptions | undefined>;
85
+ native: import("../index.js").LanguageHandler<import("../../types.js").BasicLanguageOptions | undefined>;
86
86
  };
87
87
  php: {
88
88
  info: {
@@ -91,7 +91,7 @@ declare const targets: {
91
91
  extname: string;
92
92
  default: string;
93
93
  };
94
- curl: import("..").LanguageHandler<import("../..").BasicLanguageOptions | undefined>;
94
+ curl: import("../index.js").LanguageHandler<import("../../types.js").BasicLanguageOptions | undefined>;
95
95
  };
96
96
  ruby: {
97
97
  info: {
@@ -100,7 +100,7 @@ declare const targets: {
100
100
  extname: string;
101
101
  default: string;
102
102
  };
103
- native: import("..").LanguageHandler<import("../..").BasicLanguageOptions | undefined>;
103
+ native: import("../index.js").LanguageHandler<import("../../types.js").BasicLanguageOptions | undefined>;
104
104
  };
105
105
  r: {
106
106
  info: {
@@ -109,7 +109,7 @@ declare const targets: {
109
109
  extname: string;
110
110
  default: string;
111
111
  };
112
- httr: import("..").LanguageHandler<import("../..").BasicLanguageOptions | undefined>;
112
+ httr: import("../index.js").LanguageHandler<import("../../types.js").BasicLanguageOptions | undefined>;
113
113
  };
114
114
  };
115
115
  export default targets;
@@ -1,2 +1 @@
1
- "use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});const javascript_1=__importDefault(require("./javascript")),node_1=__importDefault(require("./node")),python_1=__importDefault(require("./python")),shell_1=__importDefault(require("./shell")),java8_1=__importDefault(require("./java8")),java_1=__importDefault(require("./java")),csharp_1=__importDefault(require("./csharp")),csharpNewtonsoft_1=__importDefault(require("./csharpNewtonsoft")),go_1=__importDefault(require("./go")),php_1=__importDefault(require("./php")),ruby_1=__importDefault(require("./ruby")),r_1=__importDefault(require("./r")),targets={javascript:javascript_1.default,node:node_1.default,python:python_1.default,shell:shell_1.default,java8:java8_1.default,java:java_1.default,csharp:csharp_1.default,csharpNewtonsoft:csharpNewtonsoft_1.default,go:go_1.default,php:php_1.default,ruby:ruby_1.default,r:r_1.default};exports.default=targets;
2
- //# sourceMappingURL=index.js.map
1
+ import o from"./javascript/index.js";import r from"./node/index.js";import m from"./python/index.js";import t from"./shell/index.js";import p from"./java8/index.js";import f from"./java/index.js";import i from"./csharp/index.js";import a from"./csharpNewtonsoft/index.js";import s from"./go/index.js";import e from"./php/index.js";import h from"./ruby/index.js";import c from"./r/index.js";const n={javascript:o,node:r,python:m,shell:t,java8:p,java:f,csharp:i,csharpNewtonsoft:a,go:s,php:e,ruby:h,r:c};var q=n;export{q as default};
@@ -1,5 +1,5 @@
1
- import type { JavaCodeSampleConfig } from '../../../types';
2
- import type { LanguageHandler } from '../..';
1
+ import type { JavaCodeSampleConfig } from '../../../types.js';
2
+ import type { LanguageHandler } from '../../index.js';
3
3
  declare const handler: LanguageHandler<JavaCodeSampleConfig['options']>;
4
4
  export declare const info: {
5
5
  key: string;
@@ -1,2 +1,3 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.info=void 0;const code_builder_1=require("../../helpers/code-builder"),__1=require("../.."),utils_1=require("../../../../utils"),code_helpers_1=require("../../helpers/code-helpers"),constants_1=require("../../helpers/constants"),constants_2=require("../../../../../constants"),hasQueryParams=e=>!(!e.uriObj.query||!Object.keys(e.uriObj.query).length),getBody=e=>e.postData&&e.postData.mimeType===constants_2.MediaTypes.URL_ENCODED?"HttpRequest.BodyPublishers.ofString(form)":e.postData?"HttpRequest.BodyPublishers.ofString(payload)":["POST","PUT","PATCH"].includes(e.method.toUpperCase())?'HttpRequest.BodyPublishers.ofString("some body text")':"",handler=function(e,t,{target:a,client:s}){var r,n,o;const p=Object.assign({indent:" ",withWrapper:!0},t),i=new code_builder_1.CodeBuilder({indentation:p.indent,variablesPrefix:p.variablesPrefix,capitalize:!0,lang:constants_1.Lang.JAVA});if(p.withComments&&addComments(i,e),p.withImports&&addImports(i,e),p.withWrapper&&(i.push("public class App {"),i.push(1,"public static void main(String[] args) throws Exception {"),i.push(2,"var httpClient = HttpClient.newBuilder().build();"),i.blank()),null===(r=e.securityOAuth2ExtraCalls)||void 0===r?void 0:r.length){const t=new __1.HTTPSnippet(null===(n=e.securityOAuth2ExtraCalls)||void 0===n?void 0:n[0]).convert(a,s,Object.assign(Object.assign({},p),{withImports:!1,withWrapper:!1,withComments:!1,variablesPrefix:"oauth2"}));i.push(t),i.blank(),i.push(2,"var oauth2Response = httpClient.send(oauth2Request, HttpResponse.BodyHandlers.ofString());"),i.push(2,'var accessToken = new JSONObject(oauth2Response.body()).getString("access_token");'),i.blank()}if(e.postData)switch((0,utils_1.normalizeMimeType)(e.postData.mimeType)){case constants_2.MediaTypes.URL_ENCODED:e.postData.params&&(i.push(2,"HashMap<String, String> params = new HashMap<>();"),e.postData.params.forEach((e=>{i.push(2,'params.put("%s", "%s");',e.name,e.value)})),i.blank(),i.push(2,"var form = params.keySet().stream()"),i.push(3,'.map(key -> key + "=" + URLEncoder.encode(params.get(key), StandardCharsets.UTF_8))'),i.push(3,'.collect(Collectors.joining("&"));'),i.blank());break;case constants_2.MediaTypes.JSON:e.postData.jsonObj&&(i.push(2,`var payload = String.join("\\n"\n ${(0,code_helpers_1.addIndentation)(JSON.stringify(e.postData.jsonObj,null,1).replace(/"/g,'\\"').replace(/^/gm,', "').replace(/$/gm,'"'),{level:3,indent:p.indent,firstLine:!1})}`),i.push(2,");"),i.blank());break;case constants_2.MediaTypes.XML:e.postData.text&&(i.push(2,'var payload = String.join("\\n"'),e.postData.text.trim().split("\n").forEach((e=>{const t=e.replace(/"/g,'\\"');i.push(3,`"${t}", `)})),i.push(2,");"),i.blank());break;case constants_2.MediaTypes.MULTIPART:e.postData.params&&(i.push(2,"var multipartBody = MultipartBodyPublisher.newBuilder();"),e.postData.params&&e.postData.params.forEach((e=>{i.push(2,'multipartBody.append("%s", "%s");',e.name,e.value)})),i.push(2,"var body = multipartBody.build();"),i.blank())}if(hasQueryParams(e)){i.push(2,"HashMap<String, String> params = new HashMap<>();");for(const[t,a]of Object.entries(e.uriObj.query))i.push(2,'params.put("%s", "%s");',t,a);i.blank(),i.push(2,"var query = params.keySet().stream()"),i.push(3,'.map(key -> key + "=" + URLEncoder.encode(params.get(key), StandardCharsets.UTF_8))'),i.push(3,'.collect(Collectors.joining("&"));'),i.blank()}i.push(2,`var ${i.var("host")} = "%s";`,e.uriObj.protocol+"//"+e.uriObj.host),(0,code_helpers_1.printUrlVariablesDeclarations)(e,i,2);const l=Object.assign(Object.assign({},e),{pathname:e.uriObj.pathname});i.push(2,`var ${i.var("pathname")} = %s;`,(0,code_helpers_1.buildUrlExpression)(l,i)),i.push(2,`var ${i.var("request")} = HttpRequest.newBuilder()`),"PATCH"===e.method.toUpperCase()?i.push(3,'.method("PATCH", %s)',getBody(e)):i.push(3,".%s(%s)",e.method.toUpperCase(),getBody(e)),i.push(3,`.uri(URI.create(${i.var("host")} + ${i.var("pathname")} %s))`,hasQueryParams(e)?"+ '?' + query":""),(null===(o=e.securityOAuth2ExtraCalls)||void 0===o?void 0:o.length)&&(e.allHeaders.Authorization='"Bearer " + accessToken');const u=Object.keys(e.allHeaders);if(u.length&&u.forEach((t=>{var a;i.push(3,'.header("%s", %s)',t,"Authorization"===t&&(null===(a=e.securityOAuth2ExtraCalls)||void 0===a?void 0:a.length)?e.allHeaders[t]:`"${e.allHeaders[t]}"`)})),e.basicAuth){const{username:t,password:a}=e.basicAuth;i.push(3,`.header("Authorization", "Basic " + Base64.getEncoder().encodeToString(("${t}:${a}").getBytes()))`)}return i.push(3,".build();"),p.withWrapper&&(i.blank(),i.push(2,"var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());"),i.blank(),i.push(2,"System.out.println(response.body());"),i.push(1,"}"),i.push("}")),i.join()};function addComments(e,t){var a;e.push("/**"),e.push(" * Requires JDK >= 11"),(null===(a=t.securityOAuth2ExtraCalls)||void 0===a?void 0:a.length)&&(e.push(" *"),e.push(' * Requires package "org.json" >= 20201115'),e.push(" * See here for installation details:"),e.push(" * https://search.maven.org/artifact/org.json/json")),e.push(" */"),e.blank()}function addImports(e,t){var a,s,r,n;e.push("import java.net.*;"),e.push("import java.net.http.*;"),e.push("import java.util.*;"),((0,utils_1.normalizeMimeType)(null===(a=t.postData)||void 0===a?void 0:a.mimeType)===constants_2.MediaTypes.URL_ENCODED&&(null===(s=t.postData)||void 0===s?void 0:s.params)||(null===(r=t.securityOAuth2ExtraCalls)||void 0===r?void 0:r.length)||hasQueryParams(t))&&(e.push("import java.nio.charset.StandardCharsets;"),e.push("import java.util.stream.Collectors;")),(null===(n=t.securityOAuth2ExtraCalls)||void 0===n?void 0:n.length)&&e.push("import org.json.JSONObject;"),e.blank()}exports.info={key:"httpclient",title:"HttpClient",link:"https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpClient.html",description:"HttpClient (Java SE 11 & JDK 11 )"},exports.default=handler;
2
- //# sourceMappingURL=httpclient.js.map
1
+ import{CodeBuilder as f}from"../../helpers/code-builder.js";import{HTTPSnippet as b}from"../../index.js";import{normalizeMimeType as l}from"../../../../utils.js";import{addIndentation as y,buildUrlExpression as g,printUrlVariablesDeclarations as v}from"../../helpers/code-helpers.js";import{Lang as j}from"../../helpers/constants.js";import{MediaTypes as i}from"../../../../../constants.js";const r=t=>!!(t.uriObj.query&&Object.keys(t.uriObj.query).length),o=t=>t.postData&&t.postData.mimeType===i.URL_ENCODED?"HttpRequest.BodyPublishers.ofString(form)":t.postData?"HttpRequest.BodyPublishers.ofString(payload)":["POST","PUT","PATCH"].includes(t.method.toUpperCase())?'HttpRequest.BodyPublishers.ofString("some body text")':"",C=function(t,s,{target:u,client:m}){const p=Object.assign({indent:" ",withWrapper:!0},s),a=new f({indentation:p.indent,variablesPrefix:p.variablesPrefix,capitalize:!0,lang:j.JAVA});if(p.withComments&&k(a,t),p.withImports&&c(a,t),p.withWrapper&&(a.push("public class App {"),a.push(1,"public static void main(String[] args) throws Exception {"),a.push(2,"var httpClient = HttpClient.newBuilder().build();"),a.blank()),t.securityOAuth2ExtraCalls?.length){const e=new b(t.securityOAuth2ExtraCalls?.[0]).convert(u,m,{...p,withImports:!1,withWrapper:!1,withComments:!1,variablesPrefix:"oauth2"});a.push(e),a.blank(),a.push(2,"var oauth2Response = httpClient.send(oauth2Request, HttpResponse.BodyHandlers.ofString());"),a.push(2,'var accessToken = new JSONObject(oauth2Response.body()).getString("access_token");'),a.blank()}if(t.postData)switch(l(t.postData.mimeType)){case i.URL_ENCODED:t.postData.params&&(a.push(2,"HashMap<String, String> params = new HashMap<>();"),t.postData.params.forEach(e=>{a.push(2,'params.put("%s", "%s");',e.name,e.value)}),a.blank(),a.push(2,"var form = params.keySet().stream()"),a.push(3,'.map(key -> key + "=" + URLEncoder.encode(params.get(key), StandardCharsets.UTF_8))'),a.push(3,'.collect(Collectors.joining("&"));'),a.blank());break;case i.JSON:t.postData.jsonObj&&(a.push(2,`var payload = String.join("\\n"
2
+ ${y(JSON.stringify(t.postData.jsonObj,null,1).replace(/"/g,'\\"').replace(/^/gm,', "').replace(/$/gm,'"'),{level:3,indent:p.indent,firstLine:!1})}`),a.push(2,");"),a.blank());break;case i.XML:t.postData.text&&(a.push(2,'var payload = String.join("\\n"'),t.postData.text.trim().split(`
3
+ `).forEach(e=>{const n=e.replace(/"/g,'\\"');a.push(3,`"${n}", `)}),a.push(2,");"),a.blank());break;case i.MULTIPART:t.postData.params&&(a.push(2,"var multipartBody = MultipartBodyPublisher.newBuilder();"),t.postData.params&&t.postData.params.forEach(e=>{a.push(2,'multipartBody.append("%s", "%s");',e.name,e.value)}),a.push(2,"var body = multipartBody.build();"),a.blank());break}if(r(t)){a.push(2,"HashMap<String, String> params = new HashMap<>();");for(const[e,n]of Object.entries(t.uriObj.query))a.push(2,'params.put("%s", "%s");',e,n);a.blank(),a.push(2,"var query = params.keySet().stream()"),a.push(3,'.map(key -> key + "=" + URLEncoder.encode(params.get(key), StandardCharsets.UTF_8))'),a.push(3,'.collect(Collectors.joining("&"));'),a.blank()}a.push(2,`var ${a.var("host")} = "%s";`,t.uriObj.protocol+"//"+t.uriObj.host),v(t,a,2);const d={...t,pathname:t.uriObj.pathname};a.push(2,`var ${a.var("pathname")} = %s;`,g(d,a)),a.push(2,`var ${a.var("request")} = HttpRequest.newBuilder()`),t.method.toUpperCase()==="PATCH"?a.push(3,'.method("PATCH", %s)',o(t)):a.push(3,".%s(%s)",t.method.toUpperCase(),o(t)),a.push(3,`.uri(URI.create(${a.var("host")} + ${a.var("pathname")} %s))`,r(t)?"+ '?' + query":""),t.securityOAuth2ExtraCalls?.length&&(t.allHeaders.Authorization='"Bearer " + accessToken');const h=Object.keys(t.allHeaders);if(h.length&&h.forEach(e=>{a.push(3,'.header("%s", %s)',e,e==="Authorization"&&t.securityOAuth2ExtraCalls?.length?t.allHeaders[e]:`"${t.allHeaders[e]}"`)}),t.basicAuth){const{username:e,password:n}=t.basicAuth;a.push(3,`.header("Authorization", "Basic " + Base64.getEncoder().encodeToString(("${e}:${n}").getBytes()))`)}return a.push(3,".build();"),p.withWrapper&&(a.blank(),a.push(2,"var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());"),a.blank(),a.push(2,"System.out.println(response.body());"),a.push(1,"}"),a.push("}")),a.join()},w={key:"httpclient",title:"HttpClient",link:"https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpClient.html",description:"HttpClient (Java SE 11 & JDK 11 )"};var R=C;function k(t,s){t.push("/**"),t.push(" * Requires JDK >= 11"),s.securityOAuth2ExtraCalls?.length&&(t.push(" *"),t.push(' * Requires package "org.json" >= 20201115'),t.push(" * See here for installation details:"),t.push(" * https://search.maven.org/artifact/org.json/json")),t.push(" */"),t.blank()}function c(t,s){t.push("import java.net.*;"),t.push("import java.net.http.*;"),t.push("import java.util.*;"),(l(s.postData?.mimeType)===i.URL_ENCODED&&s.postData?.params||s.securityOAuth2ExtraCalls?.length||r(s))&&(t.push("import java.nio.charset.StandardCharsets;"),t.push("import java.util.stream.Collectors;")),s.securityOAuth2ExtraCalls?.length&&t.push("import org.json.JSONObject;"),t.blank()}export{R as default,w as info};
@@ -5,6 +5,6 @@ declare const _default: {
5
5
  extname: string;
6
6
  default: string;
7
7
  };
8
- httpclient: import("../..").LanguageHandler<import("../../..").BasicLanguageOptions | undefined>;
8
+ httpclient: import("../../index.js").LanguageHandler<import("../../../types.js").BasicLanguageOptions | undefined>;
9
9
  };
10
10
  export default _default;
@@ -1,2 +1 @@
1
- "use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0});const httpclient_1=__importDefault(require("./httpclient"));exports.default={info:{key:"java",title:"Java",extname:".java",default:"httpclient"},httpclient:httpclient_1.default};
2
- //# sourceMappingURL=index.js.map
1
+ import t from"./httpclient.js";var e={info:{key:"java",title:"Java",extname:".java",default:"httpclient"},httpclient:t};export{e as default};
@@ -1,5 +1,5 @@
1
- import type { Java8CodeSampleConfig } from '../../../types';
2
- import type { LanguageHandler } from '../..';
1
+ import type { Java8CodeSampleConfig } from '../../../types.js';
2
+ import type { LanguageHandler } from '../../index.js';
3
3
  declare const handler: LanguageHandler<Java8CodeSampleConfig['options']>;
4
4
  export declare const info: {
5
5
  key: string;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.info=void 0;const code_builder_1=require("../../helpers/code-builder"),index_1=require("../../index"),utils_1=require("../../../../utils"),generator_1=require("../../../generator"),constants_1=require("../../helpers/constants"),code_helpers_1=require("../../helpers/code-helpers"),constants_2=require("../../../../../constants"),handler=function(t,e,{target:s,client:a}){var r,i;const n=Object.assign({indent:" ",withWrapper:!0},e),p=new code_builder_1.CodeBuilder({indentation:n.indent,variablesPrefix:n.variablesPrefix,capitalize:!0,lang:constants_1.Lang.JAVA8}),o=formatHttpMethod(t.method);if(n.withComments&&addComments(p),n.withImports&&addImports(p,t),n.withWrapper&&(p.push("public class App {"),p.push(1,"public static void main(String[] args ) throws java.io.IOException {"),p.push(2,"HttpClient httpClient = HttpClientBuilder.create().build();"),p.blank()),null===(r=t.securityOAuth2ExtraCalls)||void 0===r?void 0:r.length){const e=new index_1.HTTPSnippet(null===(i=t.securityOAuth2ExtraCalls)||void 0===i?void 0:i[0]).convert(s,a,Object.assign(Object.assign({},n),{withImports:!1,withWrapper:!1,withComments:!1,variablesPrefix:"oauth2"}));p.push(e),p.push(2,"JSONObject %s = new JSONObject(EntityUtils.toString(httpClient.execute(%s).getEntity()));","oauth2Response","oauth2Request"),p.push(2,'String accessToken = %s.getString("access_token");',"oauth2Response"),p.blank()}(0,code_helpers_1.printUrlVariablesDeclarations)(t,p,2);const u=(0,code_helpers_1.buildUrlExpression)(t,p);p.push(2,`%s ${p.var("request")} = new %s(%s);`,o,o,u);const h=Object.keys(t.allHeaders);if(!h.length||t.postData&&t.postData.mimeType==constants_2.MediaTypes.MULTIPART||h.forEach((e=>{var s;p.push(2,'%s.setHeader("%s", %s);',p.var("request"),e,(null===(s=t.securityOAuth2ExtraCalls)||void 0===s?void 0:s.length)?'"Bearer " + accessToken':`"${t.allHeaders[e]}"`)})),t.basicAuth){const{username:e,password:s}=t.basicAuth;p.push(2,`String encodedString = Base64.getEncoder().encodeToString("${e}:${s}".getBytes());`),p.push(2,'%s.setHeader("%s", "%s"+encodedString);',p.var("request"),"Authorization","Basic ")}if(t.postData)switch((0,utils_1.normalizeMimeType)(t.postData.mimeType)){case constants_2.MediaTypes.URL_ENCODED:t.postData.params&&(p.blank(),p.push(2,"List<NameValuePair> params = new ArrayList<NameValuePair>();"),t.postData.params.forEach((t=>{p.push(2,'params.add(new BasicNameValuePair("%s", "%s"));',t.name,t.value)})),p.push(2,"%s.setEntity(new UrlEncodedFormEntity(params));",p.var("request")),p.blank());break;case constants_2.MediaTypes.MULTIPART:t.postData.params&&(p.push(2,"MultipartEntity reqEntity = new MultipartEntity();"),t.postData.params.forEach((t=>{p.push(2,'reqEntity.addPart("%s", %s);',t.name,isString(t.value)?`new StringBody("${t.value}")`:t.value)})),p.push(2,"%s.setEntity(reqEntity);",p.var("request")));break;case constants_2.MediaTypes.JSON:if(t.postData.jsonObj){p.push(2,"JSONObject payload = new JSONObject();");for(const[e,s]of Object.entries(t.postData.jsonObj))Array.isArray(s)?(p.push(2,'payload.put("%s", new JSONArray()',e),s.forEach((t=>{isObject(t)?(p.push(3,".put(new JSONObject()"),c(t,4),p.push(3,")")):p.push(3,".put(%s)",formatValue(t))})),p.push(2,");")):isObject(s)?(p.push(2,'payload.put("%s", new JSONObject()%s',e,(0,utils_1.isEmptyObject)(s)?");":""),c(s,3),(0,utils_1.isEmptyObject)(s)||p.push(2,");")):p.push(2,'payload.put("%s", %s);',e,formatValue(s));p.push(2,"%s.setEntity(new StringEntity(payload.toString()));",p.var("request"))}break;case constants_2.MediaTypes.XML:t.postData.text&&(p.push(2,'String payload = String.join("\\n"'),t.postData.text.trim().split("\n").forEach((t=>{const e=t.replace(/"/g,'\\"');p.push(3,`"${e}", `)})),p.push(2,");"),p.push(2,"%s.setEntity(new StringEntity(payload));",p.var("request")))}return n.withWrapper&&(p.push(2,`String ${p.var("response")} = EntityUtils.toString(httpClient.execute(request).getEntity());`),p.blank(),p.push(2,"System.out.println(response);"),p.push(1,"}"),p.push("}")),p.join();function c(t,e){for(const[s,a]of Object.entries(t))isObject(a)?(p.push(e,'.put("%s", new JSONObject()',s),c(a,e+1),p.push(e,")")):p.push(e,'.put("%s", %s)',s,formatValue(a))}};function addComments(t){t.push("/**"),t.push(" * Requires JDK >= 8"),t.push(" *"),t.push(" * Requires Apache HttpComponents Client >= 4.3.5"),t.push(" * See here for installation details:"),t.push(" * https://search.maven.org/artifact/org.apache.httpcomponents/httpcomponents-client"),t.push(" *"),t.push(' * Requires package "junit4"'),t.push(" * See here for installation details:"),t.push(" * https://junit.org/junit4"),t.push(" *"),t.push(' * Requires package "org.json" >= 20180130'),t.push(" * See here for installation details:"),t.push(" * https://search.maven.org/artifact/org.json/json"),t.push(" */"),t.blank()}function addImports(t,e){var s,a,r;t.push("import org.apache.http.util.EntityUtils;"),t.push("import org.apache.http.NameValuePair;"),t.push("import org.apache.http.client.HttpClient;"),t.push("import org.apache.http.client.entity.UrlEncodedFormEntity;"),e.method&&addHttpMethodImport(t,e.method),(null===(s=e.securityOAuth2ExtraCalls)||void 0===s?void 0:s.length)&&(null===(a=e.securityOAuth2ExtraCalls)||void 0===a?void 0:a[0].method.toLowerCase())!==e.method.toLowerCase()&&addHttpMethodImport(t,null===(r=e.securityOAuth2ExtraCalls)||void 0===r?void 0:r[0].method),t.push("import org.apache.http.impl.client.HttpClientBuilder;"),t.push("import org.apache.http.message.BasicNameValuePair;"),t.push("import org.apache.http.entity.StringEntity;"),t.push("import org.json.JSONObject;"),t.push("import org.json.JSONArray;"),t.push("import java.util.ArrayList;"),t.push("import java.util.List;"),t.push("import org.apache.http.entity.mime.MultipartEntity;"),t.push("import org.apache.http.entity.mime.content.StringBody;"),e.basicAuth&&t.push("import java.util.Base64;"),t.blank()}function addHttpMethodImport(t,e){const s=formatHttpMethod(e);t.push(`import org.apache.http.client.methods.${s};`)}function formatHttpMethod(t){return"Http"+(0,generator_1.capitalizeFirst)(t.toLowerCase())}function isString(t){return"[object String]"===Object.prototype.toString.call(t)}function isObject(t){const e=typeof t;return"function"===e||"object"===e&&!!t}function formatValue(t){return isString(t)?JSON.stringify(t):null==t?"JSONObject.NULL":t}exports.info={key:"apachehttp",title:"Apache http",link:"https://hc.apache.org/httpcomponents-client-4.5.x/",description:"Apache HttpClient"},exports.default=handler;
2
- //# sourceMappingURL=apachehttp.js.map
1
+ import{CodeBuilder as j}from"../../helpers/code-builder.js";import{HTTPSnippet as d}from"../../index.js";import{isEmptyObject as y,normalizeMimeType as w}from"../../../../utils.js";import{capitalizeFirst as A}from"../../../generator.js";import{Lang as C}from"../../helpers/constants.js";import{buildUrlExpression as v,printUrlVariablesDeclarations as k}from"../../helpers/code-helpers.js";import{MediaTypes as n}from"../../../../../constants.js";const N=function(t,i,{target:h,client:E}){const p=Object.assign({indent:" ",withWrapper:!0},i),e=new j({indentation:p.indent,variablesPrefix:p.variablesPrefix,capitalize:!0,lang:C.JAVA8}),c=b(t.method);if(p.withComments&&x(e),p.withImports&&q(e,t),p.withWrapper&&(e.push("public class App {"),e.push(1,"public static void main(String[] args ) throws java.io.IOException {"),e.push(2,"HttpClient httpClient = HttpClientBuilder.create().build();"),e.blank()),t.securityOAuth2ExtraCalls?.length){const a=new d(t.securityOAuth2ExtraCalls?.[0]).convert(h,E,{...p,withImports:!1,withWrapper:!1,withComments:!1,variablesPrefix:"oauth2"});e.push(a),e.push(2,"JSONObject %s = new JSONObject(EntityUtils.toString(httpClient.execute(%s).getEntity()));","oauth2Response","oauth2Request"),e.push(2,'String accessToken = %s.getString("access_token");',"oauth2Response"),e.blank()}k(t,e,2);const S=v(t,e);e.push(2,`%s ${e.var("request")} = new %s(%s);`,c,c,S);const f=Object.keys(t.allHeaders);if(f.length&&!(t.postData&&t.postData.mimeType==n.MULTIPART)&&f.forEach(a=>{e.push(2,'%s.setHeader("%s", %s);',e.var("request"),a,t.securityOAuth2ExtraCalls?.length?'"Bearer " + accessToken':`"${t.allHeaders[a]}"`)}),t.basicAuth){const{username:a,password:s}=t.basicAuth;e.push(2,`String encodedString = Base64.getEncoder().encodeToString("${a}:${s}".getBytes());`),e.push(2,'%s.setHeader("%s", "%s"+encodedString);',e.var("request"),"Authorization","Basic ")}if(t.postData)switch(w(t.postData.mimeType)){case n.URL_ENCODED:t.postData.params&&(e.blank(),e.push(2,"List<NameValuePair> params = new ArrayList<NameValuePair>();"),t.postData.params.forEach(a=>{e.push(2,'params.add(new BasicNameValuePair("%s", "%s"));',a.name,a.value)}),e.push(2,"%s.setEntity(new UrlEncodedFormEntity(params));",e.var("request")),e.blank());break;case n.MULTIPART:t.postData.params&&(e.push(2,"MultipartEntity reqEntity = new MultipartEntity();"),t.postData.params.forEach(a=>{e.push(2,'reqEntity.addPart("%s", %s);',a.name,O(a.value)?`new StringBody("${a.value}")`:a.value)}),e.push(2,"%s.setEntity(reqEntity);",e.var("request")));break;case n.JSON:if(t.postData.jsonObj){e.push(2,"JSONObject payload = new JSONObject();");for(const[a,s]of Object.entries(t.postData.jsonObj))Array.isArray(s)?(e.push(2,'payload.put("%s", new JSONArray()',a),s.forEach(r=>{l(r)?(e.push(3,".put(new JSONObject()"),o(r,4),e.push(3,")")):e.push(3,".put(%s)",m(r))}),e.push(2,");")):l(s)?(e.push(2,'payload.put("%s", new JSONObject()%s',a,y(s)?");":""),o(s,3),y(s)||e.push(2,");")):e.push(2,'payload.put("%s", %s);',a,m(s));e.push(2,"%s.setEntity(new StringEntity(payload.toString()));",e.var("request"))}break;case n.XML:t.postData.text&&(e.push(2,'String payload = String.join("\\n"'),t.postData.text.trim().split(`
2
+ `).forEach(a=>{const s=a.replace(/"/g,'\\"');e.push(3,`"${s}", `)}),e.push(2,");"),e.push(2,"%s.setEntity(new StringEntity(payload));",e.var("request")));break}return p.withWrapper&&(e.push(2,`String ${e.var("response")} = EntityUtils.toString(httpClient.execute(request).getEntity());`),e.blank(),e.push(2,"System.out.println(response);"),e.push(1,"}"),e.push("}")),e.join();function o(a,s){for(const[r,u]of Object.entries(a))l(u)?(e.push(s,'.put("%s", new JSONObject()',r),o(u,s+1),e.push(s,")")):e.push(s,'.put("%s", %s)',r,m(u))}},U={key:"apachehttp",title:"Apache http",link:"https://hc.apache.org/httpcomponents-client-4.5.x/",description:"Apache HttpClient"};var R=N;function x(t){t.push("/**"),t.push(" * Requires JDK >= 8"),t.push(" *"),t.push(" * Requires Apache HttpComponents Client >= 4.3.5"),t.push(" * See here for installation details:"),t.push(" * https://search.maven.org/artifact/org.apache.httpcomponents/httpcomponents-client"),t.push(" *"),t.push(' * Requires package "junit4"'),t.push(" * See here for installation details:"),t.push(" * https://junit.org/junit4"),t.push(" *"),t.push(' * Requires package "org.json" >= 20180130'),t.push(" * See here for installation details:"),t.push(" * https://search.maven.org/artifact/org.json/json"),t.push(" */"),t.blank()}function q(t,i){t.push("import org.apache.http.util.EntityUtils;"),t.push("import org.apache.http.NameValuePair;"),t.push("import org.apache.http.client.HttpClient;"),t.push("import org.apache.http.client.entity.UrlEncodedFormEntity;"),i.method&&g(t,i.method),i.securityOAuth2ExtraCalls?.length&&i.securityOAuth2ExtraCalls?.[0].method.toLowerCase()!==i.method.toLowerCase()&&g(t,i.securityOAuth2ExtraCalls?.[0].method),t.push("import org.apache.http.impl.client.HttpClientBuilder;"),t.push("import org.apache.http.message.BasicNameValuePair;"),t.push("import org.apache.http.entity.StringEntity;"),t.push("import org.json.JSONObject;"),t.push("import org.json.JSONArray;"),t.push("import java.util.ArrayList;"),t.push("import java.util.List;"),t.push("import org.apache.http.entity.mime.MultipartEntity;"),t.push("import org.apache.http.entity.mime.content.StringBody;"),i.basicAuth&&t.push("import java.util.Base64;"),t.blank()}function g(t,i){const h=b(i);t.push(`import org.apache.http.client.methods.${h};`)}function b(t){return"Http"+A(t.toLowerCase())}function O(t){return Object.prototype.toString.call(t)==="[object String]"}function l(t){const i=typeof t;return i==="function"||i==="object"&&!!t}function m(t){return O(t)?JSON.stringify(t):t??"JSONObject.NULL"}export{R as default,U as info};
@@ -5,6 +5,6 @@ declare const _default: {
5
5
  extname: string;
6
6
  default: string;
7
7
  };
8
- apachehttp: import("../..").LanguageHandler<import("../../..").BasicLanguageOptions | undefined>;
8
+ apachehttp: import("../../index.js").LanguageHandler<import("../../../types.js").BasicLanguageOptions | undefined>;
9
9
  };
10
10
  export default _default;
@@ -1,2 +1 @@
1
- "use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0});const apachehttp_1=__importDefault(require("./apachehttp"));exports.default={info:{key:"java8",title:"Java8+Apache",extname:".java",default:"apachehttp"},apachehttp:apachehttp_1.default};
2
- //# sourceMappingURL=index.js.map
1
+ import a from"./apachehttp.js";var e={info:{key:"java8",title:"Java8+Apache",extname:".java",default:"apachehttp"},apachehttp:a};export{e as default};
@@ -1,5 +1,5 @@
1
- import type { LanguageHandler } from '../..';
2
- import type { JavaScriptCodeSampleConfig } from '../../../types';
1
+ import type { LanguageHandler } from '../../index.js';
2
+ import type { JavaScriptCodeSampleConfig } from '../../../types.js';
3
3
  declare const handler: LanguageHandler<JavaScriptCodeSampleConfig['options']>;
4
4
  export declare const info: {
5
5
  key: string;
@@ -1,2 +1 @@
1
- "use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.info=void 0;const stringify_object_1=__importDefault(require("stringify-object")),code_builder_1=require("../../helpers/code-builder"),code_helpers_1=require("../../helpers/code-helpers"),utils_1=require("../../../../utils"),__1=require("../.."),constants_1=require("../../helpers/constants"),constants_2=require("../../../../../constants"),handler=function(e,t,{target:s,client:a}){var n,r,i,o,l;const d=Object.assign({indent:" ",credentials:null},t),c=new code_builder_1.CodeBuilder({indentation:d.indent,variablesPrefix:d.variablesPrefix,capitalize:!0,lang:constants_1.Lang.JAVASCRIPT}),p={method:e.method.toUpperCase()};Object.keys(e.headersObj).length&&(p.headers=e.headersObj);let u=!1;if(d.withComments&&addComments(c),null===(n=e.securityOAuth2ExtraCalls)||void 0===n?void 0:n.length){const t=new __1.HTTPSnippet(null===(r=e.securityOAuth2ExtraCalls)||void 0===r?void 0:r[0]).convert(s,a,Object.assign(Object.assign({},d),{withImports:!1,withComments:!1,variablesPrefix:"oAuth2"}));c.push(t),c.blank(),p.headers=p.headers||{},p.headers.Authorization="'Bearer ' + oAuth2Data.access_token",u=!0}null!==d.credentials&&(p.credentials=d.credentials);const h=Object.getOwnPropertyNames(e.queryObj).length;if(h&&c.push(`const ${c.var("query")} = new URLSearchParams(${(0,stringify_object_1.default)(e.queryObj,{indent:d.indent,inlineCharacterLimit:25})}).toString();`).blank(),e.postData)switch((0,utils_1.normalizeMimeType)(e.postData.mimeType)){case constants_2.MediaTypes.URL_ENCODED:p.body=e.postData.paramsObj?`new URLSearchParams(${c.var("formData")}).toString()`:e.postData.text,e.postData.paramsObj&&c.push(`const ${c.var("formData")} = ${(0,code_helpers_1.addIndentation)((0,stringify_object_1.default)(e.postData.paramsObj,{indent:d.indent,inlineCharacterLimit:25}),{level:0,firstLine:!1})};`).blank();break;case constants_2.MediaTypes.JSON:e.postData.jsonObj&&(p.body=`JSON.stringify(${(0,code_helpers_1.addIndentation)((0,stringify_object_1.default)(e.postData.jsonObj,{indent:d.indent,inlineCharacterLimit:25}),{level:1,firstLine:!1})})`);break;case constants_2.MediaTypes.MULTIPART:c.push(`const ${c.var("form")} = new FormData();`),null===(i=null==p?void 0:p.headers)||void 0===i||delete i["Content-Type"],e.postData.params.forEach((function(e){c.push(`${c.var("form")}.append(%s, %s);`,JSON.stringify(e.name),JSON.stringify(e.value||e.fileName||""))})),p.body=c.var("form"),c.blank();break;default:e.postData.text&&(p.body=`\`${(0,code_helpers_1.addIndentation)(e.postData.text,{level:2,indent:d.indent,firstLine:!1}).trim()}\``)}const _=p.headers&&p.headers.Accept&&(0,utils_1.normalizeMimeType)(p.headers.Accept)===constants_2.MediaTypes.JSON||(0,utils_1.normalizeMimeType)(null===(o=e.postData)||void 0===o?void 0:o.mimeType)===constants_2.MediaTypes.JSON;if(e.basicAuth){const{username:t,password:s}=e.basicAuth;p.headers=p.headers||{},p.headers.Authorization=`'Basic ' + btoa('${t}:${s}')`,u=!0}(0,code_helpers_1.printUrlVariablesDeclarations)(e,c);const m=(0,code_helpers_1.buildUrlExpression)(e,c);return c.push(`const ${c.var("resp")} = await fetch(`).push(1,"`"+m+(h?"?${"+c.var("query")+"}":"")+"`,").push((0,code_helpers_1.addIndentation)((0,stringify_object_1.default)(p,{indent:d.indent,inlineCharacterLimit:25,transform:(0,code_helpers_1.getPreserveTransformer)({body:!0,authorizationHeader:u})}),{level:1,indent:d.indent})).push(");").blank(),(null===(l=e.allResponseCodes)||void 0===l?void 0:l.includes("204"))?(c.push("if (resp.status === 204) {").push(1,"console.log('success');").push("} else {"),c.push(1,`const ${c.var("data")} = await ${c.var("resp")}.${_?"json()":"text()"};`).push(1,`console.log(${c.var("data")});`).push("}")):c.push(`const ${c.var("data")} = await ${c.var("resp")}.${_?"json()":"text()"};`).push(`console.log(${c.var("data")});`),c.join()};function addComments(e){e.push("/**"),e.push(" * Requires ES8-compatible browser: https://caniuse.com/async-functions"),e.push(" */"),e.blank()}exports.info={key:"fetch",title:"fetch",link:"https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch",description:"Perform asynchronous HTTP requests with the Fetch API"},exports.default=handler;
2
- //# sourceMappingURL=fetch.js.map
1
+ import r from"stringify-object";import{CodeBuilder as v}from"../../helpers/code-builder.js";import{addIndentation as o,getPreserveTransformer as y,buildUrlExpression as O,printUrlVariablesDeclarations as $}from"../../helpers/code-helpers.js";import{normalizeMimeType as p}from"../../../../utils.js";import{HTTPSnippet as g}from"../../index.js";import{Lang as D}from"../../helpers/constants.js";import{MediaTypes as i}from"../../../../../constants.js";const A=function(e,f,{target:m,client:c}){const n={indent:" ",credentials:null,...f},t=new v({indentation:n.indent,variablesPrefix:n.variablesPrefix,capitalize:!0,lang:D.JAVASCRIPT}),a={method:e.method.toUpperCase()};Object.keys(e.headersObj).length&&(a.headers=e.headersObj);let l=!1;if(n.withComments&&j(t),e.securityOAuth2ExtraCalls?.length){const s=new g(e.securityOAuth2ExtraCalls?.[0]).convert(m,c,{...n,withImports:!1,withComments:!1,variablesPrefix:"oAuth2"});t.push(s),t.blank(),a.headers=a.headers||{},a.headers.Authorization="'Bearer ' + oAuth2Data.access_token",l=!0}n.credentials!==null&&(a.credentials=n.credentials);const h=Object.getOwnPropertyNames(e.queryObj).length;if(h&&t.push(`const ${t.var("query")} = new URLSearchParams(${r(e.queryObj,{indent:n.indent,inlineCharacterLimit:25})}).toString();`).blank(),e.postData)switch(p(e.postData.mimeType)){case i.URL_ENCODED:a.body=e.postData.paramsObj?`new URLSearchParams(${t.var("formData")}).toString()`:e.postData.text,e.postData.paramsObj&&t.push(`const ${t.var("formData")} = ${o(r(e.postData.paramsObj,{indent:n.indent,inlineCharacterLimit:25}),{level:0,firstLine:!1})};`).blank();break;case i.JSON:e.postData.jsonObj&&(a.body=`JSON.stringify(${o(r(e.postData.jsonObj,{indent:n.indent,inlineCharacterLimit:25}),{level:1,firstLine:!1})})`);break;case i.MULTIPART:t.push(`const ${t.var("form")} = new FormData();`),delete a?.headers?.["Content-Type"],e.postData.params.forEach(function(s){t.push(`${t.var("form")}.append(%s, %s);`,JSON.stringify(s.name),JSON.stringify(s.value||s.fileName||""))}),a.body=t.var("form"),t.blank();break;default:e.postData.text&&(a.body=`\`${o(e.postData.text,{level:2,indent:n.indent,firstLine:!1}).trim()}\``)}const d=a.headers&&a.headers.Accept&&p(a.headers.Accept)===i.JSON||p(e.postData?.mimeType)===i.JSON;if(e.basicAuth){const{username:s,password:b}=e.basicAuth;a.headers=a.headers||{},a.headers.Authorization=`'Basic ' + btoa('${s}:${b}')`,l=!0}$(e,t);const u=O(e,t);return t.push(`const ${t.var("resp")} = await fetch(`).push(1,"`"+u+(h?"?${"+t.var("query")+"}":"")+"`,").push(o(r(a,{indent:n.indent,inlineCharacterLimit:25,transform:y({body:!0,authorizationHeader:l})}),{level:1,indent:n.indent})).push(");").blank(),e.allResponseCodes?.includes("204")?(t.push("if (resp.status === 204) {").push(1,"console.log('success');").push("} else {"),t.push(1,`const ${t.var("data")} = await ${t.var("resp")}.${d?"json()":"text()"};`).push(1,`console.log(${t.var("data")});`).push("}")):t.push(`const ${t.var("data")} = await ${t.var("resp")}.${d?"json()":"text()"};`).push(`console.log(${t.var("data")});`),t.join()};function j(e){e.push("/**"),e.push(" * Requires ES8-compatible browser: https://caniuse.com/async-functions"),e.push(" */"),e.blank()}const T={key:"fetch",title:"fetch",link:"https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch",description:"Perform asynchronous HTTP requests with the Fetch API"};var N=A;export{N as default,T as info};
@@ -5,7 +5,7 @@ declare const _default: {
5
5
  extname: string;
6
6
  default: string;
7
7
  };
8
- fetch: import("../..").LanguageHandler<(import("../../..").BasicLanguageOptions & {
8
+ fetch: import("../../index.js").LanguageHandler<(import("../../../types.js").BasicLanguageOptions & {
9
9
  credentials?: "omit" | "same-origin" | "include";
10
10
  }) | undefined>;
11
11
  };
@@ -1,2 +1 @@
1
- "use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});const fetch_1=__importDefault(require("./fetch"));exports.default={info:{key:"javascript",title:"JavaScript",extname:".js",default:"fetch"},fetch:fetch_1.default};
2
- //# sourceMappingURL=index.js.map
1
+ import t from"./fetch.js";var a={info:{key:"javascript",title:"JavaScript",extname:".js",default:"fetch"},fetch:t};export{a as default};
@@ -1,5 +1,5 @@
1
- import type { LanguageHandler } from '../..';
2
- import type { NodeJsCodeSampleConfig } from '../../../types';
1
+ import type { LanguageHandler } from '../../index.js';
2
+ import type { NodeJsCodeSampleConfig } from '../../../types.js';
3
3
  declare const handler: LanguageHandler<NodeJsCodeSampleConfig['options']>;
4
4
  export declare const info: {
5
5
  key: string;
@@ -1,2 +1 @@
1
- "use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.info=void 0;const stringify_object_1=__importDefault(require("stringify-object")),code_builder_1=require("../../helpers/code-builder"),code_helpers_1=require("../../helpers/code-helpers"),constants_1=require("../../helpers/constants"),utils_1=require("../../../../utils"),__1=require("../.."),constants_2=require("../../../../../constants"),handler=function(e,t,{target:a,client:s}){var n,r,i,o,l;const d=Object.assign({indent:" ",showBoilerplate:!0,level:1},t),{level:p}=d;let c=!1;const h=new code_builder_1.CodeBuilder({indentation:d.indent,variablesPrefix:d.variablesPrefix,capitalize:!0,lang:constants_1.Lang.NODEJS});d.withComments&&addComments(h),d.withImports&&(h.push("import fetch from 'node-fetch';"),h.blank()),d.showBoilerplate&&h.push("async function run() {");const u={method:e.method.toUpperCase()};Object.keys(e.headersObj).length&&(u.headers=e.headersObj);let m=!1;if(null===(n=e.securityOAuth2ExtraCalls)||void 0===n?void 0:n.length){const t=new __1.HTTPSnippet(null===(r=e.securityOAuth2ExtraCalls)||void 0===r?void 0:r[0]).convert(a,s,Object.assign(Object.assign({},d),{withImports:!1,withComments:!1,variablesPrefix:"oAuth2",showBoilerplate:!1,level:1}));h.push(t),h.blank(),u.headers=u.headers||{},u.headers.Authorization="'Bearer ' + oAuth2Data.access_token",m=!0}const f=Object.getOwnPropertyNames(e.queryObj).length;if(f&&h.push(p,`const ${h.var("query")} = new URLSearchParams(${(0,code_helpers_1.addIndentation)((0,stringify_object_1.default)(e.queryObj,{indent:d.indent,inlineCharacterLimit:25}),{level:p,indent:d.indent,firstLine:!1})}).toString();`).blank(),e.postData)switch((0,utils_1.normalizeMimeType)(e.postData.mimeType)){case constants_2.MediaTypes.URL_ENCODED:u.body=e.postData.paramsObj?`new URLSearchParams(${h.var("formData")}).toString()`:e.postData.text,e.postData.paramsObj&&h.push(p,`const ${h.var("formData")} = ${(0,code_helpers_1.addIndentation)((0,stringify_object_1.default)(e.postData.paramsObj,{indent:d.indent,inlineCharacterLimit:25}),{level:p,firstLine:!1})};`).blank();break;case constants_2.MediaTypes.JSON:e.postData.jsonObj&&(u.body=`JSON.stringify(${(0,code_helpers_1.addIndentation)((0,stringify_object_1.default)(e.postData.jsonObj,{indent:d.indent,inlineCharacterLimit:25}),{level:p,firstLine:!1})})`);break;case constants_2.MediaTypes.MULTIPART:null===(i=null==u?void 0:u.headers)||void 0===i||delete i["Content-Type"],d.withImports&&h.unshift("import FormData from 'form-data';"),h.push(p,`const ${h.var("form")} = new FormData();`),e.postData.params.forEach((function(e){e.fileName||e.fileName||e.contentType?e.fileName&&(c=!0,h.blank(),h.push(p,`${h.var("form")}.append('" + param.name + "', fs.createReadStream('" + param.fileName + "'));`)):h.push(p,"form.append('"+e.name+"','"+e.value+"');")})),u.body=h.var("form"),h.blank();break;default:e.postData.text&&(u.body=`\`${(0,code_helpers_1.addIndentation)(e.postData.text,{level:p+1,indent:d.indent,firstLine:!1}).trim()}\``)}if(e.cookies.length){let t="";e.cookies.forEach((function(e){t=t+encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)+"; "})),t=t.trim(),u.headers||(u.headers={}),u.headers.cookie=t}if(e.basicAuth){const{username:t,password:a}=e.basicAuth;u.headers=u.headers||{},u.headers.Authorization=`'Basic ' + Buffer.from('${t}:${a}').toString('base64')`,m=!0}c&&d.withImports&&h.unshift("import fs from 'fs';");const _=u.headers&&u.headers.Accept&&(0,utils_1.normalizeMimeType)(u.headers.Accept)===constants_2.MediaTypes.JSON||(0,utils_1.normalizeMimeType)(null===(o=e.postData)||void 0===o?void 0:o.mimeType)===constants_2.MediaTypes.JSON;(0,code_helpers_1.printUrlVariablesDeclarations)(e,h,p);const b=(0,code_helpers_1.buildUrlExpression)(e,h);return h.push(p,`const ${h.var("resp")} = await fetch(`).push(p+1,"`"+b+(f?"?${"+h.var("query")+"}":"")+"`,").push(p+1,(0,code_helpers_1.addIndentation)((0,stringify_object_1.default)(u,{indent:d.indent,inlineCharacterLimit:25,transform:(0,code_helpers_1.getPreserveTransformer)({body:!0,authorizationHeader:m})}),{level:p+1,indent:d.indent,firstLine:!1})).push(p,");").blank(),(null===(l=e.allResponseCodes)||void 0===l?void 0:l.includes("204"))?(h.push(p,"if (resp.status === 204) {").push(p+1,"console.log('success');").push(p,"} else {"),h.push(p+1,`const ${h.var("data")} = await ${h.var("resp")}.${_?"json()":"text()"};`).push(p+1,`console.log(${h.var("data")});`).push(p,"}")):h.push(p,`const ${h.var("data")} = await ${h.var("resp")}.${_?"json()":"text()"};`).push(p,`console.log(${h.var("data")});`),d.showBoilerplate&&h.push("}").blank().push("run();"),h.join().replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/,'fs.createReadStream("$1")')};function addComments(e){e.push("/**"),e.push(" * Requires Node.js >= 14"),e.push(" *"),e.push(' * Requires module "node-fetch" >= 2.6.1'),e.push(" * See here for installation details:"),e.push(" * https://www.npmjs.com/package/node-fetch"),e.push(" */"),e.blank()}exports.info={key:"fetch",title:"Fetch",link:"https://github.com/bitinn/node-fetch",description:"Simplified HTTP node-fetch client"},exports.default=handler;
2
- //# sourceMappingURL=fetch.js.map
1
+ import h from"stringify-object";import{CodeBuilder as w}from"../../helpers/code-builder.js";import{addIndentation as r,getPreserveTransformer as y,buildUrlExpression as $,printUrlVariablesDeclarations as k}from"../../helpers/code-helpers.js";import{Lang as D}from"../../helpers/constants.js";import{normalizeMimeType as f}from"../../../../utils.js";import{HTTPSnippet as g}from"../../index.js";import{MediaTypes as o}from"../../../../../constants.js";const j=function(t,c,{target:b,client:v}){const n=Object.assign({indent:" ",showBoilerplate:!0,level:1},c),{level:a}=n;let m=!1;const e=new w({indentation:n.indent,variablesPrefix:n.variablesPrefix,capitalize:!0,lang:D.NODEJS});n.withComments&&S(e),n.withImports&&(e.push("import fetch from 'node-fetch';"),e.blank()),n.showBoilerplate&&e.push("async function run() {");const i={method:t.method.toUpperCase()};Object.keys(t.headersObj).length&&(i.headers=t.headersObj);let l=!1;if(t.securityOAuth2ExtraCalls?.length){const s=new g(t.securityOAuth2ExtraCalls?.[0]).convert(b,v,{...n,withImports:!1,withComments:!1,variablesPrefix:"oAuth2",showBoilerplate:!1,level:1});e.push(s),e.blank(),i.headers=i.headers||{},i.headers.Authorization="'Bearer ' + oAuth2Data.access_token",l=!0}const d=Object.getOwnPropertyNames(t.queryObj).length;if(d&&e.push(a,`const ${e.var("query")} = new URLSearchParams(${r(h(t.queryObj,{indent:n.indent,inlineCharacterLimit:25}),{level:a,indent:n.indent,firstLine:!1})}).toString();`).blank(),t.postData)switch(f(t.postData.mimeType)){case o.URL_ENCODED:i.body=t.postData.paramsObj?`new URLSearchParams(${e.var("formData")}).toString()`:t.postData.text,t.postData.paramsObj&&e.push(a,`const ${e.var("formData")} = ${r(h(t.postData.paramsObj,{indent:n.indent,inlineCharacterLimit:25}),{level:a,firstLine:!1})};`).blank();break;case o.JSON:t.postData.jsonObj&&(i.body=`JSON.stringify(${r(h(t.postData.jsonObj,{indent:n.indent,inlineCharacterLimit:25}),{level:a,firstLine:!1})})`);break;case o.MULTIPART:delete i?.headers?.["Content-Type"],n.withImports&&e.unshift("import FormData from 'form-data';"),e.push(a,`const ${e.var("form")} = new FormData();`),t.postData.params.forEach(function(s){if(!s.fileName&&!s.fileName&&!s.contentType){e.push(a,"form.append('"+s.name+"','"+s.value+"');");return}s.fileName&&(m=!0,e.blank(),e.push(a,`${e.var("form")}.append('" + param.name + "', fs.createReadStream('" + param.fileName + "'));`))}),i.body=e.var("form"),e.blank();break;default:t.postData.text&&(i.body=`\`${r(t.postData.text,{level:a+1,indent:n.indent,firstLine:!1}).trim()}\``)}if(t.cookies.length){let s="";t.cookies.forEach(function(p){s=s+encodeURIComponent(p.name)+"="+encodeURIComponent(p.value)+"; "}),s=s.trim(),i.headers||(i.headers={}),i.headers.cookie=s}if(t.basicAuth){const{username:s,password:p}=t.basicAuth;i.headers=i.headers||{},i.headers.Authorization=`'Basic ' + Buffer.from('${s}:${p}').toString('base64')`,l=!0}m&&n.withImports&&e.unshift("import fs from 'fs';");const u=i.headers&&i.headers.Accept&&f(i.headers.Accept)===o.JSON||f(t.postData?.mimeType)===o.JSON;k(t,e,a);const O=$(t,e);return e.push(a,`const ${e.var("resp")} = await fetch(`).push(a+1,"`"+O+(d?"?${"+e.var("query")+"}":"")+"`,").push(a+1,r(h(i,{indent:n.indent,inlineCharacterLimit:25,transform:y({body:!0,authorizationHeader:l})}),{level:a+1,indent:n.indent,firstLine:!1})).push(a,");").blank(),t.allResponseCodes?.includes("204")?(e.push(a,"if (resp.status === 204) {").push(a+1,"console.log('success');").push(a,"} else {"),e.push(a+1,`const ${e.var("data")} = await ${e.var("resp")}.${u?"json()":"text()"};`).push(a+1,`console.log(${e.var("data")});`).push(a,"}")):e.push(a,`const ${e.var("data")} = await ${e.var("resp")}.${u?"json()":"text()"};`).push(a,`console.log(${e.var("data")});`),n.showBoilerplate&&e.push("}").blank().push("run();"),e.join().replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/,'fs.createReadStream("$1")')};function S(t){t.push("/**"),t.push(" * Requires Node.js >= 14"),t.push(" *"),t.push(' * Requires module "node-fetch" >= 2.6.1'),t.push(" * See here for installation details:"),t.push(" * https://www.npmjs.com/package/node-fetch"),t.push(" */"),t.blank()}const P={key:"fetch",title:"Fetch",link:"https://github.com/bitinn/node-fetch",description:"Simplified HTTP node-fetch client"};var U=j;export{U as default,P as info};
@@ -5,6 +5,6 @@ declare const _default: {
5
5
  extname: string;
6
6
  default: string;
7
7
  };
8
- fetch: import("../..").LanguageHandler<import("../../..").BasicLanguageOptions | undefined>;
8
+ fetch: import("../../index.js").LanguageHandler<import("../../../types.js").BasicLanguageOptions | undefined>;
9
9
  };
10
10
  export default _default;
@@ -1,2 +1 @@
1
- "use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});const fetch_1=__importDefault(require("./fetch"));exports.default={info:{key:"node",title:"Node.js",extname:".js",default:"fetch"},fetch:fetch_1.default};
2
- //# sourceMappingURL=index.js.map
1
+ import e from"./fetch.js";var f={info:{key:"node",title:"Node.js",extname:".js",default:"fetch"},fetch:e};export{f as default};
@@ -1,5 +1,5 @@
1
- import type { LanguageHandler } from '../..';
2
- import type { PHPCodeSampleConfig } from '../../../types';
1
+ import type { LanguageHandler } from '../../index.js';
2
+ import type { PHPCodeSampleConfig } from '../../../types.js';
3
3
  declare const handler: LanguageHandler<PHPCodeSampleConfig['options']>;
4
4
  export declare const info: {
5
5
  key: string;
@@ -1,2 +1,5 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.info=void 0;const util_1=require("util"),code_builder_1=require("../../helpers/code-builder"),__1=require("../.."),constants_1=require("../../helpers/constants"),code_helpers_1=require("../../helpers/code-helpers"),lodash_int_1=require("../../helpers/lodash-int"),utils_1=require("../../../../utils"),constants_2=require("../../../../../constants"),utils_2=require("./utils");function getVariableName(e,a){return a?`$${a}${(0,lodash_int_1.startCase)(e)}`:`$${e}`}const handler=function(e,a,{target:s,client:t}){var n;const r=Object.assign({showBoilerplate:!0,checkErrors:!1,printBody:!0,indent:" ",noTags:!0,shortTags:!1,maxRedirects:10,namedErrors:!1,closingTag:!1},a);let i,o=!1;const l=new code_builder_1.CodeBuilder({indentation:r.indent,capitalize:!0,lang:constants_1.Lang.PHP}),u=null===(n=e.securityOAuth2ExtraCalls)||void 0===n?void 0:n[0],p=getVariableName("curl",r.variablesPrefix),c=getVariableName("response",r.variablesPrefix),h=getVariableName("error",r.variablesPrefix);if(r.noTags||l.push(r.shortTags?"<?":"<?php").blank(),u){const a="oAuth2",n=new __1.HTTPSnippet(u).convert(s,t,Object.assign(Object.assign({},r),{showBoilerplate:!1,variablesPrefix:a}));l.push(n),l.blank(),e.allHeaders.Authorization=`Bearer " . ${getVariableName("response",a)}.access_token`}const d=Object.keys(e.headersObj).sort().map((function(a){return"Authorization"===a&&u?(0,util_1.format)('"%s: %s',a,e.allHeaders.Authorization):(0,util_1.format)('"%s: %s"',a,e.headersObj[a])}));if(e.basicAuth){const{username:a,password:s}=e.basicAuth;d.push(`"Authorization: Basic " . base64_encode("${a}:${s}")`)}r.showBoilerplate&&l.push("/**").push(" * Requires libcurl").push(" */").blank(),(0,code_helpers_1.printUrlVariablesDeclarations)(e,l);let _="";if(Object.keys(e.queryObj||{}).length){const a=(0,utils_2.objectToPhpArray)(e.queryObj||{},{indent:r.indent});_="$query",l.push(`${_} = ${a};`).blank()}if(l.push(`${p} = curl_init();`),l.blank(),e.postData)switch((0,utils_1.normalizeMimeType)(e.postData.mimeType)){case constants_2.MediaTypes.JSON:{const a=(0,utils_2.objectToPhpArray)(e.postData.jsonObj||{},{indent:r.indent});o=!0,i="json_encode($payload)",l.push(`$payload = ${a};`).blank();break}case constants_2.MediaTypes.MULTIPART:{const a=e.postData.params.map((({name:e,value:a})=>`${r.indent}"${e}" => "${a}",\n`)).join("");o=!0,i="$payload",l.push(`$payload = array(\n${a});`).blank();break}case constants_2.MediaTypes.URL_ENCODED:{const a=e.postData.params.map((({name:e,value:a})=>`${e}=${a}`)).join("&");o=!0,i="$payload",l.push(`$payload = "${a}";`).blank();break}default:i=e.postData.text}let b=(0,code_helpers_1.buildUrlExpression)(e,l);_&&(b.endsWith('"')?b=b.slice(0,-1)+`?" . http_build_query(${_})`:b+=` . "?" . http_build_query(${_})`);const $=[{escape:!o,name:"CURLOPT_POSTFIELDS",value:i},{escape:!0,name:"CURLOPT_PORT",value:e.uriObj.port},{escape:!1,name:"CURLOPT_URL",value:b},{escape:!1,name:"CURLOPT_RETURNTRANSFER",value:"true"},{escape:!0,name:"CURLOPT_CUSTOMREQUEST",value:e.method.toUpperCase()}];l.push(`curl_setopt_array(${p}, [`);const m=new code_builder_1.CodeBuilder({indentation:r.indent,lineJoin:`\n${r.indent}`,variablesPrefix:r.variablesPrefix,capitalize:!0,lang:constants_1.Lang.PHP});d.length&&m.push("CURLOPT_HTTPHEADER => [").push(1,d.join(",\n"+r.indent+r.indent)).push("],"),$.forEach((function(e){[null,void 0].includes(e.value)||m.push((0,util_1.format)("%s => %s,",e.name,e.escape?JSON.stringify(e.value):e.value))}));const T=e.cookies.map((function(e){return encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)}));return T.length&&m.push((0,util_1.format)('CURLOPT_COOKIE => "%s",',T.join("; "))),l.push(1,m.join()).push("]);").blank().push(`${c} = curl_exec(${p});`).push(`${h} = curl_error(${p});`).blank().push(`curl_close(${p});`).blank().push(`if (${h}) {`),r.namedErrors?l.push(1,`echo array_flip(get_defined_constants(true)["curl"])[${h}];`):l.push(1,`echo "cURL Error #:" . ${h};`),l.push("} else {").push(1,`echo ${c};`).push("}"),!r.noTags&&r.closingTag&&l.blank().push("?>"),l.join()};exports.info={key:"curl",title:"cURL",link:"http://php.net/manual/en/book.curl.php",description:"PHP with ext-curl"},exports.default=handler;
2
- //# sourceMappingURL=curl.js.map
1
+ import{format as d}from"util";import{CodeBuilder as O}from"../../helpers/code-builder.js";import{HTTPSnippet as g}from"../../index.js";import{Lang as R}from"../../helpers/constants.js";import{buildUrlExpression as E,printUrlVariablesDeclarations as j}from"../../helpers/code-helpers.js";import{startCase as v}from"../../helpers/lodash-int.js";import{normalizeMimeType as x}from"../../../../utils.js";import{MediaTypes as T}from"../../../../../constants.js";import{objectToPhpArray as _}from"./utils.js";function f(a,p){return p?`$${p}${v(a)}`:`$${a}`}const L=function(a,p,{target:k,client:U}){const t={showBoilerplate:!0,checkErrors:!1,printBody:!0,indent:" ",noTags:!0,shortTags:!1,maxRedirects:10,namedErrors:!1,closingTag:!1,...p};let s,u=!1;const n=new O({indentation:t.indent,capitalize:!0,lang:R.PHP}),m=a.securityOAuth2ExtraCalls?.[0],i=f("curl",t.variablesPrefix),y=f("response",t.variablesPrefix),h=f("error",t.variablesPrefix);if(t.noTags||n.push(t.shortTags?"<?":"<?php").blank(),m){const e="oAuth2",r=new g(m).convert(k,U,{...t,showBoilerplate:!1,variablesPrefix:e});n.push(r),n.blank(),a.allHeaders.Authorization=`Bearer " . ${f("response",e)}.access_token`}const b=Object.keys(a.headersObj).sort().map(function(e){return e==="Authorization"&&m?d('"%s: %s',e,a.allHeaders.Authorization):d('"%s: %s"',e,a.headersObj[e])});if(a.basicAuth){const{username:e,password:r}=a.basicAuth;b.push(`"Authorization: Basic " . base64_encode("${e}:${r}")`)}t.showBoilerplate&&n.push("/**").push(" * Requires libcurl").push(" */").blank(),j(a,n);let o="";if(Object.keys(a.queryObj||{}).length){const e=_(a.queryObj||{},{indent:t.indent});o="$query",n.push(`${o} = ${e};`).blank()}if(n.push(`${i} = curl_init();`),n.blank(),a.postData)switch(x(a.postData.mimeType)){case T.JSON:{const e=_(a.postData.jsonObj||{},{indent:t.indent});u=!0,s="json_encode($payload)",n.push(`$payload = ${e};`).blank();break}case T.MULTIPART:{const e=a.postData.params.map(({name:r,value:$})=>`${t.indent}"${r}" => "${$}",
2
+ `).join("");u=!0,s="$payload",n.push(`$payload = array(
3
+ ${e});`).blank();break}case T.URL_ENCODED:{const e=a.postData.params.map(({name:r,value:$})=>`${r}=${$}`).join("&");u=!0,s="$payload",n.push(`$payload = "${e}";`).blank();break}default:s=a.postData.text;break}let l=E(a,n);o&&(l.endsWith('"')?l=l.slice(0,-1)+`?" . http_build_query(${o})`:l+=` . "?" . http_build_query(${o})`);const C=[{escape:!u,name:"CURLOPT_POSTFIELDS",value:s},{escape:!0,name:"CURLOPT_PORT",value:a.uriObj.port},{escape:!1,name:"CURLOPT_URL",value:l},{escape:!1,name:"CURLOPT_RETURNTRANSFER",value:"true"},{escape:!0,name:"CURLOPT_CUSTOMREQUEST",value:a.method.toUpperCase()}];n.push(`curl_setopt_array(${i}, [`);const c=new O({indentation:t.indent,lineJoin:`
4
+ ${t.indent}`,variablesPrefix:t.variablesPrefix,capitalize:!0,lang:R.PHP});b.length&&c.push("CURLOPT_HTTPHEADER => [").push(1,b.join(`,
5
+ `+t.indent+t.indent)).push("],"),C.forEach(function(e){[null,void 0,""].includes(e.value)||c.push(d("%s => %s,",e.name,e.escape?JSON.stringify(e.value):e.value))});const P=a.cookies.map(function(e){return encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)});return P.length&&c.push(d('CURLOPT_COOKIE => "%s",',P.join("; "))),n.push(1,c.join()).push("]);").blank().push(`${y} = curl_exec(${i});`).push(`${h} = curl_error(${i});`).blank().push(`curl_close(${i});`).blank().push(`if (${h}) {`),t.namedErrors?n.push(1,`echo array_flip(get_defined_constants(true)["curl"])[${h}];`):n.push(1,`echo "cURL Error #:" . ${h};`),n.push("} else {").push(1,`echo ${y};`).push("}"),!t.noTags&&t.closingTag&&n.blank().push("?>"),n.join()},V={key:"curl",title:"cURL",link:"http://php.net/manual/en/book.curl.php",description:"PHP with ext-curl"};var I=L;export{I as default,V as info};
@@ -5,6 +5,6 @@ declare const _default: {
5
5
  extname: string;
6
6
  default: string;
7
7
  };
8
- curl: import("../..").LanguageHandler<import("../../..").BasicLanguageOptions | undefined>;
8
+ curl: import("../../index.js").LanguageHandler<import("../../../types.js").BasicLanguageOptions | undefined>;
9
9
  };
10
10
  export default _default;
@@ -1,2 +1 @@
1
- "use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});const curl_1=__importDefault(require("./curl"));exports.default={info:{key:"php",title:"PHP",extname:".php",default:"curl"},curl:curl_1.default};
2
- //# sourceMappingURL=index.js.map
1
+ import e from"./curl.js";var p={info:{key:"php",title:"PHP",extname:".php",default:"curl"},curl:e};export{p as default};
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
2
- //# sourceMappingURL=types.js.map
@@ -1,2 +1,2 @@
1
- import type { Input, ObjectToPhpArrayOptions } from './types';
1
+ import type { Input, ObjectToPhpArrayOptions } from './types.js';
2
2
  export declare function objectToPhpArray(input: Input, options: ObjectToPhpArrayOptions, pad?: string): string;
@@ -1,2 +1,5 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.objectToPhpArray=objectToPhpArray;const simpleTypes=["number","boolean","function","symbol"];function isRegexp(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function isObject(e){const n=typeof e;return null!==e&&("object"===n||"function"===n)}function objectToPhpArray(e,n,r=""){const t=[];return function e(n,r={},i=""){r.indent=r.indent||"\t";const a={newLine:"\n",newLineOrSpace:"\n",pad:i,indent:i+r.indent},o=e=>{if(void 0===r.inlineCharacterLimit)return e;const n=e.replace(new RegExp(a.newLine,"g"),"").replace(new RegExp(a.newLineOrSpace,"g")," ").replace(new RegExp(a.pad+"|"+a.indent,"g"),"");return n.length<=r.inlineCharacterLimit?n:e.replace(new RegExp(a.newLine+"|"+a.newLineOrSpace,"g"),"\n").replace(new RegExp(a.pad,"g"),i).replace(new RegExp(a.indent,"g"),i+r.indent)};if(-1!==t.indexOf(n))return'"Circular"';if(null===n)return"NULL";if(void 0===n||simpleTypes.includes(typeof n)||isRegexp(n))return String(n);if(n instanceof Date)return`date('${n.toISOString()}')`;if(Array.isArray(n)){if(0===n.length)return"array()";t.push(n);const p="array("+a.newLine+n.map(((t,o)=>{const p=n.length-1===o?a.newLine:","+a.newLineOrSpace;let c=e(t,r,i+r.indent);return r.transform&&(c=r.transform(n,o,c)),a.indent+c+p})).join("")+a.pad+")";return t.pop(),o(p)}if(isObject(n)){let p=Object.keys(n);if(r.filter&&(p=p.filter((e=>{var t;return null===(t=r.filter)||void 0===t?void 0:t.call(r,n,e)}))),0===p.length)return Array.isArray(n)?"array()":"(object)[]";t.push(n);const c="array("+a.newLine+p.map(((t,o)=>{const c=p.length-1===o?a.newLine:","+a.newLineOrSpace,l="symbol"==typeof t,s=!l&&/^[a-z$_][a-z$_0-9]*$/i.test(t),u=l||s?t:e(t,r);let g=e(n[t],r,i+r.indent);return r.transform&&(g=r.transform(n,t,g)),`${a.indent}"${String(u)}" => ${g}${c}`})).join("")+a.pad+")";return t.pop(),o(c)}return n=String(n).replace(/[\r\n]/g,(e=>"\n"===e?"\\n":"\\r")),!1===r.singleQuotes?`"${n=n.replace(/"/g,'\\"')}"`:`"${n=n.replace(/\\?'/g,"\\'")}"`}(e,n,r)}
2
- //# sourceMappingURL=utils.js.map
1
+ const h=["number","boolean","function","symbol"];function x(c){return Object.prototype.toString.call(c)==="[object RegExp]"}function j(c){const s=typeof c;return c!==null&&(s==="object"||s==="function")}function O(c,s,b=""){const i=[];return function y(e,r={},f=""){r.indent=r.indent||" ";const n={newLine:`
2
+ `,newLineOrSpace:`
3
+ `,pad:f,indent:f+r.indent},w=t=>{if(r.inlineCharacterLimit===void 0)return t;const l=t.replace(new RegExp(n.newLine,"g"),"").replace(new RegExp(n.newLineOrSpace,"g")," ").replace(new RegExp(n.pad+"|"+n.indent,"g"),"");return l.length<=r.inlineCharacterLimit?l:t.replace(new RegExp(n.newLine+"|"+n.newLineOrSpace,"g"),`
4
+ `).replace(new RegExp(n.pad,"g"),f).replace(new RegExp(n.indent,"g"),f+r.indent)};if(i.indexOf(e)!==-1)return'"Circular"';if(e===null)return"NULL";if(e===void 0||h.includes(typeof e)||x(e))return String(e);if(e instanceof Date)return`date('${e.toISOString()}')`;if(Array.isArray(e)){if(e.length===0)return"array()";i.push(e);const t="array("+n.newLine+e.map((l,a)=>{const d=e.length-1===a?n.newLine:","+n.newLineOrSpace;let g=y(l,r,f+r.indent);return r.transform&&(g=r.transform(e,a,g)),n.indent+g+d}).join("")+n.pad+")";return i.pop(),w(t)}if(j(e)){let t=Object.keys(e);if(r.filter&&(t=t.filter(a=>r.filter?.(e,a))),t.length===0)return Array.isArray(e)?"array()":"(object)[]";i.push(e);const l="array("+n.newLine+t.map((a,d)=>{const g=t.length-1===d?n.newLine:","+n.newLineOrSpace,L=typeof a=="symbol",m=!L&&/^[a-z$_][a-z$_0-9]*$/i.test(a),S=L||m?a:y(a,r);let o=y(e[a],r,f+r.indent);return r.transform&&(o=r.transform(e,a,o)),`${n.indent}"${String(S)}" => ${o}${g}`}).join("")+n.pad+")";return i.pop(),w(l)}return e=String(e).replace(/[\r\n]/g,t=>t===`
5
+ `?"\\n":"\\r"),r.singleQuotes===!1?(e=e.replace(/"/g,'\\"'),`"${e}"`):(e=e.replace(/\\?'/g,"\\'"),`"${e}"`)}(c,s,b)}export{O as objectToPhpArray};
@@ -5,6 +5,6 @@ declare const _default: {
5
5
  extname: string;
6
6
  default: string;
7
7
  };
8
- requests: import("../..").LanguageHandler<import("../../..").BasicLanguageOptions | undefined>;
8
+ requests: import("../../index.js").LanguageHandler<import("../../../types.js").BasicLanguageOptions | undefined>;
9
9
  };
10
10
  export default _default;
@@ -1,2 +1 @@
1
- "use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});const requests_1=__importDefault(require("./requests"));exports.default={info:{key:"python",title:"Python",extname:".py",default:"python3"},requests:requests_1.default};
2
- //# sourceMappingURL=index.js.map
1
+ import t from"./requests.js";var o={info:{key:"python",title:"Python",extname:".py",default:"python3"},requests:t};export{o as default};
@@ -1,4 +1,4 @@
1
- import type { LanguageHandler } from '../..';
2
- import type { PythonCodeSampleConfig } from '../../../types';
1
+ import type { LanguageHandler } from '../../index.js';
2
+ import type { PythonCodeSampleConfig } from '../../../types.js';
3
3
  declare const handler: LanguageHandler<PythonCodeSampleConfig['options']>;
4
4
  export default handler;
@@ -1,2 +1,6 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const util_1=require("util"),code_builder_1=require("../../helpers/code-builder"),utils_1=require("../../../../utils"),code_helpers_1=require("../../helpers/code-helpers"),__1=require("../.."),constants_1=require("../../helpers/constants"),constants_2=require("../../../../../constants"),handler=function(e,t,{target:s,client:a}){var o,n,r,i;const l=Object.assign({indent:" "},t),{level:u=0}=l,p=new code_builder_1.CodeBuilder({indentation:l.indent,variablesPrefix:l.variablesPrefix,lang:constants_1.Lang.PYTHON});l.withComments&&addComments(p),l.withImports&&p.push("import requests").blank();let d,h,c,_=!1,b=e.allHeaders;if(null===(o=e.securityOAuth2ExtraCalls)||void 0===o?void 0:o.length){const t=new __1.HTTPSnippet(null===(n=e.securityOAuth2ExtraCalls)||void 0===n?void 0:n[0]).convert(s,a,Object.assign(Object.assign({},l),{withImports:!1,withComments:!1,variablesPrefix:"oauth2_"}));p.push(t),p.blank(),b=b||{},b.Authorization='"Bearer " + oauth2_data["access_token"]',_=!0}if((0,code_helpers_1.printUrlVariablesDeclarations)(e,p),p.push(`${p.var("url").toLowerCase()} = %s`,(0,code_helpers_1.buildUrlExpression)(e,p)).blank(),Object.keys(e.queryObj||{}).length){d="query = "+jsObjectToPythonDict(e.queryObj,l.indent),p.push(d).blank()}const v=(0,utils_1.normalizeMimeType)(null===(r=e.postData)||void 0===r?void 0:r.mimeType);if(e.postData)switch(v){case constants_2.MediaTypes.URL_ENCODED:h=e.postData.paramsObj?`${(0,code_helpers_1.addIndentation)(jsObjectToPythonDict(e.postData.paramsObj,l.indent),{level:0,firstLine:!1})}`:e.postData.text;break;case constants_2.MediaTypes.JSON:e.postData.jsonObj&&(h=(0,code_helpers_1.addIndentation)(jsObjectToPythonDict(e.postData.jsonObj,l.indent),{level:0,firstLine:!1}));break;case constants_2.MediaTypes.MULTIPART:const t=[];if(e.postData.params)for(const s of e.postData.params)t.push(`"${s.name}": "${s.value}"`);if(t.length){c=`data = {\n${t.map((e=>` ${e}`)).join(",\n")}\n}`}c&&p.push(c).blank();break;default:e.postData.text&&(h=`'''\n${(0,code_helpers_1.addIndentation)(e.postData.text.trim(),{level:1,indent:l.indent,firstLine:!0})}\n'''`)}let $;h&&p.push(`${p.var("payload").toLowerCase()} = %s`,h).blank();const f=Object.keys(b).length,C=(e,t)=>"Authorization"===e&&_?t:`"${t}"`;if(1===f)for($ in b)p.push(`${p.var("headers").toLowerCase()} = {"${$}": ${C($,b[$])}}`).blank();else if(f>1){let e=1;for($ in p.push(`${p.var("headers").toLowerCase()} = {`),b)e++!==f?p.push(1,`"${$}": ${C($,b[$])},`):p.push(1,`"${$}": ${C($,b[$])}`);p.push(0,"}").blank()}const j=e.method.toLowerCase();let m=(0,util_1.format)(`${p.var("response").toLowerCase()} = requests.${j}(${p.var("url").toLowerCase()}`);if(v===constants_2.MediaTypes.MULTIPART&&c&&(m+=", data=data"),h){m+=`, ${v===constants_2.MediaTypes.JSON?"json":"data"}=${p.var("payload").toLowerCase()}`}return f>0&&(m+=`, headers=${p.var("headers").toLowerCase()}`),d&&(m+=`, params=${p.var("query").toLowerCase()}`),e.basicAuth&&(m+=`, auth=('${e.basicAuth.username}','${e.basicAuth.password}')`),m+=")",p.push(m).blank(),(null===(i=e.allResponseCodes)||void 0===i?void 0:i.includes("204"))?p.push("if response.status_code == 204:").push(u+1,'print("success")').push("else:").push(u+1,`${p.var("data").toLowerCase()} = ${p.var("response").toLowerCase()}.json()`).push(u+1,`print(${p.var("data").toLowerCase()})`):p.push(`${p.var("data").toLowerCase()} = ${p.var("response").toLowerCase()}.json()`).push(`print(${p.var("data").toLowerCase()})`),p.join()};function addComments(e){e.push('"""'),e.push("Requires python >= 3"),e.blank(),e.push('Requires module "requests" >= 2.25.1'),e.push("See here for installation details:"),e.push(" https://requests.readthedocs.io/"),e.push('"""'),e.blank()}function jsObjectToPythonDict(e,t){return JSON.stringify(e,(function(e,t){return e&&"boolean"==typeof t?t?"__REDOCLY_<True>__":"__REDOCLY_<False>__":null===t?"__REDOCLY_<None>__":t}),t).replace(/"__REDOCLY_<(\w+)>__"/g,"$1")}exports.default=handler;
2
- //# sourceMappingURL=requests.js.map
1
+ import{format as v}from"util";import{CodeBuilder as j}from"../../helpers/code-builder.js";import{normalizeMimeType as k}from"../../../../utils.js";import{addIndentation as L,buildUrlExpression as c,printUrlVariablesDeclarations as T}from"../../helpers/code-helpers.js";import{HTTPSnippet as g}from"../../index.js";import{Lang as q}from"../../helpers/constants.js";import{MediaTypes as l}from"../../../../../constants.js";const x=function(t,u,{target:_,client:d}){const a=Object.assign({indent:" "},u),{level:m=0}=a,e=new j({indentation:a.indent,variablesPrefix:a.variablesPrefix,lang:q.PYTHON});a.withComments&&A(e),a.withImports&&e.push("import requests").blank();let y=!1,n=t.allHeaders;if(t.securityOAuth2ExtraCalls?.length){const s=new g(t.securityOAuth2ExtraCalls?.[0]).convert(_,d,{...a,withImports:!1,withComments:!1,variablesPrefix:"oauth2_"});e.push(s),e.blank(),n=n||{},n.Authorization='"Bearer " + oauth2_data["access_token"]',y=!0}T(t,e),e.push(`${e.var("url").toLowerCase()} = %s`,c(t,e)).blank();let b;Object.keys(t.queryObj||{}).length&&(b="query = "+w(t.queryObj,a.indent),e.push(b).blank());let o,f;const $=k(t.postData?.mimeType);if(t.postData)switch($){case l.URL_ENCODED:o=t.postData.paramsObj?`${L(w(t.postData.paramsObj,a.indent),{level:0,firstLine:!1})}`:t.postData.text;break;case l.JSON:t.postData.jsonObj&&(o=L(w(t.postData.jsonObj,a.indent),{level:0,firstLine:!1}));break;case l.MULTIPART:const s=[];if(t.postData.params)for(const p of t.postData.params)s.push(`"${p.name}": "${p.value}"`);s.length&&(f=`data = {
2
+ ${s.map(O=>` ${O}`).join(`,
3
+ `)}
4
+ }`),f&&e.push(f).blank();break;default:t.postData.text&&(o=`'''
5
+ ${L(t.postData.text.trim(),{level:1,indent:a.indent,firstLine:!0})}
6
+ '''`)}o&&e.push(`${e.var("payload").toLowerCase()} = %s`,o).blank();let r;const h=Object.keys(n).length,C=(s,p)=>s==="Authorization"&&y?p:`"${p}"`;if(h===1)for(r in n)e.push(`${e.var("headers").toLowerCase()} = {"${r}": ${C(r,n[r])}}`).blank();else if(h>1){let s=1;e.push(`${e.var("headers").toLowerCase()} = {`);for(r in n)s++!==h?e.push(1,`"${r}": ${C(r,n[r])},`):e.push(1,`"${r}": ${C(r,n[r])}`);e.push(0,"}").blank()}const D=t.method.toLowerCase();let i=v(`${e.var("response").toLowerCase()} = requests.${D}(${e.var("url").toLowerCase()}`);if($===l.MULTIPART&&f&&(i+=", data=data"),o){const s=$===l.JSON?"json":"data";i+=`, ${s}=${e.var("payload").toLowerCase()}`}return h>0&&(i+=`, headers=${e.var("headers").toLowerCase()}`),b&&(i+=`, params=${e.var("query").toLowerCase()}`),t.basicAuth&&(i+=`, auth=('${t.basicAuth.username}','${t.basicAuth.password}')`),i+=")",e.push(i).blank(),t.allResponseCodes?.includes("204")?e.push("if response.status_code == 204:").push(m+1,'print("success")').push("else:").push(m+1,`${e.var("data").toLowerCase()} = ${e.var("response").toLowerCase()}.json()`).push(m+1,`print(${e.var("data").toLowerCase()})`):e.push(`${e.var("data").toLowerCase()} = ${e.var("response").toLowerCase()}.json()`).push(`print(${e.var("data").toLowerCase()})`),e.join()};var I=x;function A(t){t.push('"""'),t.push("Requires python >= 3"),t.blank(),t.push('Requires module "requests" >= 2.25.1'),t.push("See here for installation details:"),t.push(" https://requests.readthedocs.io/"),t.push('"""'),t.blank()}function w(t,u){return JSON.stringify(t,function(d,a){return d&&typeof a=="boolean"?a?"__REDOCLY_<True>__":"__REDOCLY_<False>__":a===null?"__REDOCLY_<None>__":a},u).replace(/"__REDOCLY_<(\w+)>__"/g,"$1")}export{I as default};
@@ -1,4 +1,4 @@
1
- import type { LanguageHandler } from '../..';
2
- import type { RCodeSampleConfig } from '../../../types';
1
+ import type { LanguageHandler } from '../../index.js';
2
+ import type { RCodeSampleConfig } from '../../../types.js';
3
3
  declare const handler: LanguageHandler<RCodeSampleConfig['options']>;
4
4
  export default handler;
@@ -1,2 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const code_builder_1=require("../../helpers/code-builder"),code_helpers_1=require("../../helpers/code-helpers"),constants_1=require("../../helpers/constants"),__1=require("../.."),utils_1=require("../../../../utils"),constants_2=require("../../../../../constants"),utils_2=require("./utils"),indent=1,handler=function(e,s,{target:t,client:a}){var r,o,n,i;const l=Object.assign({indent:" ",showBoilerplate:!0,printBody:!0},s),u=new code_builder_1.CodeBuilder({indentation:l.indent,variablesPrefix:l.variablesPrefix,lang:constants_1.Lang.R}),p=e.method.toUpperCase(),c=null===(r=e.securityOAuth2ExtraCalls)||void 0===r?void 0:r[0];if(l.showBoilerplate&&u.push("library(httr)").blank(),c){const s="oauth2_",r=new __1.HTTPSnippet(c).convert(t,a,Object.assign(Object.assign({},l),{variablesPrefix:s,showBoilerplate:!1})),o=`${s}data_req`;u.push(r).push(`access_token = content(${o}, "parsed")$access_token`).blank(),e.allHeaders.Authorization='paste("Bearer", access_token)'}let d,h="";if(null==e?void 0:e.postData)switch((0,utils_1.normalizeMimeType)(null===(o=null==e?void 0:e.postData)||void 0===o?void 0:o.mimeType)){case constants_2.MediaTypes.URL_ENCODED:{d="form",h=u.var("body");const s=(0,utils_2.postDataToRListBody)(e.postData.params,l);u.push(`${h} <- list(${s})`).blank();break}case constants_2.MediaTypes.JSON:{d="json",h=u.var("body");const s=(0,utils_2.objectToRString)(e.postData.jsonObj,l);u.push(`${h} = '${s}'`).blank();break}case constants_2.MediaTypes.MULTIPART:{d="multipart",h=u.var("body");const s=(0,utils_2.postDataToRListBody)(e.postData.params,l);u.push(`${h} <- list(${s})`).blank();break}default:(null===(n=e.postData)||void 0===n?void 0:n.text)&&(h=u.var("body"),d="raw",u.push(`${h} = ${(0,utils_2.objectToRString)(null===(i=e.postData)||void 0===i?void 0:i.text)}`).blank())}(0,code_helpers_1.printUrlVariablesDeclarations)(e,u),Object.keys(Object.assign(Object.assign({},e.pathParameters),e.serverVariables)).length&&u.blank().push("# create you own operator").push('"%&%" <- function(x, y)paste0(x,y)').blank();const b=(0,code_helpers_1.buildUrlExpression)(e,u);u.push(`url = ${b}`).blank();const _=u.var("data_req");if(u.push(`${_} <- ${p}(`),u.push(1,"url,"),e.basicAuth){const{username:s,password:t}=e.basicAuth;u.push(1,`authenticate("${s}", "${t}")`)}if(Object.keys(e.allHeaders).length){const s=`${Object.keys(e.allHeaders).map((s=>`"${s}" = ${e.allHeaders[s].startsWith("paste")?e.allHeaders[s]:`"${e.allHeaders[s]}"`}`)).join(", ")}`;s&&u.push(1,`add_headers(${s}),`)}return h&&(u.push(1,`body = ${h},`),u.push(1,`encode = "${d}",`)),u.push(1,"verbose()"),u.push(")"),l.printBody&&u.blank().push(`content(${_}${"raw"===d?', "text"':""})`),u.join()};exports.default=handler;
2
- //# sourceMappingURL=httr.js.map
1
+ import{CodeBuilder as k}from"../../helpers/code-builder.js";import{buildUrlExpression as x,printUrlVariablesDeclarations as D}from"../../helpers/code-helpers.js";import{Lang as v}from"../../helpers/constants.js";import{HTTPSnippet as j}from"../../index.js";import{normalizeMimeType as w}from"../../../../utils.js";import{MediaTypes as p}from"../../../../../constants.js";import{postDataToRListBody as h,objectToRString as b}from"./utils.js";const o=1,P=function(a,f,{target:m,client:c}){const r=Object.assign({indent:" ",showBoilerplate:!0,printBody:!0},f),t=new k({indentation:r.indent,variablesPrefix:r.variablesPrefix,lang:v.R}),u=a.method.toUpperCase(),l=a.securityOAuth2ExtraCalls?.[0];if(r.showBoilerplate&&t.push("library(httr)").blank(),l){const e="oauth2_",i=new j(l).convert(m,c,{...r,variablesPrefix:e,showBoilerplate:!1}),y=`${e}data_req`;t.push(i).push(`access_token = content(${y}, "parsed")$access_token`).blank(),a.allHeaders.Authorization='paste("Bearer", access_token)'}let n,s="";if(a?.postData)switch(w(a?.postData?.mimeType)){case p.URL_ENCODED:{n="form",s=t.var("body");const e=h(a.postData.params,r);t.push(`${s} <- list(${e})`).blank();break}case p.JSON:{n="json",s=t.var("body");const e=b(a.postData.jsonObj,r);t.push(`${s} = '${e}'`).blank();break}case p.MULTIPART:{n="multipart",s=t.var("body");const e=h(a.postData.params,r);t.push(`${s} <- list(${e})`).blank();break}default:a.postData?.text&&(s=t.var("body"),n="raw",t.push(`${s} = ${b(a.postData?.text)}`).blank())}D(a,t),Object.keys({...a.pathParameters,...a.serverVariables}).length&&t.blank().push("# create you own operator").push('"%&%" <- function(x, y)paste0(x,y)').blank();const $=x(a,t);t.push(`url = ${$}`).blank();const d=t.var("data_req");if(t.push(`${d} <- ${u}(`),t.push(o,"url,"),a.basicAuth){const{username:e,password:i}=a.basicAuth;t.push(o,`authenticate("${e}", "${i}")`)}if(Object.keys(a.allHeaders).length){const e=`${Object.keys(a.allHeaders).map(i=>`"${i}" = ${a.allHeaders[i].startsWith("paste")?a.allHeaders[i]:`"${a.allHeaders[i]}"`}`).join(", ")}`;e&&t.push(o,`add_headers(${e}),`)}return s&&(t.push(o,`body = ${s},`),t.push(o,`encode = "${n}",`)),t.push(o,"verbose()"),t.push(")"),r.printBody&&t.blank().push(`content(${d}${n==="raw"?', "text"':""})`),t.join()};var H=P;export{H as default};
@@ -5,6 +5,6 @@ declare const _default: {
5
5
  extname: string;
6
6
  default: string;
7
7
  };
8
- httr: import("../..").LanguageHandler<import("../../..").BasicLanguageOptions | undefined>;
8
+ httr: import("../../index.js").LanguageHandler<import("../../../types.js").BasicLanguageOptions | undefined>;
9
9
  };
10
10
  export default _default;
@@ -1,2 +1 @@
1
- "use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0});const httr_1=__importDefault(require("./httr"));exports.default={info:{key:"r",title:"R",extname:".r",default:"httr"},httr:httr_1.default};
2
- //# sourceMappingURL=index.js.map
1
+ import t from"./httr.js";var r={info:{key:"r",title:"R",extname:".r",default:"httr"},httr:t};export{r as default};
@@ -1,5 +1,5 @@
1
- import type { PrivateOptions } from '../..';
2
- import type { BasicLanguageOptions } from '../../../types';
3
- import type { Param } from '../../../har';
1
+ import type { PrivateOptions } from '../../index.js';
2
+ import type { BasicLanguageOptions } from '../../../types.js';
3
+ import type { Param } from '../../../har.js';
4
4
  export declare function objectToRString(input?: GenericObject | string, options?: BasicLanguageOptions & PrivateOptions): string;
5
5
  export declare function postDataToRListBody(input: Param[], options: BasicLanguageOptions & PrivateOptions): string;