@scalar/api-client 2.0.64 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (326) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +64 -62
  5. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  6. package/dist/components/AddressBar/AddressBarHistory.vue.js +77 -69
  7. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  8. package/dist/components/AddressBar/AddressBarServer.vue.js +121 -0
  9. package/dist/components/AddressBar/AddressBarServer.vue2.js +4 -0
  10. package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts +22 -0
  11. package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -0
  12. package/dist/components/AddressBar/AddressBarServerItem.vue.js +57 -0
  13. package/dist/components/AddressBar/AddressBarServerItem.vue2.js +4 -0
  14. package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -6
  15. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  16. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  17. package/dist/components/CodeInput/CodeInput.vue2.js +87 -82
  18. package/dist/components/CodeInput/codeVariableWidget.d.ts +4 -4
  19. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  20. package/dist/components/CodeInput/codeVariableWidget.js +70 -63
  21. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +33 -0
  22. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -0
  23. package/dist/components/CommandPalette/CommandActionForm.vue.js +41 -0
  24. package/dist/components/CommandPalette/CommandActionForm.vue2.js +4 -0
  25. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +20 -0
  26. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -0
  27. package/dist/components/CommandPalette/CommandActionInput.vue.js +42 -0
  28. package/dist/components/CommandPalette/CommandActionInput.vue2.js +4 -0
  29. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
  30. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +33 -56
  31. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
  32. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +88 -109
  33. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  34. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +56 -73
  35. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +21 -2
  36. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  37. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +122 -133
  38. package/dist/components/CommandPalette/{CommandPaletteFolder.vue.d.ts → CommandPaletteServer.vue.d.ts} +1 -1
  39. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -0
  40. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +92 -0
  41. package/dist/components/CommandPalette/CommandPaletteServer.vue2.js +4 -0
  42. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +7 -0
  43. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -0
  44. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +87 -0
  45. package/dist/components/CommandPalette/CommandPaletteTag.vue2.js +4 -0
  46. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
  47. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +33 -49
  48. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +22 -3
  49. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  50. package/dist/components/CommandPalette/TheCommandPalette.vue.js +3 -3
  51. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +107 -101
  52. package/dist/components/ContextBar.vue.d.ts.map +1 -1
  53. package/dist/components/ContextBar.vue.js +2 -2
  54. package/dist/components/ContextBar.vue2.js +2 -2
  55. package/dist/components/DataTable/DataTable.vue.js +1 -1
  56. package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
  57. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  58. package/dist/components/DataTable/DataTableInput.vue.js +2 -2
  59. package/dist/components/DataTable/DataTableInput.vue2.js +13 -13
  60. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  61. package/dist/components/DataTable/DataTableInputSelect.vue.js +39 -40
  62. package/dist/components/DataTable/index.js +12 -12
  63. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +7 -7
  64. package/dist/components/Form/Form.vue.js +1 -1
  65. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  66. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  67. package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
  68. package/dist/components/HttpMethod/HttpMethod.vue2.js +30 -30
  69. package/dist/components/HttpMethod/helpers.d.ts +4 -0
  70. package/dist/components/HttpMethod/helpers.d.ts.map +1 -0
  71. package/dist/components/HttpMethod/helpers.js +5 -0
  72. package/dist/components/HttpMethod/index.d.ts +1 -0
  73. package/dist/components/HttpMethod/index.d.ts.map +1 -1
  74. package/dist/components/HttpMethod/index.js +4 -2
  75. package/dist/components/Search/SearchModal.vue.d.ts.map +1 -1
  76. package/dist/components/Search/SearchModal.vue.js +2 -2
  77. package/dist/components/Search/SearchModal.vue2.js +29 -27
  78. package/dist/components/Search/useSearch.js +35 -35
  79. package/dist/components/SideNav/SideNavLink.vue.js +6 -6
  80. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
  81. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +14 -17
  82. package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue.d.ts +22 -0
  83. package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue.d.ts.map +1 -0
  84. package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue.js +29 -0
  85. package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue2.js +4 -0
  86. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
  87. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
  88. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +38 -35
  89. package/dist/components/Sidebar/Sidebar.vue.d.ts +2 -1
  90. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  91. package/dist/components/Sidebar/Sidebar.vue.js +1 -1
  92. package/dist/components/Sidebar/Sidebar.vue2.js +37 -34
  93. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  94. package/dist/components/Sidebar/SidebarButton.vue.js +11 -11
  95. package/dist/components/SubpageHeader.vue.d.ts.map +1 -1
  96. package/dist/components/SubpageHeader.vue.js +3 -3
  97. package/dist/components/SubpageHeader.vue2.js +3 -3
  98. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  99. package/dist/components/TopNav/TopNav.vue.js +2 -2
  100. package/dist/components/TopNav/TopNav.vue2.js +23 -23
  101. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  102. package/dist/components/TopNav/TopNavItem.vue.js +2 -2
  103. package/dist/components/TopNav/TopNavItem.vue2.js +21 -21
  104. package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
  105. package/dist/components/ViewLayout/ViewLayout.vue.js +7 -7
  106. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  107. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +5 -5
  108. package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
  109. package/dist/components/ViewLayout/ViewLayoutContent.vue.js +4 -4
  110. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  111. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +6 -6
  112. package/dist/index.d.ts +1 -1
  113. package/dist/index.d.ts.map +1 -1
  114. package/dist/index.js +1 -1
  115. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  116. package/dist/layouts/App/ApiClientApp.vue.js +39 -53
  117. package/dist/layouts/App/create-api-client-app.d.ts +2058 -1941
  118. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  119. package/dist/layouts/App/create-api-client-app.js +12 -12
  120. package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
  121. package/dist/layouts/Modal/ApiClientModal.vue2.js +6 -6
  122. package/dist/layouts/Modal/create-api-client-modal.d.ts +4590 -4356
  123. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  124. package/dist/layouts/Modal/create-api-client-modal.js +18 -23
  125. package/dist/libs/create-client.d.ts +2086 -1972
  126. package/dist/libs/create-client.d.ts.map +1 -1
  127. package/dist/libs/create-client.js +82 -73
  128. package/dist/libs/environment-parser.d.ts +9 -0
  129. package/dist/libs/environment-parser.d.ts.map +1 -0
  130. package/dist/libs/environment-parser.js +17 -0
  131. package/dist/libs/errors.d.ts +21 -0
  132. package/dist/libs/errors.d.ts.map +1 -0
  133. package/dist/libs/errors.js +14 -0
  134. package/dist/libs/event-busses/command-palette-bus.d.ts +1 -1
  135. package/dist/libs/event-busses/command-palette-bus.d.ts.map +1 -1
  136. package/dist/libs/event-busses/hot-keys-bus.d.ts +4 -4
  137. package/dist/libs/event-busses/hot-keys-bus.d.ts.map +1 -1
  138. package/dist/libs/event-busses/hot-keys-bus.js +17 -19
  139. package/dist/libs/index.d.ts +5 -2
  140. package/dist/libs/index.d.ts.map +1 -1
  141. package/dist/libs/index.js +31 -24
  142. package/dist/libs/local-storage.d.ts +3 -3
  143. package/dist/libs/local-storage.d.ts.map +1 -1
  144. package/dist/libs/local-storage.js +24 -12
  145. package/dist/libs/normalize-headers.d.ts +14 -0
  146. package/dist/libs/normalize-headers.d.ts.map +1 -0
  147. package/dist/libs/normalize-headers.js +32 -0
  148. package/dist/libs/send-request.d.ts +28 -0
  149. package/dist/libs/send-request.d.ts.map +1 -0
  150. package/dist/libs/send-request.js +186 -0
  151. package/dist/libs/string-template.d.ts +19 -0
  152. package/dist/libs/string-template.d.ts.map +1 -0
  153. package/dist/libs/string-template.js +30 -0
  154. package/dist/router.d.ts +5 -0
  155. package/dist/router.d.ts.map +1 -1
  156. package/dist/router.js +36 -27
  157. package/dist/store/collections.d.ts +705 -0
  158. package/dist/store/collections.d.ts.map +1 -0
  159. package/dist/store/collections.js +63 -0
  160. package/dist/store/cookies.d.ts +135 -0
  161. package/dist/store/cookies.d.ts.map +1 -0
  162. package/dist/store/cookies.js +29 -0
  163. package/dist/store/environment.d.ts +80 -0
  164. package/dist/store/environment.d.ts.map +1 -0
  165. package/dist/store/environment.js +39 -0
  166. package/dist/store/import-spec.d.ts +8 -0
  167. package/dist/store/import-spec.d.ts.map +1 -0
  168. package/dist/store/import-spec.js +45 -0
  169. package/dist/store/index.d.ts +1 -1
  170. package/dist/store/index.d.ts.map +1 -1
  171. package/dist/store/index.js +1 -1
  172. package/dist/store/request-example.d.ts +1111 -0
  173. package/dist/store/request-example.d.ts.map +1 -0
  174. package/dist/store/request-example.js +47 -0
  175. package/dist/store/requests.d.ts +371 -0
  176. package/dist/store/requests.d.ts.map +1 -0
  177. package/dist/store/requests.js +107 -0
  178. package/dist/store/router-params.d.ts +15 -0
  179. package/dist/store/router-params.d.ts.map +1 -0
  180. package/dist/store/router-params.js +21 -0
  181. package/dist/store/security-schemes.d.ts +616 -0
  182. package/dist/store/security-schemes.d.ts.map +1 -0
  183. package/dist/store/security-schemes.js +68 -0
  184. package/dist/store/servers.d.ts +99 -0
  185. package/dist/store/servers.d.ts.map +1 -0
  186. package/dist/store/servers.js +46 -0
  187. package/dist/store/store-context.d.ts +29 -0
  188. package/dist/store/store-context.d.ts.map +1 -0
  189. package/dist/store/store.d.ts +7504 -0
  190. package/dist/store/store.d.ts.map +1 -0
  191. package/dist/store/store.js +200 -0
  192. package/dist/store/tags.d.ts +169 -0
  193. package/dist/store/tags.d.ts.map +1 -0
  194. package/dist/store/tags.js +57 -0
  195. package/dist/store/workspace.d.ts +93 -7150
  196. package/dist/store/workspace.d.ts.map +1 -1
  197. package/dist/store/workspace.js +49 -543
  198. package/dist/style.css +1 -1
  199. package/dist/views/Cookies/CookieForm.vue.js +2 -2
  200. package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
  201. package/dist/views/Cookies/CookieRaw.vue.js +10 -10
  202. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  203. package/dist/views/Cookies/Cookies.vue2.js +21 -23
  204. package/dist/views/Environment/Environment.vue2.js +27 -28
  205. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +11 -5
  206. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  207. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +79 -59
  208. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  209. package/dist/views/Request/Request.vue.js +2 -2
  210. package/dist/views/Request/Request.vue2.js +87 -318
  211. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +36 -0
  212. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -0
  213. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +59 -0
  214. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue2.js +4 -0
  215. package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuth2.vue.d.ts +3 -1
  216. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -0
  217. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +216 -0
  218. package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue.d.ts +2 -2
  219. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -0
  220. package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue.js +3 -3
  221. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -0
  222. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +7 -0
  223. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +183 -0
  224. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts +30 -0
  225. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts.map +1 -0
  226. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts +3 -0
  227. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -0
  228. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +140 -0
  229. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +4 -0
  230. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
  231. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  232. package/dist/views/Request/RequestSection/RequestBody.vue.js +167 -186
  233. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -1
  234. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  235. package/dist/views/Request/RequestSection/RequestParams.vue.js +49 -49
  236. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
  237. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  238. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +26 -22
  239. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  240. package/dist/views/Request/RequestSection/RequestSection.vue.js +103 -102
  241. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +5 -5
  242. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  243. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  244. package/dist/views/Request/RequestSection/RequestTable.vue2.js +1 -1
  245. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts +1 -1
  246. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  247. package/dist/views/Request/RequestSidebar.vue.d.ts +30 -0
  248. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -0
  249. package/dist/views/Request/RequestSidebar.vue.js +7 -0
  250. package/dist/views/Request/RequestSidebar.vue2.js +179 -0
  251. package/dist/views/Request/RequestSidebarItem.vue.d.ts +6 -7
  252. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  253. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  254. package/dist/views/Request/RequestSidebarItem.vue2.js +283 -254
  255. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +3 -5
  256. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  257. package/dist/views/Request/RequestSidebarItemMenu.vue.js +2 -2
  258. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +9 -7
  259. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +24 -0
  260. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -0
  261. package/dist/views/Request/RequestSubpageHeader.vue.js +7 -0
  262. package/dist/views/Request/RequestSubpageHeader.vue2.js +48 -0
  263. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
  264. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +21 -21
  265. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
  266. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +3 -3
  267. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +17 -16
  268. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  269. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
  270. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +37 -30
  271. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts +1 -1
  272. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
  273. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -1
  274. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  275. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
  276. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  277. package/dist/views/Request/components/WorkspaceDropdown.vue.js +69 -90
  278. package/dist/views/Request/components/index.d.ts +0 -1
  279. package/dist/views/Request/components/index.d.ts.map +1 -1
  280. package/dist/views/Request/components/index.js +2 -4
  281. package/dist/views/Request/consts/new-auth-options.d.ts +11 -1
  282. package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
  283. package/dist/views/Request/consts/new-auth-options.js +17 -7
  284. package/dist/views/Request/handle-drag.d.ts +8 -0
  285. package/dist/views/Request/handle-drag.d.ts.map +1 -0
  286. package/dist/views/Request/handle-drag.js +56 -0
  287. package/dist/views/Request/libs/auth.d.ts +35 -0
  288. package/dist/views/Request/libs/auth.d.ts.map +1 -0
  289. package/dist/views/Request/libs/auth.js +14 -0
  290. package/dist/views/Request/libs/index.d.ts +1 -0
  291. package/dist/views/Request/libs/index.d.ts.map +1 -1
  292. package/dist/views/Request/libs/index.js +7 -3
  293. package/dist/views/Request/libs/oauth2.d.ts +12 -3
  294. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  295. package/dist/views/Request/libs/oauth2.js +42 -27
  296. package/dist/views/Servers/ServerForm.vue.js +22 -22
  297. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  298. package/dist/views/Servers/Servers.vue2.js +17 -14
  299. package/package.json +9 -9
  300. package/dist/components/CodeInput/codeDropdownWidget.d.ts +0 -32
  301. package/dist/components/CodeInput/codeDropdownWidget.d.ts.map +0 -1
  302. package/dist/components/CodeInput/codeDropdownWidget.js +0 -121
  303. package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +0 -1
  304. package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +0 -106
  305. package/dist/components/CommandPalette/CommandPaletteFolder.vue2.js +0 -4
  306. package/dist/errors.d.ts +0 -5
  307. package/dist/errors.d.ts.map +0 -1
  308. package/dist/errors.js +0 -7
  309. package/dist/libs/normalizeHeaders.d.ts +0 -11
  310. package/dist/libs/normalizeHeaders.d.ts.map +0 -1
  311. package/dist/libs/normalizeHeaders.js +0 -25
  312. package/dist/libs/pathParams.d.ts +0 -10
  313. package/dist/libs/pathParams.d.ts.map +0 -1
  314. package/dist/libs/pathParams.js +0 -36
  315. package/dist/libs/sendRequest.d.ts +0 -14
  316. package/dist/libs/sendRequest.d.ts.map +0 -1
  317. package/dist/libs/sendRequest.js +0 -163
  318. package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +0 -1
  319. package/dist/views/Request/RequestSection/RequestAuth.vue.js +0 -7
  320. package/dist/views/Request/RequestSection/RequestAuth.vue2.js +0 -351
  321. package/dist/views/Request/components/OAuth2.vue.d.ts.map +0 -1
  322. package/dist/views/Request/components/OAuth2.vue.js +0 -208
  323. package/dist/views/Request/components/OAuthScopesInput.vue.d.ts.map +0 -1
  324. /package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuth2.vue2.js +0 -0
  325. /package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue2.js +0 -0
  326. /package/dist/views/Request/RequestSection/{RequestAuth.vue.d.ts → RequestAuth/RequestAuth.vue.d.ts} +0 -0
