Skip to content

Commit 26db381

Browse files
committed
Adding set account summary version
* based upon this for passphrases support in console: https://keeper.atlassian.net/wiki/spaces/KA/pages/1096089857/account+summary+REST
1 parent b3982c9 commit 26db381

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

keeperapi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@keeper-security/keeperapi",
33
"description": "Keeper API Javascript SDK",
4-
"version": "16.0.51",
4+
"version": "16.0.52",
55
"browser": "dist/index.es.js",
66
"main": "dist/index.cjs.js",
77
"types": "dist/node/index.d.ts",

keeperapi/src/auth.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ export class Auth {
132132
private socket?: SocketListener;
133133
public clientKey?: Uint8Array;
134134
private _accountSummary?: IAccountSummaryElements;
135+
private _accountSummaryVersion: number = 1
135136

136137
constructor(options: ClientConfiguration) {
137138
if (options.deviceConfig && options.deviceToken) {
@@ -1018,10 +1019,14 @@ export class Auth {
10181019

10191020
async loadAccountSummary() {
10201021
this._accountSummary = await this.executeRest(accountSummaryMessage({
1021-
summaryVersion: 1
1022+
summaryVersion: this._accountSummaryVersion
10221023
}));
10231024
}
10241025

1026+
setAccountSummaryVersion(version: number) {
1027+
this._accountSummaryVersion = version
1028+
}
1029+
10251030
// async executeCommand<Command extends KeeperCommand>(command: Command): Promise<Command["response"]> {
10261031
// if (!command.username) {
10271032
// command.username = this._username;

0 commit comments

Comments
 (0)