@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,216 @@
1
+ import { defineComponent as C, openBlock as s, createElementBlock as V, Fragment as w, createVNode as t, unref as d, withCtx as a, createTextVNode as u, createElementVNode as y, createBlock as c, createCommentVNode as n } from "vue";
2
+ import i from "../RequestAuthDataTableInput.vue.js";
3
+ import { useLoadingState as T, ScalarButton as U } from "@scalar/components";
4
+ import x from "./OAuthScopesInput.vue.js";
5
+ import r from "../../../../components/DataTable/DataTableRow.vue.js";
6
+ import { authorizeOauth2 as F } from "../../libs/oauth2.js";
7
+ import { useWorkspace as A } from "../../../../store/store.js";
8
+ const B = { class: "h-8 flex items-center justify-self-end" }, I = { class: "h-8 flex items-center justify-self-end" }, O = /* @__PURE__ */ C({
9
+ __name: "OAuth2",
10
+ props: {
11
+ example: {},
12
+ scheme: {}
13
+ },
14
+ setup($) {
15
+ const m = $, f = T(), {
16
+ activeCollection: k,
17
+ collectionMutators: g,
18
+ isReadOnly: v,
19
+ securitySchemeMutators: z
20
+ } = A(), p = (e, l) => k.value && g.edit(k.value.uid, e, l), h = (e, l) => z.edit(m.scheme.uid, e, l), S = async () => {
21
+ var l;
22
+ if (f.isLoading || !((l = k.value) != null && l.uid)) return;
23
+ f.startLoading();
24
+ const e = await F(
25
+ m.scheme,
26
+ m.example
27
+ ).finally(() => f.stopLoading());
28
+ e && p(`auth.${m.scheme.uid}.token`, e);
29
+ };
30
+ return (e, l) => e.example.token ? (s(), V(w, { key: 0 }, [
31
+ t(d(r), null, {
32
+ default: a(() => [
33
+ t(i, {
34
+ id: "oauth2-access-token",
35
+ class: "border-r-transparent",
36
+ modelValue: e.example.token,
37
+ placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
38
+ type: "password",
39
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => p(`auth.${m.scheme.uid}.token`, o))
40
+ }, {
41
+ default: a(() => [
42
+ u(" Access Token ")
43
+ ]),
44
+ _: 1
45
+ }, 8, ["modelValue"])
46
+ ]),
47
+ _: 1
48
+ }),
49
+ t(d(r), { class: "min-w-full" }, {
50
+ default: a(() => [
51
+ y("div", B, [
52
+ t(d(U), {
53
+ class: "p-0 py-0.5 px-2 mr-1",
54
+ loading: d(f),
55
+ size: "sm",
56
+ variant: "outlined",
57
+ onClick: l[1] || (l[1] = (o) => p(`auth.${m.scheme.uid}.token`, ""))
58
+ }, {
59
+ default: a(() => [
60
+ u(" Clear ")
61
+ ]),
62
+ _: 1
63
+ }, 8, ["loading"])
64
+ ])
65
+ ]),
66
+ _: 1
67
+ })
68
+ ], 64)) : (s(), V(w, { key: 1 }, [
69
+ d(v) ? n("", !0) : (s(), c(d(r), { key: 0 }, {
70
+ default: a(() => [
71
+ "authorizationUrl" in e.scheme.flow ? (s(), c(i, {
72
+ key: 0,
73
+ id: `oauth2-authorization-url-${e.scheme.uid}`,
74
+ modelValue: e.scheme.flow.authorizationUrl,
75
+ placeholder: "https://galaxy.scalar.com/authorize",
76
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => h("flow.authorizationUrl", o))
77
+ }, {
78
+ default: a(() => [
79
+ u(" Authorization Url ")
80
+ ]),
81
+ _: 1
82
+ }, 8, ["id", "modelValue"])) : n("", !0),
83
+ "tokenUrl" in e.scheme.flow ? (s(), c(i, {
84
+ key: 1,
85
+ id: `oauth2-token-url-${e.scheme.uid}`,
86
+ modelValue: e.scheme.flow.tokenUrl,
87
+ placeholder: "https://galaxy.scalar.com/token",
88
+ "onUpdate:modelValue": l[3] || (l[3] = (o) => h("flow.tokenUrl", o))
89
+ }, {
90
+ default: a(() => [
91
+ u(" Token Url ")
92
+ ]),
93
+ _: 1
94
+ }, 8, ["id", "modelValue"])) : n("", !0)
95
+ ]),
96
+ _: 1
97
+ })),
98
+ "x-scalar-redirect-uri" in e.scheme.flow ? (s(), c(d(r), { key: 1 }, {
99
+ default: a(() => [
100
+ t(i, {
101
+ id: `oauth2-redirect-uri-${e.scheme.uid}`,
102
+ modelValue: e.scheme.flow["x-scalar-redirect-uri"],
103
+ placeholder: "https://galaxy.scalar.com/callback",
104
+ "onUpdate:modelValue": l[4] || (l[4] = (o) => h("flow.x-scalar-redirect-uri", o))
105
+ }, {
106
+ default: a(() => [
107
+ u(" Redirect Url ")
108
+ ]),
109
+ _: 1
110
+ }, 8, ["id", "modelValue"])
111
+ ]),
112
+ _: 1
113
+ })) : n("", !0),
114
+ e.example.type === "oauth-password" ? (s(), V(w, { key: 2 }, [
115
+ t(d(r), null, {
116
+ default: a(() => [
117
+ t(i, {
118
+ id: `oauth2-password-username-${e.scheme.uid}`,
119
+ class: "text-c-2",
120
+ modelValue: e.example.username,
121
+ placeholder: "ScalarEnjoyer01",
122
+ "onUpdate:modelValue": l[5] || (l[5] = (o) => p(`auth.${e.scheme.uid}.username`, o))
123
+ }, {
124
+ default: a(() => [
125
+ u(" Username ")
126
+ ]),
127
+ _: 1
128
+ }, 8, ["id", "modelValue"])
129
+ ]),
130
+ _: 1
131
+ }),
132
+ t(d(r), null, {
133
+ default: a(() => [
134
+ t(i, {
135
+ id: `oauth2-password-password-${e.scheme.uid}`,
136
+ modelValue: e.example.password,
137
+ placeholder: "xxxxxx",
138
+ type: "password",
139
+ "onUpdate:modelValue": l[6] || (l[6] = (o) => p(`auth.${e.scheme.uid}.password`, o))
140
+ }, {
141
+ default: a(() => [
142
+ u(" Password ")
143
+ ]),
144
+ _: 1
145
+ }, 8, ["id", "modelValue"])
146
+ ]),
147
+ _: 1
148
+ })
149
+ ], 64)) : n("", !0),
150
+ t(d(r), null, {
151
+ default: a(() => [
152
+ t(i, {
153
+ id: `oauth2-client-id-${e.scheme.uid}`,
154
+ modelValue: e.scheme["x-scalar-client-id"],
155
+ placeholder: "12345",
156
+ "onUpdate:modelValue": l[7] || (l[7] = (o) => h("x-scalar-client-id", o))
157
+ }, {
158
+ default: a(() => [
159
+ u(" Client ID ")
160
+ ]),
161
+ _: 1
162
+ }, 8, ["id", "modelValue"])
163
+ ]),
164
+ _: 1
165
+ }),
166
+ "clientSecret" in e.example ? (s(), c(d(r), { key: 3 }, {
167
+ default: a(() => [
168
+ t(i, {
169
+ id: `oauth2-client-secret-${e.scheme.uid}`,
170
+ modelValue: e.example.clientSecret,
171
+ placeholder: "XYZ123",
172
+ type: "password",
173
+ "onUpdate:modelValue": l[8] || (l[8] = (o) => p(`auth.${e.scheme.uid}.clientSecret`, o))
174
+ }, {
175
+ default: a(() => [
176
+ u(" Client Secret ")
177
+ ]),
178
+ _: 1
179
+ }, 8, ["id", "modelValue"])
180
+ ]),
181
+ _: 1
182
+ })) : n("", !0),
183
+ e.scheme.flow.scopes ? (s(), c(d(r), { key: 4 }, {
184
+ default: a(() => [
185
+ t(x, {
186
+ activeFlow: e.scheme.flow,
187
+ updateScheme: h
188
+ }, null, 8, ["activeFlow"])
189
+ ]),
190
+ _: 1
191
+ })) : n("", !0),
192
+ t(d(r), { class: "min-w-full" }, {
193
+ default: a(() => [
194
+ y("div", I, [
195
+ t(d(U), {
196
+ class: "p-0 py-0.5 px-2 mr-1",
197
+ loading: d(f),
198
+ size: "sm",
199
+ variant: "outlined",
200
+ onClick: S
201
+ }, {
202
+ default: a(() => [
203
+ u(" Authorize ")
204
+ ]),
205
+ _: 1
206
+ }, 8, ["loading"])
207
+ ])
208
+ ]),
209
+ _: 1
210
+ })
211
+ ], 64));
212
+ }
213
+ });
214
+ export {
215
+ O as default
216
+ };
@@ -1,5 +1,5 @@
1
- import type { UpdateScheme } from '../../../store/workspace.js';
2
- import type { SecuritySchemeOauth2 } from '@scalar/oas-utils/entities/workspace/security';
1
+ import type { UpdateScheme } from '../../../../store/index.js';
2
+ import type { SecuritySchemeOauth2 } from '@scalar/oas-utils/entities/spec';
3
3
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
4
4
  activeFlow: SecuritySchemeOauth2["flow"];
