@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
@@ -0,0 +1,616 @@
1
+ import type { StoreContext } from '../store/store-context';
2
+ import { type SecurityScheme, type SecuritySchemePayload } from '@scalar/oas-utils/entities/spec';
3
+ /** Create storage entities for security schemes */
4
+ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
5
+ securitySchemes: Record<string, {
6
+ type: "apiKey";
7
+ uid: string;
8
+ name: string;
9
+ in: "query" | "header" | "cookie";
10
+ nameKey: string;
11
+ description?: string | undefined;
12
+ } | {
13
+ type: "http";
14
+ uid: string;
15
+ nameKey: string;
16
+ scheme: "basic" | "bearer";
17
+ bearerFormat: string;
18
+ description?: string | undefined;
19
+ } | {
20
+ type: "openIdConnect";
21
+ uid: string;
22
+ nameKey: string;
23
+ openIdConnectUrl: string;
24
+ description?: string | undefined;
25
+ } | {
26
+ type: "oauth2";
27
+ uid: string;
28
+ nameKey: string;
29
+ flow: {
30
+ type: "implicit";
31
+ refreshUrl: string;
32
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
33
+ selectedScopes: string[];
34
+ authorizationUrl: string;
35
+ "x-scalar-redirect-uri": string;
36
+ } | {
37
+ type: "password";
38
+ refreshUrl: string;
39
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
40
+ selectedScopes: string[];
41
+ tokenUrl: string;
42
+ } | {
43
+ type: "clientCredentials";
44
+ refreshUrl: string;
45
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
46
+ selectedScopes: string[];
47
+ tokenUrl: string;
48
+ } | {
49
+ type: "authorizationCode";
50
+ refreshUrl: string;
51
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
52
+ selectedScopes: string[];
53
+ authorizationUrl: string;
54
+ "x-scalar-redirect-uri": string;
55
+ tokenUrl: string;
56
+ };
57
+ 'x-scalar-client-id': string;
58
+ description?: string | undefined;
59
+ }>;
60
+ securitySchemeMutators: {
61
+ add: (item: {
62
+ type: "apiKey";
63
+ uid: string;
64
+ name: string;
65
+ in: "query" | "header" | "cookie";
66
+ nameKey: string;
67
+ description?: string | undefined;
68
+ } | {
69
+ type: "http";
70
+ uid: string;
71
+ nameKey: string;
72
+ scheme: "basic" | "bearer";
73
+ bearerFormat: string;
74
+ description?: string | undefined;
75
+ } | {
76
+ type: "openIdConnect";
77
+ uid: string;
78
+ nameKey: string;
79
+ openIdConnectUrl: string;
80
+ description?: string | undefined;
81
+ } | {
82
+ type: "oauth2";
83
+ uid: string;
84
+ nameKey: string;
85
+ flow: {
86
+ type: "implicit";
87
+ refreshUrl: string;
88
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
89
+ selectedScopes: string[];
90
+ authorizationUrl: string;
91
+ "x-scalar-redirect-uri": string;
92
+ } | {
93
+ type: "password";
94
+ refreshUrl: string;
95
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
96
+ selectedScopes: string[];
97
+ tokenUrl: string;
98
+ } | {
99
+ type: "clientCredentials";
100
+ refreshUrl: string;
101
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
102
+ selectedScopes: string[];
103
+ tokenUrl: string;
104
+ } | {
105
+ type: "authorizationCode";
106
+ refreshUrl: string;
107
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
108
+ selectedScopes: string[];
109
+ authorizationUrl: string;
110
+ "x-scalar-redirect-uri": string;
111
+ tokenUrl: string;
112
+ };
113
+ 'x-scalar-client-id': string;
114
+ description?: string | undefined;
115
+ }) => void;
116
+ delete: (uid: string) => void;
117
+ set: (item: {
118
+ type: "apiKey";
119
+ uid: string;
120
+ name: string;
121
+ in: "query" | "header" | "cookie";
122
+ nameKey: string;
123
+ description?: string | undefined;
124
+ } | {
125
+ type: "http";
126
+ uid: string;
127
+ nameKey: string;
128
+ scheme: "basic" | "bearer";
129
+ bearerFormat: string;
130
+ description?: string | undefined;
131
+ } | {
132
+ type: "openIdConnect";
133
+ uid: string;
134
+ nameKey: string;
135
+ openIdConnectUrl: string;
136
+ description?: string | undefined;
137
+ } | {
138
+ type: "oauth2";
139
+ uid: string;
140
+ nameKey: string;
141
+ flow: {
142
+ type: "implicit";
143
+ refreshUrl: string;
144
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
145
+ selectedScopes: string[];
146
+ authorizationUrl: string;
147
+ "x-scalar-redirect-uri": string;
148
+ } | {
149
+ type: "password";
150
+ refreshUrl: string;
151
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
152
+ selectedScopes: string[];
153
+ tokenUrl: string;
154
+ } | {
155
+ type: "clientCredentials";
156
+ refreshUrl: string;
157
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
158
+ selectedScopes: string[];
159
+ tokenUrl: string;
160
+ } | {
161
+ type: "authorizationCode";
162
+ refreshUrl: string;
163
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
164
+ selectedScopes: string[];
165
+ authorizationUrl: string;
166
+ "x-scalar-redirect-uri": string;
167
+ tokenUrl: string;
168
+ };
169
+ 'x-scalar-client-id': string;
170
+ description?: string | undefined;
171
+ }) => void;
172
+ edit: <P extends "type" | "description" | "name" | "in" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "flow" | "x-scalar-client-id" | "uid" | "nameKey" | "flow.selectedScopes" | "flow.type" | "flow.x-scalar-redirect-uri" | "flow.refreshUrl" | "flow.scopes" | "flow.authorizationUrl" | `flow.scopes.${string}` | `flow.selectedScopes.${number}` | "flow.tokenUrl">(uid: string, path: P, value: (P extends "type" | "description" | "name" | "in" | "uid" | "nameKey" ? {
173
+ type: "apiKey";
174
+ uid: string;
175
+ name: string;
176
+ in: "query" | "header" | "cookie";
177
+ nameKey: string;
178
+ description?: string | undefined;
179
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "description" | "name" | "in" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
180
+ type: "apiKey";
181
+ uid: string;
182
+ name: string;
183
+ in: "query" | "header" | "cookie";
184
+ nameKey: string;
185
+ description?: string | undefined;
186
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
187
+ type: "apiKey";
188
+ uid: string;
189
+ name: string;
190
+ in: "query" | "header" | "cookie";
191
+ nameKey: string;
192
+ description?: string | undefined;
193
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "description" | "scheme" | "bearerFormat" | "uid" | "nameKey" ? {
194
+ type: "http";
195
+ uid: string;
196
+ nameKey: string;
197
+ scheme: "basic" | "bearer";
198
+ bearerFormat: string;
199
+ description?: string | undefined;
200
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "description" | "scheme" | "bearerFormat" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
201
+ type: "http";
202
+ uid: string;
203
+ nameKey: string;
204
+ scheme: "basic" | "bearer";
205
+ bearerFormat: string;
206
+ description?: string | undefined;
207
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
208
+ type: "http";
209
+ uid: string;
210
+ nameKey: string;
211
+ scheme: "basic" | "bearer";
212
+ bearerFormat: string;
213
+ description?: string | undefined;
214
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "description" | "openIdConnectUrl" | "uid" | "nameKey" ? {
215
+ type: "openIdConnect";
216
+ uid: string;
217
+ nameKey: string;
218
+ openIdConnectUrl: string;
219
+ description?: string | undefined;
220
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "description" | "openIdConnectUrl" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
221
+ type: "openIdConnect";
222
+ uid: string;
223
+ nameKey: string;
224
+ openIdConnectUrl: string;
225
+ description?: string | undefined;
226
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
227
+ type: "openIdConnect";
228
+ uid: string;
229
+ nameKey: string;
230
+ openIdConnectUrl: string;
231
+ description?: string | undefined;
232
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "description" | "flow" | "x-scalar-client-id" | "uid" | "nameKey" ? {
233
+ type: "oauth2";
234
+ uid: string;
235
+ nameKey: string;
236
+ flow: {
237
+ type: "implicit";
238
+ refreshUrl: string;
239
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
240
+ selectedScopes: string[];
241
+ authorizationUrl: string;
242
+ "x-scalar-redirect-uri": string;
243
+ } | {
244
+ type: "password";
245
+ refreshUrl: string;
246
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
247
+ selectedScopes: string[];
248
+ tokenUrl: string;
249
+ } | {
250
+ type: "clientCredentials";
251
+ refreshUrl: string;
252
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
253
+ selectedScopes: string[];
254
+ tokenUrl: string;
255
+ } | {
256
+ type: "authorizationCode";
257
+ refreshUrl: string;
258
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
259
+ selectedScopes: string[];
260
+ authorizationUrl: string;
261
+ "x-scalar-redirect-uri": string;
262
+ tokenUrl: string;
263
+ };
264
+ 'x-scalar-client-id': string;
265
+ description?: string | undefined;
266
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "description" | "flow" | "x-scalar-client-id" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
267
+ type: "oauth2";
268
+ uid: string;
269
+ nameKey: string;
270
+ flow: {
271
+ type: "implicit";
272
+ refreshUrl: string;
273
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
274
+ selectedScopes: string[];
275
+ authorizationUrl: string;
276
+ "x-scalar-redirect-uri": string;
277
+ } | {
278
+ type: "password";
279
+ refreshUrl: string;
280
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
281
+ selectedScopes: string[];
282
+ tokenUrl: string;
283
+ } | {
284
+ type: "clientCredentials";
285
+ refreshUrl: string;
286
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
287
+ selectedScopes: string[];
288
+ tokenUrl: string;
289
+ } | {
290
+ type: "authorizationCode";
291
+ refreshUrl: string;
292
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
293
+ selectedScopes: string[];
294
+ authorizationUrl: string;
295
+ "x-scalar-redirect-uri": string;
296
+ tokenUrl: string;
297
+ };
298
+ 'x-scalar-client-id': string;
299
+ description?: string | undefined;
300
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
301
+ type: "oauth2";
302
+ uid: string;
303
+ nameKey: string;
304
+ flow: {
305
+ type: "implicit";
306
+ refreshUrl: string;
307
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
308
+ selectedScopes: string[];
309
+ authorizationUrl: string;
310
+ "x-scalar-redirect-uri": string;
311
+ } | {
312
+ type: "password";
313
+ refreshUrl: string;
314
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
315
+ selectedScopes: string[];
316
+ tokenUrl: string;
317
+ } | {
318
+ type: "clientCredentials";
319
+ refreshUrl: string;
320
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
321
+ selectedScopes: string[];
322
+ tokenUrl: string;
323
+ } | {
324
+ type: "authorizationCode";
325
+ refreshUrl: string;
326
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
327
+ selectedScopes: string[];
328
+ authorizationUrl: string;
329
+ "x-scalar-redirect-uri": string;
330
+ tokenUrl: string;
331
+ };
332
+ 'x-scalar-client-id': string;
333
+ description?: string | undefined;
334
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
335
+ untrackedEdit: <P extends "type" | "description" | "name" | "in" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "flow" | "x-scalar-client-id" | "uid" | "nameKey" | "flow.selectedScopes" | "flow.type" | "flow.x-scalar-redirect-uri" | "flow.refreshUrl" | "flow.scopes" | "flow.authorizationUrl" | `flow.scopes.${string}` | `flow.selectedScopes.${number}` | "flow.tokenUrl">(uid: string, path: P, value: (P extends "type" | "description" | "name" | "in" | "uid" | "nameKey" ? {
336
+ type: "apiKey";
337
+ uid: string;
338
+ name: string;
339
+ in: "query" | "header" | "cookie";
340
+ nameKey: string;
341
+ description?: string | undefined;
342
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "description" | "name" | "in" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
343
+ type: "apiKey";
344
+ uid: string;
345
+ name: string;
346
+ in: "query" | "header" | "cookie";
347
+ nameKey: string;
348
+ description?: string | undefined;
349
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
350
+ type: "apiKey";
351
+ uid: string;
352
+ name: string;
353
+ in: "query" | "header" | "cookie";
354
+ nameKey: string;
355
+ description?: string | undefined;
356
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "description" | "scheme" | "bearerFormat" | "uid" | "nameKey" ? {
357
+ type: "http";
358
+ uid: string;
359
+ nameKey: string;
360
+ scheme: "basic" | "bearer";
361
+ bearerFormat: string;
362
+ description?: string | undefined;
363
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "description" | "scheme" | "bearerFormat" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
364
+ type: "http";
365
+ uid: string;
366
+ nameKey: string;
367
+ scheme: "basic" | "bearer";
368
+ bearerFormat: string;
369
+ description?: string | undefined;
370
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
371
+ type: "http";
372
+ uid: string;
373
+ nameKey: string;
374
+ scheme: "basic" | "bearer";
375
+ bearerFormat: string;
376
+ description?: string | undefined;
377
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "description" | "openIdConnectUrl" | "uid" | "nameKey" ? {
378
+ type: "openIdConnect";
379
+ uid: string;
380
+ nameKey: string;
381
+ openIdConnectUrl: string;
382
+ description?: string | undefined;
383
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "description" | "openIdConnectUrl" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
384
+ type: "openIdConnect";
385
+ uid: string;
386
+ nameKey: string;
387
+ openIdConnectUrl: string;
388
+ description?: string | undefined;
389
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
390
+ type: "openIdConnect";
391
+ uid: string;
392
+ nameKey: string;
393
+ openIdConnectUrl: string;
394
+ description?: string | undefined;
395
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "description" | "flow" | "x-scalar-client-id" | "uid" | "nameKey" ? {
396
+ type: "oauth2";
397
+ uid: string;
398
+ nameKey: string;
399
+ flow: {
400
+ type: "implicit";
401
+ refreshUrl: string;
402
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
403
+ selectedScopes: string[];
404
+ authorizationUrl: string;
405
+ "x-scalar-redirect-uri": string;
406
+ } | {
407
+ type: "password";
408
+ refreshUrl: string;
409
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
410
+ selectedScopes: string[];
411
+ tokenUrl: string;
412
+ } | {
413
+ type: "clientCredentials";
414
+ refreshUrl: string;
415
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
416
+ selectedScopes: string[];
417
+ tokenUrl: string;
418
+ } | {
419
+ type: "authorizationCode";
420
+ refreshUrl: string;
421
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
422
+ selectedScopes: string[];
423
+ authorizationUrl: string;
424
+ "x-scalar-redirect-uri": string;
425
+ tokenUrl: string;
426
+ };
427
+ 'x-scalar-client-id': string;
428
+ description?: string | undefined;
429
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "description" | "flow" | "x-scalar-client-id" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
430
+ type: "oauth2";
431
+ uid: string;
432
+ nameKey: string;
433
+ flow: {
434
+ type: "implicit";
435
+ refreshUrl: string;
436
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
437
+ selectedScopes: string[];
438
+ authorizationUrl: string;
439
+ "x-scalar-redirect-uri": string;
440
+ } | {
441
+ type: "password";
442
+ refreshUrl: string;
443
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
444
+ selectedScopes: string[];
445
+ tokenUrl: string;
446
+ } | {
447
+ type: "clientCredentials";
448
+ refreshUrl: string;
449
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
450
+ selectedScopes: string[];
451
+ tokenUrl: string;
452
+ } | {
453
+ type: "authorizationCode";
454
+ refreshUrl: string;
455
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
456
+ selectedScopes: string[];
457
+ authorizationUrl: string;
458
+ "x-scalar-redirect-uri": string;
459
+ tokenUrl: string;
460
+ };
461
+ 'x-scalar-client-id': string;
462
+ description?: string | undefined;
463
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
464
+ type: "oauth2";
465
+ uid: string;
466
+ nameKey: string;
467
+ flow: {
468
+ type: "implicit";
469
+ refreshUrl: string;
470
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
471
+ selectedScopes: string[];
472
+ authorizationUrl: string;
473
+ "x-scalar-redirect-uri": string;
474
+ } | {
475
+ type: "password";
476
+ refreshUrl: string;
477
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
478
+ selectedScopes: string[];
479
+ tokenUrl: string;
480
+ } | {
481
+ type: "clientCredentials";
482
+ refreshUrl: string;
483
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
484
+ selectedScopes: string[];
485
+ tokenUrl: string;
486
+ } | {
487
+ type: "authorizationCode";
488
+ refreshUrl: string;
489
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
490
+ selectedScopes: string[];
491
+ authorizationUrl: string;
492
+ "x-scalar-redirect-uri": string;
493
+ tokenUrl: string;
494
+ };
495
+ 'x-scalar-client-id': string;
496
+ description?: string | undefined;
497
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
498
+ undo: (uid: string) => void;
499
+ redo: (uid: string) => void;
500
+ loadLocalStorage: (instances: ({
501
+ type: "apiKey";
502
+ uid: string;
503
+ name: string;
504
+ in: "query" | "header" | "cookie";
505
+ nameKey: string;
506
+ description?: string | undefined;
507
+ } | {
508
+ type: "http";
509
+ uid: string;
510
+ nameKey: string;
511
+ scheme: "basic" | "bearer";
512
+ bearerFormat: string;
513
+ description?: string | undefined;
514
+ } | {
515
+ type: "openIdConnect";
516
+ uid: string;
517
+ nameKey: string;
518
+ openIdConnectUrl: string;
519
+ description?: string | undefined;
520
+ } | {
521
+ type: "oauth2";
522
+ uid: string;
523
+ nameKey: string;
524
+ flow: {
525
+ type: "implicit";
526
+ refreshUrl: string;
527
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
528
+ selectedScopes: string[];
529
+ authorizationUrl: string;
530
+ "x-scalar-redirect-uri": string;
531
+ } | {
532
+ type: "password";
533
+ refreshUrl: string;
534
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
535
+ selectedScopes: string[];
536
+ tokenUrl: string;
537
+ } | {
538
+ type: "clientCredentials";
539
+ refreshUrl: string;
540
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
541
+ selectedScopes: string[];
542
+ tokenUrl: string;
543
+ } | {
544
+ type: "authorizationCode";
545
+ refreshUrl: string;
546
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
547
+ selectedScopes: string[];
548
+ authorizationUrl: string;
549
+ "x-scalar-redirect-uri": string;
550
+ tokenUrl: string;
551
+ };
552
+ 'x-scalar-client-id': string;
553
+ description?: string | undefined;
554
+ })[]) => void;
555
+ };
556
+ };
557
+ /** Extended mutators and data for security schemas */
558
+ export declare function extendedSecurityDataFactory({ securitySchemeMutators, collectionMutators, collections, requests, requestMutators, }: StoreContext): {
559
+ addSecurityScheme: (payload: SecuritySchemePayload, collectionUid: string) => {
560
+ type: "apiKey";
561
+ uid: string;
562
+ name: string;
563
+ in: "query" | "header" | "cookie";
564
+ nameKey: string;
565
+ description?: string | undefined;
566
+ } | {
567
+ type: "http";
568
+ uid: string;
569
+ nameKey: string;
570
+ scheme: "basic" | "bearer";
571
+ bearerFormat: string;
572
+ description?: string | undefined;
573
+ } | {
574
+ type: "openIdConnect";
575
+ uid: string;
576
+ nameKey: string;
577
+ openIdConnectUrl: string;
578
+ description?: string | undefined;
579
+ } | {
580
+ type: "oauth2";
581
+ uid: string;
582
+ nameKey: string;
583
+ flow: {
584
+ type: "implicit";
585
+ refreshUrl: string;
586
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
587
+ selectedScopes: string[];
588
+ authorizationUrl: string;
589
+ "x-scalar-redirect-uri": string;
590
+ } | {
591
+ type: "password";
592
+ refreshUrl: string;
593
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
594
+ selectedScopes: string[];
595
+ tokenUrl: string;
596
+ } | {
597
+ type: "clientCredentials";
598
+ refreshUrl: string;
599
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
600
+ selectedScopes: string[];
601
+ tokenUrl: string;
602
+ } | {
603
+ type: "authorizationCode";
604
+ refreshUrl: string;
605
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
606
+ selectedScopes: string[];
607
+ authorizationUrl: string;
608
+ "x-scalar-redirect-uri": string;
609
+ tokenUrl: string;
610
+ };
611
+ 'x-scalar-client-id': string;
612
+ description?: string | undefined;
613
+ };
614
+ deleteSecurityScheme: (scheme: SecurityScheme) => void;
615
+ };
616
+ //# sourceMappingURL=security-schemes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security-schemes.d.ts","sourceRoot":"","sources":["../../src/store/security-schemes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAG3B,MAAM,iCAAiC,CAAA;AAKxC,mDAAmD;AACnD,wBAAgB,0BAA0B,CAAC,eAAe,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYlE;AAED,sDAAsD;AACtD,wBAAgB,2BAA2B,CAAC,EAC1C,sBAAsB,EACtB,kBAAkB,EAClB,WAAW,EACX,QAAQ,EACR,eAAe,GAChB,EAAE,YAAY;iCAGF,qBAAqB,iBAEf,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCA0Be,cAAc;EA+CrD"}
@@ -0,0 +1,68 @@
1
+ import { securitySchemeSchema as h, authExampleFromSchema as f } from "@scalar/oas-utils/entities/spec";
2
+ import { LS_KEYS as n } from "@scalar/oas-utils/helpers";
3
+ import { mutationFactory as E } from "@scalar/object-utils/mutator-record";
4
+ import { reactive as m } from "vue";
5
+ function x(S) {
6
+ const u = m({}), d = E(
7
+ u,
8
+ m({}),
9
+ S && n.SECURITY_SCHEME
10
+ );
11
+ return {
12
+ securitySchemes: u,
13
+ securitySchemeMutators: d
14
+ };
15
+ }
16
+ function F({
17
+ securitySchemeMutators: S,
18
+ collectionMutators: u,
19
+ collections: d,
20
+ requests: s,
21
+ requestMutators: a
22
+ }) {
23
+ return {
24
+ addSecurityScheme: (t, e) => {
25
+ const i = h.parse(t);
26
+ S.add(i), e && u.edit(e, "securitySchemes", [
27
+ ...d[e].securitySchemes,
28
+ i.uid
29
+ ]);
30
+ const r = f(i);
31
+ return u.edit(e, "auth", {
32
+ ...d[e].auth,
33
+ [i.uid]: r
34
+ }), i;
35
+ },
36
+ deleteSecurityScheme: (t) => {
37
+ Object.values(d).forEach((e) => {
38
+ e.securitySchemes.includes(t.uid) && u.edit(
39
+ e.uid,
40
+ "securitySchemes",
41
+ e.securitySchemes.filter((i) => i !== t.uid)
42
+ );
43
+ }), Object.values(d).forEach((e) => {
44
+ if (t.uid in e.auth) {
45
+ const { [t.uid]: i, ...r } = e.auth;
46
+ u.edit(e.uid, "auth", r);
47
+ }
48
+ }), Object.values(s).forEach((e) => {
49
+ var i, r, y;
50
+ (i = e.security) != null && i.some((c) => Object.keys(c).includes(t.uid)) && a.edit(
51
+ e.uid,
52
+ "security",
53
+ (r = s[e.uid].security) == null ? void 0 : r.filter(
54
+ (c) => !Object.keys(c).includes(t.uid)
55
+ )
56
+ ), e.selectedSecuritySchemeUids.includes(t.uid) && a.edit(
57
+ e.uid,
58
+ "selectedSecuritySchemeUids",
59
+ (y = e.selectedSecuritySchemeUids) == null ? void 0 : y.filter((c) => c !== t.uid)
60
+ );
61
+ }), S.delete(t.uid);
62
+ }
63
+ };
64
+ }
65
+ export {
66
+ x as createStoreSecuritySchemes,
67
+ F as extendedSecurityDataFactory
68
+ };