New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fireblocks-sdk

Package Overview
Dependencies
Maintainers
4
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fireblocks-sdk - npm Package Compare versions

Comparing version 1.9.0 to 1.10.0

7

CHANGELOG.md

@@ -5,2 +5,8 @@ ### Changelog

#### [v1.10.0](https://github.com/fireblocks/fireblocks-sdk-js/compare/v1.9.0...v1.10.0)
> 5 December 2021
- Add RequestOptions for all post request [`#64`](https://github.com/fireblocks/fireblocks-sdk-js/pull/64)
#### [v1.9.0](https://github.com/fireblocks/fireblocks-sdk-js/compare/v1.8.2...v1.9.0)

@@ -11,2 +17,3 @@

- added typed message [`#48`](https://github.com/fireblocks/fireblocks-sdk-js/pull/48)
- Update pull_request_template.md [`#61`](https://github.com/fireblocks/fireblocks-sdk-js/pull/61)

@@ -13,0 +20,0 @@ #### [v1.8.2](https://github.com/fireblocks/fireblocks-sdk-js/compare/v1.8.1...v1.8.2)

72

dist/fireblocks-sdk.d.ts
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, OffExchangeEntityResponse } 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, VaultAssetResponse, RequestOptions, AllocateFundsRequest, DeallocateFundsRequest, ResendWebhooksResponse, AssetTypeResponse, User, TransactionPageResponse, TransactionPageFilter, InternalWalletAsset, ExternalWalletAsset, OffExchangeEntityResponse } from "./types";
export * from "./types";

@@ -64,3 +64,3 @@ export interface SDKOptions {

*/
generateNewAddress(vaultAccountId: string, assetId: string, description?: string, customerRefId?: string): Promise<GenerateAddressResponse>;
generateNewAddress(vaultAccountId: string, assetId: string, description?: string, customerRefId?: string, requestOptions?: RequestOptions): Promise<GenerateAddressResponse>;
/**

@@ -105,3 +105,3 @@ * Sets the description of an existing address

*/
transferToSubaccount(exchangeAccountId: string, subaccountId: string, assetId: string, amount: number): Promise<OperationSuccessResponse>;
transferToSubaccount(exchangeAccountId: string, subaccountId: string, assetId: string, amount: number, requestOptions?: RequestOptions): Promise<OperationSuccessResponse>;
/**

@@ -114,3 +114,3 @@ * Transfer from a subaccount to a main exchange account

*/
transferFromSubaccount(exchangeAccountId: string, subaccountId: string, assetId: string, amount: number): Promise<OperationSuccessResponse>;
transferFromSubaccount(exchangeAccountId: string, subaccountId: string, assetId: string, amount: number, requestOptions?: RequestOptions): Promise<OperationSuccessResponse>;
/**

@@ -130,3 +130,3 @@ * Gets all fiat accounts for your tenant

*/
redeemToLinkedDDA(accountId: string, amount: number): Promise<OperationSuccessResponse>;
redeemToLinkedDDA(accountId: string, amount: number, requestOptions?: RequestOptions): Promise<OperationSuccessResponse>;
/**

@@ -137,3 +137,3 @@ * Deposit to a fiat account from a linked DDA

*/
depositFromLinkedDDA(accountId: string, amount: number): Promise<OperationSuccessResponse>;
depositFromLinkedDDA(accountId: string, amount: number, requestOptions?: RequestOptions): Promise<OperationSuccessResponse>;
/**

@@ -198,3 +198,3 @@ * Gets a list of transactions matching the given filter

*/
cancelTransactionById(txId: string): Promise<CancelTransactionResponse>;
cancelTransactionById(txId: string, requestOptions?: RequestOptions): Promise<CancelTransactionResponse>;
/**

@@ -206,3 +206,3 @@ * Creates a new vault account

*/
createVaultAccount(name: string, hiddenOnUI?: boolean, customerRefId?: string, autoFuel?: boolean): Promise<VaultAccountResponse>;
createVaultAccount(name: string, hiddenOnUI?: boolean, customerRefId?: string, autoFuel?: boolean, requestOptions?: RequestOptions): Promise<VaultAccountResponse>;
/**

@@ -212,3 +212,3 @@ * Hides a vault account in Fireblocks console

*/
hideVaultAccount(vaultAccountId: string): Promise<OperationSuccessResponse>;
hideVaultAccount(vaultAccountId: string, requestOptions?: RequestOptions): Promise<OperationSuccessResponse>;
/**

@@ -218,3 +218,3 @@ * Reveals a hidden vault account in Fireblocks console

*/
unhideVaultAccount(vaultAccountId: string): Promise<OperationSuccessResponse>;
unhideVaultAccount(vaultAccountId: string, requestOptions?: RequestOptions): Promise<OperationSuccessResponse>;
/**

@@ -225,3 +225,3 @@ * Sets autoFuel to true/false for a vault account

*/
setAutoFuel(vaultAccountId: string, autoFuel: boolean): Promise<OperationSuccessResponse>;
setAutoFuel(vaultAccountId: string, autoFuel: boolean, requestOptions?: RequestOptions): Promise<OperationSuccessResponse>;
/**

@@ -237,4 +237,10 @@ * Updates a vault account

*/
createVaultAsset(vaultAccountId: string, assetId: string): Promise<CreateVaultAssetResponse>;
createVaultAsset(vaultAccountId: string, assetId: string, requestOptions?: RequestOptions): Promise<VaultAssetResponse>;
/**
* Retry to create a vault asset for a vault asset that failed
* @param vaultAccountId The vault account ID
* @param assetId The asset to add
*/
activateVaultAsset(vaultAccountId: string, assetId: string, requestOptions?: RequestOptions): Promise<VaultAssetResponse>;
/**
* Creates a new external wallet

@@ -244,3 +250,3 @@ * @param name A name for the new external wallet

*/
createExternalWallet(name: string, customerRefId?: string): Promise<WalletContainerResponse<ExternalWalletAsset>>;
createExternalWallet(name: string, customerRefId?: string, requestOptions?: RequestOptions): Promise<WalletContainerResponse<ExternalWalletAsset>>;
/**

@@ -251,3 +257,3 @@ * Creates a new internal wallet

*/
createInternalWallet(name: string, customerRefId?: string): Promise<WalletContainerResponse<InternalWalletAsset>>;
createInternalWallet(name: string, customerRefId?: string, requestOptions?: RequestOptions): Promise<WalletContainerResponse<InternalWalletAsset>>;
/**

@@ -260,3 +266,3 @@ * Creates a new asset within an exiting external wallet

*/
createExternalWalletAsset(walletId: string, assetId: string, address: string, tag?: string): Promise<ExternalWalletAsset>;
createExternalWalletAsset(walletId: string, assetId: string, address: string, tag?: string, requestOptions?: RequestOptions): Promise<ExternalWalletAsset>;
/**

@@ -269,3 +275,3 @@ * Creates a new asset within an exiting internal wallet

*/
createInternalWalletAsset(walletId: string, assetId: string, address: string, tag?: string): Promise<InternalWalletAsset>;
createInternalWalletAsset(walletId: string, assetId: string, address: string, tag?: string, requestOptions?: RequestOptions): Promise<InternalWalletAsset>;
/**

@@ -278,3 +284,3 @@ * Creates a new transaction with the specified options

*/
estimateFeeForTransaction(transactionArguments: TransactionArguments): Promise<EstimateTransactionFeeResponse>;
estimateFeeForTransaction(transactionArguments: TransactionArguments, requestOptions?: RequestOptions): Promise<EstimateTransactionFeeResponse>;
/**

@@ -287,3 +293,3 @@ * Gets the estimated fees for an asset

*/
createTransferTicket(options: CreateTransferTicketArgs): Promise<CreateTransferTicketResponse>;
createTransferTicket(options: CreateTransferTicketArgs, requestOptions?: RequestOptions): Promise<CreateTransferTicketResponse>;
/**

@@ -308,3 +314,3 @@ * Gets all transfer tickets

*/
cancelTransferTicket(ticketId: string): Promise<any>;
cancelTransferTicket(ticketId: string, requestOptions?: RequestOptions): Promise<any>;
/**

@@ -316,3 +322,3 @@ * Executes a transaction for a single term of a transfer ticket

*/
executeTransferTicketTerm(ticketId: string, termId: string, options: ExecuteTermArgs): Promise<any>;
executeTransferTicketTerm(ticketId: string, termId: string, options: ExecuteTermArgs, requestOptions?: RequestOptions): Promise<any>;
/**

@@ -345,3 +351,3 @@ * Deletes a single internal wallet

*/
setCustomerRefIdForVaultAccount(vaultAccountId: string, customerRefId: string): Promise<OperationSuccessResponse>;
setCustomerRefIdForVaultAccount(vaultAccountId: string, customerRefId: string, requestOptions?: RequestOptions): Promise<OperationSuccessResponse>;
/**

@@ -352,3 +358,3 @@ * Sets a customer reference ID

*/
setCustomerRefIdForInternalWallet(walletId: string, customerRefId: string): Promise<OperationSuccessResponse>;
setCustomerRefIdForInternalWallet(walletId: string, customerRefId: string, requestOptions?: RequestOptions): Promise<OperationSuccessResponse>;
/**

@@ -359,3 +365,3 @@ * Sets a customer reference ID

*/
setCustomerRefIdForExternalWallet(walletId: string, customerRefId: string): Promise<OperationSuccessResponse>;
setCustomerRefIdForExternalWallet(walletId: string, customerRefId: string, requestOptions?: RequestOptions): Promise<OperationSuccessResponse>;
/**

@@ -369,3 +375,3 @@ * Sets a customer reference ID

*/
setCustomerRefIdForAddress(vaultAccountId: string, assetId: string, address: string, tag?: string, customerRefId?: string): Promise<OperationSuccessResponse>;
setCustomerRefIdForAddress(vaultAccountId: string, assetId: string, address: string, tag?: string, customerRefId?: string, requestOptions?: RequestOptions): Promise<OperationSuccessResponse>;
/**

@@ -376,3 +382,3 @@ * Set the required number of confirmations for transaction

*/
setConfirmationThresholdForTxId(txId: string, requiredConfirmationsNumber: number): Promise<OperationSuccessResponse>;
setConfirmationThresholdForTxId(txId: string, requiredConfirmationsNumber: number, requestOptions?: RequestOptions): Promise<OperationSuccessResponse>;
/**

@@ -383,3 +389,3 @@ * Set the required number of confirmations for transactions by tx hash

*/
setConfirmationThresholdForTxHash(txHash: string, requiredConfirmationsNumber: number): Promise<OperationSuccessResponse>;
setConfirmationThresholdForTxHash(txHash: string, requiredConfirmationsNumber: number, requestOptions?: RequestOptions): Promise<OperationSuccessResponse>;
/**

@@ -398,3 +404,3 @@ * Get the public key information

*/
allocateFundsToPrivateLedger(vaultAccountId: string, asset: string, args: AllocateFundsRequest): Promise<any>;
allocateFundsToPrivateLedger(vaultAccountId: string, asset: string, args: AllocateFundsRequest, requestOptions?: RequestOptions): Promise<any>;
/**

@@ -406,3 +412,3 @@ * deallocate funds from a private ledger to your default balance

*/
deallocateFundsFromPrivateLedger(vaultAccountId: string, asset: string, args: DeallocateFundsRequest): Promise<any>;
deallocateFundsFromPrivateLedger(vaultAccountId: string, asset: string, args: DeallocateFundsRequest, requestOptions?: RequestOptions): Promise<any>;
/**

@@ -424,3 +430,3 @@ * Get the public key information for a vault account

*/
dropTransaction(txId: string, feeLevel?: string, requestedFee?: string): Promise<any>;
dropTransaction(txId: string, feeLevel?: string, requestedFee?: string, requestOptions?: RequestOptions): Promise<any>;
/**

@@ -446,3 +452,3 @@ * Get max spendable amount per asset and vault

*/
unfreezeTransactionById(txId: string): Promise<OperationSuccessResponse>;
unfreezeTransactionById(txId: string, requestOptions?: RequestOptions): Promise<OperationSuccessResponse>;
/**

@@ -452,7 +458,7 @@ * Freezes the selected transaction

*/
freezeTransactionById(txId: string): Promise<OperationSuccessResponse>;
freezeTransactionById(txId: string, requestOptions?: RequestOptions): Promise<OperationSuccessResponse>;
/**
* Resend failed webhooks
*/
resendWebhooks(): Promise<ResendWebhooksResponse>;
resendWebhooks(requestOptions?: RequestOptions): Promise<ResendWebhooksResponse>;
/**

@@ -475,3 +481,3 @@ * Gets all Users for your tenant

*/
settleOffExchangeAccountById(id: string): Promise<void>;
settleOffExchangeAccountById(id: string, requestOptions?: RequestOptions): Promise<void>;
}

@@ -119,3 +119,3 @@ "use strict";

*/
generateNewAddress(vaultAccountId, assetId, description, customerRefId) {
generateNewAddress(vaultAccountId, assetId, description, customerRefId, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {

@@ -125,3 +125,3 @@ return yield this.apiClient.issuePostRequest(`/v1/vault/accounts/${vaultAccountId}/${assetId}/addresses`, {

customerRefId
});
}, requestOptions);
});

