@scalar/api-client 2.0.64 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (326) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +64 -62
  5. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  6. package/dist/components/AddressBar/AddressBarHistory.vue.js +77 -69
  7. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  8. package/dist/components/AddressBar/AddressBarServer.vue.js +121 -0
  9. package/dist/components/AddressBar/AddressBarServer.vue2.js +4 -0
  10. package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts +22 -0
  11. package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -0
  12. package/dist/components/AddressBar/AddressBarServerItem.vue.js +57 -0
  13. package/dist/components/AddressBar/AddressBarServerItem.vue2.js +4 -0
  14. package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -6
  15. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  16. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  17. package/dist/components/CodeInput/CodeInput.vue2.js +87 -82
  18. package/dist/components/CodeInput/codeVariableWidget.d.ts +4 -4
  19. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  20. package/dist/components/CodeInput/codeVariableWidget.js +70 -63
  21. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +33 -0
  22. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -0
  23. package/dist/components/CommandPalette/CommandActionForm.vue.js +41 -0
  24. package/dist/components/CommandPalette/CommandActionForm.vue2.js +4 -0
  25. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +20 -0
  26. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -0
  27. package/dist/components/CommandPalette/CommandActionInput.vue.js +42 -0
  28. package/dist/components/CommandPalette/CommandActionInput.vue2.js +4 -0
  29. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
  30. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +33 -56
  31. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
  32. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +88 -109
  33. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  34. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +56 -73
  35. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +21 -2
  36. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  37. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +122 -133
  38. package/dist/components/CommandPalette/{CommandPaletteFolder.vue.d.ts → CommandPaletteServer.vue.d.ts} +1 -1
  39. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -0
  40. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +92 -0
  41. package/dist/components/CommandPalette/CommandPaletteServer.vue2.js +4 -0
  42. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +7 -0
  43. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -0
  44. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +87 -0
  45. package/dist/components/CommandPalette/CommandPaletteTag.vue2.js +4 -0
  46. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
  47. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +33 -49
  48. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +22 -3
  49. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  50. package/dist/components/CommandPalette/TheCommandPalette.vue.js +3 -3
  51. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +107 -101
  52. package/dist/components/ContextBar.vue.d.ts.map +1 -1
  53. package/dist/components/ContextBar.vue.js +2 -2
  54. package/dist/components/ContextBar.vue2.js +2 -2
  55. package/dist/components/DataTable/DataTable.vue.js +1 -1
  56. package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
  57. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  58. package/dist/components/DataTable/DataTableInput.vue.js +2 -2
  59. package/dist/components/DataTable/DataTableInput.vue2.js +13 -13
  60. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  61. package/dist/components/DataTable/DataTableInputSelect.vue.js +39 -40
  62. package/dist/components/DataTable/index.js +12 -12
  63. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +7 -7
  64. package/dist/components/Form/Form.vue.js +1 -1
  65. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  66. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  67. package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
  68. package/dist/components/HttpMethod/HttpMethod.vue2.js +30 -30
  69. package/dist/components/HttpMethod/helpers.d.ts +4 -0
  70. package/dist/components/HttpMethod/helpers.d.ts.map +1 -0
  71. package/dist/components/HttpMethod/helpers.js +5 -0
  72. package/dist/components/HttpMethod/index.d.ts +1 -0
  73. package/dist/components/HttpMethod/index.d.ts.map +1 -1
  74. package/dist/components/HttpMethod/index.js +4 -2
  75. package/dist/components/Search/SearchModal.vue.d.ts.map +1 -1
  76. package/dist/components/Search/SearchModal.vue.js +2 -2
  77. package/dist/components/Search/SearchModal.vue2.js +29 -27
  78. package/dist/components/Search/useSearch.js +35 -35
  79. package/dist/components/SideNav/SideNavLink.vue.js +6 -6
  80. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
  81. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +14 -17
  82. package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue.d.ts +22 -0
  83. package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue.d.ts.map +1 -0
  84. package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue.js +29 -0
  85. package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue2.js +4 -0
  86. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
  87. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
  88. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +38 -35
  89. package/dist/components/Sidebar/Sidebar.vue.d.ts +2 -1
  90. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  91. package/dist/components/Sidebar/Sidebar.vue.js +1 -1
  92. package/dist/components/Sidebar/Sidebar.vue2.js +37 -34
  93. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  94. package/dist/components/Sidebar/SidebarButton.vue.js +11 -11
  95. package/dist/components/SubpageHeader.vue.d.ts.map +1 -1
  96. package/dist/components/SubpageHeader.vue.js +3 -3
  97. package/dist/components/SubpageHeader.vue2.js +3 -3
  98. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  99. package/dist/components/TopNav/TopNav.vue.js +2 -2
  100. package/dist/components/TopNav/TopNav.vue2.js +23 -23
  101. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  102. package/dist/components/TopNav/TopNavItem.vue.js +2 -2
  103. package/dist/components/TopNav/TopNavItem.vue2.js +21 -21
  104. package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
  105. package/dist/components/ViewLayout/ViewLayout.vue.js +7 -7
  106. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  107. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +5 -5
  108. package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
  109. package/dist/components/ViewLayout/ViewLayoutContent.vue.js +4 -4
  110. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  111. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +6 -6
  112. package/dist/index.d.ts +1 -1
  113. package/dist/index.d.ts.map +1 -1
  114. package/dist/index.js +1 -1
  115. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  116. package/dist/layouts/App/ApiClientApp.vue.js +39 -53
  117. package/dist/layouts/App/create-api-client-app.d.ts +2058 -1941
  118. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  119. package/dist/layouts/App/create-api-client-app.js +12 -12
  120. package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
  121. package/dist/layouts/Modal/ApiClientModal.vue2.js +6 -6
  122. package/dist/layouts/Modal/create-api-client-modal.d.ts +4590 -4356
  123. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  124. package/dist/layouts/Modal/create-api-client-modal.js +18 -23
  125. package/dist/libs/create-client.d.ts +2086 -1972
  126. package/dist/libs/create-client.d.ts.map +1 -1
  127. package/dist/libs/create-client.js +82 -73
  128. package/dist/libs/environment-parser.d.ts +9 -0
  129. package/dist/libs/environment-parser.d.ts.map +1 -0
  130. package/dist/libs/environment-parser.js +17 -0
  131. package/dist/libs/errors.d.ts +21 -0
  132. package/dist/libs/errors.d.ts.map +1 -0
  133. package/dist/libs/errors.js +14 -0
  134. package/dist/libs/event-busses/command-palette-bus.d.ts +1 -1
  135. package/dist/libs/event-busses/command-palette-bus.d.ts.map +1 -1
  136. package/dist/libs/event-busses/hot-keys-bus.d.ts +4 -4
  137. package/dist/libs/event-busses/hot-keys-bus.d.ts.map +1 -1
  138. package/dist/libs/event-busses/hot-keys-bus.js +17 -19
  139. package/dist/libs/index.d.ts +5 -2
  140. package/dist/libs/index.d.ts.map +1 -1
  141. package/dist/libs/index.js +31 -24
  142. package/dist/libs/local-storage.d.ts +3 -3
  143. package/dist/libs/local-storage.d.ts.map +1 -1
  144. package/dist/libs/local-storage.js +24 -12
  145. package/dist/libs/normalize-headers.d.ts +14 -0
  146. package/dist/libs/normalize-headers.d.ts.map +1 -0
  147. package/dist/libs/normalize-headers.js +32 -0
  148. package/dist/libs/send-request.d.ts +28 -0
  149. package/dist/libs/send-request.d.ts.map +1 -0
  150. package/dist/libs/send-request.js +186 -0
  151. package/dist/libs/string-template.d.ts +19 -0
  152. package/dist/libs/string-template.d.ts.map +1 -0
  153. package/dist/libs/string-template.js +30 -0
  154. package/dist/router.d.ts +5 -0
  155. package/dist/router.d.ts.map +1 -1
  156. package/dist/router.js +36 -27
  157. package/dist/store/collections.d.ts +705 -0
  158. package/dist/store/collections.d.ts.map +1 -0
  159. package/dist/store/collections.js +63 -0
  160. package/dist/store/cookies.d.ts +135 -0
  161. package/dist/store/cookies.d.ts.map +1 -0
  162. package/dist/store/cookies.js +29 -0
  163. package/dist/store/environment.d.ts +80 -0
  164. package/dist/store/environment.d.ts.map +1 -0
  165. package/dist/store/environment.js +39 -0
  166. package/dist/store/import-spec.d.ts +8 -0
  167. package/dist/store/import-spec.d.ts.map +1 -0
  168. package/dist/store/import-spec.js +45 -0
  169. package/dist/store/index.d.ts +1 -1
  170. package/dist/store/index.d.ts.map +1 -1
  171. package/dist/store/index.js +1 -1
  172. package/dist/store/request-example.d.ts +1111 -0
  173. package/dist/store/request-example.d.ts.map +1 -0
  174. package/dist/store/request-example.js +47 -0
  175. package/dist/store/requests.d.ts +371 -0
  176. package/dist/store/requests.d.ts.map +1 -0
  177. package/dist/store/requests.js +107 -0
  178. package/dist/store/router-params.d.ts +15 -0
  179. package/dist/store/router-params.d.ts.map +1 -0
  180. package/dist/store/router-params.js +21 -0
  181. package/dist/store/security-schemes.d.ts +616 -0
  182. package/dist/store/security-schemes.d.ts.map +1 -0
  183. package/dist/store/security-schemes.js +68 -0
  184. package/dist/store/servers.d.ts +99 -0
  185. package/dist/store/servers.d.ts.map +1 -0
  186. package/dist/store/servers.js +46 -0
  187. package/dist/store/store-context.d.ts +29 -0
  188. package/dist/store/store-context.d.ts.map +1 -0
  189. package/dist/store/store.d.ts +7504 -0
  190. package/dist/store/store.d.ts.map +1 -0
  191. package/dist/store/store.js +200 -0
  192. package/dist/store/tags.d.ts +169 -0
  193. package/dist/store/tags.d.ts.map +1 -0
  194. package/dist/store/tags.js +57 -0
  195. package/dist/store/workspace.d.ts +93 -7150
  196. package/dist/store/workspace.d.ts.map +1 -1
  197. package/dist/store/workspace.js +49 -543
  198. package/dist/style.css +1 -1
  199. package/dist/views/Cookies/CookieForm.vue.js +2 -2
  200. package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
  201. package/dist/views/Cookies/CookieRaw.vue.js +10 -10
  202. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  203. package/dist/views/Cookies/Cookies.vue2.js +21 -23
  204. package/dist/views/Environment/Environment.vue2.js +27 -28
  205. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +11 -5
  206. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  207. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +79 -59
  208. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  209. package/dist/views/Request/Request.vue.js +2 -2
  210. package/dist/views/Request/Request.vue2.js +87 -318
  211. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +36 -0
  212. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -0
  213. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +59 -0
  214. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue2.js +4 -0
  215. package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuth2.vue.d.ts +3 -1
  216. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -0
  217. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +216 -0
  218. package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue.d.ts +2 -2
  219. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -0
  220. package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue.js +3 -3
  221. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -0
  222. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +7 -0
  223. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +183 -0
  224. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts +30 -0
  225. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts.map +1 -0
  226. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts +3 -0
  227. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -0
  228. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +140 -0
  229. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +4 -0
  230. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
  231. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  232. package/dist/views/Request/RequestSection/RequestBody.vue.js +167 -186
  233. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -1
  234. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  235. package/dist/views/Request/RequestSection/RequestParams.vue.js +49 -49
  236. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
  237. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  238. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +26 -22
  239. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  240. package/dist/views/Request/RequestSection/RequestSection.vue.js +103 -102
  241. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +5 -5
  242. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  243. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  244. package/dist/views/Request/RequestSection/RequestTable.vue2.js +1 -1
  245. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts +1 -1
  246. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  247. package/dist/views/Request/RequestSidebar.vue.d.ts +30 -0
  248. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -0
  249. package/dist/views/Request/RequestSidebar.vue.js +7 -0
  250. package/dist/views/Request/RequestSidebar.vue2.js +179 -0
  251. package/dist/views/Request/RequestSidebarItem.vue.d.ts +6 -7
  252. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  253. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  254. package/dist/views/Request/RequestSidebarItem.vue2.js +283 -254
  255. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +3 -5
  256. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  257. package/dist/views/Request/RequestSidebarItemMenu.vue.js +2 -2
  258. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +9 -7
  259. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +24 -0
  260. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -0
  261. package/dist/views/Request/RequestSubpageHeader.vue.js +7 -0
  262. package/dist/views/Request/RequestSubpageHeader.vue2.js +48 -0
  263. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
  264. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +21 -21
  265. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
  266. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +3 -3
  267. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +17 -16
  268. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  269. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
  270. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +37 -30
  271. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts +1 -1
  272. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
  273. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -1
  274. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  275. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
  276. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  277. package/dist/views/Request/components/WorkspaceDropdown.vue.js +69 -90
  278. package/dist/views/Request/components/index.d.ts +0 -1
  279. package/dist/views/Request/components/index.d.ts.map +1 -1
  280. package/dist/views/Request/components/index.js +2 -4
  281. package/dist/views/Request/consts/new-auth-options.d.ts +11 -1
  282. package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
  283. package/dist/views/Request/consts/new-auth-options.js +17 -7
  284. package/dist/views/Request/handle-drag.d.ts +8 -0
  285. package/dist/views/Request/handle-drag.d.ts.map +1 -0
  286. package/dist/views/Request/handle-drag.js +56 -0
  287. package/dist/views/Request/libs/auth.d.ts +35 -0
  288. package/dist/views/Request/libs/auth.d.ts.map +1 -0
  289. package/dist/views/Request/libs/auth.js +14 -0
  290. package/dist/views/Request/libs/index.d.ts +1 -0
  291. package/dist/views/Request/libs/index.d.ts.map +1 -1
  292. package/dist/views/Request/libs/index.js +7 -3
  293. package/dist/views/Request/libs/oauth2.d.ts +12 -3
  294. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  295. package/dist/views/Request/libs/oauth2.js +42 -27
  296. package/dist/views/Servers/ServerForm.vue.js +22 -22
  297. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  298. package/dist/views/Servers/Servers.vue2.js +17 -14
  299. package/package.json +9 -9
  300. package/dist/components/CodeInput/codeDropdownWidget.d.ts +0 -32
  301. package/dist/components/CodeInput/codeDropdownWidget.d.ts.map +0 -1
  302. package/dist/components/CodeInput/codeDropdownWidget.js +0 -121
  303. package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +0 -1
  304. package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +0 -106
  305. package/dist/components/CommandPalette/CommandPaletteFolder.vue2.js +0 -4
  306. package/dist/errors.d.ts +0 -5
  307. package/dist/errors.d.ts.map +0 -1
  308. package/dist/errors.js +0 -7
  309. package/dist/libs/normalizeHeaders.d.ts +0 -11
  310. package/dist/libs/normalizeHeaders.d.ts.map +0 -1
  311. package/dist/libs/normalizeHeaders.js +0 -25
  312. package/dist/libs/pathParams.d.ts +0 -10
  313. package/dist/libs/pathParams.d.ts.map +0 -1
  314. package/dist/libs/pathParams.js +0 -36
  315. package/dist/libs/sendRequest.d.ts +0 -14
  316. package/dist/libs/sendRequest.d.ts.map +0 -1
  317. package/dist/libs/sendRequest.js +0 -163
  318. package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +0 -1
  319. package/dist/views/Request/RequestSection/RequestAuth.vue.js +0 -7
  320. package/dist/views/Request/RequestSection/RequestAuth.vue2.js +0 -351
  321. package/dist/views/Request/components/OAuth2.vue.d.ts.map +0 -1
  322. package/dist/views/Request/components/OAuth2.vue.js +0 -208
  323. package/dist/views/Request/components/OAuthScopesInput.vue.d.ts.map +0 -1
  324. /package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuth2.vue2.js +0 -0
  325. /package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue2.js +0 -0
  326. /package/dist/views/Request/RequestSection/{RequestAuth.vue.d.ts → RequestAuth/RequestAuth.vue.d.ts} +0 -0
