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