Skip to content

Commit

Permalink
COR-34244-SDK-For-OTA
Browse files Browse the repository at this point in the history
  • Loading branch information
naharoni committed Dec 20, 2023
1 parent e61c7e1 commit d7031c3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/fireblocks-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1326,6 +1326,22 @@ export class FireblocksSDK {
return await this.apiClient.issueGetRequest(`/v1/management/api-users/${id}/whitelist-ip-addresses`);
}

/**
* Get the tenant's OTA (One-Time-Address) configuration
*/
public async getOtaConfiguration(): Promise<{enabled: boolean}> {
return await this.apiClient.issueGetRequest("/v1/management/ota");
}

/**
* Update the tenant's OTA (One-Time-Address) configuration
* @param enable
*/
public async updateOtaConfiguration(enable: boolean): Promise<{enabled: boolean}> {
const body = { enable };
return await this.apiClient.issuePutRequest("/v1/management/ota", body);
}

/** Gets all Users Groups for your tenant
*/
public async getUsersGroups(): Promise<UsersGroup[]> {
Expand Down

0 comments on commit d7031c3

Please sign in to comment.