@scalar/api-client 2.38.4 → 2.39.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +8 -0
- package/dist/assets/computer.ascii.virtual.js +6 -0
- package/dist/assets/computer.ascii.virtual.js.map +1 -0
- package/dist/assets/keycap.ascii.virtual.js +6 -0
- package/dist/assets/keycap.ascii.virtual.js.map +1 -0
- package/dist/assets/rabbit.ascii.virtual.js +6 -0
- package/dist/assets/rabbit.ascii.virtual.js.map +1 -0
- package/dist/assets/rabbitjump.ascii.virtual.js +6 -0
- package/dist/assets/rabbitjump.ascii.virtual.js.map +1 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +9 -0
- package/dist/components/AddressBar/AddressBar.vue.js.map +1 -0
- package/dist/components/AddressBar/AddressBar.vue.script.js +204 -0
- package/dist/components/AddressBar/AddressBar.vue.script.js.map +1 -0
- package/dist/components/AddressBar/AddressBarHistory.vue.js +9 -0
- package/dist/components/AddressBar/AddressBarHistory.vue.js.map +1 -0
- package/dist/components/AddressBar/AddressBarHistory.vue.script.js +85 -0
- package/dist/components/AddressBar/AddressBarHistory.vue.script.js.map +1 -0
- package/dist/components/AddressBar/httpStatusCodeColors.js +20 -0
- package/dist/components/AddressBar/httpStatusCodeColors.js.map +1 -0
- package/dist/components/AddressBar/index.d.ts +1 -1
- package/dist/components/AddressBar/index.js +1 -4
- package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +10 -0
- package/dist/components/CodeInput/CodeInput.vue.js.map +1 -0
- package/dist/components/CodeInput/CodeInput.vue.script.js +294 -0
- package/dist/components/CodeInput/CodeInput.vue.script.js.map +1 -0
- package/dist/components/CodeInput/codeVariableWidget.d.ts +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +135 -0
- package/dist/components/CodeInput/codeVariableWidget.js.map +1 -0
- package/dist/components/CodeInput/index.d.ts +1 -1
- package/dist/components/CodeInput/index.js +1 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.js +7 -0
- package/dist/components/CommandPalette/CommandActionForm.vue.js.map +1 -0
- package/dist/components/CommandPalette/CommandActionForm.vue.script.js +42 -0
- package/dist/components/CommandPalette/CommandActionForm.vue.script.js.map +1 -0
- package/dist/components/CommandPalette/CommandActionInput.vue.js +7 -0
- package/dist/components/CommandPalette/CommandActionInput.vue.js.map +1 -0
- package/dist/components/CommandPalette/CommandActionInput.vue.script.js +55 -0
- package/dist/components/CommandPalette/CommandActionInput.vue.script.js.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +7 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.script.js +78 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.script.js.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +7 -0
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteExample.vue.script.js +104 -0
- package/dist/components/CommandPalette/CommandPaletteExample.vue.script.js.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +7 -0
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteImport.vue.script.js +181 -0
- package/dist/components/CommandPalette/CommandPaletteImport.vue.script.js.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +9 -0
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.script.js +108 -0
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.script.js.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +7 -0
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteServer.vue.script.js +108 -0
- package/dist/components/CommandPalette/CommandPaletteServer.vue.script.js.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +7 -0
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteTag.vue.script.js +70 -0
- package/dist/components/CommandPalette/CommandPaletteTag.vue.script.js.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +7 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.script.js +49 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.script.js.map +1 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +9 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.js.map +1 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.script.js +323 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.script.js.map +1 -0
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +7 -0
- package/dist/components/CommandPalette/WatchModeToggle.vue.js.map +1 -0
- package/dist/components/CommandPalette/WatchModeToggle.vue.script.js +40 -0
- package/dist/components/CommandPalette/WatchModeToggle.vue.script.js.map +1 -0
- package/dist/components/CommandPalette/index.d.ts +1 -1
- package/dist/components/CommandPalette/index.js +1 -2
- package/dist/components/DataTable/DataTable.vue.js +7 -0
- package/dist/components/DataTable/DataTable.vue.js.map +1 -0
- package/dist/components/DataTable/DataTable.vue.script.js +30 -0
- package/dist/components/DataTable/DataTable.vue.script.js.map +1 -0
- package/dist/components/DataTable/DataTableCell.vue.js +7 -0
- package/dist/components/DataTable/DataTableCell.vue.js.map +1 -0
- package/dist/components/DataTable/DataTableCell.vue.script.js +21 -0
- package/dist/components/DataTable/DataTableCell.vue.script.js.map +1 -0
- package/dist/components/DataTable/DataTableCheckbox.vue.js +7 -0
- package/dist/components/DataTable/DataTableCheckbox.vue.js.map +1 -0
- package/dist/components/DataTable/DataTableCheckbox.vue.script.js +43 -0
- package/dist/components/DataTable/DataTableCheckbox.vue.script.js.map +1 -0
- package/dist/components/DataTable/DataTableHeader.vue.js +7 -0
- package/dist/components/DataTable/DataTableHeader.vue.js.map +1 -0
- package/dist/components/DataTable/DataTableHeader.vue.script.js +20 -0
- package/dist/components/DataTable/DataTableHeader.vue.script.js.map +1 -0
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +9 -0
- package/dist/components/DataTable/DataTableInput.vue.js.map +1 -0
- package/dist/components/DataTable/DataTableInput.vue.script.js +164 -0
- package/dist/components/DataTable/DataTableInput.vue.script.js.map +1 -0
- package/dist/components/DataTable/DataTableInputSelect.vue.js +7 -0
- package/dist/components/DataTable/DataTableInputSelect.vue.js.map +1 -0
- package/dist/components/DataTable/DataTableInputSelect.vue.script.js +150 -0
- package/dist/components/DataTable/DataTableInputSelect.vue.script.js.map +1 -0
- package/dist/components/DataTable/DataTableRow.vue.js +13 -0
- package/dist/components/DataTable/DataTableRow.vue.js.map +1 -0
- package/dist/components/DataTable/DataTableText.vue.js +7 -0
- package/dist/components/DataTable/DataTableText.vue.js.map +1 -0
- package/dist/components/DataTable/DataTableText.vue.script.js +20 -0
- package/dist/components/DataTable/DataTableText.vue.script.js.map +1 -0
- package/dist/components/DataTable/index.d.ts +8 -8
- package/dist/components/DataTable/index.js +8 -5
- package/dist/components/EmptyState.vue.js +9 -0
- package/dist/components/EmptyState.vue.js.map +1 -0
- package/dist/components/EmptyState.vue.script.js +41 -0
- package/dist/components/EmptyState.vue.script.js.map +1 -0
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +7 -0
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js.map +1 -0
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.script.js +111 -0
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.script.js.map +1 -0
- package/dist/components/Form/Form.vue.js +7 -0
- package/dist/components/Form/Form.vue.js.map +1 -0
- package/dist/components/Form/Form.vue.script.js +82 -0
- package/dist/components/Form/Form.vue.script.js.map +1 -0
- package/dist/components/Form/LabelInput.vue.d.ts +1 -1
- package/dist/components/Form/LabelInput.vue.js +9 -0
- package/dist/components/Form/LabelInput.vue.js.map +1 -0
- package/dist/components/Form/LabelInput.vue.script.js +39 -0
- package/dist/components/Form/LabelInput.vue.script.js.map +1 -0
- package/dist/components/HelpfulLink.vue.js +7 -0
- package/dist/components/HelpfulLink.vue.js.map +1 -0
- package/dist/components/HelpfulLink.vue.script.js +21 -0
- package/dist/components/HelpfulLink.vue.script.js.map +1 -0
- package/dist/components/HttpMethod/HttpMethod.vue.js +9 -0
- package/dist/components/HttpMethod/HttpMethod.vue.js.map +1 -0
- package/dist/components/HttpMethod/HttpMethod.vue.script.js +76 -0
- package/dist/components/HttpMethod/HttpMethod.vue.script.js.map +1 -0
- package/dist/components/HttpMethod/index.d.ts +1 -1
- package/dist/components/HttpMethod/index.js +1 -1
- package/dist/components/IconSelector.vue.js +7 -0
- package/dist/components/IconSelector.vue.js.map +1 -0
- package/dist/components/IconSelector.vue.script.js +65 -0
- package/dist/components/IconSelector.vue.script.js.map +1 -0
- package/dist/components/ImportCollection/DropEventListener.vue.js +7 -0
- package/dist/components/ImportCollection/DropEventListener.vue.js.map +1 -0
- package/dist/components/ImportCollection/DropEventListener.vue.script.js +91 -0
- package/dist/components/ImportCollection/DropEventListener.vue.script.js.map +1 -0
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +7 -0
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js.map +1 -0
- package/dist/components/ImportCollection/ImportCollectionListener.vue.script.js +102 -0
- package/dist/components/ImportCollection/ImportCollectionListener.vue.script.js.map +1 -0
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +8 -0
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js.map +1 -0
- package/dist/components/ImportCollection/ImportCollectionModal.vue.script.js +206 -0
- package/dist/components/ImportCollection/ImportCollectionModal.vue.script.js.map +1 -0
- package/dist/components/ImportCollection/ImportNowButton.vue.js +7 -0
- package/dist/components/ImportCollection/ImportNowButton.vue.js.map +1 -0
- package/dist/components/ImportCollection/ImportNowButton.vue.script.js +82 -0
- package/dist/components/ImportCollection/ImportNowButton.vue.script.js.map +1 -0
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +7 -0
- package/dist/components/ImportCollection/IntegrationLogo.vue.js.map +1 -0
- package/dist/components/ImportCollection/IntegrationLogo.vue.script.js +50 -0
- package/dist/components/ImportCollection/IntegrationLogo.vue.script.js.map +1 -0
- package/dist/components/ImportCollection/PasteEventListener.vue.js +7 -0
- package/dist/components/ImportCollection/PasteEventListener.vue.js.map +1 -0
- package/dist/components/ImportCollection/PasteEventListener.vue.script.js +31 -0
- package/dist/components/ImportCollection/PasteEventListener.vue.script.js.map +1 -0
- package/dist/components/ImportCollection/PrefetchError.vue.js +7 -0
- package/dist/components/ImportCollection/PrefetchError.vue.js.map +1 -0
- package/dist/components/ImportCollection/PrefetchError.vue.script.js +32 -0
- package/dist/components/ImportCollection/PrefetchError.vue.script.js.map +1 -0
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js +7 -0
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js.map +1 -0
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.script.js +21 -0
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.script.js.map +1 -0
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +7 -0
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js.map +1 -0
- package/dist/components/ImportCollection/WorkspaceSelector.vue.script.js +114 -0
- package/dist/components/ImportCollection/WorkspaceSelector.vue.script.js.map +1 -0
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +109 -0
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js.map +1 -0
- package/dist/components/ImportCollection/index.d.ts +1 -1
- package/dist/components/ImportCollection/index.js +1 -1
- package/dist/components/ImportCollection/utils/get-openapi-version.js +26 -0
- package/dist/components/ImportCollection/utils/get-openapi-version.js.map +1 -0
- package/dist/components/ImportCollection/utils/import-collection.js +23 -0
- package/dist/components/ImportCollection/utils/import-collection.js.map +1 -0
- package/dist/components/ImportCollection/utils/is-document.js +12 -0
- package/dist/components/ImportCollection/utils/is-document.js.map +1 -0
- package/dist/components/ImportCollection/utils/is-url.js +14 -0
- package/dist/components/ImportCollection/utils/is-url.js.map +1 -0
- package/dist/components/ImportCollection/utils/workspace-store-is-empty.js +13 -0
- package/dist/components/ImportCollection/utils/workspace-store-is-empty.js.map +1 -0
- package/dist/components/OpenApiClientButton.vue.js +9 -0
- package/dist/components/OpenApiClientButton.vue.js.map +1 -0
- package/dist/components/OpenApiClientButton.vue.script.js +58 -0
- package/dist/components/OpenApiClientButton.vue.script.js.map +1 -0
- package/dist/components/ScalarAsciiArt.vue.js +9 -0
- package/dist/components/ScalarAsciiArt.vue.js.map +1 -0
- package/dist/components/ScalarAsciiArt.vue.script.js +42 -0
- package/dist/components/ScalarAsciiArt.vue.script.js.map +1 -0
- package/dist/components/Search/useSearch.js +110 -0
- package/dist/components/Search/useSearch.js.map +1 -0
- package/dist/components/SectionFilter.vue.js +9 -0
- package/dist/components/SectionFilter.vue.js.map +1 -0
- package/dist/components/SectionFilter.vue.script.js +69 -0
- package/dist/components/SectionFilter.vue.script.js.map +1 -0
- package/dist/components/SectionFilterButton.vue.js +7 -0
- package/dist/components/SectionFilterButton.vue.js.map +1 -0
- package/dist/components/SectionFilterButton.vue.script.js +30 -0
- package/dist/components/SectionFilterButton.vue.script.js.map +1 -0
- package/dist/components/Server/ServerDropdown.vue.js +7 -0
- package/dist/components/Server/ServerDropdown.vue.js.map +1 -0
- package/dist/components/Server/ServerDropdown.vue.script.js +133 -0
- package/dist/components/Server/ServerDropdown.vue.script.js.map +1 -0
- package/dist/components/Server/ServerDropdownItem.vue.js +9 -0
- package/dist/components/Server/ServerDropdownItem.vue.js.map +1 -0
- package/dist/components/Server/ServerDropdownItem.vue.script.js +90 -0
- package/dist/components/Server/ServerDropdownItem.vue.script.js.map +1 -0
- package/dist/components/Server/ServerSelector.vue.js +7 -0
- package/dist/components/Server/ServerSelector.vue.js.map +1 -0
- package/dist/components/Server/ServerSelector.vue.script.js +87 -0
- package/dist/components/Server/ServerSelector.vue.script.js.map +1 -0
- package/dist/components/Server/ServerVariablesForm.vue.js +7 -0
- package/dist/components/Server/ServerVariablesForm.vue.js.map +1 -0
- package/dist/components/Server/ServerVariablesForm.vue.script.js +64 -0
- package/dist/components/Server/ServerVariablesForm.vue.script.js.map +1 -0
- package/dist/components/Server/ServerVariablesSelect.vue.js +7 -0
- package/dist/components/Server/ServerVariablesSelect.vue.js.map +1 -0
- package/dist/components/Server/ServerVariablesSelect.vue.script.js +53 -0
- package/dist/components/Server/ServerVariablesSelect.vue.script.js.map +1 -0
- package/dist/components/Server/ServerVariablesTextbox.vue.js +7 -0
- package/dist/components/Server/ServerVariablesTextbox.vue.js.map +1 -0
- package/dist/components/Server/ServerVariablesTextbox.vue.script.js +34 -0
- package/dist/components/Server/ServerVariablesTextbox.vue.script.js.map +1 -0
- package/dist/components/Server/index.d.ts +3 -3
- package/dist/components/Server/index.js +3 -2
- package/dist/components/SideNav/DownloadAppButton.vue.js +9 -0
- package/dist/components/SideNav/DownloadAppButton.vue.js.map +1 -0
- package/dist/components/SideNav/DownloadAppButton.vue.script.js +31 -0
- package/dist/components/SideNav/DownloadAppButton.vue.script.js.map +1 -0
- package/dist/components/SideNav/SideHelp.vue.js +7 -0
- package/dist/components/SideNav/SideHelp.vue.js.map +1 -0
- package/dist/components/SideNav/SideHelp.vue.script.js +102 -0
- package/dist/components/SideNav/SideHelp.vue.script.js.map +1 -0
- package/dist/components/SideNav/SideNav.vue.js +7 -0
- package/dist/components/SideNav/SideNav.vue.js.map +1 -0
- package/dist/components/SideNav/SideNav.vue.script.js +80 -0
- package/dist/components/SideNav/SideNav.vue.script.js.map +1 -0
- package/dist/components/SideNav/SideNavGroup.vue.js +7 -0
- package/dist/components/SideNav/SideNavGroup.vue.js.map +1 -0
- package/dist/components/SideNav/SideNavGroup.vue.script.js +16 -0
- package/dist/components/SideNav/SideNavGroup.vue.script.js.map +1 -0
- package/dist/components/SideNav/SideNavLink.vue.js +7 -0
- package/dist/components/SideNav/SideNavLink.vue.js.map +1 -0
- package/dist/components/SideNav/SideNavLink.vue.script.js +32 -0
- package/dist/components/SideNav/SideNavLink.vue.script.js.map +1 -0
- package/dist/components/SideNav/SideNavRouterLink.vue.js +7 -0
- package/dist/components/SideNav/SideNavRouterLink.vue.js.map +1 -0
- package/dist/components/SideNav/SideNavRouterLink.vue.script.js +34 -0
- package/dist/components/SideNav/SideNavRouterLink.vue.script.js.map +1 -0
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +7 -0
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js.map +1 -0
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.script.js +38 -0
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.script.js.map +1 -0
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +7 -0
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js.map +1 -0
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.script.js +56 -0
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.script.js.map +1 -0
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +7 -0
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js.map +1 -0
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.script.js +31 -0
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.script.js.map +1 -0
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +7 -0
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js.map +1 -0
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.script.js +41 -0
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.script.js.map +1 -0
- package/dist/components/Sidebar/Sidebar.vue.js +9 -0
- package/dist/components/Sidebar/Sidebar.vue.js.map +1 -0
- package/dist/components/Sidebar/Sidebar.vue.script.js +71 -0
- package/dist/components/Sidebar/Sidebar.vue.script.js.map +1 -0
- package/dist/components/Sidebar/SidebarButton.vue.js +7 -0
- package/dist/components/Sidebar/SidebarButton.vue.js.map +1 -0
- package/dist/components/Sidebar/SidebarButton.vue.script.js +36 -0
- package/dist/components/Sidebar/SidebarButton.vue.script.js.map +1 -0
- package/dist/components/Sidebar/SidebarList.vue.js +13 -0
- package/dist/components/Sidebar/SidebarList.vue.js.map +1 -0
- package/dist/components/Sidebar/SidebarListElement.vue.js +10 -0
- package/dist/components/Sidebar/SidebarListElement.vue.js.map +1 -0
- package/dist/components/Sidebar/SidebarListElement.vue.script.js +128 -0
- package/dist/components/Sidebar/SidebarListElement.vue.script.js.map +1 -0
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +7 -0
- package/dist/components/Sidebar/SidebarListElementActions.vue.js.map +1 -0
- package/dist/components/Sidebar/SidebarListElementActions.vue.script.js +97 -0
- package/dist/components/Sidebar/SidebarListElementActions.vue.script.js.map +1 -0
- package/dist/components/Sidebar/SidebarToggle.vue.js +7 -0
- package/dist/components/Sidebar/SidebarToggle.vue.js.map +1 -0
- package/dist/components/Sidebar/SidebarToggle.vue.script.js +47 -0
- package/dist/components/Sidebar/SidebarToggle.vue.script.js.map +1 -0
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Sidebar/index.js +1 -1
- package/dist/components/TopNav/TopNav.vue.js +7 -0
- package/dist/components/TopNav/TopNav.vue.js.map +1 -0
- package/dist/components/TopNav/TopNav.vue.script.js +232 -0
- package/dist/components/TopNav/TopNav.vue.script.js.map +1 -0
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +9 -0
- package/dist/components/TopNav/TopNavItem.vue.js.map +1 -0
- package/dist/components/TopNav/TopNavItem.vue.script.js +129 -0
- package/dist/components/TopNav/TopNavItem.vue.script.js.map +1 -0
- package/dist/components/ViewLayout/ViewLayout.vue.js +7 -0
- package/dist/components/ViewLayout/ViewLayout.vue.js.map +1 -0
- package/dist/components/ViewLayout/ViewLayout.vue.script.js +16 -0
- package/dist/components/ViewLayout/ViewLayout.vue.script.js.map +1 -0
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +7 -0
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js.map +1 -0
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.script.js +84 -0
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.script.js.map +1 -0
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +13 -0
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js.map +1 -0
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +7 -0
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js.map +1 -0
- package/dist/components/ViewLayout/ViewLayoutSection.vue.script.js +21 -0
- package/dist/components/ViewLayout/ViewLayoutSection.vue.script.js.map +1 -0
- package/dist/components/ViewLayout/index.d.ts +1 -1
- package/dist/components/ViewLayout/index.js +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +3 -6
- package/dist/constants.js +27 -0
- package/dist/constants.js.map +1 -0
- package/dist/data/httpHeaders.js +539 -0
- package/dist/data/httpHeaders.js.map +1 -0
- package/dist/hooks/index.d.ts +4 -4
- package/dist/hooks/index.js +4 -2
- package/dist/hooks/useClientConfig.d.ts +18 -0
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/hooks/useClientConfig.js +10 -0
- package/dist/hooks/useClientConfig.js.map +1 -0
- package/dist/hooks/useFileDialog.js +33 -0
- package/dist/hooks/useFileDialog.js.map +1 -0
- package/dist/hooks/useLayout.js +13 -0
- package/dist/hooks/useLayout.js.map +1 -0
- package/dist/hooks/useResponseBody.js +32 -0
- package/dist/hooks/useResponseBody.js.map +1 -0
- package/dist/hooks/useSidebar.d.ts +1 -1
- package/dist/hooks/useSidebar.js +36 -0
- package/dist/hooks/useSidebar.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -7
- package/dist/layouts/App/ApiClientApp.vue.js +8 -0
- package/dist/layouts/App/ApiClientApp.vue.js.map +1 -0
- package/dist/layouts/App/ApiClientApp.vue.script.js +80 -0
- package/dist/layouts/App/ApiClientApp.vue.script.js.map +1 -0
- package/dist/layouts/App/MainLayout.vue.js +7 -0
- package/dist/layouts/App/MainLayout.vue.js.map +1 -0
- package/dist/layouts/App/MainLayout.vue.script.js +22 -0
- package/dist/layouts/App/MainLayout.vue.script.js.map +1 -0
- package/dist/layouts/App/create-api-client-app.d.ts +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +36 -0
- package/dist/layouts/App/create-api-client-app.js.map +1 -0
- package/dist/layouts/App/hotkeys.js +74 -0
- package/dist/layouts/App/hotkeys.js.map +1 -0
- package/dist/layouts/App/index.d.ts +2 -2
- package/dist/layouts/App/index.js +2 -4
- package/dist/layouts/Modal/ApiClientModal.vue.js +7 -0
- package/dist/layouts/Modal/ApiClientModal.vue.js.map +1 -0
- package/dist/layouts/Modal/ApiClientModal.vue.script.js +41 -0
- package/dist/layouts/Modal/ApiClientModal.vue.script.js.map +1 -0
- package/dist/layouts/Modal/create-api-client-modal.js +34 -0
- package/dist/layouts/Modal/create-api-client-modal.js.map +1 -0
- package/dist/layouts/Modal/index.d.ts +1 -1
- package/dist/layouts/Modal/index.js +1 -2
- package/dist/layouts/Web/ApiClientWeb.vue.js +8 -0
- package/dist/layouts/Web/ApiClientWeb.vue.js.map +1 -0
- package/dist/layouts/Web/ApiClientWeb.vue.script.js +68 -0
- package/dist/layouts/Web/ApiClientWeb.vue.script.js.map +1 -0
- package/dist/layouts/Web/create-api-client-web.d.ts +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.js +33 -0
- package/dist/layouts/Web/create-api-client-web.js.map +1 -0
- package/dist/layouts/Web/index.d.ts +2 -2
- package/dist/layouts/Web/index.js +2 -101
- package/dist/libs/create-client.d.ts +9 -9
- package/dist/libs/create-client.js +178 -0
- package/dist/libs/create-client.js.map +1 -0
- package/dist/libs/electron.js +9 -0
- package/dist/libs/electron.js.map +1 -0
- package/dist/libs/env-helpers.js +9 -0
- package/dist/libs/env-helpers.js.map +1 -0
- package/dist/libs/environment-parser.d.ts +1 -1
- package/dist/libs/environment-parser.js +19 -0
- package/dist/libs/environment-parser.js.map +1 -0
- package/dist/libs/errors.js +34 -0
- package/dist/libs/errors.js.map +1 -0
- package/dist/libs/event-bus.js +43 -0
- package/dist/libs/event-bus.js.map +1 -0
- package/dist/libs/extractAttachmentFilename.js +23 -0
- package/dist/libs/extractAttachmentFilename.js.map +1 -0
- package/dist/libs/find-request.js +40 -0
- package/dist/libs/find-request.js.map +1 -0
- package/dist/libs/formatters.js +36 -0
- package/dist/libs/formatters.js.map +1 -0
- package/dist/libs/get-request-uid-by-path-method.d.ts +1 -1
- package/dist/libs/get-request-uid-by-path-method.js +19 -0
- package/dist/libs/get-request-uid-by-path-method.js.map +1 -0
- package/dist/libs/getOpenApiDocumentDetails.js +45 -0
- package/dist/libs/getOpenApiDocumentDetails.js.map +1 -0
- package/dist/libs/hot-keys.js +92 -0
- package/dist/libs/hot-keys.js.map +1 -0
- package/dist/libs/importers/curl.js +54 -0
- package/dist/libs/importers/curl.js.map +1 -0
- package/dist/libs/importers/index.d.ts +1 -1
- package/dist/libs/importers/index.js +1 -1
- package/dist/libs/index.d.ts +14 -14
- package/dist/libs/index.js +17 -5
- package/dist/libs/isUrl.js +12 -0
- package/dist/libs/isUrl.js.map +1 -0
- package/dist/libs/local-storage.js +40 -0
- package/dist/libs/local-storage.js.map +1 -0
- package/dist/libs/normalize-headers.js +55 -0
- package/dist/libs/normalize-headers.js.map +1 -0
- package/dist/libs/parse-curl.js +106 -0
- package/dist/libs/parse-curl.js.map +1 -0
- package/dist/libs/postman.js +40 -0
- package/dist/libs/postman.js.map +1 -0
- package/dist/libs/send-request/build-request-security.js +41 -0
- package/dist/libs/send-request/build-request-security.js.map +1 -0
- package/dist/libs/send-request/create-fetch-body.js +44 -0
- package/dist/libs/send-request/create-fetch-body.js.map +1 -0
- package/dist/libs/send-request/create-fetch-headers.js +15 -0
- package/dist/libs/send-request/create-fetch-headers.js.map +1 -0
- package/dist/libs/send-request/create-fetch-query-params.js +43 -0
- package/dist/libs/send-request/create-fetch-query-params.js.map +1 -0
- package/dist/libs/send-request/create-request-operation.d.ts +2 -2
- package/dist/libs/send-request/create-request-operation.js +172 -0
- package/dist/libs/send-request/create-request-operation.js.map +1 -0
- package/dist/libs/send-request/decode-buffer.js +13 -0
- package/dist/libs/send-request/decode-buffer.js.map +1 -0
- package/dist/libs/send-request/index.d.ts +3 -3
- package/dist/libs/send-request/index.js +3 -2
- package/dist/libs/send-request/set-request-cookies.js +82 -0
- package/dist/libs/send-request/set-request-cookies.js.map +1 -0
- package/dist/libs/string-template.js +64 -0
- package/dist/libs/string-template.js.map +1 -0
- package/dist/libs/validate-parameters.js +35 -0
- package/dist/libs/validate-parameters.js.map +1 -0
- package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
- package/dist/plugins/hooks/usePluginManager.js +16 -0
- package/dist/plugins/hooks/usePluginManager.js.map +1 -0
- package/dist/plugins/index.d.ts +2 -2
- package/dist/plugins/index.js +2 -1
- package/dist/plugins/plugin-manager.js +38 -0
- package/dist/plugins/plugin-manager.js.map +1 -0
- package/dist/routes.js +225 -0
- package/dist/routes.js.map +1 -0
- package/dist/store/active-entities.js +139 -0
- package/dist/store/active-entities.js.map +1 -0
- package/dist/store/collections.js +76 -0
- package/dist/store/collections.js.map +1 -0
- package/dist/store/cookies.js +16 -0
- package/dist/store/cookies.js.map +1 -0
- package/dist/store/environment.js +38 -0
- package/dist/store/environment.js.map +1 -0
- package/dist/store/events.d.ts +7 -7
- package/dist/store/events.js +17 -0
- package/dist/store/events.js.map +1 -0
- package/dist/store/import-spec.js +56 -0
- package/dist/store/import-spec.js.map +1 -0
- package/dist/store/index.d.ts +2 -2
- package/dist/store/index.js +2 -1
- package/dist/store/request-example.js +43 -0
- package/dist/store/request-example.js.map +1 -0
- package/dist/store/requests.d.ts +1 -1
- package/dist/store/requests.js +104 -0
- package/dist/store/requests.js.map +1 -0
- package/dist/store/router-params.js +27 -0
- package/dist/store/router-params.js.map +1 -0
- package/dist/store/security-schemes.js +45 -0
- package/dist/store/security-schemes.js.map +1 -0
- package/dist/store/servers.js +41 -0
- package/dist/store/servers.js.map +1 -0
- package/dist/store/store.d.ts +1 -1
- package/dist/store/store.js +180 -0
- package/dist/store/store.js.map +1 -0
- package/dist/store/tags.js +54 -0
- package/dist/store/tags.js.map +1 -0
- package/dist/store/workspace.js +57 -0
- package/dist/store/workspace.js.map +1 -0
- package/dist/style.css +2804 -2650
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +4 -2
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +7 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js.map +1 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue.script.js +306 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue.script.js.map +1 -0
- package/dist/v2/blocks/operation-block/components/Header.vue.js +9 -0
- package/dist/v2/blocks/operation-block/components/Header.vue.js.map +1 -0
- package/dist/v2/blocks/operation-block/components/Header.vue.script.js +126 -0
- package/dist/v2/blocks/operation-block/components/Header.vue.script.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/apply-allow-reserved-to-url.js +58 -0
- package/dist/v2/blocks/operation-block/helpers/apply-allow-reserved-to-url.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts +3 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-body.js +65 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-body.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.js +55 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.js +159 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-security.js +53 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-security.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts +4 -2
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request.js +102 -0
- package/dist/v2/blocks/operation-block/helpers/build-request.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/de-serialize-parameter.js +41 -0
- package/dist/v2/blocks/operation-block/helpers/de-serialize-parameter.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/decode-buffer.js +17 -0
- package/dist/v2/blocks/operation-block/helpers/decode-buffer.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.js +20 -0
- package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-cookie-header-keys.js +22 -0
- package/dist/v2/blocks/operation-block/helpers/get-cookie-header-keys.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-environment-variables.js +17 -0
- package/dist/v2/blocks/operation-block/helpers/get-environment-variables.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-example.js +41 -0
- package/dist/v2/blocks/operation-block/helpers/get-example.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-resolved-url.js +32 -0
- package/dist/v2/blocks/operation-block/helpers/get-resolved-url.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.js +15 -0
- package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-server-url.js +18 -0
- package/dist/v2/blocks/operation-block/helpers/get-server-url.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/har-to-fetch-request.js +80 -0
- package/dist/v2/blocks/operation-block/helpers/har-to-fetch-request.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.d.ts +1 -1
- package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.js +109 -0
- package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/response-cache.js +34 -0
- package/dist/v2/blocks/operation-block/helpers/response-cache.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/send-request.d.ts +1 -1
- package/dist/v2/blocks/operation-block/helpers/send-request.js +149 -0
- package/dist/v2/blocks/operation-block/helpers/send-request.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/serialize-parameter.js +160 -0
- package/dist/v2/blocks/operation-block/helpers/serialize-parameter.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/validate-path-parameters.js +34 -0
- package/dist/v2/blocks/operation-block/helpers/validate-path-parameters.js.map +1 -0
- package/dist/v2/blocks/operation-block/index.d.ts +4 -4
- package/dist/v2/blocks/operation-block/index.js +4 -19
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js +7 -0
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js.map +1 -0
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.script.js +52 -0
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.script.js.map +1 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +7 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js.map +1 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.script.js +33 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.script.js.map +1 -0
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts +5 -0
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +9 -0
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js.map +1 -0
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.script.js +249 -0
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.script.js.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/filter-clients-by-query.d.ts +9 -0
- package/dist/v2/blocks/operation-code-sample/helpers/filter-clients-by-query.d.ts.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/filter-clients-by-query.js +37 -0
- package/dist/v2/blocks/operation-code-sample/helpers/filter-clients-by-query.js.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.js +55 -0
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.js.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.js +40 -0
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.js.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +4 -2
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js +37 -0
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-clients.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-clients.js +31 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-clients.js.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-custom-code-samples.js +18 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-custom-code-samples.js.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts +5 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +437 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +41 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.js +18 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.js.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +6 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js +107 -0
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts +3 -3
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +114 -0
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +216 -0
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.js +65 -0
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.js.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.js +19 -0
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.js.map +1 -0
- package/dist/v2/blocks/operation-code-sample/index.d.ts +7 -6
- package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/index.js +8 -2
- package/dist/v2/blocks/operation-code-sample/types.d.ts +7 -6
- package/dist/v2/blocks/operation-code-sample/types.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +1 -0
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +9 -0
- package/dist/v2/blocks/request-block/RequestBlock.vue.js.map +1 -0
- package/dist/v2/blocks/request-block/RequestBlock.vue.script.js +415 -0
- package/dist/v2/blocks/request-block/RequestBlock.vue.script.js.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +2 -0
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +9 -0
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestBody.vue.script.js +189 -0
- package/dist/v2/blocks/request-block/components/RequestBody.vue.script.js.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +7 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.script.js +98 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.script.js.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts +1 -1
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +7 -0
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.script.js +129 -0
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.script.js.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js +7 -0
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestParams.vue.script.js +97 -0
- package/dist/v2/blocks/request-block/components/RequestParams.vue.script.js.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +9 -0
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestTable.vue.script.js +113 -0
- package/dist/v2/blocks/request-block/components/RequestTable.vue.script.js.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +7 -0
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.script.js +226 -0
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.script.js.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js +9 -0
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.script.js +68 -0
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.script.js.map +1 -0
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +47 -0
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js.map +1 -0
- package/dist/v2/blocks/request-block/helpers/files.js +11 -0
- package/dist/v2/blocks/request-block/helpers/files.js.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +61 -0
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +1 -1
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +46 -0
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-parameter-content.js +17 -0
- package/dist/v2/blocks/request-block/helpers/get-parameter-content.js.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-parameter-schema.js +14 -0
- package/dist/v2/blocks/request-block/helpers/get-parameter-schema.js.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +1 -1
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +25 -0
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.js.map +1 -0
- package/dist/v2/blocks/request-block/helpers/group-by.js +15 -0
- package/dist/v2/blocks/request-block/helpers/group-by.js.map +1 -0
- package/dist/v2/blocks/request-block/helpers/is-param-disabled.js +20 -0
- package/dist/v2/blocks/request-block/helpers/is-param-disabled.js.map +1 -0
- package/dist/v2/blocks/request-block/helpers/validate-parameter.js +49 -0
- package/dist/v2/blocks/request-block/helpers/validate-parameter.js.map +1 -0
- package/dist/v2/blocks/request-block/index.d.ts +1 -1
- package/dist/v2/blocks/request-block/index.js +1 -8
- package/dist/v2/blocks/response-block/ResponseBlock.vue.js +9 -0
- package/dist/v2/blocks/response-block/ResponseBlock.vue.js.map +1 -0
- package/dist/v2/blocks/response-block/ResponseBlock.vue.script.js +204 -0
- package/dist/v2/blocks/response-block/ResponseBlock.vue.script.js.map +1 -0
- package/dist/v2/blocks/response-block/components/Headers.vue.js +7 -0
- package/dist/v2/blocks/response-block/components/Headers.vue.js.map +1 -0
- package/dist/v2/blocks/response-block/components/Headers.vue.script.js +77 -0
- package/dist/v2/blocks/response-block/components/Headers.vue.script.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.js +9 -0
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.script.js +90 -0
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.script.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +7 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.script.js +35 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.script.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyInfo.vue.js +14 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyInfo.vue.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js +9 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.script.js +64 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.script.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js +9 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.script.js +49 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.script.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js +7 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.script.js +111 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.script.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +7 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.script.js +25 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.script.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.js +8 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.script.js +50 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.script.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +7 -0
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.script.js +42 -0
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.script.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +9 -0
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.script.js +69 -0
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.script.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js +9 -0
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.script.js +52 -0
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.script.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +7 -0
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.script.js +68 -0
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.script.js.map +1 -0
- package/dist/v2/blocks/response-block/helpers/extract-filename.js +26 -0
- package/dist/v2/blocks/response-block/helpers/extract-filename.js.map +1 -0
- package/dist/v2/blocks/response-block/helpers/get-content-length.js +12 -0
- package/dist/v2/blocks/response-block/helpers/get-content-length.js.map +1 -0
- package/dist/v2/blocks/response-block/helpers/media-types.js +227 -0
- package/dist/v2/blocks/response-block/helpers/media-types.js.map +1 -0
- package/dist/v2/blocks/response-block/helpers/parse-set-cookie.js +30 -0
- package/dist/v2/blocks/response-block/helpers/parse-set-cookie.js.map +1 -0
- package/dist/v2/blocks/response-block/helpers/process-response-body.js +26 -0
- package/dist/v2/blocks/response-block/helpers/process-response-body.js.map +1 -0
- package/dist/v2/blocks/response-block/index.d.ts +1 -1
- package/dist/v2/blocks/response-block/index.js +1 -5
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +9 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js.map +1 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.script.js +248 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.script.js.map +1 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js +9 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js.map +1 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.script.js +84 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.script.js.map +1 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.js +7 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.js.map +1 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.script.js +141 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.script.js.map +1 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +20 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js.map +1 -0
- package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.js +84 -0
- package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.js.map +1 -0
- package/dist/v2/blocks/scalar-address-bar-block/index.d.ts +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/index.js +1 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +3 -3
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +7 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.script.js +227 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.script.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +7 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.script.js +48 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.script.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +7 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js +285 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js +9 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.script.js +71 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.script.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +8 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.script.js +141 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.script.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js +7 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.script.js +89 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.script.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +7 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.script.js +95 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.script.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +7 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.script.js +69 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.script.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +7 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js +296 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.js +92 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js +141 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js +45 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.js +10 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.js +27 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +183 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.js +39 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +109 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts +4 -4
- package/dist/v2/blocks/scalar-auth-selector-block/index.js +3 -5
- package/dist/v2/components/callout/Callout.vue.js +9 -0
- package/dist/v2/components/callout/Callout.vue.js.map +1 -0
- package/dist/v2/components/callout/Callout.vue.script.js +35 -0
- package/dist/v2/components/callout/Callout.vue.script.js.map +1 -0
- package/dist/v2/components/code-input/CodeInput.vue.js +10 -0
- package/dist/v2/components/code-input/CodeInput.vue.js.map +1 -0
- package/dist/v2/components/code-input/CodeInput.vue.script.js +380 -0
- package/dist/v2/components/code-input/CodeInput.vue.script.js.map +1 -0
- package/dist/v2/components/code-input/code-variable-widget.js +132 -0
- package/dist/v2/components/code-input/code-variable-widget.js.map +1 -0
- package/dist/v2/components/code-input/index.d.ts +1 -1
- package/dist/v2/components/code-input/index.js +1 -1
- package/dist/v2/components/context-menu/ContextMenu.vue.d.ts +27 -0
- package/dist/v2/components/context-menu/ContextMenu.vue.d.ts.map +1 -0
- package/dist/v2/components/context-menu/ContextMenu.vue.js +8 -0
- package/dist/v2/components/context-menu/ContextMenu.vue.js.map +1 -0
- package/dist/v2/components/context-menu/ContextMenu.vue.script.js +53 -0
- package/dist/v2/components/context-menu/ContextMenu.vue.script.js.map +1 -0
- package/dist/v2/components/context-menu/index.d.ts +2 -0
- package/dist/v2/components/context-menu/index.d.ts.map +1 -0
- package/dist/v2/components/context-menu/index.js +2 -0
- package/dist/v2/components/data-table/DataTable.vue.js +7 -0
- package/dist/v2/components/data-table/DataTable.vue.js.map +1 -0
- package/dist/v2/components/data-table/DataTable.vue.script.js +30 -0
- package/dist/v2/components/data-table/DataTable.vue.script.js.map +1 -0
- package/dist/v2/components/data-table/DataTableCell.vue.js +7 -0
- package/dist/v2/components/data-table/DataTableCell.vue.js.map +1 -0
- package/dist/v2/components/data-table/DataTableCell.vue.script.js +21 -0
- package/dist/v2/components/data-table/DataTableCell.vue.script.js.map +1 -0
- package/dist/v2/components/data-table/DataTableCheckbox.vue.js +7 -0
- package/dist/v2/components/data-table/DataTableCheckbox.vue.js.map +1 -0
- package/dist/v2/components/data-table/DataTableCheckbox.vue.script.js +43 -0
- package/dist/v2/components/data-table/DataTableCheckbox.vue.script.js.map +1 -0
- package/dist/v2/components/data-table/DataTableHeader.vue.js +7 -0
- package/dist/v2/components/data-table/DataTableHeader.vue.js.map +1 -0
- package/dist/v2/components/data-table/DataTableHeader.vue.script.js +20 -0
- package/dist/v2/components/data-table/DataTableHeader.vue.script.js.map +1 -0
- package/dist/v2/components/data-table/DataTableInput.vue.js +9 -0
- package/dist/v2/components/data-table/DataTableInput.vue.js.map +1 -0
- package/dist/v2/components/data-table/DataTableInput.vue.script.js +160 -0
- package/dist/v2/components/data-table/DataTableInput.vue.script.js.map +1 -0
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +1 -1
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js +7 -0
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js.map +1 -0
- package/dist/v2/components/data-table/DataTableInputSelect.vue.script.js +161 -0
- package/dist/v2/components/data-table/DataTableInputSelect.vue.script.js.map +1 -0
- package/dist/v2/components/data-table/DataTableRow.vue.js +13 -0
- package/dist/v2/components/data-table/DataTableRow.vue.js.map +1 -0
- package/dist/v2/components/data-table/DataTableText.vue.js +7 -0
- package/dist/v2/components/data-table/DataTableText.vue.js.map +1 -0
- package/dist/v2/components/data-table/DataTableText.vue.script.js +20 -0
- package/dist/v2/components/data-table/DataTableText.vue.script.js.map +1 -0
- package/dist/v2/components/data-table/index.d.ts +8 -8
- package/dist/v2/components/data-table/index.js +8 -2
- package/dist/v2/components/forms/ConfirmationForm.vue.js +7 -0
- package/dist/v2/components/forms/ConfirmationForm.vue.js.map +1 -0
- package/dist/v2/components/forms/ConfirmationForm.vue.script.js +40 -0
- package/dist/v2/components/forms/ConfirmationForm.vue.script.js.map +1 -0
- package/dist/v2/components/forms/index.d.ts +1 -1
- package/dist/v2/components/forms/index.js +1 -1
- package/dist/v2/components/layout/CollapsibleSection.vue.js +7 -0
- package/dist/v2/components/layout/CollapsibleSection.vue.js.map +1 -0
- package/dist/v2/components/layout/CollapsibleSection.vue.script.js +79 -0
- package/dist/v2/components/layout/CollapsibleSection.vue.script.js.map +1 -0
- package/dist/v2/components/layout/ValueEmitter.vue.js +7 -0
- package/dist/v2/components/layout/ValueEmitter.vue.js.map +1 -0
- package/dist/v2/components/layout/ValueEmitter.vue.script.js +18 -0
- package/dist/v2/components/layout/ValueEmitter.vue.script.js.map +1 -0
- package/dist/v2/components/layout/index.d.ts +1 -1
- package/dist/v2/components/layout/index.js +1 -1
- package/dist/v2/components/modals/DeleteModal.vue.js +7 -0
- package/dist/v2/components/modals/DeleteModal.vue.js.map +1 -0
- package/dist/v2/components/modals/DeleteModal.vue.script.js +36 -0
- package/dist/v2/components/modals/DeleteModal.vue.script.js.map +1 -0
- package/dist/v2/components/modals/ModalClientContainer.vue.js +9 -0
- package/dist/v2/components/modals/ModalClientContainer.vue.js.map +1 -0
- package/dist/v2/components/modals/ModalClientContainer.vue.script.js +62 -0
- package/dist/v2/components/modals/ModalClientContainer.vue.script.js.map +1 -0
- package/dist/v2/components/modals/index.d.ts +1 -1
- package/dist/v2/components/modals/index.js +1 -37
- package/dist/v2/components/resize/Resize.vue.js +10 -0
- package/dist/v2/components/resize/Resize.vue.js.map +1 -0
- package/dist/v2/components/resize/Resize.vue.script.js +52 -0
- package/dist/v2/components/resize/Resize.vue.script.js.map +1 -0
- package/dist/v2/components/resize/index.d.ts +2 -2
- package/dist/v2/components/resize/index.js +2 -1
- package/dist/v2/components/resize/use-split-resize.js +62 -0
- package/dist/v2/components/resize/use-split-resize.js.map +1 -0
- package/dist/v2/components/server/ServerDropdown.vue.js +7 -0
- package/dist/v2/components/server/ServerDropdown.vue.js.map +1 -0
- package/dist/v2/components/server/ServerDropdown.vue.script.js +95 -0
- package/dist/v2/components/server/ServerDropdown.vue.script.js.map +1 -0
- package/dist/v2/components/server/ServerDropdownItem.vue.js +9 -0
- package/dist/v2/components/server/ServerDropdownItem.vue.js.map +1 -0
- package/dist/v2/components/server/ServerDropdownItem.vue.script.js +46 -0
- package/dist/v2/components/server/ServerDropdownItem.vue.script.js.map +1 -0
- package/dist/v2/components/server/index.d.ts +1 -1
- package/dist/v2/components/server/index.js +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +7 -0
- package/dist/v2/components/sidebar/Sidebar.vue.js.map +1 -0
- package/dist/v2/components/sidebar/Sidebar.vue.script.js +117 -0
- package/dist/v2/components/sidebar/Sidebar.vue.script.js.map +1 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +7 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.js.map +1 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.script.js +52 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.script.js.map +1 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue.js +7 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue.js.map +1 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue.script.js +54 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue.script.js.map +1 -0
- package/dist/v2/components/sidebar/index.d.ts +3 -3
- package/dist/v2/components/sidebar/index.js +3 -2
- package/dist/v2/constants.js +7 -0
- package/dist/v2/constants.js.map +1 -0
- package/dist/v2/features/app/App.vue.d.ts +2 -2
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +8 -0
- package/dist/v2/features/app/App.vue.js.map +1 -0
- package/dist/v2/features/app/App.vue.script.js +177 -0
- package/dist/v2/features/app/App.vue.script.js.map +1 -0
- package/dist/v2/features/app/app-events.js +242 -0
- package/dist/v2/features/app/app-events.js.map +1 -0
- package/dist/v2/features/app/app-state.d.ts +3 -1
- package/dist/v2/features/app/app-state.d.ts.map +1 -1
- package/dist/v2/features/app/app-state.js +629 -0
- package/dist/v2/features/app/app-state.js.map +1 -0
- package/dist/v2/features/app/components/AppSidebar.vue.js +9 -0
- package/dist/v2/features/app/components/AppSidebar.vue.js.map +1 -0
- package/dist/v2/features/app/components/AppSidebar.vue.script.js +318 -0
- package/dist/v2/features/app/components/AppSidebar.vue.script.js.map +1 -0
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +7 -0
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js.map +1 -0
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.script.js +58 -0
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.script.js.map +1 -0
- package/dist/v2/features/app/components/DesktopTab.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/DesktopTab.vue.js +9 -0
- package/dist/v2/features/app/components/DesktopTab.vue.js.map +1 -0
- package/dist/v2/features/app/components/DesktopTab.vue.script.js +121 -0
- package/dist/v2/features/app/components/DesktopTab.vue.script.js.map +1 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.js +7 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.js.map +1 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.script.js +75 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.script.js.map +1 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue.js +9 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue.js.map +1 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue.script.js +21 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue.script.js.map +1 -0
- package/dist/v2/features/app/components/SidebarItemMenu.vue.js +7 -0
- package/dist/v2/features/app/components/SidebarItemMenu.vue.js.map +1 -0
- package/dist/v2/features/app/components/SidebarItemMenu.vue.script.js +175 -0
- package/dist/v2/features/app/components/SidebarItemMenu.vue.script.js.map +1 -0
- package/dist/v2/features/app/components/SplashScreen.vue.js +9 -0
- package/dist/v2/features/app/components/SplashScreen.vue.js.map +1 -0
- package/dist/v2/features/app/components/SplashScreen.vue.script.js +20 -0
- package/dist/v2/features/app/components/SplashScreen.vue.script.js.map +1 -0
- package/dist/v2/features/app/components/index.d.ts +1 -1
- package/dist/v2/features/app/components/index.js +1 -9
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +6 -2
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +54 -0
- package/dist/v2/features/app/helpers/create-api-client-app.js.map +1 -0
- package/dist/v2/features/app/helpers/filter-workspaces.js +55 -0
- package/dist/v2/features/app/helpers/filter-workspaces.js.map +1 -0
- package/dist/v2/features/app/helpers/get-route-param.d.ts +1 -1
- package/dist/v2/features/app/helpers/get-route-param.js +12 -0
- package/dist/v2/features/app/helpers/get-route-param.js.map +1 -0
- package/dist/v2/features/app/helpers/group-workspaces.js +38 -0
- package/dist/v2/features/app/helpers/group-workspaces.js.map +1 -0
- package/dist/v2/features/app/helpers/routes.d.ts +9 -3
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +133 -0
- package/dist/v2/features/app/helpers/routes.js.map +1 -0
- package/dist/v2/features/app/hooks/use-document-watcher.js +168 -0
- package/dist/v2/features/app/hooks/use-document-watcher.js.map +1 -0
- package/dist/v2/features/app/hooks/use-theme.d.ts +1 -1
- package/dist/v2/features/app/hooks/use-theme.js +94 -0
- package/dist/v2/features/app/hooks/use-theme.js.map +1 -0
- package/dist/v2/features/app/index.d.ts +7 -7
- package/dist/v2/features/app/index.js +7 -3161
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.js +8 -0
- package/dist/v2/features/collection/DocumentCollection.vue.js.map +1 -0
- package/dist/v2/features/collection/DocumentCollection.vue.script.js +362 -0
- package/dist/v2/features/collection/DocumentCollection.vue.script.js.map +1 -0
- package/dist/v2/features/collection/OperationCollection.vue.d.ts +1 -1
- package/dist/v2/features/collection/OperationCollection.vue.js +7 -0
- package/dist/v2/features/collection/OperationCollection.vue.js.map +1 -0
- package/dist/v2/features/collection/OperationCollection.vue.script.js +94 -0
- package/dist/v2/features/collection/OperationCollection.vue.script.js.map +1 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +1 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +7 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue.js.map +1 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue.script.js +73 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue.script.js.map +1 -0
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Authentication.vue.js +9 -0
- package/dist/v2/features/collection/components/Authentication.vue.js.map +1 -0
- package/dist/v2/features/collection/components/Authentication.vue.script.js +166 -0
- package/dist/v2/features/collection/components/Authentication.vue.script.js.map +1 -0
- package/dist/v2/features/collection/components/Cookies.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Cookies.vue.js +7 -0
- package/dist/v2/features/collection/components/Cookies.vue.js.map +1 -0
- package/dist/v2/features/collection/components/Cookies.vue.script.js +57 -0
- package/dist/v2/features/collection/components/Cookies.vue.script.js.map +1 -0
- package/dist/v2/features/collection/components/Editor/Editor.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Editor/Editor.vue.js +9 -0
- package/dist/v2/features/collection/components/Editor/Editor.vue.js.map +1 -0
- package/dist/v2/features/collection/components/Editor/Editor.vue.script.js +360 -0
- package/dist/v2/features/collection/components/Editor/Editor.vue.script.js.map +1 -0
- package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.js +7 -0
- package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.js.map +1 -0
- package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.script.js +69 -0
- package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.script.js.map +1 -0
- package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.js +7 -0
- package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.js.map +1 -0
- package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.script.js +91 -0
- package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.script.js.map +1 -0
- package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.js +22 -0
- package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.js.map +1 -0
- package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.js +17 -0
- package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.js.map +1 -0
- package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.js +17 -0
- package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.js.map +1 -0
- package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.js +34 -0
- package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.js.map +1 -0
- package/dist/v2/features/collection/components/Editor/helpers/stringify-document.js +18 -0
- package/dist/v2/features/collection/components/Editor/helpers/stringify-document.js.map +1 -0
- package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.js +36 -0
- package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.js.map +1 -0
- package/dist/v2/features/collection/components/Editor/index.d.ts +1 -1
- package/dist/v2/features/collection/components/Editor/index.js +1 -1
- package/dist/v2/features/collection/components/Environment.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Environment.vue.js +7 -0
- package/dist/v2/features/collection/components/Environment.vue.js.map +1 -0
- package/dist/v2/features/collection/components/Environment.vue.script.js +60 -0
- package/dist/v2/features/collection/components/Environment.vue.script.js.map +1 -0
- package/dist/v2/features/collection/components/Form.vue.js +7 -0
- package/dist/v2/features/collection/components/Form.vue.js.map +1 -0
- package/dist/v2/features/collection/components/Form.vue.script.js +75 -0
- package/dist/v2/features/collection/components/Form.vue.script.js.map +1 -0
- package/dist/v2/features/collection/components/LabelInput.vue.js +9 -0
- package/dist/v2/features/collection/components/LabelInput.vue.js.map +1 -0
- package/dist/v2/features/collection/components/LabelInput.vue.script.js +38 -0
- package/dist/v2/features/collection/components/LabelInput.vue.script.js.map +1 -0
- package/dist/v2/features/collection/components/Overview.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Overview.vue.js +9 -0
- package/dist/v2/features/collection/components/Overview.vue.js.map +1 -0
- package/dist/v2/features/collection/components/Overview.vue.script.js +203 -0
- package/dist/v2/features/collection/components/Overview.vue.script.js.map +1 -0
- package/dist/v2/features/collection/components/Servers.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Servers.vue.js +7 -0
- package/dist/v2/features/collection/components/Servers.vue.js.map +1 -0
- package/dist/v2/features/collection/components/Servers.vue.script.js +217 -0
- package/dist/v2/features/collection/components/Servers.vue.script.js.map +1 -0
- package/dist/v2/features/collection/components/Settings.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Settings.vue.js +7 -0
- package/dist/v2/features/collection/components/Settings.vue.js.map +1 -0
- package/dist/v2/features/collection/components/Settings.vue.script.js +80 -0
- package/dist/v2/features/collection/components/Settings.vue.script.js.map +1 -0
- package/dist/v2/features/collection/components/SyncConflictResolutionEditor.vue.js +9 -0
- package/dist/v2/features/collection/components/SyncConflictResolutionEditor.vue.js.map +1 -0
- package/dist/v2/features/collection/components/SyncConflictResolutionEditor.vue.script.js +136 -0
- package/dist/v2/features/collection/components/SyncConflictResolutionEditor.vue.script.js.map +1 -0
- package/dist/v2/features/collection/components/Tabs.vue.d.ts +1 -1
- package/dist/v2/features/collection/components/Tabs.vue.js +7 -0
- package/dist/v2/features/collection/components/Tabs.vue.js.map +1 -0
- package/dist/v2/features/collection/components/Tabs.vue.script.js +53 -0
- package/dist/v2/features/collection/components/Tabs.vue.script.js.map +1 -0
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js +19 -0
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js.map +1 -0
- package/dist/v2/features/command-palette/TheCommandPalette.vue.d.ts +1 -1
- package/dist/v2/features/command-palette/TheCommandPalette.vue.js +9 -0
- package/dist/v2/features/command-palette/TheCommandPalette.vue.js.map +1 -0
- package/dist/v2/features/command-palette/TheCommandPalette.vue.script.js +189 -0
- package/dist/v2/features/command-palette/TheCommandPalette.vue.script.js.map +1 -0
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +7 -0
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.js.map +1 -0
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.script.js +47 -0
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.script.js.map +1 -0
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +7 -0
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.js.map +1 -0
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.script.js +73 -0
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.script.js.map +1 -0
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +7 -0
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js.map +1 -0
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.script.js +207 -0
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.script.js.map +1 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts +3 -23
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +7 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js.map +1 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.script.js +206 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.script.js.map +1 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.js +9 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.js.map +1 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.script.js +125 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.script.js.map +1 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.d.ts +30 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.d.ts.map +1 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.js +7 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.js.map +1 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.script.js +151 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.script.js.map +1 -0
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.js +7 -0
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.js.map +1 -0
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.script.js +89 -0
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.script.js.map +1 -0
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +7 -0
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js.map +1 -0
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.script.js +226 -0
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.script.js.map +1 -0
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +7 -0
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js.map +1 -0
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.script.js +126 -0
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.script.js.map +1 -0
- package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.d.ts +58 -0
- package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.d.ts.map +1 -0
- package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.js +9 -0
- package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.js.map +1 -0
- package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.script.js +142 -0
- package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.script.js.map +1 -0
- package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.d.ts +23 -0
- package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.d.ts.map +1 -0
- package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.js +9 -0
- package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.js.map +1 -0
- package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.script.js +138 -0
- package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.script.js.map +1 -0
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +7 -0
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js.map +1 -0
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.script.js +39 -0
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.script.js.map +1 -0
- package/dist/v2/features/command-palette/helpers/generate-unique-slug.js +29 -0
- package/dist/v2/features/command-palette/helpers/generate-unique-slug.js.map +1 -0
- package/dist/v2/features/command-palette/helpers/get-merge-key.d.ts +11 -0
- package/dist/v2/features/command-palette/helpers/get-merge-key.d.ts.map +1 -0
- package/dist/v2/features/command-palette/helpers/get-merge-key.js +32 -0
- package/dist/v2/features/command-palette/helpers/get-merge-key.js.map +1 -0
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.js +56 -0
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.js.map +1 -0
- package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts +2 -1
- package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts.map +1 -1
- package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js +22 -0
- package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js.map +1 -0
- package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js +119 -0
- package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js.map +1 -0
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +4 -0
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -1
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.js +36 -0
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.js.map +1 -0
- package/dist/v2/features/command-palette/helpers/import-document-to-workspace.js +70 -0
- package/dist/v2/features/command-palette/helpers/import-document-to-workspace.js.map +1 -0
- package/dist/v2/features/command-palette/helpers/is-postman-collection.js +24 -0
- package/dist/v2/features/command-palette/helpers/is-postman-collection.js.map +1 -0
- package/dist/v2/features/command-palette/helpers/load-document-from-source.js +71 -0
- package/dist/v2/features/command-palette/helpers/load-document-from-source.js.map +1 -0
- package/dist/v2/features/command-palette/helpers/postman-request-collisions.d.ts +11 -0
- package/dist/v2/features/command-palette/helpers/postman-request-collisions.d.ts.map +1 -0
- package/dist/v2/features/command-palette/helpers/postman-request-collisions.js +35 -0
- package/dist/v2/features/command-palette/helpers/postman-request-collisions.js.map +1 -0
- package/dist/v2/features/command-palette/helpers/postman-request-tree.d.ts +41 -0
- package/dist/v2/features/command-palette/helpers/postman-request-tree.d.ts.map +1 -0
- package/dist/v2/features/command-palette/helpers/postman-request-tree.js +139 -0
- package/dist/v2/features/command-palette/helpers/postman-request-tree.js.map +1 -0
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +38 -2
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +207 -0
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js.map +1 -0
- package/dist/v2/features/command-palette/index.d.ts +2 -2
- package/dist/v2/features/command-palette/index.js +2 -2
- package/dist/v2/features/editor/config.js +19 -0
- package/dist/v2/features/editor/config.js.map +1 -0
- package/dist/v2/features/editor/helpers/configure-language-support.js +48 -0
- package/dist/v2/features/editor/helpers/configure-language-support.js.map +1 -0
- package/dist/v2/features/editor/helpers/ensure-monaco-environment.js +21 -0
- package/dist/v2/features/editor/helpers/ensure-monaco-environment.js.map +1 -0
- package/dist/v2/features/editor/helpers/json/create-json-model.js +31 -0
- package/dist/v2/features/editor/helpers/json/create-json-model.js.map +1 -0
- package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.d.ts +1 -1
- package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.js +22 -0
- package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.js.map +1 -0
- package/dist/v2/features/editor/helpers/json/json-ast.js +32 -0
- package/dist/v2/features/editor/helpers/json/json-ast.js.map +1 -0
- package/dist/v2/features/editor/helpers/json/json-pointer-links.js +104 -0
- package/dist/v2/features/editor/helpers/json/json-pointer-links.js.map +1 -0
- package/dist/v2/features/editor/helpers/json/json-pointer-path.d.ts +1 -1
- package/dist/v2/features/editor/helpers/json/json-pointer-path.js +27 -0
- package/dist/v2/features/editor/helpers/json/json-pointer-path.js.map +1 -0
- package/dist/v2/features/editor/helpers/range-to-whole-line.js +27 -0
- package/dist/v2/features/editor/helpers/range-to-whole-line.js.map +1 -0
- package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.js +84 -0
- package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.js.map +1 -0
- package/dist/v2/features/editor/helpers/theme/load-css-variables.js +41 -0
- package/dist/v2/features/editor/helpers/theme/load-css-variables.js.map +1 -0
- package/dist/v2/features/editor/helpers/yaml/create-yaml-model.js +32 -0
- package/dist/v2/features/editor/helpers/yaml/create-yaml-model.js.map +1 -0
- package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.js +70 -0
- package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.js.map +1 -0
- package/dist/v2/features/editor/hooks/use-editor-markers.js +37 -0
- package/dist/v2/features/editor/hooks/use-editor-markers.js.map +1 -0
- package/dist/v2/features/editor/hooks/use-editor.js +133 -0
- package/dist/v2/features/editor/hooks/use-editor.js.map +1 -0
- package/dist/v2/features/editor/hooks/use-json-pointer-link-support.js +45 -0
- package/dist/v2/features/editor/hooks/use-json-pointer-link-support.js.map +1 -0
- package/dist/v2/features/editor/hooks/use-three-way-merge-editor.js +396 -0
- package/dist/v2/features/editor/hooks/use-three-way-merge-editor.js.map +1 -0
- package/dist/v2/features/editor/index.d.ts +4 -4
- package/dist/v2/features/editor/index.js +4 -1
- package/dist/v2/features/editor/schemas/openapi-3.1-schema.json.js +51 -0
- package/dist/v2/features/editor/schemas/openapi-3.1-schema.json.js.map +1 -0
- package/dist/v2/features/environments/EnvironmentsList.vue.js +7 -0
- package/dist/v2/features/environments/EnvironmentsList.vue.js.map +1 -0
- package/dist/v2/features/environments/EnvironmentsList.vue.script.js +96 -0
- package/dist/v2/features/environments/EnvironmentsList.vue.script.js.map +1 -0
- package/dist/v2/features/environments/components/Environment.vue.js +7 -0
- package/dist/v2/features/environments/components/Environment.vue.js.map +1 -0
- package/dist/v2/features/environments/components/Environment.vue.script.js +65 -0
- package/dist/v2/features/environments/components/Environment.vue.script.js.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue.js +7 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue.js.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue.script.js +158 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue.script.js.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +7 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.script.js +97 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.script.js.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +7 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.script.js +50 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.script.js.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +7 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.script.js +113 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.script.js.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +9 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.script.js +152 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.script.js.map +1 -0
- package/dist/v2/features/environments/index.d.ts +1 -1
- package/dist/v2/features/environments/index.js +1 -3
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +9 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.js.map +1 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.script.js +186 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.script.js.map +1 -0
- package/dist/v2/features/global-cookies/index.d.ts +1 -1
- package/dist/v2/features/global-cookies/index.js +1 -3
- package/dist/v2/features/modal/Modal.vue.d.ts +4 -2
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +7 -0
- package/dist/v2/features/modal/Modal.vue.js.map +1 -0
- package/dist/v2/features/modal/Modal.vue.script.js +151 -0
- package/dist/v2/features/modal/Modal.vue.script.js.map +1 -0
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +2 -2
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
- package/dist/v2/features/modal/helpers/create-api-client-modal.js +103 -0
- package/dist/v2/features/modal/helpers/create-api-client-modal.js.map +1 -0
- package/dist/v2/features/modal/helpers/map-hidden-clients-config.js +32 -0
- package/dist/v2/features/modal/helpers/map-hidden-clients-config.js.map +1 -0
- package/dist/v2/features/modal/helpers/resolve-route-parameters.js +92 -0
- package/dist/v2/features/modal/helpers/resolve-route-parameters.js.map +1 -0
- package/dist/v2/features/modal/helpers/restore-workspace-state.js +51 -0
- package/dist/v2/features/modal/helpers/restore-workspace-state.js.map +1 -0
- package/dist/v2/features/modal/hooks/use-modal-sidebar.d.ts +1 -1
- package/dist/v2/features/modal/hooks/use-modal-sidebar.js +142 -0
- package/dist/v2/features/modal/hooks/use-modal-sidebar.js.map +1 -0
- package/dist/v2/features/modal/index.d.ts +3 -3
- package/dist/v2/features/modal/index.js +3 -639
- package/dist/v2/features/modal/modal-events.d.ts +3 -2
- package/dist/v2/features/modal/modal-events.d.ts.map +1 -1
- package/dist/v2/features/modal/modal-events.js +43 -0
- package/dist/v2/features/modal/modal-events.js.map +1 -0
- package/dist/v2/features/operation/Operation.vue.d.ts +6 -2
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +7 -0
- package/dist/v2/features/operation/Operation.vue.js.map +1 -0
- package/dist/v2/features/operation/Operation.vue.script.js +185 -0
- package/dist/v2/features/operation/Operation.vue.script.js.map +1 -0
- package/dist/v2/features/operation/helpers/combine-params.js +20 -0
- package/dist/v2/features/operation/helpers/combine-params.js.map +1 -0
- package/dist/v2/features/operation/helpers/get-security-requirements.js +17 -0
- package/dist/v2/features/operation/helpers/get-security-requirements.js.map +1 -0
- package/dist/v2/features/operation/helpers/get-selected-security.js +41 -0
- package/dist/v2/features/operation/helpers/get-selected-security.js.map +1 -0
- package/dist/v2/features/operation/helpers/get-selected-server.js +21 -0
- package/dist/v2/features/operation/helpers/get-selected-server.js.map +1 -0
- package/dist/v2/features/operation/index.d.ts +5 -5
- package/dist/v2/features/operation/index.js +5 -18
- package/dist/v2/features/search/helpers/create-fuse-instance.js +52 -0
- package/dist/v2/features/search/helpers/create-fuse-instance.js.map +1 -0
- package/dist/v2/features/search/helpers/create-search-index.js +76 -0
- package/dist/v2/features/search/helpers/create-search-index.js.map +1 -0
- package/dist/v2/features/search/hooks/use-search-index.js +31 -0
- package/dist/v2/features/search/hooks/use-search-index.js.map +1 -0
- package/dist/v2/features/search/index.d.ts +1 -1
- package/dist/v2/features/search/index.js +1 -1
- package/dist/v2/features/settings/CollectionSettings.vue.d.ts +4 -0
- package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -1
- package/dist/v2/features/settings/CollectionSettings.vue.js +7 -0
- package/dist/v2/features/settings/CollectionSettings.vue.js.map +1 -0
- package/dist/v2/features/settings/CollectionSettings.vue.script.js +229 -0
- package/dist/v2/features/settings/CollectionSettings.vue.script.js.map +1 -0
- package/dist/v2/features/settings/DocumentSettings.vue.js +7 -0
- package/dist/v2/features/settings/DocumentSettings.vue.js.map +1 -0
- package/dist/v2/features/settings/DocumentSettings.vue.script.js +92 -0
- package/dist/v2/features/settings/DocumentSettings.vue.script.js.map +1 -0
- package/dist/v2/features/settings/components/Appearance.vue.js +7 -0
- package/dist/v2/features/settings/components/Appearance.vue.js.map +1 -0
- package/dist/v2/features/settings/components/Appearance.vue.script.js +63 -0
- package/dist/v2/features/settings/components/Appearance.vue.script.js.map +1 -0
- package/dist/v2/features/settings/components/Section.vue.js +7 -0
- package/dist/v2/features/settings/components/Section.vue.js.map +1 -0
- package/dist/v2/features/settings/components/Section.vue.script.js +30 -0
- package/dist/v2/features/settings/components/Section.vue.script.js.map +1 -0
- package/dist/v2/features/settings/helpers/get-theme-colors.js +68 -0
- package/dist/v2/features/settings/helpers/get-theme-colors.js.map +1 -0
- package/dist/v2/features/settings/index.d.ts +2 -2
- package/dist/v2/features/settings/index.js +2 -1
- package/dist/v2/helpers/download-document.d.ts +2 -0
- package/dist/v2/helpers/download-document.d.ts.map +1 -0
- package/dist/v2/helpers/download-document.js +42 -0
- package/dist/v2/helpers/download-document.js.map +1 -0
- package/dist/v2/helpers/drag-handle-factory.d.ts.map +1 -1
- package/dist/v2/helpers/drag-handle-factory.js +258 -0
- package/dist/v2/helpers/drag-handle-factory.js.map +1 -0
- package/dist/v2/helpers/generate-location-id.js +25 -0
- package/dist/v2/helpers/generate-location-id.js.map +1 -0
- package/dist/v2/helpers/get-active-environment.js +19 -0
- package/dist/v2/helpers/get-active-environment.js.map +1 -0
- package/dist/v2/helpers/get-active-proxy-url.js +26 -0
- package/dist/v2/helpers/get-active-proxy-url.js.map +1 -0
- package/dist/v2/helpers/get-servers.js +106 -0
- package/dist/v2/helpers/get-servers.js.map +1 -0
- package/dist/v2/helpers/get-tab-details.d.ts +1 -1
- package/dist/v2/helpers/get-tab-details.js +54 -0
- package/dist/v2/helpers/get-tab-details.js.map +1 -0
- package/dist/v2/helpers/handle-hotkeys.js +151 -0
- package/dist/v2/helpers/handle-hotkeys.js.map +1 -0
- package/dist/v2/helpers/index.d.ts +2 -2
- package/dist/v2/helpers/index.js +2 -2
- package/dist/v2/helpers/is-url.js +9 -0
- package/dist/v2/helpers/is-url.js.map +1 -0
- package/dist/v2/helpers/slugify.js +15 -0
- package/dist/v2/helpers/slugify.js.map +1 -0
- package/dist/v2/helpers/storage.d.ts +8 -0
- package/dist/v2/helpers/storage.d.ts.map +1 -1
- package/dist/v2/helpers/storage.js +37 -0
- package/dist/v2/helpers/storage.js.map +1 -0
- package/dist/v2/hooks/use-color-mode.js +72 -0
- package/dist/v2/hooks/use-color-mode.js.map +1 -0
- package/dist/v2/hooks/use-global-hot-keys.js +22 -0
- package/dist/v2/hooks/use-global-hot-keys.js.map +1 -0
- package/dist/v2/hooks/use-scroll-lock.js +58 -0
- package/dist/v2/hooks/use-scroll-lock.js.map +1 -0
- package/dist/v2/posthog.d.ts +3 -0
- package/dist/v2/posthog.d.ts.map +1 -0
- package/dist/v2/posthog.js +19 -0
- package/dist/v2/posthog.js.map +1 -0
- package/dist/v2/workspace-events.js +109 -0
- package/dist/v2/workspace-events.js.map +1 -0
- package/dist/views/Collection/Collection.vue.js +7 -0
- package/dist/views/Collection/Collection.vue.js.map +1 -0
- package/dist/views/Collection/Collection.vue.script.js +46 -0
- package/dist/views/Collection/Collection.vue.script.js.map +1 -0
- package/dist/views/Collection/CollectionAuthentication.vue.js +9 -0
- package/dist/views/Collection/CollectionAuthentication.vue.js.map +1 -0
- package/dist/views/Collection/CollectionAuthentication.vue.script.js +52 -0
- package/dist/views/Collection/CollectionAuthentication.vue.script.js.map +1 -0
- package/dist/views/Collection/CollectionCookies.vue.js +7 -0
- package/dist/views/Collection/CollectionCookies.vue.js.map +1 -0
- package/dist/views/Collection/CollectionCookies.vue.script.js +18 -0
- package/dist/views/Collection/CollectionCookies.vue.script.js.map +1 -0
- package/dist/views/Collection/CollectionEnvironment.vue.js +8 -0
- package/dist/views/Collection/CollectionEnvironment.vue.js.map +1 -0
- package/dist/views/Collection/CollectionEnvironment.vue.script.js +238 -0
- package/dist/views/Collection/CollectionEnvironment.vue.script.js.map +1 -0
- package/dist/views/Collection/CollectionInfoForm.vue.js +9 -0
- package/dist/views/Collection/CollectionInfoForm.vue.js.map +1 -0
- package/dist/views/Collection/CollectionInfoForm.vue.script.js +73 -0
- package/dist/views/Collection/CollectionInfoForm.vue.script.js.map +1 -0
- package/dist/views/Collection/CollectionNavigation.vue.js +7 -0
- package/dist/views/Collection/CollectionNavigation.vue.js.map +1 -0
- package/dist/views/Collection/CollectionNavigation.vue.script.js +75 -0
- package/dist/views/Collection/CollectionNavigation.vue.script.js.map +1 -0
- package/dist/views/Collection/CollectionOverview.vue.js +7 -0
- package/dist/views/Collection/CollectionOverview.vue.js.map +1 -0
- package/dist/views/Collection/CollectionOverview.vue.script.js +42 -0
- package/dist/views/Collection/CollectionOverview.vue.script.js.map +1 -0
- package/dist/views/Collection/CollectionScripts.vue.js +7 -0
- package/dist/views/Collection/CollectionScripts.vue.js.map +1 -0
- package/dist/views/Collection/CollectionScripts.vue.script.js +18 -0
- package/dist/views/Collection/CollectionScripts.vue.script.js.map +1 -0
- package/dist/views/Collection/CollectionServerForm.vue.js +7 -0
- package/dist/views/Collection/CollectionServerForm.vue.js.map +1 -0
- package/dist/views/Collection/CollectionServerForm.vue.script.js +76 -0
- package/dist/views/Collection/CollectionServerForm.vue.script.js.map +1 -0
- package/dist/views/Collection/CollectionServers.vue.js +7 -0
- package/dist/views/Collection/CollectionServers.vue.js.map +1 -0
- package/dist/views/Collection/CollectionServers.vue.script.js +95 -0
- package/dist/views/Collection/CollectionServers.vue.script.js.map +1 -0
- package/dist/views/Collection/CollectionSettings.vue.js +7 -0
- package/dist/views/Collection/CollectionSettings.vue.js.map +1 -0
- package/dist/views/Collection/CollectionSettings.vue.script.js +87 -0
- package/dist/views/Collection/CollectionSettings.vue.script.js.map +1 -0
- package/dist/views/Collection/CollectionSync.vue.js +7 -0
- package/dist/views/Collection/CollectionSync.vue.js.map +1 -0
- package/dist/views/Collection/CollectionSync.vue.script.js +18 -0
- package/dist/views/Collection/CollectionSync.vue.script.js.map +1 -0
- package/dist/views/Collection/components/EnvironmentForm.vue.d.ts +1 -1
- package/dist/views/Collection/components/EnvironmentForm.vue.js +9 -0
- package/dist/views/Collection/components/EnvironmentForm.vue.js.map +1 -0
- package/dist/views/Collection/components/EnvironmentForm.vue.script.js +284 -0
- package/dist/views/Collection/components/EnvironmentForm.vue.script.js.map +1 -0
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue.js +9 -0
- package/dist/views/Collection/components/MarkdownInput.vue.js.map +1 -0
- package/dist/views/Collection/components/MarkdownInput.vue.script.js +92 -0
- package/dist/views/Collection/components/MarkdownInput.vue.script.js.map +1 -0
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +7 -0
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js.map +1 -0
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.script.js +74 -0
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.script.js.map +1 -0
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +66 -0
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js.map +1 -0
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +86 -0
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.js.map +1 -0
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +39 -0
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.js.map +1 -0
- package/dist/views/Components/CodeSnippet/index.d.ts +4 -4
- package/dist/views/Components/CodeSnippet/index.js +4 -2
- package/dist/views/Cookies/CookieForm.vue.js +7 -0
- package/dist/views/Cookies/CookieForm.vue.js.map +1 -0
- package/dist/views/Cookies/CookieForm.vue.script.js +50 -0
- package/dist/views/Cookies/CookieForm.vue.script.js.map +1 -0
- package/dist/views/Cookies/CookieModal.vue.js +9 -0
- package/dist/views/Cookies/CookieModal.vue.js.map +1 -0
- package/dist/views/Cookies/CookieModal.vue.script.js +83 -0
- package/dist/views/Cookies/CookieModal.vue.script.js.map +1 -0
- package/dist/views/Cookies/Cookies.vue.js +7 -0
- package/dist/views/Cookies/Cookies.vue.js.map +1 -0
- package/dist/views/Cookies/Cookies.vue.script.js +156 -0
- package/dist/views/Cookies/Cookies.vue.script.js.map +1 -0
- package/dist/views/Environment/Environment.vue.js +7 -0
- package/dist/views/Environment/Environment.vue.js.map +1 -0
- package/dist/views/Environment/Environment.vue.script.js +384 -0
- package/dist/views/Environment/Environment.vue.script.js.map +1 -0
- package/dist/views/Environment/EnvironmentColorModal.vue.js +7 -0
- package/dist/views/Environment/EnvironmentColorModal.vue.js.map +1 -0
- package/dist/views/Environment/EnvironmentColorModal.vue.script.js +47 -0
- package/dist/views/Environment/EnvironmentColorModal.vue.script.js.map +1 -0
- package/dist/views/Environment/EnvironmentColors.vue.js +7 -0
- package/dist/views/Environment/EnvironmentColors.vue.js.map +1 -0
- package/dist/views/Environment/EnvironmentColors.vue.script.js +126 -0
- package/dist/views/Environment/EnvironmentColors.vue.script.js.map +1 -0
- package/dist/views/Environment/EnvironmentModal.vue.js +7 -0
- package/dist/views/Environment/EnvironmentModal.vue.js.map +1 -0
- package/dist/views/Environment/EnvironmentModal.vue.script.js +122 -0
- package/dist/views/Environment/EnvironmentModal.vue.script.js.map +1 -0
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +7 -0
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js.map +1 -0
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.script.js +133 -0
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.script.js.map +1 -0
- package/dist/views/Environment/handle-drag.d.ts +1 -1
- package/dist/views/Environment/handle-drag.js +38 -0
- package/dist/views/Environment/handle-drag.js.map +1 -0
- package/dist/views/Request/Request.vue.d.ts +1 -1
- package/dist/views/Request/Request.vue.js +9 -0
- package/dist/views/Request/Request.vue.js.map +1 -0
- package/dist/views/Request/Request.vue.script.js +117 -0
- package/dist/views/Request/Request.vue.script.js.map +1 -0
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue.js +9 -0
- package/dist/views/Request/RequestRoot.vue.js.map +1 -0
- package/dist/views/Request/RequestRoot.vue.script.js +158 -0
- package/dist/views/Request/RequestRoot.vue.script.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +7 -0
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.script.js +52 -0
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.script.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +7 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.script.js +204 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.script.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +7 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.script.js +106 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.script.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +9 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.script.js +216 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.script.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +9 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.script.js +116 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.script.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +7 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.script.js +73 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.script.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +7 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.script.js +205 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.script.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.js +39 -0
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +3 -3
- package/dist/views/Request/RequestSection/RequestAuth/index.js +3 -3
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +9 -0
- package/dist/views/Request/RequestSection/RequestBody.vue.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestBody.vue.script.js +477 -0
- package/dist/views/Request/RequestSection/RequestBody.vue.script.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +9 -0
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.script.js +187 -0
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.script.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +7 -0
- package/dist/views/Request/RequestSection/RequestParams.vue.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestParams.vue.script.js +180 -0
- package/dist/views/Request/RequestSection/RequestParams.vue.script.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +7 -0
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestPathParams.vue.script.js +115 -0
- package/dist/views/Request/RequestSection/RequestPathParams.vue.script.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +9 -0
- package/dist/views/Request/RequestSection/RequestSection.vue.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestSection.vue.script.js +297 -0
- package/dist/views/Request/RequestSection/RequestSection.vue.script.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +9 -0
- package/dist/views/Request/RequestSection/RequestTable.vue.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestTable.vue.script.js +266 -0
- package/dist/views/Request/RequestSection/RequestTable.vue.script.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +9 -0
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js.map +1 -0
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.script.js +64 -0
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.script.js.map +1 -0
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +38 -0
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js.map +1 -0
- package/dist/views/Request/RequestSection/helpers/getting-started.js +17 -0
- package/dist/views/Request/RequestSection/helpers/getting-started.js.map +1 -0
- package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts +1 -1
- package/dist/views/Request/RequestSection/helpers/update-scheme.js +22 -0
- package/dist/views/Request/RequestSection/helpers/update-scheme.js.map +1 -0
- package/dist/views/Request/RequestSection/index.d.ts +2 -2
- package/dist/views/Request/RequestSection/index.js +2 -42
- package/dist/views/Request/RequestSidebar.vue.js +9 -0
- package/dist/views/Request/RequestSidebar.vue.js.map +1 -0
- package/dist/views/Request/RequestSidebar.vue.script.js +307 -0
- package/dist/views/Request/RequestSidebar.vue.script.js.map +1 -0
- package/dist/views/Request/RequestSidebarItem.vue.js +10 -0
- package/dist/views/Request/RequestSidebarItem.vue.js.map +1 -0
- package/dist/views/Request/RequestSidebarItem.vue.script.js +475 -0
- package/dist/views/Request/RequestSidebarItem.vue.script.js.map +1 -0
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +9 -0
- package/dist/views/Request/RequestSidebarItemMenu.vue.js.map +1 -0
- package/dist/views/Request/RequestSidebarItemMenu.vue.script.js +222 -0
- package/dist/views/Request/RequestSidebarItemMenu.vue.script.js.map +1 -0
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +9 -0
- package/dist/views/Request/RequestSubpageHeader.vue.js.map +1 -0
- package/dist/views/Request/RequestSubpageHeader.vue.script.js +92 -0
- package/dist/views/Request/RequestSubpageHeader.vue.script.js.map +1 -0
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +7 -0
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js.map +1 -0
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.script.js +77 -0
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.script.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +9 -0
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBody.vue.script.js +91 -0
- package/dist/views/Request/ResponseSection/ResponseBody.vue.script.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +7 -0
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.script.js +35 -0
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.script.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js +14 -0
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +9 -0
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.script.js +64 -0
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.script.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +9 -0
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.script.js +54 -0
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.script.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +7 -0
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.script.js +85 -0
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.script.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +7 -0
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.script.js +25 -0
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.script.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +8 -0
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.script.js +51 -0
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.script.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +7 -0
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.script.js +39 -0
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.script.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +9 -0
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.script.js +98 -0
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.script.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +7 -0
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.script.js +77 -0
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.script.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +9 -0
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.script.js +44 -0
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.script.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +7 -0
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.script.js +64 -0
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.script.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +9 -0
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseSection.vue.script.js +206 -0
- package/dist/views/Request/ResponseSection/ResponseSection.vue.script.js.map +1 -0
- package/dist/views/Request/ResponseSection/index.d.ts +2 -2
- package/dist/views/Request/ResponseSection/index.js +2 -6
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +7 -0
- package/dist/views/Request/components/WorkspaceDropdown.vue.js.map +1 -0
- package/dist/views/Request/components/WorkspaceDropdown.vue.script.js +182 -0
- package/dist/views/Request/components/WorkspaceDropdown.vue.script.js.map +1 -0
- package/dist/views/Request/components/index.d.ts +1 -1
- package/dist/views/Request/components/index.js +1 -1
- package/dist/views/Request/consts/index.d.ts +2 -2
- package/dist/views/Request/consts/index.js +2 -1
- package/dist/views/Request/consts/mediaTypes.js +231 -0
- package/dist/views/Request/consts/mediaTypes.js.map +1 -0
- package/dist/views/Request/consts/new-auth-options.js +90 -0
- package/dist/views/Request/consts/new-auth-options.js.map +1 -0
- package/dist/views/Request/handle-drag.d.ts +1 -1
- package/dist/views/Request/handle-drag.js +51 -0
- package/dist/views/Request/handle-drag.js.map +1 -0
- package/dist/views/Request/hooks/useOpenApiWatcher.js +96 -0
- package/dist/views/Request/hooks/useOpenApiWatcher.js.map +1 -0
- package/dist/views/Request/libs/auth.js +74 -0
- package/dist/views/Request/libs/auth.js.map +1 -0
- package/dist/views/Request/libs/index.d.ts +3 -3
- package/dist/views/Request/libs/index.js +3 -2
- package/dist/views/Request/libs/oauth2.d.ts +1 -1
- package/dist/views/Request/libs/oauth2.js +178 -0
- package/dist/views/Request/libs/oauth2.js.map +1 -0
- package/dist/views/Request/libs/request.js +46 -0
- package/dist/views/Request/libs/request.js.map +1 -0
- package/dist/views/Request/libs/watch-mode.d.ts +1 -1
- package/dist/views/Request/libs/watch-mode.js +375 -0
- package/dist/views/Request/libs/watch-mode.js.map +1 -0
- package/dist/views/Settings/Settings.vue.js +7 -0
- package/dist/views/Settings/Settings.vue.js.map +1 -0
- package/dist/views/Settings/Settings.vue.script.js +28 -0
- package/dist/views/Settings/Settings.vue.script.js.map +1 -0
- package/dist/views/Settings/SettingsGeneral.vue.js +7 -0
- package/dist/views/Settings/SettingsGeneral.vue.js.map +1 -0
- package/dist/views/Settings/SettingsGeneral.vue.script.js +241 -0
- package/dist/views/Settings/SettingsGeneral.vue.script.js.map +1 -0
- package/dist/views/Settings/components/SettingsAppearance.vue.js +7 -0
- package/dist/views/Settings/components/SettingsAppearance.vue.js.map +1 -0
- package/dist/views/Settings/components/SettingsAppearance.vue.script.js +62 -0
- package/dist/views/Settings/components/SettingsAppearance.vue.script.js.map +1 -0
- package/dist/views/Settings/components/SettingsSection.vue.js +7 -0
- package/dist/views/Settings/components/SettingsSection.vue.js.map +1 -0
- package/dist/views/Settings/components/SettingsSection.vue.script.js +27 -0
- package/dist/views/Settings/components/SettingsSection.vue.script.js.map +1 -0
- package/package.json +20 -15
- package/dist/AddressBar-BOZGKSoz.js +0 -302
- package/dist/AddressBar-BOZGKSoz.js.map +0 -1
- package/dist/App-Ckirvnv1.js +0 -2510
- package/dist/App-Ckirvnv1.js.map +0 -1
- package/dist/App-DHBmpWJI.js +0 -533
- package/dist/App-DHBmpWJI.js.map +0 -1
- package/dist/CodeInput-BTN8cC5h.js +0 -694
- package/dist/CodeInput-BTN8cC5h.js.map +0 -1
- package/dist/CodeSnippet-D7Heh1nd.js +0 -218
- package/dist/CodeSnippet-D7Heh1nd.js.map +0 -1
- package/dist/Collection-BsAG7ms5.js +0 -219
- package/dist/Collection-BsAG7ms5.js.map +0 -1
- package/dist/CollectionAuthentication-BMGhRnpo.js +0 -56
- package/dist/CollectionAuthentication-BMGhRnpo.js.map +0 -1
- package/dist/CollectionCookies-DyjPPMdt.js +0 -19
- package/dist/CollectionCookies-DyjPPMdt.js.map +0 -1
- package/dist/CollectionEnvironment-BY9Gcnln.js +0 -514
- package/dist/CollectionEnvironment-BY9Gcnln.js.map +0 -1
- package/dist/CollectionOverview-C3GvN8GY.js +0 -131
- package/dist/CollectionOverview-C3GvN8GY.js.map +0 -1
- package/dist/CollectionScripts-CMNlBlby.js +0 -19
- package/dist/CollectionScripts-CMNlBlby.js.map +0 -1
- package/dist/CollectionServers-DuOLysNB.js +0 -168
- package/dist/CollectionServers-DuOLysNB.js.map +0 -1
- package/dist/CollectionSettings-FtXNetOh.js +0 -87
- package/dist/CollectionSettings-FtXNetOh.js.map +0 -1
- package/dist/CollectionSync-CAflc5yW.js +0 -19
- package/dist/CollectionSync-CAflc5yW.js.map +0 -1
- package/dist/CommandActionInput-TkcAx6E8.js +0 -97
- package/dist/CommandActionInput-TkcAx6E8.js.map +0 -1
- package/dist/CommandPalette-BxoEK8TY.js +0 -964
- package/dist/CommandPalette-BxoEK8TY.js.map +0 -1
- package/dist/CommandPaletteImport-Diu5dDIY.js +0 -622
- package/dist/CommandPaletteImport-Diu5dDIY.js.map +0 -1
- package/dist/Cookies-BYTv1YIA.js +0 -284
- package/dist/Cookies-BYTv1YIA.js.map +0 -1
- package/dist/DataTable-BqbZKW3K.js +0 -62
- package/dist/DataTable-BqbZKW3K.js.map +0 -1
- package/dist/DataTableHeader-DJVB0jCZ.js +0 -21
- package/dist/DataTableHeader-DJVB0jCZ.js.map +0 -1
- package/dist/DataTableInput-RydMDjn2.js +0 -166
- package/dist/DataTableInput-RydMDjn2.js.map +0 -1
- package/dist/DataTableRow-c3XveEUO.js +0 -57
- package/dist/DataTableRow-c3XveEUO.js.map +0 -1
- package/dist/DeleteSidebarListElement-C-p87d03.js +0 -78
- package/dist/DeleteSidebarListElement-C-p87d03.js.map +0 -1
- package/dist/EditSidebarListElement-CodWPnM6.js +0 -32
- package/dist/EditSidebarListElement-CodWPnM6.js.map +0 -1
- package/dist/Editor-BomsGWHx.js +0 -909
- package/dist/Editor-BomsGWHx.js.map +0 -1
- package/dist/EmptyState-Cnm7hGW5.js +0 -46
- package/dist/EmptyState-Cnm7hGW5.js.map +0 -1
- package/dist/Environment-BIxG7DaO.js +0 -416
- package/dist/Environment-BIxG7DaO.js.map +0 -1
- package/dist/EnvironmentModal-C0lYytkh.js +0 -288
- package/dist/EnvironmentModal-C0lYytkh.js.map +0 -1
- package/dist/Form-KFcdRQp1.js +0 -83
- package/dist/Form-KFcdRQp1.js.map +0 -1
- package/dist/HttpMethod-rnWEgC3T.js +0 -78
- package/dist/HttpMethod-rnWEgC3T.js.map +0 -1
- package/dist/IconSelector-BDC_GQXv.js +0 -67
- package/dist/IconSelector-BDC_GQXv.js.map +0 -1
- package/dist/ImportCollection-CGjySEzP.js +0 -804
- package/dist/ImportCollection-CGjySEzP.js.map +0 -1
- package/dist/IntegrationLogo-B9EDW8db.js +0 -51
- package/dist/IntegrationLogo-B9EDW8db.js.map +0 -1
- package/dist/MainLayout-BnLwst16.js +0 -281
- package/dist/MainLayout-BnLwst16.js.map +0 -1
- package/dist/Modal-CTZ8UNds.js +0 -67
- package/dist/Modal-CTZ8UNds.js.map +0 -1
- package/dist/ModalClientContainer-qHsZi4wQ.js +0 -65
- package/dist/ModalClientContainer-qHsZi4wQ.js.map +0 -1
- package/dist/Request-d0RY0ZhC.js +0 -212
- package/dist/Request-d0RY0ZhC.js.map +0 -1
- package/dist/RequestAuth-1cRH3DDn.js +0 -989
- package/dist/RequestAuth-1cRH3DDn.js.map +0 -1
- package/dist/RequestRoot-pW0yXesG.js +0 -1611
- package/dist/RequestRoot-pW0yXesG.js.map +0 -1
- package/dist/RequestSection-D2BLvDTr.js +0 -1582
- package/dist/RequestSection-D2BLvDTr.js.map +0 -1
- package/dist/ResponseSection-B_YF7l_E.js +0 -949
- package/dist/ResponseSection-B_YF7l_E.js.map +0 -1
- package/dist/ScalarAsciiArt-BjuSnj8e.js +0 -45
- package/dist/ScalarAsciiArt-BjuSnj8e.js.map +0 -1
- package/dist/SectionFilter-hrtoRLwj.js +0 -99
- package/dist/SectionFilter-hrtoRLwj.js.map +0 -1
- package/dist/Server-CEKGIEfE.js +0 -303
- package/dist/Server-CEKGIEfE.js.map +0 -1
- package/dist/ServerVariablesForm-BRZ9XC8o.js +0 -145
- package/dist/ServerVariablesForm-BRZ9XC8o.js.map +0 -1
- package/dist/Settings-BaPvhJ8Y.js +0 -347
- package/dist/Settings-BaPvhJ8Y.js.map +0 -1
- package/dist/Sidebar-CRxdl38Y.js +0 -73
- package/dist/Sidebar-CRxdl38Y.js.map +0 -1
- package/dist/SidebarButton-BAagdMDe.js +0 -37
- package/dist/SidebarButton-BAagdMDe.js.map +0 -1
- package/dist/SidebarListElement-BfTPiihc.js +0 -232
- package/dist/SidebarListElement-BfTPiihc.js.map +0 -1
- package/dist/TheCommandPalette-Dl9TAeke.js +0 -204
- package/dist/TheCommandPalette-Dl9TAeke.js.map +0 -1
- package/dist/ValueEmitter-QYkZ9Hdc.js +0 -20
- package/dist/ValueEmitter-QYkZ9Hdc.js.map +0 -1
- package/dist/ViewLayout-BOXN0IYo.js +0 -17
- package/dist/ViewLayout-BOXN0IYo.js.map +0 -1
- package/dist/ViewLayoutCollapse-CiTb-Uml.js +0 -86
- package/dist/ViewLayoutCollapse-CiTb-Uml.js.map +0 -1
- package/dist/ViewLayoutContent-CvMoJYPF.js +0 -13
- package/dist/ViewLayoutContent-CvMoJYPF.js.map +0 -1
- package/dist/ViewLayoutSection-mUqKbQry.js +0 -23
- package/dist/ViewLayoutSection-mUqKbQry.js.map +0 -1
- package/dist/WatchModeToggle-D_eAiTWJ.js +0 -41
- package/dist/WatchModeToggle-D_eAiTWJ.js.map +0 -1
- package/dist/_plugin-vue_export-helper-BmmBcIzD.js +0 -8
- package/dist/analytics-BZimCWcw.js +0 -7
- package/dist/analytics-BZimCWcw.js.map +0 -1
- package/dist/analytics.d.ts +0 -18
- package/dist/analytics.d.ts.map +0 -1
- package/dist/build-request-security-BQjNr2MD.js +0 -41
- package/dist/build-request-security-BQjNr2MD.js.map +0 -1
- package/dist/code-input-iq-moLxi.js +0 -775
- package/dist/code-input-iq-moLxi.js.map +0 -1
- package/dist/components-B0BwUDFw.js +0 -183
- package/dist/components-B0BwUDFw.js.map +0 -1
- package/dist/components-ChixwQhN.js +0 -61
- package/dist/components-ChixwQhN.js.map +0 -1
- package/dist/computer-D7VW3Ruy.js +0 -562
- package/dist/computer-D7VW3Ruy.js.map +0 -1
- package/dist/consts-CyGRb9dl.js +0 -318
- package/dist/consts-CyGRb9dl.js.map +0 -1
- package/dist/curl-nbw1OxbV.js +0 -54
- package/dist/curl-nbw1OxbV.js.map +0 -1
- package/dist/data-table-PL7e8NRO.js +0 -282
- package/dist/data-table-PL7e8NRO.js.map +0 -1
- package/dist/editor-BZ_J0eze.js +0 -466
- package/dist/editor-BZ_J0eze.js.map +0 -1
- package/dist/environments-ByLK9lnC.js +0 -592
- package/dist/environments-ByLK9lnC.js.map +0 -1
- package/dist/formatters-DOGXZq9R.js +0 -36
- package/dist/formatters-DOGXZq9R.js.map +0 -1
- package/dist/forms-CZX6cFDS.js +0 -42
- package/dist/forms-CZX6cFDS.js.map +0 -1
- package/dist/get-active-environment-CkxyQ1dM.js +0 -19
- package/dist/get-active-environment-CkxyQ1dM.js.map +0 -1
- package/dist/get-resolved-url-SybDPV0U.js +0 -85
- package/dist/get-resolved-url-SybDPV0U.js.map +0 -1
- package/dist/get-server-url-UVN-dx79.js +0 -32
- package/dist/get-server-url-UVN-dx79.js.map +0 -1
- package/dist/get-servers-B_WNlQWB.js +0 -106
- package/dist/get-servers-B_WNlQWB.js.map +0 -1
- package/dist/get-snippet-DBRUSfZ2.js +0 -39
- package/dist/get-snippet-DBRUSfZ2.js.map +0 -1
- package/dist/global-cookies-D3ZS9ON3.js +0 -184
- package/dist/global-cookies-D3ZS9ON3.js.map +0 -1
- package/dist/hooks/useAnalytics.d.ts +0 -19
- package/dist/hooks/useAnalytics.d.ts.map +0 -1
- package/dist/hooks-BvZxH4XB.js +0 -80
- package/dist/hooks-BvZxH4XB.js.map +0 -1
- package/dist/layout-BWiL7dfb.js +0 -81
- package/dist/layout-BWiL7dfb.js.map +0 -1
- package/dist/layouts/Web/index.js.map +0 -1
- package/dist/libs-spbv4P0g.js +0 -249
- package/dist/libs-spbv4P0g.js.map +0 -1
- package/dist/operation-block-B1B3lJPx.js +0 -1674
- package/dist/operation-block-B1B3lJPx.js.map +0 -1
- package/dist/operation-code-sample-DOzAPxLQ.js +0 -1738
- package/dist/operation-code-sample-DOzAPxLQ.js.map +0 -1
- package/dist/parse-curl-BtypQT3D.js +0 -106
- package/dist/parse-curl-BtypQT3D.js.map +0 -1
- package/dist/plugins-B52hCIyZ.js +0 -50
- package/dist/plugins-B52hCIyZ.js.map +0 -1
- package/dist/rabbitjump-CMZXAR6d.js +0 -9
- package/dist/rabbitjump-CMZXAR6d.js.map +0 -1
- package/dist/request-block-C1kLLMEd.js +0 -1466
- package/dist/request-block-C1kLLMEd.js.map +0 -1
- package/dist/resize-D2IYvVdh.js +0 -114
- package/dist/resize-D2IYvVdh.js.map +0 -1
- package/dist/response-block-DmkaDZYs.js +0 -1188
- package/dist/response-block-DmkaDZYs.js.map +0 -1
- package/dist/scalar-address-bar-block-BbysOhkE.js +0 -425
- package/dist/scalar-address-bar-block-BbysOhkE.js.map +0 -1
- package/dist/scalar-auth-selector-block-Bs79QOMA.js +0 -1889
- package/dist/scalar-auth-selector-block-Bs79QOMA.js.map +0 -1
- package/dist/search-CmsQQkjn.js +0 -151
- package/dist/search-CmsQQkjn.js.map +0 -1
- package/dist/send-request-BsTfRiBC.js +0 -348
- package/dist/send-request-BsTfRiBC.js.map +0 -1
- package/dist/server-tcI-OCyx.js +0 -140
- package/dist/server-tcI-OCyx.js.map +0 -1
- package/dist/set-request-cookies-BJJhsU4A.js +0 -88
- package/dist/set-request-cookies-BJJhsU4A.js.map +0 -1
- package/dist/settings-BKk_1lcH.js +0 -455
- package/dist/settings-BKk_1lcH.js.map +0 -1
- package/dist/sidebar-ceSbYmnt.js +0 -217
- package/dist/sidebar-ceSbYmnt.js.map +0 -1
- package/dist/store-DnlAQK5d.js +0 -1512
- package/dist/store-DnlAQK5d.js.map +0 -1
- package/dist/string-template-sS5PtY6T.js +0 -64
- package/dist/string-template-sS5PtY6T.js.map +0 -1
- package/dist/use-global-hot-keys-D8Ai8Qbm.js +0 -274
- package/dist/use-global-hot-keys-D8Ai8Qbm.js.map +0 -1
- package/dist/useSidebar-DLTwHDI-.js +0 -45
- package/dist/useSidebar-DLTwHDI-.js.map +0 -1
- package/dist/v2/components/modals/index.js.map +0 -1
- package/dist/v2/features/app/index.js.map +0 -1
- package/dist/v2/features/modal/index.js.map +0 -1
- package/dist/views/Request/RequestSection/index.js.map +0 -1
- package/dist/watch-mode-Dbaqd9bG.js +0 -375
- package/dist/watch-mode-Dbaqd9bG.js.map +0 -1
|
@@ -1,1738 +0,0 @@
|
|
|
1
|
-
import { i as isElectron, n as matchesDomain } from "./set-request-cookies-BJJhsU4A.js";
|
|
2
|
-
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BmmBcIzD.js";
|
|
3
|
-
import { t as getSnippet } from "./get-snippet-DBRUSfZ2.js";
|
|
4
|
-
import { capitalize, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeStyle, onBeforeMount, openBlock, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, useModel, watch, withCtx } from "vue";
|
|
5
|
-
import { ScalarButton, ScalarCard, ScalarCardFooter, ScalarCardHeader, ScalarCardSection, ScalarCodeBlock, ScalarCombobox, ScalarListbox, ScalarVirtualText } from "@scalar/components";
|
|
6
|
-
import { encode } from "js-base64";
|
|
7
|
-
import { isDefined } from "@scalar/helpers/array/is-defined";
|
|
8
|
-
import { mergeUrls } from "@scalar/helpers/url/merge-urls";
|
|
9
|
-
import { getHttpMethodInfo } from "@scalar/helpers/http/http-info";
|
|
10
|
-
import { ScalarIconCaretDown } from "@scalar/icons";
|
|
11
|
-
import { replaceVariables } from "@scalar/helpers/regex/replace-variables";
|
|
12
|
-
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
13
|
-
import { isObject } from "@scalar/helpers/object/is-object";
|
|
14
|
-
import { unpackProxyObject } from "@scalar/workspace-store/helpers/unpack-proxy";
|
|
15
|
-
import { canMethodHaveBody } from "@scalar/helpers/http/can-method-have-body";
|
|
16
|
-
import { resolve } from "@scalar/workspace-store/resolve";
|
|
17
|
-
import { freezeElement } from "@scalar/helpers/dom/freeze-element";
|
|
18
|
-
import { AVAILABLE_CLIENTS, snippetz } from "@scalar/snippetz";
|
|
19
|
-
import { json2xml } from "@scalar/helpers/file/json2xml";
|
|
20
|
-
import { normalizeHttpMethod } from "@scalar/helpers/http/normalize-http-method";
|
|
21
|
-
//#region src/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.ts
|
|
22
|
-
/**
|
|
23
|
-
* Recursively resolves all $ref objects in a data structure to their actual values.
|
|
24
|
-
* Traverses through objects, arrays, and nested structures to find and resolve
|
|
25
|
-
* any $ref references at any depth level.
|
|
26
|
-
*
|
|
27
|
-
* Handles circular references gracefully by detecting them and returning '[circular]'
|
|
28
|
-
* to prevent infinite loops.
|
|
29
|
-
*/
|
|
30
|
-
var getResolvedRefDeep = (node) => {
|
|
31
|
-
const visited = /* @__PURE__ */ new WeakSet();
|
|
32
|
-
const cachedResults = /* @__PURE__ */ new WeakMap();
|
|
33
|
-
const resolveNode = (current) => {
|
|
34
|
-
if (!isObject(current) && !Array.isArray(current)) return current;
|
|
35
|
-
const rawValue = unpackProxyObject(current, { depth: 1 });
|
|
36
|
-
if (cachedResults.has(rawValue)) return cachedResults.get(rawValue);
|
|
37
|
-
if (visited.has(rawValue)) return "[circular]";
|
|
38
|
-
visited.add(rawValue);
|
|
39
|
-
if ("$ref" in current) {
|
|
40
|
-
const result = resolveNode(getResolvedRef(current));
|
|
41
|
-
cachedResults.set(rawValue, result);
|
|
42
|
-
return result;
|
|
43
|
-
}
|
|
44
|
-
if (Array.isArray(current)) {
|
|
45
|
-
const result = current.map(resolveNode);
|
|
46
|
-
cachedResults.set(rawValue, result);
|
|
47
|
-
return result;
|
|
48
|
-
}
|
|
49
|
-
const result = Object.fromEntries(Object.entries(current).map(([key, value]) => [key, resolveNode(value)]));
|
|
50
|
-
cachedResults.set(rawValue, result);
|
|
51
|
-
return result;
|
|
52
|
-
};
|
|
53
|
-
return resolveNode(node);
|
|
54
|
-
};
|
|
55
|
-
//#endregion
|
|
56
|
-
//#region src/v2/blocks/operation-block/helpers/get-example.ts
|
|
57
|
-
/** Helper to get example from examples object with fallback to example field */
|
|
58
|
-
var getExampleFromExamples = (examples, exampleField, exampleKey) => {
|
|
59
|
-
if (!examples && !exampleField) return;
|
|
60
|
-
const hasExamples = !!examples && Object.keys(examples).length > 0;
|
|
61
|
-
const key = exampleKey || Object.keys(examples ?? {})[0] || "";
|
|
62
|
-
const example = getResolvedRefDeep(examples?.[key]);
|
|
63
|
-
if (example !== void 0) return example;
|
|
64
|
-
if ((!hasExamples || !exampleKey) && exampleField !== void 0) return { value: getResolvedRefDeep(exampleField) };
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* Resolve an example value for a parameter or requestBody from either `examples` or `content.*.examples`.
|
|
68
|
-
* Or the [deprecated] `example` field.
|
|
69
|
-
* If no exampleKey is provided it will fallback to the first example in the examples object then the [deprecated]
|
|
70
|
-
* `example` field.
|
|
71
|
-
* Used both for send-request and generating code snippets.
|
|
72
|
-
*/
|
|
73
|
-
var getExample = (param, exampleKey, contentType) => {
|
|
74
|
-
if ("content" in param) {
|
|
75
|
-
const content = param.content?.[contentType ?? Object.keys(param.content)[0] ?? ""];
|
|
76
|
-
const result = getExampleFromExamples(content?.examples, content?.example, exampleKey);
|
|
77
|
-
if (result !== void 0) return result;
|
|
78
|
-
}
|
|
79
|
-
if ("examples" in param || "example" in param) {
|
|
80
|
-
const result = getExampleFromExamples(param.examples, param.example, exampleKey);
|
|
81
|
-
if (result !== void 0) return result;
|
|
82
|
-
}
|
|
83
|
-
const resolvedParam = getResolvedRefDeep(param);
|
|
84
|
-
if ("schema" in resolvedParam && resolvedParam.schema) {
|
|
85
|
-
const schema = resolvedParam.schema;
|
|
86
|
-
if ("default" in schema && schema.default !== void 0) return { value: schema.default };
|
|
87
|
-
if ("enum" in schema && schema.enum?.[0] !== void 0) return { value: schema.enum[0] };
|
|
88
|
-
if ("examples" in schema && schema.examples?.[0] !== void 0) return { value: schema.examples[0] };
|
|
89
|
-
if ("example" in schema && schema.example !== void 0) return { value: schema.example };
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
//#endregion
|
|
93
|
-
//#region src/v2/constants.ts
|
|
94
|
-
/** The version number taken from the package.json. Consumers can override at build time via define (e.g. OVERRIDE_PACKAGE_VERSION: JSON.stringify('1.2.3')). */
|
|
95
|
-
var APP_VERSION = typeof OVERRIDE_PACKAGE_VERSION !== "undefined" ? OVERRIDE_PACKAGE_VERSION : "2.38.4";
|
|
96
|
-
//#endregion
|
|
97
|
-
//#region src/v2/blocks/request-block/helpers/get-default-headers.ts
|
|
98
|
-
/** Default Accept header value to accept all response types. */
|
|
99
|
-
var DEFAULT_ACCEPT = "*/*";
|
|
100
|
-
/**
|
|
101
|
-
* Creates a default header object with the override status determined by existing headers.
|
|
102
|
-
*
|
|
103
|
-
* @param name The header name
|
|
104
|
-
* @param defaultValue The header value
|
|
105
|
-
* @param existingHeaders Set of existing header names (lowercase) from the operation
|
|
106
|
-
* @returns A DefaultHeader object
|
|
107
|
-
*/
|
|
108
|
-
var createDefaultHeader = (name, defaultValue, existingHeaders) => ({
|
|
109
|
-
name,
|
|
110
|
-
defaultValue,
|
|
111
|
-
isOverridden: existingHeaders.has(name.toLowerCase())
|
|
112
|
-
});
|
|
113
|
-
/**
|
|
114
|
-
* Generates a list of default headers for an OpenAPI operation and HTTP method.
|
|
115
|
-
*
|
|
116
|
-
* This function intelligently adds standard HTTP headers based on the request context:
|
|
117
|
-
* - Content-Type: Added only if the HTTP method supports a request body and the OpenAPI operation
|
|
118
|
-
* defines a request body content type. Uses the selected content type from the operation or the
|
|
119
|
-
* first defined request body content type.
|
|
120
|
-
* - Accept: Derived from the 2xx response content types in the spec (joined as a comma-separated list), falling back to a wildcard.
|
|
121
|
-
* - User-Agent: Added in Electron environments (desktop app or proxy) to identify the client.
|
|
122
|
-
*
|
|
123
|
-
* The function respects OpenAPI operation parameters and marks headers as overridden
|
|
124
|
-
* if they are explicitly defined in the operation. It also supports hiding disabled
|
|
125
|
-
* headers for specific request examples using x-scalar-disable-parameters.
|
|
126
|
-
*
|
|
127
|
-
* @param method The HTTP method of the operation (GET, POST, etc.)
|
|
128
|
-
* @param operation The OpenAPI OperationObject describing the endpoint
|
|
129
|
-
* @param exampleKey The current request example key
|
|
130
|
-
* @param hideDisabledHeaders If true, filters out headers marked as disabled for this example
|
|
131
|
-
* @returns Array of default header objects with their values and override status
|
|
132
|
-
*/
|
|
133
|
-
var getDefaultHeaders = ({ method, operation, exampleKey, hideDisabledHeaders = false }) => {
|
|
134
|
-
const existingHeaders = new Set(operation.parameters?.filter((param) => getResolvedRef(param).in === "header").map((param) => getResolvedRef(param).name.toLowerCase()) ?? []);
|
|
135
|
-
const disabledHeaders = operation["x-scalar-disable-parameters"]?.["default-headers"]?.[exampleKey] ?? {};
|
|
136
|
-
const headers = [];
|
|
137
|
-
const requestBody = getResolvedRef(operation.requestBody);
|
|
138
|
-
if (canMethodHaveBody(method) && requestBody) {
|
|
139
|
-
const contentType = requestBody["x-scalar-selected-content-type"]?.[exampleKey] ?? Object.keys(requestBody.content ?? {})[0];
|
|
140
|
-
if (contentType && contentType !== "none") headers.push(createDefaultHeader("Content-Type", contentType, existingHeaders));
|
|
141
|
-
}
|
|
142
|
-
const successResponseKey = Object.keys(operation.responses ?? {}).find((k) => k.startsWith("2"));
|
|
143
|
-
const successResponse = successResponseKey ? getResolvedRef(operation.responses[successResponseKey]) : null;
|
|
144
|
-
const acceptValue = Object.keys(successResponse?.content ?? {}).join(", ") || DEFAULT_ACCEPT;
|
|
145
|
-
headers.push(createDefaultHeader("Accept", acceptValue, existingHeaders));
|
|
146
|
-
if (isElectron() && APP_VERSION) headers.push(createDefaultHeader("User-Agent", `Scalar/${APP_VERSION}`, existingHeaders));
|
|
147
|
-
if (hideDisabledHeaders) return headers.filter((header) => disabledHeaders[header.name.toLowerCase()] !== true);
|
|
148
|
-
return headers;
|
|
149
|
-
};
|
|
150
|
-
//#endregion
|
|
151
|
-
//#region src/v2/blocks/operation-code-sample/helpers/get-example-from-schema.ts
|
|
152
|
-
/** Maximum recursion depth to prevent infinite loops in circular references */
|
|
153
|
-
var MAX_LEVELS_DEEP = 10;
|
|
154
|
-
/** Default name used for additional properties when no custom name is provided */
|
|
155
|
-
var DEFAULT_ADDITIONAL_PROPERTIES_NAME = "additionalProperty";
|
|
156
|
-
/**
|
|
157
|
-
* Pre-computed date/time values to avoid expensive Date operations on every call.
|
|
158
|
-
* These are calculated once at module load time for better performance.
|
|
159
|
-
*/
|
|
160
|
-
var currentISOString = (/* @__PURE__ */ new Date()).toISOString();
|
|
161
|
-
var currentDateString = currentISOString.split("T")[0];
|
|
162
|
-
var currentTimeString = currentISOString.split("T")[1].split(".")[0];
|
|
163
|
-
/**
|
|
164
|
-
* Mapping of OpenAPI string formats to example values.
|
|
165
|
-
* Used to generate realistic examples for different string formats.
|
|
166
|
-
*/
|
|
167
|
-
var genericExampleValues = {
|
|
168
|
-
"date-time": currentISOString,
|
|
169
|
-
"date": currentDateString,
|
|
170
|
-
"email": "hello@example.com",
|
|
171
|
-
"hostname": "example.com",
|
|
172
|
-
"idn-email": "jane.doe@example.com",
|
|
173
|
-
"idn-hostname": "example.com",
|
|
174
|
-
"ipv4": "127.0.0.1",
|
|
175
|
-
"ipv6": "51d4:7fab:bfbf:b7d7:b2cb:d4b4:3dad:d998",
|
|
176
|
-
"iri-reference": "/entitiy/1",
|
|
177
|
-
"iri": "https://example.com/entity/123",
|
|
178
|
-
"json-pointer": "/nested/objects",
|
|
179
|
-
"password": "super-secret",
|
|
180
|
-
"regex": "/[a-z]/",
|
|
181
|
-
"relative-json-pointer": "1/nested/objects",
|
|
182
|
-
"time": currentTimeString,
|
|
183
|
-
"uri-reference": "../folder",
|
|
184
|
-
"uri-template": "https://example.com/{id}",
|
|
185
|
-
"uri": "https://example.com",
|
|
186
|
-
"uuid": "123e4567-e89b-12d3-a456-426614174000",
|
|
187
|
-
"object-id": "6592008029c8c3e4dc76256c"
|
|
188
|
-
};
|
|
189
|
-
/**
|
|
190
|
-
* Extract enum values from the propertyNames keyword of an object schema.
|
|
191
|
-
* JSON Schema's propertyNames constrains which keys are valid in a map/dict.
|
|
192
|
-
*/
|
|
193
|
-
var getPropertyNamesEnumValues = (schema) => {
|
|
194
|
-
if (!("propertyNames" in schema) || !schema.propertyNames) return;
|
|
195
|
-
const resolved = resolve.schema(schema.propertyNames);
|
|
196
|
-
if (resolved && "enum" in resolved && Array.isArray(resolved.enum) && resolved.enum.length > 0) return resolved.enum;
|
|
197
|
-
};
|
|
198
|
-
/**
|
|
199
|
-
* Generate example values for string types based on their format.
|
|
200
|
-
* Special handling for binary format which returns a File object.
|
|
201
|
-
*/
|
|
202
|
-
var guessFromFormat = (schema, makeUpRandomData = false, fallback = "") => {
|
|
203
|
-
if ("type" in schema && schema.type === "string" && "format" in schema && schema.format === "binary") return "@filename";
|
|
204
|
-
if (makeUpRandomData && "format" in schema && schema.format) return genericExampleValues[schema.format] ?? fallback;
|
|
205
|
-
return fallback;
|
|
206
|
-
};
|
|
207
|
-
/**
|
|
208
|
-
* WeakMap cache for memoizing resolved example results.
|
|
209
|
-
* Uses the resolved schema object as the key for efficient lookups.
|
|
210
|
-
*/
|
|
211
|
-
var resultCache = /* @__PURE__ */ new WeakMap();
|
|
212
|
-
/** Cache required property names per parent schema for O(1) membership checks */
|
|
213
|
-
var requiredNamesCache = /* @__PURE__ */ new WeakMap();
|
|
214
|
-
/** Normalize schema identity for cache and cycle tracking */
|
|
215
|
-
var getSchemaCacheTarget = (schema) => unpackProxyObject(schema, { depth: 1 });
|
|
216
|
-
/**
|
|
217
|
-
* Retrieves the set of required property names from a schema.
|
|
218
|
-
* Caches the result in a WeakMap for efficient lookups.
|
|
219
|
-
*/
|
|
220
|
-
var getRequiredNames = (parentSchema) => {
|
|
221
|
-
if (!parentSchema) return;
|
|
222
|
-
const cached = requiredNamesCache.get(parentSchema);
|
|
223
|
-
if (cached) return cached;
|
|
224
|
-
if ("required" in parentSchema) {
|
|
225
|
-
const required = parentSchema.required;
|
|
226
|
-
if (Array.isArray(required) && required.length > 0) {
|
|
227
|
-
const set = new Set(required);
|
|
228
|
-
requiredNamesCache.set(parentSchema, set);
|
|
229
|
-
return set;
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
/**
|
|
234
|
-
* Cache the result for a schema if it is an object type.
|
|
235
|
-
* Primitive values are not cached to avoid unnecessary WeakMap operations.
|
|
236
|
-
* Stores a map of cacheKey strings which is made up of the options object.
|
|
237
|
-
*/
|
|
238
|
-
var cache = (schema, result, cacheKey) => {
|
|
239
|
-
if (typeof result !== "object" || result === null) return result;
|
|
240
|
-
const rawSchema = getSchemaCacheTarget(schema);
|
|
241
|
-
const cacheMap = resultCache.get(rawSchema) ?? /* @__PURE__ */ new Map();
|
|
242
|
-
if (cacheMap) cacheMap.set(cacheKey, result);
|
|
243
|
-
resultCache.set(rawSchema, cacheMap);
|
|
244
|
-
return result;
|
|
245
|
-
};
|
|
246
|
-
/**
|
|
247
|
-
* Check if a schema uses composition keywords (allOf, oneOf, anyOf).
|
|
248
|
-
* These require special handling for merging or selecting schemas.
|
|
249
|
-
*/
|
|
250
|
-
var isComposed = (schema) => !!(schema.allOf || schema.oneOf || schema.anyOf);
|
|
251
|
-
/**
|
|
252
|
-
* Determine if a property should be omitted based on the options.
|
|
253
|
-
* Properties are omitted if they are not required and the option is enabled.
|
|
254
|
-
*/
|
|
255
|
-
var shouldOmitProperty = (schema, parentSchema, propertyName, options) => {
|
|
256
|
-
if (schema.deprecated || options?.mode === "write" && schema.readOnly || options?.mode === "read" && schema.writeOnly) return true;
|
|
257
|
-
if (options?.omitEmptyAndOptionalProperties !== true) return false;
|
|
258
|
-
if ("type" in schema && (schema.type === "object" || schema.type === "array") || isComposed(schema)) return false;
|
|
259
|
-
if ("examples" in schema && Array.isArray(schema.examples) && schema.examples.length > 0 || "example" in schema && schema.example !== void 0 || "default" in schema && schema.default !== void 0 || "const" in schema && schema.const !== void 0 || "enum" in schema && Array.isArray(schema.enum) && schema.enum.length > 0) return false;
|
|
260
|
-
const name = propertyName ?? schema.title ?? "";
|
|
261
|
-
const requiredNames = getRequiredNames(parentSchema);
|
|
262
|
-
return !(requiredNames ? requiredNames.has(name) : false);
|
|
263
|
-
};
|
|
264
|
-
/**
|
|
265
|
-
* Merge two example values with predictable semantics.
|
|
266
|
-
* Arrays are concatenated, objects are merged, otherwise the new value wins.
|
|
267
|
-
*/
|
|
268
|
-
var mergeExamples = (baseValue, newValue) => {
|
|
269
|
-
if (Array.isArray(baseValue) && Array.isArray(newValue)) return [...baseValue, ...newValue];
|
|
270
|
-
if (baseValue && typeof baseValue === "object" && newValue && typeof newValue === "object") return {
|
|
271
|
-
...baseValue,
|
|
272
|
-
...newValue
|
|
273
|
-
};
|
|
274
|
-
return newValue;
|
|
275
|
-
};
|
|
276
|
-
/**
|
|
277
|
-
* Build an example for an object schema, including properties, patternProperties,
|
|
278
|
-
* additionalProperties, and composition (allOf/oneOf/anyOf) merging.
|
|
279
|
-
*/
|
|
280
|
-
var handleObjectSchema = (schema, options, level, seen, cacheKey) => {
|
|
281
|
-
const response = {};
|
|
282
|
-
if ("properties" in schema && schema.properties) {
|
|
283
|
-
const propertyNames = Object.keys(schema.properties);
|
|
284
|
-
const limit = propertyNames.length;
|
|
285
|
-
for (let i = 0; i < limit; i++) {
|
|
286
|
-
const propertyName = propertyNames[i];
|
|
287
|
-
const propertySchema = resolve.schema(schema.properties[propertyName]);
|
|
288
|
-
if (!propertySchema) continue;
|
|
289
|
-
const propertyXmlName = options?.xml && "xml" in propertySchema ? propertySchema.xml?.name : void 0;
|
|
290
|
-
const value = getExampleFromSchema(propertySchema, options, {
|
|
291
|
-
level: level + 1,
|
|
292
|
-
parentSchema: schema,
|
|
293
|
-
name: propertyName,
|
|
294
|
-
seen
|
|
295
|
-
});
|
|
296
|
-
if (typeof value !== "undefined") response[propertyXmlName ?? propertyName] = value;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
if ("patternProperties" in schema && schema.patternProperties) for (const pattern of Object.keys(schema.patternProperties)) {
|
|
300
|
-
const propertySchema = resolve.schema(schema.patternProperties[pattern]);
|
|
301
|
-
if (!propertySchema) continue;
|
|
302
|
-
response[pattern] = getExampleFromSchema(propertySchema, options, {
|
|
303
|
-
level: level + 1,
|
|
304
|
-
parentSchema: schema,
|
|
305
|
-
name: pattern,
|
|
306
|
-
seen
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
if ("additionalProperties" in schema && schema.additionalProperties) {
|
|
310
|
-
const additional = typeof schema.additionalProperties === "boolean" ? schema.additionalProperties : resolve.schema(schema.additionalProperties);
|
|
311
|
-
const isAnyType = schema.additionalProperties === true || typeof schema.additionalProperties === "object" && Object.keys(schema.additionalProperties).length === 0;
|
|
312
|
-
const hasCustomName = typeof additional === "object" && "x-additionalPropertiesName" in additional && typeof additional["x-additionalPropertiesName"] === "string" && additional["x-additionalPropertiesName"].trim().length > 0;
|
|
313
|
-
const propertyNamesEnum = hasCustomName ? void 0 : getPropertyNamesEnumValues(schema);
|
|
314
|
-
const additionalName = hasCustomName ? additional["x-additionalPropertiesName"].trim() : DEFAULT_ADDITIONAL_PROPERTIES_NAME;
|
|
315
|
-
const additionalValue = isAnyType ? "anything" : typeof additional === "object" ? getExampleFromSchema(additional, options, {
|
|
316
|
-
level: level + 1,
|
|
317
|
-
seen
|
|
318
|
-
}) : "anything";
|
|
319
|
-
if (propertyNamesEnum && propertyNamesEnum.length > 0) response[String(propertyNamesEnum[0])] = additionalValue;
|
|
320
|
-
else response[additionalName] = additionalValue;
|
|
321
|
-
}
|
|
322
|
-
if (schema.oneOf?.[0]) Object.assign(response, getExampleFromSchema(resolve.schema(schema.oneOf[0]), options, {
|
|
323
|
-
level: level + 1,
|
|
324
|
-
seen
|
|
325
|
-
}));
|
|
326
|
-
else if (schema.anyOf?.[0]) Object.assign(response, getExampleFromSchema(resolve.schema(schema.anyOf[0]), options, {
|
|
327
|
-
level: level + 1,
|
|
328
|
-
seen
|
|
329
|
-
}));
|
|
330
|
-
else if (Array.isArray(schema.allOf) && schema.allOf.length > 0) {
|
|
331
|
-
let merged = response;
|
|
332
|
-
for (const item of schema.allOf) {
|
|
333
|
-
const ex = getExampleFromSchema(resolve.schema(item), options, {
|
|
334
|
-
level: level + 1,
|
|
335
|
-
parentSchema: schema,
|
|
336
|
-
seen
|
|
337
|
-
});
|
|
338
|
-
merged = mergeExamples(merged, ex);
|
|
339
|
-
}
|
|
340
|
-
if (merged && typeof merged === "object") Object.assign(response, merged);
|
|
341
|
-
}
|
|
342
|
-
if (options?.xml && "xml" in schema && schema.xml?.name && level === 0) {
|
|
343
|
-
const wrapped = {};
|
|
344
|
-
wrapped[schema.xml.name] = response;
|
|
345
|
-
return cache(schema, wrapped, cacheKey);
|
|
346
|
-
}
|
|
347
|
-
return cache(schema, response, cacheKey);
|
|
348
|
-
};
|
|
349
|
-
/** Build an example for an array schema, including items, allOf, oneOf/anyOf, and XML wrapping */
|
|
350
|
-
var handleArraySchema = (schema, options, level, seen, cacheKey) => {
|
|
351
|
-
const items = "items" in schema ? resolve.schema(schema.items) : void 0;
|
|
352
|
-
const itemsXmlTagName = items && typeof items === "object" && "xml" in items ? items.xml?.name : void 0;
|
|
353
|
-
const wrapItems = !!(options?.xml && "xml" in schema && schema.xml?.wrapped && itemsXmlTagName);
|
|
354
|
-
if (schema.example !== void 0) return cache(schema, wrapItems ? { [itemsXmlTagName]: schema.example } : schema.example, cacheKey);
|
|
355
|
-
if (items && typeof items === "object") {
|
|
356
|
-
if (Array.isArray(items.allOf) && items.allOf.length > 0) {
|
|
357
|
-
const allOf = items.allOf.filter(isDefined);
|
|
358
|
-
const first = resolve.schema(allOf[0]);
|
|
359
|
-
if (first && typeof first === "object" && "type" in first && first.type === "object") {
|
|
360
|
-
const merged = getExampleFromSchema({
|
|
361
|
-
type: "object",
|
|
362
|
-
allOf
|
|
363
|
-
}, options, {
|
|
364
|
-
level: level + 1,
|
|
365
|
-
parentSchema: schema,
|
|
366
|
-
seen
|
|
367
|
-
});
|
|
368
|
-
return cache(schema, wrapItems ? [{ [itemsXmlTagName]: merged }] : [merged], cacheKey);
|
|
369
|
-
}
|
|
370
|
-
const examples = allOf.map((s) => getExampleFromSchema(resolve.schema(s), options, {
|
|
371
|
-
level: level + 1,
|
|
372
|
-
parentSchema: schema,
|
|
373
|
-
seen
|
|
374
|
-
})).filter(isDefined);
|
|
375
|
-
return cache(schema, wrapItems ? examples.map((e) => ({ [itemsXmlTagName]: e })) : examples, cacheKey);
|
|
376
|
-
}
|
|
377
|
-
const union = items.anyOf || items.oneOf;
|
|
378
|
-
if (union && union.length > 0) {
|
|
379
|
-
const first = union[0];
|
|
380
|
-
const ex = getExampleFromSchema(resolve.schema(first), options, {
|
|
381
|
-
level: level + 1,
|
|
382
|
-
parentSchema: schema,
|
|
383
|
-
seen
|
|
384
|
-
});
|
|
385
|
-
return cache(schema, wrapItems ? [{ [itemsXmlTagName]: ex }] : [ex], cacheKey);
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
const isObject = items && typeof items === "object" && ("type" in items && items.type === "object" || "properties" in items);
|
|
389
|
-
const isArray = items && typeof items === "object" && ("type" in items && items.type === "array" || "items" in items);
|
|
390
|
-
if (items && typeof items === "object" && ("type" in items && items.type || isObject || isArray)) {
|
|
391
|
-
const ex = getExampleFromSchema(items, options, {
|
|
392
|
-
level: level + 1,
|
|
393
|
-
seen
|
|
394
|
-
});
|
|
395
|
-
return cache(schema, wrapItems ? [{ [itemsXmlTagName]: ex }] : [ex], cacheKey);
|
|
396
|
-
}
|
|
397
|
-
return cache(schema, [], cacheKey);
|
|
398
|
-
};
|
|
399
|
-
/** Return primitive example value for single-type schemas, or undefined if not primitive */
|
|
400
|
-
var getPrimitiveValue = (schema, makeUpRandomData, emptyString) => {
|
|
401
|
-
if ("type" in schema && schema.type && !Array.isArray(schema.type)) switch (schema.type) {
|
|
402
|
-
case "string": return guessFromFormat(schema, makeUpRandomData, emptyString ?? "");
|
|
403
|
-
case "boolean": return true;
|
|
404
|
-
case "integer": return "minimum" in schema && typeof schema.minimum === "number" ? schema.minimum : 1;
|
|
405
|
-
case "number": return "minimum" in schema && typeof schema.minimum === "number" ? schema.minimum : 1;
|
|
406
|
-
case "array": return [];
|
|
407
|
-
default: return;
|
|
408
|
-
}
|
|
409
|
-
};
|
|
410
|
-
/** Return primitive example value for union-type schemas (type: string[]) */
|
|
411
|
-
var getUnionPrimitiveValue = (schema, makeUpRandomData, emptyString) => {
|
|
412
|
-
if ("type" in schema && Array.isArray(schema.type)) {
|
|
413
|
-
if (schema.type.includes("null")) return null;
|
|
414
|
-
const first = schema.type[0];
|
|
415
|
-
if (first) switch (first) {
|
|
416
|
-
case "string": return guessFromFormat(schema, makeUpRandomData, emptyString ?? "");
|
|
417
|
-
case "boolean": return true;
|
|
418
|
-
case "integer": return "minimum" in schema && typeof schema.minimum === "number" ? schema.minimum : 1;
|
|
419
|
-
case "number": return "minimum" in schema && typeof schema.minimum === "number" ? schema.minimum : 1;
|
|
420
|
-
case "null": return null;
|
|
421
|
-
default: return;
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
};
|
|
425
|
-
/** Create stable cache key from the options object */
|
|
426
|
-
var createOptionsCacheKey = (options) => JSON.stringify({
|
|
427
|
-
emptyString: options?.emptyString,
|
|
428
|
-
xml: options?.xml,
|
|
429
|
-
mode: options?.mode,
|
|
430
|
-
variables: options?.variables,
|
|
431
|
-
omitEmptyAndOptionalProperties: options?.omitEmptyAndOptionalProperties
|
|
432
|
-
});
|
|
433
|
-
/**
|
|
434
|
-
* Generate an example value from a given OpenAPI SchemaObject.
|
|
435
|
-
*
|
|
436
|
-
* This function recursively processes OpenAPI schemas to create realistic example data.
|
|
437
|
-
* It handles all OpenAPI schema types including primitives, objects, arrays, and
|
|
438
|
-
* composition schemas (allOf, oneOf, anyOf).
|
|
439
|
-
* Uses a tonne of caching for maximum performance.
|
|
440
|
-
*
|
|
441
|
-
* @param schema - The OpenAPI SchemaObject to generate an example from.
|
|
442
|
-
* @param options - Options to customize example generation.
|
|
443
|
-
* @param level - The current recursion depth.
|
|
444
|
-
* @param parentSchema - The parent schema, if any.
|
|
445
|
-
* @param name - The name of the property being processed.
|
|
446
|
-
* @returns An example value for the given schema.
|
|
447
|
-
*/
|
|
448
|
-
var getExampleFromSchema = (schema, options, { level = 0, parentSchema, name, seen = /* @__PURE__ */ new WeakSet() } = {}) => {
|
|
449
|
-
const _schema = resolve.schema(schema);
|
|
450
|
-
if (!isDefined(_schema)) return;
|
|
451
|
-
const targetValue = getSchemaCacheTarget(_schema);
|
|
452
|
-
if (seen.has(targetValue)) return;
|
|
453
|
-
seen.add(targetValue);
|
|
454
|
-
/** Make the cache key unique per options */
|
|
455
|
-
const cacheKey = createOptionsCacheKey(options);
|
|
456
|
-
const cached = resultCache.get(targetValue)?.get(cacheKey);
|
|
457
|
-
if (typeof cached !== "undefined") {
|
|
458
|
-
seen.delete(targetValue);
|
|
459
|
-
return cached;
|
|
460
|
-
}
|
|
461
|
-
if (level > MAX_LEVELS_DEEP) {
|
|
462
|
-
seen.delete(targetValue);
|
|
463
|
-
return "[Max Depth Exceeded]";
|
|
464
|
-
}
|
|
465
|
-
const makeUpRandomData = !!options?.emptyString;
|
|
466
|
-
if (shouldOmitProperty(_schema, parentSchema, name, options)) {
|
|
467
|
-
seen.delete(targetValue);
|
|
468
|
-
return;
|
|
469
|
-
}
|
|
470
|
-
if ("x-variable" in _schema && _schema["x-variable"]) {
|
|
471
|
-
const value = options?.variables?.[_schema["x-variable"]];
|
|
472
|
-
if (value !== void 0) {
|
|
473
|
-
if ("type" in _schema && (_schema.type === "number" || _schema.type === "integer")) {
|
|
474
|
-
seen.delete(targetValue);
|
|
475
|
-
return cache(_schema, Number(value), cacheKey);
|
|
476
|
-
}
|
|
477
|
-
seen.delete(targetValue);
|
|
478
|
-
return cache(_schema, value, cacheKey);
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
if (Array.isArray(_schema.examples) && _schema.examples.length > 0) {
|
|
482
|
-
seen.delete(targetValue);
|
|
483
|
-
return cache(_schema, _schema.examples[0], cacheKey);
|
|
484
|
-
}
|
|
485
|
-
if (_schema.example !== void 0) {
|
|
486
|
-
seen.delete(targetValue);
|
|
487
|
-
return cache(_schema, _schema.example, cacheKey);
|
|
488
|
-
}
|
|
489
|
-
if (_schema.default !== void 0) {
|
|
490
|
-
seen.delete(targetValue);
|
|
491
|
-
return cache(_schema, _schema.default, cacheKey);
|
|
492
|
-
}
|
|
493
|
-
if (_schema.const !== void 0) {
|
|
494
|
-
seen.delete(targetValue);
|
|
495
|
-
return cache(_schema, _schema.const, cacheKey);
|
|
496
|
-
}
|
|
497
|
-
if (Array.isArray(_schema.enum) && _schema.enum.length > 0) {
|
|
498
|
-
seen.delete(targetValue);
|
|
499
|
-
return cache(_schema, _schema.enum[0], cacheKey);
|
|
500
|
-
}
|
|
501
|
-
if ("properties" in _schema || "type" in _schema && _schema.type === "object") {
|
|
502
|
-
const result = handleObjectSchema(_schema, options, level, seen, cacheKey);
|
|
503
|
-
seen.delete(targetValue);
|
|
504
|
-
return result;
|
|
505
|
-
}
|
|
506
|
-
if ("type" in _schema && _schema.type === "array" || "items" in _schema) {
|
|
507
|
-
const result = handleArraySchema(_schema, options, level, seen, cacheKey);
|
|
508
|
-
seen.delete(targetValue);
|
|
509
|
-
return result;
|
|
510
|
-
}
|
|
511
|
-
const primitive = getPrimitiveValue(_schema, makeUpRandomData, options?.emptyString);
|
|
512
|
-
if (primitive !== void 0) {
|
|
513
|
-
seen.delete(targetValue);
|
|
514
|
-
return cache(_schema, primitive, cacheKey);
|
|
515
|
-
}
|
|
516
|
-
const discriminate = _schema.oneOf || _schema.anyOf;
|
|
517
|
-
if (Array.isArray(discriminate) && discriminate.length > 0) {
|
|
518
|
-
for (const item of discriminate) {
|
|
519
|
-
const resolved = resolve.schema(item);
|
|
520
|
-
if (resolved && (!("type" in resolved) || resolved.type !== "null")) {
|
|
521
|
-
seen.delete(targetValue);
|
|
522
|
-
return cache(_schema, getExampleFromSchema(resolved, options, {
|
|
523
|
-
level: level + 1,
|
|
524
|
-
seen
|
|
525
|
-
}), cacheKey);
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
seen.delete(targetValue);
|
|
529
|
-
return cache(_schema, null, cacheKey);
|
|
530
|
-
}
|
|
531
|
-
if (Array.isArray(_schema.allOf) && _schema.allOf.length > 0) {
|
|
532
|
-
let merged = void 0;
|
|
533
|
-
const items = _schema.allOf;
|
|
534
|
-
for (const item of items) {
|
|
535
|
-
const ex = getExampleFromSchema(item, options, {
|
|
536
|
-
level: level + 1,
|
|
537
|
-
parentSchema: _schema,
|
|
538
|
-
seen
|
|
539
|
-
});
|
|
540
|
-
if (merged === void 0) merged = ex;
|
|
541
|
-
else if (merged && typeof merged === "object" && ex && typeof ex === "object") merged = mergeExamples(merged, ex);
|
|
542
|
-
else if (ex !== void 0) merged = ex;
|
|
543
|
-
}
|
|
544
|
-
seen.delete(targetValue);
|
|
545
|
-
return cache(_schema, merged ?? null, cacheKey);
|
|
546
|
-
}
|
|
547
|
-
const unionPrimitive = getUnionPrimitiveValue(_schema, makeUpRandomData, options?.emptyString);
|
|
548
|
-
if (unionPrimitive !== void 0) {
|
|
549
|
-
seen.delete(targetValue);
|
|
550
|
-
return cache(_schema, unionPrimitive, cacheKey);
|
|
551
|
-
}
|
|
552
|
-
seen.delete(targetValue);
|
|
553
|
-
return cache(_schema, null, cacheKey);
|
|
554
|
-
};
|
|
555
|
-
//#endregion
|
|
556
|
-
//#region src/v2/blocks/operation-block/helpers/filter-global-cookies.ts
|
|
557
|
-
/**
|
|
558
|
-
* Filter a global cookie to determine if it should be included with a request to the given URL.
|
|
559
|
-
* - Returns false if the cookie is disabled, in the disabledGlobalCookies map, or missing a name.
|
|
560
|
-
* - Returns false if the domain does not match.
|
|
561
|
-
* - Returns false if the path is specified and does not match the URL pathname.
|
|
562
|
-
* - Returns true otherwise.
|
|
563
|
-
*/
|
|
564
|
-
var filterGlobalCookie = ({ cookie, url, disabledGlobalCookies }) => {
|
|
565
|
-
if (cookie.isDisabled || disabledGlobalCookies[cookie.name.toLowerCase()] === true || !cookie.name) return false;
|
|
566
|
-
const urlObject = new URL(url, "https://example.com");
|
|
567
|
-
if (cookie.domain && !matchesDomain(url, cookie.domain)) return false;
|
|
568
|
-
if (cookie.path && !urlObject.pathname.startsWith(cookie.path)) return false;
|
|
569
|
-
return true;
|
|
570
|
-
};
|
|
571
|
-
//#endregion
|
|
572
|
-
//#region src/v2/blocks/operation-block/helpers/de-serialize-parameter.ts
|
|
573
|
-
/** Helper that de-serializes the example value based on the parameter type */
|
|
574
|
-
var deSerializeParameter = (example, param) => {
|
|
575
|
-
if ("content" in param) return deSerializeContentExample(example, Object.keys(param.content ?? {})[0] ?? "");
|
|
576
|
-
if ("schema" in param) return deSerializeSchemaExample(example, param.schema);
|
|
577
|
-
return example;
|
|
578
|
-
};
|
|
579
|
-
/** De-serialize the example value based on the content type */
|
|
580
|
-
var deSerializeContentExample = (example, contentType) => {
|
|
581
|
-
if (typeof example === "string" && contentType.includes("json")) try {
|
|
582
|
-
return JSON.parse(example);
|
|
583
|
-
} catch {}
|
|
584
|
-
return example;
|
|
585
|
-
};
|
|
586
|
-
/** Create a set of all the types we wish to parse as JSON */
|
|
587
|
-
var parseableTypesSet = new Set([
|
|
588
|
-
"array",
|
|
589
|
-
"object",
|
|
590
|
-
"boolean",
|
|
591
|
-
"number",
|
|
592
|
-
"integer",
|
|
593
|
-
"null"
|
|
594
|
-
]);
|
|
595
|
-
/** De-serialize the example value based on the schema type */
|
|
596
|
-
var deSerializeSchemaExample = (example, schema) => {
|
|
597
|
-
const resolvedSchema = getResolvedRef(schema);
|
|
598
|
-
if (typeof example === "string" && resolvedSchema && "type" in resolvedSchema) {
|
|
599
|
-
const type = Array.isArray(resolvedSchema.type) ? resolvedSchema.type[0] : resolvedSchema.type;
|
|
600
|
-
if (type && parseableTypesSet.has(type)) try {
|
|
601
|
-
return JSON.parse(example);
|
|
602
|
-
} catch {
|
|
603
|
-
if (type === "array") return example.split(/,\s?/).filter((v) => v !== "");
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
return example;
|
|
607
|
-
};
|
|
608
|
-
//#endregion
|
|
609
|
-
//#region src/v2/blocks/request-block/helpers/is-param-disabled.ts
|
|
610
|
-
/**
|
|
611
|
-
* Determines if a parameter is disabled
|
|
612
|
-
*
|
|
613
|
-
* First we explicitly check if its been disabled via the `x-disabled` extension.
|
|
614
|
-
* Then we check if its an optional parameter and not a path parameter.
|
|
615
|
-
*
|
|
616
|
-
* @param param - The parameter to check.
|
|
617
|
-
* @param example - The example to check.
|
|
618
|
-
* @returns true if the parameter is disabled, false otherwise.
|
|
619
|
-
*/
|
|
620
|
-
var isParamDisabled = (param, example) => {
|
|
621
|
-
const xDisabled = example?.["x-disabled"];
|
|
622
|
-
if (typeof xDisabled === "boolean") return xDisabled;
|
|
623
|
-
return !param.required && param.in !== "path";
|
|
624
|
-
};
|
|
625
|
-
//#endregion
|
|
626
|
-
//#region src/v2/blocks/operation-block/helpers/serialize-parameter.ts
|
|
627
|
-
/**
|
|
628
|
-
* Shared parameter serialization utilities for OpenAPI style values.
|
|
629
|
-
* Used by both build-request-parameters and process-parameters.
|
|
630
|
-
*
|
|
631
|
-
* @see https://spec.openapis.org/oas/v3.1.1.html#style-values
|
|
632
|
-
*/
|
|
633
|
-
/**
|
|
634
|
-
* Serializes a value based on the content type for content-based query parameters.
|
|
635
|
-
* Content-based query parameters do not use style serialization and instead follow
|
|
636
|
-
* their content type specification (e.g., application/json should be JSON.stringified).
|
|
637
|
-
*
|
|
638
|
-
* @param value - The value to serialize
|
|
639
|
-
* @param contentType - The content type to use for serialization
|
|
640
|
-
* @returns The serialized value as a string
|
|
641
|
-
*/
|
|
642
|
-
var serializeContentValue = (value, contentType) => {
|
|
643
|
-
if (typeof value === "string") return value;
|
|
644
|
-
if (contentType.includes("json") || typeof value === "object" && value !== null && !Array.isArray(value)) return JSON.stringify(value);
|
|
645
|
-
return String(value);
|
|
646
|
-
};
|
|
647
|
-
/**
|
|
648
|
-
* Serializes a value according to OpenAPI simple style.
|
|
649
|
-
* Used for path and header parameters.
|
|
650
|
-
*
|
|
651
|
-
* Simple style with explode: false
|
|
652
|
-
* - Primitive: blue
|
|
653
|
-
* - Array: blue,black,brown
|
|
654
|
-
* - Object: R,100,G,200,B,150
|
|
655
|
-
*
|
|
656
|
-
* Simple style with explode: true
|
|
657
|
-
* - Primitive: blue
|
|
658
|
-
* - Array: blue,black,brown
|
|
659
|
-
* - Object: R=100,G=200,B=150
|
|
660
|
-
*/
|
|
661
|
-
var serializeSimpleStyle = (value, explode) => {
|
|
662
|
-
if (Array.isArray(value)) return value.join(",");
|
|
663
|
-
if (typeof value === "object" && value !== null) {
|
|
664
|
-
const entries = Object.entries(value);
|
|
665
|
-
if (explode) return entries.map(([k, v]) => `${k}=${v}`).join(",");
|
|
666
|
-
return entries.map(([k, v]) => `${k},${v}`).join(",");
|
|
667
|
-
}
|
|
668
|
-
return value;
|
|
669
|
-
};
|
|
670
|
-
/**
|
|
671
|
-
* Serializes a value according to OpenAPI form style.
|
|
672
|
-
* Used for query and cookie parameters.
|
|
673
|
-
*
|
|
674
|
-
* Form style with explode: true (default for query)
|
|
675
|
-
* - Primitive: color=blue
|
|
676
|
-
* - Array: color=blue&color=black&color=brown (multiple entries)
|
|
677
|
-
* - Object: R=100&G=200&B=150 (multiple entries)
|
|
678
|
-
*
|
|
679
|
-
* Form style with explode: false
|
|
680
|
-
* - Primitive: color=blue
|
|
681
|
-
* - Array: color=blue,black,brown
|
|
682
|
-
* - Object: color=R,100,G,200,B,150
|
|
683
|
-
*/
|
|
684
|
-
var serializeFormStyle = (value, explode) => {
|
|
685
|
-
if (Array.isArray(value) && explode) return value.map((v) => ({
|
|
686
|
-
key: "",
|
|
687
|
-
value: v
|
|
688
|
-
}));
|
|
689
|
-
if (Array.isArray(value)) return value.join(",");
|
|
690
|
-
if (typeof value === "object" && value !== null && explode) return Object.entries(value).map(([k, v]) => ({
|
|
691
|
-
key: k,
|
|
692
|
-
value: v
|
|
693
|
-
}));
|
|
694
|
-
if (typeof value === "object" && value !== null) return Object.entries(value).map(([k, v]) => `${k},${v}`).join(",");
|
|
695
|
-
return value;
|
|
696
|
-
};
|
|
697
|
-
/**
|
|
698
|
-
* Serializes a value according to OpenAPI form style for cookies.
|
|
699
|
-
* This is similar to serializeFormStyle but handles nested objects recursively
|
|
700
|
-
* and treats null values specially for cookie serialization.
|
|
701
|
-
*
|
|
702
|
-
* Form style with explode: true (default for cookies)
|
|
703
|
-
* - Primitive: color=blue
|
|
704
|
-
* - Array: color=blue&color=black&color=brown (multiple entries)
|
|
705
|
-
* - Object: R=100&G=200&B=150 (multiple entries)
|
|
706
|
-
*
|
|
707
|
-
* Form style with explode: false
|
|
708
|
-
* - Primitive: color=blue
|
|
709
|
-
* - Array: color=blue,black,brown (null becomes "null")
|
|
710
|
-
* - Object: color=R,100,G,200,B,150 (recursively flattened)
|
|
711
|
-
*/
|
|
712
|
-
var serializeFormStyleForCookies = (value, explode) => {
|
|
713
|
-
if (Array.isArray(value) && explode) return value.map((v) => ({
|
|
714
|
-
key: "",
|
|
715
|
-
value: v
|
|
716
|
-
}));
|
|
717
|
-
if (Array.isArray(value)) return value.map((v) => v === null ? "null" : String(v)).join(",");
|
|
718
|
-
if (typeof value === "object" && value !== null && explode) return Object.entries(value).map(([k, v]) => ({
|
|
719
|
-
key: k,
|
|
720
|
-
value: v
|
|
721
|
-
}));
|
|
722
|
-
if (typeof value === "object" && value !== null) {
|
|
723
|
-
const flattenObject = (obj) => {
|
|
724
|
-
const result = [];
|
|
725
|
-
for (const [key, val] of Object.entries(obj)) if (typeof val === "object" && val !== null && !Array.isArray(val)) result.push(key, ...flattenObject(val));
|
|
726
|
-
else result.push(key, val === null ? "null" : String(val));
|
|
727
|
-
return result;
|
|
728
|
-
};
|
|
729
|
-
return flattenObject(value).join(",");
|
|
730
|
-
}
|
|
731
|
-
return value;
|
|
732
|
-
};
|
|
733
|
-
/**
|
|
734
|
-
* Serializes a value according to OpenAPI spaceDelimited style.
|
|
735
|
-
* Only valid for query parameters with array or object values.
|
|
736
|
-
*
|
|
737
|
-
* SpaceDelimited array: blue black brown
|
|
738
|
-
* SpaceDelimited object: R 100 G 200 B 150
|
|
739
|
-
*/
|
|
740
|
-
var serializeSpaceDelimitedStyle = (value) => {
|
|
741
|
-
if (Array.isArray(value)) return value.join(" ");
|
|
742
|
-
if (typeof value === "object" && value !== null) return Object.entries(value).map(([k, v]) => `${k} ${v}`).join(" ");
|
|
743
|
-
return String(value);
|
|
744
|
-
};
|
|
745
|
-
/**
|
|
746
|
-
* Serializes a value according to OpenAPI pipeDelimited style.
|
|
747
|
-
* Only valid for query parameters with array or object values.
|
|
748
|
-
*
|
|
749
|
-
* PipeDelimited array: blue|black|brown
|
|
750
|
-
* PipeDelimited object: R|100|G|200|B|150
|
|
751
|
-
*/
|
|
752
|
-
var serializePipeDelimitedStyle = (value) => {
|
|
753
|
-
if (Array.isArray(value)) return value.join("|");
|
|
754
|
-
if (typeof value === "object" && value !== null) return Object.entries(value).flat().join("|");
|
|
755
|
-
return String(value);
|
|
756
|
-
};
|
|
757
|
-
/**
|
|
758
|
-
* Serializes a value according to OpenAPI deepObject style.
|
|
759
|
-
* Only valid for query parameters with explode: true.
|
|
760
|
-
*
|
|
761
|
-
* DeepObject: color[R]=100&color[G]=200&color[B]=150
|
|
762
|
-
* Nested: user[name][first]=Alex&user[name][last]=Smith&user[role]=admin
|
|
763
|
-
*/
|
|
764
|
-
var serializeDeepObjectStyle = (paramName, value) => {
|
|
765
|
-
const result = [];
|
|
766
|
-
/**
|
|
767
|
-
* Recursively flattens nested objects into deepObject notation.
|
|
768
|
-
*/
|
|
769
|
-
const flatten = (obj, prefix) => {
|
|
770
|
-
for (const [key, val] of Object.entries(obj)) {
|
|
771
|
-
const fullKey = `${prefix}[${key}]`;
|
|
772
|
-
if (typeof val === "object" && val !== null && !Array.isArray(val)) flatten(val, fullKey);
|
|
773
|
-
else result.push({
|
|
774
|
-
key: fullKey,
|
|
775
|
-
value: String(val)
|
|
776
|
-
});
|
|
777
|
-
}
|
|
778
|
-
};
|
|
779
|
-
if (typeof value === "object" && value !== null && !Array.isArray(value)) flatten(value, paramName);
|
|
780
|
-
return result;
|
|
781
|
-
};
|
|
782
|
-
//#endregion
|
|
783
|
-
//#region src/v2/blocks/operation-code-sample/components/ExamplePicker.vue?vue&type=script&setup=true&lang.ts
|
|
784
|
-
var _hoisted_1$1 = { class: "min-w-0 flex-1 truncate" };
|
|
785
|
-
//#endregion
|
|
786
|
-
//#region src/v2/blocks/operation-code-sample/components/ExamplePicker.vue
|
|
787
|
-
var ExamplePicker_default = /* @__PURE__ */ defineComponent({
|
|
788
|
-
inheritAttrs: false,
|
|
789
|
-
__name: "ExamplePicker",
|
|
790
|
-
props: /* @__PURE__ */ mergeModels({ examples: { default: () => ({}) } }, {
|
|
791
|
-
"modelValue": { required: true },
|
|
792
|
-
"modelModifiers": {}
|
|
793
|
-
}),
|
|
794
|
-
emits: ["update:modelValue"],
|
|
795
|
-
setup(__props) {
|
|
796
|
-
const selectedExampleKey = useModel(__props, "modelValue");
|
|
797
|
-
const exampleOptions = computed(() => Object.entries(__props.examples).map(([key, example]) => ({
|
|
798
|
-
id: key,
|
|
799
|
-
label: example?.summary ?? key
|
|
800
|
-
})));
|
|
801
|
-
const selectedExample = computed({
|
|
802
|
-
get: () => exampleOptions.value.find(({ id }) => id === selectedExampleKey.value),
|
|
803
|
-
set: (v) => selectedExampleKey.value = v?.id ?? ""
|
|
804
|
-
});
|
|
805
|
-
return (_ctx, _cache) => {
|
|
806
|
-
return openBlock(), createBlock(unref(ScalarListbox), {
|
|
807
|
-
modelValue: selectedExample.value,
|
|
808
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedExample.value = $event),
|
|
809
|
-
class: "w-fit min-w-32",
|
|
810
|
-
options: exampleOptions.value,
|
|
811
|
-
placement: "bottom-start",
|
|
812
|
-
teleport: ""
|
|
813
|
-
}, {
|
|
814
|
-
default: withCtx(() => [createVNode(unref(ScalarButton), mergeProps({
|
|
815
|
-
class: "text-c-2 hover:text-c-1 flex h-full w-fit min-w-0 gap-1.5 px-1.5 py-0.75 text-base font-normal",
|
|
816
|
-
"data-testid": "example-picker",
|
|
817
|
-
variant: "ghost"
|
|
818
|
-
}, _ctx.$attrs), {
|
|
819
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1$1, toDisplayString(selectedExample.value?.label ?? "Select an example"), 1), createVNode(unref(ScalarIconCaretDown), {
|
|
820
|
-
class: "ui-open:rotate-180 mt-0.25 size-3 transition-transform duration-100",
|
|
821
|
-
weight: "bold"
|
|
822
|
-
})]),
|
|
823
|
-
_: 1
|
|
824
|
-
}, 16)]),
|
|
825
|
-
_: 1
|
|
826
|
-
}, 8, ["modelValue", "options"]);
|
|
827
|
-
};
|
|
828
|
-
}
|
|
829
|
-
});
|
|
830
|
-
//#endregion
|
|
831
|
-
//#region src/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.ts
|
|
832
|
-
/**
|
|
833
|
-
* Converts an object to an array of form parameters
|
|
834
|
-
* @param obj - The object to convert
|
|
835
|
-
* @returns Array of form parameters with name and value properties
|
|
836
|
-
*/
|
|
837
|
-
var objectToFormParams = (obj, encoding, parentKey) => {
|
|
838
|
-
const params = [];
|
|
839
|
-
/** Ensure we do not include disabled items */
|
|
840
|
-
const entries = Array.isArray(obj) ? obj.filter((item) => !item.isDisabled).map((item) => [item.name, item.value]) : Object.entries(obj);
|
|
841
|
-
for (const [key, value] of entries) {
|
|
842
|
-
if (value === void 0 || value === null) continue;
|
|
843
|
-
const partContentType = parentKey ? void 0 : encoding?.[key]?.contentType;
|
|
844
|
-
if (value instanceof File) {
|
|
845
|
-
const file = unpackProxyObject(value);
|
|
846
|
-
params.push({
|
|
847
|
-
name: key,
|
|
848
|
-
value: `@${file.name}`,
|
|
849
|
-
...partContentType ? { contentType: partContentType } : {}
|
|
850
|
-
});
|
|
851
|
-
} else if (partContentType && typeof value === "object") params.push({
|
|
852
|
-
name: key,
|
|
853
|
-
value: JSON.stringify(unpackProxyObject(value)),
|
|
854
|
-
contentType: partContentType
|
|
855
|
-
});
|
|
856
|
-
else if (Array.isArray(value)) for (const item of value) if (item instanceof File) {
|
|
857
|
-
const file = unpackProxyObject(item);
|
|
858
|
-
params.push({
|
|
859
|
-
name: key,
|
|
860
|
-
value: `@${file.name}`
|
|
861
|
-
});
|
|
862
|
-
} else params.push({
|
|
863
|
-
name: key,
|
|
864
|
-
value: String(item)
|
|
865
|
-
});
|
|
866
|
-
else if (typeof value === "object") {
|
|
867
|
-
const nestedParams = objectToFormParams(value, void 0, key);
|
|
868
|
-
for (const param of nestedParams) params.push({
|
|
869
|
-
name: `${key}.${param.name}`,
|
|
870
|
-
value: param.value
|
|
871
|
-
});
|
|
872
|
-
} else params.push({
|
|
873
|
-
name: key,
|
|
874
|
-
value: String(value),
|
|
875
|
-
...partContentType ? { contentType: partContentType } : {}
|
|
876
|
-
});
|
|
877
|
-
}
|
|
878
|
-
return params;
|
|
879
|
-
};
|
|
880
|
-
/**
|
|
881
|
-
* Processes the request body and returns the processed data
|
|
882
|
-
* Returns undefined if no example is found
|
|
883
|
-
*/
|
|
884
|
-
var processBody = ({ requestBody, contentType, example }) => {
|
|
885
|
-
const _contentType = contentType || Object.keys(requestBody.content)[0] || "";
|
|
886
|
-
const formatBinaryFile = (file) => {
|
|
887
|
-
return `@${unpackProxyObject(file).name || "filename"}`;
|
|
888
|
-
};
|
|
889
|
-
const encoding = requestBody.content[_contentType]?.encoding;
|
|
890
|
-
const isFormData = _contentType === "multipart/form-data" || _contentType === "application/x-www-form-urlencoded";
|
|
891
|
-
const isXml = _contentType === "application/xml";
|
|
892
|
-
const _example = getExample(requestBody, example, contentType)?.value;
|
|
893
|
-
if (typeof _example !== "undefined") {
|
|
894
|
-
const exampleValue = _example !== null && typeof _example === "object" ? unpackProxyObject(_example) : _example;
|
|
895
|
-
if (isFormData && typeof exampleValue === "object" && exampleValue !== null) return {
|
|
896
|
-
mimeType: _contentType,
|
|
897
|
-
params: objectToFormParams(exampleValue, _contentType === "multipart/form-data" ? encoding : void 0)
|
|
898
|
-
};
|
|
899
|
-
if (isXml && typeof exampleValue === "object" && exampleValue !== null) return {
|
|
900
|
-
mimeType: _contentType,
|
|
901
|
-
text: json2xml(exampleValue)
|
|
902
|
-
};
|
|
903
|
-
if (exampleValue instanceof File) return {
|
|
904
|
-
mimeType: _contentType,
|
|
905
|
-
text: formatBinaryFile(exampleValue)
|
|
906
|
-
};
|
|
907
|
-
return {
|
|
908
|
-
mimeType: _contentType,
|
|
909
|
-
text: typeof exampleValue === "string" ? exampleValue : JSON.stringify(exampleValue)
|
|
910
|
-
};
|
|
911
|
-
}
|
|
912
|
-
const contentSchema = getResolvedRef(requestBody.content[_contentType]?.schema);
|
|
913
|
-
if (typeof contentSchema !== "undefined") {
|
|
914
|
-
const extractedExample = getExampleFromSchema(contentSchema, {
|
|
915
|
-
mode: "write",
|
|
916
|
-
xml: isXml
|
|
917
|
-
});
|
|
918
|
-
if (extractedExample !== void 0) {
|
|
919
|
-
if (isFormData && typeof extractedExample === "object" && extractedExample !== null) return {
|
|
920
|
-
mimeType: _contentType,
|
|
921
|
-
params: objectToFormParams(extractedExample, _contentType === "multipart/form-data" ? encoding : void 0)
|
|
922
|
-
};
|
|
923
|
-
if (isXml && typeof extractedExample === "object" && extractedExample !== null) return {
|
|
924
|
-
mimeType: _contentType,
|
|
925
|
-
text: json2xml(extractedExample)
|
|
926
|
-
};
|
|
927
|
-
return {
|
|
928
|
-
mimeType: _contentType,
|
|
929
|
-
text: typeof extractedExample === "string" ? extractedExample : JSON.stringify(extractedExample)
|
|
930
|
-
};
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
};
|
|
934
|
-
//#endregion
|
|
935
|
-
//#region src/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.ts
|
|
936
|
-
/** Ensures we don't have any references in the parameters */
|
|
937
|
-
var deReferenceParams = (params) => (params ?? []).map((param) => getResolvedRef(param));
|
|
938
|
-
/**
|
|
939
|
-
* Get the style and explode values for a parameter according to OpenAPI 3.1.1 specification.
|
|
940
|
-
* Handles defaults and validation for parameter location restrictions.
|
|
941
|
-
*/
|
|
942
|
-
var getParameterStyleAndExplode = (param) => {
|
|
943
|
-
if (param.in === "header") return {
|
|
944
|
-
style: "simple",
|
|
945
|
-
explode: "explode" in param && param.explode !== void 0 ? param.explode : false
|
|
946
|
-
};
|
|
947
|
-
if (param.in === "cookie") return {
|
|
948
|
-
style: "form",
|
|
949
|
-
explode: "explode" in param && param.explode !== void 0 ? param.explode : true
|
|
950
|
-
};
|
|
951
|
-
const defaultStyle = {
|
|
952
|
-
path: "simple",
|
|
953
|
-
query: "form",
|
|
954
|
-
header: "simple",
|
|
955
|
-
cookie: "form"
|
|
956
|
-
}[param.in];
|
|
957
|
-
const style = "style" in param && param.style ? param.style : defaultStyle;
|
|
958
|
-
return {
|
|
959
|
-
style,
|
|
960
|
-
explode: "explode" in param && param.explode !== void 0 ? param.explode : style === "form"
|
|
961
|
-
};
|
|
962
|
-
};
|
|
963
|
-
/**
|
|
964
|
-
* Extract the value for a parameter from example data or schema.
|
|
965
|
-
* Prioritizes example data over schema examples.
|
|
966
|
-
* Returns null if the parameter is disabled so we can skip it.
|
|
967
|
-
*/
|
|
968
|
-
var getParameterValue = (param, example, contentType) => {
|
|
969
|
-
const exampleValue = getExample(param, example, contentType);
|
|
970
|
-
if (isParamDisabled(param, exampleValue)) return;
|
|
971
|
-
if (exampleValue?.value !== void 0) return deSerializeParameter(exampleValue.value, param);
|
|
972
|
-
if (!("schema" in param) || !param.schema) return;
|
|
973
|
-
const options = param.in === "path" ? { emptyString: `{${param.name}}` } : {};
|
|
974
|
-
return getExampleFromSchema(getResolvedRef(param.schema), options);
|
|
975
|
-
};
|
|
976
|
-
/**
|
|
977
|
-
* Process OpenAPI parameters and return the updated properties.
|
|
978
|
-
* Handles path, query, and header parameters with various styles and explode options.
|
|
979
|
-
*
|
|
980
|
-
* @see https://spec.openapis.org/oas/latest.html#style-values
|
|
981
|
-
*/
|
|
982
|
-
var processParameters = ({ harRequest, parameters, example }) => {
|
|
983
|
-
const newHeaders = [...harRequest.headers];
|
|
984
|
-
const newQueryString = [...harRequest.queryString];
|
|
985
|
-
let newUrl = harRequest.url;
|
|
986
|
-
const deReferencedParams = deReferenceParams(parameters);
|
|
987
|
-
for (const param of deReferencedParams) {
|
|
988
|
-
if (!param.in || !param.name) continue;
|
|
989
|
-
const paramValue = getParameterValue(param, example, void 0);
|
|
990
|
-
if (paramValue === void 0) continue;
|
|
991
|
-
const { style, explode } = getParameterStyleAndExplode(param);
|
|
992
|
-
switch (param.in) {
|
|
993
|
-
case "path":
|
|
994
|
-
newUrl = processPathParameters(newUrl, param, paramValue, style, explode);
|
|
995
|
-
break;
|
|
996
|
-
case "query":
|
|
997
|
-
if ("content" in param && param.content) {
|
|
998
|
-
const serializedValue = serializeContentValue(paramValue, Object.keys(param.content)[0] ?? "application/json");
|
|
999
|
-
newQueryString.push({
|
|
1000
|
-
name: param.name,
|
|
1001
|
-
value: serializedValue
|
|
1002
|
-
});
|
|
1003
|
-
break;
|
|
1004
|
-
}
|
|
1005
|
-
switch (style) {
|
|
1006
|
-
case "form": {
|
|
1007
|
-
const serialized = serializeFormStyle(paramValue, explode);
|
|
1008
|
-
if (Array.isArray(serialized)) for (const entry of serialized) {
|
|
1009
|
-
const key = entry.key || param.name;
|
|
1010
|
-
newQueryString.push({
|
|
1011
|
-
name: key,
|
|
1012
|
-
value: String(entry.value)
|
|
1013
|
-
});
|
|
1014
|
-
}
|
|
1015
|
-
else newQueryString.push({
|
|
1016
|
-
name: param.name,
|
|
1017
|
-
value: String(serialized)
|
|
1018
|
-
});
|
|
1019
|
-
break;
|
|
1020
|
-
}
|
|
1021
|
-
case "spaceDelimited": {
|
|
1022
|
-
const serialized = serializeSpaceDelimitedStyle(paramValue);
|
|
1023
|
-
newQueryString.push({
|
|
1024
|
-
name: param.name,
|
|
1025
|
-
value: serialized
|
|
1026
|
-
});
|
|
1027
|
-
break;
|
|
1028
|
-
}
|
|
1029
|
-
case "pipeDelimited": {
|
|
1030
|
-
const serialized = serializePipeDelimitedStyle(paramValue);
|
|
1031
|
-
newQueryString.push({
|
|
1032
|
-
name: param.name,
|
|
1033
|
-
value: serialized
|
|
1034
|
-
});
|
|
1035
|
-
break;
|
|
1036
|
-
}
|
|
1037
|
-
case "deepObject":
|
|
1038
|
-
if (explode) {
|
|
1039
|
-
const entries = serializeDeepObjectStyle(param.name, paramValue);
|
|
1040
|
-
for (const entry of entries) newQueryString.push({
|
|
1041
|
-
name: entry.key,
|
|
1042
|
-
value: entry.value
|
|
1043
|
-
});
|
|
1044
|
-
}
|
|
1045
|
-
break;
|
|
1046
|
-
default: newQueryString.push({
|
|
1047
|
-
name: param.name,
|
|
1048
|
-
value: String(paramValue)
|
|
1049
|
-
});
|
|
1050
|
-
}
|
|
1051
|
-
break;
|
|
1052
|
-
case "header": {
|
|
1053
|
-
const serialized = serializeSimpleStyle(paramValue, explode);
|
|
1054
|
-
newHeaders.push({
|
|
1055
|
-
name: param.name,
|
|
1056
|
-
value: String(serialized)
|
|
1057
|
-
});
|
|
1058
|
-
break;
|
|
1059
|
-
}
|
|
1060
|
-
case "cookie": {
|
|
1061
|
-
const serialized = serializeFormStyleForCookies(paramValue, explode);
|
|
1062
|
-
if (Array.isArray(serialized)) for (const entry of serialized) {
|
|
1063
|
-
const key = entry.key || param.name;
|
|
1064
|
-
const value = entry.value === null ? "null" : String(entry.value);
|
|
1065
|
-
harRequest.cookies.push({
|
|
1066
|
-
name: key,
|
|
1067
|
-
value
|
|
1068
|
-
});
|
|
1069
|
-
}
|
|
1070
|
-
else {
|
|
1071
|
-
const value = serialized === null ? "null" : String(serialized);
|
|
1072
|
-
harRequest.cookies.push({
|
|
1073
|
-
name: param.name,
|
|
1074
|
-
value
|
|
1075
|
-
});
|
|
1076
|
-
}
|
|
1077
|
-
break;
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
return {
|
|
1082
|
-
url: newUrl,
|
|
1083
|
-
headers: newHeaders,
|
|
1084
|
-
queryString: newQueryString,
|
|
1085
|
-
cookies: harRequest.cookies
|
|
1086
|
-
};
|
|
1087
|
-
};
|
|
1088
|
-
/**
|
|
1089
|
-
* Process path parameters according to OpenAPI specification.
|
|
1090
|
-
* Handles matrix, label, and simple styles with explode options.
|
|
1091
|
-
*
|
|
1092
|
-
* @param url - The URL to process
|
|
1093
|
-
* @param param - The parameter object
|
|
1094
|
-
* @param paramValue - The value of the parameter
|
|
1095
|
-
* @param style - The style of the parameter (matrix, label, simple)
|
|
1096
|
-
* @param explode - Whether to explode the parameter
|
|
1097
|
-
* @returns The updated URL with processed path parameters
|
|
1098
|
-
*/
|
|
1099
|
-
var processPathParameters = (url, param, paramValue, style, explode) => {
|
|
1100
|
-
switch (style) {
|
|
1101
|
-
case "matrix":
|
|
1102
|
-
if (explode) {
|
|
1103
|
-
if (Array.isArray(paramValue)) {
|
|
1104
|
-
const values = paramValue.map((v) => `${param.name}=${v}`).join(";");
|
|
1105
|
-
return url.replace(`{;${param.name}}`, `;${values}`);
|
|
1106
|
-
}
|
|
1107
|
-
if (typeof paramValue === "object" && paramValue !== null) {
|
|
1108
|
-
const values = Object.entries(paramValue).map(([k, v]) => `${k}=${v}`).join(";");
|
|
1109
|
-
return url.replace(`{;${param.name}}`, `;${values}`);
|
|
1110
|
-
}
|
|
1111
|
-
return url.replace(`{;${param.name}}`, `;${param.name}=${paramValue}`);
|
|
1112
|
-
}
|
|
1113
|
-
if (Array.isArray(paramValue)) return url.replace(`{;${param.name}}`, `;${param.name}=${paramValue.join(",")}`);
|
|
1114
|
-
if (typeof paramValue === "object" && paramValue !== null) {
|
|
1115
|
-
const values = Object.entries(paramValue).map(([k, v]) => `${k},${v}`).join(",");
|
|
1116
|
-
return url.replace(`{;${param.name}}`, `;${param.name}=${values}`);
|
|
1117
|
-
}
|
|
1118
|
-
return url.replace(`{;${param.name}}`, `;${param.name}=${paramValue}`);
|
|
1119
|
-
case "label":
|
|
1120
|
-
if (explode) {
|
|
1121
|
-
if (Array.isArray(paramValue)) return url.replace(`{.${param.name}}`, `.${paramValue.join(".")}`);
|
|
1122
|
-
if (typeof paramValue === "object" && paramValue !== null) {
|
|
1123
|
-
const values = Object.entries(paramValue).map(([k, v]) => `${k}=${v}`).join(".");
|
|
1124
|
-
return url.replace(`{.${param.name}}`, `.${values}`);
|
|
1125
|
-
}
|
|
1126
|
-
return url.replace(`{.${param.name}}`, `.${paramValue}`);
|
|
1127
|
-
}
|
|
1128
|
-
if (Array.isArray(paramValue)) return url.replace(`{.${param.name}}`, `.${paramValue.join(",")}`);
|
|
1129
|
-
if (typeof paramValue === "object" && paramValue !== null) {
|
|
1130
|
-
const values = Object.entries(paramValue).map(([k, v]) => `${k},${v}`).join(",");
|
|
1131
|
-
return url.replace(`{.${param.name}}`, `.${values}`);
|
|
1132
|
-
}
|
|
1133
|
-
return url.replace(`{.${param.name}}`, `.${paramValue}`);
|
|
1134
|
-
case "simple": {
|
|
1135
|
-
const serialized = serializeSimpleStyle(paramValue, explode);
|
|
1136
|
-
return url.replace(`{${param.name}}`, String(serialized));
|
|
1137
|
-
}
|
|
1138
|
-
default: return url.replace(`{${param.name}}`, String(paramValue));
|
|
1139
|
-
}
|
|
1140
|
-
};
|
|
1141
|
-
//#endregion
|
|
1142
|
-
//#region src/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.ts
|
|
1143
|
-
/**
|
|
1144
|
-
* Process security schemes into whichever parameters they are applicable to
|
|
1145
|
-
*
|
|
1146
|
-
* TODO: we probably want to be able to disable YOUR_SECRET_TOKEN placeholder text + or allow it to be customzied
|
|
1147
|
-
*/
|
|
1148
|
-
var processSecuritySchemes = (securitySchemes) => {
|
|
1149
|
-
const result = {
|
|
1150
|
-
headers: [],
|
|
1151
|
-
queryString: [],
|
|
1152
|
-
cookies: []
|
|
1153
|
-
};
|
|
1154
|
-
for (const scheme of securitySchemes) {
|
|
1155
|
-
if (scheme.type === "apiKey") {
|
|
1156
|
-
const value = scheme["x-scalar-secret-token"] || "YOUR_SECRET_TOKEN";
|
|
1157
|
-
if (!scheme.name) continue;
|
|
1158
|
-
const param = {
|
|
1159
|
-
name: scheme.name,
|
|
1160
|
-
value
|
|
1161
|
-
};
|
|
1162
|
-
switch (scheme.in) {
|
|
1163
|
-
case "header":
|
|
1164
|
-
result.headers.push(param);
|
|
1165
|
-
break;
|
|
1166
|
-
case "query":
|
|
1167
|
-
result.queryString.push(param);
|
|
1168
|
-
break;
|
|
1169
|
-
case "cookie":
|
|
1170
|
-
result.cookies.push(param);
|
|
1171
|
-
break;
|
|
1172
|
-
}
|
|
1173
|
-
continue;
|
|
1174
|
-
}
|
|
1175
|
-
if (scheme.type === "http") {
|
|
1176
|
-
if (scheme.scheme === "basic") {
|
|
1177
|
-
const value = `${scheme["x-scalar-secret-username"] || ""}:${scheme["x-scalar-secret-password"] || ""}`;
|
|
1178
|
-
const auth = value === ":" ? "username:password" : encode(value);
|
|
1179
|
-
result.headers.push({
|
|
1180
|
-
name: "Authorization",
|
|
1181
|
-
value: `Basic ${auth}`
|
|
1182
|
-
});
|
|
1183
|
-
} else if (scheme.scheme === "bearer") {
|
|
1184
|
-
const token = scheme["x-scalar-secret-token"] || "YOUR_SECRET_TOKEN";
|
|
1185
|
-
result.headers.push({
|
|
1186
|
-
name: "Authorization",
|
|
1187
|
-
value: `Bearer ${token}`
|
|
1188
|
-
});
|
|
1189
|
-
}
|
|
1190
|
-
continue;
|
|
1191
|
-
}
|
|
1192
|
-
if (scheme.type === "oauth2" && scheme.flows) {
|
|
1193
|
-
const token = Object.values(scheme.flows).find((f) => f["x-scalar-secret-token"])?.["x-scalar-secret-token"] || "YOUR_SECRET_TOKEN";
|
|
1194
|
-
result.headers.push({
|
|
1195
|
-
name: "Authorization",
|
|
1196
|
-
value: `Bearer ${token}`
|
|
1197
|
-
});
|
|
1198
|
-
}
|
|
1199
|
-
}
|
|
1200
|
-
return result;
|
|
1201
|
-
};
|
|
1202
|
-
//#endregion
|
|
1203
|
-
//#region src/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.ts
|
|
1204
|
-
/**
|
|
1205
|
-
* Processes a server URL by replacing variables with their default values and merging with the path
|
|
1206
|
-
*/
|
|
1207
|
-
var processServerUrl = (server, path) => {
|
|
1208
|
-
if (!server?.url) return path;
|
|
1209
|
-
const serverUrl = server.url;
|
|
1210
|
-
if (server.variables) return mergeUrls(replaceVariables(serverUrl, Object.entries(server.variables).reduce((defaults, [variableName, variableConfig]) => {
|
|
1211
|
-
if (variableConfig.default !== void 0) defaults[variableName] = variableConfig.default;
|
|
1212
|
-
return defaults;
|
|
1213
|
-
}, {})), path);
|
|
1214
|
-
return mergeUrls(serverUrl, path);
|
|
1215
|
-
};
|
|
1216
|
-
//#endregion
|
|
1217
|
-
//#region src/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.ts
|
|
1218
|
-
/**
|
|
1219
|
-
* Converts an OpenAPI Operation to a HarRequest format for generating HTTP request snippets.
|
|
1220
|
-
*
|
|
1221
|
-
* This function transforms OpenAPI 3.1 operation objects into HAR (HTTP Archive) format requests,
|
|
1222
|
-
* which can be used to generate code snippets for various programming languages and HTTP clients.
|
|
1223
|
-
*
|
|
1224
|
-
* The conversion handles:
|
|
1225
|
-
* - Server URL processing and path parameter substitution
|
|
1226
|
-
* - Query parameter formatting based on OpenAPI parameter styles
|
|
1227
|
-
* - Request body processing with content type handling
|
|
1228
|
-
* - Security scheme integration (API keys, etc.)
|
|
1229
|
-
*
|
|
1230
|
-
* The resulting HarRequest object follows the HAR specification and includes:
|
|
1231
|
-
* - HTTP method and URL
|
|
1232
|
-
* - Headers and query parameters
|
|
1233
|
-
* - Request body (if present)
|
|
1234
|
-
* - Cookie information
|
|
1235
|
-
* - Size calculations for headers and body
|
|
1236
|
-
*
|
|
1237
|
-
* @see https://w3c.github.io/web-performance/specs/HAR/Overview.html
|
|
1238
|
-
* @see https://spec.openapis.org/oas/v3.1.0#operation-object
|
|
1239
|
-
*/
|
|
1240
|
-
var operationToHar = ({ includeDefaultHeaders = false, operation, contentType, method, path, server = null, example, securitySchemes, globalCookies }) => {
|
|
1241
|
-
const defaultHeaders = includeDefaultHeaders ? getDefaultHeaders({
|
|
1242
|
-
method,
|
|
1243
|
-
operation,
|
|
1244
|
-
exampleKey: example ?? "default",
|
|
1245
|
-
hideDisabledHeaders: true
|
|
1246
|
-
}).filter((header) => !header.isOverridden) : [];
|
|
1247
|
-
const disabledGlobalCookies = operation["x-scalar-disable-parameters"]?.["global-cookies"]?.[example ?? "default"] ?? {};
|
|
1248
|
-
const harRequest = {
|
|
1249
|
-
method,
|
|
1250
|
-
url: processServerUrl(server, path),
|
|
1251
|
-
headers: defaultHeaders.map((header) => ({
|
|
1252
|
-
name: header.name,
|
|
1253
|
-
value: header.defaultValue
|
|
1254
|
-
})),
|
|
1255
|
-
queryString: [],
|
|
1256
|
-
postData: void 0,
|
|
1257
|
-
httpVersion: "HTTP/1.1",
|
|
1258
|
-
cookies: [],
|
|
1259
|
-
headersSize: -1,
|
|
1260
|
-
bodySize: -1
|
|
1261
|
-
};
|
|
1262
|
-
if (operation.parameters) {
|
|
1263
|
-
const { url, headers, queryString, cookies } = processParameters({
|
|
1264
|
-
harRequest,
|
|
1265
|
-
parameters: operation.parameters,
|
|
1266
|
-
example
|
|
1267
|
-
});
|
|
1268
|
-
const filteredGlobalCookies = globalCookies?.filter((cookie) => filterGlobalCookie({
|
|
1269
|
-
cookie,
|
|
1270
|
-
url,
|
|
1271
|
-
disabledGlobalCookies
|
|
1272
|
-
}))?.map((cookie) => ({
|
|
1273
|
-
name: cookie.name,
|
|
1274
|
-
value: cookie.value
|
|
1275
|
-
})) ?? [];
|
|
1276
|
-
harRequest.url = url;
|
|
1277
|
-
harRequest.headers = headers;
|
|
1278
|
-
harRequest.queryString = queryString;
|
|
1279
|
-
harRequest.cookies = [...filteredGlobalCookies, ...cookies];
|
|
1280
|
-
}
|
|
1281
|
-
const body = getResolvedRef(operation.requestBody);
|
|
1282
|
-
if (body?.content) {
|
|
1283
|
-
const postData = processBody({
|
|
1284
|
-
requestBody: body,
|
|
1285
|
-
contentType,
|
|
1286
|
-
example
|
|
1287
|
-
});
|
|
1288
|
-
if (postData) {
|
|
1289
|
-
harRequest.postData = postData;
|
|
1290
|
-
harRequest.bodySize = postData.text?.length ?? -1;
|
|
1291
|
-
if (postData.mimeType) {
|
|
1292
|
-
const existingContentTypeHeader = harRequest.headers.find((header) => header.name.toLowerCase() === "content-type");
|
|
1293
|
-
if (existingContentTypeHeader && !existingContentTypeHeader.value) existingContentTypeHeader.value = postData.mimeType;
|
|
1294
|
-
else if (!existingContentTypeHeader) harRequest.headers.push({
|
|
1295
|
-
name: "Content-Type",
|
|
1296
|
-
value: postData.mimeType
|
|
1297
|
-
});
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
|
-
}
|
|
1301
|
-
if (securitySchemes) {
|
|
1302
|
-
const { headers, queryString, cookies } = processSecuritySchemes(securitySchemes);
|
|
1303
|
-
harRequest.headers.push(...headers);
|
|
1304
|
-
harRequest.queryString.push(...queryString);
|
|
1305
|
-
harRequest.cookies.push(...cookies);
|
|
1306
|
-
}
|
|
1307
|
-
let headersSize = 0;
|
|
1308
|
-
for (const h of harRequest.headers) headersSize += (h.name?.length ?? 0) + 2 + (h.value?.length ?? 0) + 2;
|
|
1309
|
-
harRequest.headersSize = headersSize;
|
|
1310
|
-
return harRequest;
|
|
1311
|
-
};
|
|
1312
|
-
//#endregion
|
|
1313
|
-
//#region src/v2/blocks/operation-code-sample/components/HttpMethod.vue
|
|
1314
|
-
var HttpMethod_default = /* @__PURE__ */ defineComponent({
|
|
1315
|
-
__name: "HttpMethod",
|
|
1316
|
-
props: {
|
|
1317
|
-
as: {},
|
|
1318
|
-
property: {},
|
|
1319
|
-
short: { type: Boolean },
|
|
1320
|
-
method: {}
|
|
1321
|
-
},
|
|
1322
|
-
setup(__props) {
|
|
1323
|
-
const props = __props;
|
|
1324
|
-
/** Grabs the method info object which contains abbreviation, color, and background color etc */
|
|
1325
|
-
const httpMethodInfo = computed(() => getHttpMethodInfo(String(props.method || "")));
|
|
1326
|
-
/** Full method name */
|
|
1327
|
-
const normalized = computed(() => normalizeHttpMethod(props.method));
|
|
1328
|
-
return (_ctx, _cache) => {
|
|
1329
|
-
return openBlock(), createBlock(resolveDynamicComponent(__props.as ?? "span"), {
|
|
1330
|
-
class: "uppercase",
|
|
1331
|
-
style: normalizeStyle({ [__props.property || "color"]: httpMethodInfo.value.colorVar })
|
|
1332
|
-
}, {
|
|
1333
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default"), createTextVNode(" " + toDisplayString(__props.short ? httpMethodInfo.value.short : normalized.value), 1)]),
|
|
1334
|
-
_: 3
|
|
1335
|
-
}, 8, ["style"]);
|
|
1336
|
-
};
|
|
1337
|
-
}
|
|
1338
|
-
});
|
|
1339
|
-
//#endregion
|
|
1340
|
-
//#region src/v2/blocks/operation-code-sample/helpers/find-client.ts
|
|
1341
|
-
var DEFAULT_CLIENT = "shell/curl";
|
|
1342
|
-
/** Type guard to check if a string is a valid client id */
|
|
1343
|
-
var isClient = (id) => AVAILABLE_CLIENTS.includes(id);
|
|
1344
|
-
/**
|
|
1345
|
-
* Finds and returns the appropriate client option from a list of client option groups.
|
|
1346
|
-
*
|
|
1347
|
-
* This function is used to determine which client should be initially selected in the
|
|
1348
|
-
* request example block. It prioritizes a specific client ID if provided, otherwise
|
|
1349
|
-
* falls back to the first available option.
|
|
1350
|
-
*
|
|
1351
|
-
* @param options - Array of client option groups, each containing a label and array of client options
|
|
1352
|
-
* @param id - Optional client identifier to search for (e.g., 'js/fetch', 'python/requests')
|
|
1353
|
-
|
|
1354
|
-
* @returns The selected client option. If a specific ID is provided and found, returns that client.
|
|
1355
|
-
* If the ID is not found or not provided, returns the first available client option.
|
|
1356
|
-
*
|
|
1357
|
-
* @example
|
|
1358
|
-
* ```typescript
|
|
1359
|
-
* const clientGroups = [
|
|
1360
|
-
* {
|
|
1361
|
-
* label: 'JavaScript',
|
|
1362
|
-
* options: [
|
|
1363
|
-
* { id: 'js/fetch', label: 'Fetch API', lang: 'js' },
|
|
1364
|
-
* { id: 'js/axios', label: 'Axios', lang: 'js' }
|
|
1365
|
-
* ]
|
|
1366
|
-
* }
|
|
1367
|
-
* ]
|
|
1368
|
-
*
|
|
1369
|
-
* // Find specific client
|
|
1370
|
-
* const client = findClient(clientGroups, 'js/fetch')
|
|
1371
|
-
* // Returns: { id: 'js/fetch', label: 'Fetch API', lang: 'js' }
|
|
1372
|
-
*
|
|
1373
|
-
* // Find first available client
|
|
1374
|
-
* const firstClient = findClient(clientGroups)
|
|
1375
|
-
* // Returns: { id: 'js/fetch', label: 'Fetch API', lang: 'js' }
|
|
1376
|
-
* ```
|
|
1377
|
-
*/
|
|
1378
|
-
var findClient = (clientGroups, clientId) => {
|
|
1379
|
-
const firstOption = clientGroups[0]?.options[0];
|
|
1380
|
-
if (clientId) for (const group of clientGroups) {
|
|
1381
|
-
const option = group.options.find((option) => option.id === clientId);
|
|
1382
|
-
if (option) return option;
|
|
1383
|
-
}
|
|
1384
|
-
if (!firstOption?.id.startsWith("custom")) for (const group of clientGroups) {
|
|
1385
|
-
const option = group.options.find((option) => option.id === DEFAULT_CLIENT);
|
|
1386
|
-
if (option) return option;
|
|
1387
|
-
}
|
|
1388
|
-
return firstOption;
|
|
1389
|
-
};
|
|
1390
|
-
//#endregion
|
|
1391
|
-
//#region src/v2/blocks/operation-code-sample/helpers/generate-client-options.ts
|
|
1392
|
-
/** Helper to generate an ID for custom code samples */
|
|
1393
|
-
var generateCustomId = (example) => `custom/${example.lang}`;
|
|
1394
|
-
/**
|
|
1395
|
-
* Generate client options for the request example block by filtering by allowed clients
|
|
1396
|
-
*
|
|
1397
|
-
* @param allowedClients - The list of allowed clients to include in the options
|
|
1398
|
-
* @returns A list of client option groups
|
|
1399
|
-
*/
|
|
1400
|
-
var generateClientOptions = (allowedClients = AVAILABLE_CLIENTS) => {
|
|
1401
|
-
/** Create set of allowlist for quicker lookups */
|
|
1402
|
-
const allowedClientsSet = new Set(allowedClients);
|
|
1403
|
-
return snippetz().clients().flatMap((group) => {
|
|
1404
|
-
const options = group.clients.flatMap((plugin) => {
|
|
1405
|
-
const id = `${group.key}/${plugin.client}`;
|
|
1406
|
-
if (!allowedClientsSet.has(id)) return [];
|
|
1407
|
-
return {
|
|
1408
|
-
id,
|
|
1409
|
-
lang: plugin.client === "curl" ? "curl" : group.key,
|
|
1410
|
-
title: `${capitalize(group.title)} ${plugin.title}`,
|
|
1411
|
-
label: plugin.title,
|
|
1412
|
-
targetKey: group.key,
|
|
1413
|
-
targetTitle: group.title,
|
|
1414
|
-
clientKey: plugin.client
|
|
1415
|
-
};
|
|
1416
|
-
});
|
|
1417
|
-
if (options.length === 0) return [];
|
|
1418
|
-
return {
|
|
1419
|
-
label: group.title,
|
|
1420
|
-
options
|
|
1421
|
-
};
|
|
1422
|
-
});
|
|
1423
|
-
};
|
|
1424
|
-
//#endregion
|
|
1425
|
-
//#region src/v2/blocks/operation-code-sample/helpers/get-clients.ts
|
|
1426
|
-
/**
|
|
1427
|
-
* Merges custom code samples with the client options
|
|
1428
|
-
*
|
|
1429
|
-
* @param customCodeSamples - The custom code samples from the operation to merge with the client options
|
|
1430
|
-
* @param clientOptions - The client options to merge with the custom code samples
|
|
1431
|
-
* @returns A list of client option groups
|
|
1432
|
-
*/
|
|
1433
|
-
var getClients = (customCodeSamples, clientOptions) => {
|
|
1434
|
-
if (customCodeSamples.length) return [{
|
|
1435
|
-
label: "Code Examples",
|
|
1436
|
-
options: customCodeSamples.map((sample) => {
|
|
1437
|
-
const id = generateCustomId(sample);
|
|
1438
|
-
const label = sample.label || sample.lang || id;
|
|
1439
|
-
return {
|
|
1440
|
-
id,
|
|
1441
|
-
lang: sample.lang || "plaintext",
|
|
1442
|
-
title: label,
|
|
1443
|
-
label,
|
|
1444
|
-
clientKey: "custom"
|
|
1445
|
-
};
|
|
1446
|
-
})
|
|
1447
|
-
}, ...clientOptions];
|
|
1448
|
-
return clientOptions;
|
|
1449
|
-
};
|
|
1450
|
-
//#endregion
|
|
1451
|
-
//#region src/v2/blocks/operation-code-sample/helpers/get-custom-code-samples.ts
|
|
1452
|
-
/**
|
|
1453
|
-
* Grabs any custom code samples from the operation
|
|
1454
|
-
*
|
|
1455
|
-
* @param operation - The operation to get the custom code samples from
|
|
1456
|
-
* @returns An array of custom code samples which exist in the operation
|
|
1457
|
-
*/
|
|
1458
|
-
var getCustomCodeSamples = (operation) => {
|
|
1459
|
-
return [
|
|
1460
|
-
"x-custom-examples",
|
|
1461
|
-
"x-codeSamples",
|
|
1462
|
-
"x-code-samples"
|
|
1463
|
-
].flatMap((key) => operation[key] ?? []);
|
|
1464
|
-
};
|
|
1465
|
-
//#endregion
|
|
1466
|
-
//#region src/v2/blocks/operation-code-sample/helpers/get-secrets.ts
|
|
1467
|
-
/** Extract secrets from security schemes */
|
|
1468
|
-
var getSecrets = (securitySchemes) => securitySchemes.flatMap((scheme) => {
|
|
1469
|
-
if (scheme.type === "apiKey") return scheme["x-scalar-secret-token"];
|
|
1470
|
-
if (scheme?.type === "http") return [
|
|
1471
|
-
scheme["x-scalar-secret-token"],
|
|
1472
|
-
scheme["x-scalar-secret-username"],
|
|
1473
|
-
scheme["x-scalar-secret-password"],
|
|
1474
|
-
encode(`${scheme["x-scalar-secret-username"]}:${scheme["x-scalar-secret-password"]}`)
|
|
1475
|
-
];
|
|
1476
|
-
if (scheme.type === "oauth2") return Object.values(scheme.flows).map((flow) => flow["x-scalar-secret-token"]);
|
|
1477
|
-
return [];
|
|
1478
|
-
}).filter(Boolean);
|
|
1479
|
-
//#endregion
|
|
1480
|
-
//#region src/v2/blocks/operation-code-sample/helpers/generate-code-snippet.ts
|
|
1481
|
-
/** Generate the code snippet for the selected example OR operation */
|
|
1482
|
-
var generateCodeSnippet = ({ clientId, customCodeSamples, includeDefaultHeaders = false, operation, method, path, example, contentType, server, securitySchemes, globalCookies }) => {
|
|
1483
|
-
try {
|
|
1484
|
-
if (!clientId) return "";
|
|
1485
|
-
if (clientId.startsWith("custom")) return customCodeSamples.find((example) => generateCustomId(example) === clientId)?.source ?? "Custom example not found";
|
|
1486
|
-
const harRequest = operationToHar({
|
|
1487
|
-
operation,
|
|
1488
|
-
contentType,
|
|
1489
|
-
method,
|
|
1490
|
-
path,
|
|
1491
|
-
server,
|
|
1492
|
-
securitySchemes,
|
|
1493
|
-
example,
|
|
1494
|
-
globalCookies,
|
|
1495
|
-
includeDefaultHeaders
|
|
1496
|
-
});
|
|
1497
|
-
const [targetKey, clientKey] = clientId.split("/");
|
|
1498
|
-
const [error, payload] = getSnippet(targetKey, clientKey, harRequest);
|
|
1499
|
-
if (error) {
|
|
1500
|
-
console.error("[generateCodeSnippet]", error);
|
|
1501
|
-
return error.message ?? "Error generating code snippet";
|
|
1502
|
-
}
|
|
1503
|
-
return payload;
|
|
1504
|
-
} catch (error) {
|
|
1505
|
-
console.error("[generateCodeSnippet]", error);
|
|
1506
|
-
return "Error generating code snippet";
|
|
1507
|
-
}
|
|
1508
|
-
};
|
|
1509
|
-
//#endregion
|
|
1510
|
-
//#region src/v2/blocks/operation-code-sample/components/OperationCodeSample.vue?vue&type=script&setup=true&lang.ts
|
|
1511
|
-
var _hoisted_1 = ["innerHTML"];
|
|
1512
|
-
var _hoisted_2 = ["id"];
|
|
1513
|
-
var _hoisted_3 = {
|
|
1514
|
-
key: 0,
|
|
1515
|
-
class: "request-card-footer-addon"
|
|
1516
|
-
};
|
|
1517
|
-
var _hoisted_4 = { class: "request-header" };
|
|
1518
|
-
//#endregion
|
|
1519
|
-
//#region src/v2/blocks/operation-code-sample/components/OperationCodeSample.vue
|
|
1520
|
-
var OperationCodeSample_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
1521
|
-
__name: "OperationCodeSample",
|
|
1522
|
-
props: /* @__PURE__ */ mergeModels({
|
|
1523
|
-
integration: {},
|
|
1524
|
-
clientOptions: {},
|
|
1525
|
-
selectedClient: {},
|
|
1526
|
-
selectedServer: { default: null },
|
|
1527
|
-
selectedContentType: {},
|
|
1528
|
-
selectedExample: {},
|
|
1529
|
-
eventBus: {},
|
|
1530
|
-
securitySchemes: { default: () => [] },
|
|
1531
|
-
method: {},
|
|
1532
|
-
path: {},
|
|
1533
|
-
operation: {},
|
|
1534
|
-
fallback: { type: Boolean },
|
|
1535
|
-
generateLabel: { type: Function },
|
|
1536
|
-
isWebhook: { type: Boolean },
|
|
1537
|
-
globalCookies: {}
|
|
1538
|
-
}, {
|
|
1539
|
-
"selectedExample": { default: "" },
|
|
1540
|
-
"selectedExampleModifiers": {}
|
|
1541
|
-
}),
|
|
1542
|
-
emits: ["update:selectedExample"],
|
|
1543
|
-
setup(__props) {
|
|
1544
|
-
/** Grab the examples for the given content type */
|
|
1545
|
-
const requestBodyExamples = computed(() => {
|
|
1546
|
-
const content = getResolvedRef(__props.operation.requestBody)?.content ?? {};
|
|
1547
|
-
const contentType = __props.selectedContentType || Object.keys(content)[0];
|
|
1548
|
-
if (!contentType) return {};
|
|
1549
|
-
return content[contentType]?.examples ?? {};
|
|
1550
|
-
});
|
|
1551
|
-
/** The currently selected example key with v-model support */
|
|
1552
|
-
const selectedExampleKey = useModel(__props, "selectedExample");
|
|
1553
|
-
onBeforeMount(() => {
|
|
1554
|
-
selectedExampleKey.value ||= Object.keys(requestBodyExamples.value)[0] ?? "";
|
|
1555
|
-
});
|
|
1556
|
-
/** Grab any custom code samples from the operation */
|
|
1557
|
-
const customCodeSamples = computed(() => getCustomCodeSamples(__props.operation));
|
|
1558
|
-
/** Merge custom code samples with the client options */
|
|
1559
|
-
const clients = computed(() => getClients(customCodeSamples.value, __props.clientOptions));
|
|
1560
|
-
/** The locally selected client which would include code samples from this operation only */
|
|
1561
|
-
const localSelectedClient = ref(findClient(clients.value, __props.selectedClient));
|
|
1562
|
-
/** If the globally selected client changes we can update the local one */
|
|
1563
|
-
watch(() => __props.selectedClient, (newClient) => {
|
|
1564
|
-
const client = findClient(clients.value, newClient);
|
|
1565
|
-
if (client) localSelectedClient.value = client;
|
|
1566
|
-
});
|
|
1567
|
-
/** Generate HAR data for webhook requests */
|
|
1568
|
-
const webhookHar = computed(() => {
|
|
1569
|
-
if (!__props.isWebhook) return null;
|
|
1570
|
-
try {
|
|
1571
|
-
return operationToHar({
|
|
1572
|
-
operation: __props.operation,
|
|
1573
|
-
method: __props.method,
|
|
1574
|
-
path: __props.path,
|
|
1575
|
-
example: selectedExampleKey.value
|
|
1576
|
-
});
|
|
1577
|
-
} catch (error) {
|
|
1578
|
-
console.error("[webhookHar]", error);
|
|
1579
|
-
return null;
|
|
1580
|
-
}
|
|
1581
|
-
});
|
|
1582
|
-
/** Generate the code snippet for the selected example */
|
|
1583
|
-
const generatedCode = computed(() => {
|
|
1584
|
-
if (__props.isWebhook) return webhookHar.value?.postData?.text ?? "";
|
|
1585
|
-
return generateCodeSnippet({
|
|
1586
|
-
includeDefaultHeaders: __props.integration === "client",
|
|
1587
|
-
clientId: localSelectedClient.value?.id,
|
|
1588
|
-
customCodeSamples: customCodeSamples.value,
|
|
1589
|
-
operation: __props.operation,
|
|
1590
|
-
method: __props.method,
|
|
1591
|
-
path: __props.path,
|
|
1592
|
-
contentType: __props.selectedContentType,
|
|
1593
|
-
server: __props.selectedServer,
|
|
1594
|
-
securitySchemes: __props.securitySchemes,
|
|
1595
|
-
example: selectedExampleKey.value,
|
|
1596
|
-
globalCookies: __props.globalCookies
|
|
1597
|
-
});
|
|
1598
|
-
});
|
|
1599
|
-
/** The language for the code block, used for syntax highlighting */
|
|
1600
|
-
const codeBlockLanguage = computed(() => {
|
|
1601
|
-
if (__props.isWebhook) return webhookLanguage.value;
|
|
1602
|
-
return localSelectedClient.value?.lang;
|
|
1603
|
-
});
|
|
1604
|
-
/** Determine the language for webhook content based on MIME type */
|
|
1605
|
-
const webhookLanguage = computed(() => {
|
|
1606
|
-
if (!webhookHar.value?.postData) return "json";
|
|
1607
|
-
const contentType = webhookHar.value.postData.mimeType;
|
|
1608
|
-
if (contentType?.includes("json")) return "json";
|
|
1609
|
-
if (contentType?.includes("xml")) return "xml";
|
|
1610
|
-
if (contentType?.includes("yaml") || contentType?.includes("yml")) return "yaml";
|
|
1611
|
-
if (contentType?.includes("text/plain")) return "text";
|
|
1612
|
-
return "json";
|
|
1613
|
-
});
|
|
1614
|
-
/** Block secrets from being shown in the code block */
|
|
1615
|
-
const secretCredentials = computed(() => getSecrets(__props.securitySchemes));
|
|
1616
|
-
/** Grab the ref to freeze the ui as the clients change so there's no jump as the size of the dom changes */
|
|
1617
|
-
const elem = ref(null);
|
|
1618
|
-
/** Set custom example, or update the selected HTTP client globally */
|
|
1619
|
-
const selectClient = (option) => {
|
|
1620
|
-
if (elem.value) {
|
|
1621
|
-
const unfreeze = freezeElement(elem.value.$el);
|
|
1622
|
-
setTimeout(() => {
|
|
1623
|
-
unfreeze();
|
|
1624
|
-
}, 300);
|
|
1625
|
-
}
|
|
1626
|
-
localSelectedClient.value = option;
|
|
1627
|
-
if (option && !option.id.startsWith("custom")) __props.eventBus.emit("workspace:update:selected-client", option.id);
|
|
1628
|
-
};
|
|
1629
|
-
const VIRTUALIZATION_THRESHOLD = 2e4;
|
|
1630
|
-
const shouldVirtualize = computed(() => (generatedCode.value.length ?? 0) > VIRTUALIZATION_THRESHOLD);
|
|
1631
|
-
const id = useId();
|
|
1632
|
-
return (_ctx, _cache) => {
|
|
1633
|
-
return generatedCode.value ? (openBlock(), createBlock(unref(ScalarCard), {
|
|
1634
|
-
key: 0,
|
|
1635
|
-
ref_key: "elem",
|
|
1636
|
-
ref: elem,
|
|
1637
|
-
class: "request-card dark-mode"
|
|
1638
|
-
}, {
|
|
1639
|
-
default: withCtx(() => [
|
|
1640
|
-
createVNode(unref(ScalarCardHeader), { class: "pr-2.5" }, createSlots({
|
|
1641
|
-
default: withCtx(() => [
|
|
1642
|
-
_cache[2] || (_cache[2] = createElementVNode("span", { class: "sr-only" }, "Request Example for", -1)),
|
|
1643
|
-
createVNode(HttpMethod_default, {
|
|
1644
|
-
as: "span",
|
|
1645
|
-
class: "request-method",
|
|
1646
|
-
method: __props.method
|
|
1647
|
-
}, null, 8, ["method"]),
|
|
1648
|
-
__props.generateLabel ? (openBlock(), createElementBlock("span", {
|
|
1649
|
-
key: 0,
|
|
1650
|
-
innerHTML: __props.generateLabel()
|
|
1651
|
-
}, null, 8, _hoisted_1)) : createCommentVNode("", true),
|
|
1652
|
-
renderSlot(_ctx.$slots, "header", {}, void 0, true)
|
|
1653
|
-
]),
|
|
1654
|
-
_: 2
|
|
1655
|
-
}, [!__props.isWebhook && clients.value.length ? {
|
|
1656
|
-
name: "actions",
|
|
1657
|
-
fn: withCtx(() => [createVNode(unref(ScalarCombobox), {
|
|
1658
|
-
class: "max-h-80",
|
|
1659
|
-
modelValue: localSelectedClient.value,
|
|
1660
|
-
options: clients.value,
|
|
1661
|
-
placement: "bottom-end",
|
|
1662
|
-
teleport: "",
|
|
1663
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectClient($event))
|
|
1664
|
-
}, {
|
|
1665
|
-
default: withCtx(() => [createVNode(unref(ScalarButton), {
|
|
1666
|
-
class: "text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-0.5 py-0 text-base font-normal",
|
|
1667
|
-
"data-testid": "client-picker",
|
|
1668
|
-
variant: "ghost"
|
|
1669
|
-
}, {
|
|
1670
|
-
default: withCtx(() => [createTextVNode(toDisplayString(localSelectedClient.value?.title) + " ", 1), createVNode(unref(ScalarIconCaretDown), {
|
|
1671
|
-
class: "ui-open:rotate-180 mt-0.25 size-3 transition-transform duration-100",
|
|
1672
|
-
weight: "bold"
|
|
1673
|
-
})]),
|
|
1674
|
-
_: 1
|
|
1675
|
-
})]),
|
|
1676
|
-
_: 1
|
|
1677
|
-
}, 8, ["modelValue", "options"])]),
|
|
1678
|
-
key: "0"
|
|
1679
|
-
} : void 0]), 1024),
|
|
1680
|
-
createVNode(unref(ScalarCardSection), { class: "request-editor-section custom-scroll p-0" }, {
|
|
1681
|
-
default: withCtx(() => [createElementVNode("div", {
|
|
1682
|
-
id: `${unref(id)}-example`,
|
|
1683
|
-
class: "code-snippet"
|
|
1684
|
-
}, [!shouldVirtualize.value ? (openBlock(), createBlock(unref(ScalarCodeBlock), {
|
|
1685
|
-
key: 0,
|
|
1686
|
-
class: "bg-b-2 h-full",
|
|
1687
|
-
content: generatedCode.value,
|
|
1688
|
-
hideCredentials: secretCredentials.value,
|
|
1689
|
-
lang: codeBlockLanguage.value,
|
|
1690
|
-
lineNumbers: ""
|
|
1691
|
-
}, null, 8, [
|
|
1692
|
-
"content",
|
|
1693
|
-
"hideCredentials",
|
|
1694
|
-
"lang"
|
|
1695
|
-
])) : (openBlock(), createBlock(unref(ScalarVirtualText), {
|
|
1696
|
-
key: 1,
|
|
1697
|
-
containerClass: "custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen",
|
|
1698
|
-
contentClass: "language-plaintext whitespace-pre font-code text-base",
|
|
1699
|
-
lineHeight: 20,
|
|
1700
|
-
text: generatedCode.value
|
|
1701
|
-
}, null, 8, ["text"]))], 8, _hoisted_2)]),
|
|
1702
|
-
_: 1
|
|
1703
|
-
}),
|
|
1704
|
-
Object.keys(requestBodyExamples.value).length > 1 || _ctx.$slots.footer ? (openBlock(), createBlock(unref(ScalarCardFooter), {
|
|
1705
|
-
key: 0,
|
|
1706
|
-
class: "request-card-footer bg-b-3"
|
|
1707
|
-
}, {
|
|
1708
|
-
default: withCtx(() => [Object.keys(requestBodyExamples.value).length > 1 ? (openBlock(), createElementBlock("div", _hoisted_3, [Object.keys(requestBodyExamples.value).length ? (openBlock(), createBlock(ExamplePicker_default, {
|
|
1709
|
-
key: 0,
|
|
1710
|
-
modelValue: selectedExampleKey.value,
|
|
1711
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selectedExampleKey.value = $event),
|
|
1712
|
-
examples: requestBodyExamples.value
|
|
1713
|
-
}, null, 8, ["modelValue", "examples"])) : createCommentVNode("", true)])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "footer", { exampleName: selectedExampleKey.value }, void 0, true)]),
|
|
1714
|
-
_: 3
|
|
1715
|
-
})) : createCommentVNode("", true)
|
|
1716
|
-
]),
|
|
1717
|
-
_: 3
|
|
1718
|
-
}, 512)) : __props.fallback ? (openBlock(), createBlock(unref(ScalarCard), {
|
|
1719
|
-
key: 1,
|
|
1720
|
-
class: "request-card dark-mode"
|
|
1721
|
-
}, {
|
|
1722
|
-
default: withCtx(() => [createVNode(unref(ScalarCardSection), { class: "request-card-simple" }, {
|
|
1723
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_4, [createVNode(HttpMethod_default, {
|
|
1724
|
-
as: "span",
|
|
1725
|
-
class: "request-method",
|
|
1726
|
-
method: __props.method
|
|
1727
|
-
}, null, 8, ["method"]), renderSlot(_ctx.$slots, "header", {}, void 0, true)]), renderSlot(_ctx.$slots, "footer", { exampleName: selectedExampleKey.value }, void 0, true)]),
|
|
1728
|
-
_: 3
|
|
1729
|
-
})]),
|
|
1730
|
-
_: 3
|
|
1731
|
-
})) : createCommentVNode("", true);
|
|
1732
|
-
};
|
|
1733
|
-
}
|
|
1734
|
-
}), [["__scopeId", "data-v-cbc307e3"]]);
|
|
1735
|
-
//#endregion
|
|
1736
|
-
export { getDefaultHeaders as C, getResolvedRefDeep as E, getExampleFromSchema as S, getExample as T, serializeSimpleStyle as _, getClients as a, deSerializeParameter as b, findClient as c, ExamplePicker_default as d, serializeContentValue as f, serializePipeDelimitedStyle as g, serializeFormStyleForCookies as h, getCustomCodeSamples as i, isClient as l, serializeFormStyle as m, generateCodeSnippet as n, generateClientOptions as o, serializeDeepObjectStyle as p, getSecrets as r, DEFAULT_CLIENT as s, OperationCodeSample_default as t, HttpMethod_default as u, serializeSpaceDelimitedStyle as v, APP_VERSION as w, filterGlobalCookie as x, isParamDisabled as y };
|
|
1737
|
-
|
|
1738
|
-
//# sourceMappingURL=operation-code-sample-DOzAPxLQ.js.map
|