@scalar/api-client 1.3.4 → 1.3.5
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 +32 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/assets/computer.ascii.js +34 -0
- package/dist/clientBus.js +5 -0
- package/dist/components/ApiClient/AddressBar.vue.d.ts +3 -3
- package/dist/components/ApiClient/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/AddressBar.vue.js +8 -0
- package/dist/components/ApiClient/AddressBar.vue2.js +158 -0
- package/dist/components/ApiClient/AddressBar.vue3.js +4 -0
- package/dist/components/ApiClient/AddressBar.vue4.js +4 -0
- package/dist/components/ApiClient/ApiClient.vue.d.ts +11 -11
- package/dist/components/ApiClient/ApiClient.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/ApiClient.vue.js +124 -0
- package/dist/components/ApiClient/ApiClient.vue2.js +4 -0
- package/dist/components/ApiClient/ApiClient.vue3.js +5 -0
- package/dist/components/ApiClient/Request/Request.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/Request.vue.js +79 -0
- package/dist/components/ApiClient/Request/Request.vue2.js +4 -0
- package/dist/components/ApiClient/Request/Request.vue3.js +5 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardForm.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardForm.vue.js +13 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardForm.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue2.js +18 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormGroup.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormGroup.vue.js +13 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormGroup.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormRows.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormRows.vue.js +13 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormRows.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue.d.ts +8 -8
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue2.js +37 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue2.js +86 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue2.js +357 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue2.js +96 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue2.js +64 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/index.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestBody.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestBody.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestBody.vue.js +39 -0
- package/dist/components/ApiClient/Request/RequestBody.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestCookies.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestCookies.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestCookies.vue.js +74 -0
- package/dist/components/ApiClient/Request/RequestCookies.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestCookies.vue3.js +5 -0
- package/dist/components/ApiClient/Request/RequestHeaders.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestHeaders.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestHeaders.vue.js +74 -0
- package/dist/components/ApiClient/Request/RequestHeaders.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestQuery.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestQuery.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestQuery.vue.js +75 -0
- package/dist/components/ApiClient/Request/RequestQuery.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestVariables.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestVariables.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestVariables.vue.js +69 -0
- package/dist/components/ApiClient/Request/RequestVariables.vue2.js +4 -0
- package/dist/components/ApiClient/Request/index.d.ts +1 -1
- package/dist/components/ApiClient/RequestHistory.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/RequestHistory.vue.js +27 -0
- package/dist/components/ApiClient/RequestHistory.vue2.js +4 -0
- package/dist/components/ApiClient/RequestHistory.vue3.js +5 -0
- package/dist/components/ApiClient/RequestHistoryItem.vue.d.ts +3 -3
- package/dist/components/ApiClient/RequestHistoryItem.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/RequestHistoryItem.vue.js +7 -0
- package/dist/components/ApiClient/RequestHistoryItem.vue2.js +49 -0
- package/dist/components/ApiClient/RequestHistoryItem.vue3.js +4 -0
- package/dist/components/ApiClient/RequestMethodSelect.vue.d.ts +11 -11
- package/dist/components/ApiClient/RequestMethodSelect.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/RequestMethodSelect.vue.js +7 -0
- package/dist/components/ApiClient/RequestMethodSelect.vue2.js +42 -0
- package/dist/components/ApiClient/RequestMethodSelect.vue3.js +4 -0
- package/dist/components/ApiClient/Response/Response.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Response/Response.vue.js +65 -0
- package/dist/components/ApiClient/Response/Response.vue2.js +4 -0
- package/dist/components/ApiClient/Response/Response.vue3.js +5 -0
- package/dist/components/ApiClient/Response/ResponseBody.vue.d.ts +3 -3
- package/dist/components/ApiClient/Response/ResponseBody.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Response/ResponseBody.vue.js +54 -0
- package/dist/components/ApiClient/Response/ResponseBody.vue2.js +4 -0
- package/dist/components/ApiClient/Response/ResponseHeaders.vue.d.ts +3 -3
- package/dist/components/ApiClient/Response/ResponseHeaders.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Response/ResponseHeaders.vue.js +76 -0
- package/dist/components/ApiClient/Response/ResponseHeaders.vue2.js +4 -0
- package/dist/components/ApiClient/Response/ResponseMetaInformation.vue.d.ts +3 -3
- package/dist/components/ApiClient/Response/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Response/ResponseMetaInformation.vue.js +56 -0
- package/dist/components/ApiClient/Response/ResponseMetaInformation.vue2.js +4 -0
- package/dist/components/ApiClient/Response/index.d.ts +1 -1
- package/dist/components/ApiClient/index.d.ts +1 -1
- package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/CollapsibleSection/CollapsibleSection.vue.d.ts +11 -11
- package/dist/components/CollapsibleSection/CollapsibleSection.vue.d.ts.map +1 -1
- package/dist/components/CollapsibleSection/CollapsibleSection.vue.js +76 -0
- package/dist/components/CollapsibleSection/CollapsibleSection.vue2.js +4 -0
- package/dist/components/CollapsibleSection/CollapsibleSection.vue3.js +5 -0
- package/dist/components/CollapsibleSection/index.d.ts +1 -1
- package/dist/components/Grid/Grid.vue.d.ts +3 -3
- package/dist/components/Grid/Grid.vue.d.ts.map +1 -1
- package/dist/components/Grid/Grid.vue.js +7 -0
- package/dist/components/Grid/Grid.vue2.js +77 -0
- package/dist/components/Grid/Grid.vue3.js +4 -0
- package/dist/components/Grid/GridHeader.vue.d.ts +3 -3
- package/dist/components/Grid/GridHeader.vue.d.ts.map +1 -1
- package/dist/components/Grid/GridHeader.vue.js +7 -0
- package/dist/components/Grid/GridHeader.vue2.js +46 -0
- package/dist/components/Grid/GridHeader.vue3.js +4 -0
- package/dist/components/Grid/GridRow.vue.d.ts +8 -8
- package/dist/components/Grid/GridRow.vue.d.ts.map +1 -1
- package/dist/components/Grid/GridRow.vue.js +7 -0
- package/dist/components/Grid/GridRow.vue2.js +29 -0
- package/dist/components/Grid/GridRow.vue3.js +4 -0
- package/dist/components/Grid/GridRowEditable.vue.d.ts +3 -3
- package/dist/components/Grid/GridRowEditable.vue.d.ts.map +1 -1
- package/dist/components/Grid/GridRowEditable.vue.js +7 -0
- package/dist/components/Grid/GridRowEditable.vue2.js +105 -0
- package/dist/components/Grid/GridRowEditable.vue3.js +4 -0
- package/dist/components/Grid/GridRowGenerated.vue.d.ts +4 -4
- package/dist/components/Grid/GridRowGenerated.vue.d.ts.map +1 -1
- package/dist/components/Grid/GridRowGenerated.vue.js +7 -0
- package/dist/components/Grid/GridRowGenerated.vue2.js +37 -0
- package/dist/components/Grid/GridRowGenerated.vue3.js +4 -0
- package/dist/components/Grid/SimpleGrid.vue.d.ts +3 -3
- package/dist/components/Grid/SimpleGrid.vue.d.ts.map +1 -1
- package/dist/components/Grid/SimpleGrid.vue.js +7 -0
- package/dist/components/Grid/SimpleGrid.vue2.js +28 -0
- package/dist/components/Grid/SimpleGrid.vue3.js +4 -0
- package/dist/components/Grid/index.d.ts +2 -2
- package/dist/components/HelpfulLink.vue.d.ts +8 -8
- package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
- package/dist/components/HelpfulLink.vue.js +7 -0
- package/dist/components/HelpfulLink.vue2.js +19 -0
- package/dist/components/HelpfulLink.vue3.js +4 -0
- package/dist/components/HttpMethod.vue.d.ts +9 -8
- package/dist/components/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod.vue.js +27 -0
- package/dist/components/HttpMethod.vue2.js +4 -0
- package/dist/components/ScalarAsciiArt.vue.d.ts +3 -3
- package/dist/components/ScalarAsciiArt.vue.d.ts.map +1 -1
- package/dist/components/ScalarAsciiArt.vue.js +7 -0
- package/dist/components/ScalarAsciiArt.vue2.js +23 -0
- package/dist/components/ScalarAsciiArt.vue3.js +4 -0
- package/dist/components/SimpleTable/SimpleCell.vue.d.ts +13 -12
- package/dist/components/SimpleTable/SimpleCell.vue.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleCell.vue.js +7 -0
- package/dist/components/SimpleTable/SimpleCell.vue2.js +28 -0
- package/dist/components/SimpleTable/SimpleCell.vue3.js +4 -0
- package/dist/components/SimpleTable/SimpleHeader.vue.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleHeader.vue.js +7 -0
- package/dist/components/SimpleTable/SimpleHeader.vue2.js +19 -0
- package/dist/components/SimpleTable/SimpleHeader.vue3.js +4 -0
- package/dist/components/SimpleTable/SimpleRow.vue.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleRow.vue.js +13 -0
- package/dist/components/SimpleTable/SimpleRow.vue2.js +4 -0
- package/dist/components/SimpleTable/SimpleTable.vue.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleTable.vue.js +15 -0
- package/dist/components/SimpleTable/SimpleTable.vue2.js +4 -0
- package/dist/components/SimpleTable/index.d.ts +4 -4
- package/dist/fixtures/httpHeaders.js +529 -0
- package/dist/fixtures/httpRequestMethods.js +41 -0
- package/dist/fixtures/index.d.ts +2 -2
- package/dist/helpers/concatenateUrlAndPath.js +9 -0
- package/dist/helpers/createPlaceholderRequest.js +14 -0
- package/dist/helpers/encodeStringAsBase64.js +6 -0
- package/dist/helpers/findVariables.js +7 -0
- package/dist/helpers/getRequestFromAuthentication.js +85 -0
- package/dist/helpers/getUrlFromServerState.js +12 -0
- package/dist/helpers/humanDiff.js +21 -0
- package/dist/helpers/index.d.ts +16 -16
- package/dist/helpers/mapFromArray.js +9 -0
- package/dist/helpers/normalizeHeaders.js +6 -0
- package/dist/helpers/normalizePath.js +9 -0
- package/dist/helpers/normalizeRequestMethod.d.ts +2 -1
- package/dist/helpers/normalizeRequestMethod.d.ts.map +1 -1
- package/dist/helpers/normalizeRequestMethod.js +14 -0
- package/dist/helpers/normalizeUrl.js +13 -0
- package/dist/helpers/prepareClientRequestConfig.d.ts +0 -7
- package/dist/helpers/prepareClientRequestConfig.d.ts.map +1 -1
- package/dist/helpers/prepareClientRequestConfig.js +41 -0
- package/dist/helpers/redirectToProxy.js +7 -0
- package/dist/helpers/replaceVariables.js +10 -0
- package/dist/helpers/sendRequest.js +111 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +83 -33496
- package/dist/stores/index.d.ts +5 -5
- package/dist/stores/useApiClientStore.js +32 -0
- package/dist/stores/useAuthenticationStore.d.ts +1 -1
- package/dist/stores/useAuthenticationStore.d.ts.map +1 -1
- package/dist/stores/useAuthenticationStore.js +36 -0
- package/dist/stores/useOpenApiStore.d.ts +1 -1
- package/dist/stores/useOpenApiStore.js +24 -0
- package/dist/stores/useRequestStore.js +29 -0
- package/dist/stores/useServerStore.js +18 -0
- package/dist/style.css +1 -2567
- package/package.json +19 -18
- package/dist/Add-yNxGpRcH-B1LyqGlJ.js +0 -21
- package/dist/ArrowLeft-D7tW1xQo-BY1SMb43.js +0 -20
- package/dist/ArrowRight-DmO-sdb2-DYqgcTpu.js +0 -20
- package/dist/Background-CU9VIbfN-DvxzmwCx.js +0 -17
- package/dist/Brackets-CI207-BL-BBaUg7lM.js +0 -21
- package/dist/Branch-CXwj8YuG-IxKqRWkx.js +0 -34
- package/dist/CallToAction-XLYRSI1h-DkdGfSAS.js +0 -20
- package/dist/Checkmark-DhbrPM0P-Bnd3e6-4.js +0 -21
- package/dist/ChevronDown-Co7EAKAv-DHNwXUbS.js +0 -21
- package/dist/ChevronLeft-DYt0idAu-DAzCtmws.js +0 -21
- package/dist/ChevronRight-ylxToVWl-CDFDuBE1.js +0 -21
- package/dist/ChevronUp-xAnukIfj-CuKFLVD3.js +0 -21
- package/dist/Clipboard-CU_KxGEv-DWrQtWVi.js +0 -16
- package/dist/Close-xHiYwS8Q-CWI8mlaM.js +0 -21
- package/dist/CodeFolder-Cv_igzJE-CoWfaY0Z.js +0 -27
- package/dist/Cookie-CEHvXpqB-D960ImBy.js +0 -37
- package/dist/DarkMode-BMR457PH-CVcoMGeO.js +0 -16
- package/dist/Delete-BCZmxrDD-BHoCf_u4.js +0 -21
- package/dist/Discord-BHYOFBB2-NYBGYy-_.js +0 -16
- package/dist/DocsPage-Dwx7ZMU9-D3s0nKun.js +0 -27
- package/dist/Duplicate-DRWEv4R_-5xIOj7QF.js +0 -17
- package/dist/Edit-Br04RNYb-BhCyac4t.js +0 -19
- package/dist/Ellipses-Bo_X36Hx-CsJmKvlE.js +0 -16
- package/dist/Error-C5LiISnw-BIMzByff.js +0 -16
- package/dist/ExternalLink-DK8L-EH7-ANJEzoHO.js +0 -21
- package/dist/FilterList-CS8Il7NE-CagRN2wd.js +0 -21
- package/dist/Folder-CTvnVSEo-B2z_4abD.js +0 -16
- package/dist/GitHub-NdE6Zs9k-BAGzgXH_.js +0 -16
- package/dist/Hide-BgcCtErz-CAC_2jsk.js +0 -27
- package/dist/History-D9nmhNIn-BU9mR55a.js +0 -27
- package/dist/JsonObject-hGdHUQ4M-Cm1hXgAn.js +0 -21
- package/dist/Key-CWXJqX28-DdNUhB11.js +0 -21
- package/dist/Leave-K1J3uwoG-WgTmlwgs.js +0 -21
- package/dist/LightDarkModeToggle-De3vO47x-D3WCuqcH.js +0 -16
- package/dist/LightMode-BeoMphBY-CDedz2JM.js +0 -16
- package/dist/Link-Bzuc__Nc-Bvtx0HZG.js +0 -21
- package/dist/Lock-xhiH1mKz-Rrlr3fGv.js +0 -21
- package/dist/Logo-DwEDtgj--pmO6SPQX.js +0 -19
- package/dist/LogoAPI-CohCfL3L-CzbaXJLs.js +0 -19
- package/dist/LogoClient-Bq5O2QL2-Bw2epmD5.js +0 -16
- package/dist/LogoMarket-DwlApcab-_INRDSLs.js +0 -16
- package/dist/LogoSwagger-CH60H5qW-DFEpFXIU.js +0 -16
- package/dist/Magic-Dsi9_bEc-BYN42_eH.js +0 -21
- package/dist/Menu-CFK5cOsm-CqE9Tsgr.js +0 -21
- package/dist/Page-DA7CO5gc-DfccxJJv.js +0 -17
- package/dist/PaperAirplane-BC-4mGEB-BrV5fX8s.js +0 -21
- package/dist/Payment-hzcXP1Xb-B2G1p4-i.js +0 -21
- package/dist/Play-Cd4-o7Ji-xTTrC7nd.js +0 -16
- package/dist/Refresh-BHRzzQ8P-DMGXg62S.js +0 -27
- package/dist/Response-DsTlT4S--CGVlb2Cj.js +0 -20
- package/dist/Search-DqtlswRG-D-hprEk0.js +0 -19
- package/dist/Show-CbiiMLUa-G7jnye-t.js +0 -27
- package/dist/SideBarClosed-K53-CtXh-DmurFyoL.js +0 -17
- package/dist/SideBarOpen-C7UgT82P-BG6NE13Z.js +0 -21
- package/dist/Sort-CaVMT7jM-CseseOA9.js +0 -16
- package/dist/Terminal-DJ7x2McL-BUB3Qs0m.js +0 -27
- package/dist/ThumbsDown-BMgnsASL-B2YFxB8i.js +0 -21
- package/dist/ThumbsUp-C1j6zY2j-DKqh3z1D.js +0 -21
- package/dist/Trash-BpA3zWPD-BAjuQdys.js +0 -21
- package/dist/Unlock-HVYHMLxl-D89vmw_N.js +0 -16
- package/dist/Upload-D_pwqBDY-Bg4YHBfw.js +0 -16
- package/dist/User-BLGkPc5I-XzPjc0Gv.js +0 -16
- package/dist/prism-autoloader-Dlh8Vzlw-BR-Zk31i.js +0 -370
- package/dist/programming-framework-angular-DD4Vjgbk-Bzc9D9am.js +0 -16
- package/dist/programming-framework-astro-CLfrRt19-CfPlyy6T.js +0 -16
- package/dist/programming-framework-laravel-kAy2wVLy-Cty_4oXq.js +0 -21
- package/dist/programming-framework-nextdotjs-BKdd_DY_-DUTv-t1Q.js +0 -16
- package/dist/programming-framework-react-PDgmtZuN-DdUogL85.js +0 -16
- package/dist/programming-framework-vuedotjs-Cim7D5tw-COH3lflr.js +0 -17
- package/dist/programming-language-c-hPGu2Zvg-QG1pSdJG.js +0 -16
- package/dist/programming-language-clojure-uqYXn7U6-UAUP9oZz.js +0 -16
- package/dist/programming-language-csharp-CGxYkVA6-DkAhKOzF.js +0 -16
- package/dist/programming-language-css3-Dpp4Cr6b-Bf5XF7-p.js +0 -16
- package/dist/programming-language-go-CuKo8iD9-Dkewryvm.js +0 -16
- package/dist/programming-language-html5-DlqJK4EL-Bl9dTA-D.js +0 -16
- package/dist/programming-language-http-f3NXC-Ae-BY_awyxD.js +0 -16
- package/dist/programming-language-java-BBodetdf-BHELDLTj.js +0 -18
- package/dist/programming-language-javascript-VxLvi1QG-DFjYF_MP.js +0 -16
- package/dist/programming-language-json-Dq_K-q5f-BlovheYp.js +0 -17
- package/dist/programming-language-kotlin-eTASnmL3-D8AoUcB1.js +0 -16
- package/dist/programming-language-node-oucaVOgY-CzP8mlvs.js +0 -17
- package/dist/programming-language-objc-CPgQxmNi-DjsFgTok.js +0 -17
- package/dist/programming-language-ocaml-Q1-Jv5Q5-D2vDLKwp.js +0 -16
- package/dist/programming-language-php-GY38f8r4-DQ_8EMFH.js +0 -16
- package/dist/programming-language-powershell-xLOxAYP_-DAvJS1A9.js +0 -20
- package/dist/programming-language-python-Ct-_kNjo-BCrlyfv0.js +0 -16
- package/dist/programming-language-r-Ch3T1qiC-I_IE4uwz.js +0 -20
- package/dist/programming-language-ruby-DhdM4d7g-Dd3La6Kn.js +0 -16
- package/dist/programming-language-scala-BVg0dToJ-Bz_n-CNw.js +0 -16
- package/dist/programming-language-shell-uj1zoCVW-Bg0d3E28.js +0 -16
- package/dist/programming-language-swift-Dn72xPjg-BUvu5_SV.js +0 -16
- package/dist/programming-language-typescript-CdF-HuRi-CaDO02MW.js +0 -16
- package/dist/programming-script-code-CUHv6qR8-CzD7HjI2.js +0 -21
- package/dist/programming-tool-git-C-BMJCAo-BFJIU2--.js +0 -16
- package/dist/programming-tool-tailwindcss-xjXi0E6g-ky2wbsII.js +0 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardFormGroup.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/CardFormGroup.vue
|
|
1
|
+
{"version":3,"file":"CardFormGroup.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/CardFormGroup.vue"],"names":[],"mappings":";;;AA0DA,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { openBlock as e, createElementBlock as o, renderSlot as t } from "vue";
|
|
2
|
+
import "./CardFormGroup.vue2.js";
|
|
3
|
+
import c from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const d = {}, n = { class: "card-form-group" };
|
|
5
|
+
function s(r, a) {
|
|
6
|
+
return e(), o("div", n, [
|
|
7
|
+
t(r.$slots, "default", {}, void 0, !0)
|
|
8
|
+
]);
|
|
9
|
+
}
|
|
10
|
+
const p = /* @__PURE__ */ c(d, [["render", s], ["__scopeId", "data-v-d894ccf7"]]);
|
|
11
|
+
export {
|
|
12
|
+
p as default
|
|
13
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardFormRows.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/CardFormRows.vue
|
|
1
|
+
{"version":3,"file":"CardFormRows.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/CardFormRows.vue"],"names":[],"mappings":";;;AAgEA,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { openBlock as o, createElementBlock as r, renderSlot as t } from "vue";
|
|
2
|
+
import "./CardFormRows.vue2.js";
|
|
3
|
+
import c from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const s = {}, d = { class: "card-form-rows" };
|
|
5
|
+
function n(e, a) {
|
|
6
|
+
return o(), r("div", d, [
|
|
7
|
+
t(e.$slots, "default", {}, void 0, !0)
|
|
8
|
+
]);
|
|
9
|
+
}
|
|
10
|
+
const i = /* @__PURE__ */ c(s, [["render", n], ["__scopeId", "data-v-25140d72"]]);
|
|
11
|
+
export {
|
|
12
|
+
i as default
|
|
13
|
+
};
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
2
|
id: string;
|
|
3
3
|
type?: string | undefined;
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
5
5
|
id: string;
|
|
6
6
|
type?: string | undefined;
|
|
7
7
|
}>>>, {}, {}>, {
|
|
8
8
|
default?(_: {}): any;
|
|
9
9
|
}>;
|
|
10
10
|
export default _default;
|
|
11
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
11
16
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
-
type
|
|
17
|
+
type __VLS_TypePropsToOption<T> = {
|
|
13
18
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
19
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
20
|
} : {
|
|
@@ -17,9 +22,4 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
17
22
|
required: true;
|
|
18
23
|
};
|
|
19
24
|
};
|
|
20
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
-
new (): {
|
|
22
|
-
$slots: S;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
25
|
//# sourceMappingURL=CardFormTextInput.vue.d.ts.map
|
package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardFormTextInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue
|
|
1
|
+
{"version":3,"file":"CardFormTextInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue"],"names":[],"mappings":";;;;;;;;;AAwNA,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as p, ref as d, computed as i, openBlock as s, createElementBlock as u, createElementVNode as a, renderSlot as c, mergeProps as m, createBlock as f, unref as v, createCommentVNode as k } from "vue";
|
|
2
|
+
import { ScalarIconButton as w } from "@scalar/components";
|
|
3
|
+
const y = { class: "card-form-input" }, h = ["for"], _ = ["id", "type"], b = /* @__PURE__ */ p({
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
__name: "CardFormTextInput",
|
|
6
|
+
props: {
|
|
7
|
+
id: {},
|
|
8
|
+
type: {}
|
|
9
|
+
},
|
|
10
|
+
setup(l) {
|
|
11
|
+
const o = l, e = d(!0), n = i(
|
|
12
|
+
() => o.type === "password" ? e.value ? "password" : "text" : o.type ?? "text"
|
|
13
|
+
);
|
|
14
|
+
return (t, r) => (s(), u("div", y, [
|
|
15
|
+
a("label", { for: t.id }, [
|
|
16
|
+
c(t.$slots, "default", {}, void 0, !0)
|
|
17
|
+
], 8, h),
|
|
18
|
+
a("input", m(t.$attrs, {
|
|
19
|
+
id: t.id,
|
|
20
|
+
autocomplete: "off",
|
|
21
|
+
"data-1p-ignore": "",
|
|
22
|
+
spellcheck: "false",
|
|
23
|
+
type: n.value
|
|
24
|
+
}), null, 16, _),
|
|
25
|
+
t.type === "password" ? (s(), f(v(w), {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: "password-mask",
|
|
28
|
+
icon: e.value ? "Show" : "Hide",
|
|
29
|
+
label: e.value ? "Show Password" : "Hide Password",
|
|
30
|
+
onClick: r[0] || (r[0] = (B) => e.value = !e.value)
|
|
31
|
+
}, null, 8, ["icon", "label"])) : k("", !0)
|
|
32
|
+
]));
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
b as default
|
|
37
|
+
};
|
package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
2
|
proxy?: string | undefined;
|
|
3
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<
|
|
3
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
4
4
|
proxy?: string | undefined;
|
|
5
5
|
}>>>, {}, {}>;
|
|
6
6
|
export default _default;
|
|
7
7
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
-
type
|
|
8
|
+
type __VLS_TypePropsToOption<T> = {
|
|
9
9
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
10
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
11
|
} : {
|
package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestAuthentication.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue
|
|
1
|
+
{"version":3,"file":"RequestAuthentication.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue"],"names":[],"mappings":";;;;;AAgVA,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { defineComponent as y, ref as f, openBlock as a, createElementBlock as c, createVNode as s, unref as t, withCtx as p, createCommentVNode as d, createElementVNode as u } from "vue";
|
|
2
|
+
import { clickGeneratedParameter as v } from "../../../../clientBus.js";
|
|
3
|
+
import S from "./SecurityScheme.vue.js";
|
|
4
|
+
import k from "./SecuritySchemeSelector.vue.js";
|
|
5
|
+
import _ from "../../../CollapsibleSection/CollapsibleSection.vue.js";
|
|
6
|
+
import "../../../CollapsibleSection/CollapsibleSection.vue2.js";
|
|
7
|
+
import { useAuthenticationStore as B } from "../../../../stores/useAuthenticationStore.js";
|
|
8
|
+
const A = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "preferred-security-scheme"
|
|
11
|
+
}, x = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "security-scheme-empty-state"
|
|
14
|
+
}, w = /* @__PURE__ */ y({
|
|
15
|
+
__name: "RequestAuthentication",
|
|
16
|
+
props: {
|
|
17
|
+
proxy: {}
|
|
18
|
+
},
|
|
19
|
+
setup(C) {
|
|
20
|
+
const n = f(null);
|
|
21
|
+
v.on(() => {
|
|
22
|
+
if (!n.value)
|
|
23
|
+
return;
|
|
24
|
+
n.value.scrollIntoView({
|
|
25
|
+
behavior: "smooth",
|
|
26
|
+
block: "center"
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
const { authentication: r, setAuthentication: h } = B(), o = (i) => {
|
|
30
|
+
h({
|
|
31
|
+
customSecurity: !0,
|
|
32
|
+
preferredSecurityScheme: i,
|
|
33
|
+
securitySchemes: {
|
|
34
|
+
apiKey: { type: "apiKey", name: "apiKey", in: "header" },
|
|
35
|
+
httpBasic: { type: "http", scheme: "basic" },
|
|
36
|
+
httpBearer: { type: "http", scheme: "bearer" }
|
|
37
|
+
// TODO oauth2
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
return (i, e) => (a(), c("div", {
|
|
42
|
+
ref_key: "requestAuthenticationRef",
|
|
43
|
+
ref: n
|
|
44
|
+
}, [
|
|
45
|
+
s(t(_), { title: "Authentication" }, {
|
|
46
|
+
options: p(() => [
|
|
47
|
+
s(k, {
|
|
48
|
+
value: t(r).securitySchemes
|
|
49
|
+
}, null, 8, ["value"])
|
|
50
|
+
]),
|
|
51
|
+
default: p(() => {
|
|
52
|
+
var l;
|
|
53
|
+
return [
|
|
54
|
+
t(r).preferredSecurityScheme ? (a(), c("div", A, [
|
|
55
|
+
s(S, {
|
|
56
|
+
proxy: i.proxy,
|
|
57
|
+
value: (l = t(r).securitySchemes) == null ? void 0 : l[t(r).preferredSecurityScheme]
|
|
58
|
+
}, null, 8, ["proxy", "value"])
|
|
59
|
+
])) : d("", !0),
|
|
60
|
+
t(r).securitySchemes ? d("", !0) : (a(), c("div", x, [
|
|
61
|
+
u("div", {
|
|
62
|
+
class: "scalar-api-client-add",
|
|
63
|
+
variant: "outlined",
|
|
64
|
+
onClick: e[0] || (e[0] = (m) => o("apiKey"))
|
|
65
|
+
}, " ApiKey "),
|
|
66
|
+
u("div", {
|
|
67
|
+
class: "scalar-api-client-add",
|
|
68
|
+
variant: "outlined",
|
|
69
|
+
onClick: e[1] || (e[1] = (m) => o("httpBasic"))
|
|
70
|
+
}, " Basic "),
|
|
71
|
+
u("div", {
|
|
72
|
+
class: "scalar-api-client-add",
|
|
73
|
+
variant: "outlined",
|
|
74
|
+
onClick: e[2] || (e[2] = (m) => o("httpBearer"))
|
|
75
|
+
}, " Bearer ")
|
|
76
|
+
]))
|
|
77
|
+
];
|
|
78
|
+
}),
|
|
79
|
+
_: 1
|
|
80
|
+
})
|
|
81
|
+
], 512));
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
export {
|
|
85
|
+
w as default
|
|
86
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from '@scalar/openapi-parser';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
3
|
value?: OpenAPIV3.SecuritySchemeObject | undefined;
|
|
4
4
|
proxy?: string | undefined;
|
|
5
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
6
6
|
value?: OpenAPIV3.SecuritySchemeObject | undefined;
|
|
7
7
|
proxy?: string | undefined;
|
|
8
8
|
}>>>, {}, {}>;
|
|
9
9
|
export default _default;
|
|
10
10
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
-
type
|
|
11
|
+
type __VLS_TypePropsToOption<T> = {
|
|
12
12
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
13
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
14
|
} : {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SecurityScheme.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue
|
|
1
|
+
{"version":3,"file":"SecurityScheme.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue"],"names":[],"mappings":"AA8bA,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,wBAAwB,CAAA;;;;;;;;AAiqBpE,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { defineComponent as L, computed as N, openBlock as p, createBlock as m, withCtx as s, unref as u, createTextVNode as d, toDisplayString as V, createElementBlock as y, Fragment as k, createVNode as c, createCommentVNode as f, createElementVNode as I } from "vue";
|
|
2
|
+
import { useToasts as D } from "@scalar/use-toasts";
|
|
3
|
+
import E from "./CardForm.vue.js";
|
|
4
|
+
import H from "./CardFormButton.vue.js";
|
|
5
|
+
import v from "./CardFormGroup.vue.js";
|
|
6
|
+
import g from "./CardFormRows.vue.js";
|
|
7
|
+
import w from "./CardFormTextInput.vue.js";
|
|
8
|
+
import P from "./SecuritySchemeScopes.vue.js";
|
|
9
|
+
import { getUrlFromServerState as G } from "../../../../helpers/getUrlFromServerState.js";
|
|
10
|
+
import { useServerStore as M } from "../../../../stores/useServerStore.js";
|
|
11
|
+
import { redirectToProxy as $ } from "../../../../helpers/redirectToProxy.js";
|
|
12
|
+
import { useAuthenticationStore as q } from "../../../../stores/useAuthenticationStore.js";
|
|
13
|
+
import { concatenateUrlAndPath as J } from "../../../../helpers/concatenateUrlAndPath.js";
|
|
14
|
+
const ne = /* @__PURE__ */ L({
|
|
15
|
+
__name: "SecurityScheme",
|
|
16
|
+
props: {
|
|
17
|
+
value: {},
|
|
18
|
+
proxy: {}
|
|
19
|
+
},
|
|
20
|
+
setup(Q) {
|
|
21
|
+
const { toast: C } = D(), { server: S } = M(), { authentication: t, setAuthentication: n } = q(), T = (e) => {
|
|
22
|
+
n({
|
|
23
|
+
apiKey: {
|
|
24
|
+
...t.apiKey,
|
|
25
|
+
token: e.target.value
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}, U = (e) => {
|
|
29
|
+
n({
|
|
30
|
+
http: {
|
|
31
|
+
...t.http,
|
|
32
|
+
basic: {
|
|
33
|
+
...t.http.basic,
|
|
34
|
+
username: e.target.value
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}, F = (e) => {
|
|
39
|
+
n({
|
|
40
|
+
http: {
|
|
41
|
+
...t.http,
|
|
42
|
+
basic: {
|
|
43
|
+
...t.http.basic,
|
|
44
|
+
password: e.target.value
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}, B = (e) => {
|
|
49
|
+
n({
|
|
50
|
+
http: {
|
|
51
|
+
...t.http,
|
|
52
|
+
bearer: {
|
|
53
|
+
...t.http.bearer,
|
|
54
|
+
token: e.target.value
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}, b = (e) => {
|
|
59
|
+
n({
|
|
60
|
+
oAuth2: {
|
|
61
|
+
...t.oAuth2,
|
|
62
|
+
clientId: e.target.value
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}, O = (e) => {
|
|
66
|
+
n({
|
|
67
|
+
oAuth2: {
|
|
68
|
+
...t.oAuth2,
|
|
69
|
+
username: e.target.value
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}, z = (e) => {
|
|
73
|
+
n({
|
|
74
|
+
oAuth2: {
|
|
75
|
+
...t.oAuth2,
|
|
76
|
+
password: e.target.value
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
function W(e) {
|
|
81
|
+
const a = t.oAuth2.scopes.join(" "), l = (Math.random() + 1).toString(36).substring(7), o = new URL(e.authorizationUrl);
|
|
82
|
+
return n({
|
|
83
|
+
oAuth2: { ...t.oAuth2, state: l }
|
|
84
|
+
}), o.searchParams.set("response_type", "token"), o.searchParams.set("client_id", t.oAuth2.clientId), o.searchParams.set("redirect_uri", window.location.href), o.searchParams.set("scope", a), o.searchParams.set("state", l), o.toString();
|
|
85
|
+
}
|
|
86
|
+
function j(e, a) {
|
|
87
|
+
if (typeof e != "string") {
|
|
88
|
+
console.log("tokenUrl is not a string");
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
const l = a != null && a.baseUrl && !e.startsWith("http") ? J(a == null ? void 0 : a.baseUrl, e) : e, o = new URL(l);
|
|
92
|
+
o.searchParams.set("grant_type", "password"), o.searchParams.set("username", t.oAuth2.username), o.searchParams.set("password", t.oAuth2.password), o.searchParams.set("client_id", t.oAuth2.clientId), o.searchParams.set("scope", t.oAuth2.scopes.join(" ")), fetch(
|
|
93
|
+
a != null && a.proxy ? $(a == null ? void 0 : a.proxy, o.toString()) : o.toString(),
|
|
94
|
+
{
|
|
95
|
+
method: "POST",
|
|
96
|
+
headers: {
|
|
97
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
).then((r) => {
|
|
101
|
+
if (!r.ok)
|
|
102
|
+
throw new Error(
|
|
103
|
+
"Failed to get an access token. Please check your credentials."
|
|
104
|
+
);
|
|
105
|
+
return r.json();
|
|
106
|
+
}).then((r) => {
|
|
107
|
+
n({
|
|
108
|
+
oAuth2: { ...t.oAuth2, accessToken: r.access_token }
|
|
109
|
+
});
|
|
110
|
+
}).catch((r) => {
|
|
111
|
+
C("Couldn’t retrieve the password grant token", "warn", {
|
|
112
|
+
description: "Open your browser console to get more information."
|
|
113
|
+
}), console.error("[authorizeWithPassword]", r);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
const A = N({
|
|
117
|
+
get: () => t.oAuth2.scopes,
|
|
118
|
+
set: (e) => n({ oAuth2: { ...t.oAuth2, scopes: e } })
|
|
119
|
+
}), K = (e) => {
|
|
120
|
+
const l = window.open(e, "openAuth2Window", "left=100,top=100,width=800,height=600");
|
|
121
|
+
if (l) {
|
|
122
|
+
const o = setInterval(function() {
|
|
123
|
+
var r;
|
|
124
|
+
try {
|
|
125
|
+
const h = new URLSearchParams(l.location.href).get("access_token");
|
|
126
|
+
if (l.closed || h) {
|
|
127
|
+
clearInterval(o);
|
|
128
|
+
const R = (r = l.location.href.match(/state=([^&]*)/)) == null ? void 0 : r[1];
|
|
129
|
+
h && t.oAuth2.state === R && n({
|
|
130
|
+
oAuth2: { ...t.oAuth2, accessToken: h }
|
|
131
|
+
}), l.close();
|
|
132
|
+
}
|
|
133
|
+
} catch {
|
|
134
|
+
}
|
|
135
|
+
}, 200);
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
return (e, a) => {
|
|
139
|
+
var l;
|
|
140
|
+
return e.value && ((l = e.value) != null && l.type) ? (p(), m(E, { key: 0 }, {
|
|
141
|
+
default: s(() => [
|
|
142
|
+
e.value.type === "apiKey" ? (p(), m(w, {
|
|
143
|
+
key: 0,
|
|
144
|
+
id: `security-scheme-${e.value.name}`,
|
|
145
|
+
placeholder: "Token",
|
|
146
|
+
type: "password",
|
|
147
|
+
value: u(t).apiKey.token,
|
|
148
|
+
onInput: T
|
|
149
|
+
}, {
|
|
150
|
+
default: s(() => [
|
|
151
|
+
d(V(e.value.in.charAt(0).toUpperCase() + e.value.in.slice(1)) + " API ", 1)
|
|
152
|
+
]),
|
|
153
|
+
_: 1
|
|
154
|
+
}, 8, ["id", "value"])) : e.value.type === "http" || e.value.type === "basic" ? (p(), y(k, { key: 1 }, [
|
|
155
|
+
e.value.type === "basic" || e.value.scheme === "basic" ? (p(), m(v, { key: 0 }, {
|
|
156
|
+
default: s(() => [
|
|
157
|
+
c(w, {
|
|
158
|
+
id: "http.basic.username",
|
|
159
|
+
placeholder: "Username",
|
|
160
|
+
value: u(t).http.basic.username,
|
|
161
|
+
onInput: U
|
|
162
|
+
}, {
|
|
163
|
+
default: s(() => [
|
|
164
|
+
d(" Username ")
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
}, 8, ["value"]),
|
|
168
|
+
c(w, {
|
|
169
|
+
id: "http.basic.password",
|
|
170
|
+
placeholder: "Password",
|
|
171
|
+
type: "password",
|
|
172
|
+
value: u(t).http.basic.password,
|
|
173
|
+
onInput: F
|
|
174
|
+
}, {
|
|
175
|
+
default: s(() => [
|
|
176
|
+
d(" Password ")
|
|
177
|
+
]),
|
|
178
|
+
_: 1
|
|
179
|
+
}, 8, ["value"])
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
})) : e.value.type === "http" && e.value.scheme === "bearer" ? (p(), m(w, {
|
|
183
|
+
key: 1,
|
|
184
|
+
id: "http.bearer.token",
|
|
185
|
+
placeholder: "Token",
|
|
186
|
+
type: "password",
|
|
187
|
+
value: u(t).http.bearer.token,
|
|
188
|
+
onInput: B
|
|
189
|
+
}, {
|
|
190
|
+
default: s(() => [
|
|
191
|
+
d(" Bearer Token ")
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
}, 8, ["value"])) : f("", !0)
|
|
195
|
+
], 64)) : e.value.type.toLowerCase() === "oauth2" && e.value.flows ? (p(), m(v, { key: 2 }, {
|
|
196
|
+
default: s(() => [
|
|
197
|
+
e.value.flows.implicit ? (p(), y(k, { key: 0 }, [
|
|
198
|
+
u(t).oAuth2.accessToken ? (p(), y(k, { key: 0 }, [
|
|
199
|
+
c(w, {
|
|
200
|
+
id: "oAuth2.accessToken",
|
|
201
|
+
placeholder: "xxxxx",
|
|
202
|
+
type: "password",
|
|
203
|
+
value: u(t).oAuth2.accessToken
|
|
204
|
+
}, {
|
|
205
|
+
default: s(() => [
|
|
206
|
+
d(" Access Token ")
|
|
207
|
+
]),
|
|
208
|
+
_: 1
|
|
209
|
+
}, 8, ["value"]),
|
|
210
|
+
c(H, {
|
|
211
|
+
onClick: a[0] || (a[0] = () => u(n)({
|
|
212
|
+
oAuth2: {
|
|
213
|
+
...u(t).oAuth2,
|
|
214
|
+
accessToken: "",
|
|
215
|
+
state: ""
|
|
216
|
+
}
|
|
217
|
+
}))
|
|
218
|
+
}, {
|
|
219
|
+
default: s(() => [
|
|
220
|
+
d(" Reset ")
|
|
221
|
+
]),
|
|
222
|
+
_: 1
|
|
223
|
+
})
|
|
224
|
+
], 64)) : f("", !0)
|
|
225
|
+
], 64)) : f("", !0),
|
|
226
|
+
e.value.flows.password ? (p(), m(g, { key: 1 }, {
|
|
227
|
+
default: s(() => [
|
|
228
|
+
c(v, null, {
|
|
229
|
+
default: s(() => [
|
|
230
|
+
c(w, {
|
|
231
|
+
id: "oAuth2.username",
|
|
232
|
+
placeholder: "Username",
|
|
233
|
+
value: u(t).oAuth2.username,
|
|
234
|
+
onInput: O
|
|
235
|
+
}, {
|
|
236
|
+
default: s(() => [
|
|
237
|
+
d(" Username ")
|
|
238
|
+
]),
|
|
239
|
+
_: 1
|
|
240
|
+
}, 8, ["value"]),
|
|
241
|
+
c(w, {
|
|
242
|
+
id: "oAuth2.password",
|
|
243
|
+
placeholder: "Password",
|
|
244
|
+
type: "password",
|
|
245
|
+
value: u(t).oAuth2.password,
|
|
246
|
+
onInput: z
|
|
247
|
+
}, {
|
|
248
|
+
default: s(() => [
|
|
249
|
+
d(" Password ")
|
|
250
|
+
]),
|
|
251
|
+
_: 1
|
|
252
|
+
}, 8, ["value"])
|
|
253
|
+
]),
|
|
254
|
+
_: 1
|
|
255
|
+
}),
|
|
256
|
+
c(v, null, {
|
|
257
|
+
default: s(() => {
|
|
258
|
+
var o, r;
|
|
259
|
+
return [
|
|
260
|
+
c(w, {
|
|
261
|
+
id: "oAuth2.clientId",
|
|
262
|
+
placeholder: "12345",
|
|
263
|
+
type: "text",
|
|
264
|
+
value: u(t).oAuth2.clientId,
|
|
265
|
+
onInput: b
|
|
266
|
+
}, {
|
|
267
|
+
default: s(() => [
|
|
268
|
+
d(" Client ID ")
|
|
269
|
+
]),
|
|
270
|
+
_: 1
|
|
271
|
+
}, 8, ["value"]),
|
|
272
|
+
e.value !== void 0 && Object.entries(
|
|
273
|
+
((o = e.value.flows.implicit) == null ? void 0 : o.scopes) ?? e.value.flows.password.scopes
|
|
274
|
+
).length > 0 ? (p(), m(P, {
|
|
275
|
+
key: 0,
|
|
276
|
+
selected: A.value,
|
|
277
|
+
"onUpdate:selected": a[1] || (a[1] = (i) => A.value = i),
|
|
278
|
+
scopes: ((r = e.value.flows.implicit) == null ? void 0 : r.scopes) ?? e.value.flows.password.scopes
|
|
279
|
+
}, null, 8, ["selected", "scopes"])) : f("", !0),
|
|
280
|
+
I("button", {
|
|
281
|
+
class: "cardform-auth-button",
|
|
282
|
+
type: "button",
|
|
283
|
+
onClick: a[2] || (a[2] = () => {
|
|
284
|
+
var i, h;
|
|
285
|
+
return j(
|
|
286
|
+
(h = (i = e.value.flows) == null ? void 0 : i.password) == null ? void 0 : h.tokenUrl,
|
|
287
|
+
{
|
|
288
|
+
baseUrl: u(G)(u(S)),
|
|
289
|
+
proxy: e.proxy
|
|
290
|
+
}
|
|
291
|
+
);
|
|
292
|
+
})
|
|
293
|
+
}, " Authorize ")
|
|
294
|
+
];
|
|
295
|
+
}),
|
|
296
|
+
_: 1
|
|
297
|
+
})
|
|
298
|
+
]),
|
|
299
|
+
_: 1
|
|
300
|
+
})) : (p(), m(g, { key: 2 }, {
|
|
301
|
+
default: s(() => [
|
|
302
|
+
c(v, null, {
|
|
303
|
+
default: s(() => {
|
|
304
|
+
var o, r;
|
|
305
|
+
return [
|
|
306
|
+
c(w, {
|
|
307
|
+
id: "oAuth2.clientId",
|
|
308
|
+
placeholder: "12345",
|
|
309
|
+
type: "text",
|
|
310
|
+
value: u(t).oAuth2.clientId,
|
|
311
|
+
onInput: b
|
|
312
|
+
}, {
|
|
313
|
+
default: s(() => [
|
|
314
|
+
d(" Client ID ")
|
|
315
|
+
]),
|
|
316
|
+
_: 1
|
|
317
|
+
}, 8, ["value"]),
|
|
318
|
+
e.value !== void 0 && Object.entries(
|
|
319
|
+
((o = e.value.flows.implicit) == null ? void 0 : o.scopes) ?? e.value.flows.password.scopes
|
|
320
|
+
).length > 0 ? (p(), m(P, {
|
|
321
|
+
key: 0,
|
|
322
|
+
selected: A.value,
|
|
323
|
+
"onUpdate:selected": a[3] || (a[3] = (i) => A.value = i),
|
|
324
|
+
scopes: ((r = e.value.flows.implicit) == null ? void 0 : r.scopes) ?? e.value.flows.password.scopes
|
|
325
|
+
}, null, 8, ["selected", "scopes"])) : f("", !0),
|
|
326
|
+
I("button", {
|
|
327
|
+
class: "cardform-auth-button",
|
|
328
|
+
type: "button",
|
|
329
|
+
onClick: a[4] || (a[4] = () => {
|
|
330
|
+
var i, h;
|
|
331
|
+
return K(
|
|
332
|
+
W(
|
|
333
|
+
//@ts-ignore
|
|
334
|
+
((i = e.value) == null ? void 0 : i.flows.implicit) ?? ((h = e.value) == null ? void 0 : h.flows.password)
|
|
335
|
+
)
|
|
336
|
+
);
|
|
337
|
+
})
|
|
338
|
+
}, " Authorize ")
|
|
339
|
+
];
|
|
340
|
+
}),
|
|
341
|
+
_: 1
|
|
342
|
+
})
|
|
343
|
+
]),
|
|
344
|
+
_: 1
|
|
345
|
+
}))
|
|
346
|
+
]),
|
|
347
|
+
_: 1
|
|
348
|
+
})) : f("", !0)
|
|
349
|
+
]),
|
|
350
|
+
_: 1
|
|
351
|
+
})) : f("", !0);
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
export {
|
|
356
|
+
ne as default
|
|
357
|
+
};
|