@scalar/api-client 1.1.11 → 1.1.13

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.
@@ -2,6 +2,7 @@ import { type AuthenticationState } from '@scalar/oas-utils';
2
2
  export declare const createEmptyAuthenticationState: () => AuthenticationState;
3
3
  export declare const useAuthenticationStore: () => {
4
4
  authentication: {
5
+ customSecurity: boolean;
5
6
  preferredSecurityScheme: string | null;
6
7
  securitySchemes?: {
7
8
  [key: string]: import("@scalar/openapi-parser").OpenAPIV3.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3.SecuritySchemeObject;
@@ -25,6 +26,30 @@ export declare const useAuthenticationStore: () => {
25
26
  state: string;
26
27
  };
27
28
  };
28
- setAuthentication: (newState: Partial<AuthenticationState>) => void;
29
+ setAuthentication: (newState: Partial<AuthenticationState>) => {
30
+ customSecurity: boolean;
31
+ preferredSecurityScheme: string | null;
32
+ securitySchemes?: {
33
+ [key: string]: import("@scalar/openapi-parser").OpenAPIV3.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3.SecuritySchemeObject;
34
+ } | Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3.SecuritySchemeObject> | undefined;
35
+ http: {
36
+ basic: {
37
+ username: string;
38
+ password: string;
39
+ };
40
+ bearer: {
41
+ token: string;
42
+ };
43
+ };
44
+ apiKey: {
45
+ token: string;
46
+ };
47
+ oAuth2: {
48
+ clientId: string;
49
+ scopes: string[];
50
+ accessToken: string;
51
+ state: string;
52
+ };
53
+ } & Partial<AuthenticationState>;
29
54
  };
30
55
  //# sourceMappingURL=useAuthenticationStore.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAuthenticationStore.d.ts","sourceRoot":"","sources":["../../src/stores/useAuthenticationStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAI5D,eAAO,MAAM,8BAA8B,QAAO,mBAoBhD,CAAA;AAaF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;kCAPE,QAAQ,mBAAmB,CAAC;CAU/D,CAAA"}
1
+ {"version":3,"file":"useAuthenticationStore.d.ts","sourceRoot":"","sources":["../../src/stores/useAuthenticationStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAI5D,eAAO,MAAM,8BAA8B,QAAO,mBAsBhD,CAAA;AASF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;kCAHE,QAAQ,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CAM/D,CAAA"}
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "rest",
14
14
  "testing"
15
15
  ],
16
- "version": "1.1.11",
16
+ "version": "1.1.13",
17
17
  "engines": {
18
18
  "node": ">=18"
19
19
  },
@@ -42,7 +42,7 @@
42
42
  "nanoid": "^5.0.1",
43
43
  "pretty-bytes": "^6.1.1",
44
44
  "pretty-ms": "^8.0.0",
45
- "@scalar/components": "0.4.8",
45
+ "@scalar/components": "0.4.9",
46
46
  "@scalar/themes": "0.6.7",
47
47
  "@scalar/use-codemirror": "0.9.1",
48
48
  "@scalar/use-modal": "0.2.9"
@@ -57,13 +57,13 @@
57
57
  "vitest": "^1.2.2",
58
58
  "vue": "^3.3.0",
59
59
  "vue-tsc": "^1.8.19",
60
+ "@scalar/echo-server": "0.6.0",
60
61
  "@scalar/api-client-proxy": "0.5.23",
61
- "@scalar/oas-utils": "0.1.2",
62
- "@scalar/echo-server": "0.6.0"
62
+ "@scalar/oas-utils": "0.1.3"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "vue": "^3.3.0",
66
- "@scalar/oas-utils": "0.1.2"
66
+ "@scalar/oas-utils": "0.1.3"
67
67
  },
68
68
  "scripts": {
69
69
  "build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",