@scalar/api-client 2.6.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +55 -0
- package/dist/analytics.d.ts +2 -18
- package/dist/analytics.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +66 -42
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/hooks/useAnalytics.d.ts +2 -18
- package/dist/hooks/useAnalytics.d.ts.map +1 -1
- package/dist/hooks/useClientConfig.d.ts +115 -112
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +1378 -1306
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +2752 -2608
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +1378 -1306
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +1378 -1306
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts +17 -17
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/send-request/build-request-security.d.ts +1 -1
- package/dist/libs/send-request/create-fetch-body.d.ts +1 -1
- package/dist/libs/send-request/create-request-operation.test.d.ts +82 -82
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/plugins/plugin-manager.d.ts +1 -1
- package/dist/store/active-entities.d.ts +118 -118
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts +127 -127
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/cookies.d.ts +14 -14
- package/dist/store/environment.d.ts +23 -23
- package/dist/store/request-example.d.ts +546 -546
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/requests.d.ts +194 -194
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +281 -281
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/servers.d.ts +45 -45
- package/dist/store/servers.d.ts.map +1 -1
- package/dist/store/store.d.ts +1378 -1306
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +18 -18
- package/dist/store/tags.d.ts +35 -35
- package/dist/store/tags.d.ts.map +1 -1
- package/dist/store/workspace.d.ts +47 -47
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts +2 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts.map +1 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.d.ts +25 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.d.ts.map +1 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +30 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue2.js +4 -0
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +3 -3
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +102 -95
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.js +16 -14
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.js +31 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts +6 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +198 -131
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.bench.d.ts +2 -0
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.bench.d.ts.map +1 -0
- package/dist/v2/blocks/operation-code-sample/index.d.ts +4 -1
- package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/index.js +10 -4
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +2 -6
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +54 -54
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +54 -54
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +1 -1
- package/dist/views/Request/libs/auth.d.ts +2 -2
- package/dist/views/Request/libs/watch-mode.d.ts +4 -4
- package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
- package/dist/views/Request/libs/watch-mode.js +241 -186
- package/package.json +25 -20
|
@@ -4,69 +4,67 @@ import { type Collection, type SecurityScheme, type SecuritySchemePayload } from
|
|
|
4
4
|
export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
5
5
|
securitySchemes: Record<string, {
|
|
6
6
|
type: "apiKey";
|
|
7
|
-
value: string;
|
|
8
7
|
name: string;
|
|
9
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
10
|
-
nameKey: string;
|
|
11
8
|
in: "cookie" | "query" | "header";
|
|
9
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
10
|
+
nameKey: string;
|
|
11
|
+
value: string;
|
|
12
12
|
description?: string | undefined;
|
|
13
13
|
} | {
|
|
14
14
|
type: "http";
|
|
15
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
16
|
-
nameKey: string;
|
|
17
15
|
scheme: "basic" | "bearer";
|
|
18
16
|
bearerFormat: string;
|
|
17
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
18
|
+
nameKey: string;
|
|
19
19
|
username: string;
|
|
20
20
|
password: string;
|
|
21
21
|
token: string;
|
|
22
22
|
description?: string | undefined;
|
|
23
23
|
} | {
|
|
24
24
|
type: "openIdConnect";
|
|
25
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
26
|
-
nameKey: string;
|
|
27
25
|
openIdConnectUrl: string;
|
|
26
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
27
|
+
nameKey: string;
|
|
28
28
|
description?: string | undefined;
|
|
29
29
|
} | {
|
|
30
30
|
type: "oauth2";
|
|
31
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
32
|
-
nameKey: string;
|
|
33
31
|
flows: {
|
|
34
|
-
|
|
35
|
-
type: "password";
|
|
36
|
-
username: string;
|
|
37
|
-
password: string;
|
|
38
|
-
token: string;
|
|
32
|
+
implicit?: {
|
|
39
33
|
refreshUrl: string;
|
|
40
34
|
scopes: Record<string, string>;
|
|
41
35
|
selectedScopes: string[];
|
|
42
36
|
"x-scalar-client-id": string;
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
token: string;
|
|
38
|
+
type: "implicit";
|
|
39
|
+
authorizationUrl: string;
|
|
40
|
+
"x-scalar-redirect-uri": string;
|
|
45
41
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
46
42
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
47
43
|
"x-tokenName"?: string | undefined;
|
|
48
|
-
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
49
44
|
} | undefined;
|
|
50
|
-
|
|
51
|
-
type: "implicit";
|
|
52
|
-
token: string;
|
|
45
|
+
password?: {
|
|
53
46
|
refreshUrl: string;
|
|
54
47
|
scopes: Record<string, string>;
|
|
55
48
|
selectedScopes: string[];
|
|
56
49
|
"x-scalar-client-id": string;
|
|
57
|
-
|
|
58
|
-
"
|
|
50
|
+
token: string;
|
|
51
|
+
type: "password";
|
|
52
|
+
tokenUrl: string;
|
|
53
|
+
clientSecret: string;
|
|
54
|
+
username: string;
|
|
55
|
+
password: string;
|
|
59
56
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
60
57
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
61
58
|
"x-tokenName"?: string | undefined;
|
|
59
|
+
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
62
60
|
} | undefined;
|
|
63
61
|
clientCredentials?: {
|
|
64
|
-
type: "clientCredentials";
|
|
65
|
-
token: string;
|
|
66
62
|
refreshUrl: string;
|
|
67
63
|
scopes: Record<string, string>;
|
|
68
64
|
selectedScopes: string[];
|
|
69
65
|
"x-scalar-client-id": string;
|
|
66
|
+
token: string;
|
|
67
|
+
type: "clientCredentials";
|
|
70
68
|
tokenUrl: string;
|
|
71
69
|
clientSecret: string;
|
|
72
70
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
@@ -75,92 +73,92 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
75
73
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
76
74
|
} | undefined;
|
|
77
75
|
authorizationCode?: {
|
|
78
|
-
type: "authorizationCode";
|
|
79
|
-
token: string;
|
|
80
76
|
refreshUrl: string;
|
|
81
77
|
scopes: Record<string, string>;
|
|
82
78
|
selectedScopes: string[];
|
|
83
79
|
"x-scalar-client-id": string;
|
|
80
|
+
token: string;
|
|
81
|
+
type: "authorizationCode";
|
|
84
82
|
authorizationUrl: string;
|
|
83
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
85
84
|
"x-scalar-redirect-uri": string;
|
|
86
85
|
tokenUrl: string;
|
|
87
86
|
clientSecret: string;
|
|
88
|
-
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
89
87
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
90
88
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
91
89
|
"x-tokenName"?: string | undefined;
|
|
92
90
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
93
91
|
} | undefined;
|
|
94
92
|
};
|
|
93
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
94
|
+
nameKey: string;
|
|
95
95
|
description?: string | undefined;
|
|
96
96
|
'x-default-scopes'?: string[] | undefined;
|
|
97
97
|
}>;
|
|
98
98
|
securitySchemeMutators: {
|
|
99
99
|
add: (item: {
|
|
100
100
|
type: "apiKey";
|
|
101
|
-
value: string;
|
|
102
101
|
name: string;
|
|
103
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
104
|
-
nameKey: string;
|
|
105
102
|
in: "cookie" | "query" | "header";
|
|
103
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
104
|
+
nameKey: string;
|
|
105
|
+
value: string;
|
|
106
106
|
description?: string | undefined;
|
|
107
107
|
} | {
|
|
108
108
|
type: "http";
|
|
109
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
110
|
-
nameKey: string;
|
|
111
109
|
scheme: "basic" | "bearer";
|
|
112
110
|
bearerFormat: string;
|
|
111
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
112
|
+
nameKey: string;
|
|
113
113
|
username: string;
|
|
114
114
|
password: string;
|
|
115
115
|
token: string;
|
|
116
116
|
description?: string | undefined;
|
|
117
117
|
} | {
|
|
118
118
|
type: "openIdConnect";
|
|
119
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
120
|
-
nameKey: string;
|
|
121
119
|
openIdConnectUrl: string;
|
|
120
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
121
|
+
nameKey: string;
|
|
122
122
|
description?: string | undefined;
|
|
123
123
|
} | {
|
|
124
124
|
type: "oauth2";
|
|
125
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
126
|
-
nameKey: string;
|
|
127
125
|
flows: {
|
|
128
|
-
|
|
129
|
-
type: "password";
|
|
130
|
-
username: string;
|
|
131
|
-
password: string;
|
|
132
|
-
token: string;
|
|
126
|
+
implicit?: {
|
|
133
127
|
refreshUrl: string;
|
|
134
128
|
scopes: Record<string, string>;
|
|
135
129
|
selectedScopes: string[];
|
|
136
130
|
"x-scalar-client-id": string;
|
|
137
|
-
|
|
138
|
-
|
|
131
|
+
token: string;
|
|
132
|
+
type: "implicit";
|
|
133
|
+
authorizationUrl: string;
|
|
134
|
+
"x-scalar-redirect-uri": string;
|
|
139
135
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
140
136
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
141
137
|
"x-tokenName"?: string | undefined;
|
|
142
|
-
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
143
138
|
} | undefined;
|
|
144
|
-
|
|
145
|
-
type: "implicit";
|
|
146
|
-
token: string;
|
|
139
|
+
password?: {
|
|
147
140
|
refreshUrl: string;
|
|
148
141
|
scopes: Record<string, string>;
|
|
149
142
|
selectedScopes: string[];
|
|
150
143
|
"x-scalar-client-id": string;
|
|
151
|
-
|
|
152
|
-
"
|
|
144
|
+
token: string;
|
|
145
|
+
type: "password";
|
|
146
|
+
tokenUrl: string;
|
|
147
|
+
clientSecret: string;
|
|
148
|
+
username: string;
|
|
149
|
+
password: string;
|
|
153
150
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
154
151
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
155
152
|
"x-tokenName"?: string | undefined;
|
|
153
|
+
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
156
154
|
} | undefined;
|
|
157
155
|
clientCredentials?: {
|
|
158
|
-
type: "clientCredentials";
|
|
159
|
-
token: string;
|
|
160
156
|
refreshUrl: string;
|
|
161
157
|
scopes: Record<string, string>;
|
|
162
158
|
selectedScopes: string[];
|
|
163
159
|
"x-scalar-client-id": string;
|
|
160
|
+
token: string;
|
|
161
|
+
type: "clientCredentials";
|
|
164
162
|
tokenUrl: string;
|
|
165
163
|
clientSecret: string;
|
|
166
164
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
@@ -169,92 +167,92 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
169
167
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
170
168
|
} | undefined;
|
|
171
169
|
authorizationCode?: {
|
|
172
|
-
type: "authorizationCode";
|
|
173
|
-
token: string;
|
|
174
170
|
refreshUrl: string;
|
|
175
171
|
scopes: Record<string, string>;
|
|
176
172
|
selectedScopes: string[];
|
|
177
173
|
"x-scalar-client-id": string;
|
|
174
|
+
token: string;
|
|
175
|
+
type: "authorizationCode";
|
|
178
176
|
authorizationUrl: string;
|
|
177
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
179
178
|
"x-scalar-redirect-uri": string;
|
|
180
179
|
tokenUrl: string;
|
|
181
180
|
clientSecret: string;
|
|
182
|
-
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
183
181
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
184
182
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
185
183
|
"x-tokenName"?: string | undefined;
|
|
186
184
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
187
185
|
} | undefined;
|
|
188
186
|
};
|
|
187
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
188
|
+
nameKey: string;
|
|
189
189
|
description?: string | undefined;
|
|
190
190
|
'x-default-scopes'?: string[] | undefined;
|
|
191
191
|
}) => void;
|
|
192
|
-
delete: (uid: (string & import("zod")
|
|
192
|
+
delete: (uid: (string & import("zod").$brand<"securityScheme">) | null | undefined) => void;
|
|
193
193
|
set: (item: {
|
|
194
194
|
type: "apiKey";
|
|
195
|
-
value: string;
|
|
196
195
|
name: string;
|
|
197
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
198
|
-
nameKey: string;
|
|
199
196
|
in: "cookie" | "query" | "header";
|
|
197
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
198
|
+
nameKey: string;
|
|
199
|
+
value: string;
|
|
200
200
|
description?: string | undefined;
|
|
201
201
|
} | {
|
|
202
202
|
type: "http";
|
|
203
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
204
|
-
nameKey: string;
|
|
205
203
|
scheme: "basic" | "bearer";
|
|
206
204
|
bearerFormat: string;
|
|
205
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
206
|
+
nameKey: string;
|
|
207
207
|
username: string;
|
|
208
208
|
password: string;
|
|
209
209
|
token: string;
|
|
210
210
|
description?: string | undefined;
|
|
211
211
|
} | {
|
|
212
212
|
type: "openIdConnect";
|
|
213
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
214
|
-
nameKey: string;
|
|
215
213
|
openIdConnectUrl: string;
|
|
214
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
215
|
+
nameKey: string;
|
|
216
216
|
description?: string | undefined;
|
|
217
217
|
} | {
|
|
218
218
|
type: "oauth2";
|
|
219
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
220
|
-
nameKey: string;
|
|
221
219
|
flows: {
|
|
222
|
-
|
|
223
|
-
type: "password";
|
|
224
|
-
username: string;
|
|
225
|
-
password: string;
|
|
226
|
-
token: string;
|
|
220
|
+
implicit?: {
|
|
227
221
|
refreshUrl: string;
|
|
228
222
|
scopes: Record<string, string>;
|
|
229
223
|
selectedScopes: string[];
|
|
230
224
|
"x-scalar-client-id": string;
|
|
231
|
-
|
|
232
|
-
|
|
225
|
+
token: string;
|
|
226
|
+
type: "implicit";
|
|
227
|
+
authorizationUrl: string;
|
|
228
|
+
"x-scalar-redirect-uri": string;
|
|
233
229
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
234
230
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
235
231
|
"x-tokenName"?: string | undefined;
|
|
236
|
-
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
237
232
|
} | undefined;
|
|
238
|
-
|
|
239
|
-
type: "implicit";
|
|
240
|
-
token: string;
|
|
233
|
+
password?: {
|
|
241
234
|
refreshUrl: string;
|
|
242
235
|
scopes: Record<string, string>;
|
|
243
236
|
selectedScopes: string[];
|
|
244
237
|
"x-scalar-client-id": string;
|
|
245
|
-
|
|
246
|
-
"
|
|
238
|
+
token: string;
|
|
239
|
+
type: "password";
|
|
240
|
+
tokenUrl: string;
|
|
241
|
+
clientSecret: string;
|
|
242
|
+
username: string;
|
|
243
|
+
password: string;
|
|
247
244
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
248
245
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
249
246
|
"x-tokenName"?: string | undefined;
|
|
247
|
+
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
250
248
|
} | undefined;
|
|
251
249
|
clientCredentials?: {
|
|
252
|
-
type: "clientCredentials";
|
|
253
|
-
token: string;
|
|
254
250
|
refreshUrl: string;
|
|
255
251
|
scopes: Record<string, string>;
|
|
256
252
|
selectedScopes: string[];
|
|
257
253
|
"x-scalar-client-id": string;
|
|
254
|
+
token: string;
|
|
255
|
+
type: "clientCredentials";
|
|
258
256
|
tokenUrl: string;
|
|
259
257
|
clientSecret: string;
|
|
260
258
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
@@ -263,139 +261,139 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
263
261
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
264
262
|
} | undefined;
|
|
265
263
|
authorizationCode?: {
|
|
266
|
-
type: "authorizationCode";
|
|
267
|
-
token: string;
|
|
268
264
|
refreshUrl: string;
|
|
269
265
|
scopes: Record<string, string>;
|
|
270
266
|
selectedScopes: string[];
|
|
271
267
|
"x-scalar-client-id": string;
|
|
268
|
+
token: string;
|
|
269
|
+
type: "authorizationCode";
|
|
272
270
|
authorizationUrl: string;
|
|
271
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
273
272
|
"x-scalar-redirect-uri": string;
|
|
274
273
|
tokenUrl: string;
|
|
275
274
|
clientSecret: string;
|
|
276
|
-
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
277
275
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
278
276
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
279
277
|
"x-tokenName"?: string | undefined;
|
|
280
278
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
281
279
|
} | undefined;
|
|
282
280
|
};
|
|
281
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
282
|
+
nameKey: string;
|
|
283
283
|
description?: string | undefined;
|
|
284
284
|
'x-default-scopes'?: string[] | undefined;
|
|
285
285
|
}) => void;
|
|
286
|
-
edit: <P extends "value" | "description" | "type" | "uid" | "name" | "
|
|
286
|
+
edit: <P extends "in" | "value" | "description" | "type" | "uid" | "name" | "nameKey" | "scheme" | "bearerFormat" | "username" | "password" | "token" | "openIdConnectUrl" | "x-default-scopes" | "flows" | `x-default-scopes.${number}` | "flows.password" | "flows.implicit" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.password.type" | "flows.password.username" | "flows.password.password" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | "flows.password.x-scalar-client-id" | "flows.password.x-scalar-security-query" | "flows.password.x-scalar-security-body" | "flows.password.x-tokenName" | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.password.x-scalar-credentials-location" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | `flows.password.x-scalar-security-query.${string}` | `flows.password.x-scalar-security-body.${string}` | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.x-scalar-client-id" | "flows.implicit.x-scalar-security-query" | "flows.implicit.x-scalar-security-body" | "flows.implicit.x-tokenName" | "flows.implicit.authorizationUrl" | "flows.implicit.x-scalar-redirect-uri" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | `flows.implicit.x-scalar-security-query.${string}` | `flows.implicit.x-scalar-security-body.${string}` | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.x-scalar-security-query" | "flows.clientCredentials.x-scalar-security-body" | "flows.clientCredentials.x-tokenName" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.clientCredentials.x-scalar-credentials-location" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | `flows.clientCredentials.x-scalar-security-query.${string}` | `flows.clientCredentials.x-scalar-security-body.${string}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.x-scalar-security-query" | "flows.authorizationCode.x-scalar-security-body" | "flows.authorizationCode.x-tokenName" | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "flows.authorizationCode.x-scalar-credentials-location" | "flows.authorizationCode.x-usePkce" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}` | `flows.authorizationCode.x-scalar-security-query.${string}` | `flows.authorizationCode.x-scalar-security-body.${string}`>(uid: (string & import("zod").$brand<"securityScheme">) | null | undefined, path: P, value: (P extends "in" | "value" | "description" | "type" | "uid" | "name" | "nameKey" ? {
|
|
287
287
|
type: "apiKey";
|
|
288
|
-
value: string;
|
|
289
288
|
name: string;
|
|
290
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
291
|
-
nameKey: string;
|
|
292
289
|
in: "cookie" | "query" | "header";
|
|
290
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
291
|
+
nameKey: string;
|
|
292
|
+
value: string;
|
|
293
293
|
description?: string | undefined;
|
|
294
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "description" | "type" | "uid" | "name" | "
|
|
294
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "in" | "value" | "description" | "type" | "uid" | "name" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
295
295
|
type: "apiKey";
|
|
296
|
-
value: string;
|
|
297
296
|
name: string;
|
|
298
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
299
|
-
nameKey: string;
|
|
300
297
|
in: "cookie" | "query" | "header";
|
|
298
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
299
|
+
nameKey: string;
|
|
300
|
+
value: string;
|
|
301
301
|
description?: string | undefined;
|
|
302
302
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
303
303
|
type: "apiKey";
|
|
304
|
-
value: string;
|
|
305
304
|
name: string;
|
|
306
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
307
|
-
nameKey: string;
|
|
308
305
|
in: "cookie" | "query" | "header";
|
|
306
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
307
|
+
nameKey: string;
|
|
308
|
+
value: string;
|
|
309
309
|
description?: string | undefined;
|
|
310
|
-
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "
|
|
310
|
+
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "username" | "password" | "token" ? {
|
|
311
311
|
type: "http";
|
|
312
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
313
|
-
nameKey: string;
|
|
314
312
|
scheme: "basic" | "bearer";
|
|
315
313
|
bearerFormat: string;
|
|
314
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
315
|
+
nameKey: string;
|
|
316
316
|
username: string;
|
|
317
317
|
password: string;
|
|
318
318
|
token: string;
|
|
319
319
|
description?: string | undefined;
|
|
320
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "
|
|
320
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "username" | "password" | "token" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
321
321
|
type: "http";
|
|
322
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
323
|
-
nameKey: string;
|
|
324
322
|
scheme: "basic" | "bearer";
|
|
325
323
|
bearerFormat: string;
|
|
324
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
325
|
+
nameKey: string;
|
|
326
326
|
username: string;
|
|
327
327
|
password: string;
|
|
328
328
|
token: string;
|
|
329
329
|
description?: string | undefined;
|
|
330
330
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
331
331
|
type: "http";
|
|
332
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
333
|
-
nameKey: string;
|
|
334
332
|
scheme: "basic" | "bearer";
|
|
335
333
|
bearerFormat: string;
|
|
334
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
335
|
+
nameKey: string;
|
|
336
336
|
username: string;
|
|
337
337
|
password: string;
|
|
338
338
|
token: string;
|
|
339
339
|
description?: string | undefined;
|
|
340
340
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "openIdConnectUrl" ? {
|
|
341
341
|
type: "openIdConnect";
|
|
342
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
343
|
-
nameKey: string;
|
|
344
342
|
openIdConnectUrl: string;
|
|
343
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
344
|
+
nameKey: string;
|
|
345
345
|
description?: string | undefined;
|
|
346
346
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "openIdConnectUrl" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
347
347
|
type: "openIdConnect";
|
|
348
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
349
|
-
nameKey: string;
|
|
350
348
|
openIdConnectUrl: string;
|
|
349
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
350
|
+
nameKey: string;
|
|
351
351
|
description?: string | undefined;
|
|
352
352
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
353
353
|
type: "openIdConnect";
|
|
354
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
355
|
-
nameKey: string;
|
|
356
354
|
openIdConnectUrl: string;
|
|
355
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
356
|
+
nameKey: string;
|
|
357
357
|
description?: string | undefined;
|
|
358
358
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "x-default-scopes" | "flows" ? {
|
|
359
359
|
type: "oauth2";
|
|
360
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
361
|
-
nameKey: string;
|
|
362
360
|
flows: {
|
|
363
|
-
|
|
364
|
-
type: "password";
|
|
365
|
-
username: string;
|
|
366
|
-
password: string;
|
|
367
|
-
token: string;
|
|
361
|
+
implicit?: {
|
|
368
362
|
refreshUrl: string;
|
|
369
363
|
scopes: Record<string, string>;
|
|
370
364
|
selectedScopes: string[];
|
|
371
365
|
"x-scalar-client-id": string;
|
|
372
|
-
|
|
373
|
-
|
|
366
|
+
token: string;
|
|
367
|
+
type: "implicit";
|
|
368
|
+
authorizationUrl: string;
|
|
369
|
+
"x-scalar-redirect-uri": string;
|
|
374
370
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
375
371
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
376
372
|
"x-tokenName"?: string | undefined;
|
|
377
|
-
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
378
373
|
} | undefined;
|
|
379
|
-
|
|
380
|
-
type: "implicit";
|
|
381
|
-
token: string;
|
|
374
|
+
password?: {
|
|
382
375
|
refreshUrl: string;
|
|
383
376
|
scopes: Record<string, string>;
|
|
384
377
|
selectedScopes: string[];
|
|
385
378
|
"x-scalar-client-id": string;
|
|
386
|
-
|
|
387
|
-
"
|
|
379
|
+
token: string;
|
|
380
|
+
type: "password";
|
|
381
|
+
tokenUrl: string;
|
|
382
|
+
clientSecret: string;
|
|
383
|
+
username: string;
|
|
384
|
+
password: string;
|
|
388
385
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
389
386
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
390
387
|
"x-tokenName"?: string | undefined;
|
|
388
|
+
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
391
389
|
} | undefined;
|
|
392
390
|
clientCredentials?: {
|
|
393
|
-
type: "clientCredentials";
|
|
394
|
-
token: string;
|
|
395
391
|
refreshUrl: string;
|
|
396
392
|
scopes: Record<string, string>;
|
|
397
393
|
selectedScopes: string[];
|
|
398
394
|
"x-scalar-client-id": string;
|
|
395
|
+
token: string;
|
|
396
|
+
type: "clientCredentials";
|
|
399
397
|
tokenUrl: string;
|
|
400
398
|
clientSecret: string;
|
|
401
399
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
@@ -404,66 +402,66 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
404
402
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
405
403
|
} | undefined;
|
|
406
404
|
authorizationCode?: {
|
|
407
|
-
type: "authorizationCode";
|
|
408
|
-
token: string;
|
|
409
405
|
refreshUrl: string;
|
|
410
406
|
scopes: Record<string, string>;
|
|
411
407
|
selectedScopes: string[];
|
|
412
408
|
"x-scalar-client-id": string;
|
|
409
|
+
token: string;
|
|
410
|
+
type: "authorizationCode";
|
|
413
411
|
authorizationUrl: string;
|
|
412
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
414
413
|
"x-scalar-redirect-uri": string;
|
|
415
414
|
tokenUrl: string;
|
|
416
415
|
clientSecret: string;
|
|
417
|
-
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
418
416
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
419
417
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
420
418
|
"x-tokenName"?: string | undefined;
|
|
421
419
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
422
420
|
} | undefined;
|
|
423
421
|
};
|
|
422
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
423
|
+
nameKey: string;
|
|
424
424
|
description?: string | undefined;
|
|
425
425
|
'x-default-scopes'?: string[] | undefined;
|
|
426
426
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "x-default-scopes" | "flows" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
427
427
|
type: "oauth2";
|
|
428
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
429
|
-
nameKey: string;
|
|
430
428
|
flows: {
|
|
431
|
-
|
|
432
|
-
type: "password";
|
|
433
|
-
username: string;
|
|
434
|
-
password: string;
|
|
435
|
-
token: string;
|
|
429
|
+
implicit?: {
|
|
436
430
|
refreshUrl: string;
|
|
437
431
|
scopes: Record<string, string>;
|
|
438
432
|
selectedScopes: string[];
|
|
439
433
|
"x-scalar-client-id": string;
|
|
440
|
-
|
|
441
|
-
|
|
434
|
+
token: string;
|
|
435
|
+
type: "implicit";
|
|
436
|
+
authorizationUrl: string;
|
|
437
|
+
"x-scalar-redirect-uri": string;
|
|
442
438
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
443
439
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
444
440
|
"x-tokenName"?: string | undefined;
|
|
445
|
-
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
446
441
|
} | undefined;
|
|
447
|
-
|
|
448
|
-
type: "implicit";
|
|
449
|
-
token: string;
|
|
442
|
+
password?: {
|
|
450
443
|
refreshUrl: string;
|
|
451
444
|
scopes: Record<string, string>;
|
|
452
445
|
selectedScopes: string[];
|
|
453
446
|
"x-scalar-client-id": string;
|
|
454
|
-
|
|
455
|
-
"
|
|
447
|
+
token: string;
|
|
448
|
+
type: "password";
|
|
449
|
+
tokenUrl: string;
|
|
450
|
+
clientSecret: string;
|
|
451
|
+
username: string;
|
|
452
|
+
password: string;
|
|
456
453
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
457
454
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
458
455
|
"x-tokenName"?: string | undefined;
|
|
456
|
+
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
459
457
|
} | undefined;
|
|
460
458
|
clientCredentials?: {
|
|
461
|
-
type: "clientCredentials";
|
|
462
|
-
token: string;
|
|
463
459
|
refreshUrl: string;
|
|
464
460
|
scopes: Record<string, string>;
|
|
465
461
|
selectedScopes: string[];
|
|
466
462
|
"x-scalar-client-id": string;
|
|
463
|
+
token: string;
|
|
464
|
+
type: "clientCredentials";
|
|
467
465
|
tokenUrl: string;
|
|
468
466
|
clientSecret: string;
|
|
469
467
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
@@ -472,66 +470,66 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
472
470
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
473
471
|
} | undefined;
|
|
474
472
|
authorizationCode?: {
|
|
475
|
-
type: "authorizationCode";
|
|
476
|
-
token: string;
|
|
477
473
|
refreshUrl: string;
|
|
478
474
|
scopes: Record<string, string>;
|
|
479
475
|
selectedScopes: string[];
|
|
480
476
|
"x-scalar-client-id": string;
|
|
477
|
+
token: string;
|
|
478
|
+
type: "authorizationCode";
|
|
481
479
|
authorizationUrl: string;
|
|
480
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
482
481
|
"x-scalar-redirect-uri": string;
|
|
483
482
|
tokenUrl: string;
|
|
484
483
|
clientSecret: string;
|
|
485
|
-
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
486
484
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
487
485
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
488
486
|
"x-tokenName"?: string | undefined;
|
|
489
487
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
490
488
|
} | undefined;
|
|
491
489
|
};
|
|
490
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
491
|
+
nameKey: string;
|
|
492
492
|
description?: string | undefined;
|
|
493
493
|
'x-default-scopes'?: string[] | undefined;
|
|
494
494
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
495
495
|
type: "oauth2";
|
|
496
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
497
|
-
nameKey: string;
|
|
498
496
|
flows: {
|
|
499
|
-
|
|
500
|
-
type: "password";
|
|
501
|
-
username: string;
|
|
502
|
-
password: string;
|
|
503
|
-
token: string;
|
|
497
|
+
implicit?: {
|
|
504
498
|
refreshUrl: string;
|
|
505
499
|
scopes: Record<string, string>;
|
|
506
500
|
selectedScopes: string[];
|
|
507
501
|
"x-scalar-client-id": string;
|
|
508
|
-
|
|
509
|
-
|
|
502
|
+
token: string;
|
|
503
|
+
type: "implicit";
|
|
504
|
+
authorizationUrl: string;
|
|
505
|
+
"x-scalar-redirect-uri": string;
|
|
510
506
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
511
507
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
512
508
|
"x-tokenName"?: string | undefined;
|
|
513
|
-
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
514
509
|
} | undefined;
|
|
515
|
-
|
|
516
|
-
type: "implicit";
|
|
517
|
-
token: string;
|
|
510
|
+
password?: {
|
|
518
511
|
refreshUrl: string;
|
|
519
512
|
scopes: Record<string, string>;
|
|
520
513
|
selectedScopes: string[];
|
|
521
514
|
"x-scalar-client-id": string;
|
|
522
|
-
|
|
523
|
-
"
|
|
515
|
+
token: string;
|
|
516
|
+
type: "password";
|
|
517
|
+
tokenUrl: string;
|
|
518
|
+
clientSecret: string;
|
|
519
|
+
username: string;
|
|
520
|
+
password: string;
|
|
524
521
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
525
522
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
526
523
|
"x-tokenName"?: string | undefined;
|
|
524
|
+
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
527
525
|
} | undefined;
|
|
528
526
|
clientCredentials?: {
|
|
529
|
-
type: "clientCredentials";
|
|
530
|
-
token: string;
|
|
531
527
|
refreshUrl: string;
|
|
532
528
|
scopes: Record<string, string>;
|
|
533
529
|
selectedScopes: string[];
|
|
534
530
|
"x-scalar-client-id": string;
|
|
531
|
+
token: string;
|
|
532
|
+
type: "clientCredentials";
|
|
535
533
|
tokenUrl: string;
|
|
536
534
|
clientSecret: string;
|
|
537
535
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
@@ -540,139 +538,139 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
540
538
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
541
539
|
} | undefined;
|
|
542
540
|
authorizationCode?: {
|
|
543
|
-
type: "authorizationCode";
|
|
544
|
-
token: string;
|
|
545
541
|
refreshUrl: string;
|
|
546
542
|
scopes: Record<string, string>;
|
|
547
543
|
selectedScopes: string[];
|
|
548
544
|
"x-scalar-client-id": string;
|
|
545
|
+
token: string;
|
|
546
|
+
type: "authorizationCode";
|
|
549
547
|
authorizationUrl: string;
|
|
548
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
550
549
|
"x-scalar-redirect-uri": string;
|
|
551
550
|
tokenUrl: string;
|
|
552
551
|
clientSecret: string;
|
|
553
|
-
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
554
552
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
555
553
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
556
554
|
"x-tokenName"?: string | undefined;
|
|
557
555
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
558
556
|
} | undefined;
|
|
559
557
|
};
|
|
558
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
559
|
+
nameKey: string;
|
|
560
560
|
description?: string | undefined;
|
|
561
561
|
'x-default-scopes'?: string[] | undefined;
|
|
562
562
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
|
|
563
|
-
untrackedEdit: <P extends "value" | "description" | "type" | "uid" | "name" | "
|
|
563
|
+
untrackedEdit: <P extends "in" | "value" | "description" | "type" | "uid" | "name" | "nameKey" | "scheme" | "bearerFormat" | "username" | "password" | "token" | "openIdConnectUrl" | "x-default-scopes" | "flows" | `x-default-scopes.${number}` | "flows.password" | "flows.implicit" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.password.type" | "flows.password.username" | "flows.password.password" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | "flows.password.x-scalar-client-id" | "flows.password.x-scalar-security-query" | "flows.password.x-scalar-security-body" | "flows.password.x-tokenName" | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.password.x-scalar-credentials-location" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | `flows.password.x-scalar-security-query.${string}` | `flows.password.x-scalar-security-body.${string}` | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.x-scalar-client-id" | "flows.implicit.x-scalar-security-query" | "flows.implicit.x-scalar-security-body" | "flows.implicit.x-tokenName" | "flows.implicit.authorizationUrl" | "flows.implicit.x-scalar-redirect-uri" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | `flows.implicit.x-scalar-security-query.${string}` | `flows.implicit.x-scalar-security-body.${string}` | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.x-scalar-security-query" | "flows.clientCredentials.x-scalar-security-body" | "flows.clientCredentials.x-tokenName" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.clientCredentials.x-scalar-credentials-location" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | `flows.clientCredentials.x-scalar-security-query.${string}` | `flows.clientCredentials.x-scalar-security-body.${string}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.x-scalar-security-query" | "flows.authorizationCode.x-scalar-security-body" | "flows.authorizationCode.x-tokenName" | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "flows.authorizationCode.x-scalar-credentials-location" | "flows.authorizationCode.x-usePkce" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}` | `flows.authorizationCode.x-scalar-security-query.${string}` | `flows.authorizationCode.x-scalar-security-body.${string}`>(uid: string & import("zod").$brand<"securityScheme">, path: P, value: (P extends "in" | "value" | "description" | "type" | "uid" | "name" | "nameKey" ? {
|
|
564
564
|
type: "apiKey";
|
|
565
|
-
value: string;
|
|
566
565
|
name: string;
|
|
567
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
568
|
-
nameKey: string;
|
|
569
566
|
in: "cookie" | "query" | "header";
|
|
567
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
568
|
+
nameKey: string;
|
|
569
|
+
value: string;
|
|
570
570
|
description?: string | undefined;
|
|
571
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "description" | "type" | "uid" | "name" | "
|
|
571
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "in" | "value" | "description" | "type" | "uid" | "name" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
572
572
|
type: "apiKey";
|
|
573
|
-
value: string;
|
|
574
573
|
name: string;
|
|
575
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
576
|
-
nameKey: string;
|
|
577
574
|
in: "cookie" | "query" | "header";
|
|
575
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
576
|
+
nameKey: string;
|
|
577
|
+
value: string;
|
|
578
578
|
description?: string | undefined;
|
|
579
579
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
580
580
|
type: "apiKey";
|
|
581
|
-
value: string;
|
|
582
581
|
name: string;
|
|
583
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
584
|
-
nameKey: string;
|
|
585
582
|
in: "cookie" | "query" | "header";
|
|
583
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
584
|
+
nameKey: string;
|
|
585
|
+
value: string;
|
|
586
586
|
description?: string | undefined;
|
|
587
|
-
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "
|
|
587
|
+
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "username" | "password" | "token" ? {
|
|
588
588
|
type: "http";
|
|
589
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
590
|
-
nameKey: string;
|
|
591
589
|
scheme: "basic" | "bearer";
|
|
592
590
|
bearerFormat: string;
|
|
591
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
592
|
+
nameKey: string;
|
|
593
593
|
username: string;
|
|
594
594
|
password: string;
|
|
595
595
|
token: string;
|
|
596
596
|
description?: string | undefined;
|
|
597
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "
|
|
597
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "username" | "password" | "token" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
598
598
|
type: "http";
|
|
599
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
600
|
-
nameKey: string;
|
|
601
599
|
scheme: "basic" | "bearer";
|
|
602
600
|
bearerFormat: string;
|
|
601
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
602
|
+
nameKey: string;
|
|
603
603
|
username: string;
|
|
604
604
|
password: string;
|
|
605
605
|
token: string;
|
|
606
606
|
description?: string | undefined;
|
|
607
607
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
608
608
|
type: "http";
|
|
609
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
610
|
-
nameKey: string;
|
|
611
609
|
scheme: "basic" | "bearer";
|
|
612
610
|
bearerFormat: string;
|
|
611
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
612
|
+
nameKey: string;
|
|
613
613
|
username: string;
|
|
614
614
|
password: string;
|
|
615
615
|
token: string;
|
|
616
616
|
description?: string | undefined;
|
|
617
617
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "openIdConnectUrl" ? {
|
|
618
618
|
type: "openIdConnect";
|
|
619
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
620
|
-
nameKey: string;
|
|
621
619
|
openIdConnectUrl: string;
|
|
620
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
621
|
+
nameKey: string;
|
|
622
622
|
description?: string | undefined;
|
|
623
623
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "openIdConnectUrl" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
624
624
|
type: "openIdConnect";
|
|
625
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
626
|
-
nameKey: string;
|
|
627
625
|
openIdConnectUrl: string;
|
|
626
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
627
|
+
nameKey: string;
|
|
628
628
|
description?: string | undefined;
|
|
629
629
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
630
630
|
type: "openIdConnect";
|
|
631
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
632
|
-
nameKey: string;
|
|
633
631
|
openIdConnectUrl: string;
|
|
632
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
633
|
+
nameKey: string;
|
|
634
634
|
description?: string | undefined;
|
|
635
635
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "x-default-scopes" | "flows" ? {
|
|
636
636
|
type: "oauth2";
|
|
637
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
638
|
-
nameKey: string;
|
|
639
637
|
flows: {
|
|
640
|
-
|
|
641
|
-
type: "password";
|
|
642
|
-
username: string;
|
|
643
|
-
password: string;
|
|
644
|
-
token: string;
|
|
638
|
+
implicit?: {
|
|
645
639
|
refreshUrl: string;
|
|
646
640
|
scopes: Record<string, string>;
|
|
647
641
|
selectedScopes: string[];
|
|
648
642
|
"x-scalar-client-id": string;
|
|
649
|
-
|
|
650
|
-
|
|
643
|
+
token: string;
|
|
644
|
+
type: "implicit";
|
|
645
|
+
authorizationUrl: string;
|
|
646
|
+
"x-scalar-redirect-uri": string;
|
|
651
647
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
652
648
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
653
649
|
"x-tokenName"?: string | undefined;
|
|
654
|
-
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
655
650
|
} | undefined;
|
|
656
|
-
|
|
657
|
-
type: "implicit";
|
|
658
|
-
token: string;
|
|
651
|
+
password?: {
|
|
659
652
|
refreshUrl: string;
|
|
660
653
|
scopes: Record<string, string>;
|
|
661
654
|
selectedScopes: string[];
|
|
662
655
|
"x-scalar-client-id": string;
|
|
663
|
-
|
|
664
|
-
"
|
|
656
|
+
token: string;
|
|
657
|
+
type: "password";
|
|
658
|
+
tokenUrl: string;
|
|
659
|
+
clientSecret: string;
|
|
660
|
+
username: string;
|
|
661
|
+
password: string;
|
|
665
662
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
666
663
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
667
664
|
"x-tokenName"?: string | undefined;
|
|
665
|
+
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
668
666
|
} | undefined;
|
|
669
667
|
clientCredentials?: {
|
|
670
|
-
type: "clientCredentials";
|
|
671
|
-
token: string;
|
|
672
668
|
refreshUrl: string;
|
|
673
669
|
scopes: Record<string, string>;
|
|
674
670
|
selectedScopes: string[];
|
|
675
671
|
"x-scalar-client-id": string;
|
|
672
|
+
token: string;
|
|
673
|
+
type: "clientCredentials";
|
|
676
674
|
tokenUrl: string;
|
|
677
675
|
clientSecret: string;
|
|
678
676
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
@@ -681,66 +679,66 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
681
679
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
682
680
|
} | undefined;
|
|
683
681
|
authorizationCode?: {
|
|
684
|
-
type: "authorizationCode";
|
|
685
|
-
token: string;
|
|
686
682
|
refreshUrl: string;
|
|
687
683
|
scopes: Record<string, string>;
|
|
688
684
|
selectedScopes: string[];
|
|
689
685
|
"x-scalar-client-id": string;
|
|
686
|
+
token: string;
|
|
687
|
+
type: "authorizationCode";
|
|
690
688
|
authorizationUrl: string;
|
|
689
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
691
690
|
"x-scalar-redirect-uri": string;
|
|
692
691
|
tokenUrl: string;
|
|
693
692
|
clientSecret: string;
|
|
694
|
-
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
695
693
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
696
694
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
697
695
|
"x-tokenName"?: string | undefined;
|
|
698
696
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
699
697
|
} | undefined;
|
|
700
698
|
};
|
|
699
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
700
|
+
nameKey: string;
|
|
701
701
|
description?: string | undefined;
|
|
702
702
|
'x-default-scopes'?: string[] | undefined;
|
|
703
703
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "x-default-scopes" | "flows" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
704
704
|
type: "oauth2";
|
|
705
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
706
|
-
nameKey: string;
|
|
707
705
|
flows: {
|
|
708
|
-
|
|
709
|
-
type: "password";
|
|
710
|
-
username: string;
|
|
711
|
-
password: string;
|
|
712
|
-
token: string;
|
|
706
|
+
implicit?: {
|
|
713
707
|
refreshUrl: string;
|
|
714
708
|
scopes: Record<string, string>;
|
|
715
709
|
selectedScopes: string[];
|
|
716
710
|
"x-scalar-client-id": string;
|
|
717
|
-
|
|
718
|
-
|
|
711
|
+
token: string;
|
|
712
|
+
type: "implicit";
|
|
713
|
+
authorizationUrl: string;
|
|
714
|
+
"x-scalar-redirect-uri": string;
|
|
719
715
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
720
716
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
721
717
|
"x-tokenName"?: string | undefined;
|
|
722
|
-
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
723
718
|
} | undefined;
|
|
724
|
-
|
|
725
|
-
type: "implicit";
|
|
726
|
-
token: string;
|
|
719
|
+
password?: {
|
|
727
720
|
refreshUrl: string;
|
|
728
721
|
scopes: Record<string, string>;
|
|
729
722
|
selectedScopes: string[];
|
|
730
723
|
"x-scalar-client-id": string;
|
|
731
|
-
|
|
732
|
-
"
|
|
724
|
+
token: string;
|
|
725
|
+
type: "password";
|
|
726
|
+
tokenUrl: string;
|
|
727
|
+
clientSecret: string;
|
|
728
|
+
username: string;
|
|
729
|
+
password: string;
|
|
733
730
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
734
731
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
735
732
|
"x-tokenName"?: string | undefined;
|
|
733
|
+
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
736
734
|
} | undefined;
|
|
737
735
|
clientCredentials?: {
|
|
738
|
-
type: "clientCredentials";
|
|
739
|
-
token: string;
|
|
740
736
|
refreshUrl: string;
|
|
741
737
|
scopes: Record<string, string>;
|
|
742
738
|
selectedScopes: string[];
|
|
743
739
|
"x-scalar-client-id": string;
|
|
740
|
+
token: string;
|
|
741
|
+
type: "clientCredentials";
|
|
744
742
|
tokenUrl: string;
|
|
745
743
|
clientSecret: string;
|
|
746
744
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
@@ -749,66 +747,66 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
749
747
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
750
748
|
} | undefined;
|
|
751
749
|
authorizationCode?: {
|
|
752
|
-
type: "authorizationCode";
|
|
753
|
-
token: string;
|
|
754
750
|
refreshUrl: string;
|
|
755
751
|
scopes: Record<string, string>;
|
|
756
752
|
selectedScopes: string[];
|
|
757
753
|
"x-scalar-client-id": string;
|
|
754
|
+
token: string;
|
|
755
|
+
type: "authorizationCode";
|
|
758
756
|
authorizationUrl: string;
|
|
757
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
759
758
|
"x-scalar-redirect-uri": string;
|
|
760
759
|
tokenUrl: string;
|
|
761
760
|
clientSecret: string;
|
|
762
|
-
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
763
761
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
764
762
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
765
763
|
"x-tokenName"?: string | undefined;
|
|
766
764
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
767
765
|
} | undefined;
|
|
768
766
|
};
|
|
767
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
768
|
+
nameKey: string;
|
|
769
769
|
description?: string | undefined;
|
|
770
770
|
'x-default-scopes'?: string[] | undefined;
|
|
771
771
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
772
772
|
type: "oauth2";
|
|
773
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
774
|
-
nameKey: string;
|
|
775
773
|
flows: {
|
|
776
|
-
|
|
777
|
-
type: "password";
|
|
778
|
-
username: string;
|
|
779
|
-
password: string;
|
|
780
|
-
token: string;
|
|
774
|
+
implicit?: {
|
|
781
775
|
refreshUrl: string;
|
|
782
776
|
scopes: Record<string, string>;
|
|
783
777
|
selectedScopes: string[];
|
|
784
778
|
"x-scalar-client-id": string;
|
|
785
|
-
|
|
786
|
-
|
|
779
|
+
token: string;
|
|
780
|
+
type: "implicit";
|
|
781
|
+
authorizationUrl: string;
|
|
782
|
+
"x-scalar-redirect-uri": string;
|
|
787
783
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
788
784
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
789
785
|
"x-tokenName"?: string | undefined;
|
|
790
|
-
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
791
786
|
} | undefined;
|
|
792
|
-
|
|
793
|
-
type: "implicit";
|
|
794
|
-
token: string;
|
|
787
|
+
password?: {
|
|
795
788
|
refreshUrl: string;
|
|
796
789
|
scopes: Record<string, string>;
|
|
797
790
|
selectedScopes: string[];
|
|
798
791
|
"x-scalar-client-id": string;
|
|
799
|
-
|
|
800
|
-
"
|
|
792
|
+
token: string;
|
|
793
|
+
type: "password";
|
|
794
|
+
tokenUrl: string;
|
|
795
|
+
clientSecret: string;
|
|
796
|
+
username: string;
|
|
797
|
+
password: string;
|
|
801
798
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
802
799
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
803
800
|
"x-tokenName"?: string | undefined;
|
|
801
|
+
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
804
802
|
} | undefined;
|
|
805
803
|
clientCredentials?: {
|
|
806
|
-
type: "clientCredentials";
|
|
807
|
-
token: string;
|
|
808
804
|
refreshUrl: string;
|
|
809
805
|
scopes: Record<string, string>;
|
|
810
806
|
selectedScopes: string[];
|
|
811
807
|
"x-scalar-client-id": string;
|
|
808
|
+
token: string;
|
|
809
|
+
type: "clientCredentials";
|
|
812
810
|
tokenUrl: string;
|
|
813
811
|
clientSecret: string;
|
|
814
812
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
@@ -817,28 +815,30 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
817
815
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
818
816
|
} | undefined;
|
|
819
817
|
authorizationCode?: {
|
|
820
|
-
type: "authorizationCode";
|
|
821
|
-
token: string;
|
|
822
818
|
refreshUrl: string;
|
|
823
819
|
scopes: Record<string, string>;
|
|
824
820
|
selectedScopes: string[];
|
|
825
821
|
"x-scalar-client-id": string;
|
|
822
|
+
token: string;
|
|
823
|
+
type: "authorizationCode";
|
|
826
824
|
authorizationUrl: string;
|
|
825
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
827
826
|
"x-scalar-redirect-uri": string;
|
|
828
827
|
tokenUrl: string;
|
|
829
828
|
clientSecret: string;
|
|
830
|
-
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
831
829
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
832
830
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
833
831
|
"x-tokenName"?: string | undefined;
|
|
834
832
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
835
833
|
} | undefined;
|
|
836
834
|
};
|
|
835
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
836
|
+
nameKey: string;
|
|
837
837
|
description?: string | undefined;
|
|
838
838
|
'x-default-scopes'?: string[] | undefined;
|
|
839
839
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
|
|
840
|
-
undo: (uid: string & import("zod")
|
|
841
|
-
redo: (uid: string & import("zod")
|
|
840
|
+
undo: (uid: string & import("zod").$brand<"securityScheme">) => void;
|
|
841
|
+
redo: (uid: string & import("zod").$brand<"securityScheme">) => void;
|
|
842
842
|
reset: () => void;
|
|
843
843
|
};
|
|
844
844
|
};
|
|
@@ -846,69 +846,67 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
846
846
|
export declare function extendedSecurityDataFactory({ securitySchemeMutators, collectionMutators, collections, requests, requestMutators, }: StoreContext): {
|
|
847
847
|
addSecurityScheme: (payload: SecuritySchemePayload, collectionUid: Collection["uid"]) => {
|
|
848
848
|
type: "apiKey";
|
|
849
|
-
value: string;
|
|
850
849
|
name: string;
|
|
851
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
852
|
-
nameKey: string;
|
|
853
850
|
in: "cookie" | "query" | "header";
|
|
851
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
852
|
+
nameKey: string;
|
|
853
|
+
value: string;
|
|
854
854
|
description?: string | undefined;
|
|
855
855
|
} | {
|
|
856
856
|
type: "http";
|
|
857
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
858
|
-
nameKey: string;
|
|
859
857
|
scheme: "basic" | "bearer";
|
|
860
858
|
bearerFormat: string;
|
|
859
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
860
|
+
nameKey: string;
|
|
861
861
|
username: string;
|
|
862
862
|
password: string;
|
|
863
863
|
token: string;
|
|
864
864
|
description?: string | undefined;
|
|
865
865
|
} | {
|
|
866
866
|
type: "openIdConnect";
|
|
867
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
868
|
-
nameKey: string;
|
|
869
867
|
openIdConnectUrl: string;
|
|
868
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
869
|
+
nameKey: string;
|
|
870
870
|
description?: string | undefined;
|
|
871
871
|
} | {
|
|
872
872
|
type: "oauth2";
|
|
873
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
874
|
-
nameKey: string;
|
|
875
873
|
flows: {
|
|
876
|
-
|
|
877
|
-
type: "password";
|
|
878
|
-
username: string;
|
|
879
|
-
password: string;
|
|
880
|
-
token: string;
|
|
874
|
+
implicit?: {
|
|
881
875
|
refreshUrl: string;
|
|
882
876
|
scopes: Record<string, string>;
|
|
883
877
|
selectedScopes: string[];
|
|
884
878
|
"x-scalar-client-id": string;
|
|
885
|
-
|
|
886
|
-
|
|
879
|
+
token: string;
|
|
880
|
+
type: "implicit";
|
|
881
|
+
authorizationUrl: string;
|
|
882
|
+
"x-scalar-redirect-uri": string;
|
|
887
883
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
888
884
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
889
885
|
"x-tokenName"?: string | undefined;
|
|
890
|
-
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
891
886
|
} | undefined;
|
|
892
|
-
|
|
893
|
-
type: "implicit";
|
|
894
|
-
token: string;
|
|
887
|
+
password?: {
|
|
895
888
|
refreshUrl: string;
|
|
896
889
|
scopes: Record<string, string>;
|
|
897
890
|
selectedScopes: string[];
|
|
898
891
|
"x-scalar-client-id": string;
|
|
899
|
-
|
|
900
|
-
"
|
|
892
|
+
token: string;
|
|
893
|
+
type: "password";
|
|
894
|
+
tokenUrl: string;
|
|
895
|
+
clientSecret: string;
|
|
896
|
+
username: string;
|
|
897
|
+
password: string;
|
|
901
898
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
902
899
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
903
900
|
"x-tokenName"?: string | undefined;
|
|
901
|
+
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
904
902
|
} | undefined;
|
|
905
903
|
clientCredentials?: {
|
|
906
|
-
type: "clientCredentials";
|
|
907
|
-
token: string;
|
|
908
904
|
refreshUrl: string;
|
|
909
905
|
scopes: Record<string, string>;
|
|
910
906
|
selectedScopes: string[];
|
|
911
907
|
"x-scalar-client-id": string;
|
|
908
|
+
token: string;
|
|
909
|
+
type: "clientCredentials";
|
|
912
910
|
tokenUrl: string;
|
|
913
911
|
clientSecret: string;
|
|
914
912
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
@@ -917,23 +915,25 @@ export declare function extendedSecurityDataFactory({ securitySchemeMutators, co
|
|
|
917
915
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
918
916
|
} | undefined;
|
|
919
917
|
authorizationCode?: {
|
|
920
|
-
type: "authorizationCode";
|
|
921
|
-
token: string;
|
|
922
918
|
refreshUrl: string;
|
|
923
919
|
scopes: Record<string, string>;
|
|
924
920
|
selectedScopes: string[];
|
|
925
921
|
"x-scalar-client-id": string;
|
|
922
|
+
token: string;
|
|
923
|
+
type: "authorizationCode";
|
|
926
924
|
authorizationUrl: string;
|
|
925
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
927
926
|
"x-scalar-redirect-uri": string;
|
|
928
927
|
tokenUrl: string;
|
|
929
928
|
clientSecret: string;
|
|
930
|
-
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
931
929
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
932
930
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
933
931
|
"x-tokenName"?: string | undefined;
|
|
934
932
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
935
933
|
} | undefined;
|
|
936
934
|
};
|
|
935
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
936
|
+
nameKey: string;
|
|
937
937
|
description?: string | undefined;
|
|
938
938
|
'x-default-scopes'?: string[] | undefined;
|
|
939
939
|
};
|