@scalar/api-client 2.1.21 → 2.1.23

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 (307) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +22 -0
  3. package/dist/components/AddressBar/AddressBar.vue.d.ts +4 -4
  4. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  5. package/dist/components/AddressBar/AddressBar.vue2.js +80 -80
  6. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts +3 -12
  7. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  8. package/dist/components/AddressBar/AddressBarServer.vue.d.ts +1 -1
  9. package/dist/components/AddressBar/AddressBarServer.vue.js +37 -37
  10. package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts +3 -12
  11. package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -1
  12. package/dist/components/CodeInput/CodeInput.vue.d.ts +11 -44
  13. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  14. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +8 -17
  15. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
  16. package/dist/components/CommandPalette/CommandActionForm.vue.js +10 -10
  17. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +7 -16
  18. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
  19. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +5 -5
  20. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
  21. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +2 -2
  22. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +7 -16
  23. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
  24. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +31 -31
  25. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +5 -5
  26. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  27. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +65 -65
  28. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +7 -16
  29. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  30. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +12 -12
  31. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +5 -5
  32. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
  33. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +33 -33
  34. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +5 -5
  35. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
  36. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +21 -21
  37. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +5 -5
  38. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
  39. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +14 -14
  40. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +48 -56
  41. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  42. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
  43. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +163 -154
  44. package/dist/components/ContextBar.vue.d.ts +6 -15
  45. package/dist/components/ContextBar.vue.d.ts.map +1 -1
  46. package/dist/components/DataTable/DataTable.vue.d.ts +3 -12
  47. package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
  48. package/dist/components/DataTable/DataTableCell.vue.d.ts +4 -25
  49. package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
  50. package/dist/components/DataTable/DataTableCell.vue.js +5 -5
  51. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts +7 -28
  52. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
  53. package/dist/components/DataTable/DataTableHeader.vue.d.ts +1 -1
  54. package/dist/components/DataTable/DataTableHeader.vue.d.ts.map +1 -1
  55. package/dist/components/DataTable/DataTableInput.vue.d.ts +12 -37
  56. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  57. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +7 -28
  58. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  59. package/dist/components/DataTable/DataTableInputSelect.vue.js +34 -34
  60. package/dist/components/DataTable/DataTableRow.vue.d.ts +1 -1
  61. package/dist/components/DataTable/DataTableRow.vue.d.ts.map +1 -1
  62. package/dist/components/DataTable/DataTableText.vue.d.ts +12 -12
  63. package/dist/components/DataTable/DataTableText.vue.d.ts.map +1 -1
  64. package/dist/components/DataTable/DataTableText.vue.js +13 -9
  65. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts +1 -1
  66. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +37 -37
  67. package/dist/components/Form/Form.vue.d.ts +3 -12
  68. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  69. package/dist/components/HelpfulLink.vue.d.ts +3 -12
  70. package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
  71. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +7 -32
  72. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  73. package/dist/components/IconSelector.vue.d.ts +6 -15
  74. package/dist/components/IconSelector.vue.d.ts.map +1 -1
  75. package/dist/components/IconSelector.vue.js +14 -14
  76. package/dist/components/ImportCollection/DropEventListener.vue.d.ts +4 -4
  77. package/dist/components/ImportCollection/DropEventListener.vue.d.ts.map +1 -1
  78. package/dist/components/ImportCollection/DropEventListener.vue.js +20 -20
  79. package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts +1 -1
  80. package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts.map +1 -1
  81. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts +6 -15
  82. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  83. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +84 -63
  84. package/dist/components/ImportCollection/ImportNowButton.vue.d.ts +6 -15
  85. package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
  86. package/dist/components/ImportCollection/ImportNowButton.vue.js +38 -42
  87. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +3 -12
  88. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +1 -1
  89. package/dist/components/ImportCollection/OperationBadge.vue.d.ts +3 -12
  90. package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +1 -1
  91. package/dist/components/ImportCollection/PasteEventListener.vue.d.ts +4 -4
  92. package/dist/components/ImportCollection/PasteEventListener.vue.d.ts.map +1 -1
  93. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts +4 -4
  94. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts.map +1 -1
  95. package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts +3 -0
  96. package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -0
  97. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +125 -0
  98. package/dist/components/ImportCollection/WorkspaceSelector.vue2.js +4 -0
  99. package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts +7 -16
  100. package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts.map +1 -1
  101. package/dist/components/ImportCurl/ImportCurlModal.vue.js +2 -2
  102. package/dist/components/ImportCurl/ImportCurlModal.vue2.js +41 -40
  103. package/dist/components/ScalarAsciiArt.vue.d.ts +3 -12
  104. package/dist/components/ScalarAsciiArt.vue.d.ts.map +1 -1
  105. package/dist/components/ScalarHotkey.vue.d.ts +6 -15
  106. package/dist/components/ScalarHotkey.vue.d.ts.map +1 -1
  107. package/dist/components/ScreenReader.vue.d.ts +4 -25
  108. package/dist/components/ScreenReader.vue.d.ts.map +1 -1
  109. package/dist/components/Search/useSearch.d.ts +4 -4
  110. package/dist/components/SideNav/SideHelp.vue.d.ts +1 -1
  111. package/dist/components/SideNav/SideHelp.vue.js +49 -49
  112. package/dist/components/SideNav/SideNav.vue.d.ts +1 -1
  113. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  114. package/dist/components/SideNav/SideNav.vue.js +1 -1
  115. package/dist/components/SideNav/SideNav.vue2.js +23 -23
  116. package/dist/components/SideNav/SideNavLink.vue.d.ts +3 -12
  117. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  118. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +3 -12
  119. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +1 -1
  120. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +8 -17
  121. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
  122. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts +7 -16
  123. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts.map +1 -1
  124. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts +7 -16
  125. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts.map +1 -1
  126. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts +7 -16
  127. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
  128. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +8 -8
  129. package/dist/components/Sidebar/Sidebar.vue.d.ts +4 -25
  130. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  131. package/dist/components/Sidebar/SidebarButton.vue.d.ts +3 -12
  132. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  133. package/dist/components/Sidebar/SidebarList.vue.d.ts +1 -1
  134. package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
  135. package/dist/components/Sidebar/SidebarListElement.vue.d.ts +11 -34
  136. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  137. package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
  138. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +6 -15
  139. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
  140. package/dist/components/Sidebar/SidebarListElementActions.vue.js +21 -21
  141. package/dist/components/Sidebar/SidebarToggle.vue.d.ts +6 -15
  142. package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
  143. package/dist/components/Sidebar/SidebarToggle.vue.js +24 -24
  144. package/dist/components/SubpageHeader.vue.d.ts +1 -1
  145. package/dist/components/SubpageHeader.vue.d.ts.map +1 -1
  146. package/dist/components/TopNav/TopNav.vue.d.ts +3 -12
  147. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  148. package/dist/components/TopNav/TopNav.vue2.js +66 -66
  149. package/dist/components/TopNav/TopNavItem.vue.d.ts +11 -20
  150. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  151. package/dist/components/TopNav/TopNavItem.vue2.js +32 -32
  152. package/dist/components/ViewLayout/ViewLayout.vue.d.ts +1 -1
  153. package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
  154. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +4 -27
  155. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  156. package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts +1 -1
  157. package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
  158. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts +1 -1
  159. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  160. package/dist/data/httpHeaders.d.ts +6 -0
  161. package/dist/data/httpHeaders.d.ts.map +1 -0
  162. package/dist/data/httpHeaders.js +537 -0
  163. package/dist/hooks/useDarkModeState.d.ts +1 -1
  164. package/dist/hooks/useFileDialog.d.ts +15 -0
  165. package/dist/hooks/useFileDialog.d.ts.map +1 -1
  166. package/dist/layouts/App/ApiClientApp.vue.d.ts +4 -4
  167. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  168. package/dist/layouts/App/create-api-client-app.d.ts +10 -10
  169. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  170. package/dist/layouts/Modal/ApiClientModal.vue.d.ts +1 -1
  171. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  172. package/dist/layouts/Modal/create-api-client-modal.d.ts +20 -20
  173. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  174. package/dist/layouts/Web/ApiClientWeb.vue.d.ts +1 -1
  175. package/dist/layouts/Web/create-api-client-web.d.ts +10 -10
  176. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  177. package/dist/libs/create-client.d.ts +10 -10
  178. package/dist/libs/create-client.d.ts.map +1 -1
  179. package/dist/libs/importers/curl.d.ts +25 -1
  180. package/dist/libs/importers/curl.d.ts.map +1 -1
  181. package/dist/libs/importers/curl.js +40 -38
  182. package/dist/libs/parse-curl.d.ts +3 -4
  183. package/dist/libs/parse-curl.d.ts.map +1 -1
  184. package/dist/libs/parse-curl.js +58 -55
  185. package/dist/libs/send-request.d.ts +5 -5
  186. package/dist/libs/send-request.d.ts.map +1 -1
  187. package/dist/libs/send-request.js +93 -99
  188. package/dist/store/collections.d.ts.map +1 -1
  189. package/dist/store/import-spec.d.ts.map +1 -1
  190. package/dist/store/request-example.d.ts +4 -4
  191. package/dist/store/requests.d.ts +4 -4
  192. package/dist/store/requests.d.ts.map +1 -1
  193. package/dist/store/store.d.ts +20 -20
  194. package/dist/store/store.d.ts.map +1 -1
  195. package/dist/store/tags.d.ts.map +1 -1
  196. package/dist/style.css +1 -1
  197. package/dist/views/Collection/Collection.vue.d.ts +1 -1
  198. package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +1 -1
  199. package/dist/views/Cookies/CookieForm.vue.d.ts +1 -1
  200. package/dist/views/Cookies/CookieForm.vue.js +15 -15
  201. package/dist/views/Cookies/CookieRaw.vue.d.ts +1 -1
  202. package/dist/views/Cookies/CookieRaw.vue.js +14 -14
  203. package/dist/views/Cookies/Cookies.vue.d.ts +1 -1
  204. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  205. package/dist/views/Cookies/Cookies.vue2.js +23 -23
  206. package/dist/views/Environment/Environment.vue.d.ts +1 -1
  207. package/dist/views/Environment/Environment.vue2.js +29 -29
  208. package/dist/views/Environment/EnvironmentColors.vue.d.ts +6 -15
  209. package/dist/views/Environment/EnvironmentColors.vue.d.ts.map +1 -1
  210. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +6 -15
  211. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  212. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +27 -27
  213. package/dist/views/Request/Request.vue.d.ts +4 -4
  214. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  215. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +6 -15
  216. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -1
  217. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +14 -14
  218. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +3 -12
  219. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  220. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +82 -82
  221. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +3 -12
  222. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
  223. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +31 -31
  224. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +3 -12
  225. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  226. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +92 -92
  227. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts +7 -16
  228. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts.map +1 -1
  229. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts +1 -1
  230. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +60 -60
  231. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +11 -34
  232. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  233. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +3 -12
  234. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  235. package/dist/views/Request/RequestSection/RequestBody.vue.js +71 -71
  236. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +3 -12
  237. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  238. package/dist/views/Request/RequestSection/RequestParams.vue.js +34 -34
  239. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +3 -12
  240. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  241. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +34 -34
  242. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
  243. package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
  244. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +14 -37
  245. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  246. package/dist/views/Request/RequestSection/RequestTable.vue2.js +67 -67
  247. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts +3 -12
  248. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  249. package/dist/views/Request/RequestSidebar.vue.d.ts +7 -16
  250. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  251. package/dist/views/Request/RequestSidebar.vue.js +1 -1
  252. package/dist/views/Request/RequestSidebar.vue2.js +92 -91
  253. package/dist/views/Request/RequestSidebarItem.vue.d.ts +9 -34
  254. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  255. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  256. package/dist/views/Request/RequestSidebarItem.vue2.js +123 -123
  257. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +6 -15
  258. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  259. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +60 -60
  260. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +9 -18
  261. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  262. package/dist/views/Request/RequestSubpageHeader.vue.js +4 -4
  263. package/dist/views/Request/RequestSubpageHeader.vue2.js +26 -26
  264. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts +3 -12
  265. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
  266. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +26 -26
  267. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts +3 -12
  268. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
  269. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +8 -8
  270. package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts +1 -1
  271. package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts.map +1 -1
  272. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts +3 -12
  273. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
  274. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +4 -4
  275. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts +3 -12
  276. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
  277. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts +6 -15
  278. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts.map +1 -1
  279. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts +3 -12
  280. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
  281. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +15 -15
  282. package/dist/views/Request/ResponseSection/ResponseCookies.vue.d.ts +3 -12
  283. package/dist/views/Request/ResponseSection/ResponseCookies.vue.d.ts.map +1 -1
  284. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +19 -19
  285. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts +1 -1
  286. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +35 -35
  287. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts +3 -12
  288. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
  289. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +44 -23
  290. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts +1 -1
  291. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +12 -12
  292. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts +3 -12
  293. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
  294. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +3 -12
  295. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  296. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +42 -42
  297. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts +1 -1
  298. package/dist/views/Request/components/WorkspaceDropdown.vue.js +85 -85
  299. package/dist/views/Servers/ServerForm.vue.d.ts +1 -1
  300. package/dist/views/Servers/Servers.vue.d.ts +1 -1
  301. package/dist/views/Servers/Servers.vue2.js +29 -29
  302. package/dist/views/Settings/Settings.vue.d.ts +1 -1
  303. package/dist/views/Settings/SettingsGeneral.vue.d.ts +1 -1
  304. package/dist/views/Settings/SettingsGeneral.vue.js +37 -37
  305. package/dist/views/Settings/SettingsGeneralMode.vue.d.ts +1 -1
  306. package/dist/views/Settings/SettingsGeneralMode.vue.js +38 -38
  307. package/package.json +14 -19