@@ -196,3 +196,3 @@ }

*/
transferToSubaccount(exchangeAccountId, subaccountId, assetId, amount) {
transferToSubaccount(exchangeAccountId, subaccountId, assetId, amount, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {

@@ -203,3 +203,3 @@ const body = {

};
return yield this.apiClient.issuePostRequest(`/v1/exchange_accounts/${exchangeAccountId}/${assetId}/transfer_to_subaccount`, body);
return yield this.apiClient.issuePostRequest(`/v1/exchange_accounts/${exchangeAccountId}/${assetId}/transfer_to_subaccount`, body, requestOptions);
});

@@ -214,3 +214,3 @@ }

*/
transferFromSubaccount(exchangeAccountId, subaccountId, assetId, amount) {
transferFromSubaccount(exchangeAccountId, subaccountId, assetId, amount, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {

@@ -221,3 +221,3 @@ const body = {

};
return yield this.apiClient.issuePostRequest(`/v1/exchange_accounts/${exchangeAccountId}/${assetId}/transfer_from_subaccount`, body);
return yield this.apiClient.issuePostRequest(`/v1/exchange_accounts/${exchangeAccountId}/${assetId}/transfer_from_subaccount`, body, requestOptions);
});

@@ -247,3 +247,3 @@ }

*/
redeemToLinkedDDA(accountId, amount) {
redeemToLinkedDDA(accountId, amount, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {

@@ -253,3 +253,3 @@ const body = {

};
return yield this.apiClient.issuePostRequest(`/v1/fiat_accounts/${accountId}/redeem_to_linked_dda`, body);
return yield this.apiClient.issuePostRequest(`/v1/fiat_accounts/${accountId}/redeem_to_linked_dda`, body, requestOptions);
});

@@ -262,3 +262,3 @@ }