@@ -1,49 +1,50 @@
1
- import { defineComponent as O, computed as T, ref as M, openBlock as p, createElementBlock as W, Fragment as S, createElementVNode as n, createVNode as t, unref as e, withCtx as s, renderList as U, createBlock as x, withModifiers as k, normalizeClass as A, createTextVNode as h, toDisplayString as z, withKeys as F } from "vue";
2
- import I from "../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
3
- import { useWorkspace as L } from "../../../store/workspace.js";
4
- import { useModal as $, ScalarDropdown as N, ScalarContextMenu as P, ScalarDropdownItem as m, ScalarIcon as c, ScalarTooltip as q, ScalarDropdownDivider as G, ScalarButton as _, ScalarModal as V, ScalarTextField as H } from "@scalar/components";
5
- import { useRouter as J } from "vue-router";
6
- import { commandPaletteBus as Q } from "../../../libs/event-busses/command-palette-bus.js";
7
- const X = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/2 px-2.5 text-sm" }, Y = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, Z = /* @__PURE__ */ n("span", null, "Rename", -1), ee = /* @__PURE__ */ n("span", null, "Delete", -1), te = /* @__PURE__ */ n("div", { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-lg rounded bg-b-1 z-100 p-2 text-xxs leading-5 z-10 text-c-1" }, [
1
+ import { defineComponent as O, computed as A, ref as y, openBlock as m, createElementBlock as M, Fragment as D, createElementVNode as n, createVNode as t, unref as e, withCtx as s, renderList as I, createBlock as w, withModifiers as x, normalizeClass as L, toDisplayString as C } from "vue";
2
+ import T from "../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
3
+ import U from "../../../components/Sidebar/Actions/RenameSidebarListElement.vue.js";
4
+ import { useModal as W, ScalarDropdown as z, ScalarContextMenu as V, ScalarDropdownItem as u, ScalarIcon as c, ScalarTooltip as F, ScalarDropdownDivider as P, ScalarButton as Y, ScalarModal as S } from "@scalar/components";
5
+ import { useRouter as q } from "vue-router";
6
+ import { useWorkspace as G } from "../../../store/store.js";
7
+ import { commandPaletteBus as H } from "../../../libs/event-busses/command-palette-bus.js";
8
+ const J = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/2 px-2.5 text-sm w-[inherit]" }, K = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, Q = { class: "line-clamp-1 text-left w-[calc(100%-10px)]" }, X = { class: "text-ellipsis overflow-hidden" }, Z = /* @__PURE__ */ n("span", null, "Rename", -1), ee = /* @__PURE__ */ n("span", null, "Delete", -1), te = /* @__PURE__ */ n("div", { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-lg rounded bg-b-1 z-100 p-2 text-xxs leading-5 z-10 text-c-1" }, [
8
9
  /* @__PURE__ */ n("div", { class: "flex items-center text-c-2" }, [
9
10
  /* @__PURE__ */ n("span", null, "Only workspace cannot be deleted.")
10
11
  ])
11
- ], -1), se = /* @__PURE__ */ n("span", null, "Delete", -1), ne = { class: "flex items-center justify-center h-4 w-4" }, le = /* @__PURE__ */ n("span", null, "Create new workspace", -1), ae = { class: "flex gap-3" }, me = /* @__PURE__ */ O({
12
+ ], -1), se = /* @__PURE__ */ n("span", null, "Delete", -1), ne = { class: "flex items-center justify-center h-4 w-4" }, oe = /* @__PURE__ */ n("span", null, "Create new workspace", -1), ue = /* @__PURE__ */ O({
12
13
  __name: "WorkspaceDropdown",
13
- setup(oe) {
14
- const { activeWorkspace: f, workspaces: d, workspaceMutators: g } = L(), { push: b } = J(), j = (l) => {
15
- l !== f.value.uid && b(`/workspace/${l}`);
16
- }, y = T(() => Object.keys(d).length === 1), B = () => Q.emit({ commandName: "Create Workspace" }), o = M(""), r = M(""), v = $(), w = $(), R = (l) => {
17
- o.value = d[l].name, r.value = l, v.show();
18
- }, C = () => {
19
- o.value.trim() && (g.rename(r.value, o.value.trim()), v.hide());
20
- }, E = (l) => {
21
- o.value = d[l].name, r.value = l, w.show();
22
- }, K = async () => {
23
- if (!y.value) {
24
- const l = f.value.uid === r.value, a = { ...d };
25
- if (delete a[r.value], g.delete(r.value), l) {
26
- const i = Object.keys(a)[0];
27
- await b(`/workspace/${i}/`);
14
+ setup(ae) {
15
+ const { activeWorkspace: f, workspaces: r, workspaceMutators: k } = G(), { push: _ } = q(), $ = (o) => {
16
+ o !== f.value.uid && _(`/workspace/${o}`);
17
+ }, g = A(() => Object.keys(r).length === 1), N = () => H.emit({ commandName: "Create Workspace" }), l = y(""), i = y(""), h = W(), v = W(), R = (o) => {
18
+ l.value = r[o].name, i.value = o, h.show();
19
+ }, j = () => {
20
+ l.value.trim() && (k.edit(i.value, "name", l.value.trim()), h.hide());
21
+ }, B = (o) => {
22
+ l.value = r[o].name, i.value = o, v.show();
23
+ }, E = async () => {
24
+ if (!g.value) {
25
+ const o = f.value.uid === i.value, a = { ...r };
26
+ if (delete a[i.value], k.delete(i.value), o) {
27
+ const d = Object.keys(a)[0];
28
+ await _(`/workspace/${d}/`);
28
29
  }
29
30
  }
30
- w.hide();
31
+ v.hide();
31
32
  };
32
- return (l, a) => (p(), W(S, null, [
33
- n("div", X, [
34
- t(e(N), null, {
33
+ return (o, a) => (m(), M(D, null, [
34
+ n("div", J, [
35
+ t(e(z), null, {
35
36
  items: s(() => [
36
- (p(!0), W(S, null, U(e(d), (i, u) => (p(), x(e(P), { key: u }, {
37
+ (m(!0), M(D, null, I(e(r), (d, p) => (m(), w(e(V), { key: p }, {
37
38
  trigger: s(() => [
38
- t(e(m), {
39
+ t(e(u), {
39
40
  class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden w-full",
40
- onClick: k((D) => j(u), ["stop"])
41
+ onClick: x((b) => $(p), ["stop"])
41
42
  }, {
42
43
  default: s(() => [
43
44
  n("div", {
44
- class: A([
45
+ class: L([
45
46
  "flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",
46
- e(f).uid === u ? "bg-blue text-b-1" : "text-transparent"
47
+ e(f).uid === p ? "bg-blue text-b-1" : "text-transparent"
47
48
  ])
48
49
  }, [
49
50
  t(e(c), {
@@ -52,17 +53,17 @@ const X = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
52
53
  thickness: "3.5"
53
54
  })
54
55
  ], 2),
55
- h(" " + z(i.name), 1)
56
+ n("span", X, C(d.name), 1)
56
57
  ]),
57
58
  _: 2
58
59
  }, 1032, ["onClick"])
59
60
  ]),
60
61
  content: s(() => [
61
- t(e(N), { static: "" }, {
62
+ t(e(z), { static: "" }, {
62
63
  items: s(() => [
63
- t(e(m), {
64
+ t(e(u), {
64
65
  class: "flex gap-2",
65
- onMousedown: (D) => R(u)
66
+ onMousedown: (b) => R(p)
66
67
  }, {
67
68
  default: s(() => [
68
69
  t(e(c), {
@@ -75,16 +76,16 @@ const X = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
75
76
  ]),
76
77
  _: 2
77
78
  }, 1032, ["onMousedown"]),
78
- y.value ? (p(), x(e(q), {
79
+ g.value ? (m(), w(e(F), {
79
80
  key: 0,
80
81
  class: "z-10",
81
82
  side: "bottom"
82
83
  }, {
83
84
  trigger: s(() => [
84
- t(e(m), {
85
+ t(e(u), {
85
86
  class: "flex gap-2 w-full",
86
87
  disabled: "",
87
- onMousedown: a[0] || (a[0] = k(() => {
88
+ onMousedown: a[0] || (a[0] = x(() => {
88
89
  }, ["prevent"]))
89
90
  }, {
90
91
  default: s(() => [
@@ -103,10 +104,10 @@ const X = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
103
104
  te
104
105
  ]),
105
106
  _: 1
106
- })) : (p(), x(e(m), {
107
+ })) : (m(), w(e(u), {
107
108
  key: 1,
108
109
  class: "flex !gap-2",
109
- onMousedown: k((D) => E(u), ["prevent"])
110
+ onMousedown: x((b) => B(p), ["prevent"])
110
111
  }, {
111
112
  default: s(() => [
112
113
  t(e(c), {
@@ -125,10 +126,10 @@ const X = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
125
126
  ]),
126
127
  _: 2
127
128
  }, 1024))), 128)),
128
- t(e(G)),
129
- t(e(m), {
129
+ t(e(P)),
130
+ t(e(u), {
130
131
  class: "flex items-center gap-1.5",
131
- onClick: B
132
+ onClick: N
132
133
  }, {
133
134
  default: s(() => [
134
135
  n("div", ne, [
@@ -138,20 +139,20 @@ const X = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
138
139
  thickness: "3"
139
140
  })
140
141
  ]),
141
- le
142
+ oe
142
143
  ]),
143
144
  _: 1
144
145
  })
145
146
  ]),
146
147
  default: s(() => [
147
- t(e(_), {
148
- class: "font-normal h-full justify-start py-1.5 px-1.5 text-c-1 hover:bg-b-2 w-fit",
148
+ t(e(Y), {
149
+ class: "font-normal h-full justify-start line-clamp-1 py-1.5 px-1.5 text-c-1 hover:bg-b-2 w-fit",
149
150
  fullWidth: "",
150
151
  variant: "ghost"
151
152
  }, {
152
153
  default: s(() => [
153
- n("h2", Y, [
154
- h(z(e(f).name) + " ", 1),
154
+ n("div", K, [
155
+ n("h2", Q, C(e(f).name), 1),
155
156
  t(e(c), {
156
157
  class: "size-2.5",
157
158
  icon: "ChevronDown",
@@ -165,54 +166,32 @@ const X = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
165
166
  _: 1
166
167
  })
167
168
  ]),
168
- t(e(V), {
169
- size: "sm",
170
- state: e(w),
171
- title: `Delete ${o.value}`
169
+ t(e(S), {
170
+ size: "xxs",
171
+ state: e(v),
172
+ title: "Delete workspace"
172
173
  }, {
173
174
  default: s(() => [
174
- t(I, {
175
- variableName: o.value,
176
- warningMessage: "Warning: Deleting this will delete all items inside of this",
177
- onClose: a[1] || (a[1] = (i) => e(w).hide()),
178
- onDelete: K
175
+ t(T, {
176
+ variableName: l.value,
177
+ warningMessage: "This cannot be undone. You’re about to delete the workspace and everything inside it.",
178
+ onClose: a[1] || (a[1] = (d) => e(v).hide()),
179
+ onDelete: E
179
180
  }, null, 8, ["variableName"])
180
181
  ]),
181
182
  _: 1
182
- }, 8, ["state", "title"]),
183
- t(e(V), {
184
- state: e(v),
183
+ }, 8, ["state"]),
184
+ t(e(S), {
185
+ size: "xxs",
186
+ state: e(h),
185
187
  title: "Rename Workspace"
186
188
  }, {
187
189
  default: s(() => [
188
- t(e(H), {
189
- modelValue: o.value,
190
- "onUpdate:modelValue": a[2] || (a[2] = (i) => o.value = i),
191
- label: "Workspace",
192
- onKeydown: F(k(C, ["prevent"]), ["enter"])
193
- }, null, 8, ["modelValue", "onKeydown"]),
194
- n("div", ae, [
195
- t(e(_), {
196
- class: "flex-1",
197
- variant: "outlined",
198
- onClick: a[3] || (a[3] = (i) => e(v).hide())
199
- }, {
200
- default: s(() => [
201
- h(" Cancel ")
202
- ]),
203
- _: 1
204
- }),
205
- t(e(_), {
206
- class: "flex-1",
207
- type: "submit",
208
- onClick: C
209
- }, {
210
- default: s(() => [
211
- h(" Save ")
212
- ]),
213
- _: 1
214
- })
215
- ])
190
+ t(U, {
191
+ name: l.value,
192
+ onClose: a[2] || (a[2] = (d) => e(h).hide()),
193
+ onRename: j
194
+ }, null, 8, ["name"])
216
195
  ]),
217
196
  _: 1
218
197
  }, 8, ["state"])
@@ -220,5 +199,5 @@ const X = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
220
199
  }
221
200
  });
222
201
  export {
223
- me as default
202
+ ue as default
224
203
  };
@@ -1,3 +1,2 @@
1
- export { default as OAuth2 } from './OAuth2.vue.js';
2
1
  export { default as WorkspaceDropdown } from './WorkspaceDropdown.vue.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA"}
@@ -1,6 +1,4 @@
1
- import { default as a } from "./OAuth2.vue.js";
2
- import { default as t } from "./WorkspaceDropdown.vue.js";
1
+ import { default as a } from "./WorkspaceDropdown.vue.js";
3
2
  export {
4
- a as OAuth2,
5
- t as WorkspaceDropdown
3
+ a as WorkspaceDropdown
6
4
  };
@@ -1,7 +1,8 @@
1
- import type { SecuritySchemePayload } from '@scalar/oas-utils/entities/workspace/security';
1
+ import type { SecuritySchemePayload } from '@scalar/oas-utils/entities/spec';
2
2
  export type SecuritySchemeOption = {
3
3
  id: string;
4
4
  label: string;
5
+ isDeletable?: boolean;
5
6
  payload?: SecuritySchemePayload;
6
7
  };
7
8
  export type SecuritySchemeGroup = {
@@ -19,6 +20,7 @@ export declare const ADD_AUTH_DICT: {
19
20
  readonly payload: {
20
21
  readonly type: "apiKey";
21
22
  readonly in: "cookie";
23
+ readonly nameKey: "apiKeyCookie";
22
24
  };
23
25
  };
24
26
  readonly apiKeyHeader: {
@@ -26,6 +28,7 @@ export declare const ADD_AUTH_DICT: {
26
28
  readonly payload: {
27
29
  readonly type: "apiKey";
28
30
  readonly in: "header";
31
+ readonly nameKey: "apiKeyHeader";
29
32
  };
30
33
  };
31
34
  readonly apiKeyQuery: {
@@ -33,6 +36,7 @@ export declare const ADD_AUTH_DICT: {
33
36
  readonly payload: {
34
37
  readonly type: "apiKey";
35
38
  readonly in: "query";
39
+ readonly nameKey: "apiKeyQuery";
36
40
  };
37
41
  };
38
42
  readonly httpBasic: {
@@ -40,6 +44,7 @@ export declare const ADD_AUTH_DICT: {
40
44
  readonly payload: {
41
45
  readonly type: "http";
42
46
  readonly scheme: "basic";
47
+ readonly nameKey: "httpBasic";
43
48
  };
44
49
  };
45
50
  readonly httpBearer: {
@@ -47,12 +52,14 @@ export declare const ADD_AUTH_DICT: {
47
52
  readonly payload: {
48
53
  readonly type: "http";
49
54
  readonly scheme: "bearer";
55
+ readonly nameKey: "httpBearer";
50
56
  };
51
57
  };
52
58
  readonly oauth2Implicit: {
53
59
  readonly label: "Oauth2 Implicit Flow";
54
60
  readonly payload: {
55
61
  readonly type: "oauth2";
62
+ readonly nameKey: "oauth2Implicit";
56
63
  readonly flow: {
57
64
  readonly type: "implicit";
58
65
  };
@@ -62,6 +69,7 @@ export declare const ADD_AUTH_DICT: {
62
69
  readonly label: "Oauth2 Password Flow";
63
70
  readonly payload: {
64
71
  readonly type: "oauth2";
72
+ readonly nameKey: "oauth2Password";
65
73
  readonly flow: {
66
74
  readonly type: "password";
67
75
  };
@@ -71,6 +79,7 @@ export declare const ADD_AUTH_DICT: {
71
79
  readonly label: "Oauth2 Client Credentials";
72
80
  readonly payload: {
73
81
  readonly type: "oauth2";
82
+ readonly nameKey: "oauth2ClientCredentials";
74
83
  readonly flow: {
75
84
  readonly type: "clientCredentials";
76
85
  };
@@ -80,6 +89,7 @@ export declare const ADD_AUTH_DICT: {
80
89
  readonly label: "Oauth2 Authorization Code";
81
90
  readonly payload: {
82
91
  readonly type: "oauth2";
92
+ readonly nameKey: "oauth2AuthorizationFlow";
83
93
  readonly flow: {
84
94
  readonly type: "authorizationCode";
85
95
  };
@@ -1 +1 @@
1
- {"version":3,"file":"new-auth-options.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/consts/new-auth-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAA;AAG1F,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,qBAAqB,CAAA;CAChC,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,oBAAoB,EAAE,CAAA;CAChC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwEhB,CAAA;AAIV,+CAA+C;AAC/C,eAAO,MAAM,gBAAgB,EAAE,oBAAoB,EAMlD,CAAA"}
1
+ {"version":3,"file":"new-auth-options.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/consts/new-auth-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAA;AAG5E,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,qBAAqB,CAAA;CAChC,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,oBAAoB,EAAE,CAAA;CAChC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFhB,CAAA;AAIV,+CAA+C;AAC/C,eAAO,MAAM,gBAAgB,EAAE,oBAAoB,EAOlD,CAAA"}
@@ -3,41 +3,47 @@ const t = {
3
3
  label: "API Key in Cookies",
4
4
  payload: {
5
5
  type: "apiKey",
6
- in: "cookie"
6
+ in: "cookie",
7
+ nameKey: "apiKeyCookie"
7
8
  }
8
9
  },
9
10
  apiKeyHeader: {
10
11
  label: "API Key in Headers",
11
12
  payload: {
12
13
  type: "apiKey",
13
- in: "header"
14
+ in: "header",
15
+ nameKey: "apiKeyHeader"
14
16
  }
15
17
  },
16
18
  apiKeyQuery: {
17
19
  label: "API Key in Query Params",
18
20
  payload: {
19
21
  type: "apiKey",
20
- in: "query"
22
+ in: "query",
23
+ nameKey: "apiKeyQuery"
21
24
  }
22
25
  },
23
26
  httpBasic: {
24
27
  label: "HTTP Basic",
25
28
  payload: {
26
29
  type: "http",
27
- scheme: "basic"
30
+ scheme: "basic",
31
+ nameKey: "httpBasic"
28
32
  }
29
33
  },
30
34
  httpBearer: {
31
35
  label: "HTTP Bearer",
32
36
  payload: {
33
37
  type: "http",
34
- scheme: "bearer"
38
+ scheme: "bearer",
39
+ nameKey: "httpBearer"
35
40
  }
36
41
  },
37
42
  oauth2Implicit: {
38
43
  label: "Oauth2 Implicit Flow",
39
44
  payload: {
40
45
  type: "oauth2",
46
+ nameKey: "oauth2Implicit",
41
47
  flow: {
42
48
  type: "implicit"
43
49
  }
@@ -47,6 +53,7 @@ const t = {
47
53
  label: "Oauth2 Password Flow",
48
54
  payload: {
49
55
  type: "oauth2",
56
+ nameKey: "oauth2Password",
50
57
  flow: {
51
58
  type: "password"
52
59
  }
@@ -56,6 +63,7 @@ const t = {
56
63
  label: "Oauth2 Client Credentials",
57
64
  payload: {
58
65
  type: "oauth2",
66
+ nameKey: "oauth2ClientCredentials",
59
67
  flow: {
60
68
  type: "clientCredentials"
61
69
  }
@@ -65,18 +73,20 @@ const t = {
65
73
  label: "Oauth2 Authorization Code",
66
74
  payload: {
67
75
  type: "oauth2",
76
+ nameKey: "oauth2AuthorizationFlow",
68
77
  flow: {
69
78
  type: "authorizationCode"
70
79
  }
71
80
  }
72
81
  }
73
- }, o = Object.entries(t), l = o.map(
82
+ }, o = Object.entries(t), i = o.map(
74
83
  ([e, a]) => ({
75
84
  id: e,
85
+ isDeletable: !1,
76
86
  ...a
77
87
  })
78
88
  );
79
89
  export {
80
90
  t as ADD_AUTH_DICT,
81
- l as ADD_AUTH_OPTIONS
91
+ i as ADD_AUTH_OPTIONS
82
92
  };
@@ -0,0 +1,8 @@
1
+ import type { WorkspaceStore } from '../../store/index.js';
2
+ import type { DraggingItem, HoveredItem } from '@scalar/draggable';
3
+ /** Create DnD handlers */
4
+ export declare function dragHandlerFactory({ collections, collectionMutators, tags, tagMutators, requests, requestHistory, workspaceMutators, activeWorkspace, }: WorkspaceStore): {
5
+ handleDragEnd: (draggingItem: DraggingItem, hoveredItem: HoveredItem) => void;
6
+ isDroppable: (draggingItem: DraggingItem, hoveredItem: HoveredItem) => boolean;
7
+ };
8
+ //# sourceMappingURL=handle-drag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handle-drag.d.ts","sourceRoot":"","sources":["../../../src/views/Request/handle-drag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAElE,0BAA0B;AAC1B,wBAAgB,kBAAkB,CAAC,EACjC,WAAW,EACX,kBAAkB,EAClB,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,eAAe,GAChB,EAAE,cAAc;kCAQsB,YAAY,eAAe,WAAW;gCAmE3D,YAAY,eACb,WAAW;EAoB3B"}
@@ -0,0 +1,56 @@
1
+ function q({
2
+ collections: r,
3
+ collectionMutators: p,
4
+ tags: l,
5
+ tagMutators: c,
6
+ requests: y,
7
+ requestHistory: C,
8
+ workspaceMutators: x,
9
+ activeWorkspace: t
10
+ }) {
11
+ function U(n, f) {
12
+ r[n] ? p.edit(n, "children", f) : l[n] && c.edit(n, "children", f);
13
+ }
14
+ function D(n, f) {
15
+ if (!n || !f) return;
16
+ const { id: d, parentId: i } = n, { id: s, parentId: h, offset: a } = f;
17
+ if (i ? r[i] ? p.edit(
18
+ i,
19
+ "children",
20
+ r[i].children.filter(
21
+ (e) => e !== d
22
+ )
23
+ ) : l[i] && c.edit(
24
+ i,
25
+ "children",
26
+ l[i].children.filter((e) => e !== d)
27
+ ) : x.edit(
28
+ t.value.uid,
29
+ "collections",
30
+ t.value.collections.filter((e) => e !== d)
31
+ ), a === 2) {
32
+ const e = r[s] || l[s];
33
+ U(s, [...e.children, d]);
34
+ } else if (h) {
35
+ const u = [...(r[h] || l[h]).children], o = u.findIndex((v) => s === v) ?? 0;
36
+ u.splice(o + a, 0, d), U(h, u);
37
+ } else {
38
+ const e = [...t.value.collections], u = e.findIndex((o) => s === o) ?? 0;
39
+ e.splice(u + a, 0, d), x.edit(
40
+ t.value.uid,
41
+ "collections",
42
+ e
43
+ );
44
+ }
45
+ }
46
+ return {
47
+ handleDragEnd: D,
48
+ isDroppable: (n, f) => {
49
+ var d, i;
50
+ return !(t.value.isReadOnly || !r[n.id] && f.offset !== 2 || r[n.id] && ((i = (d = r[f.id]) == null ? void 0 : d.info) == null ? void 0 : i.title) === "Drafts");
51
+ }
52
+ };
53
+ }
54
+ export {
55
+ q as dragHandlerFactory
56
+ };
@@ -0,0 +1,35 @@
1
+ import { type SecurityScheme } from '@scalar/oas-utils/entities/spec';
2
+ /** Create a new value set for a given scheme type */
3
+ export declare const createSchemeValueSet: (scheme: SecurityScheme) => {
4
+ type: "apiKey";
5
+ value: string;
6
+ name: string;
7
+ } | {
8
+ type: "http";
9
+ username: string;
10
+ password: string;
11
+ token: string;
12
+ } | {
13
+ type: "oauth-implicit";
14
+ token: string;
15
+ } | {
16
+ type: "oauth-password";
17
+ username: string;
18
+ password: string;
19
+ token: string;
20
+ clientSecret: string;
21
+ } | {
22
+ type: "oauth-clientCredentials";
23
+ token: string;
24
+ clientSecret: string;
25
+ } | {
26
+ type: "oauth-authorizationCode";
27
+ token: string;
28
+ clientSecret: string;
29
+ };
30
+ /** Format a scheme object into a display object */
31
+ export declare const displaySchemeFormatter: (s: SecurityScheme) => {
32
+ id: string;
33
+ label: string;
34
+ };
35
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,iCAAiC,CAAA;AAExC,qDAAqD;AACrD,eAAO,MAAM,oBAAoB,WAAY,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ1D,CAAA;AAED,mDAAmD;AACnD,eAAO,MAAM,sBAAsB,MAAO,cAAc;;;CAKvD,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { securitySchemeExampleValueSchema as a } from "@scalar/oas-utils/entities/spec";
2
+ const o = (e) => {
3
+ const t = e.type === "oauth2" ? `oauth-${e.flow.type}` : e.type;
4
+ return a.parse({
5
+ type: t
6
+ });
7
+ }, p = (e) => ({
8
+ id: e.uid,
9
+ label: e.nameKey
10
+ });
11
+ export {
12
+ o as createSchemeValueSet,
13
+ p as displaySchemeFormatter
14
+ };
@@ -1,2 +1,3 @@
1
+ export * from './auth.js';
1
2
  export * from './oauth2.js';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA"}
@@ -1,5 +1,9 @@
1
- import { authorizeOauth2 as o, authorizeServers as t } from "./oauth2.js";
1
+ import { createSchemeValueSet as t, displaySchemeFormatter as a } from "./auth.js";
2
+ import { authorizeOauth2 as h, authorizeServers as m, isOauth2Example as u } from "./oauth2.js";
2
3
  export {
3
- o as authorizeOauth2,
4
- t as authorizeServers
4
+ h as authorizeOauth2,
5
+ m as authorizeServers,
6
+ t as createSchemeValueSet,
7
+ a as displaySchemeFormatter,
8
+ u as isOauth2Example
5
9
  };
@@ -1,13 +1,22 @@
1
- import type { SecuritySchemeOauth2 } from '@scalar/oas-utils/entities/workspace/security';
1
+ import type { SecuritySchemeExampleValue, SecuritySchemeOauth2, SecuritySchemeOauth2ExampleValue } from '@scalar/oas-utils/entities/spec';
2
+ /** Oauth2 security schemes which are not implicit */
3
+ type SecuritySchemeOauth2NonImplicit = Omit<SecuritySchemeOauth2, 'flow'> & {
4
+ flow: Exclude<SecuritySchemeOauth2['flow'], {
5
+ type: 'implicit';
6
+ }>;
7
+ };
8
+ /** Type guard to check for oauth2 example */
9
+ export declare const isOauth2Example: (example: SecuritySchemeExampleValue) => example is SecuritySchemeOauth2ExampleValue;
2
10
  /**
3
11
  * Authorize oauth2 flow
4
12
  *
5
13
  * @returns the accessToken
6
14
  */
7
- export declare const authorizeOauth2: (scheme: SecuritySchemeOauth2) => Promise<string>;
15
+ export declare const authorizeOauth2: (scheme: SecuritySchemeOauth2, example: SecuritySchemeOauth2ExampleValue) => Promise<string>;
8
16
  /**
9
17
  * Makes the BE authorization call to grab the token server to server
10
18
  * Used for clientCredentials and authorizationCode
11
19
  */
12
- export declare const authorizeServers: (scheme: SecuritySchemeOauth2, code?: string) => Promise<string>;
20
+ export declare const authorizeServers: (scheme: SecuritySchemeOauth2NonImplicit, example: SecuritySchemeOauth2ExampleValue, scopes: string, code?: string) => Promise<string>;
21
+ export {};
13
22
  //# sourceMappingURL=oauth2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/oauth2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAA;AAEzF;;;;GAIG;AACH,eAAO,MAAM,eAAe,WAAY,oBAAoB,oBA2ExD,CAAA;AAEJ;;;GAGG;AACH,eAAO,MAAM,gBAAgB,WACnB,oBAAoB,SACrB,MAAM,KACZ,OAAO,CAAC,MAAM,CAwDhB,CAAA"}
1
+ {"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/oauth2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAC1B,oBAAoB,EACpB,gCAAgC,EACjC,MAAM,iCAAiC,CAAA;AAExC,qDAAqD;AACrD,KAAK,+BAA+B,GAAG,IAAI,CAAC,oBAAoB,EAAE,MAAM,CAAC,GAAG;IAC1E,IAAI,EAAE,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,CAAC,CAAA;CAClE,CAAA;AAED,6CAA6C;AAC7C,eAAO,MAAM,eAAe,YACjB,0BAA0B,KAClC,OAAO,IAAI,gCACoB,CAAA;AAElC;;;;GAIG;AACH,eAAO,MAAM,eAAe,WAClB,oBAAoB,WACnB,gCAAgC,oBAiGvC,CAAA;AAEJ;;;GAGG;AACH,eAAO,MAAM,gBAAgB,WACnB,+BAA+B,WAC9B,gCAAgC,UACjC,MAAM,SACP,MAAM,KACZ,OAAO,CAAC,MAAM,CAqDhB,CAAA"}