@scalar/api-client 2.1.52 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBar.vue2.js +36 -43
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +25 -24
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +32 -39
- package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServerItem.vue.js +10 -15
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +48 -47
- package/dist/components/CodeInput/codeVariableWidget.d.ts +3 -2
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +15 -14
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +18 -23
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +27 -26
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +19 -20
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +19 -24
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +23 -22
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +47 -46
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +23 -28
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +127 -96
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +28 -27
- package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts +1 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +14 -18
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +15 -14
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +20 -19
- package/dist/components/SideNav/SideNav.vue.js +4 -4
- package/dist/components/SideNav/SideNavRouterLink.vue.js +9 -9
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +165 -5
- package/dist/components/TopNav/TopNav.vue2.js +2 -164
- package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -2
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +5 -5
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +2 -2
- package/dist/hooks/index.js +3 -2
- package/dist/hooks/useLayout.d.ts +2 -0
- package/dist/hooks/useLayout.d.ts.map +1 -1
- package/dist/hooks/useLayout.js +4 -3
- package/dist/layouts/App/ApiClientApp.vue.d.ts +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +35 -31
- package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
- package/dist/layouts/App/MainLayout.vue.js +3 -3
- package/dist/layouts/App/create-api-client-app.d.ts +669 -1232
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue2.js +24 -23
- package/dist/layouts/Modal/create-api-client-modal.d.ts +1382 -2508
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +34 -33
- package/dist/layouts/Web/create-api-client-web.d.ts +669 -1232
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +673 -1236
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +91 -102
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/send-request.d.ts +2 -3
- package/dist/libs/send-request.d.ts.map +1 -1
- package/dist/libs/send-request.js +127 -123
- package/dist/store/active-entities.d.ts +333 -0
- package/dist/store/active-entities.d.ts.map +1 -0
- package/dist/store/active-entities.js +97 -0
- package/dist/store/collections.d.ts +4 -274
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/import-spec.d.ts +0 -54
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/index.js +4 -3
- package/dist/store/request-example.d.ts +4 -4
- package/dist/store/requests.d.ts +15 -15
- package/dist/store/security-schemes.d.ts +527 -317
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/security-schemes.js +33 -41
- package/dist/store/servers.d.ts +4 -4
- package/dist/store/store-context.d.ts +0 -3
- package/dist/store/store-context.d.ts.map +1 -1
- package/dist/store/store.d.ts +640 -5297
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +111 -189
- package/dist/store/tags.d.ts +4 -4
- package/dist/store/workspace.d.ts +14 -24
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tailwind/desktop-variants.d.ts +18 -0
- package/dist/tailwind/desktop-variants.d.ts.map +1 -0
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +14 -13
- package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieRaw.vue.js +14 -13
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +3 -3
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +92 -92
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +96 -99
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +49 -46
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +94 -100
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +60 -67
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +29 -28
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +11 -10
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +24 -28
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +17 -16
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +72 -73
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +111 -109
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +15 -16
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +14 -14
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +25 -21
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +26 -25
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +7 -7
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +32 -31
- package/dist/views/Request/consts/new-auth-options.d.ts +16 -8
- package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
- package/dist/views/Request/consts/new-auth-options.js +16 -8
- package/dist/views/Request/handle-drag.d.ts +2 -1
- package/dist/views/Request/handle-drag.d.ts.map +1 -1
- package/dist/views/Request/handle-drag.js +23 -25
- package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +1 -1
- package/dist/views/Request/hooks/useOpenApiWatcher.js +40 -39
- package/dist/views/Request/libs/auth.d.ts +1 -29
- package/dist/views/Request/libs/auth.d.ts.map +1 -1
- package/dist/views/Request/libs/auth.js +2 -9
- package/dist/views/Request/libs/index.js +6 -8
- package/dist/views/Request/libs/live-sync.d.ts +6 -5
- package/dist/views/Request/libs/live-sync.d.ts.map +1 -1
- package/dist/views/Request/libs/live-sync.js +164 -185
- package/dist/views/Request/libs/oauth2.d.ts +6 -10
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +54 -69
- package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
- package/dist/views/Servers/ServerForm.vue.js +14 -13
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +18 -17
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +218 -126
- package/dist/views/Settings/{SettingsGeneralMode.vue.d.ts → components/SettingsAppearance.vue.d.ts} +2 -2
- package/dist/views/Settings/components/SettingsAppearance.vue.d.ts.map +1 -0
- package/dist/views/Settings/components/SettingsAppearance.vue.js +74 -0
- package/dist/views/Settings/components/SettingsAppearance.vue2.js +4 -0
- package/dist/views/Settings/components/SettingsSection.vue.d.ts +24 -0
- package/dist/views/Settings/components/SettingsSection.vue.d.ts.map +1 -0
- package/dist/views/Settings/components/SettingsSection.vue.js +24 -0
- package/dist/views/Settings/components/SettingsSection.vue2.js +4 -0
- package/package.json +9 -9
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts +0 -16
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts.map +0 -1
- package/dist/views/Settings/SettingsGeneralMode.vue.d.ts.map +0 -1
- package/dist/views/Settings/SettingsGeneralMode.vue.js +0 -78
- package/dist/views/Settings/SettingsGeneralMode.vue2.js +0 -4
|
@@ -4,10 +4,11 @@ import { type SecuritySchemePayload } from '@scalar/oas-utils/entities/spec';
|
|
|
4
4
|
export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
5
5
|
securitySchemes: Record<string, {
|
|
6
6
|
type: "apiKey";
|
|
7
|
+
value: string;
|
|
7
8
|
uid: string;
|
|
8
9
|
name: string;
|
|
9
|
-
in: "query" | "header" | "cookie";
|
|
10
10
|
nameKey: string;
|
|
11
|
+
in: "query" | "header" | "cookie";
|
|
11
12
|
description?: string | undefined;
|
|
12
13
|
} | {
|
|
13
14
|
type: "http";
|
|
@@ -15,6 +16,9 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
15
16
|
nameKey: string;
|
|
16
17
|
scheme: "basic" | "bearer";
|
|
17
18
|
bearerFormat: string;
|
|
19
|
+
username: string;
|
|
20
|
+
password: string;
|
|
21
|
+
token: string;
|
|
18
22
|
description?: string | undefined;
|
|
19
23
|
} | {
|
|
20
24
|
type: "openIdConnect";
|
|
@@ -26,45 +30,63 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
26
30
|
type: "oauth2";
|
|
27
31
|
uid: string;
|
|
28
32
|
nameKey: string;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
33
|
+
flows: {
|
|
34
|
+
password?: {
|
|
35
|
+
type: "password";
|
|
36
|
+
username: string;
|
|
37
|
+
password: string;
|
|
38
|
+
token: string;
|
|
39
|
+
refreshUrl: string;
|
|
40
|
+
scopes: Record<string, string>;
|
|
41
|
+
selectedScopes: string[];
|
|
42
|
+
"x-scalar-client-id": string;
|
|
43
|
+
tokenUrl: string;
|
|
44
|
+
clientSecret: string;
|
|
45
|
+
} | undefined;
|
|
46
|
+
implicit?: {
|
|
47
|
+
type: "implicit";
|
|
48
|
+
token: string;
|
|
49
|
+
refreshUrl: string;
|
|
50
|
+
scopes: Record<string, string>;
|
|
51
|
+
selectedScopes: string[];
|
|
52
|
+
"x-scalar-client-id": string;
|
|
53
|
+
authorizationUrl: string;
|
|
54
|
+
"x-scalar-redirect-uri": string;
|
|
55
|
+
} | undefined;
|
|
56
|
+
clientCredentials?: {
|
|
57
|
+
type: "clientCredentials";
|
|
58
|
+
token: string;
|
|
59
|
+
refreshUrl: string;
|
|
60
|
+
scopes: Record<string, string>;
|
|
61
|
+
selectedScopes: string[];
|
|
62
|
+
"x-scalar-client-id": string;
|
|
63
|
+
tokenUrl: string;
|
|
64
|
+
clientSecret: string;
|
|
65
|
+
} | undefined;
|
|
66
|
+
authorizationCode?: {
|
|
67
|
+
type: "authorizationCode";
|
|
68
|
+
token: string;
|
|
69
|
+
refreshUrl: string;
|
|
70
|
+
scopes: Record<string, string>;
|
|
71
|
+
selectedScopes: string[];
|
|
72
|
+
"x-scalar-client-id": string;
|
|
73
|
+
authorizationUrl: string;
|
|
74
|
+
"x-scalar-redirect-uri": string;
|
|
75
|
+
tokenUrl: string;
|
|
76
|
+
clientSecret: string;
|
|
77
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
78
|
+
} | undefined;
|
|
57
79
|
};
|
|
58
|
-
'x-scalar-client-id': string;
|
|
59
80
|
description?: string | undefined;
|
|
60
81
|
}>;
|
|
61
82
|
securitySchemeMutators: {
|
|
62
83
|
add: (item: {
|
|
63
84
|
type: "apiKey";
|
|
85
|
+
value: string;
|
|
64
86
|
uid: string;
|
|
65
87
|
name: string;
|
|
66
|
-
in: "query" | "header" | "cookie";
|
|
67
88
|
nameKey: string;
|
|
89
|
+
in: "query" | "header" | "cookie";
|
|
68
90
|
description?: string | undefined;
|
|
69
91
|
} | {
|
|
70
92
|
type: "http";
|
|
@@ -72,6 +94,9 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
72
94
|
nameKey: string;
|
|
73
95
|
scheme: "basic" | "bearer";
|
|
74
96
|
bearerFormat: string;
|
|
97
|
+
username: string;
|
|
98
|
+
password: string;
|
|
99
|
+
token: string;
|
|
75
100
|
description?: string | undefined;
|
|
76
101
|
} | {
|
|
77
102
|
type: "openIdConnect";
|
|
@@ -83,45 +108,63 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
83
108
|
type: "oauth2";
|
|
84
109
|
uid: string;
|
|
85
110
|
nameKey: string;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
flows: {
|
|
112
|
+
password?: {
|
|
113
|
+
type: "password";
|
|
114
|
+
username: string;
|
|
115
|
+
password: string;
|
|
116
|
+
token: string;
|
|
117
|
+
refreshUrl: string;
|
|
118
|
+
scopes: Record<string, string>;
|
|
119
|
+
selectedScopes: string[];
|
|
120
|
+
"x-scalar-client-id": string;
|
|
121
|
+
tokenUrl: string;
|
|
122
|
+
clientSecret: string;
|
|
123
|
+
} | undefined;
|
|
124
|
+
implicit?: {
|
|
125
|
+
type: "implicit";
|
|
126
|
+
token: string;
|
|
127
|
+
refreshUrl: string;
|
|
128
|
+
scopes: Record<string, string>;
|
|
129
|
+
selectedScopes: string[];
|
|
130
|
+
"x-scalar-client-id": string;
|
|
131
|
+
authorizationUrl: string;
|
|
132
|
+
"x-scalar-redirect-uri": string;
|
|
133
|
+
} | undefined;
|
|
134
|
+
clientCredentials?: {
|
|
135
|
+
type: "clientCredentials";
|
|
136
|
+
token: string;
|
|
137
|
+
refreshUrl: string;
|
|
138
|
+
scopes: Record<string, string>;
|
|
139
|
+
selectedScopes: string[];
|
|
140
|
+
"x-scalar-client-id": string;
|
|
141
|
+
tokenUrl: string;
|
|
142
|
+
clientSecret: string;
|
|
143
|
+
} | undefined;
|
|
144
|
+
authorizationCode?: {
|
|
145
|
+
type: "authorizationCode";
|
|
146
|
+
token: string;
|
|
147
|
+
refreshUrl: string;
|
|
148
|
+
scopes: Record<string, string>;
|
|
149
|
+
selectedScopes: string[];
|
|
150
|
+
"x-scalar-client-id": string;
|
|
151
|
+
authorizationUrl: string;
|
|
152
|
+
"x-scalar-redirect-uri": string;
|
|
153
|
+
tokenUrl: string;
|
|
154
|
+
clientSecret: string;
|
|
155
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
156
|
+
} | undefined;
|
|
114
157
|
};
|
|
115
|
-
'x-scalar-client-id': string;
|
|
116
158
|
description?: string | undefined;
|
|
117
159
|
}) => void;
|
|
118
160
|
delete: (uid: string) => void;
|
|
119
161
|
set: (item: {
|
|
120
162
|
type: "apiKey";
|
|
163
|
+
value: string;
|
|
121
164
|
uid: string;
|
|
122
165
|
name: string;
|
|
123
|
-
in: "query" | "header" | "cookie";
|
|
124
166
|
nameKey: string;
|
|
167
|
+
in: "query" | "header" | "cookie";
|
|
125
168
|
description?: string | undefined;
|
|
126
169
|
} | {
|
|
127
170
|
type: "http";
|
|
@@ -129,6 +172,9 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
129
172
|
nameKey: string;
|
|
130
173
|
scheme: "basic" | "bearer";
|
|
131
174
|
bearerFormat: string;
|
|
175
|
+
username: string;
|
|
176
|
+
password: string;
|
|
177
|
+
token: string;
|
|
132
178
|
description?: string | undefined;
|
|
133
179
|
} | {
|
|
134
180
|
type: "openIdConnect";
|
|
@@ -140,72 +186,98 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
140
186
|
type: "oauth2";
|
|
141
187
|
uid: string;
|
|
142
188
|
nameKey: string;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
189
|
+
flows: {
|
|
190
|
+
password?: {
|
|
191
|
+
type: "password";
|
|
192
|
+
username: string;
|
|
193
|
+
password: string;
|
|
194
|
+
token: string;
|
|
195
|
+
refreshUrl: string;
|
|
196
|
+
scopes: Record<string, string>;
|
|
197
|
+
selectedScopes: string[];
|
|
198
|
+
"x-scalar-client-id": string;
|
|
199
|
+
tokenUrl: string;
|
|
200
|
+
clientSecret: string;
|
|
201
|
+
} | undefined;
|
|
202
|
+
implicit?: {
|
|
203
|
+
type: "implicit";
|
|
204
|
+
token: string;
|
|
205
|
+
refreshUrl: string;
|
|
206
|
+
scopes: Record<string, string>;
|
|
207
|
+
selectedScopes: string[];
|
|
208
|
+
"x-scalar-client-id": string;
|
|
209
|
+
authorizationUrl: string;
|
|
210
|
+
"x-scalar-redirect-uri": string;
|
|
211
|
+
} | undefined;
|
|
212
|
+
clientCredentials?: {
|
|
213
|
+
type: "clientCredentials";
|
|
214
|
+
token: string;
|
|
215
|
+
refreshUrl: string;
|
|
216
|
+
scopes: Record<string, string>;
|
|
217
|
+
selectedScopes: string[];
|
|
218
|
+
"x-scalar-client-id": string;
|
|
219
|
+
tokenUrl: string;
|
|
220
|
+
clientSecret: string;
|
|
221
|
+
} | undefined;
|
|
222
|
+
authorizationCode?: {
|
|
223
|
+
type: "authorizationCode";
|
|
224
|
+
token: string;
|
|
225
|
+
refreshUrl: string;
|
|
226
|
+
scopes: Record<string, string>;
|
|
227
|
+
selectedScopes: string[];
|
|
228
|
+
"x-scalar-client-id": string;
|
|
229
|
+
authorizationUrl: string;
|
|
230
|
+
"x-scalar-redirect-uri": string;
|
|
231
|
+
tokenUrl: string;
|
|
232
|
+
clientSecret: string;
|
|
233
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
234
|
+
} | undefined;
|
|
171
235
|
};
|
|
172
|
-
'x-scalar-client-id': string;
|
|
173
236
|
description?: string | undefined;
|
|
174
237
|
}) => void;
|
|
175
|
-
edit: <P extends "
|
|
238
|
+
edit: <P extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "flows" | "value" | "password" | "token" | "username" | "flows.implicit" | "flows.password" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.x-scalar-redirect-uri" | "flows.implicit.x-scalar-client-id" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.authorizationUrl" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | "flows.password.type" | "flows.password.password" | "flows.password.token" | "flows.password.x-scalar-client-id" | "flows.password.username" | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.x-usePkce" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.authorizationUrl" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}`>(uid: string, path: P, value: (P extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "value" ? {
|
|
176
239
|
type: "apiKey";
|
|
240
|
+
value: string;
|
|
177
241
|
uid: string;
|
|
178
242
|
name: string;
|
|
179
|
-
in: "query" | "header" | "cookie";
|
|
180
243
|
nameKey: string;
|
|
244
|
+
in: "query" | "header" | "cookie";
|
|
181
245
|
description?: string | undefined;
|
|
182
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "
|
|
246
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "value" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
183
247
|
type: "apiKey";
|
|
248
|
+
value: string;
|
|
184
249
|
uid: string;
|
|
185
250
|
name: string;
|
|
186
|
-
in: "query" | "header" | "cookie";
|
|
187
251
|
nameKey: string;
|
|
252
|
+
in: "query" | "header" | "cookie";
|
|
188
253
|
description?: string | undefined;
|
|
189
254
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
190
255
|
type: "apiKey";
|
|
256
|
+
value: string;
|
|
191
257
|
uid: string;
|
|
192
258
|
name: string;
|
|
193
|
-
in: "query" | "header" | "cookie";
|
|
194
259
|
nameKey: string;
|
|
260
|
+
in: "query" | "header" | "cookie";
|
|
195
261
|
description?: string | undefined;
|
|
196
|
-
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "
|
|
262
|
+
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "password" | "token" | "username" ? {
|
|
197
263
|
type: "http";
|
|
198
264
|
uid: string;
|
|
199
265
|
nameKey: string;
|
|
200
266
|
scheme: "basic" | "bearer";
|
|
201
267
|
bearerFormat: string;
|
|
268
|
+
username: string;
|
|
269
|
+
password: string;
|
|
270
|
+
token: string;
|
|
202
271
|
description?: string | undefined;
|
|
203
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "
|
|
272
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "password" | "token" | "username" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
204
273
|
type: "http";
|
|
205
274
|
uid: string;
|
|
206
275
|
nameKey: string;
|
|
207
276
|
scheme: "basic" | "bearer";
|
|
208
277
|
bearerFormat: string;
|
|
278
|
+
username: string;
|
|
279
|
+
password: string;
|
|
280
|
+
token: string;
|
|
209
281
|
description?: string | undefined;
|
|
210
282
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
211
283
|
type: "http";
|
|
@@ -213,14 +285,17 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
213
285
|
nameKey: string;
|
|
214
286
|
scheme: "basic" | "bearer";
|
|
215
287
|
bearerFormat: string;
|
|
288
|
+
username: string;
|
|
289
|
+
password: string;
|
|
290
|
+
token: string;
|
|
216
291
|
description?: string | undefined;
|
|
217
|
-
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "
|
|
292
|
+
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "openIdConnectUrl" ? {
|
|
218
293
|
type: "openIdConnect";
|
|
219
294
|
uid: string;
|
|
220
295
|
nameKey: string;
|
|
221
296
|
openIdConnectUrl: string;
|
|
222
297
|
description?: string | undefined;
|
|
223
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "
|
|
298
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "openIdConnectUrl" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
224
299
|
type: "openIdConnect";
|
|
225
300
|
uid: string;
|
|
226
301
|
nameKey: string;
|
|
@@ -232,146 +307,206 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
232
307
|
nameKey: string;
|
|
233
308
|
openIdConnectUrl: string;
|
|
234
309
|
description?: string | undefined;
|
|
235
|
-
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "
|
|
310
|
+
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "flows" ? {
|
|
236
311
|
type: "oauth2";
|
|
237
312
|
uid: string;
|
|
238
313
|
nameKey: string;
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
314
|
+
flows: {
|
|
315
|
+
password?: {
|
|
316
|
+
type: "password";
|
|
317
|
+
username: string;
|
|
318
|
+
password: string;
|
|
319
|
+
token: string;
|
|
320
|
+
refreshUrl: string;
|
|
321
|
+
scopes: Record<string, string>;
|
|
322
|
+
selectedScopes: string[];
|
|
323
|
+
"x-scalar-client-id": string;
|
|
324
|
+
tokenUrl: string;
|
|
325
|
+
clientSecret: string;
|
|
326
|
+
} | undefined;
|
|
327
|
+
implicit?: {
|
|
328
|
+
type: "implicit";
|
|
329
|
+
token: string;
|
|
330
|
+
refreshUrl: string;
|
|
331
|
+
scopes: Record<string, string>;
|
|
332
|
+
selectedScopes: string[];
|
|
333
|
+
"x-scalar-client-id": string;
|
|
334
|
+
authorizationUrl: string;
|
|
335
|
+
"x-scalar-redirect-uri": string;
|
|
336
|
+
} | undefined;
|
|
337
|
+
clientCredentials?: {
|
|
338
|
+
type: "clientCredentials";
|
|
339
|
+
token: string;
|
|
340
|
+
refreshUrl: string;
|
|
341
|
+
scopes: Record<string, string>;
|
|
342
|
+
selectedScopes: string[];
|
|
343
|
+
"x-scalar-client-id": string;
|
|
344
|
+
tokenUrl: string;
|
|
345
|
+
clientSecret: string;
|
|
346
|
+
} | undefined;
|
|
347
|
+
authorizationCode?: {
|
|
348
|
+
type: "authorizationCode";
|
|
349
|
+
token: string;
|
|
350
|
+
refreshUrl: string;
|
|
351
|
+
scopes: Record<string, string>;
|
|
352
|
+
selectedScopes: string[];
|
|
353
|
+
"x-scalar-client-id": string;
|
|
354
|
+
authorizationUrl: string;
|
|
355
|
+
"x-scalar-redirect-uri": string;
|
|
356
|
+
tokenUrl: string;
|
|
357
|
+
clientSecret: string;
|
|
358
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
359
|
+
} | undefined;
|
|
267
360
|
};
|
|
268
|
-
'x-scalar-client-id': string;
|
|
269
361
|
description?: string | undefined;
|
|
270
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "
|
|
362
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "flows" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
271
363
|
type: "oauth2";
|
|
272
364
|
uid: string;
|
|
273
365
|
nameKey: string;
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
366
|
+
flows: {
|
|
367
|
+
password?: {
|
|
368
|
+
type: "password";
|
|
369
|
+
username: string;
|
|
370
|
+
password: string;
|
|
371
|
+
token: string;
|
|
372
|
+
refreshUrl: string;
|
|
373
|
+
scopes: Record<string, string>;
|
|
374
|
+
selectedScopes: string[];
|
|
375
|
+
"x-scalar-client-id": string;
|
|
376
|
+
tokenUrl: string;
|
|
377
|
+
clientSecret: string;
|
|
378
|
+
} | undefined;
|
|
379
|
+
implicit?: {
|
|
380
|
+
type: "implicit";
|
|
381
|
+
token: string;
|
|
382
|
+
refreshUrl: string;
|
|
383
|
+
scopes: Record<string, string>;
|
|
384
|
+
selectedScopes: string[];
|
|
385
|
+
"x-scalar-client-id": string;
|
|
386
|
+
authorizationUrl: string;
|
|
387
|
+
"x-scalar-redirect-uri": string;
|
|
388
|
+
} | undefined;
|
|
389
|
+
clientCredentials?: {
|
|
390
|
+
type: "clientCredentials";
|
|
391
|
+
token: string;
|
|
392
|
+
refreshUrl: string;
|
|
393
|
+
scopes: Record<string, string>;
|
|
394
|
+
selectedScopes: string[];
|
|
395
|
+
"x-scalar-client-id": string;
|
|
396
|
+
tokenUrl: string;
|
|
397
|
+
clientSecret: string;
|
|
398
|
+
} | undefined;
|
|
399
|
+
authorizationCode?: {
|
|
400
|
+
type: "authorizationCode";
|
|
401
|
+
token: string;
|
|
402
|
+
refreshUrl: string;
|
|
403
|
+
scopes: Record<string, string>;
|
|
404
|
+
selectedScopes: string[];
|
|
405
|
+
"x-scalar-client-id": string;
|
|
406
|
+
authorizationUrl: string;
|
|
407
|
+
"x-scalar-redirect-uri": string;
|
|
408
|
+
tokenUrl: string;
|
|
409
|
+
clientSecret: string;
|
|
410
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
411
|
+
} | undefined;
|
|
302
412
|
};
|
|
303
|
-
'x-scalar-client-id': string;
|
|
304
413
|
description?: string | undefined;
|
|
305
414
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
306
415
|
type: "oauth2";
|
|
307
416
|
uid: string;
|
|
308
417
|
nameKey: string;
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
418
|
+
flows: {
|
|
419
|
+
password?: {
|
|
420
|
+
type: "password";
|
|
421
|
+
username: string;
|
|
422
|
+
password: string;
|
|
423
|
+
token: string;
|
|
424
|
+
refreshUrl: string;
|
|
425
|
+
scopes: Record<string, string>;
|
|
426
|
+
selectedScopes: string[];
|
|
427
|
+
"x-scalar-client-id": string;
|
|
428
|
+
tokenUrl: string;
|
|
429
|
+
clientSecret: string;
|
|
430
|
+
} | undefined;
|
|
431
|
+
implicit?: {
|
|
432
|
+
type: "implicit";
|
|
433
|
+
token: string;
|
|
434
|
+
refreshUrl: string;
|
|
435
|
+
scopes: Record<string, string>;
|
|
436
|
+
selectedScopes: string[];
|
|
437
|
+
"x-scalar-client-id": string;
|
|
438
|
+
authorizationUrl: string;
|
|
439
|
+
"x-scalar-redirect-uri": string;
|
|
440
|
+
} | undefined;
|
|
441
|
+
clientCredentials?: {
|
|
442
|
+
type: "clientCredentials";
|
|
443
|
+
token: string;
|
|
444
|
+
refreshUrl: string;
|
|
445
|
+
scopes: Record<string, string>;
|
|
446
|
+
selectedScopes: string[];
|
|
447
|
+
"x-scalar-client-id": string;
|
|
448
|
+
tokenUrl: string;
|
|
449
|
+
clientSecret: string;
|
|
450
|
+
} | undefined;
|
|
451
|
+
authorizationCode?: {
|
|
452
|
+
type: "authorizationCode";
|
|
453
|
+
token: string;
|
|
454
|
+
refreshUrl: string;
|
|
455
|
+
scopes: Record<string, string>;
|
|
456
|
+
selectedScopes: string[];
|
|
457
|
+
"x-scalar-client-id": string;
|
|
458
|
+
authorizationUrl: string;
|
|
459
|
+
"x-scalar-redirect-uri": string;
|
|
460
|
+
tokenUrl: string;
|
|
461
|
+
clientSecret: string;
|
|
462
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
463
|
+
} | undefined;
|
|
337
464
|
};
|
|
338
|
-
'x-scalar-client-id': string;
|
|
339
465
|
description?: string | undefined;
|
|
340
466
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
|
|
341
|
-
untrackedEdit: <P extends "
|
|
467
|
+
untrackedEdit: <P extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "flows" | "value" | "password" | "token" | "username" | "flows.implicit" | "flows.password" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.x-scalar-redirect-uri" | "flows.implicit.x-scalar-client-id" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.authorizationUrl" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | "flows.password.type" | "flows.password.password" | "flows.password.token" | "flows.password.x-scalar-client-id" | "flows.password.username" | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.x-usePkce" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.authorizationUrl" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}`>(uid: string, path: P, value: (P extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "value" ? {
|
|
342
468
|
type: "apiKey";
|
|
469
|
+
value: string;
|
|
343
470
|
uid: string;
|
|
344
471
|
name: string;
|
|
345
|
-
in: "query" | "header" | "cookie";
|
|
346
472
|
nameKey: string;
|
|
473
|
+
in: "query" | "header" | "cookie";
|
|
347
474
|
description?: string | undefined;
|
|
348
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "
|
|
475
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "value" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
349
476
|
type: "apiKey";
|
|
477
|
+
value: string;
|
|
350
478
|
uid: string;
|
|
351
479
|
name: string;
|
|
352
|
-
in: "query" | "header" | "cookie";
|
|
353
480
|
nameKey: string;
|
|
481
|
+
in: "query" | "header" | "cookie";
|
|
354
482
|
description?: string | undefined;
|
|
355
483
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
356
484
|
type: "apiKey";
|
|
485
|
+
value: string;
|
|
357
486
|
uid: string;
|
|
358
487
|
name: string;
|
|
359
|
-
in: "query" | "header" | "cookie";
|
|
360
488
|
nameKey: string;
|
|
489
|
+
in: "query" | "header" | "cookie";
|
|
361
490
|
description?: string | undefined;
|
|
362
|
-
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "
|
|
491
|
+
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "password" | "token" | "username" ? {
|
|
363
492
|
type: "http";
|
|
364
493
|
uid: string;
|
|
365
494
|
nameKey: string;
|
|
366
495
|
scheme: "basic" | "bearer";
|
|
367
496
|
bearerFormat: string;
|
|
497
|
+
username: string;
|
|
498
|
+
password: string;
|
|
499
|
+
token: string;
|
|
368
500
|
description?: string | undefined;
|
|
369
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "
|
|
501
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "password" | "token" | "username" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
370
502
|
type: "http";
|
|
371
503
|
uid: string;
|
|
372
504
|
nameKey: string;
|
|
373
505
|
scheme: "basic" | "bearer";
|
|
374
506
|
bearerFormat: string;
|
|
507
|
+
username: string;
|
|
508
|
+
password: string;
|
|
509
|
+
token: string;
|
|
375
510
|
description?: string | undefined;
|
|
376
511
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
377
512
|
type: "http";
|
|
@@ -379,14 +514,17 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
379
514
|
nameKey: string;
|
|
380
515
|
scheme: "basic" | "bearer";
|
|
381
516
|
bearerFormat: string;
|
|
517
|
+
username: string;
|
|
518
|
+
password: string;
|
|
519
|
+
token: string;
|
|
382
520
|
description?: string | undefined;
|
|
383
|
-
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "
|
|
521
|
+
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "openIdConnectUrl" ? {
|
|
384
522
|
type: "openIdConnect";
|
|
385
523
|
uid: string;
|
|
386
524
|
nameKey: string;
|
|
387
525
|
openIdConnectUrl: string;
|
|
388
526
|
description?: string | undefined;
|
|
389
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "
|
|
527
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "openIdConnectUrl" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
390
528
|
type: "openIdConnect";
|
|
391
529
|
uid: string;
|
|
392
530
|
nameKey: string;
|
|
@@ -398,110 +536,161 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
398
536
|
nameKey: string;
|
|
399
537
|
openIdConnectUrl: string;
|
|
400
538
|
description?: string | undefined;
|
|
401
|
-
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "
|
|
539
|
+
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "flows" ? {
|
|
402
540
|
type: "oauth2";
|
|
403
541
|
uid: string;
|
|
404
542
|
nameKey: string;
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
543
|
+
flows: {
|
|
544
|
+
password?: {
|
|
545
|
+
type: "password";
|
|
546
|
+
username: string;
|
|
547
|
+
password: string;
|
|
548
|
+
token: string;
|
|
549
|
+
refreshUrl: string;
|
|
550
|
+
scopes: Record<string, string>;
|
|
551
|
+
selectedScopes: string[];
|
|
552
|
+
"x-scalar-client-id": string;
|
|
553
|
+
tokenUrl: string;
|
|
554
|
+
clientSecret: string;
|
|
555
|
+
} | undefined;
|
|
556
|
+
implicit?: {
|
|
557
|
+
type: "implicit";
|
|
558
|
+
token: string;
|
|
559
|
+
refreshUrl: string;
|
|
560
|
+
scopes: Record<string, string>;
|
|
561
|
+
selectedScopes: string[];
|
|
562
|
+
"x-scalar-client-id": string;
|
|
563
|
+
authorizationUrl: string;
|
|
564
|
+
"x-scalar-redirect-uri": string;
|
|
565
|
+
} | undefined;
|
|
566
|
+
clientCredentials?: {
|
|
567
|
+
type: "clientCredentials";
|
|
568
|
+
token: string;
|
|
569
|
+
refreshUrl: string;
|
|
570
|
+
scopes: Record<string, string>;
|
|
571
|
+
selectedScopes: string[];
|
|
572
|
+
"x-scalar-client-id": string;
|
|
573
|
+
tokenUrl: string;
|
|
574
|
+
clientSecret: string;
|
|
575
|
+
} | undefined;
|
|
576
|
+
authorizationCode?: {
|
|
577
|
+
type: "authorizationCode";
|
|
578
|
+
token: string;
|
|
579
|
+
refreshUrl: string;
|
|
580
|
+
scopes: Record<string, string>;
|
|
581
|
+
selectedScopes: string[];
|
|
582
|
+
"x-scalar-client-id": string;
|
|
583
|
+
authorizationUrl: string;
|
|
584
|
+
"x-scalar-redirect-uri": string;
|
|
585
|
+
tokenUrl: string;
|
|
586
|
+
clientSecret: string;
|
|
587
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
588
|
+
} | undefined;
|
|
433
589
|
};
|
|
434
|
-
'x-scalar-client-id': string;
|
|
435
590
|
description?: string | undefined;
|
|
436
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "
|
|
591
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "flows" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
437
592
|
type: "oauth2";
|
|
438
593
|
uid: string;
|
|
439
594
|
nameKey: string;
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
595
|
+
flows: {
|
|
596
|
+
password?: {
|
|
597
|
+
type: "password";
|
|
598
|
+
username: string;
|
|
599
|
+
password: string;
|
|
600
|
+
token: string;
|
|
601
|
+
refreshUrl: string;
|
|
602
|
+
scopes: Record<string, string>;
|
|
603
|
+
selectedScopes: string[];
|
|
604
|
+
"x-scalar-client-id": string;
|
|
605
|
+
tokenUrl: string;
|
|
606
|
+
clientSecret: string;
|
|
607
|
+
} | undefined;
|
|
608
|
+
implicit?: {
|
|
609
|
+
type: "implicit";
|
|
610
|
+
token: string;
|
|
611
|
+
refreshUrl: string;
|
|
612
|
+
scopes: Record<string, string>;
|
|
613
|
+
selectedScopes: string[];
|
|
614
|
+
"x-scalar-client-id": string;
|
|
615
|
+
authorizationUrl: string;
|
|
616
|
+
"x-scalar-redirect-uri": string;
|
|
617
|
+
} | undefined;
|
|
618
|
+
clientCredentials?: {
|
|
619
|
+
type: "clientCredentials";
|
|
620
|
+
token: string;
|
|
621
|
+
refreshUrl: string;
|
|
622
|
+
scopes: Record<string, string>;
|
|
623
|
+
selectedScopes: string[];
|
|
624
|
+
"x-scalar-client-id": string;
|
|
625
|
+
tokenUrl: string;
|
|
626
|
+
clientSecret: string;
|
|
627
|
+
} | undefined;
|
|
628
|
+
authorizationCode?: {
|
|
629
|
+
type: "authorizationCode";
|
|
630
|
+
token: string;
|
|
631
|
+
refreshUrl: string;
|
|
632
|
+
scopes: Record<string, string>;
|
|
633
|
+
selectedScopes: string[];
|
|
634
|
+
"x-scalar-client-id": string;
|
|
635
|
+
authorizationUrl: string;
|
|
636
|
+
"x-scalar-redirect-uri": string;
|
|
637
|
+
tokenUrl: string;
|
|
638
|
+
clientSecret: string;
|
|
639
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
640
|
+
} | undefined;
|
|
468
641
|
};
|
|
469
|
-
'x-scalar-client-id': string;
|
|
470
642
|
description?: string | undefined;
|
|
471
643
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
472
644
|
type: "oauth2";
|
|
473
645
|
uid: string;
|
|
474
646
|
nameKey: string;
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
647
|
+
flows: {
|
|
648
|
+
password?: {
|
|
649
|
+
type: "password";
|
|
650
|
+
username: string;
|
|
651
|
+
password: string;
|
|
652
|
+
token: string;
|
|
653
|
+
refreshUrl: string;
|
|
654
|
+
scopes: Record<string, string>;
|
|
655
|
+
selectedScopes: string[];
|
|
656
|
+
"x-scalar-client-id": string;
|
|
657
|
+
tokenUrl: string;
|
|
658
|
+
clientSecret: string;
|
|
659
|
+
} | undefined;
|
|
660
|
+
implicit?: {
|
|
661
|
+
type: "implicit";
|
|
662
|
+
token: string;
|
|
663
|
+
refreshUrl: string;
|
|
664
|
+
scopes: Record<string, string>;
|
|
665
|
+
selectedScopes: string[];
|
|
666
|
+
"x-scalar-client-id": string;
|
|
667
|
+
authorizationUrl: string;
|
|
668
|
+
"x-scalar-redirect-uri": string;
|
|
669
|
+
} | undefined;
|
|
670
|
+
clientCredentials?: {
|
|
671
|
+
type: "clientCredentials";
|
|
672
|
+
token: string;
|
|
673
|
+
refreshUrl: string;
|
|
674
|
+
scopes: Record<string, string>;
|
|
675
|
+
selectedScopes: string[];
|
|
676
|
+
"x-scalar-client-id": string;
|
|
677
|
+
tokenUrl: string;
|
|
678
|
+
clientSecret: string;
|
|
679
|
+
} | undefined;
|
|
680
|
+
authorizationCode?: {
|
|
681
|
+
type: "authorizationCode";
|
|
682
|
+
token: string;
|
|
683
|
+
refreshUrl: string;
|
|
684
|
+
scopes: Record<string, string>;
|
|
685
|
+
selectedScopes: string[];
|
|
686
|
+
"x-scalar-client-id": string;
|
|
687
|
+
authorizationUrl: string;
|
|
688
|
+
"x-scalar-redirect-uri": string;
|
|
689
|
+
tokenUrl: string;
|
|
690
|
+
clientSecret: string;
|
|
691
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
692
|
+
} | undefined;
|
|
503
693
|
};
|
|
504
|
-
'x-scalar-client-id': string;
|
|
505
694
|
description?: string | undefined;
|
|
506
695
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
|
|
507
696
|
undo: (uid: string) => void;
|
|
@@ -513,10 +702,11 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
513
702
|
export declare function extendedSecurityDataFactory({ securitySchemeMutators, collectionMutators, collections, requests, requestMutators, }: StoreContext): {
|
|
514
703
|
addSecurityScheme: (payload: SecuritySchemePayload, collectionUid: string) => {
|
|
515
704
|
type: "apiKey";
|
|
705
|
+
value: string;
|
|
516
706
|
uid: string;
|
|
517
707
|
name: string;
|
|
518
|
-
in: "query" | "header" | "cookie";
|
|
519
708
|
nameKey: string;
|
|
709
|
+
in: "query" | "header" | "cookie";
|
|
520
710
|
description?: string | undefined;
|
|
521
711
|
} | {
|
|
522
712
|
type: "http";
|
|
@@ -524,6 +714,9 @@ export declare function extendedSecurityDataFactory({ securitySchemeMutators, co
|
|
|
524
714
|
nameKey: string;
|
|
525
715
|
scheme: "basic" | "bearer";
|
|
526
716
|
bearerFormat: string;
|
|
717
|
+
username: string;
|
|
718
|
+
password: string;
|
|
719
|
+
token: string;
|
|
527
720
|
description?: string | undefined;
|
|
528
721
|
} | {
|
|
529
722
|
type: "openIdConnect";
|
|
@@ -535,38 +728,55 @@ export declare function extendedSecurityDataFactory({ securitySchemeMutators, co
|
|
|
535
728
|
type: "oauth2";
|
|
536
729
|
uid: string;
|
|
537
730
|
nameKey: string;
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
731
|
+
flows: {
|
|
732
|
+
password?: {
|
|
733
|
+
type: "password";
|
|
734
|
+
username: string;
|
|
735
|
+
password: string;
|
|
736
|
+
token: string;
|
|
737
|
+
refreshUrl: string;
|
|
738
|
+
scopes: Record<string, string>;
|
|
739
|
+
selectedScopes: string[];
|
|
740
|
+
"x-scalar-client-id": string;
|
|
741
|
+
tokenUrl: string;
|
|
742
|
+
clientSecret: string;
|
|
743
|
+
} | undefined;
|
|
744
|
+
implicit?: {
|
|
745
|
+
type: "implicit";
|
|
746
|
+
token: string;
|
|
747
|
+
refreshUrl: string;
|
|
748
|
+
scopes: Record<string, string>;
|
|
749
|
+
selectedScopes: string[];
|
|
750
|
+
"x-scalar-client-id": string;
|
|
751
|
+
authorizationUrl: string;
|
|
752
|
+
"x-scalar-redirect-uri": string;
|
|
753
|
+
} | undefined;
|
|
754
|
+
clientCredentials?: {
|
|
755
|
+
type: "clientCredentials";
|
|
756
|
+
token: string;
|
|
757
|
+
refreshUrl: string;
|
|
758
|
+
scopes: Record<string, string>;
|
|
759
|
+
selectedScopes: string[];
|
|
760
|
+
"x-scalar-client-id": string;
|
|
761
|
+
tokenUrl: string;
|
|
762
|
+
clientSecret: string;
|
|
763
|
+
} | undefined;
|
|
764
|
+
authorizationCode?: {
|
|
765
|
+
type: "authorizationCode";
|
|
766
|
+
token: string;
|
|
767
|
+
refreshUrl: string;
|
|
768
|
+
scopes: Record<string, string>;
|
|
769
|
+
selectedScopes: string[];
|
|
770
|
+
"x-scalar-client-id": string;
|
|
771
|
+
authorizationUrl: string;
|
|
772
|
+
"x-scalar-redirect-uri": string;
|
|
773
|
+
tokenUrl: string;
|
|
774
|
+
clientSecret: string;
|
|
775
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
776
|
+
} | undefined;
|
|
566
777
|
};
|
|
567
|
-
'x-scalar-client-id': string;
|
|
568
778
|
description?: string | undefined;
|
|
569
|
-
}
|
|
779
|
+
};
|
|
570
780
|
deleteSecurityScheme: (schemeUid: string) => void;
|
|
571
781
|
};
|
|
572
782
|
//# sourceMappingURL=security-schemes.d.ts.map
|