Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support tenant's OTA configuration functionality #237

Merged
merged 5 commits into from
Dec 24, 2023
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}> {
nitaiaharoni1 marked this conversation as resolved.
Show resolved Hide resolved
const body = { enabled: enable };
return await this.apiClient.issuePutRequest("/v1/management/ota", body);
}

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