@scalar/api-client 2.8.0 → 2.9.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 +90 -0
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +9 -10
- package/dist/components/CodeInput/CodeInput.vue2.js +5 -5
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +3 -3
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +3 -3
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +18 -20
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +13 -14
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +3 -3
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +3 -3
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +22 -24
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +1 -1
- package/dist/components/DataTable/DataTableInput.vue2.js +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +8 -9
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -10
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/IconSelector.vue.js +1 -1
- package/dist/components/ImportCollection/DropEventListener.vue.js +12 -12
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +8 -8
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -16
- package/dist/components/ImportCollection/PasteEventListener.vue.js +1 -1
- package/dist/components/ImportCollection/PrefetchError.vue.js +2 -2
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +5 -7
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +1 -1
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +3 -3
- package/dist/components/OpenApiClientButton.vue2.js +1 -1
- package/dist/components/Server/ServerSelector.vue.js +1 -2
- package/dist/components/SideNav/SideHelp.vue.js +13 -19
- package/dist/components/SideNav/SideNav.vue.js +4 -5
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +4 -5
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/TopNav/TopNav.vue.js +8 -10
- package/dist/components/TopNav/TopNavItem.vue2.js +8 -12
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +9 -11
- package/dist/hooks/useClientConfig.d.ts +9 -6
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -15
- package/dist/layouts/App/create-api-client-app.d.ts +3644 -3643
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +24 -18
- package/dist/layouts/Modal/create-api-client-modal.d.ts +5 -8089
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +28 -46
- package/dist/layouts/Modal/index.d.ts +2 -2
- package/dist/layouts/Modal/index.d.ts.map +1 -1
- package/dist/layouts/Modal/index.js +2 -5
- package/dist/layouts/Web/create-api-client-web.d.ts +20 -20
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.js +15 -12
- package/dist/libs/create-client.d.ts +25 -25
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +23 -23
- package/dist/libs/find-request.d.ts +2 -2
- package/dist/libs/postman.d.ts +1 -1
- package/dist/libs/postman.d.ts.map +1 -1
- package/dist/libs/postman.js +12 -12
- package/dist/libs/send-request/create-request-operation.js +8 -8
- package/dist/libs/send-request/create-request-operation.test.d.ts +2 -2
- package/dist/libs/validate-parameters.d.ts +10 -2
- package/dist/libs/validate-parameters.d.ts.map +1 -1
- package/dist/libs/validate-parameters.js +13 -6
- package/dist/plugins/plugin-manager.d.ts +1 -1
- package/dist/routes.d.ts +3 -184
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +6 -6
- package/dist/store/active-entities.d.ts +3 -3
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +2 -2
- package/dist/store/requests.d.ts +22 -22
- package/dist/store/router-params.d.ts.map +1 -1
- package/dist/store/store.d.ts +20 -20
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +2 -2
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +1 -1
- package/dist/v2/blocks/operation-code-sample/index.d.ts +1 -0
- package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/index.js +8 -6
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +5 -5
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +3 -3
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +3 -4
- package/dist/v2/blocks/scalar-address-bar-block/index.d.ts +1 -0
- package/dist/v2/blocks/scalar-address-bar-block/index.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +7 -8
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +44 -55
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +16 -18
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +41 -46
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +3 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +201 -187
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +8 -10
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +2 -3
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +2 -4
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +14 -16
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +3 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +3 -3
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +87 -85
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +10 -11
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue2.js +4 -5
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +3 -3
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.js +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue2.js +5 -5
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue2.js +9 -10
- package/dist/v2/components/TempReplaceMe.vue.d.ts +3 -0
- package/dist/v2/components/TempReplaceMe.vue.d.ts.map +1 -0
- package/dist/v2/components/TempReplaceMe.vue.js +12 -0
- package/dist/v2/components/resize/Resize.vue.d.ts +20 -0
- package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -0
- package/dist/v2/components/resize/Resize.vue.js +8 -0
- package/dist/v2/components/resize/Resize.vue2.js +36 -0
- package/dist/v2/components/resize/index.d.ts +3 -0
- package/dist/v2/components/resize/index.d.ts.map +1 -0
- package/dist/v2/components/resize/index.js +4 -0
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +39 -0
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -0
- package/dist/v2/components/sidebar/Sidebar.vue.js +95 -0
- package/dist/v2/components/sidebar/Sidebar.vue2.js +4 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +13 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +63 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue2.js +4 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts +10 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts.map +1 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue.js +52 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue2.js +4 -0
- package/dist/v2/components/sidebar/index.d.ts +4 -0
- package/dist/v2/components/sidebar/index.d.ts.map +1 -0
- package/dist/v2/components/sidebar/index.js +8 -0
- package/dist/v2/features/app/App.vue.d.ts +16 -0
- package/dist/v2/features/app/App.vue.d.ts.map +1 -0
- package/dist/v2/features/app/App.vue.js +72 -0
- package/dist/v2/features/app/App.vue3.js +5 -0
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +30 -0
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/AppSidebar.vue.js +7 -0
- package/dist/v2/features/app/components/AppSidebar.vue2.js +117 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +3 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.js +14 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts +3 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue.js +7 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue2.js +19 -0
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts +16 -0
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/WebTopNav.vue.js +28 -0
- package/dist/v2/features/app/components/WebTopNav.vue2.js +4 -0
- package/dist/v2/features/app/components/index.d.ts +2 -0
- package/dist/v2/features/app/components/index.d.ts.map +1 -0
- package/dist/v2/features/app/components/index.js +5 -0
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +25 -0
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -0
- package/dist/v2/features/app/helpers/create-api-client-app.js +21 -0
- package/dist/v2/features/app/helpers/routes.d.ts +103 -0
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -0
- package/dist/v2/features/app/helpers/routes.js +115 -0
- package/dist/v2/features/app/index.d.ts +2 -0
- package/dist/v2/features/app/index.d.ts.map +1 -0
- package/dist/v2/features/app/index.js +4 -0
- package/dist/v2/features/collection/DocumentCollection.test.d.ts +2 -0
- package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +1 -0
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts +12 -0
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/DocumentCollection.vue.js +4 -0
- package/dist/v2/features/collection/DocumentCollection.vue2.js +82 -0
- package/dist/v2/features/collection/WorkspaceCollection.test.d.ts +2 -0
- package/dist/v2/features/collection/WorkspaceCollection.test.d.ts.map +1 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +10 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +4 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue2.js +38 -0
- package/dist/v2/features/collection/components/Authentication.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Authentication.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +48 -0
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Authentication.vue.js +7 -0
- package/dist/v2/features/collection/components/Authentication.vue2.js +50 -0
- package/dist/v2/features/collection/components/Cookies.vue.d.ts +3 -0
- package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Cookies.vue.js +9 -0
- package/dist/v2/features/collection/components/Environment.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Environment.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Environment.vue.d.ts +89 -0
- package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Environment.vue.js +4 -0
- package/dist/v2/features/collection/components/Environment.vue2.js +34 -0
- package/dist/v2/features/collection/components/Form.vue.d.ts +29 -0
- package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Form.vue.js +83 -0
- package/dist/v2/features/collection/components/Form.vue2.js +4 -0
- package/dist/v2/features/collection/components/LabelInput.test.d.ts +2 -0
- package/dist/v2/features/collection/components/LabelInput.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts +10 -0
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/LabelInput.vue.js +7 -0
- package/dist/v2/features/collection/components/LabelInput.vue2.js +29 -0
- package/dist/v2/features/collection/components/Overview.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Overview.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Overview.vue.d.ts +14 -0
- package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Overview.vue.js +4 -0
- package/dist/v2/features/collection/components/Overview.vue2.js +91 -0
- package/dist/v2/features/collection/components/Servers.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Servers.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Servers.vue.d.ts +33 -0
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Servers.vue.js +4 -0
- package/dist/v2/features/collection/components/Servers.vue2.js +120 -0
- package/dist/v2/features/collection/components/Settings.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Settings.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Settings.vue.d.ts +17 -0
- package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Settings.vue.js +7 -0
- package/dist/v2/features/collection/components/Settings.vue2.js +100 -0
- package/dist/v2/features/collection/components/Tabs.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Tabs.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Tabs.vue.d.ts +6 -0
- package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Tabs.vue.js +46 -0
- package/dist/v2/features/collection/components/Tabs.vue2.js +4 -0
- package/dist/v2/features/environments/Environments.test.d.ts +2 -0
- package/dist/v2/features/environments/Environments.test.d.ts.map +1 -0
- package/dist/v2/features/environments/Environments.vue.d.ts +31 -0
- package/dist/v2/features/environments/Environments.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/Environments.vue.js +65 -0
- package/dist/v2/features/environments/Environments.vue2.js +4 -0
- package/dist/v2/features/environments/EnvironmentsList.test.d.ts +2 -0
- package/dist/v2/features/environments/EnvironmentsList.test.d.ts.map +1 -0
- package/dist/v2/features/environments/EnvironmentsList.vue.d.ts +98 -0
- package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/EnvironmentsList.vue.js +114 -0
- package/dist/v2/features/environments/EnvironmentsList.vue2.js +4 -0
- package/dist/v2/features/environments/components/Environment.test.d.ts +2 -0
- package/dist/v2/features/environments/components/Environment.test.d.ts.map +1 -0
- package/dist/v2/features/environments/components/Environment.vue.d.ts +70 -0
- package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/Environment.vue.js +104 -0
- package/dist/v2/features/environments/components/Environment.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts +20 -0
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.js +48 -0
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts +2 -0
- package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts +10 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue.js +97 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts +19 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +63 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +14 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +53 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts +18 -0
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.js +35 -0
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts +2 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts +23 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +7 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +122 -0
- package/dist/v2/features/environments/index.d.ts +5 -0
- package/dist/v2/features/environments/index.d.ts.map +1 -0
- package/dist/v2/features/environments/index.js +6 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts +2 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +25 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +7 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +156 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts +2 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts +32 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.js +7 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue2.js +58 -0
- package/dist/v2/features/global-cookies/index.d.ts +2 -0
- package/dist/v2/features/global-cookies/index.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/index.js +4 -0
- package/dist/v2/features/modal/Modal.vue.d.ts +16 -0
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -0
- package/dist/v2/features/modal/Modal.vue.js +7 -0
- package/dist/v2/features/modal/Modal.vue2.js +81 -0
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +53 -0
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -0
- package/dist/v2/features/modal/helpers/create-api-client-modal.js +46 -0
- package/dist/v2/features/modal/index.d.ts +2 -0
- package/dist/v2/features/modal/index.d.ts.map +1 -0
- package/dist/v2/features/modal/index.js +4 -0
- package/dist/v2/features/operation/Operation.test.d.ts +2 -0
- package/dist/v2/features/operation/Operation.test.d.ts.map +1 -0
- package/dist/v2/features/operation/Operation.vue.d.ts +79 -0
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -0
- package/dist/v2/features/operation/Operation.vue.js +124 -0
- package/dist/v2/features/operation/Operation.vue2.js +4 -0
- package/dist/v2/features/operation/components/Header.test.d.ts +2 -0
- package/dist/v2/features/operation/components/Header.test.d.ts.map +1 -0
- package/dist/v2/features/operation/components/Header.vue.d.ts +85 -0
- package/dist/v2/features/operation/components/Header.vue.d.ts.map +1 -0
- package/dist/v2/features/operation/components/Header.vue.js +7 -0
- package/dist/v2/features/operation/components/Header.vue2.js +97 -0
- package/dist/v2/features/operation/index.d.ts +3 -0
- package/dist/v2/features/operation/index.d.ts.map +1 -0
- package/dist/v2/features/operation/index.js +4 -0
- package/dist/v2/features/settings/Settings.test.d.ts +2 -0
- package/dist/v2/features/settings/Settings.test.d.ts.map +1 -0
- package/dist/v2/features/settings/Settings.vue.d.ts +22 -0
- package/dist/v2/features/settings/Settings.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/Settings.vue.js +268 -0
- package/dist/v2/features/settings/Settings.vue2.js +4 -0
- package/dist/v2/features/settings/components/Appearance.vue.d.ts +10 -0
- package/dist/v2/features/settings/components/Appearance.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/components/Appearance.vue.js +88 -0
- package/dist/v2/features/settings/components/Appearance.vue2.js +4 -0
- package/dist/v2/features/settings/components/Section.vue.d.ts +14 -0
- package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/components/Section.vue.js +24 -0
- package/dist/v2/features/settings/components/Section.vue2.js +4 -0
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +9 -0
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -0
- package/dist/v2/features/settings/helpers/get-theme-colors.js +17 -0
- package/dist/v2/features/settings/index.d.ts +2 -0
- package/dist/v2/features/settings/index.d.ts.map +1 -0
- package/dist/v2/features/settings/index.js +4 -0
- package/dist/v2/hooks/use-document-watcher.d.ts +28 -0
- package/dist/v2/hooks/use-document-watcher.d.ts.map +1 -0
- package/dist/v2/hooks/use-document-watcher.test.d.ts +2 -0
- package/dist/v2/hooks/use-document-watcher.test.d.ts.map +1 -0
- package/dist/v2/hooks/use-workspace-client-events.d.ts +8 -0
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -0
- package/dist/v2/hooks/use-workspace-client-events.js +13 -0
- package/dist/v2/plugins.d.ts +44 -0
- package/dist/v2/plugins.d.ts.map +1 -0
- package/dist/v2/types/layout.d.ts +10 -0
- package/dist/v2/types/layout.d.ts.map +1 -0
- package/dist/views/Collection/Collection.vue2.js +6 -6
- package/dist/views/Collection/CollectionCookies.vue2.js +3 -3
- package/dist/views/Collection/CollectionEnvironment.vue2.js +12 -13
- package/dist/views/Collection/CollectionScripts.vue2.js +3 -3
- package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionServerForm.vue.js +42 -62
- package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionServers.vue2.js +43 -50
- package/dist/views/Collection/CollectionSettings.vue.js +2 -2
- package/dist/views/Collection/CollectionSettings.vue2.js +5 -6
- package/dist/views/Collection/CollectionSync.vue2.js +3 -3
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +10 -12
- package/dist/views/Collection/components/MarkdownInput.vue2.js +2 -4
- package/dist/views/Cookies/CookieModal.vue2.js +6 -6
- package/dist/views/Cookies/Cookies.vue2.js +6 -6
- package/dist/views/Environment/Environment.vue2.js +5 -6
- package/dist/views/Environment/EnvironmentModal.vue.js +13 -14
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +8 -9
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue.js +2 -2
- package/dist/views/Request/RequestRoot.vue2.js +79 -80
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +10 -11
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +44 -55
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +10 -12
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +39 -44
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +96 -78
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +3 -3
- package/dist/views/Request/RequestSection/RequestParams.vue.js +2 -3
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +55 -55
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +15 -17
- package/dist/views/Request/RequestSidebar.vue2.js +7 -8
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +31 -32
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +13 -16
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +11 -13
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +4 -5
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +4 -5
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +4 -4
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +11 -13
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +7 -8
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +11 -14
- package/dist/views/Request/libs/oauth2.d.ts +1 -1
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +40 -42
- package/dist/views/Settings/components/SettingsAppearance.vue.js +8 -11
- package/package.json +52 -27
- package/dist/hooks/useKeyMap.d.ts +0 -2
- package/dist/hooks/useKeyMap.d.ts.map +0 -1
- package/dist/hooks/useKeyMap.js +0 -9
- package/dist/router.d.ts +0 -8
- package/dist/router.d.ts.map +0 -1
- package/dist/router.js +0 -20
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-client.d.ts","sourceRoot":"","sources":["../../src/libs/create-client.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"create-client.d.ts","sourceRoot":"","sources":["../../src/libs/create-client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AACrE,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,sCAAsC,CAAA;AAGtF,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAClE,OAAO,EAAE,KAAK,sBAAsB,EAAgC,MAAM,6BAA6B,CAAA;AACvG,OAAO,KAAK,EAAE,O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+D,CAAC;uDAAiE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAvB5sU,4CAA4C;gCAChB,MAAM,eAAe,MAAM;CAqB1D,CAAA"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { loadAllResources as D } from "./local-storage.js";
|
|
6
|
-
import { createActiveEntitiesStore as G, ACTIVE_ENTITIES_SYMBOL as V } from "../store/active-entities.js";
|
|
7
|
-
import { createWorkspaceStore as z, WORKSPACE_SYMBOL as H } from "../store/store.js";
|
|
8
|
-
import { workspaceSchema as J } from "@scalar/oas-utils/entities/workspace";
|
|
9
|
-
import { prettyPrintJson as Q } from "@scalar/oas-utils/helpers";
|
|
10
|
-
import { LS_KEYS as X } from "@scalar/helpers/object/local-storage";
|
|
11
|
-
import { DATA_VERSION_LS_LEY as Z, DATA_VERSION as $ } from "@scalar/oas-utils/migrations";
|
|
1
|
+
import { LS_KEYS as N } from "@scalar/helpers/object/local-storage";
|
|
2
|
+
import { workspaceSchema as F } from "@scalar/oas-utils/entities/workspace";
|
|
3
|
+
import { prettyPrintJson as j } from "@scalar/oas-utils/helpers";
|
|
4
|
+
import { DATA_VERSION_LS_LEY as W, DATA_VERSION as K } from "@scalar/oas-utils/migrations";
|
|
12
5
|
import { apiClientConfigurationSchema as _ } from "@scalar/types/api-reference";
|
|
13
|
-
import { ref as
|
|
6
|
+
import { ref as D, createApp as G, watch as V } from "vue";
|
|
7
|
+
import { CLIENT_CONFIGURATION_SYMBOL as z } from "../hooks/useClientConfig.js";
|
|
8
|
+
import { LAYOUT_SYMBOL as H } from "../hooks/useLayout.js";
|
|
9
|
+
import { createSidebarState as J, SIDEBAR_SYMBOL as Q } from "../hooks/useSidebar.js";
|
|
10
|
+
import { getRequestUidByPathMethod as X } from "./get-request-uid-by-path-method.js";
|
|
11
|
+
import { loadAllResources as Z } from "./local-storage.js";
|
|
12
|
+
import { createActiveEntitiesStore as $, ACTIVE_ENTITIES_SYMBOL as ee } from "../store/active-entities.js";
|
|
13
|
+
import { createWorkspaceStore as te, WORKSPACE_SYMBOL as re } from "../store/store.js";
|
|
14
14
|
import { createPluginManager as oe } from "../plugins/plugin-manager.js";
|
|
15
15
|
import { PLUGIN_MANAGER_SYMBOL as ae } from "../plugins/hooks/usePluginManager.js";
|
|
16
16
|
const Me = ({
|
|
@@ -24,14 +24,14 @@ const Me = ({
|
|
|
24
24
|
layout: m = "desktop",
|
|
25
25
|
router: n
|
|
26
26
|
}) => {
|
|
27
|
-
const a =
|
|
27
|
+
const a = D(_.parse(U)), o = x || te({
|
|
28
28
|
proxyUrl: a.value.proxyUrl,
|
|
29
29
|
theme: a.value.theme,
|
|
30
30
|
showSidebar: a.value.showSidebar ?? !0,
|
|
31
31
|
hideClientButton: a.value.hideClientButton ?? !1,
|
|
32
32
|
_integration: a.value._integration,
|
|
33
33
|
useLocalStorage: C
|
|
34
|
-
}), f =
|
|
34
|
+
}), f = $({ ...o, router: n }), b = J({ layout: m }), E = oe({
|
|
35
35
|
plugins: a.value.plugins ?? []
|
|
36
36
|
}), v = () => {
|
|
37
37
|
try {
|
|
@@ -40,13 +40,13 @@ const Me = ({
|
|
|
40
40
|
return !1;
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
if (v() && localStorage.getItem(
|
|
43
|
+
if (v() && localStorage.getItem(N.WORKSPACE) && !l)
|
|
44
44
|
try {
|
|
45
45
|
const t = {};
|
|
46
46
|
let e = 0, r = 0, s = "";
|
|
47
47
|
for (s in localStorage)
|
|
48
48
|
Object.hasOwn(localStorage, s) && (r = (localStorage[s].length + s.length) * 2, e += r, t[s] = (r / 1024).toFixed(2) + " KB");
|
|
49
|
-
t.Total = (e / 1024).toFixed(2) + " KB", console.table(t),
|
|
49
|
+
t.Total = (e / 1024).toFixed(2) + " KB", console.table(t), Z(o);
|
|
50
50
|
} catch (t) {
|
|
51
51
|
console.warn("Failed to load from localStorage:", t);
|
|
52
52
|
}
|
|
@@ -57,20 +57,20 @@ const Me = ({
|
|
|
57
57
|
proxyUrl: a.value.proxyUrl
|
|
58
58
|
}), v())
|
|
59
59
|
try {
|
|
60
|
-
localStorage.setItem(
|
|
60
|
+
localStorage.setItem(W, K);
|
|
61
61
|
} catch (t) {
|
|
62
62
|
console.warn("Failed to set localStorage version:", t);
|
|
63
63
|
}
|
|
64
64
|
} else {
|
|
65
|
-
const t =
|
|
65
|
+
const t = F.parse({
|
|
66
66
|
uid: "default",
|
|
67
67
|
name: "Workspace",
|
|
68
68
|
proxyUrl: a.value.proxyUrl
|
|
69
69
|
});
|
|
70
70
|
o.workspaceMutators.rawAdd(t);
|
|
71
71
|
}
|
|
72
|
-
const i =
|
|
73
|
-
i.use(n), i.provide(
|
|
72
|
+
const i = G(y);
|
|
73
|
+
i.use(n), i.provide(re, o), i.provide(H, m), i.provide(ee, f), i.provide(Q, b), i.provide(z, a), i.provide(ae, E), i.config.idPrefix = "scalar-client";
|
|
74
74
|
const {
|
|
75
75
|
collectionMutators: k,
|
|
76
76
|
importSpecFile: I,
|
|
@@ -95,7 +95,7 @@ const Me = ({
|
|
|
95
95
|
};
|
|
96
96
|
L && w();
|
|
97
97
|
const M = (t) => {
|
|
98
|
-
const e =
|
|
98
|
+
const e = X(h, t);
|
|
99
99
|
e ? n.push({
|
|
100
100
|
name: "request",
|
|
101
101
|
query: t?._source ? { source: t._source } : {},
|
|
@@ -138,7 +138,7 @@ const Me = ({
|
|
|
138
138
|
},
|
|
139
139
|
/** Update the currently selected server via URL */
|
|
140
140
|
onUpdateServer: (t) => {
|
|
141
|
-
|
|
141
|
+
V(
|
|
142
142
|
() => u.value?.selectedServerUid,
|
|
143
143
|
(e) => {
|
|
144
144
|
const r = Object.values(g).find((s) => s.uid === e);
|
|
@@ -180,7 +180,7 @@ const Me = ({
|
|
|
180
180
|
if (!r)
|
|
181
181
|
return;
|
|
182
182
|
const s = Object.keys(r.requestBody?.content || {})[0] || "", c = r.requestBody?.content?.[s]?.examples?.[t];
|
|
183
|
-
c && R.edit(r.examples[0], "body.raw.value",
|
|
183
|
+
c && R.edit(r.examples[0], "body.raw.value", j(c.value));
|
|
184
184
|
}
|
|
185
185
|
};
|
|
186
186
|
};
|
|
@@ -12,7 +12,7 @@ export declare const findRequestByPathMethod: (path: string, method: string, req
|
|
|
12
12
|
type: "request";
|
|
13
13
|
uid: string & import("zod").$brand<"operation">;
|
|
14
14
|
path: string;
|
|
15
|
-
method: "delete" | "get" | "
|
|
15
|
+
method: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
|
|
16
16
|
servers: (string & import("zod").$brand<"server">)[];
|
|
17
17
|
selectedServerUid: (string & import("zod").$brand<"server">) | null;
|
|
18
18
|
examples: (string & import("zod").$brand<"example">)[];
|
|
@@ -38,7 +38,7 @@ export declare const findRequestByPathMethod: (path: string, method: string, req
|
|
|
38
38
|
description?: string | undefined;
|
|
39
39
|
schema?: unknown;
|
|
40
40
|
content?: unknown;
|
|
41
|
-
style?: "matrix" | "
|
|
41
|
+
style?: "matrix" | "label" | "form" | "simple" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
42
42
|
explode?: boolean | undefined;
|
|
43
43
|
example?: unknown;
|
|
44
44
|
examples?: Record<string, {
|
package/dist/libs/postman.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Checks if the given content is a Postman collection */
|
|
2
2
|
export declare function isPostmanCollection(content: string): boolean;
|
|
3
3
|
/** Converts a Postman collection JSON string to an OpenAPI JSON string */
|
|
4
|
-
export declare function convertPostmanToOpenApi(postmanJson: string):
|
|
4
|
+
export declare function convertPostmanToOpenApi(postmanJson: string): string;
|
|
5
5
|
/** Extracts details from a Postman collection JSON string */
|
|
6
6
|
export declare function getPostmanDocumentDetails(content: string): {
|
|
7
7
|
type: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postman.d.ts","sourceRoot":"","sources":["../../src/libs/postman.ts"],"names":[],"mappings":"AAEA,0DAA0D;AAC1D,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAS5D;AAED,0EAA0E;AAC1E,
|
|
1
|
+
{"version":3,"file":"postman.d.ts","sourceRoot":"","sources":["../../src/libs/postman.ts"],"names":[],"mappings":"AAEA,0DAA0D;AAC1D,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAS5D;AAED,0EAA0E;AAC1E,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAQnE;AAED,6DAA6D;AAC7D,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG;IAC1D,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB,GAAG,IAAI,CAcP"}
|
package/dist/libs/postman.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { convert as r } from "@scalar/postman-to-openapi";
|
|
2
|
-
function e(
|
|
2
|
+
function e(n) {
|
|
3
3
|
try {
|
|
4
|
-
const
|
|
5
|
-
return
|
|
4
|
+
const o = JSON.parse(n);
|
|
5
|
+
return o.info?._postman_id !== void 0 && new URL(o.info?.schema).host === "schema.getpostman.com";
|
|
6
6
|
} catch {
|
|
7
7
|
return !1;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
function i(n) {
|
|
11
11
|
try {
|
|
12
|
-
const
|
|
12
|
+
const o = JSON.parse(n), t = r(o);
|
|
13
13
|
return JSON.stringify(t, null, 2);
|
|
14
14
|
} catch {
|
|
15
15
|
throw new Error("Failed to convert Postman collection to OpenAPI");
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function c(n) {
|
|
19
19
|
try {
|
|
20
|
-
if (e(
|
|
21
|
-
const
|
|
20
|
+
if (e(n)) {
|
|
21
|
+
const o = JSON.parse(n);
|
|
22
22
|
return {
|
|
23
23
|
type: "json",
|
|
24
|
-
title:
|
|
25
|
-
version:
|
|
24
|
+
title: o.info?.name || "Postman Collection",
|
|
25
|
+
version: o.info?.version || "1.0"
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
return null;
|
|
@@ -31,7 +31,7 @@ function i(o) {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
export {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
i as convertPostmanToOpenApi,
|
|
35
|
+
c as getPostmanDocumentDetails,
|
|
36
36
|
e as isPostmanCollection
|
|
37
37
|
};
|
|
@@ -9,7 +9,7 @@ import { decodeBuffer as te } from "./decode-buffer.js";
|
|
|
9
9
|
import { setRequestCookies as oe, getCookieHeader as re } from "./set-request-cookies.js";
|
|
10
10
|
import { replaceTemplateVariables as c } from "../string-template.js";
|
|
11
11
|
import { buildRequestSecurity as se } from "./build-request-security.js";
|
|
12
|
-
const
|
|
12
|
+
const we = ({
|
|
13
13
|
environment: q,
|
|
14
14
|
example: s,
|
|
15
15
|
globalCookies: v,
|
|
@@ -22,13 +22,13 @@ const be = ({
|
|
|
22
22
|
pluginManager: h
|
|
23
23
|
}) => {
|
|
24
24
|
try {
|
|
25
|
-
const o = q ?? {},
|
|
25
|
+
const o = q ?? {}, w = new AbortController(), b = s.parameters.path.reduce((t, e) => (e.enabled && (t[e.key] = c(e.value, o)), t), {}), L = c(k?.url ?? "", o), l = c(c(a.path, o), b);
|
|
26
26
|
let r = L || l;
|
|
27
27
|
if (!r)
|
|
28
28
|
throw P.URL_EMPTY;
|
|
29
29
|
Object.entries(k?.variables ?? {}).forEach(([t, e]) => {
|
|
30
30
|
r = c(r, {
|
|
31
|
-
[t]:
|
|
31
|
+
[t]: b[t] || e.default
|
|
32
32
|
});
|
|
33
33
|
});
|
|
34
34
|
const z = ee(s, o, a), B = M(s, o), { body: F } = $(a.method, s, o), { cookieParams: _ } = oe({
|
|
@@ -62,11 +62,11 @@ const be = ({
|
|
|
62
62
|
{
|
|
63
63
|
request: y,
|
|
64
64
|
sendRequest: async () => {
|
|
65
|
-
m?.emit("start"), h && h.executeHook("onBeforeRequest", { request: y });
|
|
65
|
+
m?.emit("start"), h && await h.executeHook("onBeforeRequest", { request: y });
|
|
66
66
|
const t = Date.now();
|
|
67
67
|
try {
|
|
68
68
|
const e = await fetch(y, {
|
|
69
|
-
signal:
|
|
69
|
+
signal: w.signal
|
|
70
70
|
}), S = e.headers.get("content-type")?.startsWith("text/event-stream");
|
|
71
71
|
m?.emit("stop");
|
|
72
72
|
const X = Date.now() - t, j = e.clone(), R = Z(e.headers, T(u, r)), I = e.headers.get("content-type") ?? "text/plain;charset=UTF-8", C = await j.arrayBuffer(), Q = te(C, I), i = e.clone(), V = i.statusText || N[i.status]?.name || "", K = [204, 205, 304].includes(i.status), d = new Response(K ? null : i.body, {
|
|
@@ -74,7 +74,7 @@ const be = ({
|
|
|
74
74
|
statusText: V,
|
|
75
75
|
headers: i.headers
|
|
76
76
|
});
|
|
77
|
-
h && h.executeHook("onResponseReceived", { response: d, operation: a });
|
|
77
|
+
h && await h.executeHook("onResponseReceived", { response: d, operation: a });
|
|
78
78
|
const g = "getSetCookie" in d.headers && typeof d.headers.getSetCookie == "function" ? d.headers.getSetCookie() : [];
|
|
79
79
|
return S && e.body ? [
|
|
80
80
|
null,
|
|
@@ -113,7 +113,7 @@ const be = ({
|
|
|
113
113
|
return m?.emit("abort"), [U(e, P.REQUEST_FAILED), null];
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
|
-
controller:
|
|
116
|
+
controller: w
|
|
117
117
|
}
|
|
118
118
|
];
|
|
119
119
|
} catch (o) {
|
|
@@ -121,5 +121,5 @@ const be = ({
|
|
|
121
121
|
}
|
|
122
122
|
};
|
|
123
123
|
export {
|
|
124
|
-
|
|
124
|
+
we as createRequestOperation
|
|
125
125
|
};
|
|
@@ -15,7 +15,7 @@ export declare const createRequestPayload: (metaRequestPayload?: MetaRequestPayl
|
|
|
15
15
|
type: "request";
|
|
16
16
|
uid: string & z.core.$brand<"operation">;
|
|
17
17
|
path: string;
|
|
18
|
-
method: "delete" | "get" | "
|
|
18
|
+
method: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
|
|
19
19
|
servers: (string & z.core.$brand<"server">)[];
|
|
20
20
|
selectedServerUid: (string & z.core.$brand<"server">) | null;
|
|
21
21
|
examples: (string & z.core.$brand<"example">)[];
|
|
@@ -41,7 +41,7 @@ export declare const createRequestPayload: (metaRequestPayload?: MetaRequestPayl
|
|
|
41
41
|
description?: string | undefined;
|
|
42
42
|
schema?: unknown;
|
|
43
43
|
content?: unknown;
|
|
44
|
-
style?: "matrix" | "
|
|
44
|
+
style?: "matrix" | "label" | "form" | "simple" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
45
45
|
explode?: boolean | undefined;
|
|
46
46
|
example?: unknown;
|
|
47
47
|
examples?: Record<string, {
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import type { RequestExample } from '@scalar/oas-utils/entities/spec';
|
|
2
|
+
export type ValidationResult = {
|
|
3
|
+
invalidParams: Set<string>;
|
|
4
|
+
hasBlockingErrors: boolean;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
|
-
* Validate required parameters from an example
|
|
7
|
+
* Validate required parameters from an example.
|
|
8
|
+
*
|
|
9
|
+
* Returns both the set of invalid parameter keys and a flag indicating
|
|
10
|
+
* if there are blocking errors (empty required path parameters) that
|
|
11
|
+
* should prevent the request from being sent.
|
|
4
12
|
*/
|
|
5
|
-
export declare const validateParameters: (example: Partial<RequestExample> | null) =>
|
|
13
|
+
export declare const validateParameters: (example: Partial<RequestExample> | null) => ValidationResult;
|
|
6
14
|
//# sourceMappingURL=validate-parameters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate-parameters.d.ts","sourceRoot":"","sources":["../../src/libs/validate-parameters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAErE
|
|
1
|
+
{"version":3,"file":"validate-parameters.d.ts","sourceRoot":"","sources":["../../src/libs/validate-parameters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAErE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC1B,iBAAiB,EAAE,OAAO,CAAA;CAC3B,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAAI,SAAS,OAAO,CAAC,cAAc,CAAC,GAAG,IAAI,KAAG,gBA6B5E,CAAA"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
const i = (a) => {
|
|
2
|
+
const r = {
|
|
3
|
+
invalidParams: /* @__PURE__ */ new Set(),
|
|
4
|
+
hasBlockingErrors: !1
|
|
5
|
+
};
|
|
6
|
+
return a && (a.parameters?.path?.forEach((e) => {
|
|
7
|
+
e.enabled && e.value.trim() === "" && (r.invalidParams.add(e.key), r.hasBlockingErrors = !0);
|
|
8
|
+
}), ["query", "headers", "cookies"].forEach((e) => {
|
|
9
|
+
a.parameters?.[e]?.forEach((s) => {
|
|
10
|
+
s.required && s.value === "" && r.invalidParams.add(s.key);
|
|
11
|
+
});
|
|
12
|
+
})), r;
|
|
6
13
|
};
|
|
7
14
|
export {
|
|
8
|
-
|
|
15
|
+
i as validateParameters
|
|
9
16
|
};
|
|
@@ -23,7 +23,7 @@ export declare const createPluginManager: ({ plugins }: CreatePluginManagerParam
|
|
|
23
23
|
/**
|
|
24
24
|
* Execute a hook for a specific event
|
|
25
25
|
*/
|
|
26
|
-
executeHook: <E extends keyof HookFunctions>(event: E, ...args: HookFunctions[E] extends z.ZodFunction<infer Args, any> ? z.infer<Args> : any) => Promise<
|
|
26
|
+
executeHook: <E extends keyof HookFunctions>(event: E, ...args: HookFunctions[E] extends z.ZodFunction<infer Args, any> ? z.infer<Args> : any) => Promise<unknown[]>;
|
|
27
27
|
};
|
|
28
28
|
export type PluginManager = ReturnType<typeof createPluginManager>;
|
|
29
29
|
export declare const PLUGIN_MANAGER_SYMBOL: InjectionKey<PluginManager>;
|
package/dist/routes.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RouteLocationNormalized } from 'vue-router';
|
|
1
|
+
import type { RouteLocationNormalized, RouteRecordRaw } from 'vue-router';
|
|
2
2
|
export declare enum PathId {
|
|
3
3
|
Request = "request",
|
|
4
4
|
Examples = "examples",
|
|
@@ -23,188 +23,7 @@ export declare function redirectToActiveWorkspace(): {
|
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
/** Routes required by the API client modal */
|
|
26
|
-
export declare const modalRoutes:
|
|
27
|
-
name: string;
|
|
28
|
-
path: string;
|
|
29
|
-
redirect: typeof redirectToActiveWorkspace;
|
|
30
|
-
children?: undefined;
|
|
31
|
-
} | {
|
|
32
|
-
name: string;
|
|
33
|
-
path: string;
|
|
34
|
-
redirect: {
|
|
35
|
-
name: string;
|
|
36
|
-
params: {
|
|
37
|
-
workspace: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
children?: undefined;
|
|
41
|
-
} | {
|
|
42
|
-
name: string;
|
|
43
|
-
path: string;
|
|
44
|
-
redirect: {
|
|
45
|
-
name: string;
|
|
46
|
-
params?: undefined;
|
|
47
|
-
};
|
|
48
|
-
children: {
|
|
49
|
-
name: string;
|
|
50
|
-
path: string;
|
|
51
|
-
component: () => Promise<typeof import("./views/Request/RequestRoot.vue.js")>;
|
|
52
|
-
redirect: (to: import("vue-router").RouteLocationGeneric) => {
|
|
53
|
-
name: string;
|
|
54
|
-
params: {
|
|
55
|
-
request: string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
children: ({
|
|
59
|
-
name: string;
|
|
60
|
-
path: string;
|
|
61
|
-
component: () => Promise<typeof import("./views/Request/Request.vue.js")>;
|
|
62
|
-
redirect?: undefined;
|
|
63
|
-
children?: undefined;
|
|
64
|
-
} | {
|
|
65
|
-
name: string;
|
|
66
|
-
path: string;
|
|
67
|
-
component: () => Promise<typeof import("./views/Collection/Collection.vue.js")>;
|
|
68
|
-
redirect: () => {
|
|
69
|
-
name: string;
|
|
70
|
-
};
|
|
71
|
-
children: ({
|
|
72
|
-
name: string;
|
|
73
|
-
path: string;
|
|
74
|
-
component: () => Promise<typeof import("./views/Collection/CollectionOverview.vue.js")>;
|
|
75
|
-
children?: undefined;
|
|
76
|
-
} | {
|
|
77
|
-
name: string;
|
|
78
|
-
path: string;
|
|
79
|
-
component: () => Promise<typeof import("./views/Collection/CollectionServers.vue.js")>;
|
|
80
|
-
children: {
|
|
81
|
-
name: string;
|
|
82
|
-
path: string;
|
|
83
|
-
component: () => Promise<typeof import("./views/Collection/CollectionServers.vue.js")>;
|
|
84
|
-
}[];
|
|
85
|
-
})[];
|
|
86
|
-
})[];
|
|
87
|
-
}[];
|
|
88
|
-
})[];
|
|
26
|
+
export declare const modalRoutes: RouteRecordRaw[];
|
|
89
27
|
/** Routes for the API client app */
|
|
90
|
-
export declare const routes:
|
|
91
|
-
name: string;
|
|
92
|
-
path: string;
|
|
93
|
-
redirect: typeof redirectToActiveWorkspace;
|
|
94
|
-
children?: undefined;
|
|
95
|
-
} | {
|
|
96
|
-
name: string;
|
|
97
|
-
path: string;
|
|
98
|
-
redirect: {
|
|
99
|
-
name: string;
|
|
100
|
-
params: {
|
|
101
|
-
workspace: string;
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
children?: undefined;
|
|
105
|
-
} | {
|
|
106
|
-
name: string;
|
|
107
|
-
path: string;
|
|
108
|
-
redirect: {
|
|
109
|
-
name: string;
|
|
110
|
-
params?: undefined;
|
|
111
|
-
};
|
|
112
|
-
children: ({
|
|
113
|
-
name: string;
|
|
114
|
-
path: string;
|
|
115
|
-
component: () => Promise<typeof import("./views/Request/RequestRoot.vue.js")>;
|
|
116
|
-
redirect: (to: import("vue-router").RouteLocationGeneric) => {
|
|
117
|
-
name: string;
|
|
118
|
-
params: {
|
|
119
|
-
request: string;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
children: ({
|
|
123
|
-
name: string;
|
|
124
|
-
path: string;
|
|
125
|
-
component: () => Promise<typeof import("./views/Request/Request.vue.js")>;
|
|
126
|
-
redirect?: undefined;
|
|
127
|
-
children?: undefined;
|
|
128
|
-
} | {
|
|
129
|
-
name: string;
|
|
130
|
-
path: string;
|
|
131
|
-
component: () => Promise<typeof import("./views/Collection/Collection.vue.js")>;
|
|
132
|
-
redirect: () => {
|
|
133
|
-
name: string;
|
|
134
|
-
};
|
|
135
|
-
children: ({
|
|
136
|
-
name: string;
|
|
137
|
-
path: string;
|
|
138
|
-
component: () => Promise<typeof import("./views/Collection/CollectionOverview.vue.js")>;
|
|
139
|
-
children?: undefined;
|
|
140
|
-
} | {
|
|
141
|
-
name: string;
|
|
142
|
-
path: string;
|
|
143
|
-
component: () => Promise<typeof import("./views/Collection/CollectionServers.vue.js")>;
|
|
144
|
-
children: {
|
|
145
|
-
name: string;
|
|
146
|
-
path: string;
|
|
147
|
-
component: () => Promise<typeof import("./views/Collection/CollectionServers.vue.js")>;
|
|
148
|
-
}[];
|
|
149
|
-
})[];
|
|
150
|
-
})[];
|
|
151
|
-
} | {
|
|
152
|
-
name: string;
|
|
153
|
-
path: string;
|
|
154
|
-
redirect: (to: import("vue-router").RouteLocationGeneric) => {
|
|
155
|
-
name: string;
|
|
156
|
-
params: {
|
|
157
|
-
environment: string;
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
component?: undefined;
|
|
161
|
-
props?: undefined;
|
|
162
|
-
} | {
|
|
163
|
-
name: string;
|
|
164
|
-
path: string;
|
|
165
|
-
component: () => Promise<typeof import("./views/Environment/Environment.vue.js")>;
|
|
166
|
-
redirect?: undefined;
|
|
167
|
-
props?: undefined;
|
|
168
|
-
} | {
|
|
169
|
-
name: string;
|
|
170
|
-
path: string;
|
|
171
|
-
component: () => Promise<typeof import("./views/Environment/Environment.vue.js")>;
|
|
172
|
-
props: true;
|
|
173
|
-
redirect?: undefined;
|
|
174
|
-
} | {
|
|
175
|
-
name: string;
|
|
176
|
-
path: string;
|
|
177
|
-
redirect: (to: import("vue-router").RouteLocationGeneric) => {
|
|
178
|
-
name: string;
|
|
179
|
-
params: {
|
|
180
|
-
cookies: string;
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
component?: undefined;
|
|
184
|
-
props?: undefined;
|
|
185
|
-
} | {
|
|
186
|
-
name: string;
|
|
187
|
-
path: string;
|
|
188
|
-
redirect: (to: import("vue-router").RouteLocationGeneric) => {
|
|
189
|
-
name: string;
|
|
190
|
-
params: {
|
|
191
|
-
collection: string;
|
|
192
|
-
servers: string;
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
component?: undefined;
|
|
196
|
-
props?: undefined;
|
|
197
|
-
} | {
|
|
198
|
-
name: string;
|
|
199
|
-
path: string;
|
|
200
|
-
redirect: (to: import("vue-router").RouteLocationGeneric) => {
|
|
201
|
-
name: string;
|
|
202
|
-
params: {
|
|
203
|
-
settings: string;
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
component?: undefined;
|
|
207
|
-
props?: undefined;
|
|
208
|
-
})[];
|
|
209
|
-
})[];
|
|
28
|
+
export declare const routes: RouteRecordRaw[];
|
|
210
29
|
//# sourceMappingURL=routes.d.ts.map
|
package/dist/routes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAEzE,oBAAY,MAAM;IAChB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,QAAQ,aAAa;CACtB;AAKD,4EAA4E;AAC5E,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,uBAAuB,QAM9D;AAED,+DAA+D;AAC/D,wBAAgB,yBAAyB;;;;;;;;EAkBxC;AAsFD,8CAA8C;AAC9C,eAAO,MAAM,WAAW,EAwBnB,cAAc,EAAE,CAAA;AAErB,oCAAoC;AACpC,eAAO,MAAM,MAAM,EAmFd,cAAc,EAAE,CAAA"}
|
package/dist/routes.js
CHANGED
|
@@ -20,7 +20,7 @@ const r = [
|
|
|
20
20
|
name: "request.root",
|
|
21
21
|
path: "",
|
|
22
22
|
component: () => import("./views/Request/RequestRoot.vue.js"),
|
|
23
|
-
redirect: (e) => ({
|
|
23
|
+
redirect: (e, t) => ({
|
|
24
24
|
name: "request",
|
|
25
25
|
params: { ...e.params, request: "default" }
|
|
26
26
|
}),
|
|
@@ -39,7 +39,7 @@ const r = [
|
|
|
39
39
|
name: "collection",
|
|
40
40
|
path: "collection/:collection",
|
|
41
41
|
component: () => import("./views/Collection/Collection.vue.js"),
|
|
42
|
-
redirect: () => ({
|
|
42
|
+
redirect: (e, t) => ({
|
|
43
43
|
name: "collection.overview"
|
|
44
44
|
}),
|
|
45
45
|
children: [
|
|
@@ -145,7 +145,7 @@ const r = [
|
|
|
145
145
|
{
|
|
146
146
|
name: "environment.default",
|
|
147
147
|
path: "environment",
|
|
148
|
-
redirect: (e) => ({
|
|
148
|
+
redirect: (e, t) => ({
|
|
149
149
|
name: "environment",
|
|
150
150
|
params: { ...e.params, environment: "default" }
|
|
151
151
|
})
|
|
@@ -164,7 +164,7 @@ const r = [
|
|
|
164
164
|
{
|
|
165
165
|
name: "cookies.default",
|
|
166
166
|
path: "cookies",
|
|
167
|
-
redirect: (e) => ({
|
|
167
|
+
redirect: (e, t) => ({
|
|
168
168
|
name: "cookies",
|
|
169
169
|
params: { ...e.params, cookies: "default" }
|
|
170
170
|
})
|
|
@@ -177,7 +177,7 @@ const r = [
|
|
|
177
177
|
{
|
|
178
178
|
name: "servers.default",
|
|
179
179
|
path: "servers",
|
|
180
|
-
redirect: (e) => ({
|
|
180
|
+
redirect: (e, t) => ({
|
|
181
181
|
name: "servers",
|
|
182
182
|
params: {
|
|
183
183
|
...e.params,
|
|
@@ -189,7 +189,7 @@ const r = [
|
|
|
189
189
|
{
|
|
190
190
|
name: "settings.default",
|
|
191
191
|
path: "settings",
|
|
192
|
-
redirect: (e) => ({
|
|
192
|
+
redirect: (e, t) => ({
|
|
193
193
|
name: "settings",
|
|
194
194
|
params: { ...e.params, settings: "general" }
|
|
195
195
|
})
|