5
5
  updateScheme: UpdateScheme;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OAuthScopesInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue"],"names":[],"mappings":"AAgGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;;gBAM7D,oBAAoB,CAAC,MAAM,CAAC;kBAC1B,YAAY;;gBADd,oBAAoB,CAAC,MAAM,CAAC;kBAC1B,YAAY;;AAoR5B,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as S, computed as f, openBlock as m, createBlock as h, unref as o, withCtx as s, createElementVNode as l, createVNode as c, toDisplayString as p, createElementBlock as g, Fragment as b, renderList as C } from "vue";
2
2
  import { Disclosure as F, DisclosureButton as k, DisclosurePanel as D } from "@headlessui/vue";
3
3
  import { ScalarIcon as y } from "@scalar/components";
4
- import _ from "../../../components/DataTable/DataTableCell.vue.js";
5
- import V from "../../../components/DataTable/DataTableRow.vue.js";
6
- import B from "../../../components/DataTable/DataTableCheckbox.vue.js";
4
+ import _ from "../../../../components/DataTable/DataTableCell.vue.js";
5
+ import V from "../../../../components/DataTable/DataTableRow.vue.js";
6
+ import B from "../../../../components/DataTable/DataTableCheckbox.vue.js";
7
7
  const O = { class: "flex h-full w-full" }, $ = /* @__PURE__ */ l("div", { class: "text-c-2 min-w-[120px] items-center pl-2 h-full border-r-1/2" }, [
8
8
  /* @__PURE__ */ l("span", { class: "h-8 flex items-center" }, " Scopes ")
9
9
  ], -1), j = { class: "flex-1 text-c-3" }, E = {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":";WA8TS,MAAM;;WAAN,MAAM;;AAubf,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import t from "./RequestAuth.vue2.js";
2
+ /* empty css */
3
+ import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-2a86ee2c"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,183 @@
1
+ import { defineComponent as N, ref as C, computed as S, openBlock as p, createBlock as j, withCtx as r, createElementVNode as u, toDisplayString as A, createVNode as s, unref as a, createElementBlock as v, Fragment as F, renderList as W, createTextVNode as q, withModifiers as z, pushScopeId as E, popScopeId as H } from "vue";
2
+ import L from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
3
+ import { useModal as P, ScalarComboboxMultiselect as G, ScalarButton as J, ScalarIcon as D } from "@scalar/components";
4
+ import K from "./DeleteRequestAuthModal.vue.js";
5
+ import Q from "./RequestExampleAuth.vue.js";
6
+ import { displaySchemeFormatter as M, createSchemeValueSet as X } from "../../libs/auth.js";
7
+ import { ADD_AUTH_OPTIONS as Y } from "../../consts/new-auth-options.js";
8
+ import Z from "../../../../components/DataTable/DataTable.vue.js";
9
+ import ee from "../../../../components/DataTable/DataTableRow.vue.js";
10
+ import te from "../../../../components/DataTable/DataTableHeader.vue.js";
11
+ import { useWorkspace as le } from "../../../../store/store.js";
12
+ const y = (f) => (E("data-v-2a86ee2c"), f = f(), H(), f), oe = { class: "flex gap-1" }, se = /* @__PURE__ */ y(() => /* @__PURE__ */ u("div", { class: "text-c-2 h-8 flex min-w-[120px] items-center border-r-1/2 pr-0 pl-2" }, " Auth Type ", -1)), ae = {
13
+ key: 0,
14
+ class: "flex relative scroll-timeline-x w-full"
15
+ }, ce = /* @__PURE__ */ y(() => /* @__PURE__ */ u("div", { class: "fade-left" }, null, -1)), ie = { class: "flex flex-1 gap-0.75 mr-1.5 items-center" }, re = /* @__PURE__ */ y(() => /* @__PURE__ */ u("div", { class: "fade-right" }, null, -1)), ne = {
16
+ key: 1,
17
+ class: "pl-2"
18
+ }, be = /* @__PURE__ */ N({
19
+ __name: "RequestAuth",
20
+ props: {
21
+ title: {}
22
+ },
23
+ setup(f) {
24
+ const {
25
+ activeCollection: n,
26
+ activeRequest: i,
27
+ collectionMutators: V,
28
+ isReadOnly: b,
29
+ requestMutators: g,
30
+ securitySchemes: _,
31
+ securitySchemeMutators: $
32
+ } = le(), R = C(null), x = P(), k = C(void 0), U = S(() => {
33
+ var o, m, d;
34
+ const e = (m = (o = i.value) == null ? void 0 : o.security) == null ? void 0 : m.filter(
35
+ (c) => Object.keys(c).length
36
+ );
37
+ return ((b.value && (e != null && e.length) ? e.map((c) => Object.keys(c)[0]) : (d = n.value) == null ? void 0 : d.securitySchemes) ?? []).map((c) => _[c]);
38
+ }), I = S(
39
+ () => {
40
+ const e = U.value.map(
41
+ (t) => M(t)
42
+ );
43
+ return b.value ? e : [
44
+ { label: "Select auth", options: e },
45
+ {
46
+ label: "Add new auth",
47
+ options: Y
48
+ }
49
+ ];
50
+ }
51
+ ), h = S(
52
+ () => {
53
+ var e;
54
+ return ((e = i.value) == null ? void 0 : e.selectedSecuritySchemeUids.map(
55
+ (t) => M(_[t])
56
+ )) ?? [];
57
+ }
58
+ );
59
+ function O(e) {
60
+ var d, c;
61
+ if (!((d = n.value) != null && d.uid) || !((c = i.value) != null && c.uid)) return;
62
+ const t = e.find((l) => l.payload), o = e.filter((l) => !l.payload).map(({ id: l }) => l);
63
+ if (t != null && t.payload) {
64
+ const l = $.add(
65
+ t.payload,
66
+ n.value.uid
67
+ );
68
+ o.push(l.uid);
69
+ }
70
+ const m = o.filter((l) => !n.value.auth[l]);
71
+ V.edit(
72
+ n.value.uid,
73
+ "auth",
74
+ m.reduce((l, w) => (l[w] = X(_[w]), l), n.value.auth)
75
+ ), g.edit(
76
+ i.value.uid,
77
+ "selectedSecuritySchemeUids",
78
+ o
79
+ );
80
+ }
81
+ const T = (e) => i.value && g.edit(
82
+ i.value.uid,
83
+ "selectedSecuritySchemeUids",
84
+ i.value.selectedSecuritySchemeUids.filter(
85
+ (t) => t !== e
86
+ )
87
+ );
88
+ function B(e) {
89
+ k.value = e, x.show();
90
+ }
91
+ return (e, t) => (p(), j(L, {
92
+ class: "group/params",
93
+ itemCount: h.value.length
94
+ }, {
95
+ title: r(() => [
96
+ u("div", oe, A(e.title), 1)
97
+ ]),
98
+ default: r(() => [
99
+ u("form", null, [
100
+ s(a(Z), {
101
+ class: "flex-1",
102
+ columns: [""]
103
+ }, {
104
+ default: r(() => [
105
+ s(a(ee), null, {
106
+ default: r(() => [
107
+ s(a(te), { class: "relative col-span-full cursor-pointer py-[0px] px-[0px] flex items-center" }, {
108
+ default: r(() => [
109
+ s(a(G), {
110
+ ref_key: "comboboxRef",
111
+ ref: R,
112
+ class: "text-xs w-full",
113
+ fullWidth: "",
114
+ isDeletable: "",
115
+ modelValue: h.value,
116
+ multiple: "",
117
+ options: I.value,
118
+ style: { "margin-left": "120px" },
119
+ teleport: "",
120
+ onDelete: B,
121
+ "onUpdate:modelValue": O
122
+ }, {
123
+ default: r(() => [
124
+ s(a(J), {
125
+ class: "h-auto py-0 px-0 text-c-2 hover:text-c-1 font-normal justify-start",
126
+ fullWidth: "",
127
+ variant: "ghost"
128
+ }, {
129
+ default: r(() => [
130
+ se,
131
+ h.value.length ? (p(), v("div", ae, [
132
+ ce,
133
+ u("div", ie, [
134
+ (p(!0), v(F, null, W(h.value, (o) => (p(), v("span", {
135
+ key: o.id,
136
+ class: "cm-pill flex items-center mx-0 h-fit"
137
+ }, [
138
+ q(A(o.label) + " ", 1),
139
+ s(a(D), {
140
+ class: "ml-1 cursor-pointer text-c-3 hover:text-c-1",
141
+ icon: "Close",
142
+ size: "xs",
143
+ onClick: z((m) => T(o.id), ["stop"])
144
+ }, null, 8, ["onClick"])
145
+ ]))), 128))
146
+ ]),
147
+ re
148
+ ])) : (p(), v("div", ne, " None ")),
149
+ s(a(D), {
150
+ class: "min-w-3 ml-auto mr-2.5",
151
+ icon: "ChevronDown",
152
+ size: "xs"
153
+ })
154
+ ]),
155
+ _: 1
156
+ })
157
+ ]),
158
+ _: 1
159
+ }, 8, ["modelValue", "options"])
160
+ ]),
161
+ _: 1
162
+ })
163
+ ]),
164
+ _: 1
165
+ }),
166
+ s(Q)
167
+ ]),
168
+ _: 1
169
+ }),
170
+ s(K, {
171
+ scheme: k.value,
172
+ state: a(x),
173
+ onClose: t[0] || (t[0] = (o) => a(x).hide())
174
+ }, null, 8, ["scheme", "state"])
175
+ ])
176
+ ]),
177
+ _: 1
178
+ }, 8, ["itemCount"]));
179
+ }
180
+ });
181
+ export {
182
+ be as default
183
+ };
@@ -0,0 +1,30 @@
1
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
+ state: {
3
+ open: boolean;
4
+ show: () => void;
5
+ hide: () => void;
6
+ };
7
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ close: () => void;
9
+ submit: (id: string) => void;
10
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
11
+ state: {
12
+ open: boolean;
13
+ show: () => void;
14
+ hide: () => void;
15
+ };
16
+ }>>> & {
17
+ onSubmit?: ((id: string) => any) | undefined;
18
+ onClose?: (() => any) | undefined;
19
+ }, {}, {}>;
20
+ export default _default;
21
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
+ type __VLS_TypePropsToOption<T> = {
23
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
24
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
+ } : {
26
+ type: import('vue').PropType<T[K]>;
27
+ required: true;
28
+ };
29
+ };
30
+ //# sourceMappingURL=RequestAuthModal.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestAuthModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue"],"names":[],"mappings":";WAgMS;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE;;;;;WAArD;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE;;;;;AAgT9D,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
3
+ //# sourceMappingURL=RequestExampleAuth.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestExampleAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue"],"names":[],"mappings":";AA0eA,wBAKG"}
@@ -0,0 +1,140 @@
1
+ import { defineComponent as w, computed as x, openBlock as d, createElementBlock as m, Fragment as s, renderList as g, createVNode as o, unref as r, withCtx as l, createBlock as V, createTextVNode as i, toDisplayString as T, createCommentVNode as y, capitalize as h } from "vue";
2
+ import c from "../RequestAuthDataTableInput.vue.js";
3
+ import B from "./OAuth2.vue.js";
4
+ import n from "../../../../components/DataTable/DataTableRow.vue.js";
5
+ import S from "../../../../components/DataTable/DataTableCell.vue.js";
6
+ import { isOauth2Example as E } from "../../libs/oauth2.js";
7
+ import { useWorkspace as F } from "../../../../store/store.js";
8
+ const Q = /* @__PURE__ */ w({
9
+ __name: "RequestExampleAuth",
10
+ setup(R) {
11
+ const { activeCollection: f, activeRequest: _, collectionMutators: U, securitySchemes: v } = F(), k = x(() => !f.value || !_.value ? [] : _.value.selectedSecuritySchemeUids.map((u) => ({
12
+ example: f.value.auth[u],
13
+ scheme: v[u]
14
+ })));
15
+ function $(u) {
16
+ return `${h(u.nameKey)}: ${u.type} ${u.type === "oauth2" ? u.flow.type : ""}`;
17
+ }
18
+ function p(u, b, e, t) {
19
+ var a;
20
+ (a = f.value) != null && a.uid && U.edit(
21
+ f.value.uid,
22
+ `auth.${u}.${e}`,
23
+ t
24
+ );
25
+ }
26
+ return (u, b) => (d(!0), m(s, null, g(k.value, ({ scheme: e, example: t }) => (d(), m(s, {
27
+ key: e.uid
28
+ }, [
29
+ o(r(n), { class: "group/delete" }, {
30
+ default: l(() => [
31
+ k.value.length > 1 ? (d(), V(r(S), {
32
+ key: 0,
33
+ class: "text-c-2 pl-2 text-xs font-medium flex items-center bg-b-2"
34
+ }, {
35
+ default: l(() => [
36
+ i(T($(e)), 1)
37
+ ]),
38
+ _: 2
39
+ }, 1024)) : y("", !0)
40
+ ]),
41
+ _: 2
42
+ }, 1024),
43
+ e.type === "http" && t.type === "http" ? (d(), m(s, { key: 0 }, [
44
+ e.scheme === "bearer" ? (d(), V(r(n), { key: 0 }, {
45
+ default: l(() => [
46
+ o(c, {
47
+ id: `http-bearer-token-${e.uid}`,
48
+ modelValue: t.token,
49
+ placeholder: "Token",
50
+ type: "password",
51
+ "onUpdate:modelValue": (a) => p(e.uid, t, "token", a)
52
+ }, {
53
+ default: l(() => [
54
+ i(" Bearer Token ")
55
+ ]),
56
+ _: 2
57
+ }, 1032, ["id", "modelValue", "onUpdate:modelValue"])
58
+ ]),
59
+ _: 2
60
+ }, 1024)) : e.scheme === "basic" ? (d(), m(s, { key: 1 }, [
61
+ o(r(n), null, {
62
+ default: l(() => [
63
+ o(c, {
64
+ id: `http-basic-username-${e.uid}`,
65
+ class: "text-c-2",
66
+ modelValue: t.username,
67
+ placeholder: "ScalarEnjoyer01",
68
+ required: "",
69
+ "onUpdate:modelValue": (a) => p(e.uid, t, "username", a)
70
+ }, {
71
+ default: l(() => [
72
+ i(" Username ")
73
+ ]),
74
+ _: 2
75
+ }, 1032, ["id", "modelValue", "onUpdate:modelValue"])
76
+ ]),
77
+ _: 2
78
+ }, 1024),
79
+ o(r(n), null, {
80
+ default: l(() => [
81
+ o(c, {
82
+ id: `http-basic-password-${e.uid}`,
83
+ modelValue: t.password,
84
+ placeholder: "xxxxxx",
85
+ type: "password",
86
+ "onUpdate:modelValue": (a) => p(e.uid, t, "password", a)
87
+ }, {
88
+ default: l(() => [
89
+ i(" Password ")
90
+ ]),
91
+ _: 2
92
+ }, 1032, ["id", "modelValue", "onUpdate:modelValue"])
93
+ ]),
94
+ _: 2
95
+ }, 1024)
96
+ ], 64)) : y("", !0)
97
+ ], 64)) : e.type === "apiKey" && t.type === "apiKey" ? (d(), m(s, { key: 1 }, [
98
+ o(r(n), null, {
99
+ default: l(() => [
100
+ o(c, {
101
+ id: `api-key-name-${e.uid}`,
102
+ modelValue: t.name,
103
+ placeholder: "api-key",
104
+ "onUpdate:modelValue": (a) => p(e.uid, t, "name", a)
105
+ }, {
106
+ default: l(() => [
107
+ i(" Name ")
108
+ ]),
109
+ _: 2
110
+ }, 1032, ["id", "modelValue", "onUpdate:modelValue"])
111
+ ]),
112
+ _: 2
113
+ }, 1024),
114
+ o(r(n), null, {
115
+ default: l(() => [
116
+ o(c, {
117
+ id: `api-key-value-add-${e.uid}`,
118
+ modelValue: t.value,
119
+ placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
120
+ "onUpdate:modelValue": (a) => p(e.uid, t, "value", a)
121
+ }, {
122
+ default: l(() => [
123
+ i(" Value ")
124
+ ]),
125
+ _: 2
126
+ }, 1032, ["id", "modelValue", "onUpdate:modelValue"])
127
+ ]),
128
+ _: 2
129
+ }, 1024)
130
+ ], 64)) : e.type === "oauth2" && r(E)(t) ? (d(), V(B, {
131
+ key: 2,
132
+ example: t,
133
+ scheme: e
134
+ }, null, 8, ["example", "scheme"])) : y("", !0)
135
+ ], 64))), 128));
136
+ }
137
+ });
138
+ export {
139
+ Q as default
140
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./RequestExampleAuth.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -29,9 +29,9 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
29
29
  readOnly: boolean;
30
30
  }>>> & {
31
31
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
32
- onSelectVariable?: ((value: string) => any) | undefined;
33
32
  onInputFocus?: (() => any) | undefined;
34
33
  onInputBlur?: (() => any) | undefined;
34
+ onSelectVariable?: ((value: string) => any) | undefined;
35
35
  }, {
36
36
  required: boolean;
37
37
  readOnly: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":";WA4dS,MAAM;WACN,MAAM;eACF,GAAG,EAAE;;WAFT,MAAM;WACN,MAAM;eACF,GAAG,EAAE;;AAuzBlB,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":";WAwbS,MAAM;WACN,MAAM;eACF,GAAG,EAAE;;WAFT,MAAM;WACN,MAAM;eACF,GAAG,EAAE;;AAoyBlB,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}