fireblocks-sdk
Advanced tools
Comparing version 1.7.2 to 1.7.3
import { IAuthProvider } from "./iauth-provider"; | ||
import { VaultAccountResponse, CreateTransactionResponse, TransactionArguments, AssetResponse, ExchangeResponse, TransactionResponse, TransactionFilter, CancelTransactionResponse, WalletContainerResponse, DepositAddressResponse, GenerateAddressResponse, OperationSuccessResponse, NetworkConnectionResponse, FiatAccountResponse, CreateTransferTicketArgs, TransferTicketResponse, TermResponse, ExecuteTermArgs, CreateTransferTicketResponse, EstimateTransactionFeeResponse, EstimateFeeResponse, PublicKeyInfoArgs, PublicKeyInfoForVaultAccountArgs, GasStationInfo, MaxSpendableAmountResponse, VaultAccountsFilter, VaultBalancesFilter, ValidateAddressResponse, CreateVaultAssetResponse, RequestOptions, AllocateFundsRequest, DeallocateFundsRequest, ResendWebhooksResponse, AssetTypeResponse, User, TransactionPageResponse, TransactionPageFilter, InternalWalletAsset, ExternalWalletAsset } from "./types"; | ||
import { VaultAccountResponse, CreateTransactionResponse, TransactionArguments, AssetResponse, ExchangeResponse, TransactionResponse, TransactionFilter, CancelTransactionResponse, WalletContainerResponse, DepositAddressResponse, GenerateAddressResponse, OperationSuccessResponse, NetworkConnectionResponse, FiatAccountResponse, CreateTransferTicketArgs, TransferTicketResponse, TermResponse, ExecuteTermArgs, CreateTransferTicketResponse, EstimateTransactionFeeResponse, EstimateFeeResponse, PublicKeyInfoArgs, PublicKeyInfoForVaultAccountArgs, GasStationInfo, MaxSpendableAmountResponse, VaultAccountsFilter, VaultBalancesFilter, ValidateAddressResponse, CreateVaultAssetResponse, RequestOptions, AllocateFundsRequest, DeallocateFundsRequest, ResendWebhooksResponse, AssetTypeResponse, User, TransactionPageResponse, TransactionPageFilter, InternalWalletAsset, ExternalWalletAsset, OffExchangeEntityResponse } from "./types"; | ||
export * from "./types"; | ||
@@ -427,2 +427,16 @@ export declare class FireblocksSDK { | ||
getUsers(): Promise<User[]>; | ||
/** | ||
* Get off exchange accounts | ||
*/ | ||
getOffExchangeAccounts(): Promise<OffExchangeEntityResponse[]>; | ||
/** | ||
* Get off exchange account by virtual account id | ||
* @param id the ID of the off exchange | ||
*/ | ||
getOffExchangeAccountById(id: string): Promise<OffExchangeEntityResponse>; | ||
/** | ||
* Settle off exchange account by virtual account id | ||
* @param id the ID of the off exchange | ||
*/ | ||
settleOffExchangeAccountById(id: string): Promise<void>; | ||
} |
@@ -845,4 +845,30 @@ "use strict"; | ||
} | ||
/** | ||
* Get off exchange accounts | ||
*/ | ||
getOffExchangeAccounts() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield this.apiClient.issueGetRequest(`/v1/off_exchange_accounts`); | ||
}); | ||
} | ||
/** | ||
* Get off exchange account by virtual account id | ||
* @param id the ID of the off exchange | ||
*/ | ||
getOffExchangeAccountById(id) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield this.apiClient.issueGetRequest(`/v1/off_exchange_accounts/${id}`); | ||
}); | ||
} | ||
/** | ||
* Settle off exchange account by virtual account id | ||
* @param id the ID of the off exchange | ||
*/ | ||
settleOffExchangeAccountById(id) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield this.apiClient.issuePostRequest(`/v1/off_exchange_accounts/${id}/settle`, {}); | ||
}); | ||
} | ||
} | ||
exports.FireblocksSDK = FireblocksSDK; | ||
//# sourceMappingURL=fireblocks-sdk.js.map |
@@ -176,2 +176,3 @@ export interface VaultAccountResponse { | ||
treatAsGrossAmount?: boolean; | ||
forceSweep?: boolean; | ||
} | ||
@@ -478,2 +479,3 @@ export declare enum FeeLevel { | ||
minAmountThreshold?: number; | ||
assetId?: string; | ||
} | ||
@@ -498,2 +500,3 @@ export interface VaultBalancesFilter { | ||
nativeAsset: string; | ||
decimals?: number; | ||
} | ||
@@ -511,1 +514,14 @@ export interface User { | ||
} | ||
export interface OffExchangeEntityResponse { | ||
id: string; | ||
vaultAccountId: string; | ||
thirdPartyAccountId: string; | ||
balance?: { | ||
[assetId: string]: { | ||
total?: string; | ||
locked?: string; | ||
pending?: string; | ||
frozen?: string; | ||
}; | ||
}; | ||
} |
{ | ||
"name": "fireblocks-sdk", | ||
"version": "1.7.2", | ||
"version": "1.7.3", | ||
"main": "dist/fireblocks-sdk.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/fireblocks-sdk.d.ts", |
@@ -5,3 +5,3 @@ # The Official Javascript & Typescript SDK for Fireblocks API | ||
This repository contains the official Javascript & Typescript SDK for Fireblocks API. | ||
For the complete API reference, go to [API reference](https://api.fireblocks.io/docs/v1/swagger-ui). | ||
For the complete API reference, go to [API reference](https://docs.fireblocks.com/api/swagger-ui/). | ||
@@ -8,0 +8,0 @@ ## Usage |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
98925
2079
1