@onhand-bi/sdk 0.1.8 → 0.1.10
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/controllers/client.d.ts +1 -1
- package/controllers/index.d.ts +2 -2
- package/core/client.d.ts +6 -2
- package/core/index.d.ts +3 -2
- package/core/token-manager/base-token-manager.d.ts +28 -0
- package/core/token-manager/index.d.ts +2 -0
- package/core/token-manager/internal-token-manager.d.ts +9 -0
- package/environment.d.ts +8 -4
- package/index.d.ts +8 -2
- package/index.js +1 -1
- package/index.js.LICENSE.txt +9 -0
- package/index.node.js +1 -1
- package/index.node.js.LICENSE.txt +11 -0
- package/package.json +1 -1
- package/services/cclient.d.ts +1 -1
- package/util/index.d.ts +1 -0
- package/core/base-client.d.ts +0 -13
|
@@ -11,3 +11,14 @@
|
|
|
11
11
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
12
12
|
* MIT Licensed
|
|
13
13
|
*/
|
|
14
|
+
|
|
15
|
+
/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* [js-sha256]{@link https://github.com/emn178/js-sha256}
|
|
19
|
+
*
|
|
20
|
+
* @version 0.11.0
|
|
21
|
+
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
22
|
+
* @copyright Chen, Yi-Cyuan 2014-2024
|
|
23
|
+
* @license MIT
|
|
24
|
+
*/
|
package/package.json
CHANGED
package/services/cclient.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ export declare class CClientService {
|
|
|
3
3
|
static getAccessToken(credential: CClientCredential): Promise<string>;
|
|
4
4
|
static getReports(token: string): Promise<WithMessage<ReportModel[]>>;
|
|
5
5
|
static getReportAccessToken(token: string, email: string): Promise<WithMessage<CClientGetTokenResponse>>;
|
|
6
|
-
static
|
|
6
|
+
static getRequestingPartyToken(realm: string, token: string): Promise<KeycloakTokenResponse>;
|
|
7
7
|
static refreshToken(realm: string, token: string): Promise<KeycloakTokenResponse>;
|
|
8
8
|
}
|
package/util/index.d.ts
CHANGED
package/core/base-client.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare class BaseClient {
|
|
2
|
-
private keycloak;
|
|
3
|
-
private rpt;
|
|
4
|
-
private refreshRpt;
|
|
5
|
-
constructor(clientId: string);
|
|
6
|
-
initialize(): Promise<void>;
|
|
7
|
-
tokenParsed(): import("keycloak-js").KeycloakTokenParsed | undefined;
|
|
8
|
-
logout(): Promise<void>;
|
|
9
|
-
getToken(): Promise<string>;
|
|
10
|
-
private updateToken;
|
|
11
|
-
private getRpt;
|
|
12
|
-
private refresh;
|
|
13
|
-
}
|