*/
depositFromLinkedDDA(accountId, amount) {
depositFromLinkedDDA(accountId, amount, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {

@@ -268,3 +268,3 @@ const body = {

};
return yield this.apiClient.issuePostRequest(`/v1/fiat_accounts/${accountId}/deposit_from_linked_dda`, body);
return yield this.apiClient.issuePostRequest(`/v1/fiat_accounts/${accountId}/deposit_from_linked_dda`, body, requestOptions);
});

@@ -379,5 +379,5 @@ }

*/
cancelTransactionById(txId) {
cancelTransactionById(txId, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
return yield this.apiClient.issuePostRequest(`/v1/transactions/${txId}/cancel`, {});
return yield this.apiClient.issuePostRequest(`/v1/transactions/${txId}/cancel`, {}, requestOptions);
});

@@ -391,3 +391,3 @@ }

*/
createVaultAccount(name, hiddenOnUI, customerRefId, autoFuel) {
createVaultAccount(name, hiddenOnUI, customerRefId, autoFuel, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {

@@ -400,3 +400,3 @@ const body = {

};
return yield this.apiClient.issuePostRequest("/v1/vault/accounts", body);
return yield this.apiClient.issuePostRequest("/v1/vault/accounts", body, requestOptions);
});

@@ -408,5 +408,5 @@ }

