Skip to content

Commit

Permalink
Adding set account summary version
Browse files Browse the repository at this point in the history
* based upon this for passphrases support in console: https://keeper.atlassian.net/wiki/spaces/KA/pages/1096089857/account+summary+REST
  • Loading branch information
brianwphamSF committed Jan 31, 2024
1 parent b3982c9 commit 26db381
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion keeperapi/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@keeper-security/keeperapi",
"description": "Keeper API Javascript SDK",
"version": "16.0.51",
"version": "16.0.52",
"browser": "dist/index.es.js",
"main": "dist/index.cjs.js",
"types": "dist/node/index.d.ts",
Expand Down
7 changes: 6 additions & 1 deletion keeperapi/src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export class Auth {
private socket?: SocketListener;
public clientKey?: Uint8Array;
private _accountSummary?: IAccountSummaryElements;
private _accountSummaryVersion: number = 1

constructor(options: ClientConfiguration) {
if (options.deviceConfig && options.deviceToken) {
Expand Down Expand Up @@ -1018,10 +1019,14 @@ export class Auth {

async loadAccountSummary() {
this._accountSummary = await this.executeRest(accountSummaryMessage({
summaryVersion: 1
summaryVersion: this._accountSummaryVersion
}));
}

setAccountSummaryVersion(version: number) {
this._accountSummaryVersion = version
}

// async executeCommand<Command extends KeeperCommand>(command: Command): Promise<Command["response"]> {
// if (!command.username) {
// command.username = this._username;
Expand Down

0 comments on commit 26db381

Please sign in to comment.