@scalar/api-client 2.3.27 → 2.3.28
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 +10 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts +4 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +2 -1
- package/dist/components/CodeInput/index.d.ts +2 -0
- package/dist/components/CodeInput/index.d.ts.map +1 -0
- package/dist/components/CodeInput/index.js +4 -0
- package/dist/components/DataTable/DataTableInput.vue.d.ts +6 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/index.d.ts +2 -0
- package/dist/components/ViewLayout/index.d.ts.map +1 -0
- package/dist/components/ViewLayout/index.js +4 -0
- package/dist/layouts/App/create-api-client-app.d.ts +10 -10
- package/dist/layouts/Modal/create-api-client-modal.d.ts +20 -20
- package/dist/layouts/Web/create-api-client-web.d.ts +10 -10
- package/dist/libs/create-client.d.ts +10 -10
- package/dist/store/security-schemes.d.ts +10 -10
- package/dist/store/store.d.ts +10 -10
- package/dist/style.css +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +23 -22
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +20 -10
|
@@ -382,8 +382,8 @@ export declare const createApiClient: ({ el, appComponent, configuration: _confi
|
|
|
382
382
|
}>;
|
|
383
383
|
securitySchemes: Record<string, {
|
|
384
384
|
name: string;
|
|
385
|
-
type: "apiKey";
|
|
386
385
|
value: string;
|
|
386
|
+
type: "apiKey";
|
|
387
387
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
388
388
|
nameKey: string;
|
|
389
389
|
in: "cookie" | "query" | "header";
|
|
@@ -2707,8 +2707,8 @@ export declare const createApiClient: ({ el, appComponent, configuration: _confi
|
|
|
2707
2707
|
securitySchemeMutators: {
|
|
2708
2708
|
rawAdd: (item: {
|
|
2709
2709
|
name: string;
|
|
2710
|
-
type: "apiKey";
|
|
2711
2710
|
value: string;
|
|
2711
|
+
type: "apiKey";
|
|
2712
2712
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
2713
2713
|
nameKey: string;
|
|
2714
2714
|
in: "cookie" | "query" | "header";
|
|
@@ -2785,8 +2785,8 @@ export declare const createApiClient: ({ el, appComponent, configuration: _confi
|
|
|
2785
2785
|
}) => void;
|
|
2786
2786
|
add: (payload: import("@scalar/types/entities").SecuritySchemePayload, collectionUid: import("@scalar/oas-utils/entities/spec").Collection["uid"]) => {
|
|
2787
2787
|
name: string;
|
|
2788
|
-
type: "apiKey";
|
|
2789
2788
|
value: string;
|
|
2789
|
+
type: "apiKey";
|
|
2790
2790
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
2791
2791
|
nameKey: string;
|
|
2792
2792
|
in: "cookie" | "query" | "header";
|
|
@@ -2864,8 +2864,8 @@ export declare const createApiClient: ({ el, appComponent, configuration: _confi
|
|
|
2864
2864
|
delete: (schemeUid: SecurityScheme["uid"]) => void;
|
|
2865
2865
|
set: (item: {
|
|
2866
2866
|
name: string;
|
|
2867
|
-
type: "apiKey";
|
|
2868
2867
|
value: string;
|
|
2868
|
+
type: "apiKey";
|
|
2869
2869
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
2870
2870
|
nameKey: string;
|
|
2871
2871
|
in: "cookie" | "query" | "header";
|
|
@@ -2942,24 +2942,24 @@ export declare const createApiClient: ({ el, appComponent, configuration: _confi
|
|
|
2942
2942
|
}) => void;
|
|
2943
2943
|
edit: <P extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "x-default-scopes" | "flows" | "password" | "username" | "token" | `x-default-scopes.${number}` | "flows.password" | "flows.implicit" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.password.type" | "flows.password.password" | "flows.password.username" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | "flows.password.x-scalar-client-id" | "flows.password.tokenUrl" | "flows.password.clientSecret" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.x-scalar-client-id" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | "flows.implicit.authorizationUrl" | "flows.implicit.x-scalar-redirect-uri" | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}` | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-usePkce">(uid: (string & import("zod").BRAND<"securityScheme">) | null | undefined, path: P, value: (P extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" ? {
|
|
2944
2944
|
name: string;
|
|
2945
|
-
type: "apiKey";
|
|
2946
2945
|
value: string;
|
|
2946
|
+
type: "apiKey";
|
|
2947
2947
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
2948
2948
|
nameKey: string;
|
|
2949
2949
|
in: "cookie" | "query" | "header";
|
|
2950
2950
|
description?: string | undefined;
|
|
2951
2951
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" ? R extends Path<{
|
|
2952
2952
|
name: string;
|
|
2953
|
-
type: "apiKey";
|
|
2954
2953
|
value: string;
|
|
2954
|
+
type: "apiKey";
|
|
2955
2955
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
2956
2956
|
nameKey: string;
|
|
2957
2957
|
in: "cookie" | "query" | "header";
|
|
2958
2958
|
description?: string | undefined;
|
|
2959
2959
|
}[K]> ? PathValue<{
|
|
2960
2960
|
name: string;
|
|
2961
|
-
type: "apiKey";
|
|
2962
2961
|
value: string;
|
|
2962
|
+
type: "apiKey";
|
|
2963
2963
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
2964
2964
|
nameKey: string;
|
|
2965
2965
|
in: "cookie" | "query" | "header";
|
|
@@ -3174,24 +3174,24 @@ export declare const createApiClient: ({ el, appComponent, configuration: _confi
|
|
|
3174
3174
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
|
|
3175
3175
|
untrackedEdit: <P extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "x-default-scopes" | "flows" | "password" | "username" | "token" | `x-default-scopes.${number}` | "flows.password" | "flows.implicit" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.password.type" | "flows.password.password" | "flows.password.username" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | "flows.password.x-scalar-client-id" | "flows.password.tokenUrl" | "flows.password.clientSecret" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.x-scalar-client-id" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | "flows.implicit.authorizationUrl" | "flows.implicit.x-scalar-redirect-uri" | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}` | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-usePkce">(uid: string & import("zod").BRAND<"securityScheme">, path: P, value: (P extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" ? {
|
|
3176
3176
|
name: string;
|
|
3177
|
-
type: "apiKey";
|
|
3178
3177
|
value: string;
|
|
3178
|
+
type: "apiKey";
|
|
3179
3179
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
3180
3180
|
nameKey: string;
|
|
3181
3181
|
in: "cookie" | "query" | "header";
|
|
3182
3182
|
description?: string | undefined;
|
|
3183
3183
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" ? R extends Path<{
|
|
3184
3184
|
name: string;
|
|
3185
|
-
type: "apiKey";
|
|
3186
3185
|
value: string;
|
|
3186
|
+
type: "apiKey";
|
|
3187
3187
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
3188
3188
|
nameKey: string;
|
|
3189
3189
|
in: "cookie" | "query" | "header";
|
|
3190
3190
|
description?: string | undefined;
|
|
3191
3191
|
}[K]> ? PathValue<{
|
|
3192
3192
|
name: string;
|
|
3193
|
-
type: "apiKey";
|
|
3194
3193
|
value: string;
|
|
3194
|
+
type: "apiKey";
|
|
3195
3195
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
3196
3196
|
nameKey: string;
|
|
3197
3197
|
in: "cookie" | "query" | "header";
|
|
@@ -4,8 +4,8 @@ import { type Collection, type SecurityScheme, type SecuritySchemePayload } from
|
|
|
4
4
|
export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
5
5
|
securitySchemes: Record<string, {
|
|
6
6
|
name: string;
|
|
7
|
-
type: "apiKey";
|
|
8
7
|
value: string;
|
|
8
|
+
type: "apiKey";
|
|
9
9
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
10
10
|
nameKey: string;
|
|
11
11
|
in: "cookie" | "query" | "header";
|
|
@@ -83,8 +83,8 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
83
83
|
securitySchemeMutators: {
|
|
84
84
|
add: (item: {
|
|
85
85
|
name: string;
|
|
86
|
-
type: "apiKey";
|
|
87
86
|
value: string;
|
|
87
|
+
type: "apiKey";
|
|
88
88
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
89
89
|
nameKey: string;
|
|
90
90
|
in: "cookie" | "query" | "header";
|
|
@@ -162,8 +162,8 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
162
162
|
delete: (uid: (string & import("zod").BRAND<"securityScheme">) | null | undefined) => void;
|
|
163
163
|
set: (item: {
|
|
164
164
|
name: string;
|
|
165
|
-
type: "apiKey";
|
|
166
165
|
value: string;
|
|
166
|
+
type: "apiKey";
|
|
167
167
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
168
168
|
nameKey: string;
|
|
169
169
|
in: "cookie" | "query" | "header";
|
|
@@ -240,24 +240,24 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
240
240
|
}) => void;
|
|
241
241
|
edit: <P extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "x-default-scopes" | "flows" | "password" | "username" | "token" | `x-default-scopes.${number}` | "flows.password" | "flows.implicit" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.password.type" | "flows.password.password" | "flows.password.username" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | "flows.password.x-scalar-client-id" | "flows.password.tokenUrl" | "flows.password.clientSecret" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.x-scalar-client-id" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | "flows.implicit.authorizationUrl" | "flows.implicit.x-scalar-redirect-uri" | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}` | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-usePkce">(uid: (string & import("zod").BRAND<"securityScheme">) | null | undefined, path: P, value: (P extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" ? {
|
|
242
242
|
name: string;
|
|
243
|
-
type: "apiKey";
|
|
244
243
|
value: string;
|
|
244
|
+
type: "apiKey";
|
|
245
245
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
246
246
|
nameKey: string;
|
|
247
247
|
in: "cookie" | "query" | "header";
|
|
248
248
|
description?: string | undefined;
|
|
249
249
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
250
250
|
name: string;
|
|
251
|
-
type: "apiKey";
|
|
252
251
|
value: string;
|
|
252
|
+
type: "apiKey";
|
|
253
253
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
254
254
|
nameKey: string;
|
|
255
255
|
in: "cookie" | "query" | "header";
|
|
256
256
|
description?: string | undefined;
|
|
257
257
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
258
258
|
name: string;
|
|
259
|
-
type: "apiKey";
|
|
260
259
|
value: string;
|
|
260
|
+
type: "apiKey";
|
|
261
261
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
262
262
|
nameKey: string;
|
|
263
263
|
in: "cookie" | "query" | "header";
|
|
@@ -472,24 +472,24 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
472
472
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
|
|
473
473
|
untrackedEdit: <P extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "x-default-scopes" | "flows" | "password" | "username" | "token" | `x-default-scopes.${number}` | "flows.password" | "flows.implicit" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.password.type" | "flows.password.password" | "flows.password.username" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | "flows.password.x-scalar-client-id" | "flows.password.tokenUrl" | "flows.password.clientSecret" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.x-scalar-client-id" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | "flows.implicit.authorizationUrl" | "flows.implicit.x-scalar-redirect-uri" | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}` | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-usePkce">(uid: string & import("zod").BRAND<"securityScheme">, path: P, value: (P extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" ? {
|
|
474
474
|
name: string;
|
|
475
|
-
type: "apiKey";
|
|
476
475
|
value: string;
|
|
476
|
+
type: "apiKey";
|
|
477
477
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
478
478
|
nameKey: string;
|
|
479
479
|
in: "cookie" | "query" | "header";
|
|
480
480
|
description?: string | undefined;
|
|
481
481
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
482
482
|
name: string;
|
|
483
|
-
type: "apiKey";
|
|
484
483
|
value: string;
|
|
484
|
+
type: "apiKey";
|
|
485
485
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
486
486
|
nameKey: string;
|
|
487
487
|
in: "cookie" | "query" | "header";
|
|
488
488
|
description?: string | undefined;
|
|
489
489
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
490
490
|
name: string;
|
|
491
|
-
type: "apiKey";
|
|
492
491
|
value: string;
|
|
492
|
+
type: "apiKey";
|
|
493
493
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
494
494
|
nameKey: string;
|
|
495
495
|
in: "cookie" | "query" | "header";
|
|
@@ -711,8 +711,8 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
711
711
|
export declare function extendedSecurityDataFactory({ securitySchemeMutators, collectionMutators, collections, requests, requestMutators, }: StoreContext): {
|
|
712
712
|
addSecurityScheme: (payload: SecuritySchemePayload, collectionUid: Collection["uid"]) => {
|
|
713
713
|
name: string;
|
|
714
|
-
type: "apiKey";
|
|
715
714
|
value: string;
|
|
715
|
+
type: "apiKey";
|
|
716
716
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
717
717
|
nameKey: string;
|
|
718
718
|
in: "cookie" | "query" | "header";
|
package/dist/store/store.d.ts
CHANGED
|
@@ -305,8 +305,8 @@ export declare const createWorkspaceStore: ({ useLocalStorage, showSidebar, prox
|
|
|
305
305
|
}>;
|
|
306
306
|
securitySchemes: Record<string, {
|
|
307
307
|
name: string;
|
|
308
|
-
type: "apiKey";
|
|
309
308
|
value: string;
|
|
309
|
+
type: "apiKey";
|
|
310
310
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
311
311
|
nameKey: string;
|
|
312
312
|
in: "cookie" | "query" | "header";
|
|
@@ -2630,8 +2630,8 @@ export declare const createWorkspaceStore: ({ useLocalStorage, showSidebar, prox
|
|
|
2630
2630
|
securitySchemeMutators: {
|
|
2631
2631
|
rawAdd: (item: {
|
|
2632
2632
|
name: string;
|
|
2633
|
-
type: "apiKey";
|
|
2634
2633
|
value: string;
|
|
2634
|
+
type: "apiKey";
|
|
2635
2635
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
2636
2636
|
nameKey: string;
|
|
2637
2637
|
in: "cookie" | "query" | "header";
|
|
@@ -2708,8 +2708,8 @@ export declare const createWorkspaceStore: ({ useLocalStorage, showSidebar, prox
|
|
|
2708
2708
|
}) => void;
|
|
2709
2709
|
add: (payload: import("@scalar/types/entities").SecuritySchemePayload, collectionUid: import("@scalar/oas-utils/entities/spec").Collection["uid"]) => {
|
|
2710
2710
|
name: string;
|
|
2711
|
-
type: "apiKey";
|
|
2712
2711
|
value: string;
|
|
2712
|
+
type: "apiKey";
|
|
2713
2713
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
2714
2714
|
nameKey: string;
|
|
2715
2715
|
in: "cookie" | "query" | "header";
|
|
@@ -2787,8 +2787,8 @@ export declare const createWorkspaceStore: ({ useLocalStorage, showSidebar, prox
|
|
|
2787
2787
|
delete: (schemeUid: SecurityScheme["uid"]) => void;
|
|
2788
2788
|
set: (item: {
|
|
2789
2789
|
name: string;
|
|
2790
|
-
type: "apiKey";
|
|
2791
2790
|
value: string;
|
|
2791
|
+
type: "apiKey";
|
|
2792
2792
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
2793
2793
|
nameKey: string;
|
|
2794
2794
|
in: "cookie" | "query" | "header";
|
|
@@ -2865,24 +2865,24 @@ export declare const createWorkspaceStore: ({ useLocalStorage, showSidebar, prox
|
|
|
2865
2865
|
}) => void;
|
|
2866
2866
|
edit: <P extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "x-default-scopes" | "flows" | "password" | "username" | "token" | `x-default-scopes.${number}` | "flows.password" | "flows.implicit" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.password.type" | "flows.password.password" | "flows.password.username" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | "flows.password.x-scalar-client-id" | "flows.password.tokenUrl" | "flows.password.clientSecret" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.x-scalar-client-id" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | "flows.implicit.authorizationUrl" | "flows.implicit.x-scalar-redirect-uri" | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}` | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-usePkce">(uid: (string & import("zod").BRAND<"securityScheme">) | null | undefined, path: P, value: (P extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" ? {
|
|
2867
2867
|
name: string;
|
|
2868
|
-
type: "apiKey";
|
|
2869
2868
|
value: string;
|
|
2869
|
+
type: "apiKey";
|
|
2870
2870
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
2871
2871
|
nameKey: string;
|
|
2872
2872
|
in: "cookie" | "query" | "header";
|
|
2873
2873
|
description?: string | undefined;
|
|
2874
2874
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" ? R extends Path<{
|
|
2875
2875
|
name: string;
|
|
2876
|
-
type: "apiKey";
|
|
2877
2876
|
value: string;
|
|
2877
|
+
type: "apiKey";
|
|
2878
2878
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
2879
2879
|
nameKey: string;
|
|
2880
2880
|
in: "cookie" | "query" | "header";
|
|
2881
2881
|
description?: string | undefined;
|
|
2882
2882
|
}[K]> ? PathValue<{
|
|
2883
2883
|
name: string;
|
|
2884
|
-
type: "apiKey";
|
|
2885
2884
|
value: string;
|
|
2885
|
+
type: "apiKey";
|
|
2886
2886
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
2887
2887
|
nameKey: string;
|
|
2888
2888
|
in: "cookie" | "query" | "header";
|
|
@@ -3097,24 +3097,24 @@ export declare const createWorkspaceStore: ({ useLocalStorage, showSidebar, prox
|
|
|
3097
3097
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
|
|
3098
3098
|
untrackedEdit: <P extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "x-default-scopes" | "flows" | "password" | "username" | "token" | `x-default-scopes.${number}` | "flows.password" | "flows.implicit" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.password.type" | "flows.password.password" | "flows.password.username" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | "flows.password.x-scalar-client-id" | "flows.password.tokenUrl" | "flows.password.clientSecret" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.x-scalar-client-id" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | "flows.implicit.authorizationUrl" | "flows.implicit.x-scalar-redirect-uri" | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}` | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-usePkce">(uid: string & import("zod").BRAND<"securityScheme">, path: P, value: (P extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" ? {
|
|
3099
3099
|
name: string;
|
|
3100
|
-
type: "apiKey";
|
|
3101
3100
|
value: string;
|
|
3101
|
+
type: "apiKey";
|
|
3102
3102
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
3103
3103
|
nameKey: string;
|
|
3104
3104
|
in: "cookie" | "query" | "header";
|
|
3105
3105
|
description?: string | undefined;
|
|
3106
3106
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" ? R extends Path<{
|
|
3107
3107
|
name: string;
|
|
3108
|
-
type: "apiKey";
|
|
3109
3108
|
value: string;
|
|
3109
|
+
type: "apiKey";
|
|
3110
3110
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
3111
3111
|
nameKey: string;
|
|
3112
3112
|
in: "cookie" | "query" | "header";
|
|
3113
3113
|
description?: string | undefined;
|
|
3114
3114
|
}[K]> ? PathValue<{
|
|
3115
3115
|
name: string;
|
|
3116
|
-
type: "apiKey";
|
|
3117
3116
|
value: string;
|
|
3117
|
+
type: "apiKey";
|
|
3118
3118
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
3119
3119
|
nameKey: string;
|
|
3120
3120
|
in: "cookie" | "query" | "header";
|