*/
hideVaultAccount(vaultAccountId) {
hideVaultAccount(vaultAccountId, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
return yield this.apiClient.issuePostRequest(`/v1/vault/accounts/${vaultAccountId}/hide`, {});
return yield this.apiClient.issuePostRequest(`/v1/vault/accounts/${vaultAccountId}/hide`, {}, requestOptions);
});

@@ -418,5 +418,5 @@ }

*/
unhideVaultAccount(vaultAccountId) {
unhideVaultAccount(vaultAccountId, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
return yield this.apiClient.issuePostRequest(`/v1/vault/accounts/${vaultAccountId}/unhide`, {});
return yield this.apiClient.issuePostRequest(`/v1/vault/accounts/${vaultAccountId}/unhide`, {}, requestOptions);
});

@@ -429,5 +429,5 @@ }

*/
setAutoFuel(vaultAccountId, autoFuel) {
setAutoFuel(vaultAccountId, autoFuel, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
return yield this.apiClient.issuePostRequest(`/v1/vault/accounts/${vaultAccountId}/set_auto_fuel`, { autoFuel });
return yield this.apiClient.issuePostRequest(`/v1/vault/accounts/${vaultAccountId}/set_auto_fuel`, { autoFuel }, requestOptions);
});

@@ -452,8 +452,18 @@ }

