@scalar/api-client 2.38.2 → 2.38.4
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 +14 -0
- package/dist/{AddressBar-B4xnl66I.js → AddressBar-BOZGKSoz.js} +4 -4
- package/dist/{AddressBar-B4xnl66I.js.map → AddressBar-BOZGKSoz.js.map} +1 -1
- package/dist/{App-CvClwSlM.js → App-Ckirvnv1.js} +2 -2
- package/dist/{App-CvClwSlM.js.map → App-Ckirvnv1.js.map} +1 -1
- package/dist/{App-BVH4lIe8.js → App-DHBmpWJI.js} +4 -4
- package/dist/{App-BVH4lIe8.js.map → App-DHBmpWJI.js.map} +1 -1
- package/dist/{CodeInput-C-igR77V.js → CodeInput-BTN8cC5h.js} +2 -2
- package/dist/{CodeInput-C-igR77V.js.map → CodeInput-BTN8cC5h.js.map} +1 -1
- package/dist/{Collection-4MT9WmDD.js → Collection-BsAG7ms5.js} +2 -2
- package/dist/{Collection-4MT9WmDD.js.map → Collection-BsAG7ms5.js.map} +1 -1
- package/dist/{CollectionAuthentication-MHWQpw74.js → CollectionAuthentication-BMGhRnpo.js} +5 -5
- package/dist/{CollectionAuthentication-MHWQpw74.js.map → CollectionAuthentication-BMGhRnpo.js.map} +1 -1
- package/dist/{CollectionEnvironment-Dw35vIqo.js → CollectionEnvironment-BY9Gcnln.js} +4 -4
- package/dist/{CollectionEnvironment-Dw35vIqo.js.map → CollectionEnvironment-BY9Gcnln.js.map} +1 -1
- package/dist/{CollectionOverview-TUdDIu5f.js → CollectionOverview-C3GvN8GY.js} +3 -3
- package/dist/{CollectionOverview-TUdDIu5f.js.map → CollectionOverview-C3GvN8GY.js.map} +1 -1
- package/dist/{CollectionServers-BrjTCfDe.js → CollectionServers-DuOLysNB.js} +5 -5
- package/dist/{CollectionServers-BrjTCfDe.js.map → CollectionServers-DuOLysNB.js.map} +1 -1
- package/dist/{CollectionSettings-HVSlp2Gv.js → CollectionSettings-FtXNetOh.js} +2 -2
- package/dist/{CollectionSettings-HVSlp2Gv.js.map → CollectionSettings-FtXNetOh.js.map} +1 -1
- package/dist/{CommandPalette-CL8k4CoN.js → CommandPalette-BxoEK8TY.js} +2 -2
- package/dist/{CommandPalette-CL8k4CoN.js.map → CommandPalette-BxoEK8TY.js.map} +1 -1
- package/dist/{Cookies-DbOKTi1f.js → Cookies-BYTv1YIA.js} +8 -8
- package/dist/{Cookies-DbOKTi1f.js.map → Cookies-BYTv1YIA.js.map} +1 -1
- package/dist/{DataTableInput-yaU5g-kP.js → DataTableInput-RydMDjn2.js} +2 -2
- package/dist/{DataTableInput-yaU5g-kP.js.map → DataTableInput-RydMDjn2.js.map} +1 -1
- package/dist/{Environment-DJatRQIg.js → Environment-BIxG7DaO.js} +5 -5
- package/dist/{Environment-DJatRQIg.js.map → Environment-BIxG7DaO.js.map} +1 -1
- package/dist/{EnvironmentModal-DBEJ4Kzj.js → EnvironmentModal-C0lYytkh.js} +2 -2
- package/dist/{EnvironmentModal-DBEJ4Kzj.js.map → EnvironmentModal-C0lYytkh.js.map} +1 -1
- package/dist/{Form-CSKzyHGO.js → Form-KFcdRQp1.js} +3 -3
- package/dist/{Form-CSKzyHGO.js.map → Form-KFcdRQp1.js.map} +1 -1
- package/dist/{ImportCollection-DfX1UQ5u.js → ImportCollection-CGjySEzP.js} +2 -2
- package/dist/{ImportCollection-DfX1UQ5u.js.map → ImportCollection-CGjySEzP.js.map} +1 -1
- package/dist/{MainLayout-BEFMl1ud.js → MainLayout-BnLwst16.js} +3 -3
- package/dist/{MainLayout-BEFMl1ud.js.map → MainLayout-BnLwst16.js.map} +1 -1
- package/dist/{Modal-sQ9vH6MN.js → Modal-CTZ8UNds.js} +2 -2
- package/dist/{Modal-sQ9vH6MN.js.map → Modal-CTZ8UNds.js.map} +1 -1
- package/dist/{Request-gscRsGQ8.js → Request-d0RY0ZhC.js} +10 -10
- package/dist/{Request-gscRsGQ8.js.map → Request-d0RY0ZhC.js.map} +1 -1
- package/dist/{RequestAuth-BzBfIysT.js → RequestAuth-1cRH3DDn.js} +3 -3
- package/dist/{RequestAuth-BzBfIysT.js.map → RequestAuth-1cRH3DDn.js.map} +1 -1
- package/dist/{RequestRoot-3Bj8JZD-.js → RequestRoot-pW0yXesG.js} +7 -7
- package/dist/{RequestRoot-3Bj8JZD-.js.map → RequestRoot-pW0yXesG.js.map} +1 -1
- package/dist/{RequestSection-HhdJj9hW.js → RequestSection-D2BLvDTr.js} +4 -4
- package/dist/{RequestSection-HhdJj9hW.js.map → RequestSection-D2BLvDTr.js.map} +1 -1
- package/dist/{ResponseSection-DMJ0tw8E.js → ResponseSection-B_YF7l_E.js} +3 -3
- package/dist/{ResponseSection-DMJ0tw8E.js.map → ResponseSection-B_YF7l_E.js.map} +1 -1
- package/dist/{Server-DnA_BzPS.js → Server-CEKGIEfE.js} +2 -2
- package/dist/{Server-DnA_BzPS.js.map → Server-CEKGIEfE.js.map} +1 -1
- package/dist/{Settings-CYZzdJPO.js → Settings-BaPvhJ8Y.js} +2 -2
- package/dist/{Settings-CYZzdJPO.js.map → Settings-BaPvhJ8Y.js.map} +1 -1
- package/dist/{Sidebar-C6AdX6-N.js → Sidebar-CRxdl38Y.js} +2 -2
- package/dist/{Sidebar-C6AdX6-N.js.map → Sidebar-CRxdl38Y.js.map} +1 -1
- package/dist/components/AddressBar/AddressBar.vue.d.ts +1 -1
- package/dist/components/AddressBar/index.js +3 -3
- package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
- package/dist/components/CodeInput/codeVariableWidget.d.ts +1 -1
- package/dist/components/CodeInput/index.js +1 -1
- package/dist/components/CommandPalette/index.js +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts +2 -2
- package/dist/components/DataTable/index.js +2 -2
- package/dist/components/Form/LabelInput.vue.d.ts +1 -1
- package/dist/components/ImportCollection/index.js +1 -1
- package/dist/components/ImportCollection/utils/import-collection.d.ts +1 -1
- package/dist/components/ImportCollection/utils/workspace-store-is-empty.d.ts +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.d.ts +1 -1
- package/dist/components/Server/index.js +1 -1
- package/dist/components/Sidebar/index.js +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +4 -4
- package/dist/{components-CSxJTn6F.js → components-B0BwUDFw.js} +2 -2
- package/dist/{components-CSxJTn6F.js.map → components-B0BwUDFw.js.map} +1 -1
- package/dist/get-resolved-url-SybDPV0U.js +85 -0
- package/dist/get-resolved-url-SybDPV0U.js.map +1 -0
- package/dist/{get-server-url-o3On8CEr.js → get-server-url-UVN-dx79.js} +1 -1
- package/dist/{get-server-url-o3On8CEr.js.map → get-server-url-UVN-dx79.js.map} +1 -1
- package/dist/hooks/useSidebar.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/layouts/App/create-api-client-app.d.ts +9 -9
- package/dist/layouts/App/index.js +3 -3
- package/dist/layouts/Modal/create-api-client-modal.d.ts +1 -1
- package/dist/layouts/Modal/index.d.ts +1 -1
- package/dist/layouts/Modal/index.js +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +9 -9
- package/dist/layouts/Web/index.js +4 -4
- package/dist/libs/create-client.d.ts +3 -3
- package/dist/libs/environment-parser.d.ts +1 -1
- package/dist/libs/get-request-uid-by-path-method.d.ts +1 -1
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/index.d.ts +1 -1
- package/dist/libs/index.js +1 -1
- package/dist/libs/local-storage.d.ts +1 -1
- package/dist/libs/send-request/create-request-operation.d.ts +3 -3
- package/dist/{operation-block-BnMIKAOh.js → operation-block-B1B3lJPx.js} +67 -17
- package/dist/operation-block-B1B3lJPx.js.map +1 -0
- package/dist/{operation-code-sample-ZUTueV3v.js → operation-code-sample-DOzAPxLQ.js} +22 -10
- package/dist/operation-code-sample-DOzAPxLQ.js.map +1 -0
- package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
- package/dist/{request-block-DwsGy64Q.js → request-block-C1kLLMEd.js} +4 -4
- package/dist/{request-block-DwsGy64Q.js.map → request-block-C1kLLMEd.js.map} +1 -1
- package/dist/{scalar-address-bar-block--Vs6IBU1.js → scalar-address-bar-block-BbysOhkE.js} +2 -2
- package/dist/{scalar-address-bar-block--Vs6IBU1.js.map → scalar-address-bar-block-BbysOhkE.js.map} +1 -1
- package/dist/{scalar-auth-selector-block-DI3DLag9.js → scalar-auth-selector-block-Bs79QOMA.js} +12 -9
- package/dist/scalar-auth-selector-block-Bs79QOMA.js.map +1 -0
- package/dist/store/collections.d.ts +1 -1
- package/dist/store/environment.d.ts +1 -1
- package/dist/store/events.d.ts +8 -8
- package/dist/store/import-spec.d.ts +2 -2
- package/dist/store/index.js +1 -1
- package/dist/store/request-example.d.ts +1 -1
- package/dist/store/requests.d.ts +1 -1
- package/dist/store/security-schemes.d.ts +1 -1
- package/dist/store/servers.d.ts +1 -1
- package/dist/store/store.d.ts +7 -7
- package/dist/store/tags.d.ts +1 -1
- package/dist/store/workspace.d.ts +1 -1
- package/dist/{store-DpSUVhjp.js → store-DnlAQK5d.js} +15 -15
- package/dist/{store-DpSUVhjp.js.map → store-DnlAQK5d.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +3 -3
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +2 -2
- package/dist/v2/blocks/operation-block/helpers/apply-allow-reserved-to-url.d.ts +6 -0
- package/dist/v2/blocks/operation-block/helpers/apply-allow-reserved-to-url.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts +1 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts +2 -2
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts +2 -2
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/get-resolved-url.d.ts +2 -1
- package/dist/v2/blocks/operation-block/helpers/get-resolved-url.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.d.ts +1 -1
- package/dist/v2/blocks/operation-block/helpers/send-request.d.ts +1 -1
- package/dist/v2/blocks/operation-block/index.js +11 -11
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts +2 -2
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-clients.d.ts +2 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +1 -1
- 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-security-schemes.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/index.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +4 -4
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +1 -1
- package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +1 -1
- package/dist/v2/blocks/request-block/index.js +5 -5
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts +1 -1
- package/dist/v2/blocks/response-block/index.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/index.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +3 -3
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts.map +1 -1
- 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/oauth.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/index.js +3 -3
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +1 -1
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts +1 -1
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.d.ts +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +1 -1
- package/dist/v2/constants.d.ts +3 -0
- package/dist/v2/constants.d.ts.map +1 -0
- package/dist/v2/features/app/App.vue.d.ts +3 -3
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +1 -1
- package/dist/v2/features/app/components/index.js +4 -4
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +3 -3
- package/dist/v2/features/app/helpers/get-route-param.d.ts +1 -1
- package/dist/v2/features/app/helpers/routes.d.ts +3 -3
- package/dist/v2/features/app/index.d.ts +5 -5
- package/dist/v2/features/app/index.js +14 -14
- package/dist/v2/features/app/index.js.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts +1 -1
- package/dist/v2/features/collection/OperationCollection.vue.d.ts +1 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Cookies.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Editor/Editor.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Environment.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Overview.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Servers.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Settings.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Tabs.vue.d.ts +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +45 -10
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
- package/dist/v2/features/editor/helpers/json/create-json-model.d.ts +1 -1
- package/dist/v2/features/editor/helpers/yaml/create-yaml-model.d.ts +1 -1
- package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.d.ts +1 -1
- package/dist/v2/features/editor/hooks/use-editor.d.ts +1 -1
- package/dist/v2/features/editor/hooks/use-json-pointer-link-support.d.ts +1 -1
- package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +2 -2
- package/dist/v2/features/modal/hooks/use-modal-sidebar.d.ts +1 -1
- package/dist/v2/features/modal/index.js +10 -10
- package/dist/v2/features/modal/modal-events.d.ts +1 -1
- package/dist/v2/features/operation/Operation.vue.d.ts +2 -2
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts +6 -1
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts.map +1 -1
- package/dist/v2/features/operation/index.js +10 -10
- package/dist/v2/features/search/helpers/create-fuse-instance.d.ts +1 -1
- package/dist/v2/features/search/helpers/create-search-index.d.ts +1 -1
- package/dist/v2/helpers/get-active-proxy-url.d.ts +1 -1
- package/dist/v2/helpers/get-tab-details.d.ts +1 -1
- package/dist/v2/helpers/handle-hotkeys.d.ts +1 -1
- package/dist/v2/hooks/use-global-hot-keys.d.ts +1 -1
- package/dist/views/Collection/components/EnvironmentForm.vue.d.ts +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +1 -1
- package/dist/views/Environment/handle-drag.d.ts +1 -1
- package/dist/views/Request/Request.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.d.ts +1 -1
- 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/RequestCodeExample.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts +1 -1
- package/dist/views/Request/RequestSection/index.js +4 -4
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +3 -3
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/index.js +3 -3
- package/dist/views/Request/components/index.js +1 -1
- package/dist/views/Request/handle-drag.d.ts +2 -2
- package/dist/views/Request/libs/auth.d.ts +1 -1
- package/dist/views/Request/libs/oauth2.d.ts +1 -1
- package/dist/views/Request/libs/watch-mode.d.ts +2 -2
- package/package.json +12 -12
- package/dist/get-resolved-url-BUCwrBzc.js +0 -30
- package/dist/get-resolved-url-BUCwrBzc.js.map +0 -1
- package/dist/operation-block-BnMIKAOh.js.map +0 -1
- package/dist/operation-code-sample-ZUTueV3v.js.map +0 -1
- package/dist/scalar-auth-selector-block-DI3DLag9.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/operation-block/OperationBlock.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/operation-block/OperationBlock.vue"],"names":[],"mappings":"AAwbA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAErF,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,wBAAwB,CAAA;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAA;AACnF,OAAO,KAAK,EACV,QAAQ,EACR,UAAU,EACV,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAK5F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAe3C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAA;AAGtF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+DAA+D,CAAA;AAS1G;;;;;;;;;;;;GAYG;wBACkB,OAAO,YAAY;AAAxC,wBAAyC;AAMzC,MAAM,MAAM,mBAAmB,GAAG;IAChC,gBAAgB;IAChB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,gCAAgC;IAChC,gBAAgB,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IAC7C,iCAAiC;IACjC,wBAAwB,EAAE,gBAAgB,GAAG,SAAS,CAAA;IACtD,0BAA0B;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,iCAAiC;IACjC,aAAa,EAAE,oBAAoB,EAAE,CAAA;IACrC,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,6BAA6B;IAC7B,MAAM,EAAE,cAAc,CAAA;IACtB,mBAAmB;IACnB,WAAW,EAAE,gBAAgB,CAAA;IAC7B,oCAAoC;IACpC,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,gCAAgC;IAChC,cAAc,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,yBAAyB,CAAC,CAAA;IACtE,mDAAmD;IACnD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,sCAAsC;IACtC,UAAU,EAAE,UAAU,CAAA;IACtB,4CAA4C;IAC5C,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,oBAAoB;IACpB,MAAM,CAAC,EAAE,SAAS,GAAG,eAAe,CAAA;IACpC,uBAAuB;IACvB,SAAS,EAAE,eAAe,CAAA;IAC1B,kCAAkC;IAClC,yBAAyB,EAAE,gBAAgB,GAAG,SAAS,CAAA;IACvD,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAAA;IAClB,2CAA2C;IAC3C,QAAQ,EAAE,QAAQ,CAAA;IAClB,wCAAwC;IACxC,eAAe,EAAE,qBAAqB,CAAA;IACtC,qBAAqB;IACrB,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,uBAAuB;IACvB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,qCAAqC;IACrC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,8CAA8C;IAC9C,WAAW,EAAE,kBAAkB,CAAA;IAC/B,yCAAyC;IACzC,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AACD,QAAA,MAAM,YAAY,kTA0bd,CAAC"}
|
|
@@ -2,8 +2,8 @@ import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
|
2
2
|
import type { ServerMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
3
3
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
4
4
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
5
|
-
import type { ClientLayout } from '
|
|
6
|
-
import { type History } from '
|
|
5
|
+
import type { ClientLayout } from '../../../../hooks/index.js';
|
|
6
|
+
import { type History } from '../../../../v2/blocks/scalar-address-bar-block/index.js';
|
|
7
7
|
/**
|
|
8
8
|
Operation block header: address bar, environment selector, and modal controls.
|
|
9
9
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decodes reserved character percent-encodings only for query keys marked with
|
|
3
|
+
* OpenAPI's `allowReserved: true`.
|
|
4
|
+
*/
|
|
5
|
+
export declare const applyAllowReservedToUrl: (url: string, allowReservedQueryParameters: Set<string>) => string;
|
|
6
|
+
//# sourceMappingURL=apply-allow-reserved-to-url.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply-allow-reserved-to-url.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/apply-allow-reserved-to-url.ts"],"names":[],"mappings":"AAsCA;;;GAGG;AACH,eAAO,MAAM,uBAAuB,GAAI,KAAK,MAAM,EAAE,8BAA8B,GAAG,CAAC,MAAM,CAAC,KAAG,MAwChG,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-request-body.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/build-request-body.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0DAA0D,CAAA;
|
|
1
|
+
{"version":3,"file":"build-request-body.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/build-request-body.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0DAA0D,CAAA;AAyBjG;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAC3B,aAAa,iBAAiB,GAAG,SAAS;AAC1C,8DAA8D;AAC9D,MAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM;AAChC,qCAAqC;AACrC,mBAAsB,KACrB,QAAQ,GAAG,IAyGb,CAAA"}
|
|
@@ -21,6 +21,7 @@ exampleKey?: string) => {
|
|
|
21
21
|
cookies: XScalarCookie[];
|
|
22
22
|
headers: Record<string, string>;
|
|
23
23
|
pathVariables: Record<string, string>;
|
|
24
|
+
allowReservedQueryParameters: Set<string>;
|
|
24
25
|
urlParams: URLSearchParams;
|
|
25
26
|
};
|
|
26
27
|
//# sourceMappingURL=build-request-parameters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-request-parameters.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/build-request-parameters.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,qEAAqE,CAAA;AAE5E,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,8DAA8D,CAAA;AAoBlH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB;AACjC,qBAAqB;AACrB,aAAY,aAAa,CAAC,eAAe,CAAC,EAAO;AACjD,8DAA8D;AAC9D,MAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM;AAChC,qCAAqC;AACrC,aAAY,MAAkB,KAC7B;IACD,OAAO,EAAE,aAAa,EAAE,CAAA;IACxB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACrC,SAAS,EAAE,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"build-request-parameters.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/build-request-parameters.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,qEAAqE,CAAA;AAE5E,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,8DAA8D,CAAA;AAoBlH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB;AACjC,qBAAqB;AACrB,aAAY,aAAa,CAAC,eAAe,CAAC,EAAO;AACjD,8DAA8D;AAC9D,MAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM;AAChC,qCAAqC;AACrC,aAAY,MAAkB,KAC7B;IACD,OAAO,EAAE,aAAa,EAAE,CAAA;IACxB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACrC,4BAA4B,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACzC,SAAS,EAAE,eAAe,CAAA;CAwF3B,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies';
|
|
2
2
|
import type { SecurityRequirementObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
|
-
import type { MergedSecuritySchemes } from '
|
|
4
|
-
import type { SecuritySchemeObjectSecret } from '
|
|
3
|
+
import type { MergedSecuritySchemes } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/merge-security';
|
|
4
|
+
import type { SecuritySchemeObjectSecret } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
5
5
|
/**
|
|
6
6
|
* Get the selected security schemes from security requirements.
|
|
7
7
|
* Takes security requirement objects and resolves them to actual security scheme objects.
|
|
@@ -3,8 +3,8 @@ import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensi
|
|
|
3
3
|
import type { XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies';
|
|
4
4
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
5
5
|
import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/operation';
|
|
6
|
-
import { type ErrorResponse } from '
|
|
7
|
-
import type { SecuritySchemeObjectSecret } from '
|
|
6
|
+
import { type ErrorResponse } from '../../../../libs/errors';
|
|
7
|
+
import type { SecuritySchemeObjectSecret } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
8
8
|
/**
|
|
9
9
|
* Builds a fully configured Request object ready for execution.
|
|
10
10
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-request.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/build-request.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAGnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACxG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAG5F,OAAO,EAAU,KAAK,aAAa,EAAkB,MAAM,eAAe,CAAA;AAI1E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6DAA6D,CAAA;AAO7G;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,GAAI,iHAU1B;IACD,8CAA8C;IAC9C,WAAW,EAAE,kBAAkB,CAAA;IAC/B,qCAAqC;IACrC,UAAU,EAAE,MAAM,CAAA;IAClB,mCAAmC;IACnC,aAAa,EAAE,aAAa,EAAE,CAAA;IAC9B,uCAAuC;IACvC,MAAM,EAAE,UAAU,CAAA;IAClB,2BAA2B;IAC3B,SAAS,EAAE,eAAe,CAAA;IAC1B,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAA;IAChB,wBAAwB;IACxB,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,8DAA8D;IAC9D,uBAAuB,EAAE,0BAA0B,EAAE,CAAA;CACtD,KAAG,aAAa,CAAC;IAChB,UAAU,EAAE,eAAe,CAAA;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,YAAY,EAAE,OAAO,CAAA;CACtB,
|
|
1
|
+
{"version":3,"file":"build-request.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/build-request.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAGnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACxG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAG5F,OAAO,EAAU,KAAK,aAAa,EAAkB,MAAM,eAAe,CAAA;AAI1E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6DAA6D,CAAA;AAO7G;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,GAAI,iHAU1B;IACD,8CAA8C;IAC9C,WAAW,EAAE,kBAAkB,CAAA;IAC/B,qCAAqC;IACrC,UAAU,EAAE,MAAM,CAAA;IAClB,mCAAmC;IACnC,aAAa,EAAE,aAAa,EAAE,CAAA;IAC9B,uCAAuC;IACvC,MAAM,EAAE,UAAU,CAAA;IAClB,2BAA2B;IAC3B,SAAS,EAAE,eAAe,CAAA;IAC1B,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAA;IAChB,wBAAwB;IACxB,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,8DAA8D;IAC9D,uBAAuB,EAAE,0BAA0B,EAAE,CAAA;CACtD,KAAG,aAAa,CAAC;IAChB,UAAU,EAAE,eAAe,CAAA;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,YAAY,EAAE,OAAO,CAAA;CACtB,CA2GA,CAAA"}
|
|
@@ -15,11 +15,12 @@ import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/s
|
|
|
15
15
|
* @param urlParams Optional query parameters as URLSearchParams.
|
|
16
16
|
* @returns Fully resolved URL as a string.
|
|
17
17
|
*/
|
|
18
|
-
export declare const getResolvedUrl: ({ environment, server, path, pathVariables, urlParams, }: {
|
|
18
|
+
export declare const getResolvedUrl: ({ environment, server, path, pathVariables, allowReservedQueryParameters, urlParams, }: {
|
|
19
19
|
environment: XScalarEnvironment;
|
|
20
20
|
server: ServerObject | null;
|
|
21
21
|
path: string;
|
|
22
22
|
pathVariables: Record<string, string>;
|
|
23
|
+
allowReservedQueryParameters?: Set<string>;
|
|
23
24
|
urlParams?: URLSearchParams;
|
|
24
25
|
}) => string;
|
|
25
26
|
//# sourceMappingURL=get-resolved-url.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-resolved-url.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/get-resolved-url.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAA;
|
|
1
|
+
{"version":3,"file":"get-resolved-url.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/get-resolved-url.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAA;AAMtF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,GAAI,wFAO5B;IACD,WAAW,EAAE,kBAAkB,CAAA;IAC/B,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACrC,4BAA4B,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC1C,SAAS,CAAC,EAAE,eAAe,CAAA;CAC5B,WAMA,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
2
|
import type { HarResponse } from '@scalar/snippetz';
|
|
3
|
-
import type { ResponseInstance } from '
|
|
3
|
+
import type { ResponseInstance } from '../../../../v2/blocks/operation-block/helpers/send-request';
|
|
4
4
|
type HarToFetchResponseProps = {
|
|
5
5
|
/** The HAR Response object to convert */
|
|
6
6
|
harResponse: HarResponse;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
2
|
import { type ClientPlugin } from '@scalar/oas-utils/helpers';
|
|
3
3
|
import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
4
|
-
import { type ErrorResponse } from '
|
|
4
|
+
import { type ErrorResponse } from '../../../../libs/errors';
|
|
5
5
|
/** A single set of populated values for a sent request */
|
|
6
6
|
export type ResponseInstance = Omit<Response, 'headers'> & {
|
|
7
7
|
/** Store headers as an object to match what we had with axios */
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import "../../../HttpMethod-rnWEgC3T.js";
|
|
2
|
-
import "../../../CodeInput-
|
|
3
|
-
import "../../../Server-
|
|
4
|
-
import "../../../AddressBar-
|
|
2
|
+
import "../../../CodeInput-BTN8cC5h.js";
|
|
3
|
+
import "../../../Server-CEKGIEfE.js";
|
|
4
|
+
import "../../../AddressBar-BOZGKSoz.js";
|
|
5
5
|
import "../../../components-ChixwQhN.js";
|
|
6
|
-
import "../../../Sidebar-
|
|
7
|
-
import "../../../DataTableInput-
|
|
8
|
-
import { l as buildRequestSecurity, t as OperationBlock_default, u as getSecuritySchemes } from "../../../operation-block-
|
|
9
|
-
import {
|
|
10
|
-
import { t as getResolvedUrl } from "../../../get-resolved-url-
|
|
11
|
-
import "../../../request-block-
|
|
6
|
+
import "../../../Sidebar-CRxdl38Y.js";
|
|
7
|
+
import "../../../DataTableInput-RydMDjn2.js";
|
|
8
|
+
import { l as buildRequestSecurity, t as OperationBlock_default, u as getSecuritySchemes } from "../../../operation-block-B1B3lJPx.js";
|
|
9
|
+
import { T as getExample } from "../../../operation-code-sample-DOzAPxLQ.js";
|
|
10
|
+
import { t as getResolvedUrl } from "../../../get-resolved-url-SybDPV0U.js";
|
|
11
|
+
import "../../../request-block-C1kLLMEd.js";
|
|
12
12
|
import "../../../SectionFilter-hrtoRLwj.js";
|
|
13
13
|
import "../../../code-input-iq-moLxi.js";
|
|
14
14
|
import "../../../data-table-PL7e8NRO.js";
|
|
15
|
-
import "../../../scalar-auth-selector-block-
|
|
15
|
+
import "../../../scalar-auth-selector-block-Bs79QOMA.js";
|
|
16
16
|
import "../../../response-block-DmkaDZYs.js";
|
|
17
17
|
import "../../../ScalarAsciiArt-BjuSnj8e.js";
|
|
18
|
-
import "../../../scalar-address-bar-block
|
|
18
|
+
import "../../../scalar-address-bar-block-BbysOhkE.js";
|
|
19
19
|
import "../../../server-tcI-OCyx.js";
|
|
20
20
|
export { OperationBlock_default as OperationBlock, buildRequestSecurity, getExample, getResolvedUrl, getSecuritySchemes };
|
|
@@ -3,8 +3,8 @@ import { type AvailableClients } from '@scalar/snippetz';
|
|
|
3
3
|
import { type WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
4
4
|
import type { XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies';
|
|
5
5
|
import type { OperationObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
6
|
-
import type { ClientOptionGroup } from '
|
|
7
|
-
import type { SecuritySchemeObjectSecret } from '
|
|
6
|
+
import type { ClientOptionGroup } from '../../../../v2/blocks/operation-code-sample/types';
|
|
7
|
+
import type { SecuritySchemeObjectSecret } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
8
8
|
export type OperationCodeSampleProps = {
|
|
9
9
|
/**
|
|
10
10
|
* Integration type: determines if the code sample is displayed in a client environment
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AvailableClients } from '@scalar/snippetz';
|
|
2
|
-
import type { ClientOption, CustomClientOption, CustomClientOptionGroup } from '
|
|
2
|
+
import type { ClientOption, CustomClientOption, CustomClientOptionGroup } from '../../../../v2/blocks/operation-code-sample/types';
|
|
3
3
|
export declare const DEFAULT_CLIENT = "shell/curl";
|
|
4
4
|
/** Type guard to check if a string is a valid client id */
|
|
5
5
|
export declare const isClient: (id: any) => id is AvailableClients[number];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type AvailableClients } from '@scalar/snippetz';
|
|
2
2
|
import type { XCodeSample } from '@scalar/workspace-store/schemas/extensions/operation';
|
|
3
|
-
import type { ClientOptionGroup } from '
|
|
3
|
+
import type { ClientOptionGroup } from '../../../../v2/blocks/operation-code-sample/types';
|
|
4
4
|
/** Type of custom code sample IDs */
|
|
5
5
|
export type CustomCodeSampleId = `custom/${string}`;
|
|
6
6
|
/** Helper to generate an ID for custom code samples */
|
|
@@ -3,7 +3,7 @@ import type { AvailableClient } from '@scalar/snippetz';
|
|
|
3
3
|
import type { XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies';
|
|
4
4
|
import type { XCodeSample } from '@scalar/workspace-store/schemas/extensions/operation';
|
|
5
5
|
import type { OperationObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
6
|
-
import type { SecuritySchemeObjectSecret } from '
|
|
6
|
+
import type { SecuritySchemeObjectSecret } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
7
7
|
import { type CustomCodeSampleId } from './generate-client-options';
|
|
8
8
|
type GenerateCodeSnippetProps = {
|
|
9
9
|
/** The selected client/language for code generation (e.g., 'node/fetch') or a custom code sample ID. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { XCodeSample } from '@scalar/workspace-store/schemas/extensions/operation';
|
|
2
|
-
import type { ClientOptionGroup } from '
|
|
3
|
-
import type { CustomClientOptionGroup } from '
|
|
2
|
+
import type { ClientOptionGroup } from '../../../../v2/blocks/operation-code-sample/index.js';
|
|
3
|
+
import type { CustomClientOptionGroup } from '../../../../v2/blocks/operation-code-sample/types';
|
|
4
4
|
/**
|
|
5
5
|
* Merges custom code samples with the client options
|
|
6
6
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SecuritySchemeObjectSecret } from '
|
|
1
|
+
import type { SecuritySchemeObjectSecret } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
2
2
|
/** Extract secrets from security schemes */
|
|
3
3
|
export declare const getSecrets: (securitySchemes: SecuritySchemeObjectSecret[]) => string[];
|
|
4
4
|
//# sourceMappingURL=get-secrets.d.ts.map
|
|
@@ -2,7 +2,7 @@ import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
|
2
2
|
import type { XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies';
|
|
3
3
|
import type { OperationObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
4
4
|
import type { Request as HarRequest } from 'har-format';
|
|
5
|
-
import type { SecuritySchemeObjectSecret } from '
|
|
5
|
+
import type { SecuritySchemeObjectSecret } from '../../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
6
6
|
export type OperationToHarProps = {
|
|
7
7
|
/** OpenAPI Operation object */
|
|
8
8
|
operation: OperationObject;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-body.d.ts","sourceRoot":"","sources":["../../../../../../src/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"process-body.d.ts","sourceRoot":"","sources":["../../../../../../src/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAmB,iBAAiB,EAAE,MAAM,8DAA8D,CAAA;AAEtH,OAAO,KAAK,EAAS,QAAQ,EAAE,MAAM,YAAY,CAAA;AAIjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAE7D,KAAK,gBAAgB,GAAG,IAAI,CAAC,mBAAmB,EAAE,aAAa,GAAG,SAAS,CAAC,GAAG;IAC7E,WAAW,EAAE,iBAAiB,CAAA;CAC/B,CAAA;AAoED;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,uCAAuC,gBAAgB,KAAG,QAAQ,GAAG,SA+EhG,CAAA"}
|
package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Request as HarRequest } from 'har-format';
|
|
2
|
-
import type { SecuritySchemeObjectSecret } from '
|
|
2
|
+
import type { SecuritySchemeObjectSecret } from '../../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
3
3
|
type ProcessedSecuritySchemesReturn = {
|
|
4
4
|
headers: HarRequest['headers'];
|
|
5
5
|
queryString: HarRequest['queryString'];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as getResolvedRefDeep, S as getExampleFromSchema, c as findClient, d as ExamplePicker_default, l as isClient, o as generateClientOptions, s as DEFAULT_CLIENT, t as OperationCodeSample_default } from "../../../operation-code-sample-DOzAPxLQ.js";
|
|
2
2
|
export { DEFAULT_CLIENT, ExamplePicker_default as ExamplePicker, OperationCodeSample_default as OperationCodeSample, findClient, generateClientOptions, getExampleFromSchema, getResolvedRefDeep, isClient };
|
|
@@ -6,10 +6,10 @@ import type { AuthMeta, WorkspaceEventBus } from '@scalar/workspace-store/events
|
|
|
6
6
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
7
7
|
import type { XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies';
|
|
8
8
|
import type { OpenApiDocument, OperationObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
9
|
-
import type { ClientLayout } from '
|
|
10
|
-
import type { ClientOptionGroup } from '
|
|
11
|
-
import { type MergedSecuritySchemes } from '
|
|
12
|
-
import type { SecuritySchemeObjectSecret } from '
|
|
9
|
+
import type { ClientLayout } from '../../../hooks/index.js';
|
|
10
|
+
import type { ClientOptionGroup } from '../../../v2/blocks/operation-code-sample/index.js';
|
|
11
|
+
import { type MergedSecuritySchemes } from '../../../v2/blocks/scalar-auth-selector-block/index.js';
|
|
12
|
+
import type { SecuritySchemeObjectSecret } from '../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
13
13
|
export type ExtendedScalarCookie = XScalarCookie & {
|
|
14
14
|
location: 'document' | 'workspace';
|
|
15
15
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
|
-
import type { OperationCodeSampleProps } from '
|
|
2
|
+
import type { OperationCodeSampleProps } from '../../../../v2/blocks/operation-code-sample/components/OperationCodeSample.vue';
|
|
3
3
|
type __VLS_Props = OperationCodeSampleProps & {
|
|
4
4
|
eventBus: WorkspaceEventBus;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
2
|
-
import { type TableRow } from '
|
|
2
|
+
import { type TableRow } from '../../../../v2/blocks/request-block/components/RequestTableRow.vue';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
data: TableRow[];
|
|
5
5
|
/** Hide the enabled column */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OperationExampleMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
|
-
import type { TableRow } from '
|
|
2
|
+
import type { TableRow } from '../../../../v2/blocks/request-block/components/RequestTableRow.vue';
|
|
3
3
|
type ParameterType = 'path' | 'cookie' | 'header' | 'query';
|
|
4
4
|
/** Create parameter event handlers for a given type */
|
|
5
5
|
export declare const createParameterHandlers: (type: ParameterType, eventBus: WorkspaceEventBus, meta: OperationExampleMeta, { context, defaultParameters, globalParameters, }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-default-headers.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/get-default-headers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;
|
|
1
|
+
{"version":3,"file":"get-default-headers.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/get-default-headers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAQnG;;;GAGG;AACH,KAAK,aAAa,GAAG;IACnB,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAA;IACZ,yCAAyC;IACzC,YAAY,EAAE,MAAM,CAAA;IACpB,qFAAqF;IACrF,YAAY,EAAE,OAAO,CAAA;CACtB,CAAA;AAgBD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,iBAAiB,GAAI,yDAK/B;IACD,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,eAAe,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,KAAG,aAAa,EAwChB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExampleObject, SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
|
-
import type { TableRow } from '
|
|
2
|
+
import type { TableRow } from '../../../../v2/blocks/request-block/components/RequestTableRow.vue';
|
|
3
3
|
/** Build the table rows for the form data, optionally enriched with schema (e.g. enum) per property */
|
|
4
4
|
export declare const getFormBodyRows: (example: ExampleObject | undefined | null, contentType: string, formBodySchema?: SchemaObject) => TableRow[];
|
|
5
5
|
//# sourceMappingURL=get-form-body-rows.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../../../CodeInput-
|
|
2
|
-
import "../../../DataTableInput-
|
|
3
|
-
import "../../../operation-code-sample-
|
|
4
|
-
import { t as RequestBlock_default } from "../../../request-block-
|
|
1
|
+
import "../../../CodeInput-BTN8cC5h.js";
|
|
2
|
+
import "../../../DataTableInput-RydMDjn2.js";
|
|
3
|
+
import "../../../operation-code-sample-DOzAPxLQ.js";
|
|
4
|
+
import { t as RequestBlock_default } from "../../../request-block-C1kLLMEd.js";
|
|
5
5
|
import "../../../SectionFilter-hrtoRLwj.js";
|
|
6
6
|
import "../../../code-input-iq-moLxi.js";
|
|
7
7
|
import "../../../data-table-PL7e8NRO.js";
|
|
8
|
-
import "../../../scalar-auth-selector-block-
|
|
8
|
+
import "../../../scalar-auth-selector-block-Bs79QOMA.js";
|
|
9
9
|
export { RequestBlock_default as RequestBlock };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ResponseInstance } from '@scalar/oas-utils/entities/spec';
|
|
2
2
|
import type { ClientPlugin } from '@scalar/oas-utils/helpers';
|
|
3
3
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
4
|
-
import type { ClientLayout } from '
|
|
4
|
+
import type { ClientLayout } from '../../../hooks/index.js';
|
|
5
5
|
type __VLS_Props = {
|
|
6
6
|
/** Preprocessed response */
|
|
7
7
|
response: ResponseInstance | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../CodeInput-
|
|
2
|
-
import "../../../DataTableInput-
|
|
1
|
+
import "../../../CodeInput-BTN8cC5h.js";
|
|
2
|
+
import "../../../DataTableInput-RydMDjn2.js";
|
|
3
3
|
import "../../../SectionFilter-hrtoRLwj.js";
|
|
4
4
|
import { t as ResponseBlock_default } from "../../../response-block-DmkaDZYs.js";
|
|
5
5
|
import "../../../ScalarAsciiArt-BjuSnj8e.js";
|
|
@@ -2,7 +2,7 @@ import type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-met
|
|
|
2
2
|
import type { ServerMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
3
3
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
4
4
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
5
|
-
import { type ClientLayout } from '
|
|
5
|
+
import { type ClientLayout } from '../../../../hooks/index.js';
|
|
6
6
|
import { type History } from './AddressBarHistory.vue';
|
|
7
7
|
/**
|
|
8
8
|
* AddressBar component
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../../HttpMethod-rnWEgC3T.js";
|
|
2
2
|
import "../../../code-input-iq-moLxi.js";
|
|
3
|
-
import { t as AddressBar_default } from "../../../scalar-address-bar-block
|
|
3
|
+
import { t as AddressBar_default } from "../../../scalar-address-bar-block-BbysOhkE.js";
|
|
4
4
|
import "../../../server-tcI-OCyx.js";
|
|
5
5
|
export { AddressBar_default as AddressBar };
|
|
@@ -3,8 +3,8 @@ import type { SelectedSecurity } from '@scalar/workspace-store/entities/auth';
|
|
|
3
3
|
import type { AuthMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
4
4
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
5
5
|
import type { OpenApiDocument, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
6
|
-
import type { MergedSecuritySchemes } from '
|
|
7
|
-
import { type SecuritySchemeOption } from '
|
|
6
|
+
import type { MergedSecuritySchemes } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/merge-security';
|
|
7
|
+
import { type SecuritySchemeOption } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/security-scheme';
|
|
8
8
|
type __VLS_Props = {
|
|
9
9
|
environment: XScalarEnvironment;
|
|
10
10
|
eventBus: WorkspaceEventBus;
|
|
@@ -28,7 +28,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
28
28
|
text: string;
|
|
29
29
|
} | null>;
|
|
30
30
|
selectedSchemeOptions: import("vue").ComputedRef<SecuritySchemeOption[]>;
|
|
31
|
-
schemeOptions: import("vue").ComputedRef<SecuritySchemeOption[] | import("
|
|
31
|
+
schemeOptions: import("vue").ComputedRef<SecuritySchemeOption[] | import("../../../../v2/blocks/scalar-auth-selector-block/helpers/security-scheme").SecuritySchemeGroup[]>;
|
|
32
32
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
33
|
declare const _default: typeof __VLS_export;
|
|
34
34
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
2
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
3
3
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
4
|
-
import type { OAuthFlowsObjectSecret, SecuritySchemeObjectSecret } from '
|
|
4
|
+
import type { OAuthFlowsObjectSecret, SecuritySchemeObjectSecret } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
5
5
|
type __VLS_Props = {
|
|
6
6
|
/** Current environment configuration */
|
|
7
7
|
environment: XScalarEnvironment;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AuthMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
2
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
3
3
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
4
|
-
import type { MergedSecuritySchemes } from '
|
|
5
|
-
import type { SecuritySchemeOption } from '
|
|
4
|
+
import type { MergedSecuritySchemes } from '../../../../v2/blocks/scalar-auth-selector-block/index.js';
|
|
5
|
+
import type { SecuritySchemeOption } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/security-scheme';
|
|
6
6
|
type __VLS_Props = {
|
|
7
7
|
/** The current environment configuration */
|
|
8
8
|
environment: XScalarEnvironment;
|
package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
2
|
-
import type { VueClassProp } from '
|
|
2
|
+
import type { VueClassProp } from '../../../../types/vue';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
containerClass?: VueClassProp;
|
|
5
5
|
environment: XScalarEnvironment;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
2
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
3
3
|
import type { SecurityRequirementObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
4
|
-
import type { MergedSecuritySchemes } from '
|
|
4
|
+
import type { MergedSecuritySchemes } from '../../../../v2/blocks/scalar-auth-selector-block/index.js';
|
|
5
5
|
type __VLS_Props = {
|
|
6
6
|
/** Current environment configuration */
|
|
7
7
|
environment: XScalarEnvironment;
|
package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-security-scheme-secrets.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,EAAE,SAAS,EAA2C,MAAM,uCAAuC,CAAA;AAC/G,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAA;AAQlF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8DAA8D,CAAA;AAExG,OAAO,KAAK,EAUV,0BAA0B,EAC3B,MAAM,gBAAgB,CAAA;AAEvB,wGAAwG;AACxG,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG,WAAW,CAAC,cAAc,CAAC,CAAA;AAyKjF,6DAA6D;AAC7D,eAAO,MAAM,4BAA4B,GAEvC,QAAQ,oBAAoB,GAAG,WAAW,CAAC,cAAc,CAAC,EAC1D,WAAW,SAAS,EACpB,MAAM,MAAM,EACZ,cAAc,MAAM,KACnB,
|
|
1
|
+
{"version":3,"file":"extract-security-scheme-secrets.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,EAAE,SAAS,EAA2C,MAAM,uCAAuC,CAAA;AAC/G,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAA;AAQlF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8DAA8D,CAAA;AAExG,OAAO,KAAK,EAUV,0BAA0B,EAC3B,MAAM,gBAAgB,CAAA;AAEvB,wGAAwG;AACxG,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG,WAAW,CAAC,cAAc,CAAC,CAAA;AAyKjF,6DAA6D;AAC7D,eAAO,MAAM,4BAA4B,GAEvC,QAAQ,oBAAoB,GAAG,WAAW,CAAC,cAAc,CAAC,EAC1D,WAAW,SAAS,EACpB,MAAM,MAAM,EACZ,cAAc,MAAM,KACnB,0BA2DF,CAAA"}
|
package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Static } from '@scalar/typebox';
|
|
2
|
-
import type { ErrorResponse } from '
|
|
2
|
+
import type { ErrorResponse } from '../../../../libs/errors';
|
|
3
3
|
/**
|
|
4
4
|
* OpenID Connect Discovery Document (subset)
|
|
5
5
|
* Represents the metadata fields consumed by the auth selector flow conversion.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
|
-
import type { ErrorResponse } from '
|
|
3
|
-
import type { OAuthFlowsObjectSecret } from '
|
|
2
|
+
import type { ErrorResponse } from '../../../../libs/errors';
|
|
3
|
+
import type { OAuthFlowsObjectSecret } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
4
4
|
export type OAuth2Tokens = {
|
|
5
5
|
accessToken: string;
|
|
6
6
|
refreshToken?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security-scheme.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,8DAA8D,CAAA;AAIrE,gEAAgE;AAChE,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,yBAAyB,CAAA;IAChC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,oBAAoB,CAAA;CAC/B,CAAA;AAED,mEAAmE;AACnE,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,oBAAoB,EAAE,CAAA;CAChC,CAAA;
|
|
1
|
+
{"version":3,"file":"security-scheme.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,8DAA8D,CAAA;AAIrE,gEAAgE;AAChE,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,yBAAyB,CAAA;IAChC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,oBAAoB,CAAA;CAC/B,CAAA;AAED,mEAAmE;AACnE,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,oBAAoB,EAAE,CAAA;CAChC,CAAA;AAKD;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,iBAAiB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,yBAAyB,CAAA;CAAE;;;;;CAK9F,CAAA;AAEF,uCAAuC;AACvC,eAAO,MAAM,mBAAmB,GAAI,QAAQ,WAAW,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC;;;;;CAIxF,CAAA;AA6BJ;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GACnC,UAAU,WAAW,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,EAClD,iBAAiB,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;AACjE,iGAAiG;AACjG,iBAAiB,yBAAyB,EAAE;AAC5C,gEAAgE;AAChE,uBAAqB,KACpB,oBAAoB,EAAE,GAAG,mBAAmB,EAkF9C,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../../CodeInput-
|
|
2
|
-
import "../../../DataTableInput-
|
|
1
|
+
import "../../../CodeInput-BTN8cC5h.js";
|
|
2
|
+
import "../../../DataTableInput-RydMDjn2.js";
|
|
3
3
|
import "../../../code-input-iq-moLxi.js";
|
|
4
4
|
import "../../../data-table-PL7e8NRO.js";
|
|
5
|
-
import { n as AuthSelector_default, r as isAuthOptional, t as mergeSecurity } from "../../../scalar-auth-selector-block-
|
|
5
|
+
import { n as AuthSelector_default, r as isAuthOptional, t as mergeSecurity } from "../../../scalar-auth-selector-block-Bs79QOMA.js";
|
|
6
6
|
export { AuthSelector_default as AuthSelector, isAuthOptional, mergeSecurity };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type CodeMirrorLanguage, type Extension } from '@scalar/use-codemirror';
|
|
2
2
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
3
3
|
import { type Ref } from 'vue';
|
|
4
|
-
import type { ClientLayout } from '
|
|
4
|
+
import type { ClientLayout } from '../../../v2/types/layout';
|
|
5
5
|
export type CodeInputModelValue = string | number | boolean | Array<string | number | boolean> | Record<string, unknown>;
|
|
6
6
|
/**
|
|
7
7
|
* CodeInput
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
2
|
-
import type { VueClassProp } from '
|
|
2
|
+
import type { VueClassProp } from '../../../types/vue';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
id?: string;
|
|
5
5
|
type?: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ServerMeta } from '@scalar/workspace-store/events';
|
|
2
2
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
|
-
import type { ClientLayout } from '
|
|
3
|
+
import type { ClientLayout } from '../../../hooks/index.js';
|
|
4
4
|
/**
|
|
5
5
|
* ServerDropdown component
|
|
6
6
|
* This component is used to display the server dropdown for the operation block
|
|
@@ -2,7 +2,7 @@ import { type WorkspaceGroup } from '@scalar/components';
|
|
|
2
2
|
import { type DraggingItem, type HoveredItem, type SidebarState } from '@scalar/sidebar';
|
|
3
3
|
import type { WorkspaceDocument } from '@scalar/workspace-store/schemas';
|
|
4
4
|
import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
|
|
5
|
-
import type { ClientLayout } from '
|
|
5
|
+
import type { ClientLayout } from '../../../v2/types/layout';
|
|
6
6
|
type __VLS_Props = {
|
|
7
7
|
/** All documents to display sidebar items for */
|
|
8
8
|
sidebarState: SidebarState<TraversedEntry>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/v2/constants.ts"],"names":[],"mappings":"AAAA,gKAAgK;AAChK,eAAO,MAAM,WAAW,QAA+F,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ModalState } from '@scalar/components';
|
|
2
2
|
import type { ClientPlugin } from '@scalar/oas-utils/helpers';
|
|
3
|
-
import type { CommandPaletteState } from '
|
|
4
|
-
import type { ImportDocumentFromRegistry } from '
|
|
5
|
-
import type { ClientLayout } from '
|
|
3
|
+
import type { CommandPaletteState } from '../../../v2/features/command-palette/hooks/use-command-palette-state';
|
|
4
|
+
import type { ImportDocumentFromRegistry } from '../../../v2/types/configuration';
|
|
5
|
+
import type { ClientLayout } from '../../../v2/types/layout';
|
|
6
6
|
import { type AppState } from './app-state';
|
|
7
7
|
/**
|
|
8
8
|
* Main entry point for the API client for electron and web.
|
|
@@ -3,7 +3,7 @@ import type { SidebarState } from '@scalar/sidebar';
|
|
|
3
3
|
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
4
4
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
5
5
|
import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
|
|
6
|
-
import type { ClientLayout } from '
|
|
6
|
+
import type { ClientLayout } from '../../../../v2/types/layout';
|
|
7
7
|
type __VLS_Props = {
|
|
8
8
|
/**
|
|
9
9
|
* The current layout of the app (e.g., 'desktop', 'web')
|