@@ -1,36 +0,0 @@
1
- import { createRequestExampleParameter as d } from "@scalar/oas-utils/entities/workspace/spec";
2
- const p = (o, c, n = []) => {
3
- if (!o || !c) return null;
4
- const i = o.split("/"), f = c.split("/");
5
- for (let t = 0; t < i.length; t++) {
6
- const e = i[t], r = f[t];
7
- if (e && r && (e[0] + r[0] + "").includes(":") && e !== r) {
8
- const s = r.replace(/^:/, ""), u = e.replace(/^:/, "");
9
- if (r === ":" || e[0] === ":" && r[0] !== ":")
10
- return {
11
- key: "parameters.path",
12
- value: [
13
- ...n,
14
- d({ key: u })
15
- ]
16
- };
17
- if (e === ":" || e[0] !== ":" && r[0] === ":")
18
- return {
19
- key: "parameters.path",
20
- value: [...n.filter((l) => l.key !== s)]
21
- };
22
- if (n != null && n.length) {
23
- const l = n.findIndex((y) => y.key === s);
24
- if (l > -1)
25
- return {
26
- key: `parameters.path.${l}.key`,
27
- value: u
28
- };
29
- }
30
- }
31
- }
32
- return null;
33
- };
34
- export {
35
- p as syncPathParamsFromURL
36
- };
@@ -1,14 +0,0 @@
1
- import type { Cookie } from '@scalar/oas-utils/entities/workspace/cookie';
2
- import type { SecurityScheme } from '@scalar/oas-utils/entities/workspace/security';
3
- import type { Request, RequestExample, ResponseInstance } from '@scalar/oas-utils/entities/workspace/spec';
4
- /**
5
- * Execute the request
6
- * called from the send button as well as keyboard shortcuts
7
- */
8
- export declare const sendRequest: (request: Request, example: RequestExample, rawUrl: string, securitySchemes?: SecurityScheme[], proxyUrl?: string, workspaceCookies?: Record<string, Cookie>, abortSignal?: AbortSignal) => Promise<{
9
- sentTime: number;
10
- request: RequestExample;
11
- response?: ResponseInstance;
12
- error?: Error;
13
- }>;
14
- //# sourceMappingURL=sendRequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sendRequest.d.ts","sourceRoot":"","sources":["../../src/libs/sendRequest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6CAA6C,CAAA;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAA;AACnF,OAAO,KAAK,EAEV,OAAO,EACP,cAAc,EAEd,gBAAgB,EACjB,MAAM,2CAA2C,CAAA;AA+ElD;;;GAGG;AACH,eAAO,MAAM,WAAW,YACb,OAAO,WACP,cAAc,UACf,MAAM,oBACI,cAAc,EAAE,aACvB,MAAM,qBACE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,gBAC3B,WAAW,KACxB,OAAO,CAAC;IACT,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,cAAc,CAAA;IACvB,QAAQ,CAAC,EAAE,gBAAgB,CAAA;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAoPA,CAAA"}
@@ -1,163 +0,0 @@
1
- import { ERRORS as D } from "../errors.js";
2
- import { normalizeHeaders as E } from "./normalizeHeaders.js";
3
- import { isValidUrl as q, shouldUseProxy as O, redirectToProxy as U } from "@scalar/oas-utils/helpers";
4
- import M from "js-cookie";
5
- import S from "whatwg-mimetype";
6
- import { textMediaTypes as F } from "../views/Request/consts/mediaTypes.js";
7
- const w = (n = []) => n.reduce(
8
- (o, t) => (t.key && (o[t.key] = t.value), o),
9
- {}
10
- ), K = (n, o) => {
11
- const t = new S(o);
12
- if (F.includes(t.essence)) {
13
- const i = new TextDecoder(t.parameters.get("charset")).decode(n);
14
- return t.subtype === "json" ? JSON.parse(i) : i;
15
- } else
16
- return new Blob([n], { type: t.essence });
17
- }, T = async (n) => {
18
- const o = await n.arrayBuffer(), t = n.headers.get("Content-Type") ?? n.headers.get("content-type") ?? "text/plain;charset=UTF-8";
19
- return K(o, t);
20
- }, A = (n, o = !1) => {
21
- const t = Array.from(n.headers.keys()).reduce((i, s) => {
22
- const f = n.headers.get(s);
23
- return f && (i[s] = f), i;
24
- }, {});
25
- return o && [
26
- "Access-Control-Allow-Headers",
27
- "Access-Control-Allow-Origin",
28
- "Access-Control-Allow-Methods",
29
- "Access-Control-Expose-Headers"
30
- ].map((s) => s.toLowerCase()).forEach((s) => delete t[s]), { cookieHeaderKeys: n.headers.getSetCookie(), responseHeaders: t };
31
- }, _ = async (n, o, t, u, i, s, f) => {
32
- let c = t;
33
- o.parameters.path.forEach((e) => {
34
- !e.key || !e.value || (c = c.replace(`{${e.key}}`, e.value));
35
- });
36
- const d = w(
37
- o.parameters.headers.filter(({ enabled: e }) => e)
38
- );
39
- let y = null;
40
- if (o.body.activeBody === "binary" && o.body.binary)
41
- o.body.binary.type && (d["Content-Type"] = o.body.binary.type), d["Content-Disposition"] = `attachment; filename="${o.body.binary.name}"`, y = o.body.binary;
42
- else if (o.body.activeBody === "raw" && o.body.raw.value)
43
- y = o.body.raw.value;
44
- else if (o.body.activeBody === "formData") {
45
- delete d["Content-Type"];
46
- const e = new FormData();
47
- o.body.formData.encoding === "form-data" && (o.body.formData.value.forEach(
48
- (r) => {
49
- r.key && r.enabled && (r.file ? e.append(
50
- r.key,
51
- r.file,
52
- r.file.name
53
- ) : r.value !== void 0 && e.append(r.key, r.value));
54
- }
55
- ), y = e);
56
- }
57
- const p = [], [H, B] = c.split("?");
58
- new URLSearchParams(B ?? "").forEach((e, r) => {
59
- p.push({
60
- key: r,
61
- value: e,
62
- enabled: !0
63
- });
64
- });
65
- const h = {
66
- ...w(
67
- o.parameters.query.filter(({ enabled: e }) => e).filter(({ value: e }) => e !== "")
68
- ),
69
- ...w(p)
70
- }, l = {
71
- ...w(
72
- (o.parameters.cookies ?? []).filter(({ enabled: e }) => e)
73
- )
74
- };
75
- if (s) {
76
- if (!t)
77
- throw new Error(D.URL_EMPTY);
78
- try {
79
- new URL(t);
80
- } catch {
81
- throw new Error(D.INVALID_URL);
82
- }
83
- const e = new URL(t).host;
84
- Object.keys(s).forEach((r) => {
85
- const a = s[r];
86
- if (!a.domain) return;
87
- (q(a.domain) ? new URL(a.domain).origin : a.domain) === e && (l[a.name] = a.domain);
88
- });
89
- }
90
- u == null || u.forEach((e) => {
91
- if (e.type === "apiKey" && e.value)
92
- switch (e.in) {
93
- case "cookie":
94
- l[e.name] = e.value;
95
- break;
96
- case "query":
97
- h[e.name] = e.value;
98
- break;
99
- case "header":
100
- d[e.name] = e.value;
101
- break;
102
- }
103
- else e.type === "http" && e.value ? e.scheme === "basic" && e.secondValue ? d.Authorization = `Basic ${btoa(`${e.value}:${e.secondValue}`)}` : d.Authorization = `Bearer ${e.value}` : e.type === "oauth2" && e.flow.token && (d.Authorization = `Bearer ${e.flow.token}`);
104
- }), Object.keys(l).forEach((e) => {
105
- M.set(e, l[e], {
106
- // Means that the browser sends the cookie with both cross-site and same-site requests.
107
- sameSite: "None",
108
- // The Secure attribute must also be set when setting SameSite=None.
109
- secure: !0
110
- });
111
- });
112
- const k = new URLSearchParams(h).toString();
113
- c = `${H}${k ? "?" + k : ""}`;
114
- const v = {
115
- method: n.method,
116
- headers: d,
117
- signal: f
118
- };
119
- y && (v.body = y);
120
- const R = Date.now(), g = O(i, c);
121
- try {
122
- const e = await fetch(U(i, c), v);
123
- if (!e.ok) throw e;
124
- const { responseHeaders: r, cookieHeaderKeys: a } = A(
125
- e,
126
- g
127
- ), b = await T(e);
128
- return {
129
- sentTime: Date.now(),
130
- request: o,
131
- response: {
132
- ...e,
133
- headers: E(r),
134
- cookieHeaderKeys: a,
135
- data: b,
136
- duration: Date.now() - R
137
- }
138
- };
139
- } catch (e) {
140
- const a = { sentTime: Date.now(), request: o };
141
- if (e instanceof Response) {
142
- const C = await T(e), { responseHeaders: L, cookieHeaderKeys: $ } = A(
143
- e,
144
- g
145
- );
146
- return {
147
- ...a,
148
- response: {
149
- ...e,
150
- headers: E(L),
151
- cookieHeaderKeys: $,
152
- data: C,
153
- duration: Date.now() - R
154
- }
155
- };
156
- }
157
- const b = e instanceof Error || e instanceof DOMException ? e : new Error("An unknown error has occurred");
158
- return { ...a, error: b };
159
- }
160
- };
161
- export {
162
- _ as sendRequest
163
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestAuth.vue"],"names":[],"mappings":";WAkeS,MAAM;;WAAN,MAAM;;AAsvBf,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,7 +0,0 @@
1
- import t from "./RequestAuth.vue2.js";
2
- /* empty css */
3
- import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-afbf407f"]]);
5
- export {
6
- e as default
7
- };
@@ -1,351 +0,0 @@
1
- import { defineComponent as K, ref as L, computed as C, openBlock as i, createBlock as b, withCtx as o, createElementVNode as h, toDisplayString as g, createVNode as u, unref as n, createElementBlock as c, Fragment as v, renderList as q, createTextVNode as f, withModifiers as z, createCommentVNode as A, capitalize as E, pushScopeId as Q, popScopeId as G } from "vue";
2
- import J from "../../../components/DataTable/DataTableCell.vue.js";
3
- import X from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
4
- import { useWorkspace as Y } from "../../../store/workspace.js";
5
- import V from "./RequestAuthDataTableInput.vue.js";
6
- import { ScalarComboboxMultiselect as Z, ScalarButton as ee, ScalarIcon as F } from "@scalar/components";
7
- import { camelToTitleWords as te } from "@scalar/oas-utils/helpers";
8
- import { ADD_AUTH_OPTIONS as le, ADD_AUTH_DICT as ae } from "../consts/new-auth-options.js";
9
- import oe from "../../../components/DataTable/DataTable.vue.js";
10
- import _ from "../../../components/DataTable/DataTableRow.vue.js";
11
- import ue from "../../../components/DataTable/DataTableHeader.vue.js";
12
- import ne from "../components/OAuth2.vue.js";
13
- const D = (S) => (Q("data-v-afbf407f"), S = S(), G(), S), ie = { class: "flex gap-1" }, se = /* @__PURE__ */ D(() => /* @__PURE__ */ h("div", { class: "text-c-2 h-8 flex min-w-[120px] items-center border-r-1/2 pr-0 pl-2" }, " Auth Type ", -1)), re = {
14
- key: 0,
15
- class: "flex relative scroll-timeline-x w-full"
16
- }, de = /* @__PURE__ */ D(() => /* @__PURE__ */ h("div", { class: "fade-left" }, null, -1)), ce = { class: "flex flex-1 gap-0.75 mr-1.5 items-center" }, pe = /* @__PURE__ */ D(() => /* @__PURE__ */ h("div", { class: "fade-right" }, null, -1)), me = {
17
- key: 1,
18
- class: "pl-2"
19
- }, $ = "*sclrMulti*", Te = /* @__PURE__ */ K({
20
- __name: "RequestAuth",
21
- props: {
22
- title: {}
23
- },
24
- setup(S) {
25
- const {
26
- activeCollection: T,
27
- activeRequest: k,
28
- activeSecurityRequirements: O,
29
- activeSecuritySchemes: R,
30
- isReadOnly: w,
31
- requestMutators: P,
32
- securitySchemeMutators: N,
33
- securitySchemes: U
34
- } = Y(), B = L(null), I = (t) => {
35
- switch (t == null ? void 0 : t.type) {
36
- case "apiKey":
37
- return `${E(t.in)}`;
38
- case "http":
39
- return `${E(t.scheme)} Authentication`;
40
- case "oauth2":
41
- return te(t.flow.type);
42
- case "openIdConnect":
43
- return "Open ID Connect";
44
- default:
45
- return "None";
46
- }
47
- }, j = C(
48
- () => {
49
- var e;
50
- const t = (e = T.value) == null ? void 0 : e.securitySchemeDict, l = O.value.flatMap((d) => {
51
- const a = Object.keys(d);
52
- if (a.length === 0 && w.value)
53
- return { id: "none", label: "None" };
54
- if (!t) return [];
55
- if (a.length > 1) {
56
- const p = a.map((r) => {
57
- const x = t[r];
58
- return U[x];
59
- }), s = p.map((r) => r.nameKey).join(" & ");
60
- return {
61
- id: $ + p.map((r) => r.uid).join($),
62
- label: s
63
- };
64
- }
65
- return a.flatMap((p) => {
66
- const s = t[p], r = U[s], x = I(r);
67
- return {
68
- id: s,
69
- label: x
70
- };
71
- });
72
- });
73
- if (w.value)
74
- return l;
75
- {
76
- const d = k.value.securitySchemeUids.map((s) => {
77
- const r = U[s], x = I(r);
78
- return {
79
- id: s,
80
- label: "name" in r && r.name.length ? `${x} (${r.name})` : x
81
- };
82
- }), a = k.value.selectedSecuritySchemeUids, p = d.filter(
83
- (s) => a.includes(s.id)
84
- );
85
- return [
86
- { label: "Select auth", options: [...l, ...p] },
87
- {
88
- label: "Add new auth",
89
- options: le
90
- }
91
- ];
92
- }
93
- }
94
- ), M = (t) => {
95
- if (t.startsWith($)) {
96
- const l = t.split($);
97
- return l.shift(), l;
98
- } else
99
- return [t];
100
- }, m = C({
101
- // Grab the selected OR first security scheme
102
- get: () => {
103
- var l;
104
- const t = new Set(
105
- ((l = k.value) == null ? void 0 : l.selectedSecuritySchemeUids) || []
106
- );
107
- return j.value.flatMap(
108
- (e) => "options" in e ? e.options : e
109
- ).filter(
110
- (e) => M(e.id).some((d) => t.has(d))
111
- );
112
- },
113
- // Update the selected auth per this request
114
- set: (t) => {
115
- var e, d, a, p;
116
- const l = t.find(
117
- (s) => ae[s.id]
118
- );
119
- l != null && l.payload && T.value ? ((p = (a = (d = (e = B.value) == null ? void 0 : e.comboboxPopoverRef) == null ? void 0 : d.popoverButtonRef) == null ? void 0 : a.el) == null || p.click(), N.add(
120
- l.payload,
121
- T.value.uid,
122
- k.value,
123
- !0
124
- )) : P.edit(
125
- k.value.uid,
126
- "selectedSecuritySchemeUids",
127
- t.flatMap((s) => M(s.id))
128
- );
129
- }
130
- }), W = C(
131
- () => m.value.flatMap(({ id: t }) => M(t)).map((t) => {
132
- const l = U[t];
133
- return `${I(l)} (${l.nameKey})`;
134
- })
135
- ), y = (t, l, e) => N.edit(t.uid ?? "", l, e), H = (t) => {
136
- const l = m.value.filter(
137
- (e) => e.id !== t
138
- );
139
- m.value = l;
140
- };
141
- return (t, l) => (i(), b(X, {
142
- class: "group/params",
143
- itemCount: m.value.length
144
- }, {
145
- title: o(() => [
146
- h("div", ie, g(t.title), 1)
147
- ]),
148
- default: o(() => [
149
- h("form", null, [
150
- u(n(oe), {
151
- class: "flex-1",
152
- columns: [""]
153
- }, {
154
- default: o(() => [
155
- u(n(_), null, {
156
- default: o(() => [
157
- u(n(ue), { class: "relative col-span-full cursor-pointer py-[0px] px-[0px] flex items-center" }, {
158
- default: o(() => [
159
- u(n(Z), {
160
- ref_key: "comboboxRef",
161
- ref: B,
162
- modelValue: m.value,
163
- "onUpdate:modelValue": l[0] || (l[0] = (e) => m.value = e),
164
- class: "text-xs w-full",
165
- fullWidth: "",
166
- multiple: "",
167
- options: j.value,
168
- style: { "margin-left": "120px" },
169
- teleport: ""
170
- }, {
171
- default: o(() => [
172
- u(n(ee), {
173
- class: "h-auto py-0 px-0 text-c-2 hover:text-c-1 font-normal justify-start",
174
- fullWidth: "",
175
- variant: "ghost"
176
- }, {
177
- default: o(() => [
178
- se,
179
- m.value.length ? (i(), c("div", re, [
180
- de,
181
- h("div", ce, [
182
- (i(!0), c(v, null, q(m.value, (e) => (i(), c("span", {
183
- key: e.id,
184
- class: "cm-pill flex items-center mx-0 h-fit"
185
- }, [
186
- f(g(e.label) + " ", 1),
187
- u(n(F), {
188
- class: "ml-1 cursor-pointer text-c-3 hover:text-c-1",
189
- icon: "Close",
190
- size: "xs",
191
- onClick: z((d) => H(e.id), ["stop"])
192
- }, null, 8, ["onClick"])
193
- ]))), 128))
194
- ]),
195
- pe
196
- ])) : (i(), c("div", me, " None ")),
197
- u(n(F), {
198
- class: "min-w-3 ml-auto mr-2.5",
199
- icon: "ChevronDown",
200
- size: "xs"
201
- })
202
- ]),
203
- _: 1
204
- })
205
- ]),
206
- _: 1
207
- }, 8, ["modelValue", "options"])
208
- ]),
209
- _: 1
210
- })
211
- ]),
212
- _: 1
213
- }),
214
- (i(!0), c(v, null, q(n(R), (e, d) => (i(), c(v, {
215
- key: e.uid
216
- }, [
217
- n(R).length > 1 ? (i(), b(n(_), {
218
- key: 0,
219
- class: "group/delete"
220
- }, {
221
- default: o(() => [
222
- u(J, { class: "text-c-2 pl-2 text-xs font-medium flex items-center bg-b-2" }, {
223
- default: o(() => [
224
- f(g(W.value[d]), 1)
225
- ]),
226
- _: 2
227
- }, 1024)
228
- ]),
229
- _: 2
230
- }, 1024)) : A("", !0),
231
- e.type === "http" ? (i(), c(v, { key: 1 }, [
232
- e.scheme === "bearer" ? (i(), b(n(_), { key: 0 }, {
233
- default: o(() => [
234
- u(V, {
235
- id: `http-bearer-token-${e.uid}`,
236
- modelValue: e.value,
237
- placeholder: "Token",
238
- type: "password",
239
- "onUpdate:modelValue": (a) => y(e, "value", a)
240
- }, {
241
- default: o(() => [
242
- f(" Bearer Token ")
243
- ]),
244
- _: 2
245
- }, 1032, ["id", "modelValue", "onUpdate:modelValue"])
246
- ]),
247
- _: 2
248
- }, 1024)) : e.scheme === "basic" ? (i(), c(v, { key: 1 }, [
249
- u(n(_), null, {
250
- default: o(() => [
251
- u(V, {
252
- id: `http-basic-username-${e.uid}`,
253
- class: "text-c-2",
254
- modelValue: e.value,
255
- placeholder: "ScalarEnjoyer01",
256
- required: "",
257
- "onUpdate:modelValue": (a) => y(e, "value", a)
258
- }, {
259
- default: o(() => [
260
- f(" Username ")
261
- ]),
262
- _: 2
263
- }, 1032, ["id", "modelValue", "onUpdate:modelValue"])
264
- ]),
265
- _: 2
266
- }, 1024),
267
- u(n(_), null, {
268
- default: o(() => [
269
- u(V, {
270
- id: `http-basic-password-${e.uid}`,
271
- modelValue: e.secondValue,
272
- placeholder: "xxxxxx",
273
- type: "password",
274
- "onUpdate:modelValue": (a) => y(e, "secondValue", a)
275
- }, {
276
- default: o(() => [
277
- f(" Password ")
278
- ]),
279
- _: 2
280
- }, 1032, ["id", "modelValue", "onUpdate:modelValue"])
281
- ]),
282
- _: 2
283
- }, 1024)
284
- ], 64)) : A("", !0)
285
- ], 64)) : e.type === "apiKey" ? (i(), c(v, { key: 2 }, [
286
- n(w) ? (i(), b(n(_), { key: 1 }, {
287
- default: o(() => [
288
- u(V, {
289
- id: `api-key-value-${e.uid}`,
290
- modelValue: e.value,
291
- placeholder: "Value",
292
- "onUpdate:modelValue": (a) => y(e, "value", a)
293
- }, {
294
- default: o(() => [
295
- f(g(e.name), 1)
296
- ]),
297
- _: 2
298
- }, 1032, ["id", "modelValue", "onUpdate:modelValue"])
299
- ]),
300
- _: 2
301
- }, 1024)) : (i(), c(v, { key: 0 }, [
302
- u(n(_), null, {
303
- default: o(() => [
304
- u(V, {
305
- id: `api-key-name-${e.uid}`,
306
- modelValue: e.name,
307
- placeholder: "api-key",
308
- "onUpdate:modelValue": (a) => y(e, "name", a)
309
- }, {
310
- default: o(() => [
311
- f(" Name ")
312
- ]),
313
- _: 2
314
- }, 1032, ["id", "modelValue", "onUpdate:modelValue"])
315
- ]),
316
- _: 2
317
- }, 1024),
318
- u(n(_), null, {
319
- default: o(() => [
320
- u(V, {
321
- id: `api-key-value-add-${e.uid}`,
322
- modelValue: e.value,
323
- placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
324
- "onUpdate:modelValue": (a) => y(e, "value", a)
325
- }, {
326
- default: o(() => [
327
- f(" Value ")
328
- ]),
329
- _: 2
330
- }, 1032, ["id", "modelValue", "onUpdate:modelValue"])
331
- ]),
332
- _: 2
333
- }, 1024)
334
- ], 64))
335
- ], 64)) : e.type === "oauth2" ? (i(), b(n(ne), {
336
- key: 3,
337
- scheme: e
338
- }, null, 8, ["scheme"])) : A("", !0)
339
- ], 64))), 128))
340
- ]),
341
- _: 1
342
- })
343
- ])
344
- ]),
345
- _: 1
346
- }, 8, ["itemCount"]));
347
- }
348
- });
349
- export {
350
- Te as default
351
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/OAuth2.vue"],"names":[],"mappings":"AAwLA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAA;;YAO/E,oBAAoB;;YAApB,oBAAoB;;AA4f9B,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"}