*/
createVaultAsset(vaultAccountId, assetId) {
createVaultAsset(vaultAccountId, assetId, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
return yield this.apiClient.issuePostRequest(`/v1/vault/accounts/${vaultAccountId}/${assetId}`, {});
return yield this.apiClient.issuePostRequest(`/v1/vault/accounts/${vaultAccountId}/${assetId}`, {}, requestOptions);
});
}
/**
* Retry to create a vault asset for a vault asset that failed
* @param vaultAccountId The vault account ID
* @param assetId The asset to add
*/
activateVaultAsset(vaultAccountId, assetId, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
return yield this.apiClient.issuePostRequest(`/v1/vault/accounts/${vaultAccountId}/${assetId}/activate`, {}, requestOptions);
});
}
/**
* Creates a new external wallet

@@ -463,3 +473,3 @@ * @param name A name for the new external wallet

*/
createExternalWallet(name, customerRefId) {
createExternalWallet(name, customerRefId, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {

@@ -470,3 +480,3 @@ const body = {

};
return yield this.apiClient.issuePostRequest("/v1/external_wallets", body);
return yield this.apiClient.issuePostRequest("/v1/external_wallets", body, requestOptions);
});

@@ -479,3 +489,3 @@ }

*/
createInternalWallet(name, customerRefId) {
createInternalWallet(name, customerRefId, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {

@@ -486,3 +496,3 @@ const body = {

};
return yield this.apiClient.issuePostRequest("/v1/internal_wallets", body);
return yield this.apiClient.issuePostRequest("/v1/internal_wallets", body, requestOptions);
});

@@ -497,3 +507,3 @@ }

*/
createExternalWalletAsset(walletId, assetId, address, tag) {
createExternalWalletAsset(walletId, assetId, address, tag, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {

@@ -505,3 +515,3 @@ const path = `/v1/external_wallets/${walletId}/${assetId}`;

};
return yield this.apiClient.issuePostRequest(path, body);
return yield this.apiClient.issuePostRequest(path, body, requestOptions);
});

@@ -516,3 +526,3 @@ }

*/
createInternalWalletAsset(walletId, assetId, address, tag) {
createInternalWalletAsset(walletId, assetId, address, tag, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {

@@ -524,3 +534,3 @@ const path = `/v1/internal_wallets/${walletId}/${assetId}`;

};
return yield this.apiClient.issuePostRequest(path, body);
return yield this.apiClient.issuePostRequest(path, body, requestOptions);
});

@@ -539,5 +549,5 @@ }

*/
estimateFeeForTransaction(transactionArguments) {
estimateFeeForTransaction(transactionArguments, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
return yield this.apiClient.issuePostRequest("/v1/transactions/estimate_fee", transactionArguments);
return yield this.apiClient.issuePostRequest("/v1/transactions/estimate_fee", transactionArguments, requestOptions);
});

@@ -556,5 +566,5 @@ }

*/
createTransferTicket(options) {
createTransferTicket(options, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
return yield this.apiClient.issuePostRequest("/v1/transfer_tickets", options);
return yield this.apiClient.issuePostRequest("/v1/transfer_tickets", options, requestOptions);
});

@@ -593,5 +603,5 @@ }

*/
cancelTransferTicket(ticketId) {
cancelTransferTicket(ticketId, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
return yield this.apiClient.issuePostRequest(`/v1/transfer_tickets/${ticketId}/cancel`, {});
return yield this.apiClient.issuePostRequest(`/v1/transfer_tickets/${ticketId}/cancel`, {}, requestOptions);
});

@@ -605,5 +615,5 @@ }