@@ -1,59 +1,61 @@
1
- import { parseCurlCommand as d } from "../parse-curl.js";
2
- function h(t) {
1
+ import { parseCurlCommand as l } from "../parse-curl.js";
2
+ function h(n) {
3
3
  try {
4
- return JSON.parse(t);
4
+ return JSON.parse(n);
5
5
  } catch {
6
- const n = {};
7
- return t.split("&").forEach((s) => {
8
- const [r, e] = s.split("=");
9
- n[decodeURIComponent(r)] = decodeURIComponent(e);
10
- }), n;
6
+ const o = {};
7
+ return n.split("&").forEach((a) => {
8
+ const [s, e] = a.split("=");
9
+ o[decodeURIComponent(s)] = decodeURIComponent(e);
10
+ }), o;
11
11
  }
12
12
  }
13
- function C(t) {
14
- const n = d(t), {
15
- method: s,
16
- url: r,
13
+ function C(n) {
14
+ const o = l(n), {
15
+ method: a = "get",
16
+ url: s,
17
17
  body: e = "",
18
- headers: o = {},
19
- servers: m,
20
- queryParameters: i
21
- } = n, l = new URL(r).pathname, u = e != null && e.includes("=") && !e.startsWith("{") ? "application/x-www-form-urlencoded" : o["Content-Type"] || "application/json", a = e ? h(e) : {};
18
+ headers: p = {},
19
+ servers: i,
20
+ queryParameters: m = []
21
+ } = o, y = new URL(s).pathname, d = e != null && e.includes("=") && !e.startsWith("{") ? "application/x-www-form-urlencoded" : p["Content-Type"] || "application/json", c = e ? h(e) : {}, u = [
22
+ ...Array.isArray(m) ? m.map(({ key: r, value: t }) => ({
23
+ name: r,
24
+ in: "query",
25
+ schema: { type: typeof t, examples: [t] }
26
+ })) : [],
27
+ ...Object.entries(p || {}).map(([r, t]) => ({
28
+ name: r,
29
+ in: "header",
30
+ schema: { type: typeof t },
31
+ example: t
32
+ }))
33
+ ];
22
34
  return {
23
- method: s,
24
- url: r,
25
- path: l,
26
- headers: o,
27
- servers: m,
28
- queryParameters: i,
29
- ...Object.keys(a).length > 0 && {
35
+ method: a,
36
+ url: s,
37
+ path: y,
38
+ headers: p,
39
+ servers: i,
40
+ ...Object.keys(c).length > 0 && {
30
41
  requestBody: {
31
42
  content: {
32
- [u]: {
43
+ [d]: {
33
44
  schema: {
34
45
  type: "object",
35
46
  properties: Object.fromEntries(
36
- Object.entries(a).map(([p, c]) => [
37
- p,
38
- { type: typeof c }
47
+ Object.entries(c).map(([r, t]) => [
48
+ r,
49
+ { type: typeof t }
39
50
  ])
40
51
  )
41
52
  },
42
- example: a
53
+ example: c
43
54
  }
44
55
  }
45
56
  }
46
57
  },
47
- ...Object.keys(o).length > 0 && {
48
- parameters: Object.entries(o).map(([p, c]) => ({
49
- name: p,
50
- in: "header",
51
- schema: {
52
- type: "string"
53
- },
54
- example: c
55
- }))
56
- }
58
+ parameters: u
57
59
  };
58
60
  }
59
61
  export {
@@ -1,12 +1,11 @@
1
+ import type { RequestMethod } from '@scalar/oas-utils/entities/spec';
1
2
  /** Parse and normalize a curl command */
2
3
  export declare function parseCurlCommand(curlCommand: string): {
3
- queryParameters: {
4
- [x: string]: string;
5
- };
6
4
  url: string;
7
- method?: string;
5
+ method?: RequestMethod;
8
6
  headers?: Record<string, string>;
9
7
  body?: string;
8
+ queryParameters?: Record<string, string>;
10
9
  servers?: string[];
11
10
  };
12
11
  //# sourceMappingURL=parse-curl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parse-curl.d.ts","sourceRoot":"","sources":["../../src/libs/parse-curl.ts"],"names":[],"mappings":"AAEA,yCAAyC;AACzC,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM;;;;SAW3C,MAAM;aACF,MAAM;cACL,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;WACzB,MAAM;cAEH,MAAM,EAAE;EA0DrB"}
1
+ {"version":3,"file":"parse-curl.d.ts","sourceRoot":"","sources":["../../src/libs/parse-curl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAGpE,yCAAyC;AACzC,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM;SAW3C,MAAM;aACF,aAAa;cACZ,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;WACzB,MAAM;sBACK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;cAC9B,MAAM,EAAE;EAsErB"}
@@ -1,70 +1,73 @@
1
- import { parse as c } from "shell-quote";
2
- function v(a) {
3
- const r = c(a).map((s) => typeof s == "object" && "op" in s && s.op === "glob" ? s.pattern.trim() : typeof s == "string" ? s.trim() : s).filter((s) => s !== ""), e = { url: "" }, i = r[Symbol.iterator]();
4
- let t = i.next().value;
5
- for (; t; ) {
6
- if (typeof t == "object" && "op" in t) {
7
- t = i.next().value;
1
+ import { parse as h } from "shell-quote";
2
+ function P(r) {
3
+ const t = h(r).map((i) => typeof i == "object" && "op" in i && i.op === "glob" ? i.pattern.trim() : typeof i == "string" ? i.trim() : i).filter((i) => i !== ""), e = { url: "" }, n = t[Symbol.iterator]();
4
+ let a = n.next().value;
5
+ for (; a; ) {
6
+ if (typeof a == "object" && "op" in a) {
7
+ if (a.op === "&") {
8
+ const i = n.next().value;
9
+ if (typeof i == "string") {
10
+ const o = m(`?${i}`).reduce(
11
+ (s, { key: p, value: f }) => (s[p] = f, s),
12
+ {}
13
+ );
14
+ e.queryParameters = {
15
+ ...e.queryParameters,
16
+ ...o
17
+ };
18
+ }
19
+ }
20
+ a = n.next().value;
8
21
  continue;
9
22
  }
10
- if (t === "-X" || t === "--request")
11
- m(i, e);
12
- else if (t === "--url")
13
- o(i, e);
14
- else if (t === "-H" || t === "--header")
15
- f(i, e);
16
- else if (t === "--data" || t === "-d" || t === "--data-raw" || t === "--data-urlencode" || t === "--data-binary" || t === "--data-ascii") {
17
- const s = i.next().value;
18
- typeof s == "string" && (e.body = s);
19
- } else typeof t == "string" && !e.url && (t.startsWith("http") || t.startsWith("www.")) ? o([t][Symbol.iterator](), e) : t === "-P" ? p(i, e) : typeof t == "string" && t.toLowerCase().includes("content-type") ? h(t, e) : t === "-u" || t === "--user" ? u(i, e) : (t === "-b" || t === "--cookie") && l(i, e);
20
- t = i.next().value;
23
+ if (a === "-X" || a === "--request")
24
+ l(n, e);
25
+ else if (a === "--url")
26
+ d(n, e);
27
+ else if (a === "-H" || a === "--header")
28
+ u(n, e);
29
+ else if (a === "--data" || a === "-d" || a === "--data-raw" || a === "--data-urlencode" || a === "--data-binary" || a === "--data-ascii") {
30
+ const i = n.next().value;
31
+ typeof i == "string" && (e.body = i);
32
+ } else typeof a == "string" && !e.url && (a.startsWith("http") || a.startsWith("www.")) ? d([a][Symbol.iterator](), e) : a === "-P" ? y(n, e) : typeof a == "string" && a.toLowerCase().includes("content-type") ? v(a, e) : a === "-u" || a === "--user" ? x(n, e) : (a === "-b" || a === "--cookie") && b(n, e);
33
+ a = n.next().value;
21
34
  }
22
- return {
23
- ...e,
24
- queryParameters: {
25
- ...d(e.url),
26
- ...e.queryParameters
27
- }
28
- };
35
+ return e;
29
36
  }
30
- function m(a, r) {
31
- r.method = a.next().value.toLowerCase();
37
+ function l(r, t) {
38
+ t.method = r.next().value.toLowerCase();
32
39
  }
33
- function o(a, r) {
34
- const e = new URL(a.next().value.replace(/['"]/g, ""));
35
- r.servers = [e.origin], r.path = e.pathname !== "/" ? e.pathname : "", r.url = r.servers[0] + r.path, r.queryParameters = r.queryParameters || {};
36
- const i = e.search.substring(1);
37
- i && i.split("&").forEach((t) => {
38
- p([t][Symbol.iterator](), r);
39
- });
40
+ function d(r, t) {
41
+ const e = new URL(r.next().value.replace(/['"]/g, ""));
42
+ t.servers = [e.origin], t.path = e.pathname !== "/" ? e.pathname : "", t.url = t.servers[0] + t.path, t.queryParameters = m(e.search);
40
43
  }
41
- function f(a, r) {
42
- const e = a.next().value.replace(/['"]/g, "").split(/:(.*)/);
43
- r.headers = r.headers || {}, e[1] !== void 0 ? r.headers[e[0].trim()] = e[1].trim() : r.headers[e[0].trim()] = "";
44
+ function u(r, t) {
45
+ const e = r.next().value.replace(/['"]/g, "").split(/:(.*)/);
46
+ t.headers = t.headers || {}, e[1] !== void 0 ? t.headers[e[0].trim()] = e[1].trim() : t.headers[e[0].trim()] = "";
44
47
  }
45
- function p(a, r) {
46
- const e = a.next().value.replace(/['"]/g, "").split("=");
47
- r.queryParameters = r.queryParameters || {}, e[1] !== void 0 ? r.queryParameters[e[0].trim()] = e[1].trim() : r.queryParameters[e[0].trim()] = "";
48
+ function y(r, t) {
49
+ const e = r.next().value.replace(/['"]/g, "").split("=");
50
+ t.pathVariables = t.pathVariables || {}, e[1] !== void 0 ? t.pathVariables[e[0].trim()] = e[1].trim() : t.pathVariables[e[0].trim()] = "";
48
51
  }
49
- function d(a) {
50
- const r = a.indexOf("?"), e = {};
51
- return r !== -1 && (a.substring(r + 1).split("&") || []).forEach((s) => {
52
- const n = s.split("=");
53
- e[n[0]] = n[1];
52
+ function m(r) {
53
+ const t = r.indexOf("?"), e = [];
54
+ return t !== -1 && r.substring(t + 1).split("&").forEach((i) => {
55
+ const [c, o] = i.split("="), s = decodeURIComponent(c.trim()), p = o ? decodeURIComponent(o.trim()) : "";
56
+ e.push({ key: s, value: p });
54
57
  }), e;
55
58
  }
56
- function h(a, r) {
57
- const e = a.replace(/['"]/g, "").split(/:(.+)/);
58
- r.headers = r.headers || {}, e[1] !== void 0 ? r.headers[e[0].trim()] = e[1].trim() : r.headers[e[0].trim()] = "";
59
+ function v(r, t) {
60
+ const e = r.replace(/['"]/g, "").split(/:(.+)/);
61
+ t.headers = t.headers || {}, e[1] !== void 0 ? t.headers[e[0].trim()] = e[1].trim() : t.headers[e[0].trim()] = "";
59
62
  }
60
- function u(a, r) {
61
- const e = a.next().value.split(":");
62
- r.headers = r.headers || {}, r.headers.Authorization = e[1];
63
+ function x(r, t) {
64
+ const e = r.next().value.split(":");
65
+ t.headers = t.headers || {}, t.headers.Authorization = e[1];
63
66
  }
64
- function l(a, r) {
65
- const e = a.next().value;
66
- r.headers = r.headers || {}, r.headers.Cookie = e;
67
+ function b(r, t) {
68
+ const e = r.next().value;
69
+ t.headers = t.headers || {}, t.headers.Cookie = e;
67
70
  }
68
71
  export {
69
- v as parseCurlCommand
72
+ P as parseCurlCommand
70
73
  };
@@ -4,7 +4,7 @@ import type { Cookie } from '@scalar/oas-utils/entities/cookie';
4
4
  import type { Collection, Request, RequestExample, RequestMethod, ResponseInstance, SecurityScheme, Server } from '@scalar/oas-utils/entities/spec';
5
5
  export type RequestStatus = 'start' | 'stop' | 'abort';
6
6
  /** Decode the buffer according to its content-type */
7
- export declare function decodeBuffer(buffer: ArrayBuffer, contentType: string): any;
7
+ export declare function decodeBuffer(buffer: ArrayBuffer, contentType: string): string | Blob;
8
8
  /** Populate the headers from enabled parameters */
9
9
  export declare function createFetchHeaders(example: Pick<RequestExample, 'parameters'>, env: object): Record<string, string>;
10
10
  /** Populate the query parameters from the example */
@@ -40,8 +40,8 @@ export declare function createFetchBody(method: RequestMethod, example: RequestE
40
40
  contentType: string | undefined;
41
41
  };
42
42
  /** Response from sendRequest hoisted so we can use it as the return type for createRequestOperation */
43
- type SendRequestResponse<ResponseDataType = unknown> = Promise<ErrorResponse<{
44
- response: ResponseInstance<ResponseDataType>;
43
+ type SendRequestResponse = Promise<ErrorResponse<{
44
+ response: ResponseInstance;
45
45
  request: RequestExample;
46
46
  timestamp: number;
47
47
  }>>;
@@ -49,7 +49,7 @@ type SendRequestResponse<ResponseDataType = unknown> = Promise<ErrorResponse<{
49
49
  * Execute the request
50
50
  * called from the send button as well as keyboard shortcuts
51
51
  */
52
- export declare const createRequestOperation: <ResponseDataType = unknown>({ request, auth, example, server, securitySchemes, proxy, status, environment, globalCookies, }: {
52
+ export declare const createRequestOperation: ({ request, auth, example, server, securitySchemes, proxy, status, environment, globalCookies, }: {
53
53
  auth: Collection["auth"];
54
54
  request: Request;
55
55
  example: RequestExample;
@@ -61,7 +61,7 @@ export declare const createRequestOperation: <ResponseDataType = unknown>({ requ
61
61
  globalCookies: Cookie[];
62
62
  }) => ErrorResponse<{
63
63
  controller: AbortController;
64
- sendRequest: () => SendRequestResponse<ResponseDataType>;
64
+ sendRequest: () => SendRequestResponse;
65
65
  }>;
66
66
  export {};
67
67
  //# sourceMappingURL=send-request.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"send-request.d.ts","sourceRoot":"","sources":["../../src/libs/send-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,aAAa,EAAkB,MAAM,eAAe,CAAA;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAIhD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AASxC,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;AAGtD,sDAAsD;AACtD,wBAAgB,YAAY,CAAC,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,OAkBpE;AAED,mDAAmD;AACnD,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,EAC3C,GAAG,EAAE,MAAM,0BAgBZ;AAED,sDAAsD;AACtD,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,EAC3C,GAAG,EAAE,MAAM,mBASZ;AAED,4EAA4E;AAC5E,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,GAAG,EACH,aAAa,EACb,MAAM,EACN,KAAK,GACN,EAAE;IACD,OAAO,EAAE,cAAc,CAAA;IACvB,G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AM,sBAAsB,oGAUhC;IACD,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IACxB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,cAAc,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAA;IAChC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAC/C,aAAa,EAAE,MAAM,EAAE,CAAA;CACxB,KAAG,aAAa,CAAC;IAChB,UAAU,EAAE,eAAe,CAAA;IAC3B,WAAW,EAAE,MAAM,mBAAmB,CAAA;CACvC,CA0LA,CAAA"}
@@ -1,60 +1,56 @@
1
- import { ERRORS as L, normalizeError as P } from "./errors.js";
2
- import { normalizeHeaders as M } from "./normalize-headers.js";
1
+ import { ERRORS as P, normalizeError as E } from "./errors.js";
2
+ import { normalizeHeaders as O } from "./normalize-headers.js";
3
3
  import { replaceTemplateVariables as f } from "./string-template.js";
4
- import { canMethodHaveBody as z, isRelativePath as E, shouldUseProxy as B } from "@scalar/oas-utils/helpers";
5
- import R from "js-cookie";
6
- import H from "whatwg-mimetype";
7
- import { textMediaTypes as K } from "../views/Request/consts/mediaTypes.js";
8
- function _(r, n) {
9
- const o = new H(n);
10
- if (K.includes(o.essence)) {
11
- const d = new TextDecoder(o.parameters.get("charset")).decode(r);
12
- return o.subtype === "json" ? JSON.parse(d) : d;
13
- }
14
- return new Blob([r], { type: o.essence });
4
+ import { canMethodHaveBody as H, isRelativePath as B, shouldUseProxy as C } from "@scalar/oas-utils/helpers";
5
+ import g from "js-cookie";
6
+ import K from "whatwg-mimetype";
7
+ import { textMediaTypes as _ } from "../views/Request/consts/mediaTypes.js";
8
+ function q(r, t) {
9
+ const n = new K(t);
10
+ return _.includes(n.essence) ? new TextDecoder(n.parameters.get("charset")).decode(r) : new Blob([r], { type: n.essence });
15
11
  }
16
- function q(r, n) {
17
- const o = {};
12
+ function Q(r, t) {
13
+ const n = {};
18
14
  return r.parameters.headers.forEach((e) => {
19
- const d = e.key.trim().toLowerCase();
20
- e.enabled && (d !== "content-type" || e.value !== "multipart/form-data") && (o[d] = f(e.value, n));
21
- }), o;
15
+ const m = e.key.trim().toLowerCase();
16
+ e.enabled && (m !== "content-type" || e.value !== "multipart/form-data") && (n[m] = f(e.value, t));
17
+ }), n;
22
18
  }
23
- function j(r, n) {
24
- const o = new URLSearchParams();
19
+ function V(r, t) {
20
+ const n = new URLSearchParams();
25
21
  return r.parameters.query.forEach((e) => {
26
- e.enabled && e.value && o.append(e.key, f(e.value, n));
27
- }), o;
22
+ e.enabled && e.value && n.append(e.key, f(e.value, t));
23
+ }), n;
28
24
  }
29
- function N({
25
+ function W({
30
26
  example: r,
31
- env: n,
32
- globalCookies: o,
27
+ env: t,
28
+ globalCookies: n,
33
29
  domain: e,
34
- proxy: d
30
+ proxy: m
35
31
  }) {
36
- let h;
32
+ let d;
37
33
  try {
38
- h = new URL(d || e).host;
34
+ d = new URL(m || e).host;
39
35
  } catch {
40
- typeof window < "u" && (h = window.location.host);
36
+ typeof window < "u" && (d = window.location.host);
41
37
  }
42
38
  const i = {
43
39
  // Must point all cookies to the proxy and let it sort them out
44
- domain: h,
40
+ domain: d,
45
41
  // Means that the browser sends the cookie with both cross-site and same-site requests.
46
42
  sameSite: "None",
47
43
  // The Secure attribute must also be set when setting SameSite=None.
48
44
  secure: !0
49
- }, l = R.get();
50
- return Object.keys(l).forEach((a) => R.remove(a)), r.parameters.cookies.forEach((a) => {
51
- a.enabled && R.set(a.key, f(a.value, n));
52
- }), o.forEach((a) => {
45
+ }, l = g.get();
46
+ return Object.keys(l).forEach((a) => g.remove(a)), r.parameters.cookies.forEach((a) => {
47
+ a.enabled && g.set(a.key, f(a.value, t));
48
+ }), n.forEach((a) => {
53
49
  var u;
54
- const { name: s, value: g, ...p } = a;
55
- (p.domain === e || ((u = p.domain) == null ? void 0 : u.startsWith(".")) && e.endsWith(p.domain ?? "")) && R.set(s, g, {
50
+ const { name: s, value: R, ...p } = a;
51
+ (p.domain === e || ((u = p.domain) == null ? void 0 : u.startsWith(".")) && e.endsWith(p.domain ?? "")) && g.set(s, R, {
56
52
  /** Override the domain with the proxy value */
57
- domain: h,
53
+ domain: d,
58
54
  // TODO: path cookies probably don't worth with the proxy
59
55
  path: p.path,
60
56
  expires: p.expires ? new Date(p.expires) : void 0,
@@ -65,65 +61,65 @@ function N({
65
61
  cookieParams: i
66
62
  };
67
63
  }
68
- function Q(r, n, o) {
69
- var e, d, h;
70
- if (!z(r))
64
+ function j(r, t, n) {
65
+ var e, m, d;
66
+ if (!H(r))
71
67
  return { body: void 0, contentType: void 0 };
72
- if (n.body.activeBody === "formData" && n.body.formData) {
73
- const i = n.body.formData.encoding === "form-data" ? "multipart/form-data" : "application/x-www-form-urlencoded", l = n.body.formData.encoding === "form-data" ? new FormData() : new URLSearchParams();
74
- return n.body.formData.value.forEach((a) => {
75
- !a.enabled || !a.key || (a.file && l instanceof FormData ? l.append(a.key, a.file, a.file.name) : a.value !== void 0 && l.append(a.key, f(a.value, o)));
68
+ if (t.body.activeBody === "formData" && t.body.formData) {
69
+ const i = t.body.formData.encoding === "form-data" ? "multipart/form-data" : "application/x-www-form-urlencoded", l = t.body.formData.encoding === "form-data" ? new FormData() : new URLSearchParams();
70
+ return t.body.formData.value.forEach((a) => {
71
+ !a.enabled || !a.key || (a.file && l instanceof FormData ? l.append(a.key, a.file, a.file.name) : a.value !== void 0 && l.append(a.key, f(a.value, n)));
76
72
  }), { body: l, contentType: i };
77
73
  }
78
- return n.body.activeBody === "raw" ? {
79
- body: f(((e = n.body.raw) == null ? void 0 : e.value) ?? "", o),
80
- contentType: (d = n.body.raw) == null ? void 0 : d.encoding
81
- } : n.body.activeBody === "binary" ? {
82
- body: n.body.binary,
83
- contentType: (h = n.body.binary) == null ? void 0 : h.type
74
+ return t.body.activeBody === "raw" ? {
75
+ body: f(((e = t.body.raw) == null ? void 0 : e.value) ?? "", n),
76
+ contentType: (m = t.body.raw) == null ? void 0 : m.encoding
77
+ } : t.body.activeBody === "binary" ? {
78
+ body: t.body.binary,
79
+ contentType: (d = t.body.binary) == null ? void 0 : d.type
84
80
  } : {
85
81
  body: void 0,
86
82
  contentType: void 0
87
83
  };
88
84
  }
89
- const x = ({
85
+ const ee = ({
90
86
  request: r,
91
- auth: n,
92
- example: o,
87
+ auth: t,
88
+ example: n,
93
89
  server: e,
94
- securitySchemes: d,
95
- proxy: h,
90
+ securitySchemes: m,
91
+ proxy: d,
96
92
  status: i,
97
93
  environment: l,
98
94
  globalCookies: a
99
95
  }) => {
100
96
  try {
101
- const s = l ?? {}, g = new AbortController(), p = o.parameters.path.reduce((w, t) => (t.enabled && (w[t.key] = f(t.value, s)), w), {}), D = f((e == null ? void 0 : e.url) ?? "", s), u = f(r.path, p);
102
- let m = D || u;
103
- if (!m) throw L.URL_EMPTY;
104
- const T = j(o, s), b = q(o, s), { body: C } = Q(r.method, o, s);
105
- return N({
106
- example: o,
97
+ const s = l ?? {}, R = new AbortController(), p = n.parameters.path.reduce((w, o) => (o.enabled && (w[o.key] = f(o.value, s)), w), {}), D = f((e == null ? void 0 : e.url) ?? "", s), u = f(r.path, p);
98
+ let h = D || u;
99
+ if (!h) throw P.URL_EMPTY;
100
+ const L = V(n, s), b = Q(n, s), { body: A } = j(r.method, n, s);
101
+ return W({
102
+ example: n,
107
103
  env: s,
108
104
  globalCookies: a,
109
- domain: m,
110
- proxy: h
105
+ domain: h,
106
+ proxy: d
111
107
  }), r.selectedSecuritySchemeUids.forEach((w) => {
112
- const t = n[w], y = d[w];
113
- if (!(!t || !y)) {
114
- if (y.type === "apiKey" && t.type === "apiKey") {
115
- const c = f(t.value, s);
116
- y.in === "header" && (b[t.name] = c), y.in === "query" && T.append(t.name, c), y.in === "cookie" && R.set(t.name, c);
108
+ const o = t[w], y = m[w];
109
+ if (!(!o || !y)) {
110
+ if (y.type === "apiKey" && o.type === "apiKey") {
111
+ const c = f(o.value, s);
112
+ y.in === "header" && (b[o.name] = c), y.in === "query" && L.append(o.name, c), y.in === "cookie" && g.set(o.name, c);
117
113
  }
118
- if (y.type === "http" && t.type === "http")
114
+ if (y.type === "http" && o.type === "http")
119
115
  if (y.scheme === "basic") {
120
- const c = f(t.username, s), S = f(t.password, s), U = `${c}:${S}`;
116
+ const c = f(o.username, s), S = f(o.password, s), U = `${c}:${S}`;
121
117
  b.Authorization = `Basic ${btoa(U)}`;
122
118
  } else {
123
- const c = f(t.token, s);
119
+ const c = f(o.token, s);
124
120
  b.Authorization = `Bearer ${c}`;
125
121
  }
126
- y.type === "oauth2" && t.type.includes("oauth") && "token" in t && (t.token || console.error("OAuth token was not created"), b.Authorization = `Bearer ${t.token}`);
122
+ y.type === "oauth2" && o.type.includes("oauth") && "token" in o && (o.token || console.error("OAuth token was not created"), b.Authorization = `Bearer ${o.token}`);
127
123
  }
128
124
  }), [
129
125
  null,
@@ -132,38 +128,36 @@ const x = ({
132
128
  i == null || i.emit("start");
133
129
  const w = Date.now();
134
130
  try {
135
- if (m && (!E(m) || typeof window < "u")) {
136
- const O = E(m) ? window.location.origin + m : m, k = new URL(O), $ = new URL(u, k.origin), v = new URL(k);
131
+ if (h && (!B(h) || typeof window < "u")) {
132
+ const z = B(h) ? window.location.origin + h : h, k = new URL(z), M = new URL(u, k.origin), v = new URL(k);
137
133
  e != null && e.url && (k.pathname === "/" ? v.pathname = u : v.pathname = k.pathname + u), v.search = new URLSearchParams([
138
134
  ...k.searchParams,
139
- ...$.searchParams,
140
- ...T
141
- ]).toString(), m = v.toString();
135
+ ...M.searchParams,
136
+ ...L
137
+ ]).toString(), h = v.toString();
142
138
  }
143
- const t = new URLSearchParams([["scalar_url", m.toString()]]), y = B(h, m) ? `${h}?${t.toString()}` : m, c = await fetch(y, {
144
- signal: g.signal,
139
+ const o = new URLSearchParams([["scalar_url", h.toString()]]), y = C(d, h) ? `${d}?${o.toString()}` : h, c = await fetch(y, {
140
+ signal: R.signal,
145
141
  method: r.method.toUpperCase(),
146
- body: C,
142
+ body: A,
147
143
  headers: b
148
144
  });
149
145
  i == null || i.emit("stop");
150
- const S = M(
146
+ const S = O(
151
147
  c.headers,
152
- B(h, m)
153
- ), U = c.headers.get("content-type") ?? "text/plain;charset=UTF-8", A = _(
154
- await c.arrayBuffer(),
155
- U
156
- ), F = "getSetCookie" in c.headers && typeof c.headers.getSetCookie == "function" ? c.headers.getSetCookie() : [];
148
+ C(d, h)
149
+ ), U = c.headers.get("content-type") ?? "text/plain;charset=UTF-8", T = await c.arrayBuffer(), F = q(T, U), $ = "getSetCookie" in c.headers && typeof c.headers.getSetCookie == "function" ? c.headers.getSetCookie() : [];
157
150
  return [
158
151
  null,
159
152
  {
160
153
  timestamp: Date.now(),
161
- request: o,
154
+ request: n,
162
155
  response: {
163
156
  ...c,
164
157
  headers: S,
165
- cookieHeaderKeys: F,
166
- data: A,
158
+ cookieHeaderKeys: $,
159
+ data: F,
160
+ size: T.byteLength,
167
161
  duration: Date.now() - w,
168
162
  method: r.method,
169
163
  status: c.status,
@@ -171,22 +165,22 @@ const x = ({
171
165
  }
172
166
  }
173
167
  ];
174
- } catch (t) {
175
- return i == null || i.emit("abort"), [P(t, L.REQUEST_FAILED), null];
168
+ } catch (o) {
169
+ return i == null || i.emit("abort"), [E(o, P.REQUEST_FAILED), null];
176
170
  }
177
171
  },
178
- controller: g
172
+ controller: R
179
173
  }
180
174
  ];
181
175
  } catch (s) {
182
- return i == null || i.emit("abort"), [P(s), null];
176
+ return i == null || i.emit("abort"), [E(s), null];
183
177
  }
184
178
  };
185
179
  export {
186
- Q as createFetchBody,
187
- q as createFetchHeaders,
188
- j as createFetchQueryParams,
189
- x as createRequestOperation,
190
- _ as decodeBuffer,
191
- N as setRequestCookies
180
+ j as createFetchBody,
181
+ Q as createFetchHeaders,
182
+ V as createFetchQueryParams,
183
+ ee as createRequestOperation,
184
+ q as decodeBuffer,
185
+ W as setRequestCookies
192
186
  };
@@ -1 +1 @@
1
- {"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/store/collections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,EAEvB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,yCAAyC;AACzC,wBAAgB,sBAAsB,CAAC,eAAe,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAkFg7X,CAAC;;;;;;uBAAqK,CAAC;mBAAqC,CAAC;0BAA4C,CAAC;mBAAqC,CAAC;oBAAoB,CAAC;mBAAqC,CAAC;qBAAuC,CAAC;;mBAA4D,CAAC;;0BAAoD,CAAC;mBAAqC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAA3hB,CAAC;;;;;;2BAAqK,CAAC;uBAAqC,CAAC;8BAA4C,CAAC;uBAAqC,CAAC;wBAAoB,CAAC;uBAAqC,CAAC;yBAAuC,CAAC;;uBAA4D,CAAC;;8BAAoD,CAAC;uBAAqC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAA3hB,CAAC;;;;;;2BAAqK,CAAC;uBAAqC,CAAC;8BAA4C,CAAC;uBAAqC,CAAC;wBAAoB,CAAC;uBAAqC,CAAC;yBAAuC,CAAC;;uBAA4D,CAAC;;8BAAoD,CAAC;uBAAqC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAA3hB,CAAC;;;;;;2BAAqK,CAAC;uBAAqC,CAAC;8BAA4C,CAAC;uBAAqC,CAAC;wBAAoB,CAAC;uBAAqC,CAAC;yBAAuC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