@redocly/openapi-docs 3.0.0-alpha.10

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 (1428) hide show
  1. package/LICENSE.md +1 -0
  2. package/README.md +3 -0
  3. package/bin/cli/assets/redoc-fast-scroll.js +22 -0
  4. package/bin/cli/assets/template.hbs +24 -0
  5. package/bin/cli/commands/redocly-docs-cli.min.js +5949 -0
  6. package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +325 -0
  7. package/bin.js +4 -0
  8. package/dist/console.redocly-reference-docs.min.js +507 -0
  9. package/dist/oauth2-redirect.html +7 -0
  10. package/dist/oauth2-redirect.js +9 -0
  11. package/dist/redocly-reference-docs.min.js +6005 -0
  12. package/lib/cli/assets/redoc-fast-scroll.d.ts +0 -0
  13. package/lib/cli/assets/redoc-fast-scroll.js +2 -0
  14. package/lib/cli/cli.d.ts +2 -0
  15. package/lib/cli/cli.js +3 -0
  16. package/lib/cli/commands/bundle.d.ts +1 -0
  17. package/lib/cli/commands/bundle.js +2 -0
  18. package/lib/cli/commands/index.d.ts +1 -0
  19. package/lib/cli/commands/index.js +2 -0
  20. package/lib/cli/constants.d.ts +3 -0
  21. package/lib/cli/constants.js +2 -0
  22. package/lib/cli/utils.d.ts +16 -0
  23. package/lib/cli/utils.js +2 -0
  24. package/lib/components/Endpoint/Endpoint.d.ts +3 -0
  25. package/lib/components/Endpoint/Endpoint.js +2 -0
  26. package/lib/components/Endpoint/ServerList.d.ts +3 -0
  27. package/lib/components/Endpoint/ServerList.js +2 -0
  28. package/lib/components/Endpoint/Summary.d.ts +3 -0
  29. package/lib/components/Endpoint/Summary.js +2 -0
  30. package/lib/components/Endpoint/index.d.ts +2 -0
  31. package/lib/components/Endpoint/index.js +2 -0
  32. package/lib/components/Endpoint/styled.d.ts +8 -0
  33. package/lib/components/Endpoint/styled.js +48 -0
  34. package/lib/components/Endpoint/types.d.ts +21 -0
  35. package/lib/components/Endpoint/types.js +2 -0
  36. package/lib/components/NextSectionButton.d.ts +13 -0
  37. package/lib/components/NextSectionButton.js +8 -0
  38. package/lib/components/OperationParameters/OperationParameters.d.ts +2 -0
  39. package/lib/components/OperationParameters/OperationParameters.js +2 -0
  40. package/lib/components/OperationParameters/index.d.ts +1 -0
  41. package/lib/components/OperationParameters/index.js +2 -0
  42. package/lib/components/OperationParameters/types.d.ts +14 -0
  43. package/lib/components/OperationParameters/types.js +2 -0
  44. package/lib/components/OperationParameters/utils.d.ts +7 -0
  45. package/lib/components/OperationParameters/utils.js +2 -0
  46. package/lib/components/Overlay.d.ts +10 -0
  47. package/lib/components/Overlay.js +43 -0
  48. package/lib/components/Panel/Accordion.d.ts +5 -0
  49. package/lib/components/Panel/Accordion.js +2 -0
  50. package/lib/components/Panel/CodeHeader.d.ts +6 -0
  51. package/lib/components/Panel/CodeHeader.js +12 -0
  52. package/lib/components/Panel/CodePanel.d.ts +4 -0
  53. package/lib/components/Panel/CodePanel.js +6 -0
  54. package/lib/components/Panel/ContentPanel.d.ts +4 -0
  55. package/lib/components/Panel/ContentPanel.js +21 -0
  56. package/lib/components/Panel/Description.d.ts +1 -0
  57. package/lib/components/Panel/Description.js +8 -0
  58. package/lib/components/Panel/ResponsePanel.d.ts +8 -0
  59. package/lib/components/Panel/ResponsePanel.js +26 -0
  60. package/lib/components/Panel/Trigger.d.ts +1 -0
  61. package/lib/components/Panel/Trigger.js +8 -0
  62. package/lib/components/Panel/index.d.ts +7 -0
  63. package/lib/components/Panel/index.js +2 -0
  64. package/lib/components/ProProviders.d.ts +9 -0
  65. package/lib/components/ProProviders.js +2 -0
  66. package/lib/components/RedoclyReferenceDocs.d.ts +40 -0
  67. package/lib/components/RedoclyReferenceDocs.js +54 -0
  68. package/lib/components/RedoclyReferenceDocsMultiStandalone.d.ts +7 -0
  69. package/lib/components/RedoclyReferenceDocsMultiStandalone.js +2 -0
  70. package/lib/components/Samples/ExampleSwitch.d.ts +13 -0
  71. package/lib/components/Samples/ExampleSwitch.js +2 -0
  72. package/lib/components/Samples/LoadingWrapper.d.ts +1 -0
  73. package/lib/components/Samples/LoadingWrapper.js +8 -0
  74. package/lib/components/Samples/SamplesTabs.d.ts +13 -0
  75. package/lib/components/Samples/SamplesTabs.js +2 -0
  76. package/lib/components/Samples/index.d.ts +4 -0
  77. package/lib/components/Samples/index.js +2 -0
  78. package/lib/components/Samples/use-example-key.d.ts +7 -0
  79. package/lib/components/Samples/use-example-key.js +2 -0
  80. package/lib/components/Search/MenuItemProSearch.d.ts +23 -0
  81. package/lib/components/Search/MenuItemProSearch.js +10 -0
  82. package/lib/components/Search/ProSearchBox.d.ts +52 -0
  83. package/lib/components/Search/ProSearchBox.js +2 -0
  84. package/lib/components/Search/SearchField.d.ts +9 -0
  85. package/lib/components/Search/SearchField.js +2 -0
  86. package/lib/components/Search/index.d.ts +2 -0
  87. package/lib/components/Search/index.js +2 -0
  88. package/lib/components/Search/styled.d.ts +21 -0
  89. package/lib/components/Search/styled.js +135 -0
  90. package/lib/components/StoreProvider.d.ts +23 -0
  91. package/lib/components/StoreProvider.js +2 -0
  92. package/lib/components/Tabs/CollapsingTabs/CollapsingTab.d.ts +1 -0
  93. package/lib/components/Tabs/CollapsingTabs/CollapsingTab.js +11 -0
  94. package/lib/components/Tabs/CollapsingTabs/CollapsingTabList.d.ts +1 -0
  95. package/lib/components/Tabs/CollapsingTabs/CollapsingTabList.js +4 -0
  96. package/lib/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +2 -0
  97. package/lib/components/Tabs/CollapsingTabs/CollapsingTabs.js +2 -0
  98. package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +19 -0
  99. package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +2 -0
  100. package/lib/components/Tabs/CollapsingTabs/index.d.ts +4 -0
  101. package/lib/components/Tabs/CollapsingTabs/index.js +2 -0
  102. package/lib/components/Tabs/Tab.d.ts +2 -0
  103. package/lib/components/Tabs/Tab.js +32 -0
  104. package/lib/components/Tabs/TabList.d.ts +2 -0
  105. package/lib/components/Tabs/TabList.js +7 -0
  106. package/lib/components/Tabs/TabPanel.d.ts +2 -0
  107. package/lib/components/Tabs/TabPanel.js +11 -0
  108. package/lib/components/Tabs/index.d.ts +5 -0
  109. package/lib/components/Tabs/index.js +2 -0
  110. package/lib/components/VersionSwitcher.d.ts +7 -0
  111. package/lib/components/VersionSwitcher.js +7 -0
  112. package/lib/components/common/Checkbox.d.ts +10 -0
  113. package/lib/components/common/Checkbox.js +31 -0
  114. package/lib/components/common/CheckboxList.d.ts +25 -0
  115. package/lib/components/common/CheckboxList.js +7 -0
  116. package/lib/components/common/ClearButton/ClearButton.d.ts +3 -0
  117. package/lib/components/common/ClearButton/ClearButton.js +2 -0
  118. package/lib/components/common/ClearButton/index.d.ts +2 -0
  119. package/lib/components/common/ClearButton/index.js +2 -0
  120. package/lib/components/common/ClearButton/styled.d.ts +2 -0
  121. package/lib/components/common/ClearButton/styled.js +16 -0
  122. package/lib/components/common/ClearButton/types.d.ts +6 -0
  123. package/lib/components/common/ClearButton/types.js +2 -0
  124. package/lib/components/common/Dropdown/Dropdown.d.ts +3 -0
  125. package/lib/components/common/Dropdown/Dropdown.js +16 -0
  126. package/lib/components/common/Dropdown/index.d.ts +2 -0
  127. package/lib/components/common/Dropdown/index.js +2 -0
  128. package/lib/components/common/Dropdown/styled.d.ts +28 -0
  129. package/lib/components/common/Dropdown/styled.js +145 -0
  130. package/lib/components/common/Dropdown/types.d.ts +26 -0
  131. package/lib/components/common/Dropdown/types.js +2 -0
  132. package/lib/components/common/FileUpload/FileUpload.d.ts +10 -0
  133. package/lib/components/common/FileUpload/FileUpload.js +2 -0
  134. package/lib/components/common/FileUpload/helper.d.ts +12 -0
  135. package/lib/components/common/FileUpload/helper.js +2 -0
  136. package/lib/components/common/FileUpload/index.d.ts +1 -0
  137. package/lib/components/common/FileUpload/index.js +2 -0
  138. package/lib/components/common/LinearProgress.d.ts +1 -0
  139. package/lib/components/common/LinearProgress.js +104 -0
  140. package/lib/components/common/TextField.d.ts +28 -0
  141. package/lib/components/common/TextField.js +50 -0
  142. package/lib/components/common/form.d.ts +17 -0
  143. package/lib/components/common/form.js +65 -0
  144. package/lib/components/console/ActionPanel.d.ts +12 -0
  145. package/lib/components/console/ActionPanel.js +4 -0
  146. package/lib/components/console/AuthPanel/AuthPanel.d.ts +13 -0
  147. package/lib/components/console/AuthPanel/AuthPanel.js +2 -0
  148. package/lib/components/console/AuthPanel/index.d.ts +2 -0
  149. package/lib/components/console/AuthPanel/index.js +2 -0
  150. package/lib/components/console/AuthPanel/types.d.ts +14 -0
  151. package/lib/components/console/AuthPanel/types.js +2 -0
  152. package/lib/components/console/CodemirrorInput.d.ts +39 -0
  153. package/lib/components/console/CodemirrorInput.js +50 -0
  154. package/lib/components/console/Console.d.ts +47 -0
  155. package/lib/components/console/Console.js +2 -0
  156. package/lib/components/console/ConsoleLazy.d.ts +2 -0
  157. package/lib/components/console/ConsoleLazy.js +2 -0
  158. package/lib/components/console/ConsoleTabs/ConsoleTabs.d.ts +6 -0
  159. package/lib/components/console/ConsoleTabs/ConsoleTabs.js +2 -0
  160. package/lib/components/console/ConsoleTabs/index.d.ts +2 -0
  161. package/lib/components/console/ConsoleTabs/index.js +2 -0
  162. package/lib/components/console/ConsoleTabs/styled.d.ts +5 -0
  163. package/lib/components/console/ConsoleTabs/styled.js +48 -0
  164. package/lib/components/console/OAuth2Flow.d.ts +57 -0
  165. package/lib/components/console/OAuth2Flow.js +14 -0
  166. package/lib/components/console/OAuth2TokenInput.d.ts +35 -0
  167. package/lib/components/console/OAuth2TokenInput.js +2 -0
  168. package/lib/components/console/OpenIDConnect.d.ts +17 -0
  169. package/lib/components/console/OpenIDConnect.js +2 -0
  170. package/lib/components/console/ParameterArray.d.ts +9 -0
  171. package/lib/components/console/ParameterArray.js +28 -0
  172. package/lib/components/console/ParameterDropdown.d.ts +6 -0
  173. package/lib/components/console/ParameterDropdown.js +2 -0
  174. package/lib/components/console/RequestBody/RequestBody.d.ts +3 -0
  175. package/lib/components/console/RequestBody/RequestBody.js +2 -0
  176. package/lib/components/console/RequestBody/index.d.ts +2 -0
  177. package/lib/components/console/RequestBody/index.js +2 -0
  178. package/lib/components/console/RequestBody/types.d.ts +10 -0
  179. package/lib/components/console/RequestBody/types.js +2 -0
  180. package/lib/components/console/RequestBodyForm.d.ts +9 -0
  181. package/lib/components/console/RequestBodyForm.js +10 -0
  182. package/lib/components/console/RequestMimeLabel.d.ts +1 -0
  183. package/lib/components/console/RequestMimeLabel.js +5 -0
  184. package/lib/components/console/ResponseBody.d.ts +4 -0
  185. package/lib/components/console/ResponseBody.js +2 -0
  186. package/lib/components/console/ResponseHeadersList.d.ts +3 -0
  187. package/lib/components/console/ResponseHeadersList.js +10 -0
  188. package/lib/components/console/ResponsePanel.d.ts +21 -0
  189. package/lib/components/console/ResponsePanel.js +18 -0
  190. package/lib/components/console/Scope.d.ts +6 -0
  191. package/lib/components/console/Scope.js +2 -0
  192. package/lib/components/console/ServerVariable.d.ts +10 -0
  193. package/lib/components/console/ServerVariable.js +5 -0
  194. package/lib/components/console/ServersDropdown/ServersDropdown.d.ts +2 -0
  195. package/lib/components/console/ServersDropdown/ServersDropdown.js +4 -0
  196. package/lib/components/console/ServersDropdown/index.d.ts +1 -0
  197. package/lib/components/console/ServersDropdown/index.js +2 -0
  198. package/lib/components/console/ServersDropdown/types.d.ts +5 -0
  199. package/lib/components/console/ServersDropdown/types.js +2 -0
  200. package/lib/components/console/TryItPanel.d.ts +7 -0
  201. package/lib/components/console/TryItPanel.js +14 -0
  202. package/lib/components/console/codemirror-helpers.d.ts +10 -0
  203. package/lib/components/console/codemirror-helpers.js +2 -0
  204. package/lib/components/console/styled.d.ts +20 -0
  205. package/lib/components/console/styled.js +99 -0
  206. package/lib/components/console/utils.d.ts +27 -0
  207. package/lib/components/console/utils.js +2 -0
  208. package/lib/components/index.d.ts +14 -0
  209. package/lib/components/index.js +2 -0
  210. package/lib/components/pluggable/PullRight.d.ts +2 -0
  211. package/lib/components/pluggable/PullRight.js +61 -0
  212. package/lib/components/pluggable/RedocExample.d.ts +15 -0
  213. package/lib/components/pluggable/RedocExample.js +2 -0
  214. package/lib/components/pluggable/RedocRequestBody.d.ts +11 -0
  215. package/lib/components/pluggable/RedocRequestBody.js +2 -0
  216. package/lib/components/pluggable/RedocResponse.d.ts +10 -0
  217. package/lib/components/pluggable/RedocResponse.js +2 -0
  218. package/lib/components/pluggable/RedocSchema.d.ts +12 -0
  219. package/lib/components/pluggable/RedocSchema.js +2 -0
  220. package/lib/components/pluggable/index.d.ts +5 -0
  221. package/lib/components/pluggable/index.js +2 -0
  222. package/lib/components/pluggable/styled.components.d.ts +6 -0
  223. package/lib/components/pluggable/styled.components.js +12 -0
  224. package/lib/components/shared/HttpVerb.d.ts +6 -0
  225. package/lib/components/shared/HttpVerb.js +5 -0
  226. package/lib/components/shared/MimeLabel.d.ts +1 -0
  227. package/lib/components/shared/MimeLabel.js +13 -0
  228. package/lib/components/shared/NoSampleLabel.d.ts +2 -0
  229. package/lib/components/shared/NoSampleLabel.js +13 -0
  230. package/lib/components/shared/index.d.ts +3 -0
  231. package/lib/components/shared/index.js +2 -0
  232. package/lib/components/styled.elements.d.ts +19 -0
  233. package/lib/components/styled.elements.js +166 -0
  234. package/lib/components/types.d.ts +15 -0
  235. package/lib/components/types.js +2 -0
  236. package/lib/constants.d.ts +2 -0
  237. package/lib/constants.js +2 -0
  238. package/lib/empty.d.ts +1 -0
  239. package/lib/empty.js +2 -0
  240. package/lib/events/codeSampleCopy.d.ts +2 -0
  241. package/lib/events/codeSampleCopy.js +2 -0
  242. package/lib/events/creator.d.ts +2 -0
  243. package/lib/events/creator.js +2 -0
  244. package/lib/events/index.d.ts +5 -0
  245. package/lib/events/index.js +2 -0
  246. package/lib/events/languageSwitch.d.ts +2 -0
  247. package/lib/events/languageSwitch.js +2 -0
  248. package/lib/events/panelToggle.d.ts +2 -0
  249. package/lib/events/panelToggle.js +2 -0
  250. package/lib/events/types.d.ts +63 -0
  251. package/lib/events/types.js +2 -0
  252. package/lib/hooks/index.d.ts +3 -0
  253. package/lib/hooks/index.js +2 -0
  254. package/lib/hooks/useDimensions.d.ts +1 -0
  255. package/lib/hooks/useDimensions.js +2 -0
  256. package/lib/hooks/useMount.d.ts +1 -0
  257. package/lib/hooks/useMount.js +2 -0
  258. package/lib/hooks/useUnmount.d.ts +1 -0
  259. package/lib/hooks/useUnmount.js +2 -0
  260. package/lib/index.d.ts +8 -0
  261. package/lib/index.js +2 -0
  262. package/lib/models/code-sample-options.d.ts +11 -0
  263. package/lib/models/code-sample-options.js +2 -0
  264. package/lib/models/file-upload.d.ts +11 -0
  265. package/lib/models/file-upload.js +2 -0
  266. package/lib/models/index.d.ts +2 -0
  267. package/lib/models/index.js +2 -0
  268. package/lib/oauth2-redirect-page/handler/helpers.d.ts +6 -0
  269. package/lib/oauth2-redirect-page/handler/helpers.js +2 -0
  270. package/lib/oauth2-redirect-page/handler/oauth2-redirect-handler.d.ts +1 -0
  271. package/lib/oauth2-redirect-page/handler/oauth2-redirect-handler.js +2 -0
  272. package/lib/oauth2-redirect-page/index.d.ts +1 -0
  273. package/lib/oauth2-redirect-page/index.js +2 -0
  274. package/lib/redoc-lib/index.d.ts +1 -0
  275. package/lib/redoc-lib/index.js +2 -0
  276. package/lib/redoc-lib/src/common-elements/Download.d.ts +7 -0
  277. package/lib/redoc-lib/src/common-elements/Download.js +4 -0
  278. package/lib/redoc-lib/src/common-elements/LinkToField.d.ts +9 -0
  279. package/lib/redoc-lib/src/common-elements/LinkToField.js +27 -0
  280. package/lib/redoc-lib/src/common-elements/fields-layout.d.ts +15 -0
  281. package/lib/redoc-lib/src/common-elements/fields-layout.js +228 -0
  282. package/lib/redoc-lib/src/common-elements/fields.d.ts +21 -0
  283. package/lib/redoc-lib/src/common-elements/fields.js +103 -0
  284. package/lib/redoc-lib/src/common-elements/headers.d.ts +8 -0
  285. package/lib/redoc-lib/src/common-elements/headers.js +36 -0
  286. package/lib/redoc-lib/src/common-elements/icons.d.ts +41 -0
  287. package/lib/redoc-lib/src/common-elements/icons.js +55 -0
  288. package/lib/redoc-lib/src/common-elements/index.d.ts +9 -0
  289. package/lib/redoc-lib/src/common-elements/index.js +2 -0
  290. package/lib/redoc-lib/src/common-elements/linkify.d.ts +13 -0
  291. package/lib/redoc-lib/src/common-elements/linkify.js +55 -0
  292. package/lib/redoc-lib/src/common-elements/mixins.d.ts +1 -0
  293. package/lib/redoc-lib/src/common-elements/mixins.js +5 -0
  294. package/lib/redoc-lib/src/common-elements/panels.d.ts +13 -0
  295. package/lib/redoc-lib/src/common-elements/panels.js +95 -0
  296. package/lib/redoc-lib/src/common-elements/perfect-scrollbar.d.ts +18 -0
  297. package/lib/redoc-lib/src/common-elements/perfect-scrollbar.js +4 -0
  298. package/lib/redoc-lib/src/common-elements/schema.d.ts +11 -0
  299. package/lib/redoc-lib/src/common-elements/schema.js +68 -0
  300. package/lib/redoc-lib/src/common-elements/shelfs.d.ts +3 -0
  301. package/lib/redoc-lib/src/common-elements/shelfs.js +23 -0
  302. package/lib/redoc-lib/src/components/ApiInfo/ApiInfo.d.ts +5 -0
  303. package/lib/redoc-lib/src/components/ApiInfo/ApiInfo.js +2 -0
  304. package/lib/redoc-lib/src/components/ApiInfo/index.d.ts +1 -0
  305. package/lib/redoc-lib/src/components/ApiInfo/index.js +2 -0
  306. package/lib/redoc-lib/src/components/ApiInfo/styled.elements.d.ts +8 -0
  307. package/lib/redoc-lib/src/components/ApiInfo/styled.elements.js +24 -0
  308. package/lib/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +11 -0
  309. package/lib/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.js +4 -0
  310. package/lib/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +12 -0
  311. package/lib/redoc-lib/src/components/CallbackSamples/CallbackSamples.js +2 -0
  312. package/lib/redoc-lib/src/components/Callbacks/CallbackDetails.d.ts +8 -0
  313. package/lib/redoc-lib/src/components/Callbacks/CallbackDetails.js +4 -0
  314. package/lib/redoc-lib/src/components/Callbacks/CallbackOperation.d.ts +5 -0
  315. package/lib/redoc-lib/src/components/Callbacks/CallbackOperation.js +2 -0
  316. package/lib/redoc-lib/src/components/Callbacks/CallbackSummary.d.ts +6 -0
  317. package/lib/redoc-lib/src/components/Callbacks/CallbackSummary.js +2 -0
  318. package/lib/redoc-lib/src/components/Callbacks/CallbackTitle.d.ts +5 -0
  319. package/lib/redoc-lib/src/components/Callbacks/CallbackTitle.js +7 -0
  320. package/lib/redoc-lib/src/components/Callbacks/CallbacksList.d.ts +8 -0
  321. package/lib/redoc-lib/src/components/Callbacks/CallbacksList.js +2 -0
  322. package/lib/redoc-lib/src/components/Callbacks/index.d.ts +3 -0
  323. package/lib/redoc-lib/src/components/Callbacks/index.js +2 -0
  324. package/lib/redoc-lib/src/components/ContentItem/ContentItem.d.ts +9 -0
  325. package/lib/redoc-lib/src/components/ContentItem/ContentItem.js +2 -0
  326. package/lib/redoc-lib/src/components/ContentItem/index.d.ts +1 -0
  327. package/lib/redoc-lib/src/components/ContentItem/index.js +2 -0
  328. package/lib/redoc-lib/src/components/ContentItems/ContentItems.d.ts +8 -0
  329. package/lib/redoc-lib/src/components/ContentItems/ContentItems.js +2 -0
  330. package/lib/redoc-lib/src/components/ContentItems/Skeleton.d.ts +1 -0
  331. package/lib/redoc-lib/src/components/ContentItems/Skeleton.js +31 -0
  332. package/lib/redoc-lib/src/components/ContentItems/index.d.ts +1 -0
  333. package/lib/redoc-lib/src/components/ContentItems/index.js +2 -0
  334. package/lib/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +10 -0
  335. package/lib/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.js +2 -0
  336. package/lib/redoc-lib/src/components/DiscriminatorDropdown/index.d.ts +1 -0
  337. package/lib/redoc-lib/src/components/DiscriminatorDropdown/index.js +2 -0
  338. package/lib/redoc-lib/src/components/DownloadButton/DownloadButton.d.ts +4 -0
  339. package/lib/redoc-lib/src/components/DownloadButton/DownloadButton.js +21 -0
  340. package/lib/redoc-lib/src/components/DownloadButton/index.d.ts +1 -0
  341. package/lib/redoc-lib/src/components/DownloadButton/index.js +2 -0
  342. package/lib/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.d.ts +7 -0
  343. package/lib/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.js +8 -0
  344. package/lib/redoc-lib/src/components/ErrorBoundary.d.ts +9 -0
  345. package/lib/redoc-lib/src/components/ErrorBoundary.js +5 -0
  346. package/lib/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.d.ts +8 -0
  347. package/lib/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.js +5 -0
  348. package/lib/redoc-lib/src/components/Fields/EnumValues.d.ts +17 -0
  349. package/lib/redoc-lib/src/components/Fields/EnumValues.js +13 -0
  350. package/lib/redoc-lib/src/components/Fields/Extensions.d.ts +9 -0
  351. package/lib/redoc-lib/src/components/Fields/Extensions.js +6 -0
  352. package/lib/redoc-lib/src/components/Fields/Field.d.ts +20 -0
  353. package/lib/redoc-lib/src/components/Fields/Field.js +2 -0
  354. package/lib/redoc-lib/src/components/Fields/FieldContstraints.d.ts +5 -0
  355. package/lib/redoc-lib/src/components/Fields/FieldContstraints.js +2 -0
  356. package/lib/redoc-lib/src/components/Fields/FieldDetail.d.ts +10 -0
  357. package/lib/redoc-lib/src/components/Fields/FieldDetail.js +2 -0
  358. package/lib/redoc-lib/src/components/Fields/FieldDetails.d.ts +12 -0
  359. package/lib/redoc-lib/src/components/Fields/FieldDetails.js +15 -0
  360. package/lib/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +22 -0
  361. package/lib/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +2 -0
  362. package/lib/redoc-lib/src/components/Loading/Loading.d.ts +5 -0
  363. package/lib/redoc-lib/src/components/Loading/Loading.js +9 -0
  364. package/lib/redoc-lib/src/components/Loading/Spinner.d.ts +6 -0
  365. package/lib/redoc-lib/src/components/Loading/Spinner.js +19 -0
  366. package/lib/redoc-lib/src/components/Markdown/AdvancedMarkdown.d.ts +2 -0
  367. package/lib/redoc-lib/src/components/Markdown/AdvancedMarkdown.js +2 -0
  368. package/lib/redoc-lib/src/components/Markdown/Markdown.d.ts +2 -0
  369. package/lib/redoc-lib/src/components/Markdown/Markdown.js +2 -0
  370. package/lib/redoc-lib/src/components/Markdown/SanitizedMarkdownHTML.d.ts +6 -0
  371. package/lib/redoc-lib/src/components/Markdown/SanitizedMarkdownHTML.js +2 -0
  372. package/lib/redoc-lib/src/components/Markdown/index.d.ts +5 -0
  373. package/lib/redoc-lib/src/components/Markdown/index.js +2 -0
  374. package/lib/redoc-lib/src/components/Markdown/styled.d.ts +16 -0
  375. package/lib/redoc-lib/src/components/Markdown/styled.js +257 -0
  376. package/lib/redoc-lib/src/components/Markdown/types.d.ts +16 -0
  377. package/lib/redoc-lib/src/components/Markdown/types.js +2 -0
  378. package/lib/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +13 -0
  379. package/lib/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.js +2 -0
  380. package/lib/redoc-lib/src/components/Operation/Operation.d.ts +7 -0
  381. package/lib/redoc-lib/src/components/Operation/Operation.js +8 -0
  382. package/lib/redoc-lib/src/components/Operation/index.d.ts +2 -0
  383. package/lib/redoc-lib/src/components/Operation/index.js +2 -0
  384. package/lib/redoc-lib/src/components/OptionsProvider.d.ts +6 -0
  385. package/lib/redoc-lib/src/components/OptionsProvider.js +2 -0
  386. package/lib/redoc-lib/src/components/Parameters/Parameters.d.ts +10 -0
  387. package/lib/redoc-lib/src/components/Parameters/Parameters.js +4 -0
  388. package/lib/redoc-lib/src/components/Parameters/ParametersGroup.d.ts +10 -0
  389. package/lib/redoc-lib/src/components/Parameters/ParametersGroup.js +16 -0
  390. package/lib/redoc-lib/src/components/PayloadSamples/Example.d.ts +3 -0
  391. package/lib/redoc-lib/src/components/PayloadSamples/Example.js +2 -0
  392. package/lib/redoc-lib/src/components/PayloadSamples/ExampleValue.d.ts +2 -0
  393. package/lib/redoc-lib/src/components/PayloadSamples/ExampleValue.js +2 -0
  394. package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.d.ts +2 -0
  395. package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +2 -0
  396. package/lib/redoc-lib/src/components/PayloadSamples/PayloadSamples.d.ts +2 -0
  397. package/lib/redoc-lib/src/components/PayloadSamples/PayloadSamples.js +2 -0
  398. package/lib/redoc-lib/src/components/PayloadSamples/index.d.ts +5 -0
  399. package/lib/redoc-lib/src/components/PayloadSamples/index.js +2 -0
  400. package/lib/redoc-lib/src/components/PayloadSamples/styled.d.ts +3 -0
  401. package/lib/redoc-lib/src/components/PayloadSamples/styled.js +17 -0
  402. package/lib/redoc-lib/src/components/PayloadSamples/types.d.ts +25 -0
  403. package/lib/redoc-lib/src/components/PayloadSamples/types.js +2 -0
  404. package/lib/redoc-lib/src/components/PayloadSamples/useExternalExample.d.ts +2 -0
  405. package/lib/redoc-lib/src/components/PayloadSamples/useExternalExample.js +2 -0
  406. package/lib/redoc-lib/src/components/RenderHook.d.ts +6 -0
  407. package/lib/redoc-lib/src/components/RenderHook.js +2 -0
  408. package/lib/redoc-lib/src/components/RequestSamples/CodeSample.d.ts +16 -0
  409. package/lib/redoc-lib/src/components/RequestSamples/CodeSample.js +2 -0
  410. package/lib/redoc-lib/src/components/RequestSamples/RequestSamples.d.ts +12 -0
  411. package/lib/redoc-lib/src/components/RequestSamples/RequestSamples.js +2 -0
  412. package/lib/redoc-lib/src/components/RequestSamples/useCodeSamples.d.ts +9 -0
  413. package/lib/redoc-lib/src/components/RequestSamples/useCodeSamples.js +2 -0
  414. package/lib/redoc-lib/src/components/ResponseSamples/ResponseSamples.d.ts +5 -0
  415. package/lib/redoc-lib/src/components/ResponseSamples/ResponseSamples.js +2 -0
  416. package/lib/redoc-lib/src/components/Responses/Response.d.ts +2 -0
  417. package/lib/redoc-lib/src/components/Responses/Response.js +2 -0
  418. package/lib/redoc-lib/src/components/Responses/ResponseDetails.d.ts +5 -0
  419. package/lib/redoc-lib/src/components/Responses/ResponseDetails.js +4 -0
  420. package/lib/redoc-lib/src/components/Responses/ResponseHeaders.d.ts +3 -0
  421. package/lib/redoc-lib/src/components/Responses/ResponseHeaders.js +2 -0
  422. package/lib/redoc-lib/src/components/Responses/ResponseSummary.d.ts +2 -0
  423. package/lib/redoc-lib/src/components/Responses/ResponseSummary.js +2 -0
  424. package/lib/redoc-lib/src/components/Responses/ResponsesList.d.ts +3 -0
  425. package/lib/redoc-lib/src/components/Responses/ResponsesList.js +2 -0
  426. package/lib/redoc-lib/src/components/Responses/index.d.ts +1 -0
  427. package/lib/redoc-lib/src/components/Responses/index.js +2 -0
  428. package/lib/redoc-lib/src/components/Responses/styled.d.ts +3 -0
  429. package/lib/redoc-lib/src/components/Responses/styled.js +14 -0
  430. package/lib/redoc-lib/src/components/Responses/types.d.ts +12 -0
  431. package/lib/redoc-lib/src/components/Responses/types.js +2 -0
  432. package/lib/redoc-lib/src/components/Schema/ArraySchema.d.ts +3 -0
  433. package/lib/redoc-lib/src/components/Schema/ArraySchema.js +4 -0
  434. package/lib/redoc-lib/src/components/Schema/ObjectSchema.d.ts +2 -0
  435. package/lib/redoc-lib/src/components/Schema/ObjectSchema.js +2 -0
  436. package/lib/redoc-lib/src/components/Schema/OneOfSchema.d.ts +2 -0
  437. package/lib/redoc-lib/src/components/Schema/OneOfSchema.js +2 -0
  438. package/lib/redoc-lib/src/components/Schema/RecursiveSchema.d.ts +2 -0
  439. package/lib/redoc-lib/src/components/Schema/RecursiveSchema.js +2 -0
  440. package/lib/redoc-lib/src/components/Schema/Schema.d.ts +2 -0
  441. package/lib/redoc-lib/src/components/Schema/Schema.js +2 -0
  442. package/lib/redoc-lib/src/components/Schema/index.d.ts +4 -0
  443. package/lib/redoc-lib/src/components/Schema/index.js +2 -0
  444. package/lib/redoc-lib/src/components/Schema/types.d.ts +22 -0
  445. package/lib/redoc-lib/src/components/Schema/types.js +2 -0
  446. package/lib/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.d.ts +21 -0
  447. package/lib/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.js +7 -0
  448. package/lib/redoc-lib/src/components/SearchBox/SearchBox.d.ts +30 -0
  449. package/lib/redoc-lib/src/components/SearchBox/SearchBox.js +2 -0
  450. package/lib/redoc-lib/src/components/SearchBox/styled.d.ts +6 -0
  451. package/lib/redoc-lib/src/components/SearchBox/styled.js +53 -0
  452. package/lib/redoc-lib/src/components/SectionItem/SectionItem.d.ts +6 -0
  453. package/lib/redoc-lib/src/components/SectionItem/SectionItem.js +2 -0
  454. package/lib/redoc-lib/src/components/SectionItem/index.d.ts +1 -0
  455. package/lib/redoc-lib/src/components/SectionItem/index.js +2 -0
  456. package/lib/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.d.ts +3 -0
  457. package/lib/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.js +2 -0
  458. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityDefs.d.ts +8 -0
  459. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityDefs.js +4 -0
  460. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.d.ts +12 -0
  461. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.js +26 -0
  462. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.d.ts +7 -0
  463. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.js +24 -0
  464. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.d.ts +7 -0
  465. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.js +2 -0
  466. package/lib/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.d.ts +3 -0
  467. package/lib/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.js +2 -0
  468. package/lib/redoc-lib/src/components/SecuritySchemes/helpers.d.ts +34 -0
  469. package/lib/redoc-lib/src/components/SecuritySchemes/helpers.js +2 -0
  470. package/lib/redoc-lib/src/components/SecuritySchemes/index.d.ts +2 -0
  471. package/lib/redoc-lib/src/components/SecuritySchemes/index.js +2 -0
  472. package/lib/redoc-lib/src/components/SecuritySchemes/types.d.ts +6 -0
  473. package/lib/redoc-lib/src/components/SecuritySchemes/types.js +2 -0
  474. package/lib/redoc-lib/src/components/SeeMore/SeeMore.d.ts +7 -0
  475. package/lib/redoc-lib/src/components/SeeMore/SeeMore.js +10 -0
  476. package/lib/redoc-lib/src/components/SideMenu/MenuItem.d.ts +17 -0
  477. package/lib/redoc-lib/src/components/SideMenu/MenuItem.js +19 -0
  478. package/lib/redoc-lib/src/components/SideMenu/MenuItems.d.ts +17 -0
  479. package/lib/redoc-lib/src/components/SideMenu/MenuItems.js +2 -0
  480. package/lib/redoc-lib/src/components/SideMenu/SideMenu.d.ts +15 -0
  481. package/lib/redoc-lib/src/components/SideMenu/SideMenu.js +2 -0
  482. package/lib/redoc-lib/src/components/SideMenu/index.d.ts +4 -0
  483. package/lib/redoc-lib/src/components/SideMenu/index.js +2 -0
  484. package/lib/redoc-lib/src/components/SideMenu/styled.elements.d.ts +25 -0
  485. package/lib/redoc-lib/src/components/SideMenu/styled.elements.js +86 -0
  486. package/lib/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +2 -0
  487. package/lib/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.js +2 -0
  488. package/lib/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +25 -0
  489. package/lib/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.js +40 -0
  490. package/lib/redoc-lib/src/components/StoreBuilder.d.ts +6 -0
  491. package/lib/redoc-lib/src/components/StoreBuilder.js +2 -0
  492. package/lib/redoc-lib/src/components/index.d.ts +31 -0
  493. package/lib/redoc-lib/src/components/index.js +2 -0
  494. package/lib/redoc-lib/src/empty.d.ts +1 -0
  495. package/lib/redoc-lib/src/empty.js +2 -0
  496. package/lib/redoc-lib/src/index.d.ts +7 -0
  497. package/lib/redoc-lib/src/index.js +2 -0
  498. package/lib/redoc-lib/src/services/HistoryService.d.ts +15 -0
  499. package/lib/redoc-lib/src/services/HistoryService.js +2 -0
  500. package/lib/redoc-lib/src/services/Labels.d.ts +3 -0
  501. package/lib/redoc-lib/src/services/Labels.js +2 -0
  502. package/lib/redoc-lib/src/services/MarkdownRenderer.d.ts +23 -0
  503. package/lib/redoc-lib/src/services/MarkdownRenderer.js +2 -0
  504. package/lib/redoc-lib/src/services/MarkerService.d.ts +11 -0
  505. package/lib/redoc-lib/src/services/MarkerService.js +2 -0
  506. package/lib/redoc-lib/src/services/MenuBuilder.d.ts +62 -0
  507. package/lib/redoc-lib/src/services/MenuBuilder.js +2 -0
  508. package/lib/redoc-lib/src/services/OpenAPIParser.d.ts +51 -0
  509. package/lib/redoc-lib/src/services/OpenAPIParser.js +2 -0
  510. package/lib/redoc-lib/src/services/RedocNormalizedOptions.d.ts +84 -0
  511. package/lib/redoc-lib/src/services/RedocNormalizedOptions.js +2 -0
  512. package/lib/redoc-lib/src/services/ScrollService.d.ts +18 -0
  513. package/lib/redoc-lib/src/services/ScrollService.js +2 -0
  514. package/lib/redoc-lib/src/services/SearchStore.d.ts +13 -0
  515. package/lib/redoc-lib/src/services/SearchStore.js +2 -0
  516. package/lib/redoc-lib/src/services/SearchWorker.worker.d.ts +17 -0
  517. package/lib/redoc-lib/src/services/SearchWorker.worker.js +2 -0
  518. package/lib/redoc-lib/src/services/SpecStore.d.ts +18 -0
  519. package/lib/redoc-lib/src/services/SpecStore.js +2 -0
  520. package/lib/redoc-lib/src/services/constants.d.ts +6 -0
  521. package/lib/redoc-lib/src/services/constants.js +2 -0
  522. package/lib/redoc-lib/src/services/index.d.ts +12 -0
  523. package/lib/redoc-lib/src/services/index.js +2 -0
  524. package/lib/redoc-lib/src/services/models/ApiInfo.d.ts +17 -0
  525. package/lib/redoc-lib/src/services/models/ApiInfo.js +2 -0
  526. package/lib/redoc-lib/src/services/models/Callback.d.ts +11 -0
  527. package/lib/redoc-lib/src/services/models/Callback.js +2 -0
  528. package/lib/redoc-lib/src/services/models/Example.d.ts +17 -0
  529. package/lib/redoc-lib/src/services/models/Example.js +2 -0
  530. package/lib/redoc-lib/src/services/models/Field.d.ts +35 -0
  531. package/lib/redoc-lib/src/services/models/Field.js +2 -0
  532. package/lib/redoc-lib/src/services/models/Group.model.d.ts +25 -0
  533. package/lib/redoc-lib/src/services/models/Group.model.js +2 -0
  534. package/lib/redoc-lib/src/services/models/MediaContent.d.ts +31 -0
  535. package/lib/redoc-lib/src/services/models/MediaContent.js +2 -0
  536. package/lib/redoc-lib/src/services/models/MediaType.d.ts +27 -0
  537. package/lib/redoc-lib/src/services/models/MediaType.js +2 -0
  538. package/lib/redoc-lib/src/services/models/Operation.d.ts +93 -0
  539. package/lib/redoc-lib/src/services/models/Operation.js +2 -0
  540. package/lib/redoc-lib/src/services/models/RequestBody.d.ts +19 -0
  541. package/lib/redoc-lib/src/services/models/RequestBody.js +2 -0
  542. package/lib/redoc-lib/src/services/models/Response.d.ts +28 -0
  543. package/lib/redoc-lib/src/services/models/Response.js +2 -0
  544. package/lib/redoc-lib/src/services/models/Schema.d.ts +78 -0
  545. package/lib/redoc-lib/src/services/models/Schema.js +2 -0
  546. package/lib/redoc-lib/src/services/models/SecurityRequirement.d.ts +12 -0
  547. package/lib/redoc-lib/src/services/models/SecurityRequirement.js +2 -0
  548. package/lib/redoc-lib/src/services/models/SecuritySchemes.d.ts +25 -0
  549. package/lib/redoc-lib/src/services/models/SecuritySchemes.js +2 -0
  550. package/lib/redoc-lib/src/services/models/Webhook.d.ts +9 -0
  551. package/lib/redoc-lib/src/services/models/Webhook.js +2 -0
  552. package/lib/redoc-lib/src/services/models/index.d.ts +14 -0
  553. package/lib/redoc-lib/src/services/models/index.js +2 -0
  554. package/lib/redoc-lib/src/services/types.d.ts +226 -0
  555. package/lib/redoc-lib/src/services/types.js +2 -0
  556. package/lib/redoc-lib/src/theme.d.ts +10 -0
  557. package/lib/redoc-lib/src/theme.js +2 -0
  558. package/lib/redoc-lib/src/types/index.d.ts +3 -0
  559. package/lib/redoc-lib/src/types/index.js +2 -0
  560. package/lib/redoc-lib/src/types/open-api.d.ts +338 -0
  561. package/lib/redoc-lib/src/types/open-api.js +2 -0
  562. package/lib/redoc-lib/src/types/server.d.ts +7 -0
  563. package/lib/redoc-lib/src/types/server.js +2 -0
  564. package/lib/redoc-lib/src/utils/JsonPointer.d.ts +51 -0
  565. package/lib/redoc-lib/src/utils/JsonPointer.js +2 -0
  566. package/lib/redoc-lib/src/utils/argValuesHelpers.d.ts +4 -0
  567. package/lib/redoc-lib/src/utils/argValuesHelpers.js +2 -0
  568. package/lib/redoc-lib/src/utils/css-variables.d.ts +2 -0
  569. package/lib/redoc-lib/src/utils/css-variables.js +2 -0
  570. package/lib/redoc-lib/src/utils/debug.d.ts +2 -0
  571. package/lib/redoc-lib/src/utils/debug.js +2 -0
  572. package/lib/redoc-lib/src/utils/decorators.d.ts +1 -0
  573. package/lib/redoc-lib/src/utils/decorators.js +2 -0
  574. package/lib/redoc-lib/src/utils/dom.d.ts +8 -0
  575. package/lib/redoc-lib/src/utils/dom.js +2 -0
  576. package/lib/redoc-lib/src/utils/helpers.d.ts +46 -0
  577. package/lib/redoc-lib/src/utils/helpers.js +2 -0
  578. package/lib/redoc-lib/src/utils/highlight.d.ts +31 -0
  579. package/lib/redoc-lib/src/utils/highlight.js +2 -0
  580. package/lib/redoc-lib/src/utils/index.d.ts +14 -0
  581. package/lib/redoc-lib/src/utils/index.js +2 -0
  582. package/lib/redoc-lib/src/utils/loadAndBundleSpec.d.ts +5 -0
  583. package/lib/redoc-lib/src/utils/loadAndBundleSpec.js +2 -0
  584. package/lib/redoc-lib/src/utils/media-css.d.ts +13 -0
  585. package/lib/redoc-lib/src/utils/media-css.js +2 -0
  586. package/lib/redoc-lib/src/utils/memoize.d.ts +1 -0
  587. package/lib/redoc-lib/src/utils/memoize.js +2 -0
  588. package/lib/redoc-lib/src/utils/object.d.ts +2 -0
  589. package/lib/redoc-lib/src/utils/object.js +2 -0
  590. package/lib/redoc-lib/src/utils/openapi.d.ts +41 -0
  591. package/lib/redoc-lib/src/utils/openapi.js +2 -0
  592. package/lib/redoc-lib/src/utils/sort.d.ts +6 -0
  593. package/lib/redoc-lib/src/utils/sort.js +2 -0
  594. package/lib/redoc-lib/src/utils/string.d.ts +1 -0
  595. package/lib/redoc-lib/src/utils/string.js +2 -0
  596. package/lib/redoc-lib/src/utils/test-utils.d.ts +1 -0
  597. package/lib/redoc-lib/src/utils/test-utils.js +2 -0
  598. package/lib/redoc-lib/src/utils/theme-helpers.d.ts +3 -0
  599. package/lib/redoc-lib/src/utils/theme-helpers.js +4 -0
  600. package/lib/services/OAuth2.d.ts +43 -0
  601. package/lib/services/OAuth2.js +2 -0
  602. package/lib/services/OpenIDConnect.d.ts +38 -0
  603. package/lib/services/OpenIDConnect.js +2 -0
  604. package/lib/services/ProMenu.d.ts +105 -0
  605. package/lib/services/ProMenu.js +2 -0
  606. package/lib/services/ProStore.d.ts +153 -0
  607. package/lib/services/ProStore.js +2 -0
  608. package/lib/services/SearchStore.d.ts +37 -0
  609. package/lib/services/SearchStore.js +2 -0
  610. package/lib/services/VersionedSpecStore.d.ts +40 -0
  611. package/lib/services/VersionedSpecStore.js +2 -0
  612. package/lib/services/check.d.ts +13 -0
  613. package/lib/services/check.js +2 -0
  614. package/lib/services/code-samples/generator.d.ts +25 -0
  615. package/lib/services/code-samples/generator.js +2 -0
  616. package/lib/services/code-samples/httpsnippet/helpers/code-builder.d.ts +82 -0
  617. package/lib/services/code-samples/httpsnippet/helpers/code-builder.js +2 -0
  618. package/lib/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +28 -0
  619. package/lib/services/code-samples/httpsnippet/helpers/code-helpers.js +2 -0
  620. package/lib/services/code-samples/httpsnippet/helpers/constants.d.ts +23 -0
  621. package/lib/services/code-samples/httpsnippet/helpers/constants.js +2 -0
  622. package/lib/services/code-samples/httpsnippet/helpers/lodash-int.d.ts +5 -0
  623. package/lib/services/code-samples/httpsnippet/helpers/lodash-int.js +2 -0
  624. package/lib/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.d.ts +28 -0
  625. package/lib/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.js +2 -0
  626. package/lib/services/code-samples/httpsnippet/helpers/reducer.d.ts +1 -0
  627. package/lib/services/code-samples/httpsnippet/helpers/reducer.js +2 -0
  628. package/lib/services/code-samples/httpsnippet/helpers/shell.d.ts +10 -0
  629. package/lib/services/code-samples/httpsnippet/helpers/shell.js +2 -0
  630. package/lib/services/code-samples/httpsnippet/helpers/string-utility.d.ts +7 -0
  631. package/lib/services/code-samples/httpsnippet/helpers/string-utility.js +2 -0
  632. package/lib/services/code-samples/httpsnippet/index.d.ts +47 -0
  633. package/lib/services/code-samples/httpsnippet/index.js +2 -0
  634. package/lib/services/code-samples/httpsnippet/targets/__mocks__/mock.d.ts +3519 -0
  635. package/lib/services/code-samples/httpsnippet/targets/__mocks__/mock.js +2 -0
  636. package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.d.ts +10 -0
  637. package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.js +2 -0
  638. package/lib/services/code-samples/httpsnippet/targets/csharp/index.d.ts +10 -0
  639. package/lib/services/code-samples/httpsnippet/targets/csharp/index.js +2 -0
  640. package/lib/services/code-samples/httpsnippet/targets/go/index.d.ts +10 -0
  641. package/lib/services/code-samples/httpsnippet/targets/go/index.js +2 -0
  642. package/lib/services/code-samples/httpsnippet/targets/go/native.d.ts +10 -0
  643. package/lib/services/code-samples/httpsnippet/targets/go/native.js +2 -0
  644. package/lib/services/code-samples/httpsnippet/targets/index.d.ts +106 -0
  645. package/lib/services/code-samples/httpsnippet/targets/index.js +2 -0
  646. package/lib/services/code-samples/httpsnippet/targets/java/httpclient.d.ts +10 -0
  647. package/lib/services/code-samples/httpsnippet/targets/java/httpclient.js +2 -0
  648. package/lib/services/code-samples/httpsnippet/targets/java/index.d.ts +10 -0
  649. package/lib/services/code-samples/httpsnippet/targets/java/index.js +2 -0
  650. package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.d.ts +10 -0
  651. package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.js +2 -0
  652. package/lib/services/code-samples/httpsnippet/targets/java8/index.d.ts +10 -0
  653. package/lib/services/code-samples/httpsnippet/targets/java8/index.js +2 -0
  654. package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.d.ts +10 -0
  655. package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.js +2 -0
  656. package/lib/services/code-samples/httpsnippet/targets/javascript/index.d.ts +12 -0
  657. package/lib/services/code-samples/httpsnippet/targets/javascript/index.js +2 -0
  658. package/lib/services/code-samples/httpsnippet/targets/node/fetch.d.ts +10 -0
  659. package/lib/services/code-samples/httpsnippet/targets/node/fetch.js +2 -0
  660. package/lib/services/code-samples/httpsnippet/targets/node/index.d.ts +10 -0
  661. package/lib/services/code-samples/httpsnippet/targets/node/index.js +2 -0
  662. package/lib/services/code-samples/httpsnippet/targets/php/curl.d.ts +10 -0
  663. package/lib/services/code-samples/httpsnippet/targets/php/curl.js +2 -0
  664. package/lib/services/code-samples/httpsnippet/targets/php/index.d.ts +10 -0
  665. package/lib/services/code-samples/httpsnippet/targets/php/index.js +2 -0
  666. package/lib/services/code-samples/httpsnippet/targets/php/types.d.ts +11 -0
  667. package/lib/services/code-samples/httpsnippet/targets/php/types.js +2 -0
  668. package/lib/services/code-samples/httpsnippet/targets/php/utils.d.ts +2 -0
  669. package/lib/services/code-samples/httpsnippet/targets/php/utils.js +2 -0
  670. package/lib/services/code-samples/httpsnippet/targets/python/index.d.ts +10 -0
  671. package/lib/services/code-samples/httpsnippet/targets/python/index.js +2 -0
  672. package/lib/services/code-samples/httpsnippet/targets/python/requests.d.ts +4 -0
  673. package/lib/services/code-samples/httpsnippet/targets/python/requests.js +2 -0
  674. package/lib/services/code-samples/httpsnippet/targets/r/httr.d.ts +4 -0
  675. package/lib/services/code-samples/httpsnippet/targets/r/httr.js +2 -0
  676. package/lib/services/code-samples/httpsnippet/targets/r/index.d.ts +10 -0
  677. package/lib/services/code-samples/httpsnippet/targets/r/index.js +2 -0
  678. package/lib/services/code-samples/httpsnippet/targets/r/utils.d.ts +5 -0
  679. package/lib/services/code-samples/httpsnippet/targets/r/utils.js +2 -0
  680. package/lib/services/code-samples/httpsnippet/targets/ruby/index.d.ts +10 -0
  681. package/lib/services/code-samples/httpsnippet/targets/ruby/index.js +2 -0
  682. package/lib/services/code-samples/httpsnippet/targets/ruby/native.d.ts +10 -0
  683. package/lib/services/code-samples/httpsnippet/targets/ruby/native.js +2 -0
  684. package/lib/services/code-samples/httpsnippet/targets/shell/curl.d.ts +10 -0
  685. package/lib/services/code-samples/httpsnippet/targets/shell/curl.js +2 -0
  686. package/lib/services/code-samples/httpsnippet/targets/shell/index.d.ts +12 -0
  687. package/lib/services/code-samples/httpsnippet/targets/shell/index.js +2 -0
  688. package/lib/services/code-samples/index.d.ts +2 -0
  689. package/lib/services/code-samples/index.js +2 -0
  690. package/lib/services/code-samples/types.d.ts +63 -0
  691. package/lib/services/code-samples/types.js +2 -0
  692. package/lib/services/history/FakeHistoryService.d.ts +20 -0
  693. package/lib/services/history/FakeHistoryService.js +2 -0
  694. package/lib/services/history/ProHashHistoryService.d.ts +25 -0
  695. package/lib/services/history/ProHashHistoryService.js +2 -0
  696. package/lib/services/history/PushStateHistoryService.d.ts +24 -0
  697. package/lib/services/history/PushStateHistoryService.js +2 -0
  698. package/lib/services/history/helpers.d.ts +4 -0
  699. package/lib/services/history/helpers.js +2 -0
  700. package/lib/services/history/index.d.ts +3 -0
  701. package/lib/services/history/index.js +2 -0
  702. package/lib/services/index.d.ts +5 -0
  703. package/lib/services/index.js +2 -0
  704. package/lib/services/store-types.d.ts +4 -0
  705. package/lib/services/store-types.js +2 -0
  706. package/lib/services/types.d.ts +21 -0
  707. package/lib/services/types.js +2 -0
  708. package/lib/services/utils.d.ts +25 -0
  709. package/lib/services/utils.js +2 -0
  710. package/lib/setupTests.d.ts +4 -0
  711. package/lib/setupTests.js +2 -0
  712. package/lib/standalone.d.ts +27 -0
  713. package/lib/standalone.js +2 -0
  714. package/lib/testProviders.d.ts +4 -0
  715. package/lib/testProviders.js +2 -0
  716. package/lib/types.d.ts +25 -0
  717. package/lib/types.js +2 -0
  718. package/lib/utils.d.ts +30 -0
  719. package/lib/utils.js +2 -0
  720. package/lib-esm/cli/assets/redoc-fast-scroll.d.ts +0 -0
  721. package/lib-esm/cli/assets/redoc-fast-scroll.js +2 -0
  722. package/lib-esm/cli/cli.d.ts +2 -0
  723. package/lib-esm/cli/cli.js +3 -0
  724. package/lib-esm/cli/commands/bundle.d.ts +1 -0
  725. package/lib-esm/cli/commands/bundle.js +2 -0
  726. package/lib-esm/cli/commands/index.d.ts +1 -0
  727. package/lib-esm/cli/commands/index.js +2 -0
  728. package/lib-esm/cli/constants.d.ts +3 -0
  729. package/lib-esm/cli/constants.js +2 -0
  730. package/lib-esm/cli/utils.d.ts +16 -0
  731. package/lib-esm/cli/utils.js +2 -0
  732. package/lib-esm/components/Endpoint/Endpoint.d.ts +3 -0
  733. package/lib-esm/components/Endpoint/Endpoint.js +2 -0
  734. package/lib-esm/components/Endpoint/ServerList.d.ts +3 -0
  735. package/lib-esm/components/Endpoint/ServerList.js +2 -0
  736. package/lib-esm/components/Endpoint/Summary.d.ts +3 -0
  737. package/lib-esm/components/Endpoint/Summary.js +2 -0
  738. package/lib-esm/components/Endpoint/index.d.ts +2 -0
  739. package/lib-esm/components/Endpoint/index.js +2 -0
  740. package/lib-esm/components/Endpoint/styled.d.ts +8 -0
  741. package/lib-esm/components/Endpoint/styled.js +48 -0
  742. package/lib-esm/components/Endpoint/types.d.ts +21 -0
  743. package/lib-esm/components/Endpoint/types.js +2 -0
  744. package/lib-esm/components/NextSectionButton.d.ts +13 -0
  745. package/lib-esm/components/NextSectionButton.js +8 -0
  746. package/lib-esm/components/OperationParameters/OperationParameters.d.ts +2 -0
  747. package/lib-esm/components/OperationParameters/OperationParameters.js +2 -0
  748. package/lib-esm/components/OperationParameters/index.d.ts +1 -0
  749. package/lib-esm/components/OperationParameters/index.js +2 -0
  750. package/lib-esm/components/OperationParameters/types.d.ts +14 -0
  751. package/lib-esm/components/OperationParameters/types.js +2 -0
  752. package/lib-esm/components/OperationParameters/utils.d.ts +7 -0
  753. package/lib-esm/components/OperationParameters/utils.js +2 -0
  754. package/lib-esm/components/Overlay.d.ts +10 -0
  755. package/lib-esm/components/Overlay.js +43 -0
  756. package/lib-esm/components/Panel/Accordion.d.ts +5 -0
  757. package/lib-esm/components/Panel/Accordion.js +2 -0
  758. package/lib-esm/components/Panel/CodeHeader.d.ts +6 -0
  759. package/lib-esm/components/Panel/CodeHeader.js +12 -0
  760. package/lib-esm/components/Panel/CodePanel.d.ts +4 -0
  761. package/lib-esm/components/Panel/CodePanel.js +6 -0
  762. package/lib-esm/components/Panel/ContentPanel.d.ts +4 -0
  763. package/lib-esm/components/Panel/ContentPanel.js +21 -0
  764. package/lib-esm/components/Panel/Description.d.ts +1 -0
  765. package/lib-esm/components/Panel/Description.js +8 -0
  766. package/lib-esm/components/Panel/ResponsePanel.d.ts +8 -0
  767. package/lib-esm/components/Panel/ResponsePanel.js +26 -0
  768. package/lib-esm/components/Panel/Trigger.d.ts +1 -0
  769. package/lib-esm/components/Panel/Trigger.js +8 -0
  770. package/lib-esm/components/Panel/index.d.ts +7 -0
  771. package/lib-esm/components/Panel/index.js +2 -0
  772. package/lib-esm/components/ProProviders.d.ts +9 -0
  773. package/lib-esm/components/ProProviders.js +2 -0
  774. package/lib-esm/components/RedoclyReferenceDocs.d.ts +40 -0
  775. package/lib-esm/components/RedoclyReferenceDocs.js +54 -0
  776. package/lib-esm/components/RedoclyReferenceDocsMultiStandalone.d.ts +7 -0
  777. package/lib-esm/components/RedoclyReferenceDocsMultiStandalone.js +2 -0
  778. package/lib-esm/components/Samples/ExampleSwitch.d.ts +13 -0
  779. package/lib-esm/components/Samples/ExampleSwitch.js +2 -0
  780. package/lib-esm/components/Samples/LoadingWrapper.d.ts +1 -0
  781. package/lib-esm/components/Samples/LoadingWrapper.js +8 -0
  782. package/lib-esm/components/Samples/SamplesTabs.d.ts +13 -0
  783. package/lib-esm/components/Samples/SamplesTabs.js +2 -0
  784. package/lib-esm/components/Samples/index.d.ts +4 -0
  785. package/lib-esm/components/Samples/index.js +2 -0
  786. package/lib-esm/components/Samples/use-example-key.d.ts +7 -0
  787. package/lib-esm/components/Samples/use-example-key.js +2 -0
  788. package/lib-esm/components/Search/MenuItemProSearch.d.ts +23 -0
  789. package/lib-esm/components/Search/MenuItemProSearch.js +10 -0
  790. package/lib-esm/components/Search/ProSearchBox.d.ts +52 -0
  791. package/lib-esm/components/Search/ProSearchBox.js +2 -0
  792. package/lib-esm/components/Search/SearchField.d.ts +9 -0
  793. package/lib-esm/components/Search/SearchField.js +2 -0
  794. package/lib-esm/components/Search/index.d.ts +2 -0
  795. package/lib-esm/components/Search/index.js +2 -0
  796. package/lib-esm/components/Search/styled.d.ts +21 -0
  797. package/lib-esm/components/Search/styled.js +135 -0
  798. package/lib-esm/components/StoreProvider.d.ts +23 -0
  799. package/lib-esm/components/StoreProvider.js +2 -0
  800. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTab.d.ts +1 -0
  801. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTab.js +11 -0
  802. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabList.d.ts +1 -0
  803. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabList.js +4 -0
  804. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +2 -0
  805. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabs.js +2 -0
  806. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +19 -0
  807. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +2 -0
  808. package/lib-esm/components/Tabs/CollapsingTabs/index.d.ts +4 -0
  809. package/lib-esm/components/Tabs/CollapsingTabs/index.js +2 -0
  810. package/lib-esm/components/Tabs/Tab.d.ts +2 -0
  811. package/lib-esm/components/Tabs/Tab.js +32 -0
  812. package/lib-esm/components/Tabs/TabList.d.ts +2 -0
  813. package/lib-esm/components/Tabs/TabList.js +7 -0
  814. package/lib-esm/components/Tabs/TabPanel.d.ts +2 -0
  815. package/lib-esm/components/Tabs/TabPanel.js +11 -0
  816. package/lib-esm/components/Tabs/index.d.ts +5 -0
  817. package/lib-esm/components/Tabs/index.js +2 -0
  818. package/lib-esm/components/VersionSwitcher.d.ts +7 -0
  819. package/lib-esm/components/VersionSwitcher.js +7 -0
  820. package/lib-esm/components/common/Checkbox.d.ts +10 -0
  821. package/lib-esm/components/common/Checkbox.js +31 -0
  822. package/lib-esm/components/common/CheckboxList.d.ts +25 -0
  823. package/lib-esm/components/common/CheckboxList.js +7 -0
  824. package/lib-esm/components/common/ClearButton/ClearButton.d.ts +3 -0
  825. package/lib-esm/components/common/ClearButton/ClearButton.js +2 -0
  826. package/lib-esm/components/common/ClearButton/index.d.ts +2 -0
  827. package/lib-esm/components/common/ClearButton/index.js +2 -0
  828. package/lib-esm/components/common/ClearButton/styled.d.ts +2 -0
  829. package/lib-esm/components/common/ClearButton/styled.js +16 -0
  830. package/lib-esm/components/common/ClearButton/types.d.ts +6 -0
  831. package/lib-esm/components/common/ClearButton/types.js +2 -0
  832. package/lib-esm/components/common/Dropdown/Dropdown.d.ts +3 -0
  833. package/lib-esm/components/common/Dropdown/Dropdown.js +16 -0
  834. package/lib-esm/components/common/Dropdown/index.d.ts +2 -0
  835. package/lib-esm/components/common/Dropdown/index.js +2 -0
  836. package/lib-esm/components/common/Dropdown/styled.d.ts +28 -0
  837. package/lib-esm/components/common/Dropdown/styled.js +145 -0
  838. package/lib-esm/components/common/Dropdown/types.d.ts +26 -0
  839. package/lib-esm/components/common/Dropdown/types.js +2 -0
  840. package/lib-esm/components/common/FileUpload/FileUpload.d.ts +10 -0
  841. package/lib-esm/components/common/FileUpload/FileUpload.js +2 -0
  842. package/lib-esm/components/common/FileUpload/helper.d.ts +12 -0
  843. package/lib-esm/components/common/FileUpload/helper.js +2 -0
  844. package/lib-esm/components/common/FileUpload/index.d.ts +1 -0
  845. package/lib-esm/components/common/FileUpload/index.js +2 -0
  846. package/lib-esm/components/common/LinearProgress.d.ts +1 -0
  847. package/lib-esm/components/common/LinearProgress.js +104 -0
  848. package/lib-esm/components/common/TextField.d.ts +28 -0
  849. package/lib-esm/components/common/TextField.js +79 -0
  850. package/lib-esm/components/common/form.d.ts +17 -0
  851. package/lib-esm/components/common/form.js +65 -0
  852. package/lib-esm/components/console/ActionPanel.d.ts +12 -0
  853. package/lib-esm/components/console/ActionPanel.js +4 -0
  854. package/lib-esm/components/console/AuthPanel/AuthPanel.d.ts +13 -0
  855. package/lib-esm/components/console/AuthPanel/AuthPanel.js +2 -0
  856. package/lib-esm/components/console/AuthPanel/index.d.ts +2 -0
  857. package/lib-esm/components/console/AuthPanel/index.js +2 -0
  858. package/lib-esm/components/console/AuthPanel/types.d.ts +14 -0
  859. package/lib-esm/components/console/AuthPanel/types.js +2 -0
  860. package/lib-esm/components/console/CodemirrorInput.d.ts +39 -0
  861. package/lib-esm/components/console/CodemirrorInput.js +50 -0
  862. package/lib-esm/components/console/Console.d.ts +47 -0
  863. package/lib-esm/components/console/Console.js +2 -0
  864. package/lib-esm/components/console/ConsoleLazy.d.ts +2 -0
  865. package/lib-esm/components/console/ConsoleLazy.js +2 -0
  866. package/lib-esm/components/console/ConsoleTabs/ConsoleTabs.d.ts +6 -0
  867. package/lib-esm/components/console/ConsoleTabs/ConsoleTabs.js +2 -0
  868. package/lib-esm/components/console/ConsoleTabs/index.d.ts +2 -0
  869. package/lib-esm/components/console/ConsoleTabs/index.js +2 -0
  870. package/lib-esm/components/console/ConsoleTabs/styled.d.ts +5 -0
  871. package/lib-esm/components/console/ConsoleTabs/styled.js +48 -0
  872. package/lib-esm/components/console/OAuth2Flow.d.ts +57 -0
  873. package/lib-esm/components/console/OAuth2Flow.js +14 -0
  874. package/lib-esm/components/console/OAuth2TokenInput.d.ts +35 -0
  875. package/lib-esm/components/console/OAuth2TokenInput.js +2 -0
  876. package/lib-esm/components/console/OpenIDConnect.d.ts +17 -0
  877. package/lib-esm/components/console/OpenIDConnect.js +2 -0
  878. package/lib-esm/components/console/ParameterArray.d.ts +9 -0
  879. package/lib-esm/components/console/ParameterArray.js +28 -0
  880. package/lib-esm/components/console/ParameterDropdown.d.ts +6 -0
  881. package/lib-esm/components/console/ParameterDropdown.js +2 -0
  882. package/lib-esm/components/console/RequestBody/RequestBody.d.ts +3 -0
  883. package/lib-esm/components/console/RequestBody/RequestBody.js +2 -0
  884. package/lib-esm/components/console/RequestBody/index.d.ts +2 -0
  885. package/lib-esm/components/console/RequestBody/index.js +2 -0
  886. package/lib-esm/components/console/RequestBody/types.d.ts +10 -0
  887. package/lib-esm/components/console/RequestBody/types.js +2 -0
  888. package/lib-esm/components/console/RequestBodyForm.d.ts +9 -0
  889. package/lib-esm/components/console/RequestBodyForm.js +10 -0
  890. package/lib-esm/components/console/RequestMimeLabel.d.ts +1 -0
  891. package/lib-esm/components/console/RequestMimeLabel.js +5 -0
  892. package/lib-esm/components/console/ResponseBody.d.ts +4 -0
  893. package/lib-esm/components/console/ResponseBody.js +2 -0
  894. package/lib-esm/components/console/ResponseHeadersList.d.ts +3 -0
  895. package/lib-esm/components/console/ResponseHeadersList.js +10 -0
  896. package/lib-esm/components/console/ResponsePanel.d.ts +21 -0
  897. package/lib-esm/components/console/ResponsePanel.js +18 -0
  898. package/lib-esm/components/console/Scope.d.ts +6 -0
  899. package/lib-esm/components/console/Scope.js +2 -0
  900. package/lib-esm/components/console/ServerVariable.d.ts +10 -0
  901. package/lib-esm/components/console/ServerVariable.js +5 -0
  902. package/lib-esm/components/console/ServersDropdown/ServersDropdown.d.ts +2 -0
  903. package/lib-esm/components/console/ServersDropdown/ServersDropdown.js +4 -0
  904. package/lib-esm/components/console/ServersDropdown/index.d.ts +1 -0
  905. package/lib-esm/components/console/ServersDropdown/index.js +2 -0
  906. package/lib-esm/components/console/ServersDropdown/types.d.ts +5 -0
  907. package/lib-esm/components/console/ServersDropdown/types.js +2 -0
  908. package/lib-esm/components/console/TryItPanel.d.ts +7 -0
  909. package/lib-esm/components/console/TryItPanel.js +14 -0
  910. package/lib-esm/components/console/codemirror-helpers.d.ts +10 -0
  911. package/lib-esm/components/console/codemirror-helpers.js +2 -0
  912. package/lib-esm/components/console/styled.d.ts +20 -0
  913. package/lib-esm/components/console/styled.js +99 -0
  914. package/lib-esm/components/console/utils.d.ts +27 -0
  915. package/lib-esm/components/console/utils.js +2 -0
  916. package/lib-esm/components/index.d.ts +14 -0
  917. package/lib-esm/components/index.js +2 -0
  918. package/lib-esm/components/pluggable/PullRight.d.ts +2 -0
  919. package/lib-esm/components/pluggable/PullRight.js +61 -0
  920. package/lib-esm/components/pluggable/RedocExample.d.ts +15 -0
  921. package/lib-esm/components/pluggable/RedocExample.js +2 -0
  922. package/lib-esm/components/pluggable/RedocRequestBody.d.ts +11 -0
  923. package/lib-esm/components/pluggable/RedocRequestBody.js +2 -0
  924. package/lib-esm/components/pluggable/RedocResponse.d.ts +10 -0
  925. package/lib-esm/components/pluggable/RedocResponse.js +2 -0
  926. package/lib-esm/components/pluggable/RedocSchema.d.ts +12 -0
  927. package/lib-esm/components/pluggable/RedocSchema.js +2 -0
  928. package/lib-esm/components/pluggable/index.d.ts +5 -0
  929. package/lib-esm/components/pluggable/index.js +2 -0
  930. package/lib-esm/components/pluggable/styled.components.d.ts +6 -0
  931. package/lib-esm/components/pluggable/styled.components.js +12 -0
  932. package/lib-esm/components/shared/HttpVerb.d.ts +6 -0
  933. package/lib-esm/components/shared/HttpVerb.js +5 -0
  934. package/lib-esm/components/shared/MimeLabel.d.ts +1 -0
  935. package/lib-esm/components/shared/MimeLabel.js +13 -0
  936. package/lib-esm/components/shared/NoSampleLabel.d.ts +2 -0
  937. package/lib-esm/components/shared/NoSampleLabel.js +13 -0
  938. package/lib-esm/components/shared/index.d.ts +3 -0
  939. package/lib-esm/components/shared/index.js +2 -0
  940. package/lib-esm/components/styled.elements.d.ts +19 -0
  941. package/lib-esm/components/styled.elements.js +166 -0
  942. package/lib-esm/components/types.d.ts +15 -0
  943. package/lib-esm/components/types.js +2 -0
  944. package/lib-esm/constants.d.ts +2 -0
  945. package/lib-esm/constants.js +2 -0
  946. package/lib-esm/empty.d.ts +1 -0
  947. package/lib-esm/empty.js +2 -0
  948. package/lib-esm/events/codeSampleCopy.d.ts +2 -0
  949. package/lib-esm/events/codeSampleCopy.js +2 -0
  950. package/lib-esm/events/creator.d.ts +2 -0
  951. package/lib-esm/events/creator.js +2 -0
  952. package/lib-esm/events/index.d.ts +5 -0
  953. package/lib-esm/events/index.js +2 -0
  954. package/lib-esm/events/languageSwitch.d.ts +2 -0
  955. package/lib-esm/events/languageSwitch.js +2 -0
  956. package/lib-esm/events/panelToggle.d.ts +2 -0
  957. package/lib-esm/events/panelToggle.js +2 -0
  958. package/lib-esm/events/types.d.ts +63 -0
  959. package/lib-esm/events/types.js +2 -0
  960. package/lib-esm/hooks/index.d.ts +3 -0
  961. package/lib-esm/hooks/index.js +2 -0
  962. package/lib-esm/hooks/useDimensions.d.ts +1 -0
  963. package/lib-esm/hooks/useDimensions.js +2 -0
  964. package/lib-esm/hooks/useMount.d.ts +1 -0
  965. package/lib-esm/hooks/useMount.js +2 -0
  966. package/lib-esm/hooks/useUnmount.d.ts +1 -0
  967. package/lib-esm/hooks/useUnmount.js +2 -0
  968. package/lib-esm/index.d.ts +8 -0
  969. package/lib-esm/index.js +2 -0
  970. package/lib-esm/models/code-sample-options.d.ts +11 -0
  971. package/lib-esm/models/code-sample-options.js +2 -0
  972. package/lib-esm/models/file-upload.d.ts +11 -0
  973. package/lib-esm/models/file-upload.js +2 -0
  974. package/lib-esm/models/index.d.ts +2 -0
  975. package/lib-esm/models/index.js +2 -0
  976. package/lib-esm/oauth2-redirect-page/handler/helpers.d.ts +6 -0
  977. package/lib-esm/oauth2-redirect-page/handler/helpers.js +2 -0
  978. package/lib-esm/oauth2-redirect-page/handler/oauth2-redirect-handler.d.ts +1 -0
  979. package/lib-esm/oauth2-redirect-page/handler/oauth2-redirect-handler.js +2 -0
  980. package/lib-esm/oauth2-redirect-page/index.d.ts +1 -0
  981. package/lib-esm/oauth2-redirect-page/index.js +2 -0
  982. package/lib-esm/redoc-lib/index.d.ts +1 -0
  983. package/lib-esm/redoc-lib/index.js +2 -0
  984. package/lib-esm/redoc-lib/src/common-elements/Download.d.ts +7 -0
  985. package/lib-esm/redoc-lib/src/common-elements/Download.js +4 -0
  986. package/lib-esm/redoc-lib/src/common-elements/LinkToField.d.ts +9 -0
  987. package/lib-esm/redoc-lib/src/common-elements/LinkToField.js +27 -0
  988. package/lib-esm/redoc-lib/src/common-elements/fields-layout.d.ts +15 -0
  989. package/lib-esm/redoc-lib/src/common-elements/fields-layout.js +228 -0
  990. package/lib-esm/redoc-lib/src/common-elements/fields.d.ts +21 -0
  991. package/lib-esm/redoc-lib/src/common-elements/fields.js +103 -0
  992. package/lib-esm/redoc-lib/src/common-elements/headers.d.ts +8 -0
  993. package/lib-esm/redoc-lib/src/common-elements/headers.js +36 -0
  994. package/lib-esm/redoc-lib/src/common-elements/icons.d.ts +41 -0
  995. package/lib-esm/redoc-lib/src/common-elements/icons.js +55 -0
  996. package/lib-esm/redoc-lib/src/common-elements/index.d.ts +9 -0
  997. package/lib-esm/redoc-lib/src/common-elements/index.js +2 -0
  998. package/lib-esm/redoc-lib/src/common-elements/linkify.d.ts +13 -0
  999. package/lib-esm/redoc-lib/src/common-elements/linkify.js +55 -0
  1000. package/lib-esm/redoc-lib/src/common-elements/mixins.d.ts +1 -0
  1001. package/lib-esm/redoc-lib/src/common-elements/mixins.js +5 -0
  1002. package/lib-esm/redoc-lib/src/common-elements/panels.d.ts +13 -0
  1003. package/lib-esm/redoc-lib/src/common-elements/panels.js +95 -0
  1004. package/lib-esm/redoc-lib/src/common-elements/perfect-scrollbar.d.ts +18 -0
  1005. package/lib-esm/redoc-lib/src/common-elements/perfect-scrollbar.js +4 -0
  1006. package/lib-esm/redoc-lib/src/common-elements/schema.d.ts +11 -0
  1007. package/lib-esm/redoc-lib/src/common-elements/schema.js +68 -0
  1008. package/lib-esm/redoc-lib/src/common-elements/shelfs.d.ts +3 -0
  1009. package/lib-esm/redoc-lib/src/common-elements/shelfs.js +23 -0
  1010. package/lib-esm/redoc-lib/src/components/ApiInfo/ApiInfo.d.ts +5 -0
  1011. package/lib-esm/redoc-lib/src/components/ApiInfo/ApiInfo.js +2 -0
  1012. package/lib-esm/redoc-lib/src/components/ApiInfo/index.d.ts +1 -0
  1013. package/lib-esm/redoc-lib/src/components/ApiInfo/index.js +2 -0
  1014. package/lib-esm/redoc-lib/src/components/ApiInfo/styled.elements.d.ts +8 -0
  1015. package/lib-esm/redoc-lib/src/components/ApiInfo/styled.elements.js +24 -0
  1016. package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +11 -0
  1017. package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.js +4 -0
  1018. package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +12 -0
  1019. package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackSamples.js +2 -0
  1020. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackDetails.d.ts +8 -0
  1021. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackDetails.js +4 -0
  1022. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackOperation.d.ts +5 -0
  1023. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackOperation.js +2 -0
  1024. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackSummary.d.ts +6 -0
  1025. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackSummary.js +2 -0
  1026. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackTitle.d.ts +5 -0
  1027. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackTitle.js +7 -0
  1028. package/lib-esm/redoc-lib/src/components/Callbacks/CallbacksList.d.ts +8 -0
  1029. package/lib-esm/redoc-lib/src/components/Callbacks/CallbacksList.js +2 -0
  1030. package/lib-esm/redoc-lib/src/components/Callbacks/index.d.ts +3 -0
  1031. package/lib-esm/redoc-lib/src/components/Callbacks/index.js +2 -0
  1032. package/lib-esm/redoc-lib/src/components/ContentItem/ContentItem.d.ts +9 -0
  1033. package/lib-esm/redoc-lib/src/components/ContentItem/ContentItem.js +2 -0
  1034. package/lib-esm/redoc-lib/src/components/ContentItem/index.d.ts +1 -0
  1035. package/lib-esm/redoc-lib/src/components/ContentItem/index.js +2 -0
  1036. package/lib-esm/redoc-lib/src/components/ContentItems/ContentItems.d.ts +8 -0
  1037. package/lib-esm/redoc-lib/src/components/ContentItems/ContentItems.js +2 -0
  1038. package/lib-esm/redoc-lib/src/components/ContentItems/Skeleton.d.ts +1 -0
  1039. package/lib-esm/redoc-lib/src/components/ContentItems/Skeleton.js +31 -0
  1040. package/lib-esm/redoc-lib/src/components/ContentItems/index.d.ts +1 -0
  1041. package/lib-esm/redoc-lib/src/components/ContentItems/index.js +2 -0
  1042. package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +10 -0
  1043. package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.js +2 -0
  1044. package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/index.d.ts +1 -0
  1045. package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/index.js +2 -0
  1046. package/lib-esm/redoc-lib/src/components/DownloadButton/DownloadButton.d.ts +4 -0
  1047. package/lib-esm/redoc-lib/src/components/DownloadButton/DownloadButton.js +21 -0
  1048. package/lib-esm/redoc-lib/src/components/DownloadButton/index.d.ts +1 -0
  1049. package/lib-esm/redoc-lib/src/components/DownloadButton/index.js +2 -0
  1050. package/lib-esm/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.d.ts +7 -0
  1051. package/lib-esm/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.js +8 -0
  1052. package/lib-esm/redoc-lib/src/components/ErrorBoundary.d.ts +9 -0
  1053. package/lib-esm/redoc-lib/src/components/ErrorBoundary.js +5 -0
  1054. package/lib-esm/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.d.ts +8 -0
  1055. package/lib-esm/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.js +5 -0
  1056. package/lib-esm/redoc-lib/src/components/Fields/EnumValues.d.ts +17 -0
  1057. package/lib-esm/redoc-lib/src/components/Fields/EnumValues.js +13 -0
  1058. package/lib-esm/redoc-lib/src/components/Fields/Extensions.d.ts +9 -0
  1059. package/lib-esm/redoc-lib/src/components/Fields/Extensions.js +6 -0
  1060. package/lib-esm/redoc-lib/src/components/Fields/Field.d.ts +20 -0
  1061. package/lib-esm/redoc-lib/src/components/Fields/Field.js +2 -0
  1062. package/lib-esm/redoc-lib/src/components/Fields/FieldContstraints.d.ts +5 -0
  1063. package/lib-esm/redoc-lib/src/components/Fields/FieldContstraints.js +2 -0
  1064. package/lib-esm/redoc-lib/src/components/Fields/FieldDetail.d.ts +10 -0
  1065. package/lib-esm/redoc-lib/src/components/Fields/FieldDetail.js +2 -0
  1066. package/lib-esm/redoc-lib/src/components/Fields/FieldDetails.d.ts +12 -0
  1067. package/lib-esm/redoc-lib/src/components/Fields/FieldDetails.js +15 -0
  1068. package/lib-esm/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +22 -0
  1069. package/lib-esm/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +2 -0
  1070. package/lib-esm/redoc-lib/src/components/Loading/Loading.d.ts +5 -0
  1071. package/lib-esm/redoc-lib/src/components/Loading/Loading.js +9 -0
  1072. package/lib-esm/redoc-lib/src/components/Loading/Spinner.d.ts +6 -0
  1073. package/lib-esm/redoc-lib/src/components/Loading/Spinner.js +19 -0
  1074. package/lib-esm/redoc-lib/src/components/Markdown/AdvancedMarkdown.d.ts +2 -0
  1075. package/lib-esm/redoc-lib/src/components/Markdown/AdvancedMarkdown.js +2 -0
  1076. package/lib-esm/redoc-lib/src/components/Markdown/Markdown.d.ts +2 -0
  1077. package/lib-esm/redoc-lib/src/components/Markdown/Markdown.js +2 -0
  1078. package/lib-esm/redoc-lib/src/components/Markdown/SanitizedMarkdownHTML.d.ts +6 -0
  1079. package/lib-esm/redoc-lib/src/components/Markdown/SanitizedMarkdownHTML.js +2 -0
  1080. package/lib-esm/redoc-lib/src/components/Markdown/index.d.ts +5 -0
  1081. package/lib-esm/redoc-lib/src/components/Markdown/index.js +2 -0
  1082. package/lib-esm/redoc-lib/src/components/Markdown/styled.d.ts +16 -0
  1083. package/lib-esm/redoc-lib/src/components/Markdown/styled.js +257 -0
  1084. package/lib-esm/redoc-lib/src/components/Markdown/types.d.ts +16 -0
  1085. package/lib-esm/redoc-lib/src/components/Markdown/types.js +2 -0
  1086. package/lib-esm/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +13 -0
  1087. package/lib-esm/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.js +2 -0
  1088. package/lib-esm/redoc-lib/src/components/Operation/Operation.d.ts +7 -0
  1089. package/lib-esm/redoc-lib/src/components/Operation/Operation.js +8 -0
  1090. package/lib-esm/redoc-lib/src/components/Operation/index.d.ts +2 -0
  1091. package/lib-esm/redoc-lib/src/components/Operation/index.js +2 -0
  1092. package/lib-esm/redoc-lib/src/components/OptionsProvider.d.ts +6 -0
  1093. package/lib-esm/redoc-lib/src/components/OptionsProvider.js +2 -0
  1094. package/lib-esm/redoc-lib/src/components/Parameters/Parameters.d.ts +10 -0
  1095. package/lib-esm/redoc-lib/src/components/Parameters/Parameters.js +4 -0
  1096. package/lib-esm/redoc-lib/src/components/Parameters/ParametersGroup.d.ts +10 -0
  1097. package/lib-esm/redoc-lib/src/components/Parameters/ParametersGroup.js +16 -0
  1098. package/lib-esm/redoc-lib/src/components/PayloadSamples/Example.d.ts +3 -0
  1099. package/lib-esm/redoc-lib/src/components/PayloadSamples/Example.js +2 -0
  1100. package/lib-esm/redoc-lib/src/components/PayloadSamples/ExampleValue.d.ts +2 -0
  1101. package/lib-esm/redoc-lib/src/components/PayloadSamples/ExampleValue.js +2 -0
  1102. package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.d.ts +2 -0
  1103. package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +2 -0
  1104. package/lib-esm/redoc-lib/src/components/PayloadSamples/PayloadSamples.d.ts +2 -0
  1105. package/lib-esm/redoc-lib/src/components/PayloadSamples/PayloadSamples.js +2 -0
  1106. package/lib-esm/redoc-lib/src/components/PayloadSamples/index.d.ts +5 -0
  1107. package/lib-esm/redoc-lib/src/components/PayloadSamples/index.js +2 -0
  1108. package/lib-esm/redoc-lib/src/components/PayloadSamples/styled.d.ts +3 -0
  1109. package/lib-esm/redoc-lib/src/components/PayloadSamples/styled.js +17 -0
  1110. package/lib-esm/redoc-lib/src/components/PayloadSamples/types.d.ts +25 -0
  1111. package/lib-esm/redoc-lib/src/components/PayloadSamples/types.js +2 -0
  1112. package/lib-esm/redoc-lib/src/components/PayloadSamples/useExternalExample.d.ts +2 -0
  1113. package/lib-esm/redoc-lib/src/components/PayloadSamples/useExternalExample.js +2 -0
  1114. package/lib-esm/redoc-lib/src/components/RenderHook.d.ts +6 -0
  1115. package/lib-esm/redoc-lib/src/components/RenderHook.js +2 -0
  1116. package/lib-esm/redoc-lib/src/components/RequestSamples/CodeSample.d.ts +16 -0
  1117. package/lib-esm/redoc-lib/src/components/RequestSamples/CodeSample.js +2 -0
  1118. package/lib-esm/redoc-lib/src/components/RequestSamples/RequestSamples.d.ts +12 -0
  1119. package/lib-esm/redoc-lib/src/components/RequestSamples/RequestSamples.js +2 -0
  1120. package/lib-esm/redoc-lib/src/components/RequestSamples/useCodeSamples.d.ts +9 -0
  1121. package/lib-esm/redoc-lib/src/components/RequestSamples/useCodeSamples.js +2 -0
  1122. package/lib-esm/redoc-lib/src/components/ResponseSamples/ResponseSamples.d.ts +5 -0
  1123. package/lib-esm/redoc-lib/src/components/ResponseSamples/ResponseSamples.js +2 -0
  1124. package/lib-esm/redoc-lib/src/components/Responses/Response.d.ts +2 -0
  1125. package/lib-esm/redoc-lib/src/components/Responses/Response.js +2 -0
  1126. package/lib-esm/redoc-lib/src/components/Responses/ResponseDetails.d.ts +5 -0
  1127. package/lib-esm/redoc-lib/src/components/Responses/ResponseDetails.js +4 -0
  1128. package/lib-esm/redoc-lib/src/components/Responses/ResponseHeaders.d.ts +3 -0
  1129. package/lib-esm/redoc-lib/src/components/Responses/ResponseHeaders.js +2 -0
  1130. package/lib-esm/redoc-lib/src/components/Responses/ResponseSummary.d.ts +2 -0
  1131. package/lib-esm/redoc-lib/src/components/Responses/ResponseSummary.js +2 -0
  1132. package/lib-esm/redoc-lib/src/components/Responses/ResponsesList.d.ts +3 -0
  1133. package/lib-esm/redoc-lib/src/components/Responses/ResponsesList.js +2 -0
  1134. package/lib-esm/redoc-lib/src/components/Responses/index.d.ts +1 -0
  1135. package/lib-esm/redoc-lib/src/components/Responses/index.js +2 -0
  1136. package/lib-esm/redoc-lib/src/components/Responses/styled.d.ts +3 -0
  1137. package/lib-esm/redoc-lib/src/components/Responses/styled.js +14 -0
  1138. package/lib-esm/redoc-lib/src/components/Responses/types.d.ts +12 -0
  1139. package/lib-esm/redoc-lib/src/components/Responses/types.js +2 -0
  1140. package/lib-esm/redoc-lib/src/components/Schema/ArraySchema.d.ts +3 -0
  1141. package/lib-esm/redoc-lib/src/components/Schema/ArraySchema.js +4 -0
  1142. package/lib-esm/redoc-lib/src/components/Schema/ObjectSchema.d.ts +2 -0
  1143. package/lib-esm/redoc-lib/src/components/Schema/ObjectSchema.js +2 -0
  1144. package/lib-esm/redoc-lib/src/components/Schema/OneOfSchema.d.ts +2 -0
  1145. package/lib-esm/redoc-lib/src/components/Schema/OneOfSchema.js +2 -0
  1146. package/lib-esm/redoc-lib/src/components/Schema/RecursiveSchema.d.ts +2 -0
  1147. package/lib-esm/redoc-lib/src/components/Schema/RecursiveSchema.js +2 -0
  1148. package/lib-esm/redoc-lib/src/components/Schema/Schema.d.ts +2 -0
  1149. package/lib-esm/redoc-lib/src/components/Schema/Schema.js +2 -0
  1150. package/lib-esm/redoc-lib/src/components/Schema/index.d.ts +4 -0
  1151. package/lib-esm/redoc-lib/src/components/Schema/index.js +2 -0
  1152. package/lib-esm/redoc-lib/src/components/Schema/types.d.ts +22 -0
  1153. package/lib-esm/redoc-lib/src/components/Schema/types.js +2 -0
  1154. package/lib-esm/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.d.ts +21 -0
  1155. package/lib-esm/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.js +7 -0
  1156. package/lib-esm/redoc-lib/src/components/SearchBox/SearchBox.d.ts +30 -0
  1157. package/lib-esm/redoc-lib/src/components/SearchBox/SearchBox.js +2 -0
  1158. package/lib-esm/redoc-lib/src/components/SearchBox/styled.d.ts +6 -0
  1159. package/lib-esm/redoc-lib/src/components/SearchBox/styled.js +53 -0
  1160. package/lib-esm/redoc-lib/src/components/SectionItem/SectionItem.d.ts +6 -0
  1161. package/lib-esm/redoc-lib/src/components/SectionItem/SectionItem.js +2 -0
  1162. package/lib-esm/redoc-lib/src/components/SectionItem/index.d.ts +1 -0
  1163. package/lib-esm/redoc-lib/src/components/SectionItem/index.js +2 -0
  1164. package/lib-esm/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.d.ts +3 -0
  1165. package/lib-esm/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.js +2 -0
  1166. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityDefs.d.ts +8 -0
  1167. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityDefs.js +4 -0
  1168. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.d.ts +12 -0
  1169. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.js +26 -0
  1170. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.d.ts +7 -0
  1171. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.js +24 -0
  1172. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.d.ts +7 -0
  1173. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.js +2 -0
  1174. package/lib-esm/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.d.ts +3 -0
  1175. package/lib-esm/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.js +2 -0
  1176. package/lib-esm/redoc-lib/src/components/SecuritySchemes/helpers.d.ts +34 -0
  1177. package/lib-esm/redoc-lib/src/components/SecuritySchemes/helpers.js +2 -0
  1178. package/lib-esm/redoc-lib/src/components/SecuritySchemes/index.d.ts +2 -0
  1179. package/lib-esm/redoc-lib/src/components/SecuritySchemes/index.js +2 -0
  1180. package/lib-esm/redoc-lib/src/components/SecuritySchemes/types.d.ts +6 -0
  1181. package/lib-esm/redoc-lib/src/components/SecuritySchemes/types.js +2 -0
  1182. package/lib-esm/redoc-lib/src/components/SeeMore/SeeMore.d.ts +7 -0
  1183. package/lib-esm/redoc-lib/src/components/SeeMore/SeeMore.js +10 -0
  1184. package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.d.ts +17 -0
  1185. package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.js +19 -0
  1186. package/lib-esm/redoc-lib/src/components/SideMenu/MenuItems.d.ts +17 -0
  1187. package/lib-esm/redoc-lib/src/components/SideMenu/MenuItems.js +2 -0
  1188. package/lib-esm/redoc-lib/src/components/SideMenu/SideMenu.d.ts +15 -0
  1189. package/lib-esm/redoc-lib/src/components/SideMenu/SideMenu.js +2 -0
  1190. package/lib-esm/redoc-lib/src/components/SideMenu/index.d.ts +4 -0
  1191. package/lib-esm/redoc-lib/src/components/SideMenu/index.js +2 -0
  1192. package/lib-esm/redoc-lib/src/components/SideMenu/styled.elements.d.ts +25 -0
  1193. package/lib-esm/redoc-lib/src/components/SideMenu/styled.elements.js +86 -0
  1194. package/lib-esm/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +2 -0
  1195. package/lib-esm/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.js +2 -0
  1196. package/lib-esm/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +25 -0
  1197. package/lib-esm/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.js +40 -0
  1198. package/lib-esm/redoc-lib/src/components/StoreBuilder.d.ts +6 -0
  1199. package/lib-esm/redoc-lib/src/components/StoreBuilder.js +2 -0
  1200. package/lib-esm/redoc-lib/src/components/index.d.ts +31 -0
  1201. package/lib-esm/redoc-lib/src/components/index.js +2 -0
  1202. package/lib-esm/redoc-lib/src/empty.d.ts +1 -0
  1203. package/lib-esm/redoc-lib/src/empty.js +2 -0
  1204. package/lib-esm/redoc-lib/src/index.d.ts +7 -0
  1205. package/lib-esm/redoc-lib/src/index.js +2 -0
  1206. package/lib-esm/redoc-lib/src/services/HistoryService.d.ts +15 -0
  1207. package/lib-esm/redoc-lib/src/services/HistoryService.js +2 -0
  1208. package/lib-esm/redoc-lib/src/services/Labels.d.ts +3 -0
  1209. package/lib-esm/redoc-lib/src/services/Labels.js +2 -0
  1210. package/lib-esm/redoc-lib/src/services/MarkdownRenderer.d.ts +23 -0
  1211. package/lib-esm/redoc-lib/src/services/MarkdownRenderer.js +2 -0
  1212. package/lib-esm/redoc-lib/src/services/MarkerService.d.ts +11 -0
  1213. package/lib-esm/redoc-lib/src/services/MarkerService.js +2 -0
  1214. package/lib-esm/redoc-lib/src/services/MenuBuilder.d.ts +62 -0
  1215. package/lib-esm/redoc-lib/src/services/MenuBuilder.js +2 -0
  1216. package/lib-esm/redoc-lib/src/services/OpenAPIParser.d.ts +51 -0
  1217. package/lib-esm/redoc-lib/src/services/OpenAPIParser.js +2 -0
  1218. package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.d.ts +84 -0
  1219. package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.js +2 -0
  1220. package/lib-esm/redoc-lib/src/services/ScrollService.d.ts +18 -0
  1221. package/lib-esm/redoc-lib/src/services/ScrollService.js +2 -0
  1222. package/lib-esm/redoc-lib/src/services/SearchStore.d.ts +13 -0
  1223. package/lib-esm/redoc-lib/src/services/SearchStore.js +2 -0
  1224. package/lib-esm/redoc-lib/src/services/SearchWorker.worker.d.ts +17 -0
  1225. package/lib-esm/redoc-lib/src/services/SearchWorker.worker.js +2 -0
  1226. package/lib-esm/redoc-lib/src/services/SpecStore.d.ts +18 -0
  1227. package/lib-esm/redoc-lib/src/services/SpecStore.js +2 -0
  1228. package/lib-esm/redoc-lib/src/services/constants.d.ts +6 -0
  1229. package/lib-esm/redoc-lib/src/services/constants.js +2 -0
  1230. package/lib-esm/redoc-lib/src/services/index.d.ts +12 -0
  1231. package/lib-esm/redoc-lib/src/services/index.js +2 -0
  1232. package/lib-esm/redoc-lib/src/services/models/ApiInfo.d.ts +17 -0
  1233. package/lib-esm/redoc-lib/src/services/models/ApiInfo.js +2 -0
  1234. package/lib-esm/redoc-lib/src/services/models/Callback.d.ts +11 -0
  1235. package/lib-esm/redoc-lib/src/services/models/Callback.js +2 -0
  1236. package/lib-esm/redoc-lib/src/services/models/Example.d.ts +17 -0
  1237. package/lib-esm/redoc-lib/src/services/models/Example.js +2 -0
  1238. package/lib-esm/redoc-lib/src/services/models/Field.d.ts +35 -0
  1239. package/lib-esm/redoc-lib/src/services/models/Field.js +2 -0
  1240. package/lib-esm/redoc-lib/src/services/models/Group.model.d.ts +25 -0
  1241. package/lib-esm/redoc-lib/src/services/models/Group.model.js +2 -0
  1242. package/lib-esm/redoc-lib/src/services/models/MediaContent.d.ts +31 -0
  1243. package/lib-esm/redoc-lib/src/services/models/MediaContent.js +2 -0
  1244. package/lib-esm/redoc-lib/src/services/models/MediaType.d.ts +27 -0
  1245. package/lib-esm/redoc-lib/src/services/models/MediaType.js +2 -0
  1246. package/lib-esm/redoc-lib/src/services/models/Operation.d.ts +93 -0
  1247. package/lib-esm/redoc-lib/src/services/models/Operation.js +2 -0
  1248. package/lib-esm/redoc-lib/src/services/models/RequestBody.d.ts +19 -0
  1249. package/lib-esm/redoc-lib/src/services/models/RequestBody.js +2 -0
  1250. package/lib-esm/redoc-lib/src/services/models/Response.d.ts +28 -0
  1251. package/lib-esm/redoc-lib/src/services/models/Response.js +2 -0
  1252. package/lib-esm/redoc-lib/src/services/models/Schema.d.ts +78 -0
  1253. package/lib-esm/redoc-lib/src/services/models/Schema.js +2 -0
  1254. package/lib-esm/redoc-lib/src/services/models/SecurityRequirement.d.ts +12 -0
  1255. package/lib-esm/redoc-lib/src/services/models/SecurityRequirement.js +2 -0
  1256. package/lib-esm/redoc-lib/src/services/models/SecuritySchemes.d.ts +25 -0
  1257. package/lib-esm/redoc-lib/src/services/models/SecuritySchemes.js +2 -0
  1258. package/lib-esm/redoc-lib/src/services/models/Webhook.d.ts +9 -0
  1259. package/lib-esm/redoc-lib/src/services/models/Webhook.js +2 -0
  1260. package/lib-esm/redoc-lib/src/services/models/index.d.ts +14 -0
  1261. package/lib-esm/redoc-lib/src/services/models/index.js +2 -0
  1262. package/lib-esm/redoc-lib/src/services/types.d.ts +226 -0
  1263. package/lib-esm/redoc-lib/src/services/types.js +2 -0
  1264. package/lib-esm/redoc-lib/src/theme.d.ts +10 -0
  1265. package/lib-esm/redoc-lib/src/theme.js +2 -0
  1266. package/lib-esm/redoc-lib/src/types/index.d.ts +3 -0
  1267. package/lib-esm/redoc-lib/src/types/index.js +2 -0
  1268. package/lib-esm/redoc-lib/src/types/open-api.d.ts +338 -0
  1269. package/lib-esm/redoc-lib/src/types/open-api.js +2 -0
  1270. package/lib-esm/redoc-lib/src/types/server.d.ts +7 -0
  1271. package/lib-esm/redoc-lib/src/types/server.js +2 -0
  1272. package/lib-esm/redoc-lib/src/utils/JsonPointer.d.ts +51 -0
  1273. package/lib-esm/redoc-lib/src/utils/JsonPointer.js +2 -0
  1274. package/lib-esm/redoc-lib/src/utils/argValuesHelpers.d.ts +4 -0
  1275. package/lib-esm/redoc-lib/src/utils/argValuesHelpers.js +2 -0
  1276. package/lib-esm/redoc-lib/src/utils/css-variables.d.ts +2 -0
  1277. package/lib-esm/redoc-lib/src/utils/css-variables.js +2 -0
  1278. package/lib-esm/redoc-lib/src/utils/debug.d.ts +2 -0
  1279. package/lib-esm/redoc-lib/src/utils/debug.js +2 -0
  1280. package/lib-esm/redoc-lib/src/utils/decorators.d.ts +1 -0
  1281. package/lib-esm/redoc-lib/src/utils/decorators.js +2 -0
  1282. package/lib-esm/redoc-lib/src/utils/dom.d.ts +8 -0
  1283. package/lib-esm/redoc-lib/src/utils/dom.js +2 -0
  1284. package/lib-esm/redoc-lib/src/utils/helpers.d.ts +46 -0
  1285. package/lib-esm/redoc-lib/src/utils/helpers.js +2 -0
  1286. package/lib-esm/redoc-lib/src/utils/highlight.d.ts +31 -0
  1287. package/lib-esm/redoc-lib/src/utils/highlight.js +2 -0
  1288. package/lib-esm/redoc-lib/src/utils/index.d.ts +14 -0
  1289. package/lib-esm/redoc-lib/src/utils/index.js +2 -0
  1290. package/lib-esm/redoc-lib/src/utils/loadAndBundleSpec.d.ts +5 -0
  1291. package/lib-esm/redoc-lib/src/utils/loadAndBundleSpec.js +2 -0
  1292. package/lib-esm/redoc-lib/src/utils/media-css.d.ts +13 -0
  1293. package/lib-esm/redoc-lib/src/utils/media-css.js +2 -0
  1294. package/lib-esm/redoc-lib/src/utils/memoize.d.ts +1 -0
  1295. package/lib-esm/redoc-lib/src/utils/memoize.js +2 -0
  1296. package/lib-esm/redoc-lib/src/utils/object.d.ts +2 -0
  1297. package/lib-esm/redoc-lib/src/utils/object.js +2 -0
  1298. package/lib-esm/redoc-lib/src/utils/openapi.d.ts +41 -0
  1299. package/lib-esm/redoc-lib/src/utils/openapi.js +2 -0
  1300. package/lib-esm/redoc-lib/src/utils/sort.d.ts +6 -0
  1301. package/lib-esm/redoc-lib/src/utils/sort.js +2 -0
  1302. package/lib-esm/redoc-lib/src/utils/string.d.ts +1 -0
  1303. package/lib-esm/redoc-lib/src/utils/string.js +2 -0
  1304. package/lib-esm/redoc-lib/src/utils/test-utils.d.ts +1 -0
  1305. package/lib-esm/redoc-lib/src/utils/test-utils.js +2 -0
  1306. package/lib-esm/redoc-lib/src/utils/theme-helpers.d.ts +3 -0
  1307. package/lib-esm/redoc-lib/src/utils/theme-helpers.js +4 -0
  1308. package/lib-esm/services/OAuth2.d.ts +43 -0
  1309. package/lib-esm/services/OAuth2.js +2 -0
  1310. package/lib-esm/services/OpenIDConnect.d.ts +38 -0
  1311. package/lib-esm/services/OpenIDConnect.js +2 -0
  1312. package/lib-esm/services/ProMenu.d.ts +105 -0
  1313. package/lib-esm/services/ProMenu.js +2 -0
  1314. package/lib-esm/services/ProStore.d.ts +153 -0
  1315. package/lib-esm/services/ProStore.js +2 -0
  1316. package/lib-esm/services/SearchStore.d.ts +37 -0
  1317. package/lib-esm/services/SearchStore.js +2 -0
  1318. package/lib-esm/services/VersionedSpecStore.d.ts +40 -0
  1319. package/lib-esm/services/VersionedSpecStore.js +2 -0
  1320. package/lib-esm/services/check.d.ts +13 -0
  1321. package/lib-esm/services/check.js +2 -0
  1322. package/lib-esm/services/code-samples/generator.d.ts +25 -0
  1323. package/lib-esm/services/code-samples/generator.js +2 -0
  1324. package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.d.ts +82 -0
  1325. package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.js +2 -0
  1326. package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +28 -0
  1327. package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.js +2 -0
  1328. package/lib-esm/services/code-samples/httpsnippet/helpers/constants.d.ts +23 -0
  1329. package/lib-esm/services/code-samples/httpsnippet/helpers/constants.js +2 -0
  1330. package/lib-esm/services/code-samples/httpsnippet/helpers/lodash-int.d.ts +5 -0
  1331. package/lib-esm/services/code-samples/httpsnippet/helpers/lodash-int.js +2 -0
  1332. package/lib-esm/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.d.ts +28 -0
  1333. package/lib-esm/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.js +2 -0
  1334. package/lib-esm/services/code-samples/httpsnippet/helpers/reducer.d.ts +1 -0
  1335. package/lib-esm/services/code-samples/httpsnippet/helpers/reducer.js +2 -0
  1336. package/lib-esm/services/code-samples/httpsnippet/helpers/shell.d.ts +10 -0
  1337. package/lib-esm/services/code-samples/httpsnippet/helpers/shell.js +2 -0
  1338. package/lib-esm/services/code-samples/httpsnippet/helpers/string-utility.d.ts +7 -0
  1339. package/lib-esm/services/code-samples/httpsnippet/helpers/string-utility.js +2 -0
  1340. package/lib-esm/services/code-samples/httpsnippet/index.d.ts +47 -0
  1341. package/lib-esm/services/code-samples/httpsnippet/index.js +2 -0
  1342. package/lib-esm/services/code-samples/httpsnippet/targets/__mocks__/mock.d.ts +3519 -0
  1343. package/lib-esm/services/code-samples/httpsnippet/targets/__mocks__/mock.js +2 -0
  1344. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.d.ts +10 -0
  1345. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.js +2 -0
  1346. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/index.d.ts +10 -0
  1347. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/index.js +2 -0
  1348. package/lib-esm/services/code-samples/httpsnippet/targets/go/index.d.ts +10 -0
  1349. package/lib-esm/services/code-samples/httpsnippet/targets/go/index.js +2 -0
  1350. package/lib-esm/services/code-samples/httpsnippet/targets/go/native.d.ts +10 -0
  1351. package/lib-esm/services/code-samples/httpsnippet/targets/go/native.js +2 -0
  1352. package/lib-esm/services/code-samples/httpsnippet/targets/index.d.ts +106 -0
  1353. package/lib-esm/services/code-samples/httpsnippet/targets/index.js +2 -0
  1354. package/lib-esm/services/code-samples/httpsnippet/targets/java/httpclient.d.ts +10 -0
  1355. package/lib-esm/services/code-samples/httpsnippet/targets/java/httpclient.js +2 -0
  1356. package/lib-esm/services/code-samples/httpsnippet/targets/java/index.d.ts +10 -0
  1357. package/lib-esm/services/code-samples/httpsnippet/targets/java/index.js +2 -0
  1358. package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.d.ts +10 -0
  1359. package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.js +2 -0
  1360. package/lib-esm/services/code-samples/httpsnippet/targets/java8/index.d.ts +10 -0
  1361. package/lib-esm/services/code-samples/httpsnippet/targets/java8/index.js +2 -0
  1362. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.d.ts +10 -0
  1363. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.js +2 -0
  1364. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/index.d.ts +12 -0
  1365. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/index.js +2 -0
  1366. package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.d.ts +10 -0
  1367. package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.js +2 -0
  1368. package/lib-esm/services/code-samples/httpsnippet/targets/node/index.d.ts +10 -0
  1369. package/lib-esm/services/code-samples/httpsnippet/targets/node/index.js +2 -0
  1370. package/lib-esm/services/code-samples/httpsnippet/targets/php/curl.d.ts +10 -0
  1371. package/lib-esm/services/code-samples/httpsnippet/targets/php/curl.js +2 -0
  1372. package/lib-esm/services/code-samples/httpsnippet/targets/php/index.d.ts +10 -0
  1373. package/lib-esm/services/code-samples/httpsnippet/targets/php/index.js +2 -0
  1374. package/lib-esm/services/code-samples/httpsnippet/targets/php/types.d.ts +11 -0
  1375. package/lib-esm/services/code-samples/httpsnippet/targets/php/types.js +2 -0
  1376. package/lib-esm/services/code-samples/httpsnippet/targets/php/utils.d.ts +2 -0
  1377. package/lib-esm/services/code-samples/httpsnippet/targets/php/utils.js +2 -0
  1378. package/lib-esm/services/code-samples/httpsnippet/targets/python/index.d.ts +10 -0
  1379. package/lib-esm/services/code-samples/httpsnippet/targets/python/index.js +2 -0
  1380. package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.d.ts +4 -0
  1381. package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.js +2 -0
  1382. package/lib-esm/services/code-samples/httpsnippet/targets/r/httr.d.ts +4 -0
  1383. package/lib-esm/services/code-samples/httpsnippet/targets/r/httr.js +2 -0
  1384. package/lib-esm/services/code-samples/httpsnippet/targets/r/index.d.ts +10 -0
  1385. package/lib-esm/services/code-samples/httpsnippet/targets/r/index.js +2 -0
  1386. package/lib-esm/services/code-samples/httpsnippet/targets/r/utils.d.ts +5 -0
  1387. package/lib-esm/services/code-samples/httpsnippet/targets/r/utils.js +2 -0
  1388. package/lib-esm/services/code-samples/httpsnippet/targets/ruby/index.d.ts +10 -0
  1389. package/lib-esm/services/code-samples/httpsnippet/targets/ruby/index.js +2 -0
  1390. package/lib-esm/services/code-samples/httpsnippet/targets/ruby/native.d.ts +10 -0
  1391. package/lib-esm/services/code-samples/httpsnippet/targets/ruby/native.js +2 -0
  1392. package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.d.ts +10 -0
  1393. package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.js +2 -0
  1394. package/lib-esm/services/code-samples/httpsnippet/targets/shell/index.d.ts +12 -0
  1395. package/lib-esm/services/code-samples/httpsnippet/targets/shell/index.js +2 -0
  1396. package/lib-esm/services/code-samples/index.d.ts +2 -0
  1397. package/lib-esm/services/code-samples/index.js +2 -0
  1398. package/lib-esm/services/code-samples/types.d.ts +63 -0
  1399. package/lib-esm/services/code-samples/types.js +2 -0
  1400. package/lib-esm/services/history/FakeHistoryService.d.ts +20 -0
  1401. package/lib-esm/services/history/FakeHistoryService.js +2 -0
  1402. package/lib-esm/services/history/ProHashHistoryService.d.ts +25 -0
  1403. package/lib-esm/services/history/ProHashHistoryService.js +2 -0
  1404. package/lib-esm/services/history/PushStateHistoryService.d.ts +24 -0
  1405. package/lib-esm/services/history/PushStateHistoryService.js +2 -0
  1406. package/lib-esm/services/history/helpers.d.ts +4 -0
  1407. package/lib-esm/services/history/helpers.js +2 -0
  1408. package/lib-esm/services/history/index.d.ts +3 -0
  1409. package/lib-esm/services/history/index.js +2 -0
  1410. package/lib-esm/services/index.d.ts +5 -0
  1411. package/lib-esm/services/index.js +2 -0
  1412. package/lib-esm/services/store-types.d.ts +4 -0
  1413. package/lib-esm/services/store-types.js +2 -0
  1414. package/lib-esm/services/types.d.ts +21 -0
  1415. package/lib-esm/services/types.js +2 -0
  1416. package/lib-esm/services/utils.d.ts +25 -0
  1417. package/lib-esm/services/utils.js +2 -0
  1418. package/lib-esm/setupTests.d.ts +4 -0
  1419. package/lib-esm/setupTests.js +2 -0
  1420. package/lib-esm/standalone.d.ts +27 -0
  1421. package/lib-esm/standalone.js +2 -0
  1422. package/lib-esm/testProviders.d.ts +4 -0
  1423. package/lib-esm/testProviders.js +2 -0
  1424. package/lib-esm/types.d.ts +25 -0
  1425. package/lib-esm/types.js +2 -0
  1426. package/lib-esm/utils.d.ts +30 -0
  1427. package/lib-esm/utils.js +2 -0
  1428. package/package.json +172 -0
@@ -0,0 +1,2 @@
1
+ const spec={openapi:"3.0.0",servers:[{url:"//petstore.swagger.io/v2",description:"Default server"},{url:"//petstore.swagger.io/sandbox",description:"Sandbox server"}],info:{description:"This is a sample server Petstore server.\nYou can find out more about Swagger at\n[http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/).\nFor this sample, you can use the api key `special-key` to test the authorization filters.\n\n# Introduction\nThis API is documented in **OpenAPI format** and is based on\n[Petstore sample](http://petstore.swagger.io/) provided by [swagger.io](http://swagger.io) team.\nIt was **extended** to illustrate features of [generator-openapi-repo](https://github.com/Rebilly/generator-openapi-repo)\ntool and [ReDoc](https://github.com/Redocly/redoc) documentation. In addition to standard\nOpenAPI syntax we use a few [vendor extensions](https://github.com/Redocly/redoc/blob/master/docs/redoc-vendor-extensions.md).\n\n# OpenAPI Specification\nThis API is documented in **OpenAPI format** and is based on\n[Petstore sample](http://petstore.swagger.io/) provided by [swagger.io](http://swagger.io) team.\nIt was **extended** to illustrate features of [generator-openapi-repo](https://github.com/Rebilly/generator-openapi-repo)\ntool and [ReDoc](https://github.com/Redocly/redoc) documentation. In addition to standard\nOpenAPI syntax we use a few [vendor extensions](https://github.com/Redocly/redoc/blob/master/docs/redoc-vendor-extensions.md).\n\n## Subheader 1\n\nConsectetur adipiscing elit. Etiam fringilla tincidunt magna non dignissim. Vestibulum vestibulum ipsum augue, sed rhoncus diam consequat sodales. Sed facilisis maximus enim, ut scelerisque lorem ullamcorper eget. Suspendisse venenatis non lectus sed bibendum.\n*Duis neque ante, ultrices at ornare aliquam, vulputate ac dolor.*\n\n## Subheader 2\n\nLorem ipsum dolor sit amet. Ut tempor sem vitae dui varius, consequat varius ligula fringilla. Nulla accumsan pellentesque lorem eu pharetra. Duis vel est metus. Nulla id quam eget ante egestas fringilla. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vulputate pulvinar turpis, ac convallis quam.\n\n# Cross-Origin Resource Sharing\nThis API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/).\nAnd that allows cross-domain communication from the browser.\nAll responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.\n\n# Authentication\n\nPetstore offers two forms of authentication:\n - API Key\n - OAuth2\nOAuth2 - an open protocol to allow secure authorization in a simple\nand standard method from web, mobile and desktop applications.\n\n<SecurityDefinitions />\n",version:"1.0.0",title:"Swagger Petstore",termsOfService:"http://swagger.io/terms/",contact:{name:"API Support",email:"apiteam@swagger.io",url:"https://github.com/Redocly/redoc"},"x-logo":{url:"https://redocly.github.io/redoc/petstore-logo.png",altText:"Petstore logo"},license:{name:"Apache 2.0",url:"http://www.apache.org/licenses/LICENSE-2.0.html"}},externalDocs:{description:"Find out how to create Github repo for your OpenAPI spec.",url:"https://github.com/Rebilly/generator-openapi-repo"},tags:[{name:"pet",description:"Lorem ipsum dolor sit amet.\n\n**Consectetur** adipiscing elit. Etiam fringilla tincidunt magna non dignissim. Vestibulum vestibulum ipsum augue, sed rhoncus diam consequat sodales. Sed facilisis maximus enim, ut scelerisque lorem ullamcorper eget. Suspendisse venenatis non lectus sed bibendum.\n*Duis neque ante, ultrices at ornare aliquam, vulputate ac dolor.*\n\nPellentesque nulla lorem:\n- dapibus lacinia magna vitae, \n- eleifend bibendum nisi\n\nNullam pretium erat ut augue mollis, id varius orci pretium. \n> Ut efficitur eget dui eget molestie.\n\nUt tempor sem vitae dui varius, consequat varius ligula fringilla. Nulla accumsan pellentesque lorem eu pharetra. Duis vel est metus. Nulla id quam eget ante egestas fringilla. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vulputate pulvinar turpis, ac convallis quam.\n[More info](http://swagger.io)\n"},{name:"store"},{name:"user",description:"Operations about user\n\n## Custom section 1\nNullam pretium erat ut augue mollis, id varius orci pretium. \n\n\n## Custom section 2\nNulla accumsan pellentesque lorem eu pharetra. Duis vel est metus. Nulla id quam eget ante egestas fringilla. Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n\nSome Item\n"},{name:"pet_model","x-displayName":"The Pet Model",description:'<SchemaDefinition schemaRef="#/components/schemas/Pet" />\n'},{name:"store_model","x-displayName":"The Order Model",description:'<SchemaDefinition schemaRef="#/components/schemas/Order" exampleRef="#/components/examples/Order" showReadOnly={true} showWriteOnly={true} />\n'}],"x-tagGroups":[{name:"General",tags:["pet","store"]},{name:"User Management",tags:["user"]},{name:"Models",tags:["pet_model","store_model"]}],paths:{"/pet":{parameters:[{name:"Accept-Language",in:"header",description:"The language you prefer for messages. Supported values are en-AU, en-CA, en-GB, en-US",example:"en-US",required:!1,schema:{type:"string",default:"en-AU"}},{name:"cookieParam",in:"cookie",description:"Some cookie",required:!0,schema:{type:"integer",format:"int64"}}],post:{tags:["pet"],summary:"Add a new pet to the store",description:"Add new pet to the store inventory.",operationId:"addPet",responses:{405:{description:"Invalid input"}},security:[{petstore_auth:["write:pets","read:pets"]}],"x-codeSamples":[{lang:"C#",source:'PetStore.v1.Pet pet = new PetStore.v1.Pet();\npet.setApiKey("your api key");\npet.petType = PetStore.v1.Pet.TYPE_DOG;\npet.name = "Rex";\n// set other fields\nPetStoreResponse response = pet.create();\nif (response.statusCode == HttpStatusCode.Created)\n{\n // Successfully created\n}\nelse\n{\n // Something wrong -- check response for errors\n Console.WriteLine(response.getRawResponse());\n}\n'},{lang:"PHP",source:'$form = new \\PetStore\\Entities\\Pet();\n$form->setPetType("Dog");\n$form->setName("Rex");\n// set other fields\ntry {\n $pet = $client->pets()->create($form);\n} catch (UnprocessableEntityException $e) {\n var_dump($e->getErrors());\n}\n'}],requestBody:{$ref:"#/components/requestBodies/Pet"}},put:{tags:["pet"],summary:"Update an existing pet",description:"",operationId:"updatePet",responses:{400:{description:"Invalid ID supplied"},404:{description:"Pet not found"},405:{description:"Validation exception"}},security:[{petstore_auth:["write:pets","read:pets"]}],"x-codeSamples":[{lang:"PHP",source:'$form = new \\PetStore\\Entities\\Pet();\n$form->setPetId(1);\n$form->setPetType("Dog");\n$form->setName("Rex");\n// set other fields\ntry {\n $pet = $client->pets()->update($form);\n} catch (UnprocessableEntityException $e) {\n var_dump($e->getErrors());\n}\n'}],requestBody:{$ref:"#/components/requestBodies/Pet"}}},"/pet/{petId}":{get:{tags:["pet"],summary:"Find pet by ID",description:"Returns a single pet",operationId:"getPetById",parameters:[{name:"petId",in:"path",description:"ID of pet to return",required:!0,deprecated:!0,schema:{type:"integer",format:"int64"}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/Pet"}},"application/xml":{schema:{$ref:"#/components/schemas/Pet"}}}},400:{description:"Invalid ID supplied"},404:{description:"Pet not found"}},security:[{api_key:[]}]},post:{tags:["pet"],summary:"Updates a pet in the store with form data",description:"",operationId:"updatePetWithForm",parameters:[{name:"petId",in:"path",description:"ID of pet that needs to be updated",required:!0,schema:{type:"integer",format:"int64"}}],responses:{405:{description:"Invalid input"}},security:[{petstore_auth:["write:pets","read:pets"]}],requestBody:{content:{"application/x-www-form-urlencoded":{schema:{type:"object",properties:{name:{description:"Updated name of the pet",type:"string"},status:{description:"Updated status of the pet",type:"string"}}}}}}},delete:{tags:["pet"],summary:"Deletes a pet",description:"",operationId:"deletePet",parameters:[{name:"api_key",in:"header",required:!1,schema:{type:"string"},example:"Bearer <TOKEN>"},{name:"petId",in:"path",description:"Pet id to delete",required:!0,schema:{type:"integer",format:"int64"}}],responses:{400:{description:"Invalid pet value"}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/pet/{petId}/uploadImage":{post:{tags:["pet"],summary:"uploads an image",description:"",operationId:"uploadFile",parameters:[{name:"petId",in:"path",description:"ID of pet to update",required:!0,schema:{type:"integer",format:"int64"}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/ApiResponse"}}}}},security:[{petstore_auth:["write:pets","read:pets"]}],requestBody:{content:{"application/octet-stream":{schema:{type:"string",format:"binary"}}}}}},"/pet/{petId}/uploadImage/{data}":{post:{tags:["pet"],summary:"uploads an image",description:"",operationId:"uploadFile",parameters:[{name:"petId",in:"path",description:"ID of pet to update",required:!0,schema:{type:"integer",format:"int64"}},{name:"data",in:"path",description:"ID of pet to update",required:!0,schema:{type:"integer",format:"int64"}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/ApiResponse"}}}}},security:[{petstore_auth:["write:pets","read:pets"]}],requestBody:{content:{"application/octet-stream":{schema:{type:"string",format:"binary"}}}}}},"/pet/findByStatus":{get:{tags:["pet"],summary:"Finds Pets by status",description:"Multiple status values can be provided with comma separated strings",operationId:"findPetsByStatus",parameters:[{name:"status",in:"query",description:"Status values that need to be considered for filter",required:!0,style:"form",schema:{type:"array",minItems:1,maxItems:3,items:{type:"string",enum:["available","pending","sold"],default:"available"}}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Pet"}}},"application/xml":{schema:{type:"array",items:{$ref:"#/components/schemas/Pet"}}}}},400:{description:"Invalid status value"}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/pet/findByTags":{get:{tags:["pet"],summary:"Finds Pets by tags",description:"Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",operationId:"findPetsByTags",deprecated:!0,parameters:[{name:"tags",in:"query",description:"Tags to filter by",required:!0,style:"form",schema:{type:"array",items:{type:"string"}}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Pet"}}},"application/xml":{schema:{type:"array",items:{$ref:"#/components/schemas/Pet"}}}}},400:{description:"Invalid tag value"}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/store/inventory":{get:{tags:["store"],summary:"Returns pet inventories by status",description:"Returns a map of status codes to quantities",operationId:"getInventory",responses:{200:{description:"successful operation",content:{"application/json":{schema:{type:"object",additionalProperties:{type:"integer",format:"int32"}}}}}},security:[{api_key:[]}]}},"/store/order":{post:{tags:["store"],summary:"Place an order for a pet",description:"",operationId:"placeOrder",responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/Order"}},"application/xml":{schema:{$ref:"#/components/schemas/Order"}}}},400:{description:"Invalid Order",content:{"application/json":{example:{status:400,message:"Invalid Order"}}}}},requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/Order"}}},description:"order placed for purchasing the pet",required:!0}}},"/store/order/{orderId}":{get:{tags:["store"],summary:"Find purchase order by ID",description:"For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions",operationId:"getOrderById",parameters:[{name:"orderId",in:"path",description:"ID of pet that needs to be fetched",required:!0,schema:{type:"integer",format:"int64",minimum:1,maximum:5}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/Order"}},"application/xml":{schema:{$ref:"#/components/schemas/Order"}}}},400:{description:"Invalid ID supplied"},404:{description:"Order not found"}}},delete:{tags:["store"],summary:"Delete purchase order by ID",description:"For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors",operationId:"deleteOrder",parameters:[{name:"orderId",in:"path",description:"ID of the order that needs to be deleted",required:!0,schema:{type:"string",minimum:1}}],responses:{400:{description:"Invalid ID supplied"},404:{description:"Order not found"}}}},"/store/subscribe":{post:{tags:["store"],summary:"Subscribe to the Store events",description:"Add subscription for a store events",requestBody:{content:{"application/json":{schema:{type:"object",properties:{callbackUrl:{type:"string",format:"uri",description:"This URL will be called by the server when the desired event will occur",example:"https://myserver.com/send/callback/here"},eventName:{type:"string",description:"Event name for the subscription",enum:["orderInProgress","orderShipped","orderDelivered"],example:"orderInProgress"}},required:["callbackUrl","eventName"]}}}},responses:{201:{description:"Subscription added",content:{"application/json":{schema:{type:"object",properties:{subscriptionId:{type:"string",example:"AAA-123-BBB-456"}}}}}}},callbacks:{orderInProgress:{"{$request.body#/callbackUrl}?event={$request.body#/eventName}":{servers:[{url:"//callback-url.path-level/v1",description:"Path level server 1"},{url:"//callback-url.path-level/v2",description:"Path level server 2"}],post:{summary:"Order in Progress (Summary)",description:'A callback triggered every time an Order is updated status to "inProgress" (Description)',externalDocs:{description:"Find out more",url:"https://more-details.com/demo"},requestBody:{content:{"application/json":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"},timestamp:{type:"string",format:"date-time",example:"2018-10-19T16:46:45Z"},status:{type:"string",example:"inProgress"}}}},"application/xml":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"}}},example:'<?xml version="1.0" encoding="UTF-8"?>\n<root>\n <orderId>123</orderId>\n <status>inProgress</status>\n <timestamp>2018-10-19T16:46:45Z</timestamp>\n</root>\n'}}},responses:{200:{description:"Callback successfully processed and no retries will be performed",content:{"application/json":{schema:{type:"object",properties:{someProp:{type:"string",example:"123"}}}}}},299:{description:"Response for cancelling subscription"},500:{description:"Callback processing failed and retries will be performed"}},"x-codeSamples":[{lang:"C#",source:'PetStore.v1.Pet pet = new PetStore.v1.Pet();\npet.setApiKey("your api key");\npet.petType = PetStore.v1.Pet.TYPE_DOG;\npet.name = "Rex";\n// set other fields\nPetStoreResponse response = pet.create();\nif (response.statusCode == HttpStatusCode.Created)\n{\n // Successfully created\n}\nelse\n{\n // Something wrong -- check response for errors\n Console.WriteLine(response.getRawResponse());\n}\n'},{lang:"PHP",source:'$form = new \\PetStore\\Entities\\Pet();\n$form->setPetType("Dog");\n$form->setName("Rex");\n// set other fields\ntry {\n $pet = $client->pets()->create($form);\n} catch (UnprocessableEntityException $e) {\n var_dump($e->getErrors());\n}\n'}]},put:{description:"Order in Progress (Only Description)",servers:[{url:"//callback-url.operation-level/v1",description:"Operation level server 1 (Operation override)"},{url:"//callback-url.operation-level/v2",description:"Operation level server 2 (Operation override)"}],requestBody:{content:{"application/json":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"},timestamp:{type:"string",format:"date-time",example:"2018-10-19T16:46:45Z"},status:{type:"string",example:"inProgress"}}}},"application/xml":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"}}},example:'<?xml version="1.0" encoding="UTF-8"?>\n<root>\n <orderId>123</orderId>\n <status>inProgress</status>\n <timestamp>2018-10-19T16:46:45Z</timestamp>\n</root>\n'}}},responses:{200:{description:"Callback successfully processed and no retries will be performed",content:{"application/json":{schema:{type:"object",properties:{someProp:{type:"string",example:"123"}}}}}}}}}},orderShipped:{"{$request.body#/callbackUrl}?event={$request.body#/eventName}":{post:{description:"Very long description\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor\nincididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis\nnostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\nDuis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu\nfugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in\nculpa qui officia deserunt mollit anim id est laborum.\n",requestBody:{content:{"application/json":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"},timestamp:{type:"string",format:"date-time",example:"2018-10-19T16:46:45Z"},estimatedDeliveryDate:{type:"string",format:"date-time",example:"2018-11-11T16:00:00Z"}}}}}},responses:{200:{description:"Callback successfully processed and no retries will be performed"}}}}},orderDelivered:{"http://notificationServer.com?url={$request.body#/callbackUrl}&event={$request.body#/eventName}":{post:{deprecated:!0,summary:"Order delivered",description:"A callback triggered every time an Order is delivered to the recipient",requestBody:{content:{"application/json":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"},timestamp:{type:"string",format:"date-time",example:"2018-10-19T16:46:45Z"}}}}}},responses:{200:{description:"Callback successfully processed and no retries will be performed"}}}}}}}},"/user":{post:{tags:["user"],summary:"Create user",description:"This can only be done by the logged in user.",operationId:"createUser",responses:{default:{description:"successful operation"}},requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/User"}}},description:"Created user object",required:!0}}},"/user/{username}":{get:{tags:["user"],summary:"Get user by user name",description:"",operationId:"getUserByName",parameters:[{name:"username",in:"path",description:"The name that needs to be fetched. Use user1 for testing. ",required:!0,schema:{type:"string"}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/User"}},"application/xml":{schema:{$ref:"#/components/schemas/User"}}}},400:{description:"Invalid username supplied"},404:{description:"User not found"}}},put:{tags:["user"],summary:"Updated user",description:"This can only be done by the logged in user.",operationId:"updateUser",parameters:[{name:"username",in:"path",description:"name that need to be deleted",required:!0,schema:{type:"string"}}],responses:{400:{description:"Invalid user supplied"},404:{description:"User not found"}},requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/User"}}},description:"Updated user object",required:!0}},delete:{tags:["user"],summary:"Delete user",description:"This can only be done by the logged in user.",operationId:"deleteUser",parameters:[{name:"username",in:"path",description:"The name that needs to be deleted",required:!0,schema:{type:"string"}}],responses:{400:{description:"Invalid username supplied"},404:{description:"User not found"}}}},"/user/createWithArray":{post:{tags:["user"],summary:"Creates list of users with given input array",description:"",operationId:"createUsersWithArrayInput",responses:{default:{description:"successful operation"}},requestBody:{$ref:"#/components/requestBodies/UserArray"}}},"/user/createWithList":{post:{tags:["user"],summary:"Creates list of users with given input array",description:"",operationId:"createUsersWithListInput",responses:{default:{description:"successful operation"}},requestBody:{$ref:"#/components/requestBodies/UserArray"}}},"/user/login":{get:{tags:["user"],summary:"Logs user into the system",description:"",operationId:"loginUser",parameters:[{name:"username",in:"query",description:"The user name for login",required:!0,schema:{type:"string"}},{name:"password",in:"query",description:"The password for login in clear text",required:!0,schema:{type:"string"}}],responses:{200:{description:"successful operation",headers:{"X-Rate-Limit":{description:"calls per hour allowed by the user",schema:{type:"integer",format:"int32"}},"X-Expires-After":{description:"date in UTC when token expires",schema:{type:"string",format:"date-time"}}},content:{"application/json":{schema:{type:"string"},examples:{response:{value:"OK"}}},"application/xml":{schema:{type:"string"},examples:{response:{value:"<Message> OK </Message>"}}},"text/plain":{examples:{response:{value:"OK"}}}}},400:{description:"Invalid username/password supplied"}}}},"/user/logout":{get:{tags:["user"],summary:"Logs out current logged in user session",description:"",operationId:"logoutUser",responses:{default:{description:"successful operation"}}}}},components:{schemas:{ApiResponse:{type:"object",properties:{code:{type:"integer",format:"int32"},type:{type:"string"},message:{type:"string"}}},Cat:{description:"A representation of a cat",allOf:[{$ref:"#/components/schemas/Pet"},{type:"object",properties:{huntingSkill:{type:"string",description:"The measured skill for hunting",default:"lazy",example:"adventurous",enum:["clueless","lazy","adventurous","aggressive"]}},required:["huntingSkill"]}]},Category:{type:"object",properties:{id:{description:"Category ID",allOf:[{$ref:"#/components/schemas/Id"}]},name:{description:"Category name",type:"string",minLength:1},sub:{description:"Test Sub Category",type:"object",properties:{prop1:{type:"string",description:"Dumb Property"}}}},xml:{name:"Category"}},Dog:{description:"A representation of a dog",allOf:[{$ref:"#/components/schemas/Pet"},{type:"object",properties:{packSize:{type:"integer",format:"int32",description:"The size of the pack the dog is from",default:1,minimum:1}},required:["packSize"]}]},HoneyBee:{description:"A representation of a honey bee",allOf:[{$ref:"#/components/schemas/Pet"},{type:"object",properties:{honeyPerDay:{type:"number",description:"Average amount of honey produced per day in ounces",example:3.14,multipleOf:.01}},required:["honeyPerDay"]}]},Id:{type:"integer",format:"int64",readOnly:!0},Order:{type:"object",properties:{id:{description:"Order ID",allOf:[{$ref:"#/components/schemas/Id"}]},petId:{description:"Pet ID",allOf:[{$ref:"#/components/schemas/Id"}]},quantity:{type:"integer",format:"int32",minimum:1,default:1},shipDate:{description:"Estimated ship date",type:"string",format:"date-time"},status:{type:"string",description:"Order Status",enum:["placed","approved","delivered"]},complete:{description:"Indicates whenever order was completed or not",type:"boolean",default:!1,readOnly:!0},requestId:{description:"Unique Request Id",type:"string",writeOnly:!0}},xml:{name:"Order"}},Pet:{type:"object",required:["name","photoUrls"],discriminator:{propertyName:"petType",mapping:{cat:"#/components/schemas/Cat",dog:"#/components/schemas/Dog",bee:"#/components/schemas/HoneyBee"}},properties:{id:{externalDocs:{description:"Find more info here",url:"https://example.com"},description:"Pet ID",allOf:[{$ref:"#/components/schemas/Id"}]},category:{description:"Categories this pet belongs to",allOf:[{$ref:"#/components/schemas/Category"}]},name:{description:"The name given to a pet",type:"string",example:"Guru"},photoUrls:{description:"The list of URL to a cute photos featuring pet",type:"array",maxItems:20,xml:{name:"photoUrl",wrapped:!0},items:{type:"string",format:"url"}},friend:{allOf:[{$ref:"#/components/schemas/Pet"}]},tags:{description:"Tags attached to the pet",type:"array",minItems:1,xml:{name:"tag",wrapped:!0},items:{$ref:"#/components/schemas/Tag"}},status:{type:"string",description:"Pet status in the store",enum:["available","pending","sold"]},petType:{description:"Type of a pet",type:"string"}},xml:{name:"Pet"}},Tag:{type:"object",properties:{id:{description:"Tag ID",allOf:[{$ref:"#/components/schemas/Id"}]},name:{description:"Tag name",type:"string",minLength:1}},xml:{name:"Tag"}},User:{type:"object",properties:{id:{$ref:"#/components/schemas/Id"},pet:{oneOf:[{$ref:"#/components/schemas/Pet"},{$ref:"#/components/schemas/Tag"}]},username:{description:"User supplied username",type:"string",minLength:4,example:"John78"},firstName:{description:"User first name",type:"string",minLength:1,example:"John"},lastName:{description:"User last name",type:"string",minLength:1,example:"Smith"},email:{description:"User email address",type:"string",format:"email",example:"john.smith@example.com"},password:{type:"string",description:"User password, MUST contain a mix of upper and lower case letters, as well as digits",format:"password",minLength:8,pattern:"/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/",example:"drowssaP123"},phone:{description:"User phone number in international format",type:"string",pattern:"/^\\+(?:[0-9]-?){6,14}[0-9]$/",example:"+1-202-555-0192"},userStatus:{description:"User status",type:"integer",format:"int32"}},xml:{name:"User"}}},requestBodies:{Pet:{content:{"application/json":{schema:{allOf:[{description:"My Pet",title:"Pettie"},{$ref:"#/components/schemas/Pet"}]}},"application/xml":{schema:{type:"object",properties:{name:{type:"string",description:"hooray"}}}}},description:"Pet object that needs to be added to the store",required:!0},UserArray:{content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/User"}}}},description:"List of user object",required:!0}},securitySchemes:{petstore_auth:{description:"Get access to data while protecting your account credentials.\nOAuth2 is also a safer and more secure way to give you access.\n",type:"oauth2",flows:{clientCredentials:{tokenUrl:"http://petstore.swagger.io/api/oauth/dialog",scopes:{"write:pets":"modify pets in your account","read:pets":"read your pets"}}}},api_key:{description:"For this sample, you can use the api key `special-key` to test the authorization filters.\n",type:"apiKey",name:"api_key",in:"header"}},examples:{Order:{value:{quantity:1,shipDate:"2018-10-19T16:46:45Z",status:"placed",complete:!1}}}},"x-webhooks":{newPet:{post:{summary:"New pet",description:"Information about a new pet in the systems",operationId:"newPet",tags:["pet"],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/Pet"}}}},responses:{200:{description:"Return a 200 status to indicate that the data was received successfully"}}}}}};export const originalOptions={withImports:!0,withComments:!1,skipOptionalParameters:!1,withOAuth2Call:!0,spec:spec};export const source={"POST http://petstore.swagger.io/v2/pet":{method:"post",url:"http://petstore.swagger.io/v2/pet",httpVersion:"HTTP/1.1",cookies:[{name:"cookieParam",value:"0"}],headers:[{name:"Content-Type",value:"application/json"},{name:"Accept-Language",value:"en-AU"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],postData:{mimeType:"application/json",text:'{"category":{"name":"string","sub":{"prop1":"string"}},"name":"Guru","photoUrls":["string"],"friend":{},"tags":[{"name":"string"}],"status":"available","petType":"cat","huntingSkill":"adventurous"}',params:[],jsonObj:{category:{name:"string",sub:{prop1:"string"}},name:"Guru",photoUrls:["string"],friend:{},tags:[{name:"string"}],status:"available",petType:"cat",huntingSkill:"adventurous"}},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{},serverVariables:{},queryObj:{},headersObj:{"Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{cookieParam:"0"},allHeaders:{cookie:"cookieParam=0","Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"",query:{},pathname:"/v2/pet",path:"/v2/pet",href:"http://petstore.swagger.io/v2/pet"},fullUrl:"http://petstore.swagger.io/v2/pet"},"POST http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}":{method:"post",url:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}",httpVersion:"HTTP/1.1",cookies:[],headers:[{name:"Content-Type",value:"application/octet-stream"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{petId:"",data:""},serverVariables:{},queryObj:{},headersObj:{"Content-Type":"application/octet-stream",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{},allHeaders:{"Content-Type":"application/octet-stream",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"",query:{},pathname:"/v2/pet/{petId}/uploadImage/{data}",path:"/v2/pet/{petId}/uploadImage/{data}",href:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}"},fullUrl:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}"},"PUT http://petstore.swagger.io/v2/pet":{method:"put",url:"http://petstore.swagger.io/v2/pet",httpVersion:"HTTP/1.1",cookies:[{name:"cookieParam",value:"0"}],headers:[{name:"Content-Type",value:"application/json"},{name:"Accept-Language",value:"en-AU"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],postData:{mimeType:"application/json",text:'{"category":{"name":"string","sub":{"prop1":"string"}},"name":"Guru","photoUrls":["string"],"friend":{},"tags":[{"name":"string"}],"status":"available","petType":"cat","huntingSkill":"adventurous"}',params:[],jsonObj:{category:{name:"string",sub:{prop1:"string"}},name:"Guru",photoUrls:["string"],friend:{},tags:[{name:"string"}],status:"available",petType:"cat",huntingSkill:"adventurous"}},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{},serverVariables:{},queryObj:{},headersObj:{"Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{cookieParam:"0"},allHeaders:{cookie:"cookieParam=0","Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"",query:{},pathname:"/v2/pet",path:"/v2/pet",href:"http://petstore.swagger.io/v2/pet"},fullUrl:"http://petstore.swagger.io/v2/pet"},"POST http://petstore.swagger.io/v2/pet/{petId}/uploadImage":{method:"post",url:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage",httpVersion:"HTTP/1.1",cookies:[],headers:[{name:"Content-Type",value:"application/octet-stream"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{petId:""},serverVariables:{},queryObj:{},headersObj:{"Content-Type":"application/octet-stream",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{},allHeaders:{"Content-Type":"application/octet-stream",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"",query:{},pathname:"/v2/pet/{petId}/uploadImage",path:"/v2/pet/{petId}/uploadImage",href:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage"},fullUrl:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage"},"GET http://petstore.swagger.io/v2/pet/findByStatus/{id}":{method:"get",url:"http://petstore.swagger.io/v2/pet/findByStatus/{id}",httpVersion:"HTTP/1.1",cookies:[],headers:[{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[{name:"status",value:"available"}],headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{id:""},serverVariables:{},queryObj:{status:"available"},headersObj:{Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{},allHeaders:{Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"status=available",query:{status:"available"},pathname:"/v2/pet/findByStatus/{id}",path:"/v2/pet/findByStatus/{id}?status=available",href:"http://petstore.swagger.io/v2/pet/findByStatus/%7Bid%7D"},fullUrl:"http://petstore.swagger.io/v2/pet/findByStatus/{id}?status=available"},"POST https://{customerId}.saas-app.com:{port}/v2":{method:"post",url:"https://{customerId}.saas-app.com:{port}/v2/pet",httpVersion:"HTTP/1.1",cookies:[{name:"cookieParam",value:"0"}],headers:[{name:"Content-Type",value:"application/json"},{name:"Accept-Language",value:"en-AU"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],postData:{mimeType:"application/json",text:"text",params:[],jsonObj:{category:{name:"string",sub:{prop1:"string"}},name:"Guru",photoUrls:["string"],friend:{},tags:[{name:"string"}],cvv_check:"string",status:"available",petType:"cat",huntingSkill:"adventurous"}},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[],pathParameters:{},serverVariables:{customerId:"demo",port:"443"},queryObj:{},headersObj:{"Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{cookieParam:"0"},allHeaders:{cookie:"cookieParam=0","Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"https:",slashes:!0,auth:null,host:"",port:null,hostname:"",hash:null,search:"",query:{},pathname:"{customerId}.saas-app.com:{port}/v2/pet",path:"{customerId}.saas-app.com:{port}/v2/pet",href:"https:///%7BcustomerId%7D.saas-app.com:%7Bport%7D/v2/pet"},fullUrl:"https://{customerId}.saas-app.com:{port}/v2/pet"},"POST http://petstore.swagger.io/login":{method:"post",url:"http://petstore.swagger.io/login",httpVersion:"HTTP/1.1",headers:[],queryString:[],postData:{mimeType:"application/json",text:"text",params:[],jsonObj:{}},basicAuth:{username:"usernamestring",password:"passwordstring"},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[],pathParameters:{},queryObj:{},headersObj:{},cookiesObj:{},allHeaders:{},serverVariables:{},cookies:[{name:"cookieParam",value:"0"}],uriObj:{protocol:"https:",slashes:!0,auth:null,host:"",port:null,hostname:"",hash:null,search:"",query:{},pathname:"petstore.swagger.io/login",path:"petstore.swagger.io/login",href:"https://petstore.swagger.io/login"},fullUrl:"https://petstore.swagger.io/login"}};export const serverVariablesOptions={withImports:!0,withComments:!1,skipOptionalParameters:!1,withOAuth2Call:!0,spec:Object.assign(Object.assign({},spec),{servers:[{url:"https://{customerId}.saas-app.com:{port}/v2",variables:{customerId:{default:"demo",description:"Customer ID assigned by the service provider"},port:{enum:["443","8443"],default:"443"}}}]})};
2
+ //# sourceMappingURL=mock.js.map
@@ -0,0 +1,10 @@
1
+ import type { CSharpCodeSampleConfig } from '../../../types';
2
+ import type { LanguageHandler } from '../..';
3
+ declare const handler: LanguageHandler<CSharpCodeSampleConfig['options']>;
4
+ export declare const info: {
5
+ key: string;
6
+ title: string;
7
+ link: string;
8
+ description: string;
9
+ };
10
+ export default handler;
@@ -0,0 +1,2 @@
1
+ import stringifyObject from"stringify-object";import{CodeBuilder}from"../../helpers/code-builder";import{HTTPSnippet}from"../..";import{addIndentation,buildUrlExpression,printUrlVariablesDeclarations}from"../../helpers/code-helpers";import{normalizeMimeType}from"../../../../utils";import{capitalizeFirst}from"../../../generator";import{Lang}from"../../helpers/constants";import{MediaTypes}from"../../../../../types";const handler=function(t,e,{target:s,client:a}){var n,i,r,o;const p=Object.assign({indent:" ",withWrapper:!0},e),l=new CodeBuilder({indentation:p.indent,variablesPrefix:p.variablesPrefix,capitalize:!0,lang:Lang.CSHARP}),u=formatHttpMethod(t.method);if(p.withComments&&addComments(l),p.withWrapper&&(l.push("using System;"),l.push("using System.Net.Http;"),l.push("using System.Threading.Tasks;"),(h(MediaTypes.JSON)||h(MediaTypes.XML)||t.basicAuth)&&l.push("using System.Text;"),(h(MediaTypes.URL_ENCODED)||(null===(n=t.securityOAuth2ExtraCalls)||void 0===n?void 0:n.length))&&l.push("using System.Collections.Generic;"),(h(MediaTypes.JSON)||(null===(i=t.securityOAuth2ExtraCalls)||void 0===i?void 0:i.length))&&l.push("using Newtonsoft.Json.Linq;"),t.headersObj&&t.headersObj["Content-Type"]===MediaTypes.OCTET_STREAM&&(l.push("using System.IO;"),l.push("using System.Net.Http.Headers;")),l.blank(),l.push("public class Program"),l.push("{"),l.push(1,"private readonly IHttpClientFactory _httpClientFactory;"),l.push(1,"public static async Task Main(string[] args)"),l.push(1,"{"),l.push(2,"var client = _httpClientFactory.CreateClient();")),null===(r=t.securityOAuth2ExtraCalls)||void 0===r?void 0:r.length){const e=new HTTPSnippet(null===(o=t.securityOAuth2ExtraCalls)||void 0===o?void 0:o[0]).convert(s,a,Object.assign(Object.assign({},p),{withImports:!1,withWrapper:!1,withComments:!1,variablesPrefix:"oauth2"}));l.push(e),l.push(2,"var oauth2Response = await oauth2Request.Content.ReadAsStringAsync();"),l.push(2,"JObject inputJObject = JObject.Parse(oauth2Response);"),l.push(2,'var accessToken = inputJObject["access_token"].ToString();'),l.blank()}const c=Object.keys(t.allHeaders).filter((t=>{switch(t.toLowerCase()){case"content-type":case"content-length":case"accept-encoding":return!1;default:return!0}}));if(c.length&&c.forEach((e=>{var s;l.push(2,'client.DefaultRequestHeaders.Add("%s", %s);',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;l.push(2,`var base64String = Convert.ToBase64String(Encoding.ASCII.GetBytes("${e}:${s}"));`),l.push(2,'client.DefaultRequestHeaders.Add("Authorization", "Basic "+ base64String);')}if(t.postData)switch(normalizeMimeType(t.postData.mimeType)){case MediaTypes.URL_ENCODED:t.postData.params&&(l.blank(),l.push(2,"List<KeyValuePair<string, string>> postData = new List<KeyValuePair<string, string>>();"),t.postData.params.forEach((t=>{l.push(2,'postData.Add(new KeyValuePair<string, string>("%s", "%s"));',t.name,t.value)})),l.blank());break;case MediaTypes.MULTIPART:t.postData.params&&(l.blank(),l.push(2,"MultipartFormDataContent postData = new MultipartFormDataContent();"),t.postData.params.forEach((t=>{l.push(2,'postData.Add(new StringContent("%s"), "%s");',t.value,t.name)})));break;case MediaTypes.JSON:t.postData.jsonObj&&(l.push(2,`JObject json = JObject.Parse(@"${addIndentation(stringifyObject(t.postData.jsonObj,{indent:p.indent,inlineCharacterLimit:25}).replace(/"/g,'""'),{level:3,firstLine:!1})}");`),l.push(2,'var postData = new StringContent(json.ToString(), Encoding.UTF8, "%s");',t.postData.mimeType));break;case MediaTypes.XML:t.postData.text&&(t.postData.text.trim().split("\n").forEach(((t,e)=>{const s=(0===e?'string xml = @"':"")+t.replace(/"/g,'""');l.push(0===e?3:4,s)})),l.push(2,'";'),l.push(2,'var postData = new StringContent(xml, Encoding.UTF8, "%s");',t.postData.mimeType))}else d()&&(l.push(2,"var ms = new MemoryStream();"),l.push(2,"var postData = new StreamContent(ms);"),l.push(2,'postData.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");'));return printUrlVariablesDeclarations(t,l,3),l.push(2,"var %s = await client.%sAsync(%s%s);",l.var("request"),u,buildUrlExpression(t,l),p.withImports?isDataMethod(t.method)?normalizeMimeType(t.postData&&t.postData.mimeType)===MediaTypes.URL_ENCODED?", new FormUrlEncodedContent(postData)":"delete"===t.method?"":t.postData&&t.postData.params||d()?", postData":", null":"":", new FormUrlEncodedContent(postData)"),p.withWrapper&&(l.push(2,"var response = await request.Content.ReadAsStringAsync();"),l.blank(),l.push(2,"Console.WriteLine(response);"),l.push(1,"}"),l.push("}")),l.join();function h(e){return t.postData&&normalizeMimeType(t.postData.mimeType)===e}function d(){return t.headersObj&&t.headersObj["Content-Type"]===MediaTypes.OCTET_STREAM}};export const info={key:"httpclient",title:"HttpClient",link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",description:".NET Standard HTTP Client"};export default handler;function addComments(t){t.push("/*"),t.push(" * Requires >= .NET 5"),t.push(" *"),t.push(' * Requires package "Newtonsoft.Json" >= 9.01'),t.push(" * See here for installation details:"),t.push(" * https://www.newtonsoft.com/json"),t.push(" */"),t.blank()}function formatHttpMethod(t){return capitalizeFirst(t.toLowerCase())}function isDataMethod(t){return t&&["POST","PUT","DELETE","PATCH"].includes(t.toUpperCase())}
2
+ //# sourceMappingURL=httpclient.js.map
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ info: {
3
+ key: string;
4
+ title: string;
5
+ extname: string;
6
+ default: string;
7
+ };
8
+ httpclient: import("../..").LanguageHandler<import("../../..").BasicLanguageOptions | undefined>;
9
+ };
10
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import httpclient from"./httpclient";export default{info:{key:"csharp",title:"CSharp",extname:".cs",default:"httpclient"},httpclient:httpclient};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ info: {
3
+ key: string;
4
+ title: string;
5
+ extname: string;
6
+ default: string;
7
+ };
8
+ native: import("../..").LanguageHandler<import("../../..").BasicLanguageOptions | undefined>;
9
+ };
10
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import native from"./native";export default{info:{key:"go",title:"Go",extname:".go",default:"native"},native:native};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,10 @@
1
+ import type { LanguageHandler } from '../..';
2
+ import type { GoCodeSampleConfig } from '../../../types';
3
+ declare const handler: LanguageHandler<GoCodeSampleConfig['options']>;
4
+ export declare const info: {
5
+ key: string;
6
+ title: string;
7
+ link: string;
8
+ description: string;
9
+ };
10
+ export default handler;
@@ -0,0 +1,2 @@
1
+ import{CodeBuilder}from"../../helpers/code-builder";import{HTTPSnippet}from"../..";import{Lang}from"../../helpers/constants";import{buildUrlExpression,printUrlVariablesDeclarations}from"../../helpers/code-helpers";import{normalizeMimeType}from"../../../../utils";import{MediaTypes}from"../../../../../types";const indent=1;function hasMimeType(e={},s){return normalizeMimeType(e.mimeType)===s}const handler=function(e,s,{target:a,client:r}){var t,i,p,o,n,l;const u=Object.assign({capitalize:!0,showBoilerplate:!0,checkErrors:!1,printBody:!0,timeout:-1,indent:" "},s),h=null===(t=e.securityOAuth2ExtraCalls)||void 0===t?void 0:t[0],d=u.checkErrors?"err":"_",c=e.method.toUpperCase(),y=new CodeBuilder({indentation:u.indent,variablesPrefix:u.variablesPrefix,capitalize:u.capitalize,lang:Lang.GO}),v=()=>{u.checkErrors&&y.push(1,"if err != nil {").push(2,"panic(err)").push(1,"}")};if(u.showBoilerplate&&(y.push("package main").blank().push("import (").push(1,'"fmt"'),u.timeout>0&&y.push(1,'"time"'),h&&y.push(1,'"encoding/json"'),hasMimeType(e.postData,MediaTypes.MULTIPART)&&(y.push(1,'"mime/multipart"'),y.push(1,'"io"'),y.push(1,'"bytes"')),(hasMimeType(e.postData,MediaTypes.URL_ENCODED)||hasMimeType(null===(p=null===(i=e.securityOAuth2ExtraCalls)||void 0===i?void 0:i[0])||void 0===p?void 0:p.postData,MediaTypes.URL_ENCODED))&&(y.push(1,'"net/url"'),y.push(1,'"strconv"')),(hasMimeType(e.postData,MediaTypes.JSON)||hasMimeType(null===(n=null===(o=e.securityOAuth2ExtraCalls)||void 0===o?void 0:o[0])||void 0===n?void 0:n.postData,MediaTypes.JSON))&&y.push(1,'"bytes"'),(e.postData&&!hasMimeType(e.postData,MediaTypes.JSON)||h)&&y.push(1,'"strings"'),y.push(1,'"net/http"'),u.printBody&&y.push(1,'"io/ioutil"'),y.push(")").blank().push("func main() {")),Object.keys(e.allHeaders).length&&Object.keys(e.allHeaders).forEach((s=>{e.allHeaders[s]=`"${e.allHeaders[s]}"`})),h){const s="oAuth2",t=u.checkErrors?`${d} := `:"",i=u.capitalize?"Res":"res",p=new HTTPSnippet(h).convert(a,r,Object.assign(Object.assign({},u),{printBody:!1,variablesPrefix:s,showBoilerplate:!1}));y.push(p).blank().push(1,`var ${s}${i}Body struct {`).push(2,"Access_token string").push(1,"}").push(1,`${t}json.NewDecoder(${s}${i}.Body).Decode(&${s}${i}Body)`).blank(),v(),e.allHeaders.Authorization=`"Bearer " + ${s}${i}Body.Access_token`}if(printUrlVariablesDeclarations(e,y,1),u.timeout>0&&(r=y.var("client"),y.push(1,"%s := http.Client{",r).push(2,"Timeout: time.Duration(%s * time.Second),",u.timeout).push(1,"}").blank()),y.push(1,`${y.var("reqUrl")} := ${buildUrlExpression(e,y)}`),e.postData){let s;switch(normalizeMimeType(e.postData.mimeType)){case MediaTypes.URL_ENCODED:y.push(1,"%s := url.Values{}",y.var("data")),e.postData.params.forEach((e=>{y.push(1,'%s.Set("%s", "%s")',y.var("data"),e.name,e.value)})),y.push(1,'%s, %s := http.NewRequest("%s", %s, strings.NewReader(%s.Encode()))',y.var("req"),d,c,y.var("reqUrl"),y.var("data")),e.allHeaders["Content-Length"]=`strconv.Itoa(len(${y.var("data")}.Encode()))`;break;case MediaTypes.JSON:s=JSON.stringify(e.postData.jsonObj,null,2).split("\n").map((e=>u.indent+e)).join("\n").trim(),y.push(1,`var ${y.var("data")} = []byte(\`${s}\`)`),y.push(1,'%s, %s := http.NewRequest("%s", %s, bytes.NewBuffer(%s))',y.var("req"),d,c,y.var("reqUrl"),y.var("data"));break;case MediaTypes.MULTIPART:y.push(1,"%s := &bytes.Buffer{}",y.var("data")).push(1,"writer := multipart.NewWriter(%s)",y.var("data")),e.postData.params.forEach((e=>{if(!e.fileName&&!e.contentType)return y.push(1,'%s, _ := writer.CreateFormField("%s")',y.var(`${e.name}Fw`),e.name).push(1,'_, %s = io.Copy(%s, strings.NewReader("%s"))',d,y.var(`${e.name}Fw`),e.value),void v();e.fileName&&(y.push(1,'%s, %s = writer.CreateFormFile("%s", "%s")',y.var(`${e.name}Fw`),d,e.name,e.fileName),v())})),y.push(1,"writer.Close()").blank().push(1,"%s := bytes.NewReader(%s.Bytes())",y.var("payload"),y.var("data")).push(1,'%s, %s := http.NewRequest("%s", %s, %s)',y.var("req"),d,c,y.var("reqUrl"),y.var("payload")),e.allHeaders["Content-Type"]="writer.FormDataContentType()";break;default:e.postData.text&&y.push(1,"%s := strings.NewReader(%s)",y.var("payload"),JSON.stringify(null===(l=e.postData)||void 0===l?void 0:l.text)).push(1,'%s, %s := http.NewRequest("%s", %s, %s)',y.var("req"),d,c,y.var("reqUrl"),y.var("payload"))}}else y.push(1,'%s, %s := http.NewRequest("%s", %s, nil)',y.var("req"),d,c,y.var("reqUrl"));if(Object.getOwnPropertyNames(e.queryObj).length){y.blank().push(1,`${y.var("query")} := ${y.var("req")}.URL.Query()`);for(const s in e.queryObj)y.push(1,`${y.var("query")}.Add("${s}", "${e.queryObj[s]}")`);y.push(1,`${y.var("req")}.URL.RawQuery = ${y.var("query")}.Encode()`).blank()}if(v(),e.basicAuth){const{username:s,password:a}=e.basicAuth;y.push(1,`%s.SetBasicAuth("${s}", "${a}")`,y.var("req"))}return Object.keys(e.allHeaders).length&&Object.keys(e.allHeaders).forEach((s=>{y.push(1,'%s.Header.Add("%s", %s)',y.var("req"),s,e.allHeaders[s])})),y.push(1,"%s, %s := %s.Do(%s)",y.var("res"),d,r,y.var("req")),v(),u.printBody&&(y.push(1,"defer %s.Body.Close()",y.var("res")).push(1,"%s, %s := ioutil.ReadAll(%s.Body)",y.var("body"),d,y.var("res")),v()),y.blank().push(1,"fmt.Println(%s)",y.var("res")),u.printBody&&y.push(1,"fmt.Println(string(%s))",y.var("body")),u.showBoilerplate&&y.push("}"),y.join()};export const info={key:"native",title:"NewRequest",link:"http://golang.org/pkg/net/http/#NewRequest",description:"Golang HTTP client request"};export default handler;
2
+ //# sourceMappingURL=native.js.map
@@ -0,0 +1,106 @@
1
+ declare const targets: {
2
+ javascript: {
3
+ info: {
4
+ key: string;
5
+ title: string;
6
+ extname: string;
7
+ default: string;
8
+ };
9
+ fetch: import("..").LanguageHandler<(import("../..").BasicLanguageOptions & {
10
+ credentials?: "omit" | "same-origin" | "include" | undefined;
11
+ }) | undefined>;
12
+ };
13
+ node: {
14
+ info: {
15
+ key: string;
16
+ title: string;
17
+ extname: string;
18
+ default: string;
19
+ };
20
+ fetch: import("..").LanguageHandler<import("../..").BasicLanguageOptions | undefined>;
21
+ };
22
+ python: {
23
+ info: {
24
+ key: string;
25
+ title: string;
26
+ extname: string;
27
+ default: string;
28
+ };
29
+ requests: import("..").LanguageHandler<import("../..").BasicLanguageOptions | undefined>;
30
+ };
31
+ shell: {
32
+ info: {
33
+ key: string;
34
+ title: string;
35
+ extname: string;
36
+ default: string;
37
+ };
38
+ curl: import("..").LanguageHandler<(import("../..").BasicLanguageOptions & {
39
+ binary?: boolean | undefined;
40
+ }) | undefined>;
41
+ };
42
+ java8: {
43
+ info: {
44
+ key: string;
45
+ title: string;
46
+ extname: string;
47
+ default: string;
48
+ };
49
+ apachehttp: import("..").LanguageHandler<import("../..").BasicLanguageOptions | undefined>;
50
+ };
51
+ java: {
52
+ info: {
53
+ key: string;
54
+ title: string;
55
+ extname: string;
56
+ default: string;
57
+ };
58
+ httpclient: import("..").LanguageHandler<import("../..").BasicLanguageOptions | undefined>;
59
+ };
60
+ csharp: {
61
+ info: {
62
+ key: string;
63
+ title: string;
64
+ extname: string;
65
+ default: string;
66
+ };
67
+ httpclient: import("..").LanguageHandler<import("../..").BasicLanguageOptions | undefined>;
68
+ };
69
+ go: {
70
+ info: {
71
+ key: string;
72
+ title: string;
73
+ extname: string;
74
+ default: string;
75
+ };
76
+ native: import("..").LanguageHandler<import("../..").BasicLanguageOptions | undefined>;
77
+ };
78
+ php: {
79
+ info: {
80
+ key: string;
81
+ title: string;
82
+ extname: string;
83
+ default: string;
84
+ };
85
+ curl: import("..").LanguageHandler<import("../..").BasicLanguageOptions | undefined>;
86
+ };
87
+ ruby: {
88
+ info: {
89
+ key: string;
90
+ title: string;
91
+ extname: string;
92
+ default: string;
93
+ };
94
+ native: import("..").LanguageHandler<import("../..").BasicLanguageOptions | undefined>;
95
+ };
96
+ r: {
97
+ info: {
98
+ key: string;
99
+ title: string;
100
+ extname: string;
101
+ default: string;
102
+ };
103
+ httr: import("..").LanguageHandler<import("../..").BasicLanguageOptions | undefined>;
104
+ };
105
+ };
106
+ export default targets;
@@ -0,0 +1,2 @@
1
+ import javascript from"./javascript";import node from"./node";import python from"./python";import shell from"./shell";import java8 from"./java8";import java from"./java";import csharp from"./csharp";import go from"./go";import php from"./php";import ruby from"./ruby";import r from"./r";const targets={javascript:javascript,node:node,python:python,shell:shell,java8:java8,java:java,csharp:csharp,go:go,php:php,ruby:ruby,r:r};export default targets;
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,10 @@
1
+ import type { JavaCodeSampleConfig } from '../../../types';
2
+ import type { LanguageHandler } from '../..';
3
+ declare const handler: LanguageHandler<JavaCodeSampleConfig['options']>;
4
+ export declare const info: {
5
+ key: string;
6
+ title: string;
7
+ link: string;
8
+ description: string;
9
+ };
10
+ export default handler;
@@ -0,0 +1,2 @@
1
+ import{CodeBuilder}from"../../helpers/code-builder";import{HTTPSnippet}from"../..";import{normalizeMimeType}from"../../../../utils";import{addIndentation,buildUrlExpression,printUrlVariablesDeclarations}from"../../helpers/code-helpers";import{Lang}from"../../helpers/constants";import{MediaTypes}from"../../../../../types";const hasQueryParams=e=>!(!e.uriObj.query||!Object.keys(e.uriObj.query).length),getBody=e=>e.postData&&e.postData.mimeType===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 i=Object.assign({indent:" ",withWrapper:!0},t),p=new CodeBuilder({indentation:i.indent,variablesPrefix:i.variablesPrefix,capitalize:!0,lang:Lang.JAVA});let l=!1;if(i.withComments&&addComments(p,e),i.withImports&&addImports(p,e),i.withWrapper&&(p.push("public class App {"),p.push(1,"public static void main(String[] args) throws Exception {"),p.push(2,"var httpClient = HttpClient.newBuilder().build();"),p.blank()),null===(r=e.securityOAuth2ExtraCalls)||void 0===r?void 0:r.length){const t=new HTTPSnippet(null===(n=e.securityOAuth2ExtraCalls)||void 0===n?void 0:n[0]).convert(a,s,Object.assign(Object.assign({},i),{withImports:!1,withWrapper:!1,withComments:!1,variablesPrefix:"oauth2"}));p.push(t),p.blank(),p.push(2,"var oauth2Response = httpClient.send(oauth2Request, HttpResponse.BodyHandlers.ofString());"),p.push(2,'var accessToken = new JSONObject(oauth2Response.body()).getString("access_token");'),p.blank()}if(e.postData)switch(normalizeMimeType(e.postData.mimeType)){case MediaTypes.URL_ENCODED:e.postData.params&&(p.push(2,"HashMap<String, String> params = new HashMap<>();"),e.postData.params.forEach((e=>{p.push(2,'params.put("%s", "%s");',e.name,e.value)})),p.blank(),p.push(2,"var form = params.keySet().stream()"),p.push(3,'.map(key -> key + "=" + URLEncoder.encode(params.get(key), StandardCharsets.UTF_8))'),p.push(3,'.collect(Collectors.joining("&"));'),p.blank());break;case MediaTypes.JSON:e.postData.jsonObj&&(p.push(2,`var payload = String.join("\\n"\n ${addIndentation(JSON.stringify(e.postData.jsonObj,null,1).replace(/"/g,'\\"').replace(/^/gm,', "').replace(/$/gm,'"'),{level:3,indent:i.indent,firstLine:!1})}`),p.push(2,");"),p.blank());break;case MediaTypes.XML:e.postData.text&&(p.push(2,'var payload = String.join("\\n"'),e.postData.text.trim().split("\n").forEach((e=>{const t=e.replace(/"/g,'\\"');p.push(3,`, "${t}"`)})),p.push(2,");"),p.blank());break;case MediaTypes.MULTIPART:l=!0,p.unshift("# multipart/form-data is not supported yet\n")}if(hasQueryParams(e)){p.push(2,"HashMap<String, String> params = new HashMap<>();");for(const[t,a]of Object.entries(e.uriObj.query))p.push(2,'params.put("%s", "%s");',t,a);p.blank(),p.push(2,"var query = params.keySet().stream()"),p.push(3,'.map(key -> key + "=" + URLEncoder.encode(params.get(key), StandardCharsets.UTF_8))'),p.push(3,'.collect(Collectors.joining("&"));'),p.blank()}p.push(2,`var ${p.var("host")} = "%s";`,e.uriObj.protocol+"//"+e.uriObj.host),printUrlVariablesDeclarations(e,p,2);const u=Object.assign(Object.assign({},e),{pathname:e.uriObj.pathname});p.push(2,`var ${p.var("pathname")} = %s;`,buildUrlExpression(u,p)),p.push(2,`var ${p.var("request")} = HttpRequest.newBuilder()`),"PATCH"===e.method.toUpperCase()?p.push(3,'.method("PATCH", %s)',getBody(e)):p.push(3,".%s(%s)",e.method.toUpperCase(),getBody(e)),p.push(3,`.uri(URI.create(${p.var("host")} + ${p.var("pathname")} %s))`,hasQueryParams(e)?"+ '?' + query":""),(null===(o=e.securityOAuth2ExtraCalls)||void 0===o?void 0:o.length)&&(e.allHeaders.Authorization='"Bearer " + accessToken');const h=Object.keys(e.allHeaders);if(h.length&&h.forEach((t=>{var a;p.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;p.push(3,`.header("Authorization", "Basic " + Base64.getEncoder().encodeToString(("${t}:${a}").getBytes()))`)}return p.push(3,".build();"),i.withWrapper&&(p.blank(),p.push(2,"var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());"),p.blank(),p.push(2,"System.out.println(response.body());"),p.push(1,"}"),p.push("}")),l&&p.clean(),p.join()};export const 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 )"};export default handler;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.*;"),(normalizeMimeType(null===(a=t.postData)||void 0===a?void 0:a.mimeType)===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()}
2
+ //# sourceMappingURL=httpclient.js.map
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ info: {
3
+ key: string;
4
+ title: string;
5
+ extname: string;
6
+ default: string;
7
+ };
8
+ httpclient: import("../..").LanguageHandler<import("../../..").BasicLanguageOptions | undefined>;
9
+ };
10
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import httpclient from"./httpclient";export default{info:{key:"java",title:"Java",extname:".java",default:"httpclient"},httpclient:httpclient};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,10 @@
1
+ import type { Java8CodeSampleConfig } from '../../../types';
2
+ import type { LanguageHandler } from '../..';
3
+ declare const handler: LanguageHandler<Java8CodeSampleConfig['options']>;
4
+ export declare const info: {
5
+ key: string;
6
+ title: string;
7
+ link: string;
8
+ description: string;
9
+ };
10
+ export default handler;
@@ -0,0 +1,2 @@
1
+ import{CodeBuilder}from"../../helpers/code-builder";import{HTTPSnippet}from"../../index";import{isEmptyObject,normalizeMimeType}from"../../../../utils";import{capitalizeFirst}from"../../../generator";import{Lang}from"../../helpers/constants";import{buildUrlExpression,printUrlVariablesDeclarations}from"../../helpers/code-helpers";import{MediaTypes}from"../../../../../types";const handler=function(t,e,{target:s,client:a}){var i,r;const p=Object.assign({indent:" ",withWrapper:!0},e),o=new CodeBuilder({indentation:p.indent,variablesPrefix:p.variablesPrefix,capitalize:!0,lang:Lang.JAVA8}),n=formatHttpMethod(t.method);if(p.withComments&&addComments(o),p.withImports&&addImports(o,t),p.withWrapper&&(o.push("public class App {"),o.push(1,"public static void main(String[] args ) throws java.io.IOException {"),o.push(2,"HttpClient httpClient = HttpClientBuilder.create().build();"),o.blank()),null===(i=t.securityOAuth2ExtraCalls)||void 0===i?void 0:i.length){const e=new HTTPSnippet(null===(r=t.securityOAuth2ExtraCalls)||void 0===r?void 0:r[0]).convert(s,a,Object.assign(Object.assign({},p),{withImports:!1,withWrapper:!1,withComments:!1,variablesPrefix:"oauth2"}));o.push(e),o.push(2,"JSONObject %s = new JSONObject(EntityUtils.toString(httpClient.execute(%s).getEntity()));","oauth2Response","oauth2Request"),o.push(2,'String accessToken = %s.getString("access_token");',"oauth2Response"),o.blank()}printUrlVariablesDeclarations(t,o,2);const u=buildUrlExpression(t,o);o.push(2,`%s ${o.var("request")} = new %s(%s);`,n,n,u);const h=Object.keys(t.allHeaders);if(!h.length||t.postData&&t.postData.mimeType==MediaTypes.MULTIPART||h.forEach((e=>{var s;o.push(2,'%s.setHeader("%s", %s);',o.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;o.push(2,`String encodedString = Base64.getEncoder().encodeToString("${e}:${s}".getBytes());`),o.push(2,'%s.setHeader("%s", "%s"+encodedString);',o.var("request"),"Authorization","Basic ")}if(t.postData)switch(normalizeMimeType(t.postData.mimeType)){case MediaTypes.URL_ENCODED:t.postData.params&&(o.blank(),o.push(2,"List<NameValuePair> params = new ArrayList<NameValuePair>();"),t.postData.params.forEach((t=>{o.push(2,'params.add(new BasicNameValuePair("%s", "%s"));',t.name,t.value)})),o.push(2,"%s.setEntity(new UrlEncodedFormEntity(params));",o.var("request")),o.blank());break;case MediaTypes.MULTIPART:t.postData.params&&(o.push(2,"MultipartEntity reqEntity = new MultipartEntity();"),t.postData.params.forEach((t=>{o.push(2,'reqEntity.addPart("%s", %s);',t.name,isString(t.value)?`new StringBody("${t.value}")`:t.value)})),o.push(2,"%s.setEntity(reqEntity);",o.var("request")));break;case MediaTypes.JSON:if(t.postData.jsonObj){o.push(2,"JSONObject payload = new JSONObject();");for(const[e,s]of Object.entries(t.postData.jsonObj))Array.isArray(s)?(o.push(2,'payload.put("%s", new JSONArray()',e),s.forEach((t=>{isObject(t)?(o.push(3,".put(new JSONObject()"),l(t,4),o.push(3,")")):o.push(3,".put(%s)",formatValue(t))})),o.push(2,");")):isObject(s)?(o.push(2,'payload.put("%s", new JSONObject()%s',e,isEmptyObject(s)?");":""),l(s,3),isEmptyObject(s)||o.push(2,");")):o.push(2,'payload.put("%s", %s);',e,formatValue(s));o.push(2,"%s.setEntity(new StringEntity(payload.toString()));",o.var("request"))}break;case MediaTypes.XML:t.postData.text&&(o.push(2,'String payload = String.join("\\n"'),t.postData.text.trim().split("\n").forEach((t=>{const e=t.replace(/"/g,'\\"');o.push(3,`, "${e}"`)})),o.push(2,");"),o.push(2,"%s.setEntity(new StringEntity(payload));",o.var("request")))}return p.withWrapper&&(o.push(2,`String ${o.var("response")} = EntityUtils.toString(httpClient.execute(request).getEntity());`),o.blank(),o.push(2,"System.out.println(response);"),o.push(1,"}"),o.push("}")),o.join();function l(t,e){for(const[s,a]of Object.entries(t))isObject(a)?(o.push(e,'.put("%s", new JSONObject()',s),l(a,e+1),o.push(e,")")):o.push(e,'.put("%s", %s)',s,formatValue(a))}};export const info={key:"apachehttp",title:"Apache http",link:"https://hc.apache.org/httpcomponents-client-4.5.x/",description:"Apache HttpClient"};export default handler;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,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;"),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===(i=e.securityOAuth2ExtraCalls)||void 0===i?void 0:i[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"+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}
2
+ //# sourceMappingURL=apachehttp.js.map
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ info: {
3
+ key: string;
4
+ title: string;
5
+ extname: string;
6
+ default: string;
7
+ };
8
+ apachehttp: import("../..").LanguageHandler<import("../../..").BasicLanguageOptions | undefined>;
9
+ };
10
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import apachehttp from"./apachehttp";export default{info:{key:"java8",title:"Java8+Apache",extname:".java",default:"apachehttp"},apachehttp:apachehttp};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,10 @@
1
+ import type { LanguageHandler } from '../..';
2
+ import type { JavaScriptCodeSampleConfig } from '../../../types';
3
+ declare const handler: LanguageHandler<JavaScriptCodeSampleConfig['options']>;
4
+ export declare const info: {
5
+ key: string;
6
+ title: string;
7
+ link: string;
8
+ description: string;
9
+ };
10
+ export default handler;
@@ -0,0 +1,2 @@
1
+ import stringifyObject from"stringify-object";import{CodeBuilder}from"../../helpers/code-builder";import{addIndentation,getPreserveTransformer,buildUrlExpression,printUrlVariablesDeclarations}from"../../helpers/code-helpers";import{normalizeMimeType}from"../../../../utils";import{HTTPSnippet}from"../..";import{Lang}from"../../helpers/constants";import{MediaTypes}from"../../../../../types";const handler=function(e,t,{target:a,client:n}){var s,i,r,o,d,l;const p=Object.assign({indent:" ",credentials:null},t),c=new CodeBuilder({indentation:p.indent,variablesPrefix:p.variablesPrefix,capitalize:!0,lang:Lang.JAVASCRIPT}),h={method:e.method.toUpperCase()};Object.keys(e.headersObj).length&&(h.headers=e.headersObj);let u=!1;if(p.withComments&&addComments(c),null===(s=e.securityOAuth2ExtraCalls)||void 0===s?void 0:s.length){const t=new HTTPSnippet(null===(i=e.securityOAuth2ExtraCalls)||void 0===i?void 0:i[0]).convert(a,n,Object.assign(Object.assign({},p),{withImports:!1,withComments:!1,variablesPrefix:"oAuth2"}));c.push(t),c.blank(),h.headers=h.headers||{},h.headers.Authorization="'Bearer ' + oAuth2Data.access_token",u=!0}null!==p.credentials&&(h.credentials=p.credentials);const m=Object.getOwnPropertyNames(e.queryObj).length;if(m&&c.push(`const ${c.var("query")} = new URLSearchParams(${stringifyObject(e.queryObj,{indent:p.indent,inlineCharacterLimit:25})}).toString();`).blank(),e.postData)switch(normalizeMimeType(e.postData.mimeType)){case MediaTypes.URL_ENCODED:h.body=e.postData.paramsObj?`new URLSearchParams(${c.var("formData")}).toString()`:e.postData.text,e.postData.paramsObj&&c.push(`const ${c.var("formData")} = ${addIndentation(stringifyObject(e.postData.paramsObj,{indent:p.indent,inlineCharacterLimit:25}),{level:0,firstLine:!1})};`).blank();break;case MediaTypes.JSON:e.postData.jsonObj&&(h.body=`JSON.stringify(${addIndentation(stringifyObject(e.postData.jsonObj,{indent:p.indent,inlineCharacterLimit:25}),{level:1,firstLine:!1})})`);break;case MediaTypes.MULTIPART:c.push(`const ${c.var("form")} = new FormData();`),(null===(r=null==h?void 0:h.headers)||void 0===r?void 0:r["Content-Type"])&&(null===(o=h.headers)||void 0===o||delete o["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||""))})),h.body=c.var("form"),c.blank();break;default:e.postData.text&&(h.body=`\`${addIndentation(e.postData.text,{level:2,indent:p.indent,firstLine:!1}).trim()}\``)}const b=h.headers&&h.headers.Accept&&normalizeMimeType(h.headers.Accept)===MediaTypes.JSON||normalizeMimeType(null===(d=e.postData)||void 0===d?void 0:d.mimeType)===MediaTypes.JSON;if(e.basicAuth){const{username:t,password:a}=e.basicAuth;h.headers=h.headers||{},h.headers.Authorization=`'Basic ' + btoa('${t}:${a}')`,u=!0}printUrlVariablesDeclarations(e,c);const f=buildUrlExpression(e,c);return c.push(`const ${c.var("resp")} = await fetch(`).push(1,"`"+f+(m?"?${"+c.var("query")+"}":"")+"`,").push(addIndentation(stringifyObject(h,{indent:p.indent,inlineCharacterLimit:25,transform:getPreserveTransformer({body:!0,authorizationHeader:u})}),{level:1,indent:p.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")}.${b?"json()":"text()"};`).push(1,`console.log(${c.var("data")});`).push("}")):c.push(`const ${c.var("data")} = await ${c.var("resp")}.${b?"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()}export const 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"};export default handler;
2
+ //# sourceMappingURL=fetch.js.map
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ info: {
3
+ key: string;
4
+ title: string;
5
+ extname: string;
6
+ default: string;
7
+ };
8
+ fetch: import("../..").LanguageHandler<(import("../../..").BasicLanguageOptions & {
9
+ credentials?: "omit" | "same-origin" | "include" | undefined;
10
+ }) | undefined>;
11
+ };
12
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import fetch from"./fetch";export default{info:{key:"javascript",title:"JavaScript",extname:".js",default:"fetch"},fetch:fetch};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,10 @@
1
+ import type { LanguageHandler } from '../..';
2
+ import type { NodeJsCodeSampleConfig } from '../../../types';
3
+ declare const handler: LanguageHandler<NodeJsCodeSampleConfig['options']>;
4
+ export declare const info: {
5
+ key: string;
6
+ title: string;
7
+ link: string;
8
+ description: string;
9
+ };
10
+ export default handler;
@@ -0,0 +1,2 @@
1
+ import stringifyObject from"stringify-object";import{CodeBuilder}from"../../helpers/code-builder";import{addIndentation,getPreserveTransformer,buildUrlExpression,printUrlVariablesDeclarations}from"../../helpers/code-helpers";import{Lang}from"../../helpers/constants";import{normalizeMimeType}from"../../../../utils";import{HTTPSnippet}from"../..";import{MediaTypes}from"../../../../../types";const handler=function(e,t,{target:a,client:n}){var s,i,r,o,d,l;const p=Object.assign({indent:" ",showBoilerplate:!0,level:1},t),{level:h}=p;let c=!1;const m=new CodeBuilder({indentation:p.indent,variablesPrefix:p.variablesPrefix,capitalize:!0,lang:Lang.NODEJS});p.withComments&&addComments(m),p.withImports&&(m.push("import fetch from 'node-fetch';"),m.blank()),p.showBoilerplate&&m.push("async function run() {");const u={method:e.method.toUpperCase()};Object.keys(e.headersObj).length&&(u.headers=e.headersObj);let f=!1;if(null===(s=e.securityOAuth2ExtraCalls)||void 0===s?void 0:s.length){const t=new HTTPSnippet(null===(i=e.securityOAuth2ExtraCalls)||void 0===i?void 0:i[0]).convert(a,n,Object.assign(Object.assign({},p),{withImports:!1,withComments:!1,variablesPrefix:"oAuth2",showBoilerplate:!1,level:1}));m.push(t),m.blank(),u.headers=u.headers||{},u.headers.Authorization="'Bearer ' + oAuth2Data.access_token",f=!0}const b=Object.getOwnPropertyNames(e.queryObj).length;if(b&&m.push(h,`const ${m.var("query")} = new URLSearchParams(${addIndentation(stringifyObject(e.queryObj,{indent:p.indent,inlineCharacterLimit:25}),{level:h,indent:p.indent,firstLine:!1})}).toString();`).blank(),e.postData)switch(normalizeMimeType(e.postData.mimeType)){case MediaTypes.URL_ENCODED:u.body=e.postData.paramsObj?`new URLSearchParams(${m.var("formData")}).toString()`:e.postData.text,e.postData.paramsObj&&m.push(h,`const ${m.var("formData")} = ${addIndentation(stringifyObject(e.postData.paramsObj,{indent:p.indent,inlineCharacterLimit:25}),{level:h,firstLine:!1})};`).blank();break;case MediaTypes.JSON:e.postData.jsonObj&&(u.body=`JSON.stringify(${addIndentation(stringifyObject(e.postData.jsonObj,{indent:p.indent,inlineCharacterLimit:25}),{level:h,firstLine:!1})})`);break;case MediaTypes.MULTIPART:(null===(r=null==u?void 0:u.headers)||void 0===r?void 0:r["Content-Type"])&&(null===(o=u.headers)||void 0===o||delete o["Content-Type"]),p.withImports&&m.unshift("import FormData from 'form-data';"),m.push(h,`const ${m.var("form")} = new FormData();`),e.postData.params.forEach((function(e){e.fileName||e.fileName||e.contentType?e.fileName&&(c=!0,m.blank(),m.push(h,`${m.var("form")}.append('" + param.name + "', fs.createReadStream('" + param.fileName + "'));`)):m.push(h,"form.append('"+e.name+"','"+e.value+"');")})),u.body=m.var("form"),m.blank();break;default:e.postData.text&&(u.body=`\`${addIndentation(e.postData.text,{level:h+1,indent:p.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')`,f=!0}c&&p.withImports&&m.unshift("import fs from 'fs';");const v=u.headers&&u.headers.Accept&&normalizeMimeType(u.headers.Accept)===MediaTypes.JSON||normalizeMimeType(null===(d=e.postData)||void 0===d?void 0:d.mimeType)===MediaTypes.JSON;printUrlVariablesDeclarations(e,m,h);const y=buildUrlExpression(e,m);return m.push(h,`const ${m.var("resp")} = await fetch(`).push(h+1,"`"+y+(b?"?${"+m.var("query")+"}":"")+"`,").push(h+1,addIndentation(stringifyObject(u,{indent:p.indent,inlineCharacterLimit:25,transform:getPreserveTransformer({body:!0,authorizationHeader:f})}),{level:h+1,indent:p.indent,firstLine:!1})).push(h,");").blank(),(null===(l=e.allResponseCodes)||void 0===l?void 0:l.includes("204"))?(m.push(h,"if (resp.status === 204) {").push(h+1,"console.log('success');").push(h,"} else {"),m.push(h+1,`const ${m.var("data")} = await ${m.var("resp")}.${v?"json()":"text()"};`).push(h+1,`console.log(${m.var("data")});`).push(h,"}")):m.push(h,`const ${m.var("data")} = await ${m.var("resp")}.${v?"json()":"text()"};`).push(h,`console.log(${m.var("data")});`),p.showBoilerplate&&m.push("}").blank().push("run();"),m.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()}export const info={key:"fetch",title:"Fetch",link:"https://github.com/bitinn/node-fetch",description:"Simplified HTTP node-fetch client"};export default handler;
2
+ //# sourceMappingURL=fetch.js.map
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ info: {
3
+ key: string;
4
+ title: string;
5
+ extname: string;
6
+ default: string;
7
+ };
8
+ fetch: import("../..").LanguageHandler<import("../../..").BasicLanguageOptions | undefined>;
9
+ };
10
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import fetch from"./fetch";export default{info:{key:"node",title:"Node.js",extname:".js",default:"fetch"},fetch:fetch};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,10 @@
1
+ import type { LanguageHandler } from '../..';
2
+ import type { PHPCodeSampleConfig } from '../../../types';
3
+ declare const handler: LanguageHandler<PHPCodeSampleConfig['options']>;
4
+ export declare const info: {
5
+ key: string;
6
+ title: string;
7
+ link: string;
8
+ description: string;
9
+ };
10
+ export default handler;
@@ -0,0 +1,2 @@
1
+ import{format}from"util";import{CodeBuilder}from"../../helpers/code-builder";import{HTTPSnippet}from"../..";import{Lang}from"../../helpers/constants";import{buildUrlExpression,printUrlVariablesDeclarations}from"../../helpers/code-helpers";import{startCase}from"../../helpers/lodash-int";import{normalizeMimeType}from"../../../../utils";import{MediaTypes}from"../../../../../types";import{objectToPhpArray}from"./utils";function getVariableName(e,a){return a?`$${a}${startCase(e)}`:`$${e}`}const handler=function(e,a,{target:r,client:t}){var n;const s=Object.assign({showBoilerplate:!0,checkErrors:!1,printBody:!0,indent:" ",noTags:!0,shortTags:!1,maxRedirects:10,namedErrors:!1,closingTag:!1},a);let o,i=!1;const l=new CodeBuilder({indentation:s.indent,capitalize:!0,lang:Lang.PHP}),p=null===(n=e.securityOAuth2ExtraCalls)||void 0===n?void 0:n[0],u=getVariableName("curl",s.variablesPrefix),c=getVariableName("response",s.variablesPrefix),h=getVariableName("error",s.variablesPrefix);if(s.noTags||l.push(s.shortTags?"<?":"<?php").blank(),p){const a="oAuth2",n=new HTTPSnippet(p).convert(r,t,Object.assign(Object.assign({},s),{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&&p?format('"%s: %s',a,e.allHeaders.Authorization):format('"%s: %s"',a,e.headersObj[a])}));if(e.basicAuth){const{username:a,password:r}=e.basicAuth;d.push(`"Authorization: Basic " . base64_encode("${a}:${r}")`)}s.showBoilerplate&&l.push("/**").push(" * Requires libcurl").push(" */").blank(),printUrlVariablesDeclarations(e,l);let m="";if(Object.keys(e.queryObj||{}).length){const a=objectToPhpArray(e.queryObj||{},{indent:s.indent});m="$query",l.push(`${m} = ${a};`).blank()}if(l.push(`${u} = curl_init();`),l.blank(),e.postData)switch(normalizeMimeType(e.postData.mimeType)){case MediaTypes.JSON:{const a=objectToPhpArray(e.postData.jsonObj||{},{indent:s.indent});i=!0,o="json_encode($payload)",l.push(`$payload = ${a};`).blank();break}case MediaTypes.MULTIPART:{const a=e.postData.params.map((({name:e,value:a})=>`${s.indent}"${e}" => "${a}",\n`)).join("");i=!0,o="$payload",l.push(`$payload = array(\n${a});`).blank();break}case MediaTypes.URL_ENCODED:{const a=e.postData.params.map((({name:e,value:a})=>`${e}=${a}`)).join("&");i=!0,o="$payload",l.push(`$payload = "${a}";`).blank();break}default:o=e.postData.text}let b=buildUrlExpression(e,l);m&&(b.endsWith('"')?b=b.slice(0,-1)+`?" . http_build_query(${m})`:b+=` . "?" . http_build_query(${m})`);const $=[{escape:!i,name:"CURLOPT_POSTFIELDS",value:o},{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(${u}, [`);const T=new CodeBuilder({indentation:s.indent,lineJoin:`\n${s.indent}`,variablesPrefix:s.variablesPrefix,capitalize:!0,lang:Lang.PHP});d.length&&T.push("CURLOPT_HTTPHEADER => [").push(1,d.join(",\n"+s.indent+s.indent)).push("],"),$.forEach((function(e){[null,void 0].includes(e.value)||T.push(format("%s => %s,",e.name,e.escape?JSON.stringify(e.value):e.value))}));const f=e.cookies.map((function(e){return encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)}));return f.length&&T.push(format('CURLOPT_COOKIE => "%s",',f.join("; "))),l.push(1,T.join()).push("]);").blank().push(`${c} = curl_exec(${u});`).push(`${h} = curl_error(${u});`).blank().push(`curl_close(${u});`).blank().push(`if (${h}) {`),s.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("}"),!s.noTags&&s.closingTag&&l.blank().push("?>"),l.join()};export const info={key:"curl",title:"cURL",link:"http://php.net/manual/en/book.curl.php",description:"PHP with ext-curl"};export default handler;
2
+ //# sourceMappingURL=curl.js.map
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ info: {
3
+ key: string;
4
+ title: string;
5
+ extname: string;
6
+ default: string;
7
+ };
8
+ curl: import("../..").LanguageHandler<import("../../..").BasicLanguageOptions | undefined>;
9
+ };
10
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import curl from"./curl";export default{info:{key:"php",title:"PHP",extname:".php",default:"curl"},curl:curl};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,11 @@
1
+ export declare type Input = GenericObject | string;
2
+ export declare type ObjectToPhpArrayOptions = {
3
+ newLine?: string;
4
+ newLineOrSpace?: string;
5
+ pad?: string;
6
+ indent?: string;
7
+ inlineCharacterLimit?: number;
8
+ transform?: (input: Input, i: number | string, result: string) => string;
9
+ singleQuotes?: boolean;
10
+ filter?: (obj: Input | string, el: string) => boolean;
11
+ };
@@ -0,0 +1,2 @@
1
+ export{};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,2 @@
1
+ import type { Input, ObjectToPhpArrayOptions } from './types';
2
+ export declare function objectToPhpArray(input: Input, options: ObjectToPhpArrayOptions, pad?: string): string;
@@ -0,0 +1,2 @@
1
+ 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)}export 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},p=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 o="array("+a.newLine+n.map(((t,p)=>{const o=n.length-1===p?a.newLine:","+a.newLineOrSpace;let c=e(t,r,i+r.indent);return r.transform&&(c=r.transform(n,p,c)),a.indent+c+o})).join("")+a.pad+")";return t.pop(),p(o)}if(isObject(n)){let o=Object.keys(n);if(r.filter&&(o=o.filter((e=>{var t;return null===(t=r.filter)||void 0===t?void 0:t.call(r,n,e)}))),0===o.length)return Array.isArray(n)?"array()":"(object)[]";t.push(n);const c="array("+a.newLine+o.map(((t,p)=>{const c=o.length-1===p?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(),p(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
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ info: {
3
+ key: string;
4
+ title: string;
5
+ extname: string;
6
+ default: string;
7
+ };
8
+ requests: import("../..").LanguageHandler<import("../../..").BasicLanguageOptions | undefined>;
9
+ };
10
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import requests from"./requests";export default{info:{key:"python",title:"Python",extname:".py",default:"python3"},requests:requests};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,4 @@
1
+ import type { LanguageHandler } from '../..';
2
+ import type { PythonCodeSampleConfig } from '../../../types';
3
+ declare const handler: LanguageHandler<PythonCodeSampleConfig['options']>;
4
+ export default handler;