*/
executeTransferTicketTerm(ticketId, termId, options) {
executeTransferTicketTerm(ticketId, termId, options, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
return yield this.apiClient.issuePostRequest(`/v1/transfer_tickets/${ticketId}/${termId}/transfer`, options);
return yield this.apiClient.issuePostRequest(`/v1/transfer_tickets/${ticketId}/${termId}/transfer`, options, requestOptions);
});

@@ -654,5 +664,5 @@ }

*/
setCustomerRefIdForVaultAccount(vaultAccountId, customerRefId) {
setCustomerRefIdForVaultAccount(vaultAccountId, customerRefId, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
return yield this.apiClient.issuePostRequest(`/v1/vault/accounts/${vaultAccountId}/set_customer_ref_id`, { customerRefId });
return yield this.apiClient.issuePostRequest(`/v1/vault/accounts/${vaultAccountId}/set_customer_ref_id`, { customerRefId }, requestOptions);
});

@@ -665,5 +675,5 @@ }

*/
setCustomerRefIdForInternalWallet(walletId, customerRefId) {
setCustomerRefIdForInternalWallet(walletId, customerRefId, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
return yield this.apiClient.issuePostRequest(`/v1/internal_wallets/${walletId}/set_customer_ref_id`, { customerRefId });
return yield this.apiClient.issuePostRequest(`/v1/internal_wallets/${walletId}/set_customer_ref_id`, { customerRefId }, requestOptions);
});

@@ -676,5 +686,5 @@ }

*/
setCustomerRefIdForExternalWallet(walletId, customerRefId) {
setCustomerRefIdForExternalWallet(walletId, customerRefId, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
return yield this.apiClient.issuePostRequest(`/v1/external_wallets/${walletId}/set_customer_ref_id`, { customerRefId });
return yield this.apiClient.issuePostRequest(`/v1/external_wallets/${walletId}/set_customer_ref_id`, { customerRefId }, requestOptions);
});

@@ -690,3 +700,3 @@ }

*/
setCustomerRefIdForAddress(vaultAccountId, assetId, address, tag, customerRefId) {
setCustomerRefIdForAddress(vaultAccountId, assetId, address, tag, customerRefId, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {

@@ -697,3 +707,3 @@ let addressId = address;

}
return yield this.apiClient.issuePostRequest(`/v1/vault/accounts/${vaultAccountId}/${assetId}/addresses/${addressId}/set_customer_ref_id`, { customerRefId });
return yield this.apiClient.issuePostRequest(`/v1/vault/accounts/${vaultAccountId}/${assetId}/addresses/${addressId}/set_customer_ref_id`, { customerRefId }, requestOptions);
});

@@ -706,5 +716,5 @@ }

*/
setConfirmationThresholdForTxId(txId, requiredConfirmationsNumber) {
setConfirmationThresholdForTxId(txId, requiredConfirmationsNumber, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
return yield this.apiClient.issuePostRequest(`/v1/transactions/${txId}/set_confirmation_threshold`, { numOfConfirmations: requiredConfirmationsNumber });
return yield this.apiClient.issuePostRequest(`/v1/transactions/${txId}/set_confirmation_threshold`, { numOfConfirmations: requiredConfirmationsNumber }, requestOptions);
});

@@ -717,5 +727,5 @@ }

*/
setConfirmationThresholdForTxHash(txHash, requiredConfirmationsNumber) {
setConfirmationThresholdForTxHash(txHash, requiredConfirmationsNumber, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
return yield this.apiClient.issuePostRequest(`/v1/txHash/${txHash}/set_confirmation_threshold`, { numOfConfirmations: requiredConfirmationsNumber });
return yield this.apiClient.issuePostRequest(`/v1/txHash/${txHash}/set_confirmation_threshold`, { numOfConfirmations: requiredConfirmationsNumber }, requestOptions);
});

@@ -750,6 +760,6 @@ }

*/
allocateFundsToPrivateLedger(vaultAccountId, asset, args) {
allocateFundsToPrivateLedger(vaultAccountId, asset, args, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
const url = `/v1/vault/accounts/${vaultAccountId}/${asset}/lock_allocation`;
return yield this.apiClient.issuePostRequest(url, args);
return yield this.apiClient.issuePostRequest(url, args, requestOptions);
});

@@ -763,6 +773,6 @@ }

*/
deallocateFundsFromPrivateLedger(vaultAccountId, asset, args) {
deallocateFundsFromPrivateLedger(vaultAccountId, asset, args, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
const url = `/v1/vault/accounts/${vaultAccountId}/${asset}/release_allocation`;
return yield this.apiClient.issuePostRequest(url, args);
return yield this.apiClient.issuePostRequest(url, args, requestOptions);
});

@@ -805,7 +815,7 @@ }

*/
dropTransaction(txId, feeLevel, requestedFee) {
dropTransaction(txId, feeLevel, requestedFee, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
const url = `/v1/transactions/${txId}/drop`;
const body = { feeLevel, requestedFee };
return yield this.apiClient.issuePostRequest(url, body);
return yield this.apiClient.issuePostRequest(url, body, requestOptions);
});

@@ -856,5 +866,5 @@ }

*/
unfreezeTransactionById(txId) {
unfreezeTransactionById(txId, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
return this.apiClient.issuePostRequest(`/v1/transactions/${txId}/unfreeze`, {});
return this.apiClient.issuePostRequest(`/v1/transactions/${txId}/unfreeze`, {}, requestOptions);
});

@@ -866,5 +876,5 @@ }

*/
freezeTransactionById(txId) {
freezeTransactionById(txId, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
return this.apiClient.issuePostRequest(`/v1/transactions/${txId}/freeze`, {});
return this.apiClient.issuePostRequest(`/v1/transactions/${txId}/freeze`, {}, requestOptions);
});

@@ -875,5 +885,5 @@ }

*/
resendWebhooks() {
resendWebhooks(requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
return yield this.apiClient.issuePostRequest("/v1/webhooks/resend", {});
return yield this.apiClient.issuePostRequest("/v1/webhooks/resend", {}, requestOptions);
});

@@ -910,5 +920,5 @@ }

*/
settleOffExchangeAccountById(id) {
settleOffExchangeAccountById(id, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
return yield this.apiClient.issuePostRequest(`/v1/off_exchange_accounts/${id}/settle`, {});
return yield this.apiClient.issuePostRequest(`/v1/off_exchange_accounts/${id}/settle`, {}, requestOptions);
});

@@ -915,0 +925,0 @@ }

@@ -46,3 +46,3 @@ export interface VaultAccountResponse {

}
export interface CreateVaultAssetResponse {
export interface VaultAssetResponse {
id: string;

@@ -54,3 +54,10 @@ address: string;

eosAccountName: string;
status?: VaultAssetActivationStatus;
activationTxId?: string;
}
export declare enum VaultAssetActivationStatus {
PENDING_ACTIVATION = "PENDING_ACTIVATION",
ACTIVATION_FAILED = "ACTIVATION_FAILED",
READY = "READY"
}
export interface WalletContainerResponse<WalletAssetType> {

@@ -57,0 +64,0 @@ id: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TransferTicketTermStatus = exports.TransferTicketStatus = exports.TransactionOperation = exports.VirtualType = exports.PeerType = exports.TransactionStatus = exports.TransactionOrder = exports.FeeLevel = exports.SigningAlgorithm = exports.VirtualAffiliation = void 0;
exports.TransferTicketTermStatus = exports.TransferTicketStatus = exports.TransactionOperation = exports.VirtualType = exports.PeerType = exports.TransactionStatus = exports.TransactionOrder = exports.FeeLevel = exports.SigningAlgorithm = exports.VaultAssetActivationStatus = exports.VirtualAffiliation = void 0;
var VirtualAffiliation;

@@ -9,2 +9,8 @@ (function (VirtualAffiliation) {

})(VirtualAffiliation = exports.VirtualAffiliation || (exports.VirtualAffiliation = {}));
var VaultAssetActivationStatus;
(function (VaultAssetActivationStatus) {
VaultAssetActivationStatus["PENDING_ACTIVATION"] = "PENDING_ACTIVATION";
VaultAssetActivationStatus["ACTIVATION_FAILED"] = "ACTIVATION_FAILED";
VaultAssetActivationStatus["READY"] = "READY";
})(VaultAssetActivationStatus = exports.VaultAssetActivationStatus || (exports.VaultAssetActivationStatus = {}));
var SigningAlgorithm;

@@ -11,0 +17,0 @@ (function (SigningAlgorithm) {

{
"name": "fireblocks-sdk",
"version": "1.9.0",
"version": "1.10.0",
"main": "dist/fireblocks-sdk.js",

@@ -5,0 +5,0 @@ "types": "dist/fireblocks-sdk.d.ts",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc