/* tslint:disable */ /* eslint-disable */ /** * Fireblocks API * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) * * The version of the OpenAPI document: 1.6.2 * Contact: developers@fireblocks.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; import { convertToFireblocksResponse } from "../response/fireblocksResponse"; // URLSearchParams not necessarily used // @ts-ignore import { URL, URLSearchParams } from 'url'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; import { assertParamExistsAndNotEmpty } from '../utils/validation_utils'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore import { AddressReverseLookupResponse } from '../models'; // @ts-ignore import { AutomationSettingsRequest } from '../models'; // @ts-ignore import { AutomationSettingsResponse } from '../models'; // @ts-ignore import { CreateAddressRequest } from '../models'; // @ts-ignore import { CreateAddressResponse } from '../models'; // @ts-ignore import { CreateAssetsRequest } from '../models'; // @ts-ignore import { CreateMultipleAccountsRequest } from '../models'; // @ts-ignore import { CreateMultipleDepositAddressesJobStatus } from '../models'; // @ts-ignore import { CreateMultipleDepositAddressesRequest } from '../models'; // @ts-ignore import { CreateMultipleVaultAccountsJobStatus } from '../models'; // @ts-ignore import { CreateVaultAccountRequest } from '../models'; // @ts-ignore import { CreateVaultAssetResponse } from '../models'; // @ts-ignore import { ErrorSchema } from '../models'; // @ts-ignore import { GetAutomationSettingsResponse } from '../models'; // @ts-ignore import { GetMaxBipIndexUsedResponse } from '../models'; // @ts-ignore import { GetMaxSpendableAmountResponse } from '../models'; // @ts-ignore import { GetUnspentInputsResponse } from '../models'; // @ts-ignore import { GetVaultAssetsResponse } from '../models'; // @ts-ignore import { JobCreated } from '../models'; // @ts-ignore import { PaginatedAddressResponse } from '../models'; // @ts-ignore import { PaginatedAssetWalletResponse } from '../models'; // @ts-ignore import { PublicKeyInformation } from '../models'; // @ts-ignore import { RenameVaultAccountResponse } from '../models'; // @ts-ignore import { SaveAutomationSettingsResponse } from '../models'; // @ts-ignore import { SetAutoFuelRequest } from '../models'; // @ts-ignore import { SetCustomerRefIdForAddressRequest } from '../models'; // @ts-ignore import { SetCustomerRefIdRequest } from '../models'; // @ts-ignore import { UpdateAutomationSettingsRequest } from '../models'; // @ts-ignore import { UpdateVaultAccountAssetAddressRequest } from '../models'; // @ts-ignore import { UpdateVaultAccountRequest } from '../models'; // @ts-ignore import { UsdcGatewayWalletInfoResponse } from '../models'; // @ts-ignore import { UsdcGatewayWalletStatusResponse } from '../models'; // @ts-ignore import { VaultAccount } from '../models'; // @ts-ignore import { VaultAccountsPagedResponse } from '../models'; // @ts-ignore import { VaultAccountsTagAttachmentOperationsRequest } from '../models'; // @ts-ignore import { VaultAccountsTagAttachmentOperationsResponse } from '../models'; // @ts-ignore import { VaultActionStatus } from '../models'; // @ts-ignore import { VaultAsset } from '../models'; /** * VaultsApi - axios parameter creator * @export */ export const VaultsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Initiates activation for a wallet in a vault account. Activation is required for tokens that need an on-chain transaction for creation. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Activate a wallet in a vault account * @param {string} vaultAccountId The ID of the vault account to return, or \'default\' for the default vault account * @param {string} assetId The ID of the asset * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {string} [blockchainWalletType] Optional immutable blockchain wallet type to store per tenant+vault * @param {*} [options] Override http request option. * @throws {RequiredError} */ activateAssetForVaultAccount: async (vaultAccountId: string, assetId: string, idempotencyKey?: string, blockchainWalletType?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('activateAssetForVaultAccount', 'vaultAccountId', vaultAccountId) assertParamExistsAndNotEmpty('activateAssetForVaultAccount', 'assetId', assetId) const localVarPath = `/vault/accounts/{vaultAccountId}/{assetId}/activate` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))) .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'activateAssetForVaultAccount'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (blockchainWalletType !== undefined) { localVarQueryParameter['blockchainWalletType'] = blockchainWalletType; } if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Activates the USDC Gateway wallet associated with the given vault account. If the wallet does not yet exist it is created in an activated state. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Activate a USDC Gateway wallet * @param {string} vaultAccountId The ID of the vault account * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ activateUsdcGatewayWalletBeta: async (vaultAccountId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('activateUsdcGatewayWalletBeta', 'vaultAccountId', vaultAccountId) const localVarPath = `/vault/accounts/{vaultAccountId}/usdc_gateway/activate` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'activateUsdcGatewayWalletBeta'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Attach or detach one or more tags from the requested vault accounts. Endpoint Permission: For protected tags: Owner, Admin, Non-Signing Admin. For non protected tags: Owner, Admin, Non-Signing Admin, Signer, Editor, Approver. * @summary Attach or detach tags from vault accounts * @param {VaultAccountsTagAttachmentOperationsRequest} vaultAccountsTagAttachmentOperationsRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ attachOrDetachTagsFromVaultAccounts: async (vaultAccountsTagAttachmentOperationsRequest: VaultAccountsTagAttachmentOperationsRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('attachOrDetachTagsFromVaultAccounts', 'vaultAccountsTagAttachmentOperationsRequest', vaultAccountsTagAttachmentOperationsRequest) const localVarPath = `/vault/accounts/attached_tags`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'attachOrDetachTagsFromVaultAccounts'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(vaultAccountsTagAttachmentOperationsRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Converts an existing segwit address to the legacy format. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Convert a segwit address to legacy format * @param {string} vaultAccountId The ID of the vault account * @param {string} assetId The ID of the asset * @param {string} addressId The segwit address to translate * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createLegacyAddress: async (vaultAccountId: string, assetId: string, addressId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('createLegacyAddress', 'vaultAccountId', vaultAccountId) assertParamExistsAndNotEmpty('createLegacyAddress', 'assetId', assetId) assertParamExistsAndNotEmpty('createLegacyAddress', 'addressId', addressId) const localVarPath = `/vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/create_legacy` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))) .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId))) .replace(`{${"addressId"}}`, encodeURIComponent(String(addressId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'createLegacyAddress'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Create multiple vault accounts by running an async job. - The HBAR, TON, SUI, TERRA, ALGO, and DOT blockchains are not supported. - These endpoints are currently in beta and might be subject to changes. - Limited to a maximum of 10,000 accounts per operation. - With `vaultType: KEY_LINK`, creates Key Link vault accounts; set `autoAssign: true` to bind them to the workspace\'s signing keys (see `vaultType` and `autoAssign`). **Endpoint Permissions:** Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Bulk creation of new vault accounts * @param {CreateMultipleAccountsRequest} createMultipleAccountsRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createMultipleAccounts: async (createMultipleAccountsRequest: CreateMultipleAccountsRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('createMultipleAccounts', 'createMultipleAccountsRequest', createMultipleAccountsRequest) const localVarPath = `/vault/accounts/bulk`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'createMultipleAccounts'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createMultipleAccountsRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * **For UTXO blockchains only.** Create multiple deposit addresses by running an async job. - The target Vault account should already have a UTXO asset wallet with a permanent address. - Limited to a maximum of 10,000 addresses per operation. Use multiple operations for the same Vault account/permanent address if needed. **Endpoint Permissions:** Admin, Non-Signing Admin. * @summary Bulk creation of new deposit addresses * @param {CreateMultipleDepositAddressesRequest} createMultipleDepositAddressesRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createMultipleDepositAddresses: async (createMultipleDepositAddressesRequest: CreateMultipleDepositAddressesRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('createMultipleDepositAddresses', 'createMultipleDepositAddressesRequest', createMultipleDepositAddressesRequest) const localVarPath = `/vault/accounts/addresses/bulk`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'createMultipleDepositAddresses'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createMultipleDepositAddressesRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Creates a new vault account with the requested name. **Note: ** Vault account names should consist of ASCII characters only. Learn more about Fireblocks Vault Accounts in the following [guide](https://developers.fireblocks.com/reference/create-vault-account). Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Create a new vault account * @param {CreateVaultAccountRequest} createVaultAccountRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createVaultAccount: async (createVaultAccountRequest: CreateVaultAccountRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('createVaultAccount', 'createVaultAccountRequest', createVaultAccountRequest) const localVarPath = `/vault/accounts`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'createVaultAccount'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createVaultAccountRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Creates a wallet for a specific asset in a vault account. Learn more about Fireblocks Vault Wallets in the following [guide](https://developers.fireblocks.com/reference/create-vault-wallet). Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Create a new vault wallet * @param {string} vaultAccountId The ID of the vault account to return, or \'default\' for the default vault account * @param {string} assetId The ID of the asset * @param {CreateAssetsRequest} [createAssetsRequest] * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {string} [blockchainWalletType] Optional immutable blockchain wallet type to store per tenant+vault * @param {*} [options] Override http request option. * @throws {RequiredError} */ createVaultAccountAsset: async (vaultAccountId: string, assetId: string, createAssetsRequest?: CreateAssetsRequest, idempotencyKey?: string, blockchainWalletType?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('createVaultAccountAsset', 'vaultAccountId', vaultAccountId) assertParamExistsAndNotEmpty('createVaultAccountAsset', 'assetId', assetId) const localVarPath = `/vault/accounts/{vaultAccountId}/{assetId}` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))) .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'createVaultAccountAsset'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (blockchainWalletType !== undefined) { localVarQueryParameter['blockchainWalletType'] = blockchainWalletType; } if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createAssetsRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Creates a new deposit address for an asset of a vault account. Should be used for UTXO or Tag/Memo based assets ONLY. Requests with account based assets will fail. Endpoint Permission: Admin, Non-Signing Admin. * @summary Create new asset deposit address * @param {string} vaultAccountId The ID of the vault account to return * @param {string} assetId The ID of the asset * @param {CreateAddressRequest} [createAddressRequest] * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createVaultAccountAssetAddress: async (vaultAccountId: string, assetId: string, createAddressRequest?: CreateAddressRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('createVaultAccountAssetAddress', 'vaultAccountId', vaultAccountId) assertParamExistsAndNotEmpty('createVaultAccountAssetAddress', 'assetId', assetId) const localVarPath = `/vault/accounts/{vaultAccountId}/{assetId}/addresses` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))) .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'createVaultAccountAssetAddress'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createAddressRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Deactivates the USDC Gateway wallet associated with the given vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Deactivate a USDC Gateway wallet * @param {string} vaultAccountId The ID of the vault account * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deactivateUsdcGatewayWalletBeta: async (vaultAccountId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('deactivateUsdcGatewayWalletBeta', 'vaultAccountId', vaultAccountId) const localVarPath = `/vault/accounts/{vaultAccountId}/usdc_gateway/deactivate` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'deactivateUsdcGatewayWalletBeta'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Stops the schedule for an existing deposit automation. The automation itself stays configured, only its schedule stops. Turn it back on later with PATCH, without setting up the automation again from scratch. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Stop a USDC Gateway deposit automation\'s schedule * @param {string} vaultAccountId The ID of the vault account * @param {string} automationId The ID of the deposit automation, returned when it was created or read * @param {*} [options] Override http request option. * @throws {RequiredError} */ disableUsdcGatewayDepositAutomationScheduleBeta: async (vaultAccountId: string, automationId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('disableUsdcGatewayDepositAutomationScheduleBeta', 'vaultAccountId', vaultAccountId) assertParamExistsAndNotEmpty('disableUsdcGatewayDepositAutomationScheduleBeta', 'automationId', automationId) const localVarPath = `/vault/accounts/{vaultAccountId}/virtual_asset_wallet/usdc_gateway/deposit_automation/{automationId}` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))) .replace(`{${"automationId"}}`, encodeURIComponent(String(automationId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'disableUsdcGatewayDepositAutomationScheduleBeta'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get all vault wallets of the vault accounts in your workspace. A vault wallet is an asset in a vault account. This method allows fast traversal of all account balances. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get vault wallets (Paginated) * @param {number} [totalAmountLargerThan] When specified, only vault wallets with total balance greater than this amount are returned. * @param {string} [assetId] When specified, only vault wallets with the specified ID are returned. * @param {GetAssetWalletsOrderByEnum} [orderBy] * @param {string} [before] Fetches the next paginated response before this element. This element is a cursor and is returned at the response of the previous page. * @param {string} [after] Fetches the next paginated response after this element. This element is a cursor and is returned at the response of the previous page. * @param {number} [limit] The maximum number of vault wallets in a single response. The default is 200 and the maximum is 1000. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAssetWallets: async (totalAmountLargerThan?: number, assetId?: string, orderBy?: GetAssetWalletsOrderByEnum, before?: string, after?: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/vault/asset_wallets`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getAssetWallets'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (totalAmountLargerThan !== undefined) { localVarQueryParameter['totalAmountLargerThan'] = totalAmountLargerThan; } if (assetId !== undefined) { localVarQueryParameter['assetId'] = assetId; } if (orderBy !== undefined) { localVarQueryParameter['orderBy'] = orderBy; } if (before !== undefined) { localVarQueryParameter['before'] = before; } if (after !== undefined) { localVarQueryParameter['after'] = after; } if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the current status of (or an error for) the specified deposit addresss bulk creation job. **Endpoint Permissions:** Admin, Non-Signing Admin, Signer, Approver, Editor, and Viewer. * @summary Get the job status of the bulk deposit address creation * @param {string} jobId The ID of the job to create addresses * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCreateMultipleDepositAddressesJobStatus: async (jobId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getCreateMultipleDepositAddressesJobStatus', 'jobId', jobId) const localVarPath = `/vault/accounts/addresses/bulk/{jobId}` .replace(`{${"jobId"}}`, encodeURIComponent(String(jobId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getCreateMultipleDepositAddressesJobStatus'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the current status of (or error for) the specified vault account bulk creation job. **Endpoint Permissions:** Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get job status of bulk creation of new vault accounts * @param {string} jobId The ID of the job to create addresses * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCreateMultipleVaultAccountsJobStatus: async (jobId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getCreateMultipleVaultAccountsJobStatus', 'jobId', jobId) const localVarPath = `/vault/accounts/bulk/{jobId}` .replace(`{${"jobId"}}`, encodeURIComponent(String(jobId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getCreateMultipleVaultAccountsJobStatus'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves the maximum BIP44 address index and change address index used for a specific asset in a vault account (BIP44 standard). * @summary Get maximum BIP44 index used * @param {string} vaultAccountId The ID of the vault account * @param {string} assetId The ID of the asset * @param {*} [options] Override http request option. * @throws {RequiredError} */ getMaxBipIndexUsed: async (vaultAccountId: string, assetId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getMaxBipIndexUsed', 'vaultAccountId', vaultAccountId) assertParamExistsAndNotEmpty('getMaxBipIndexUsed', 'assetId', assetId) const localVarPath = `/vault/accounts/{vaultAccountId}/{assetId}/max_bip44_index_used` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))) .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getMaxBipIndexUsed'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * **UTXO assets only.** Retrieve the maximum amount of the specified asset that can be spent in a single transaction from the specified vault account. **Endpoint Permissions:** Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get max spendable amount in a transaction * @param {string} vaultAccountId The ID of the vault account * @param {string} assetId The ID of the asset * @param {boolean} [manualSignging] False by default. The maximum number of inputs depends if the transaction will be signed by an automated co-signer server or on a mobile device. * @param {Array} [includeAllLabels] Only include UTXOs that have ALL of these labels (AND logic). Requires the UTXO Manager. * @param {Array} [includeAnyLabels] Only include UTXOs that have ANY of these labels (OR logic). Requires the UTXO Manager. * @param {Array} [excludeAnyLabels] Exclude UTXOs that have ANY of these labels. Requires the UTXO Manager. * @param {string} [address] Only include UTXOs from this specific address. Requires the UTXO Manager. * @param {string} [minAmount] Minimum UTXO amount in the asset\'s base unit. Requires the UTXO Manager. * @param {string} [maxAmount] Maximum UTXO amount in the asset\'s base unit. Requires the UTXO Manager. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getMaxSpendableAmount: async (vaultAccountId: string, assetId: string, manualSignging?: boolean, includeAllLabels?: Array, includeAnyLabels?: Array, excludeAnyLabels?: Array, address?: string, minAmount?: string, maxAmount?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getMaxSpendableAmount', 'vaultAccountId', vaultAccountId) assertParamExistsAndNotEmpty('getMaxSpendableAmount', 'assetId', assetId) const localVarPath = `/vault/accounts/{vaultAccountId}/{assetId}/max_spendable_amount` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))) .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getMaxSpendableAmount'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (manualSignging !== undefined) { localVarQueryParameter['manualSignging'] = manualSignging; } if (includeAllLabels) { localVarQueryParameter['includeAllLabels'] = includeAllLabels; } if (includeAnyLabels) { localVarQueryParameter['includeAnyLabels'] = includeAnyLabels; } if (excludeAnyLabels) { localVarQueryParameter['excludeAnyLabels'] = excludeAnyLabels; } if (address !== undefined) { localVarQueryParameter['address'] = address; } if (minAmount !== undefined) { localVarQueryParameter['minAmount'] = minAmount; } if (maxAmount !== undefined) { localVarQueryParameter['maxAmount'] = maxAmount; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Gets all vault accounts in your workspace. This endpoint returns a limited amount of results with a quick response time. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get vault accounts (Paginated) * @param {string} [namePrefix] * @param {string} [nameSuffix] * @param {number} [minAmountThreshold] Specifying minAmountThreshold will filter accounts whose total balance is greater than this value; otherwise, it returns all accounts. The amount set in this parameter represents the native asset amount, not its USD value. * @param {string} [assetId] * @param {GetPagedVaultAccountsOrderByEnum} [orderBy] * @param {string} [before] * @param {string} [after] * @param {number} [limit] * @param {Array} [tagIds] DEPRECATED - use includeTagIds instead * @param {Array} [includeTagIds] List of tag IDs to include. Vault accounts with any of these tags will be included * @param {Array} [excludeTagIds] List of tag IDs to exclude. Vault accounts with any of these tags will be filtered out * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPagedVaultAccounts: async (namePrefix?: string, nameSuffix?: string, minAmountThreshold?: number, assetId?: string, orderBy?: GetPagedVaultAccountsOrderByEnum, before?: string, after?: string, limit?: number, tagIds?: Array, includeTagIds?: Array, excludeTagIds?: Array, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/vault/accounts_paged`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getPagedVaultAccounts'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (namePrefix !== undefined) { localVarQueryParameter['namePrefix'] = namePrefix; } if (nameSuffix !== undefined) { localVarQueryParameter['nameSuffix'] = nameSuffix; } if (minAmountThreshold !== undefined) { localVarQueryParameter['minAmountThreshold'] = minAmountThreshold; } if (assetId !== undefined) { localVarQueryParameter['assetId'] = assetId; } if (orderBy !== undefined) { localVarQueryParameter['orderBy'] = orderBy; } if (before !== undefined) { localVarQueryParameter['before'] = before; } if (after !== undefined) { localVarQueryParameter['after'] = after; } if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (tagIds) { localVarQueryParameter['tagIds'] = tagIds; } if (includeTagIds) { localVarQueryParameter['includeTagIds'] = includeTagIds; } if (excludeTagIds) { localVarQueryParameter['excludeTagIds'] = excludeTagIds; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Gets the public key information based on derivation path and signing algorithm. Endpoint Permission: Admin, Non-Signing Admin. * @summary Get the public key for a derivation path * @param {string} derivationPath * @param {string} algorithm * @param {boolean} [compressed] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicKeyInfo: async (derivationPath: string, algorithm: string, compressed?: boolean, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getPublicKeyInfo', 'derivationPath', derivationPath) assertParamExistsAndNotEmpty('getPublicKeyInfo', 'algorithm', algorithm) const localVarPath = `/vault/public_key_info`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getPublicKeyInfo'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (derivationPath !== undefined) { localVarQueryParameter['derivationPath'] = derivationPath; } if (algorithm !== undefined) { localVarQueryParameter['algorithm'] = algorithm; } if (compressed !== undefined) { localVarQueryParameter['compressed'] = compressed; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get the public key information for a specific asset in a vault account. Endpoint Permission: Admin, Non-Signing Admin. * @summary Get an asset\'s public key * @param {string} vaultAccountId * @param {string} assetId * @param {number} change * @param {number} addressIndex * @param {boolean} [compressed] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicKeyInfoForAddress: async (vaultAccountId: string, assetId: string, change: number, addressIndex: number, compressed?: boolean, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getPublicKeyInfoForAddress', 'vaultAccountId', vaultAccountId) assertParamExistsAndNotEmpty('getPublicKeyInfoForAddress', 'assetId', assetId) assertParamExists('getPublicKeyInfoForAddress', 'change', change) assertParamExists('getPublicKeyInfoForAddress', 'addressIndex', addressIndex) const localVarPath = `/vault/accounts/{vaultAccountId}/{assetId}/{change}/{addressIndex}/public_key_info` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))) .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId))) .replace(`{${"change"}}`, encodeURIComponent(String(change))) .replace(`{${"addressIndex"}}`, encodeURIComponent(String(addressIndex))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getPublicKeyInfoForAddress'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (compressed !== undefined) { localVarQueryParameter['compressed'] = compressed; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns unspent inputs information of an UTXO asset in a vault account. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get UTXO unspent inputs information * @param {string} vaultAccountId The ID of the vault account * @param {string} assetId The ID of the asset * @param {*} [options] Override http request option. * @throws {RequiredError} */ getUnspentInputs: async (vaultAccountId: string, assetId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getUnspentInputs', 'vaultAccountId', vaultAccountId) assertParamExistsAndNotEmpty('getUnspentInputs', 'assetId', assetId) const localVarPath = `/vault/accounts/{vaultAccountId}/{assetId}/unspent_inputs` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))) .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getUnspentInputs'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the USDC Gateway deposit automations configured for the given vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Read the USDC Gateway deposit automations for a vault account * @param {string} vaultAccountId The ID of the vault account * @param {*} [options] Override http request option. * @throws {RequiredError} */ getUsdcGatewayDepositAutomationBeta: async (vaultAccountId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getUsdcGatewayDepositAutomationBeta', 'vaultAccountId', vaultAccountId) const localVarPath = `/vault/accounts/{vaultAccountId}/virtual_asset_wallet/usdc_gateway/deposit_automation` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getUsdcGatewayDepositAutomationBeta'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the USDC Gateway wallet information associated with the given vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get USDC Gateway wallet info * @param {string} vaultAccountId The ID of the vault account * @param {*} [options] Override http request option. * @throws {RequiredError} */ getUsdcGatewayWalletInfoBeta: async (vaultAccountId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getUsdcGatewayWalletInfoBeta', 'vaultAccountId', vaultAccountId) const localVarPath = `/vault/accounts/{vaultAccountId}/usdc_gateway` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getUsdcGatewayWalletInfoBeta'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get a vault account by its unique ID. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get a vault account by ID * @param {string} vaultAccountId The ID of the vault account * @param {*} [options] Override http request option. * @throws {RequiredError} */ getVaultAccount: async (vaultAccountId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getVaultAccount', 'vaultAccountId', vaultAccountId) const localVarPath = `/vault/accounts/{vaultAccountId}` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getVaultAccount'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns a specific vault wallet balance information for a specific asset. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get the asset balance for a vault account * @param {string} vaultAccountId The ID of the vault account to return * @param {string} assetId The ID of the asset * @param {*} [options] Override http request option. * @throws {RequiredError} */ getVaultAccountAsset: async (vaultAccountId: string, assetId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getVaultAccountAsset', 'vaultAccountId', vaultAccountId) assertParamExistsAndNotEmpty('getVaultAccountAsset', 'assetId', assetId) const localVarPath = `/vault/accounts/{vaultAccountId}/{assetId}` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))) .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getVaultAccountAsset'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns a paginated response of the addresses for a given vault account and asset. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get addresses (Paginated) * @param {string} vaultAccountId The ID of the vault account to return * @param {string} assetId The ID of the asset * @param {number} [limit] * @param {string} [before] * @param {string} [after] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getVaultAccountAssetAddressesPaginated: async (vaultAccountId: string, assetId: string, limit?: number, before?: string, after?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getVaultAccountAssetAddressesPaginated', 'vaultAccountId', vaultAccountId) assertParamExistsAndNotEmpty('getVaultAccountAssetAddressesPaginated', 'assetId', assetId) const localVarPath = `/vault/accounts/{vaultAccountId}/{assetId}/addresses_paginated` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))) .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getVaultAccountAssetAddressesPaginated'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (before !== undefined) { localVarQueryParameter['before'] = before; } if (after !== undefined) { localVarQueryParameter['after'] = after; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Gets the assets amount summary for all accounts or filtered accounts. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get asset balance for chosen assets * @param {string} [accountNamePrefix] * @param {string} [accountNameSuffix] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getVaultAssets: async (accountNamePrefix?: string, accountNameSuffix?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/vault/assets`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getVaultAssets'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (accountNamePrefix !== undefined) { localVarQueryParameter['accountNamePrefix'] = accountNamePrefix; } if (accountNameSuffix !== undefined) { localVarQueryParameter['accountNameSuffix'] = accountNameSuffix; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get the total balance of an asset across all the vault accounts. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get vault balance by an asset * @param {string} assetId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getVaultBalanceByAsset: async (assetId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getVaultBalanceByAsset', 'assetId', assetId) const localVarPath = `/vault/assets/{assetId}` .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getVaultBalanceByAsset'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Hides the requested vault account from the web console view. This operation is required when creating thousands of vault accounts to serve your end-users. Used for preventing the web console to be swamped with too much vault accounts. Learn more in the following [guide](https://developers.fireblocks.com/docs/create-direct-custody-wallets#hiding-vault-accounts). NOTE: Hiding the vault account from the web console will also hide all the related transactions to/from this vault. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Hide a vault account in the console * @param {string} vaultAccountId The vault account to hide * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ hideVaultAccount: async (vaultAccountId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('hideVaultAccount', 'vaultAccountId', vaultAccountId) const localVarPath = `/vault/accounts/{vaultAccountId}/hide` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'hideVaultAccount'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Resolves a blockchain address to the vault account that owns it. Returns the vault account ID and the blockchains associated with the address. **Note:** This endpoint is currently in beta and might be subject to changes. * @summary Look up a vault account by blockchain address * @param {string} address The blockchain address to resolve. * @param {*} [options] Override http request option. * @throws {RequiredError} */ lookupVaultByAddress: async (address: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('lookupVaultByAddress', 'address', address) const localVarPath = `/vault/lookup_by_address`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'lookupVaultByAddress'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (address !== undefined) { localVarQueryParameter['address'] = address; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Sets an AML/KYT customer reference ID for a specific address. Endpoint Permission: Admin, Non-Signing Admin. * @summary Assign AML customer reference ID * @param {SetCustomerRefIdForAddressRequest} setCustomerRefIdForAddressRequest * @param {string} vaultAccountId The ID of the vault account * @param {string} assetId The ID of the asset * @param {string} addressId The address for which to add a description. For XRP, use <address>:<tag>, for all other assets, use only the address * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setCustomerRefIdForAddress: async (setCustomerRefIdForAddressRequest: SetCustomerRefIdForAddressRequest, vaultAccountId: string, assetId: string, addressId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('setCustomerRefIdForAddress', 'setCustomerRefIdForAddressRequest', setCustomerRefIdForAddressRequest) assertParamExistsAndNotEmpty('setCustomerRefIdForAddress', 'vaultAccountId', vaultAccountId) assertParamExistsAndNotEmpty('setCustomerRefIdForAddress', 'assetId', assetId) assertParamExistsAndNotEmpty('setCustomerRefIdForAddress', 'addressId', addressId) const localVarPath = `/vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/set_customer_ref_id` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))) .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId))) .replace(`{${"addressId"}}`, encodeURIComponent(String(addressId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'setCustomerRefIdForAddress'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(setCustomerRefIdForAddressRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Turns on automatic deposits into the USDC Gateway wallet for the given vault account, on the schedule you choose. Returns an error if an automation already exists for this vault account and asset. Use PATCH to change it instead. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Set up a USDC Gateway deposit automation for a vault account * @param {AutomationSettingsRequest} automationSettingsRequest * @param {string} vaultAccountId The ID of the vault account * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setUsdcGatewayDepositAutomationBeta: async (automationSettingsRequest: AutomationSettingsRequest, vaultAccountId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('setUsdcGatewayDepositAutomationBeta', 'automationSettingsRequest', automationSettingsRequest) assertParamExistsAndNotEmpty('setUsdcGatewayDepositAutomationBeta', 'vaultAccountId', vaultAccountId) const localVarPath = `/vault/accounts/{vaultAccountId}/virtual_asset_wallet/usdc_gateway/deposit_automation` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'setUsdcGatewayDepositAutomationBeta'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(automationSettingsRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Toggles the auto fueling property of the vault account to enabled or disabled. Vault Accounts with \'autoFuel=true\' are monitored and auto fueled by the Fireblocks Gas Station. Learn more about the Fireblocks Gas Station in the following [guide](https://developers.fireblocks.com/docs/work-with-gas-station). Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Set auto fueling to on or off * @param {SetAutoFuelRequest} setAutoFuelRequest * @param {string} vaultAccountId The vault account ID * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setVaultAccountAutoFuel: async (setAutoFuelRequest: SetAutoFuelRequest, vaultAccountId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('setVaultAccountAutoFuel', 'setAutoFuelRequest', setAutoFuelRequest) assertParamExistsAndNotEmpty('setVaultAccountAutoFuel', 'vaultAccountId', vaultAccountId) const localVarPath = `/vault/accounts/{vaultAccountId}/set_auto_fuel` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'setVaultAccountAutoFuel'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(setAutoFuelRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Assigns an AML/KYT customer reference ID for the vault account. Learn more about Fireblocks AML management in the following [guide](https://developers.fireblocks.com/docs/define-aml-policies). Endpoint Permission: Admin, Non-Signing Admin. * @summary Set an AML/KYT ID for a vault account * @param {SetCustomerRefIdRequest} setCustomerRefIdRequest * @param {string} vaultAccountId The vault account ID * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setVaultAccountCustomerRefId: async (setCustomerRefIdRequest: SetCustomerRefIdRequest, vaultAccountId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('setVaultAccountCustomerRefId', 'setCustomerRefIdRequest', setCustomerRefIdRequest) assertParamExistsAndNotEmpty('setVaultAccountCustomerRefId', 'vaultAccountId', vaultAccountId) const localVarPath = `/vault/accounts/{vaultAccountId}/set_customer_ref_id` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'setVaultAccountCustomerRefId'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(setCustomerRefIdRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Makes a hidden vault account visible in web console view. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Unhide a vault account in the console * @param {string} vaultAccountId The vault account to unhide * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ unhideVaultAccount: async (vaultAccountId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('unhideVaultAccount', 'vaultAccountId', vaultAccountId) const localVarPath = `/vault/accounts/{vaultAccountId}/unhide` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'unhideVaultAccount'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Changes an existing USDC Gateway deposit automation for a vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Change a USDC Gateway deposit automation * @param {UpdateAutomationSettingsRequest} updateAutomationSettingsRequest * @param {string} vaultAccountId The ID of the vault account * @param {string} automationId The ID of the deposit automation, returned when it was created or read * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateUsdcGatewayDepositAutomationBeta: async (updateAutomationSettingsRequest: UpdateAutomationSettingsRequest, vaultAccountId: string, automationId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('updateUsdcGatewayDepositAutomationBeta', 'updateAutomationSettingsRequest', updateAutomationSettingsRequest) assertParamExistsAndNotEmpty('updateUsdcGatewayDepositAutomationBeta', 'vaultAccountId', vaultAccountId) assertParamExistsAndNotEmpty('updateUsdcGatewayDepositAutomationBeta', 'automationId', automationId) const localVarPath = `/vault/accounts/{vaultAccountId}/virtual_asset_wallet/usdc_gateway/deposit_automation/{automationId}` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))) .replace(`{${"automationId"}}`, encodeURIComponent(String(automationId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'updateUsdcGatewayDepositAutomationBeta'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(updateAutomationSettingsRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Renames the requested vault account. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Rename a vault account * @param {UpdateVaultAccountRequest} updateVaultAccountRequest * @param {string} vaultAccountId The ID of the vault account to edit * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateVaultAccount: async (updateVaultAccountRequest: UpdateVaultAccountRequest, vaultAccountId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('updateVaultAccount', 'updateVaultAccountRequest', updateVaultAccountRequest) assertParamExistsAndNotEmpty('updateVaultAccount', 'vaultAccountId', vaultAccountId) const localVarPath = `/vault/accounts/{vaultAccountId}` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'updateVaultAccount'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(updateVaultAccountRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates the description of an existing address of an asset in a vault account. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Update address description * @param {string} vaultAccountId The ID of the vault account * @param {string} assetId The ID of the asset * @param {string} addressId The address for which to add a description. For XRP, use <address>:<tag>, for all other assets, use only the address * @param {UpdateVaultAccountAssetAddressRequest} [updateVaultAccountAssetAddressRequest] * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateVaultAccountAssetAddress: async (vaultAccountId: string, assetId: string, addressId: string, updateVaultAccountAssetAddressRequest?: UpdateVaultAccountAssetAddressRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('updateVaultAccountAssetAddress', 'vaultAccountId', vaultAccountId) assertParamExistsAndNotEmpty('updateVaultAccountAssetAddress', 'assetId', assetId) assertParamExistsAndNotEmpty('updateVaultAccountAssetAddress', 'addressId', addressId) const localVarPath = `/vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))) .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId))) .replace(`{${"addressId"}}`, encodeURIComponent(String(addressId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'updateVaultAccountAssetAddress'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(updateVaultAccountAssetAddressRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates the balance of a specific asset in a vault account. This API endpoint is subject to a strict rate limit. Should be used by clients in very specific scenarios. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Refresh asset balance data * @param {string} vaultAccountId The ID of the vault account to return * @param {string} assetId The ID of the asset * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateVaultAccountAssetBalance: async (vaultAccountId: string, assetId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('updateVaultAccountAssetBalance', 'vaultAccountId', vaultAccountId) assertParamExistsAndNotEmpty('updateVaultAccountAssetBalance', 'assetId', assetId) const localVarPath = `/vault/accounts/{vaultAccountId}/{assetId}/balance` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))) .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'updateVaultAccountAssetBalance'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * VaultsApi - functional programming interface * @export */ export const VaultsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = VaultsApiAxiosParamCreator(configuration) return { /** * Initiates activation for a wallet in a vault account. Activation is required for tokens that need an on-chain transaction for creation. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Activate a wallet in a vault account * @param {string} vaultAccountId The ID of the vault account to return, or \'default\' for the default vault account * @param {string} assetId The ID of the asset * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {string} [blockchainWalletType] Optional immutable blockchain wallet type to store per tenant+vault * @param {*} [options] Override http request option. * @throws {RequiredError} */ async activateAssetForVaultAccount(vaultAccountId: string, assetId: string, idempotencyKey?: string, blockchainWalletType?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.activateAssetForVaultAccount(vaultAccountId, assetId, idempotencyKey, blockchainWalletType, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.activateAssetForVaultAccount']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Activates the USDC Gateway wallet associated with the given vault account. If the wallet does not yet exist it is created in an activated state. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Activate a USDC Gateway wallet * @param {string} vaultAccountId The ID of the vault account * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async activateUsdcGatewayWalletBeta(vaultAccountId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.activateUsdcGatewayWalletBeta(vaultAccountId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.activateUsdcGatewayWalletBeta']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Attach or detach one or more tags from the requested vault accounts. Endpoint Permission: For protected tags: Owner, Admin, Non-Signing Admin. For non protected tags: Owner, Admin, Non-Signing Admin, Signer, Editor, Approver. * @summary Attach or detach tags from vault accounts * @param {VaultAccountsTagAttachmentOperationsRequest} vaultAccountsTagAttachmentOperationsRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async attachOrDetachTagsFromVaultAccounts(vaultAccountsTagAttachmentOperationsRequest: VaultAccountsTagAttachmentOperationsRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.attachOrDetachTagsFromVaultAccounts(vaultAccountsTagAttachmentOperationsRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.attachOrDetachTagsFromVaultAccounts']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Converts an existing segwit address to the legacy format. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Convert a segwit address to legacy format * @param {string} vaultAccountId The ID of the vault account * @param {string} assetId The ID of the asset * @param {string} addressId The segwit address to translate * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createLegacyAddress(vaultAccountId: string, assetId: string, addressId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createLegacyAddress(vaultAccountId, assetId, addressId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.createLegacyAddress']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Create multiple vault accounts by running an async job. - The HBAR, TON, SUI, TERRA, ALGO, and DOT blockchains are not supported. - These endpoints are currently in beta and might be subject to changes. - Limited to a maximum of 10,000 accounts per operation. - With `vaultType: KEY_LINK`, creates Key Link vault accounts; set `autoAssign: true` to bind them to the workspace\'s signing keys (see `vaultType` and `autoAssign`). **Endpoint Permissions:** Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Bulk creation of new vault accounts * @param {CreateMultipleAccountsRequest} createMultipleAccountsRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createMultipleAccounts(createMultipleAccountsRequest: CreateMultipleAccountsRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createMultipleAccounts(createMultipleAccountsRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.createMultipleAccounts']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * **For UTXO blockchains only.** Create multiple deposit addresses by running an async job. - The target Vault account should already have a UTXO asset wallet with a permanent address. - Limited to a maximum of 10,000 addresses per operation. Use multiple operations for the same Vault account/permanent address if needed. **Endpoint Permissions:** Admin, Non-Signing Admin. * @summary Bulk creation of new deposit addresses * @param {CreateMultipleDepositAddressesRequest} createMultipleDepositAddressesRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createMultipleDepositAddresses(createMultipleDepositAddressesRequest: CreateMultipleDepositAddressesRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createMultipleDepositAddresses(createMultipleDepositAddressesRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.createMultipleDepositAddresses']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Creates a new vault account with the requested name. **Note: ** Vault account names should consist of ASCII characters only. Learn more about Fireblocks Vault Accounts in the following [guide](https://developers.fireblocks.com/reference/create-vault-account). Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Create a new vault account * @param {CreateVaultAccountRequest} createVaultAccountRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createVaultAccount(createVaultAccountRequest: CreateVaultAccountRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createVaultAccount(createVaultAccountRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.createVaultAccount']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Creates a wallet for a specific asset in a vault account. Learn more about Fireblocks Vault Wallets in the following [guide](https://developers.fireblocks.com/reference/create-vault-wallet). Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Create a new vault wallet * @param {string} vaultAccountId The ID of the vault account to return, or \'default\' for the default vault account * @param {string} assetId The ID of the asset * @param {CreateAssetsRequest} [createAssetsRequest] * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {string} [blockchainWalletType] Optional immutable blockchain wallet type to store per tenant+vault * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createVaultAccountAsset(vaultAccountId: string, assetId: string, createAssetsRequest?: CreateAssetsRequest, idempotencyKey?: string, blockchainWalletType?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createVaultAccountAsset(vaultAccountId, assetId, createAssetsRequest, idempotencyKey, blockchainWalletType, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.createVaultAccountAsset']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Creates a new deposit address for an asset of a vault account. Should be used for UTXO or Tag/Memo based assets ONLY. Requests with account based assets will fail. Endpoint Permission: Admin, Non-Signing Admin. * @summary Create new asset deposit address * @param {string} vaultAccountId The ID of the vault account to return * @param {string} assetId The ID of the asset * @param {CreateAddressRequest} [createAddressRequest] * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createVaultAccountAssetAddress(vaultAccountId: string, assetId: string, createAddressRequest?: CreateAddressRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createVaultAccountAssetAddress(vaultAccountId, assetId, createAddressRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.createVaultAccountAssetAddress']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Deactivates the USDC Gateway wallet associated with the given vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Deactivate a USDC Gateway wallet * @param {string} vaultAccountId The ID of the vault account * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deactivateUsdcGatewayWalletBeta(vaultAccountId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deactivateUsdcGatewayWalletBeta(vaultAccountId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.deactivateUsdcGatewayWalletBeta']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Stops the schedule for an existing deposit automation. The automation itself stays configured, only its schedule stops. Turn it back on later with PATCH, without setting up the automation again from scratch. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Stop a USDC Gateway deposit automation\'s schedule * @param {string} vaultAccountId The ID of the vault account * @param {string} automationId The ID of the deposit automation, returned when it was created or read * @param {*} [options] Override http request option. * @throws {RequiredError} */ async disableUsdcGatewayDepositAutomationScheduleBeta(vaultAccountId: string, automationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.disableUsdcGatewayDepositAutomationScheduleBeta(vaultAccountId, automationId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.disableUsdcGatewayDepositAutomationScheduleBeta']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get all vault wallets of the vault accounts in your workspace. A vault wallet is an asset in a vault account. This method allows fast traversal of all account balances. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get vault wallets (Paginated) * @param {number} [totalAmountLargerThan] When specified, only vault wallets with total balance greater than this amount are returned. * @param {string} [assetId] When specified, only vault wallets with the specified ID are returned. * @param {GetAssetWalletsOrderByEnum} [orderBy] * @param {string} [before] Fetches the next paginated response before this element. This element is a cursor and is returned at the response of the previous page. * @param {string} [after] Fetches the next paginated response after this element. This element is a cursor and is returned at the response of the previous page. * @param {number} [limit] The maximum number of vault wallets in a single response. The default is 200 and the maximum is 1000. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAssetWallets(totalAmountLargerThan?: number, assetId?: string, orderBy?: GetAssetWalletsOrderByEnum, before?: string, after?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetWallets(totalAmountLargerThan, assetId, orderBy, before, after, limit, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.getAssetWallets']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns the current status of (or an error for) the specified deposit addresss bulk creation job. **Endpoint Permissions:** Admin, Non-Signing Admin, Signer, Approver, Editor, and Viewer. * @summary Get the job status of the bulk deposit address creation * @param {string} jobId The ID of the job to create addresses * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getCreateMultipleDepositAddressesJobStatus(jobId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCreateMultipleDepositAddressesJobStatus(jobId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.getCreateMultipleDepositAddressesJobStatus']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns the current status of (or error for) the specified vault account bulk creation job. **Endpoint Permissions:** Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get job status of bulk creation of new vault accounts * @param {string} jobId The ID of the job to create addresses * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getCreateMultipleVaultAccountsJobStatus(jobId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCreateMultipleVaultAccountsJobStatus(jobId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.getCreateMultipleVaultAccountsJobStatus']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Retrieves the maximum BIP44 address index and change address index used for a specific asset in a vault account (BIP44 standard). * @summary Get maximum BIP44 index used * @param {string} vaultAccountId The ID of the vault account * @param {string} assetId The ID of the asset * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getMaxBipIndexUsed(vaultAccountId: string, assetId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getMaxBipIndexUsed(vaultAccountId, assetId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.getMaxBipIndexUsed']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * **UTXO assets only.** Retrieve the maximum amount of the specified asset that can be spent in a single transaction from the specified vault account. **Endpoint Permissions:** Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get max spendable amount in a transaction * @param {string} vaultAccountId The ID of the vault account * @param {string} assetId The ID of the asset * @param {boolean} [manualSignging] False by default. The maximum number of inputs depends if the transaction will be signed by an automated co-signer server or on a mobile device. * @param {Array} [includeAllLabels] Only include UTXOs that have ALL of these labels (AND logic). Requires the UTXO Manager. * @param {Array} [includeAnyLabels] Only include UTXOs that have ANY of these labels (OR logic). Requires the UTXO Manager. * @param {Array} [excludeAnyLabels] Exclude UTXOs that have ANY of these labels. Requires the UTXO Manager. * @param {string} [address] Only include UTXOs from this specific address. Requires the UTXO Manager. * @param {string} [minAmount] Minimum UTXO amount in the asset\'s base unit. Requires the UTXO Manager. * @param {string} [maxAmount] Maximum UTXO amount in the asset\'s base unit. Requires the UTXO Manager. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getMaxSpendableAmount(vaultAccountId: string, assetId: string, manualSignging?: boolean, includeAllLabels?: Array, includeAnyLabels?: Array, excludeAnyLabels?: Array, address?: string, minAmount?: string, maxAmount?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getMaxSpendableAmount(vaultAccountId, assetId, manualSignging, includeAllLabels, includeAnyLabels, excludeAnyLabels, address, minAmount, maxAmount, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.getMaxSpendableAmount']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Gets all vault accounts in your workspace. This endpoint returns a limited amount of results with a quick response time. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get vault accounts (Paginated) * @param {string} [namePrefix] * @param {string} [nameSuffix] * @param {number} [minAmountThreshold] Specifying minAmountThreshold will filter accounts whose total balance is greater than this value; otherwise, it returns all accounts. The amount set in this parameter represents the native asset amount, not its USD value. * @param {string} [assetId] * @param {GetPagedVaultAccountsOrderByEnum} [orderBy] * @param {string} [before] * @param {string} [after] * @param {number} [limit] * @param {Array} [tagIds] DEPRECATED - use includeTagIds instead * @param {Array} [includeTagIds] List of tag IDs to include. Vault accounts with any of these tags will be included * @param {Array} [excludeTagIds] List of tag IDs to exclude. Vault accounts with any of these tags will be filtered out * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getPagedVaultAccounts(namePrefix?: string, nameSuffix?: string, minAmountThreshold?: number, assetId?: string, orderBy?: GetPagedVaultAccountsOrderByEnum, before?: string, after?: string, limit?: number, tagIds?: Array, includeTagIds?: Array, excludeTagIds?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPagedVaultAccounts(namePrefix, nameSuffix, minAmountThreshold, assetId, orderBy, before, after, limit, tagIds, includeTagIds, excludeTagIds, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.getPagedVaultAccounts']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Gets the public key information based on derivation path and signing algorithm. Endpoint Permission: Admin, Non-Signing Admin. * @summary Get the public key for a derivation path * @param {string} derivationPath * @param {string} algorithm * @param {boolean} [compressed] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getPublicKeyInfo(derivationPath: string, algorithm: string, compressed?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicKeyInfo(derivationPath, algorithm, compressed, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.getPublicKeyInfo']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get the public key information for a specific asset in a vault account. Endpoint Permission: Admin, Non-Signing Admin. * @summary Get an asset\'s public key * @param {string} vaultAccountId * @param {string} assetId * @param {number} change * @param {number} addressIndex * @param {boolean} [compressed] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getPublicKeyInfoForAddress(vaultAccountId: string, assetId: string, change: number, addressIndex: number, compressed?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicKeyInfoForAddress(vaultAccountId, assetId, change, addressIndex, compressed, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.getPublicKeyInfoForAddress']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns unspent inputs information of an UTXO asset in a vault account. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get UTXO unspent inputs information * @param {string} vaultAccountId The ID of the vault account * @param {string} assetId The ID of the asset * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getUnspentInputs(vaultAccountId: string, assetId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getUnspentInputs(vaultAccountId, assetId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.getUnspentInputs']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns the USDC Gateway deposit automations configured for the given vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Read the USDC Gateway deposit automations for a vault account * @param {string} vaultAccountId The ID of the vault account * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getUsdcGatewayDepositAutomationBeta(vaultAccountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getUsdcGatewayDepositAutomationBeta(vaultAccountId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.getUsdcGatewayDepositAutomationBeta']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns the USDC Gateway wallet information associated with the given vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get USDC Gateway wallet info * @param {string} vaultAccountId The ID of the vault account * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getUsdcGatewayWalletInfoBeta(vaultAccountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getUsdcGatewayWalletInfoBeta(vaultAccountId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.getUsdcGatewayWalletInfoBeta']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get a vault account by its unique ID. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get a vault account by ID * @param {string} vaultAccountId The ID of the vault account * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getVaultAccount(vaultAccountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultAccount(vaultAccountId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.getVaultAccount']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns a specific vault wallet balance information for a specific asset. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get the asset balance for a vault account * @param {string} vaultAccountId The ID of the vault account to return * @param {string} assetId The ID of the asset * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getVaultAccountAsset(vaultAccountId: string, assetId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultAccountAsset(vaultAccountId, assetId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.getVaultAccountAsset']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns a paginated response of the addresses for a given vault account and asset. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get addresses (Paginated) * @param {string} vaultAccountId The ID of the vault account to return * @param {string} assetId The ID of the asset * @param {number} [limit] * @param {string} [before] * @param {string} [after] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getVaultAccountAssetAddressesPaginated(vaultAccountId: string, assetId: string, limit?: number, before?: string, after?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultAccountAssetAddressesPaginated(vaultAccountId, assetId, limit, before, after, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.getVaultAccountAssetAddressesPaginated']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Gets the assets amount summary for all accounts or filtered accounts. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get asset balance for chosen assets * @param {string} [accountNamePrefix] * @param {string} [accountNameSuffix] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getVaultAssets(accountNamePrefix?: string, accountNameSuffix?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultAssets(accountNamePrefix, accountNameSuffix, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.getVaultAssets']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get the total balance of an asset across all the vault accounts. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get vault balance by an asset * @param {string} assetId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getVaultBalanceByAsset(assetId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultBalanceByAsset(assetId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.getVaultBalanceByAsset']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Hides the requested vault account from the web console view. This operation is required when creating thousands of vault accounts to serve your end-users. Used for preventing the web console to be swamped with too much vault accounts. Learn more in the following [guide](https://developers.fireblocks.com/docs/create-direct-custody-wallets#hiding-vault-accounts). NOTE: Hiding the vault account from the web console will also hide all the related transactions to/from this vault. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Hide a vault account in the console * @param {string} vaultAccountId The vault account to hide * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async hideVaultAccount(vaultAccountId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.hideVaultAccount(vaultAccountId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.hideVaultAccount']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Resolves a blockchain address to the vault account that owns it. Returns the vault account ID and the blockchains associated with the address. **Note:** This endpoint is currently in beta and might be subject to changes. * @summary Look up a vault account by blockchain address * @param {string} address The blockchain address to resolve. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async lookupVaultByAddress(address: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.lookupVaultByAddress(address, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.lookupVaultByAddress']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Sets an AML/KYT customer reference ID for a specific address. Endpoint Permission: Admin, Non-Signing Admin. * @summary Assign AML customer reference ID * @param {SetCustomerRefIdForAddressRequest} setCustomerRefIdForAddressRequest * @param {string} vaultAccountId The ID of the vault account * @param {string} assetId The ID of the asset * @param {string} addressId The address for which to add a description. For XRP, use <address>:<tag>, for all other assets, use only the address * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async setCustomerRefIdForAddress(setCustomerRefIdForAddressRequest: SetCustomerRefIdForAddressRequest, vaultAccountId: string, assetId: string, addressId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setCustomerRefIdForAddress(setCustomerRefIdForAddressRequest, vaultAccountId, assetId, addressId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.setCustomerRefIdForAddress']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Turns on automatic deposits into the USDC Gateway wallet for the given vault account, on the schedule you choose. Returns an error if an automation already exists for this vault account and asset. Use PATCH to change it instead. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Set up a USDC Gateway deposit automation for a vault account * @param {AutomationSettingsRequest} automationSettingsRequest * @param {string} vaultAccountId The ID of the vault account * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async setUsdcGatewayDepositAutomationBeta(automationSettingsRequest: AutomationSettingsRequest, vaultAccountId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setUsdcGatewayDepositAutomationBeta(automationSettingsRequest, vaultAccountId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.setUsdcGatewayDepositAutomationBeta']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Toggles the auto fueling property of the vault account to enabled or disabled. Vault Accounts with \'autoFuel=true\' are monitored and auto fueled by the Fireblocks Gas Station. Learn more about the Fireblocks Gas Station in the following [guide](https://developers.fireblocks.com/docs/work-with-gas-station). Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Set auto fueling to on or off * @param {SetAutoFuelRequest} setAutoFuelRequest * @param {string} vaultAccountId The vault account ID * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async setVaultAccountAutoFuel(setAutoFuelRequest: SetAutoFuelRequest, vaultAccountId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setVaultAccountAutoFuel(setAutoFuelRequest, vaultAccountId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.setVaultAccountAutoFuel']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Assigns an AML/KYT customer reference ID for the vault account. Learn more about Fireblocks AML management in the following [guide](https://developers.fireblocks.com/docs/define-aml-policies). Endpoint Permission: Admin, Non-Signing Admin. * @summary Set an AML/KYT ID for a vault account * @param {SetCustomerRefIdRequest} setCustomerRefIdRequest * @param {string} vaultAccountId The vault account ID * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async setVaultAccountCustomerRefId(setCustomerRefIdRequest: SetCustomerRefIdRequest, vaultAccountId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setVaultAccountCustomerRefId(setCustomerRefIdRequest, vaultAccountId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.setVaultAccountCustomerRefId']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Makes a hidden vault account visible in web console view. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Unhide a vault account in the console * @param {string} vaultAccountId The vault account to unhide * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async unhideVaultAccount(vaultAccountId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.unhideVaultAccount(vaultAccountId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.unhideVaultAccount']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Changes an existing USDC Gateway deposit automation for a vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Change a USDC Gateway deposit automation * @param {UpdateAutomationSettingsRequest} updateAutomationSettingsRequest * @param {string} vaultAccountId The ID of the vault account * @param {string} automationId The ID of the deposit automation, returned when it was created or read * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateUsdcGatewayDepositAutomationBeta(updateAutomationSettingsRequest: UpdateAutomationSettingsRequest, vaultAccountId: string, automationId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateUsdcGatewayDepositAutomationBeta(updateAutomationSettingsRequest, vaultAccountId, automationId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.updateUsdcGatewayDepositAutomationBeta']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Renames the requested vault account. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Rename a vault account * @param {UpdateVaultAccountRequest} updateVaultAccountRequest * @param {string} vaultAccountId The ID of the vault account to edit * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateVaultAccount(updateVaultAccountRequest: UpdateVaultAccountRequest, vaultAccountId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateVaultAccount(updateVaultAccountRequest, vaultAccountId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.updateVaultAccount']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Updates the description of an existing address of an asset in a vault account. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Update address description * @param {string} vaultAccountId The ID of the vault account * @param {string} assetId The ID of the asset * @param {string} addressId The address for which to add a description. For XRP, use <address>:<tag>, for all other assets, use only the address * @param {UpdateVaultAccountAssetAddressRequest} [updateVaultAccountAssetAddressRequest] * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateVaultAccountAssetAddress(vaultAccountId: string, assetId: string, addressId: string, updateVaultAccountAssetAddressRequest?: UpdateVaultAccountAssetAddressRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateVaultAccountAssetAddress(vaultAccountId, assetId, addressId, updateVaultAccountAssetAddressRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.updateVaultAccountAssetAddress']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Updates the balance of a specific asset in a vault account. This API endpoint is subject to a strict rate limit. Should be used by clients in very specific scenarios. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Refresh asset balance data * @param {string} vaultAccountId The ID of the vault account to return * @param {string} assetId The ID of the asset * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateVaultAccountAssetBalance(vaultAccountId: string, assetId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateVaultAccountAssetBalance(vaultAccountId, assetId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.updateVaultAccountAssetBalance']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, } }; /** * VaultsApi - factory interface * @export */ export const VaultsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = VaultsApiFp(configuration) return { /** * Initiates activation for a wallet in a vault account. Activation is required for tokens that need an on-chain transaction for creation. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Activate a wallet in a vault account * @param {VaultsApiActivateAssetForVaultAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ activateAssetForVaultAccount(requestParameters: VaultsApiActivateAssetForVaultAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.activateAssetForVaultAccount(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.idempotencyKey, requestParameters.blockchainWalletType, options).then((request) => request(axios, basePath)); }, /** * Activates the USDC Gateway wallet associated with the given vault account. If the wallet does not yet exist it is created in an activated state. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Activate a USDC Gateway wallet * @param {VaultsApiActivateUsdcGatewayWalletBetaRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ activateUsdcGatewayWalletBeta(requestParameters: VaultsApiActivateUsdcGatewayWalletBetaRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.activateUsdcGatewayWalletBeta(requestParameters.vaultAccountId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Attach or detach one or more tags from the requested vault accounts. Endpoint Permission: For protected tags: Owner, Admin, Non-Signing Admin. For non protected tags: Owner, Admin, Non-Signing Admin, Signer, Editor, Approver. * @summary Attach or detach tags from vault accounts * @param {VaultsApiAttachOrDetachTagsFromVaultAccountsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ attachOrDetachTagsFromVaultAccounts(requestParameters: VaultsApiAttachOrDetachTagsFromVaultAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.attachOrDetachTagsFromVaultAccounts(requestParameters.vaultAccountsTagAttachmentOperationsRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Converts an existing segwit address to the legacy format. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Convert a segwit address to legacy format * @param {VaultsApiCreateLegacyAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createLegacyAddress(requestParameters: VaultsApiCreateLegacyAddressRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createLegacyAddress(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.addressId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Create multiple vault accounts by running an async job. - The HBAR, TON, SUI, TERRA, ALGO, and DOT blockchains are not supported. - These endpoints are currently in beta and might be subject to changes. - Limited to a maximum of 10,000 accounts per operation. - With `vaultType: KEY_LINK`, creates Key Link vault accounts; set `autoAssign: true` to bind them to the workspace\'s signing keys (see `vaultType` and `autoAssign`). **Endpoint Permissions:** Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Bulk creation of new vault accounts * @param {VaultsApiCreateMultipleAccountsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createMultipleAccounts(requestParameters: VaultsApiCreateMultipleAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createMultipleAccounts(requestParameters.createMultipleAccountsRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * **For UTXO blockchains only.** Create multiple deposit addresses by running an async job. - The target Vault account should already have a UTXO asset wallet with a permanent address. - Limited to a maximum of 10,000 addresses per operation. Use multiple operations for the same Vault account/permanent address if needed. **Endpoint Permissions:** Admin, Non-Signing Admin. * @summary Bulk creation of new deposit addresses * @param {VaultsApiCreateMultipleDepositAddressesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createMultipleDepositAddresses(requestParameters: VaultsApiCreateMultipleDepositAddressesRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createMultipleDepositAddresses(requestParameters.createMultipleDepositAddressesRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Creates a new vault account with the requested name. **Note: ** Vault account names should consist of ASCII characters only. Learn more about Fireblocks Vault Accounts in the following [guide](https://developers.fireblocks.com/reference/create-vault-account). Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Create a new vault account * @param {VaultsApiCreateVaultAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createVaultAccount(requestParameters: VaultsApiCreateVaultAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createVaultAccount(requestParameters.createVaultAccountRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Creates a wallet for a specific asset in a vault account. Learn more about Fireblocks Vault Wallets in the following [guide](https://developers.fireblocks.com/reference/create-vault-wallet). Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Create a new vault wallet * @param {VaultsApiCreateVaultAccountAssetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createVaultAccountAsset(requestParameters: VaultsApiCreateVaultAccountAssetRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createVaultAccountAsset(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.createAssetsRequest, requestParameters.idempotencyKey, requestParameters.blockchainWalletType, options).then((request) => request(axios, basePath)); }, /** * Creates a new deposit address for an asset of a vault account. Should be used for UTXO or Tag/Memo based assets ONLY. Requests with account based assets will fail. Endpoint Permission: Admin, Non-Signing Admin. * @summary Create new asset deposit address * @param {VaultsApiCreateVaultAccountAssetAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createVaultAccountAssetAddress(requestParameters: VaultsApiCreateVaultAccountAssetAddressRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createVaultAccountAssetAddress(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.createAddressRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Deactivates the USDC Gateway wallet associated with the given vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Deactivate a USDC Gateway wallet * @param {VaultsApiDeactivateUsdcGatewayWalletBetaRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deactivateUsdcGatewayWalletBeta(requestParameters: VaultsApiDeactivateUsdcGatewayWalletBetaRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deactivateUsdcGatewayWalletBeta(requestParameters.vaultAccountId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Stops the schedule for an existing deposit automation. The automation itself stays configured, only its schedule stops. Turn it back on later with PATCH, without setting up the automation again from scratch. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Stop a USDC Gateway deposit automation\'s schedule * @param {VaultsApiDisableUsdcGatewayDepositAutomationScheduleBetaRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ disableUsdcGatewayDepositAutomationScheduleBeta(requestParameters: VaultsApiDisableUsdcGatewayDepositAutomationScheduleBetaRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.disableUsdcGatewayDepositAutomationScheduleBeta(requestParameters.vaultAccountId, requestParameters.automationId, options).then((request) => request(axios, basePath)); }, /** * Get all vault wallets of the vault accounts in your workspace. A vault wallet is an asset in a vault account. This method allows fast traversal of all account balances. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get vault wallets (Paginated) * @param {VaultsApiGetAssetWalletsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAssetWallets(requestParameters: VaultsApiGetAssetWalletsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAssetWallets(requestParameters.totalAmountLargerThan, requestParameters.assetId, requestParameters.orderBy, requestParameters.before, requestParameters.after, requestParameters.limit, options).then((request) => request(axios, basePath)); }, /** * Returns the current status of (or an error for) the specified deposit addresss bulk creation job. **Endpoint Permissions:** Admin, Non-Signing Admin, Signer, Approver, Editor, and Viewer. * @summary Get the job status of the bulk deposit address creation * @param {VaultsApiGetCreateMultipleDepositAddressesJobStatusRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCreateMultipleDepositAddressesJobStatus(requestParameters: VaultsApiGetCreateMultipleDepositAddressesJobStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCreateMultipleDepositAddressesJobStatus(requestParameters.jobId, options).then((request) => request(axios, basePath)); }, /** * Returns the current status of (or error for) the specified vault account bulk creation job. **Endpoint Permissions:** Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get job status of bulk creation of new vault accounts * @param {VaultsApiGetCreateMultipleVaultAccountsJobStatusRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCreateMultipleVaultAccountsJobStatus(requestParameters: VaultsApiGetCreateMultipleVaultAccountsJobStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCreateMultipleVaultAccountsJobStatus(requestParameters.jobId, options).then((request) => request(axios, basePath)); }, /** * Retrieves the maximum BIP44 address index and change address index used for a specific asset in a vault account (BIP44 standard). * @summary Get maximum BIP44 index used * @param {VaultsApiGetMaxBipIndexUsedRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getMaxBipIndexUsed(requestParameters: VaultsApiGetMaxBipIndexUsedRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getMaxBipIndexUsed(requestParameters.vaultAccountId, requestParameters.assetId, options).then((request) => request(axios, basePath)); }, /** * **UTXO assets only.** Retrieve the maximum amount of the specified asset that can be spent in a single transaction from the specified vault account. **Endpoint Permissions:** Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get max spendable amount in a transaction * @param {VaultsApiGetMaxSpendableAmountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getMaxSpendableAmount(requestParameters: VaultsApiGetMaxSpendableAmountRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getMaxSpendableAmount(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.manualSignging, requestParameters.includeAllLabels, requestParameters.includeAnyLabels, requestParameters.excludeAnyLabels, requestParameters.address, requestParameters.minAmount, requestParameters.maxAmount, options).then((request) => request(axios, basePath)); }, /** * Gets all vault accounts in your workspace. This endpoint returns a limited amount of results with a quick response time. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get vault accounts (Paginated) * @param {VaultsApiGetPagedVaultAccountsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPagedVaultAccounts(requestParameters: VaultsApiGetPagedVaultAccountsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPagedVaultAccounts(requestParameters.namePrefix, requestParameters.nameSuffix, requestParameters.minAmountThreshold, requestParameters.assetId, requestParameters.orderBy, requestParameters.before, requestParameters.after, requestParameters.limit, requestParameters.tagIds, requestParameters.includeTagIds, requestParameters.excludeTagIds, options).then((request) => request(axios, basePath)); }, /** * Gets the public key information based on derivation path and signing algorithm. Endpoint Permission: Admin, Non-Signing Admin. * @summary Get the public key for a derivation path * @param {VaultsApiGetPublicKeyInfoRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicKeyInfo(requestParameters: VaultsApiGetPublicKeyInfoRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPublicKeyInfo(requestParameters.derivationPath, requestParameters.algorithm, requestParameters.compressed, options).then((request) => request(axios, basePath)); }, /** * Get the public key information for a specific asset in a vault account. Endpoint Permission: Admin, Non-Signing Admin. * @summary Get an asset\'s public key * @param {VaultsApiGetPublicKeyInfoForAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicKeyInfoForAddress(requestParameters: VaultsApiGetPublicKeyInfoForAddressRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPublicKeyInfoForAddress(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.change, requestParameters.addressIndex, requestParameters.compressed, options).then((request) => request(axios, basePath)); }, /** * Returns unspent inputs information of an UTXO asset in a vault account. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get UTXO unspent inputs information * @param {VaultsApiGetUnspentInputsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getUnspentInputs(requestParameters: VaultsApiGetUnspentInputsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUnspentInputs(requestParameters.vaultAccountId, requestParameters.assetId, options).then((request) => request(axios, basePath)); }, /** * Returns the USDC Gateway deposit automations configured for the given vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Read the USDC Gateway deposit automations for a vault account * @param {VaultsApiGetUsdcGatewayDepositAutomationBetaRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getUsdcGatewayDepositAutomationBeta(requestParameters: VaultsApiGetUsdcGatewayDepositAutomationBetaRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUsdcGatewayDepositAutomationBeta(requestParameters.vaultAccountId, options).then((request) => request(axios, basePath)); }, /** * Returns the USDC Gateway wallet information associated with the given vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get USDC Gateway wallet info * @param {VaultsApiGetUsdcGatewayWalletInfoBetaRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getUsdcGatewayWalletInfoBeta(requestParameters: VaultsApiGetUsdcGatewayWalletInfoBetaRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUsdcGatewayWalletInfoBeta(requestParameters.vaultAccountId, options).then((request) => request(axios, basePath)); }, /** * Get a vault account by its unique ID. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get a vault account by ID * @param {VaultsApiGetVaultAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getVaultAccount(requestParameters: VaultsApiGetVaultAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getVaultAccount(requestParameters.vaultAccountId, options).then((request) => request(axios, basePath)); }, /** * Returns a specific vault wallet balance information for a specific asset. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get the asset balance for a vault account * @param {VaultsApiGetVaultAccountAssetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getVaultAccountAsset(requestParameters: VaultsApiGetVaultAccountAssetRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getVaultAccountAsset(requestParameters.vaultAccountId, requestParameters.assetId, options).then((request) => request(axios, basePath)); }, /** * Returns a paginated response of the addresses for a given vault account and asset. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get addresses (Paginated) * @param {VaultsApiGetVaultAccountAssetAddressesPaginatedRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getVaultAccountAssetAddressesPaginated(requestParameters: VaultsApiGetVaultAccountAssetAddressesPaginatedRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getVaultAccountAssetAddressesPaginated(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.limit, requestParameters.before, requestParameters.after, options).then((request) => request(axios, basePath)); }, /** * Gets the assets amount summary for all accounts or filtered accounts. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get asset balance for chosen assets * @param {VaultsApiGetVaultAssetsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getVaultAssets(requestParameters: VaultsApiGetVaultAssetsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getVaultAssets(requestParameters.accountNamePrefix, requestParameters.accountNameSuffix, options).then((request) => request(axios, basePath)); }, /** * Get the total balance of an asset across all the vault accounts. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get vault balance by an asset * @param {VaultsApiGetVaultBalanceByAssetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getVaultBalanceByAsset(requestParameters: VaultsApiGetVaultBalanceByAssetRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getVaultBalanceByAsset(requestParameters.assetId, options).then((request) => request(axios, basePath)); }, /** * Hides the requested vault account from the web console view. This operation is required when creating thousands of vault accounts to serve your end-users. Used for preventing the web console to be swamped with too much vault accounts. Learn more in the following [guide](https://developers.fireblocks.com/docs/create-direct-custody-wallets#hiding-vault-accounts). NOTE: Hiding the vault account from the web console will also hide all the related transactions to/from this vault. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Hide a vault account in the console * @param {VaultsApiHideVaultAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ hideVaultAccount(requestParameters: VaultsApiHideVaultAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.hideVaultAccount(requestParameters.vaultAccountId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Resolves a blockchain address to the vault account that owns it. Returns the vault account ID and the blockchains associated with the address. **Note:** This endpoint is currently in beta and might be subject to changes. * @summary Look up a vault account by blockchain address * @param {VaultsApiLookupVaultByAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ lookupVaultByAddress(requestParameters: VaultsApiLookupVaultByAddressRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.lookupVaultByAddress(requestParameters.address, options).then((request) => request(axios, basePath)); }, /** * Sets an AML/KYT customer reference ID for a specific address. Endpoint Permission: Admin, Non-Signing Admin. * @summary Assign AML customer reference ID * @param {VaultsApiSetCustomerRefIdForAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setCustomerRefIdForAddress(requestParameters: VaultsApiSetCustomerRefIdForAddressRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.setCustomerRefIdForAddress(requestParameters.setCustomerRefIdForAddressRequest, requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.addressId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Turns on automatic deposits into the USDC Gateway wallet for the given vault account, on the schedule you choose. Returns an error if an automation already exists for this vault account and asset. Use PATCH to change it instead. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Set up a USDC Gateway deposit automation for a vault account * @param {VaultsApiSetUsdcGatewayDepositAutomationBetaRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setUsdcGatewayDepositAutomationBeta(requestParameters: VaultsApiSetUsdcGatewayDepositAutomationBetaRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.setUsdcGatewayDepositAutomationBeta(requestParameters.automationSettingsRequest, requestParameters.vaultAccountId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Toggles the auto fueling property of the vault account to enabled or disabled. Vault Accounts with \'autoFuel=true\' are monitored and auto fueled by the Fireblocks Gas Station. Learn more about the Fireblocks Gas Station in the following [guide](https://developers.fireblocks.com/docs/work-with-gas-station). Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Set auto fueling to on or off * @param {VaultsApiSetVaultAccountAutoFuelRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setVaultAccountAutoFuel(requestParameters: VaultsApiSetVaultAccountAutoFuelRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.setVaultAccountAutoFuel(requestParameters.setAutoFuelRequest, requestParameters.vaultAccountId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Assigns an AML/KYT customer reference ID for the vault account. Learn more about Fireblocks AML management in the following [guide](https://developers.fireblocks.com/docs/define-aml-policies). Endpoint Permission: Admin, Non-Signing Admin. * @summary Set an AML/KYT ID for a vault account * @param {VaultsApiSetVaultAccountCustomerRefIdRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setVaultAccountCustomerRefId(requestParameters: VaultsApiSetVaultAccountCustomerRefIdRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.setVaultAccountCustomerRefId(requestParameters.setCustomerRefIdRequest, requestParameters.vaultAccountId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Makes a hidden vault account visible in web console view. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Unhide a vault account in the console * @param {VaultsApiUnhideVaultAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ unhideVaultAccount(requestParameters: VaultsApiUnhideVaultAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.unhideVaultAccount(requestParameters.vaultAccountId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Changes an existing USDC Gateway deposit automation for a vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Change a USDC Gateway deposit automation * @param {VaultsApiUpdateUsdcGatewayDepositAutomationBetaRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateUsdcGatewayDepositAutomationBeta(requestParameters: VaultsApiUpdateUsdcGatewayDepositAutomationBetaRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateUsdcGatewayDepositAutomationBeta(requestParameters.updateAutomationSettingsRequest, requestParameters.vaultAccountId, requestParameters.automationId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Renames the requested vault account. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Rename a vault account * @param {VaultsApiUpdateVaultAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateVaultAccount(requestParameters: VaultsApiUpdateVaultAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateVaultAccount(requestParameters.updateVaultAccountRequest, requestParameters.vaultAccountId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Updates the description of an existing address of an asset in a vault account. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Update address description * @param {VaultsApiUpdateVaultAccountAssetAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateVaultAccountAssetAddress(requestParameters: VaultsApiUpdateVaultAccountAssetAddressRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateVaultAccountAssetAddress(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.addressId, requestParameters.updateVaultAccountAssetAddressRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Updates the balance of a specific asset in a vault account. This API endpoint is subject to a strict rate limit. Should be used by clients in very specific scenarios. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Refresh asset balance data * @param {VaultsApiUpdateVaultAccountAssetBalanceRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateVaultAccountAssetBalance(requestParameters: VaultsApiUpdateVaultAccountAssetBalanceRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateVaultAccountAssetBalance(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for activateAssetForVaultAccount operation in VaultsApi. * @export * @interface VaultsApiActivateAssetForVaultAccountRequest */ export interface VaultsApiActivateAssetForVaultAccountRequest { /** * The ID of the vault account to return, or \'default\' for the default vault account * @type {string} * @memberof VaultsApiActivateAssetForVaultAccount */ readonly vaultAccountId: string /** * The ID of the asset * @type {string} * @memberof VaultsApiActivateAssetForVaultAccount */ readonly assetId: string /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof VaultsApiActivateAssetForVaultAccount */ readonly idempotencyKey?: string /** * Optional immutable blockchain wallet type to store per tenant+vault * @type {string} * @memberof VaultsApiActivateAssetForVaultAccount */ readonly blockchainWalletType?: string } /** * Request parameters for activateUsdcGatewayWalletBeta operation in VaultsApi. * @export * @interface VaultsApiActivateUsdcGatewayWalletBetaRequest */ export interface VaultsApiActivateUsdcGatewayWalletBetaRequest { /** * The ID of the vault account * @type {string} * @memberof VaultsApiActivateUsdcGatewayWalletBeta */ readonly vaultAccountId: string /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof VaultsApiActivateUsdcGatewayWalletBeta */ readonly idempotencyKey?: string } /** * Request parameters for attachOrDetachTagsFromVaultAccounts operation in VaultsApi. * @export * @interface VaultsApiAttachOrDetachTagsFromVaultAccountsRequest */ export interface VaultsApiAttachOrDetachTagsFromVaultAccountsRequest { /** * * @type {VaultAccountsTagAttachmentOperationsRequest} * @memberof VaultsApiAttachOrDetachTagsFromVaultAccounts */ readonly vaultAccountsTagAttachmentOperationsRequest: VaultAccountsTagAttachmentOperationsRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof VaultsApiAttachOrDetachTagsFromVaultAccounts */ readonly idempotencyKey?: string } /** * Request parameters for createLegacyAddress operation in VaultsApi. * @export * @interface VaultsApiCreateLegacyAddressRequest */ export interface VaultsApiCreateLegacyAddressRequest { /** * The ID of the vault account * @type {string} * @memberof VaultsApiCreateLegacyAddress */ readonly vaultAccountId: string /** * The ID of the asset * @type {string} * @memberof VaultsApiCreateLegacyAddress */ readonly assetId: string /** * The segwit address to translate * @type {string} * @memberof VaultsApiCreateLegacyAddress */ readonly addressId: string /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof VaultsApiCreateLegacyAddress */ readonly idempotencyKey?: string } /** * Request parameters for createMultipleAccounts operation in VaultsApi. * @export * @interface VaultsApiCreateMultipleAccountsRequest */ export interface VaultsApiCreateMultipleAccountsRequest { /** * * @type {CreateMultipleAccountsRequest} * @memberof VaultsApiCreateMultipleAccounts */ readonly createMultipleAccountsRequest: CreateMultipleAccountsRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof VaultsApiCreateMultipleAccounts */ readonly idempotencyKey?: string } /** * Request parameters for createMultipleDepositAddresses operation in VaultsApi. * @export * @interface VaultsApiCreateMultipleDepositAddressesRequest */ export interface VaultsApiCreateMultipleDepositAddressesRequest { /** * * @type {CreateMultipleDepositAddressesRequest} * @memberof VaultsApiCreateMultipleDepositAddresses */ readonly createMultipleDepositAddressesRequest: CreateMultipleDepositAddressesRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof VaultsApiCreateMultipleDepositAddresses */ readonly idempotencyKey?: string } /** * Request parameters for createVaultAccount operation in VaultsApi. * @export * @interface VaultsApiCreateVaultAccountRequest */ export interface VaultsApiCreateVaultAccountRequest { /** * * @type {CreateVaultAccountRequest} * @memberof VaultsApiCreateVaultAccount */ readonly createVaultAccountRequest: CreateVaultAccountRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof VaultsApiCreateVaultAccount */ readonly idempotencyKey?: string } /** * Request parameters for createVaultAccountAsset operation in VaultsApi. * @export * @interface VaultsApiCreateVaultAccountAssetRequest */ export interface VaultsApiCreateVaultAccountAssetRequest { /** * The ID of the vault account to return, or \'default\' for the default vault account * @type {string} * @memberof VaultsApiCreateVaultAccountAsset */ readonly vaultAccountId: string /** * The ID of the asset * @type {string} * @memberof VaultsApiCreateVaultAccountAsset */ readonly assetId: string /** * * @type {CreateAssetsRequest} * @memberof VaultsApiCreateVaultAccountAsset */ readonly createAssetsRequest?: CreateAssetsRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof VaultsApiCreateVaultAccountAsset */ readonly idempotencyKey?: string /** * Optional immutable blockchain wallet type to store per tenant+vault * @type {string} * @memberof VaultsApiCreateVaultAccountAsset */ readonly blockchainWalletType?: string } /** * Request parameters for createVaultAccountAssetAddress operation in VaultsApi. * @export * @interface VaultsApiCreateVaultAccountAssetAddressRequest */ export interface VaultsApiCreateVaultAccountAssetAddressRequest { /** * The ID of the vault account to return * @type {string} * @memberof VaultsApiCreateVaultAccountAssetAddress */ readonly vaultAccountId: string /** * The ID of the asset * @type {string} * @memberof VaultsApiCreateVaultAccountAssetAddress */ readonly assetId: string /** * * @type {CreateAddressRequest} * @memberof VaultsApiCreateVaultAccountAssetAddress */ readonly createAddressRequest?: CreateAddressRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof VaultsApiCreateVaultAccountAssetAddress */ readonly idempotencyKey?: string } /** * Request parameters for deactivateUsdcGatewayWalletBeta operation in VaultsApi. * @export * @interface VaultsApiDeactivateUsdcGatewayWalletBetaRequest */ export interface VaultsApiDeactivateUsdcGatewayWalletBetaRequest { /** * The ID of the vault account * @type {string} * @memberof VaultsApiDeactivateUsdcGatewayWalletBeta */ readonly vaultAccountId: string /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof VaultsApiDeactivateUsdcGatewayWalletBeta */ readonly idempotencyKey?: string } /** * Request parameters for disableUsdcGatewayDepositAutomationScheduleBeta operation in VaultsApi. * @export * @interface VaultsApiDisableUsdcGatewayDepositAutomationScheduleBetaRequest */ export interface VaultsApiDisableUsdcGatewayDepositAutomationScheduleBetaRequest { /** * The ID of the vault account * @type {string} * @memberof VaultsApiDisableUsdcGatewayDepositAutomationScheduleBeta */ readonly vaultAccountId: string /** * The ID of the deposit automation, returned when it was created or read * @type {string} * @memberof VaultsApiDisableUsdcGatewayDepositAutomationScheduleBeta */ readonly automationId: string } /** * Request parameters for getAssetWallets operation in VaultsApi. * @export * @interface VaultsApiGetAssetWalletsRequest */ export interface VaultsApiGetAssetWalletsRequest { /** * When specified, only vault wallets with total balance greater than this amount are returned. * @type {number} * @memberof VaultsApiGetAssetWallets */ readonly totalAmountLargerThan?: number /** * When specified, only vault wallets with the specified ID are returned. * @type {string} * @memberof VaultsApiGetAssetWallets */ readonly assetId?: string /** * * @type {'ASC' | 'DESC'} * @memberof VaultsApiGetAssetWallets */ readonly orderBy?: GetAssetWalletsOrderByEnum /** * Fetches the next paginated response before this element. This element is a cursor and is returned at the response of the previous page. * @type {string} * @memberof VaultsApiGetAssetWallets */ readonly before?: string /** * Fetches the next paginated response after this element. This element is a cursor and is returned at the response of the previous page. * @type {string} * @memberof VaultsApiGetAssetWallets */ readonly after?: string /** * The maximum number of vault wallets in a single response. The default is 200 and the maximum is 1000. * @type {number} * @memberof VaultsApiGetAssetWallets */ readonly limit?: number } /** * Request parameters for getCreateMultipleDepositAddressesJobStatus operation in VaultsApi. * @export * @interface VaultsApiGetCreateMultipleDepositAddressesJobStatusRequest */ export interface VaultsApiGetCreateMultipleDepositAddressesJobStatusRequest { /** * The ID of the job to create addresses * @type {string} * @memberof VaultsApiGetCreateMultipleDepositAddressesJobStatus */ readonly jobId: string } /** * Request parameters for getCreateMultipleVaultAccountsJobStatus operation in VaultsApi. * @export * @interface VaultsApiGetCreateMultipleVaultAccountsJobStatusRequest */ export interface VaultsApiGetCreateMultipleVaultAccountsJobStatusRequest { /** * The ID of the job to create addresses * @type {string} * @memberof VaultsApiGetCreateMultipleVaultAccountsJobStatus */ readonly jobId: string } /** * Request parameters for getMaxBipIndexUsed operation in VaultsApi. * @export * @interface VaultsApiGetMaxBipIndexUsedRequest */ export interface VaultsApiGetMaxBipIndexUsedRequest { /** * The ID of the vault account * @type {string} * @memberof VaultsApiGetMaxBipIndexUsed */ readonly vaultAccountId: string /** * The ID of the asset * @type {string} * @memberof VaultsApiGetMaxBipIndexUsed */ readonly assetId: string } /** * Request parameters for getMaxSpendableAmount operation in VaultsApi. * @export * @interface VaultsApiGetMaxSpendableAmountRequest */ export interface VaultsApiGetMaxSpendableAmountRequest { /** * The ID of the vault account * @type {string} * @memberof VaultsApiGetMaxSpendableAmount */ readonly vaultAccountId: string /** * The ID of the asset * @type {string} * @memberof VaultsApiGetMaxSpendableAmount */ readonly assetId: string /** * False by default. The maximum number of inputs depends if the transaction will be signed by an automated co-signer server or on a mobile device. * @type {boolean} * @memberof VaultsApiGetMaxSpendableAmount */ readonly manualSignging?: boolean /** * Only include UTXOs that have ALL of these labels (AND logic). Requires the UTXO Manager. * @type {Array} * @memberof VaultsApiGetMaxSpendableAmount */ readonly includeAllLabels?: Array /** * Only include UTXOs that have ANY of these labels (OR logic). Requires the UTXO Manager. * @type {Array} * @memberof VaultsApiGetMaxSpendableAmount */ readonly includeAnyLabels?: Array /** * Exclude UTXOs that have ANY of these labels. Requires the UTXO Manager. * @type {Array} * @memberof VaultsApiGetMaxSpendableAmount */ readonly excludeAnyLabels?: Array /** * Only include UTXOs from this specific address. Requires the UTXO Manager. * @type {string} * @memberof VaultsApiGetMaxSpendableAmount */ readonly address?: string /** * Minimum UTXO amount in the asset\'s base unit. Requires the UTXO Manager. * @type {string} * @memberof VaultsApiGetMaxSpendableAmount */ readonly minAmount?: string /** * Maximum UTXO amount in the asset\'s base unit. Requires the UTXO Manager. * @type {string} * @memberof VaultsApiGetMaxSpendableAmount */ readonly maxAmount?: string } /** * Request parameters for getPagedVaultAccounts operation in VaultsApi. * @export * @interface VaultsApiGetPagedVaultAccountsRequest */ export interface VaultsApiGetPagedVaultAccountsRequest { /** * * @type {string} * @memberof VaultsApiGetPagedVaultAccounts */ readonly namePrefix?: string /** * * @type {string} * @memberof VaultsApiGetPagedVaultAccounts */ readonly nameSuffix?: string /** * Specifying minAmountThreshold will filter accounts whose total balance is greater than this value; otherwise, it returns all accounts. The amount set in this parameter represents the native asset amount, not its USD value. * @type {number} * @memberof VaultsApiGetPagedVaultAccounts */ readonly minAmountThreshold?: number /** * * @type {string} * @memberof VaultsApiGetPagedVaultAccounts */ readonly assetId?: string /** * * @type {'ASC' | 'DESC'} * @memberof VaultsApiGetPagedVaultAccounts */ readonly orderBy?: GetPagedVaultAccountsOrderByEnum /** * * @type {string} * @memberof VaultsApiGetPagedVaultAccounts */ readonly before?: string /** * * @type {string} * @memberof VaultsApiGetPagedVaultAccounts */ readonly after?: string /** * * @type {number} * @memberof VaultsApiGetPagedVaultAccounts */ readonly limit?: number /** * DEPRECATED - use includeTagIds instead * @type {Array} * @memberof VaultsApiGetPagedVaultAccounts */ readonly tagIds?: Array /** * List of tag IDs to include. Vault accounts with any of these tags will be included * @type {Array} * @memberof VaultsApiGetPagedVaultAccounts */ readonly includeTagIds?: Array /** * List of tag IDs to exclude. Vault accounts with any of these tags will be filtered out * @type {Array} * @memberof VaultsApiGetPagedVaultAccounts */ readonly excludeTagIds?: Array } /** * Request parameters for getPublicKeyInfo operation in VaultsApi. * @export * @interface VaultsApiGetPublicKeyInfoRequest */ export interface VaultsApiGetPublicKeyInfoRequest { /** * * @type {string} * @memberof VaultsApiGetPublicKeyInfo */ readonly derivationPath: string /** * * @type {string} * @memberof VaultsApiGetPublicKeyInfo */ readonly algorithm: string /** * * @type {boolean} * @memberof VaultsApiGetPublicKeyInfo */ readonly compressed?: boolean } /** * Request parameters for getPublicKeyInfoForAddress operation in VaultsApi. * @export * @interface VaultsApiGetPublicKeyInfoForAddressRequest */ export interface VaultsApiGetPublicKeyInfoForAddressRequest { /** * * @type {string} * @memberof VaultsApiGetPublicKeyInfoForAddress */ readonly vaultAccountId: string /** * * @type {string} * @memberof VaultsApiGetPublicKeyInfoForAddress */ readonly assetId: string /** * * @type {number} * @memberof VaultsApiGetPublicKeyInfoForAddress */ readonly change: number /** * * @type {number} * @memberof VaultsApiGetPublicKeyInfoForAddress */ readonly addressIndex: number /** * * @type {boolean} * @memberof VaultsApiGetPublicKeyInfoForAddress */ readonly compressed?: boolean } /** * Request parameters for getUnspentInputs operation in VaultsApi. * @export * @interface VaultsApiGetUnspentInputsRequest */ export interface VaultsApiGetUnspentInputsRequest { /** * The ID of the vault account * @type {string} * @memberof VaultsApiGetUnspentInputs */ readonly vaultAccountId: string /** * The ID of the asset * @type {string} * @memberof VaultsApiGetUnspentInputs */ readonly assetId: string } /** * Request parameters for getUsdcGatewayDepositAutomationBeta operation in VaultsApi. * @export * @interface VaultsApiGetUsdcGatewayDepositAutomationBetaRequest */ export interface VaultsApiGetUsdcGatewayDepositAutomationBetaRequest { /** * The ID of the vault account * @type {string} * @memberof VaultsApiGetUsdcGatewayDepositAutomationBeta */ readonly vaultAccountId: string } /** * Request parameters for getUsdcGatewayWalletInfoBeta operation in VaultsApi. * @export * @interface VaultsApiGetUsdcGatewayWalletInfoBetaRequest */ export interface VaultsApiGetUsdcGatewayWalletInfoBetaRequest { /** * The ID of the vault account * @type {string} * @memberof VaultsApiGetUsdcGatewayWalletInfoBeta */ readonly vaultAccountId: string } /** * Request parameters for getVaultAccount operation in VaultsApi. * @export * @interface VaultsApiGetVaultAccountRequest */ export interface VaultsApiGetVaultAccountRequest { /** * The ID of the vault account * @type {string} * @memberof VaultsApiGetVaultAccount */ readonly vaultAccountId: string } /** * Request parameters for getVaultAccountAsset operation in VaultsApi. * @export * @interface VaultsApiGetVaultAccountAssetRequest */ export interface VaultsApiGetVaultAccountAssetRequest { /** * The ID of the vault account to return * @type {string} * @memberof VaultsApiGetVaultAccountAsset */ readonly vaultAccountId: string /** * The ID of the asset * @type {string} * @memberof VaultsApiGetVaultAccountAsset */ readonly assetId: string } /** * Request parameters for getVaultAccountAssetAddressesPaginated operation in VaultsApi. * @export * @interface VaultsApiGetVaultAccountAssetAddressesPaginatedRequest */ export interface VaultsApiGetVaultAccountAssetAddressesPaginatedRequest { /** * The ID of the vault account to return * @type {string} * @memberof VaultsApiGetVaultAccountAssetAddressesPaginated */ readonly vaultAccountId: string /** * The ID of the asset * @type {string} * @memberof VaultsApiGetVaultAccountAssetAddressesPaginated */ readonly assetId: string /** * * @type {number} * @memberof VaultsApiGetVaultAccountAssetAddressesPaginated */ readonly limit?: number /** * * @type {string} * @memberof VaultsApiGetVaultAccountAssetAddressesPaginated */ readonly before?: string /** * * @type {string} * @memberof VaultsApiGetVaultAccountAssetAddressesPaginated */ readonly after?: string } /** * Request parameters for getVaultAssets operation in VaultsApi. * @export * @interface VaultsApiGetVaultAssetsRequest */ export interface VaultsApiGetVaultAssetsRequest { /** * * @type {string} * @memberof VaultsApiGetVaultAssets */ readonly accountNamePrefix?: string /** * * @type {string} * @memberof VaultsApiGetVaultAssets */ readonly accountNameSuffix?: string } /** * Request parameters for getVaultBalanceByAsset operation in VaultsApi. * @export * @interface VaultsApiGetVaultBalanceByAssetRequest */ export interface VaultsApiGetVaultBalanceByAssetRequest { /** * * @type {string} * @memberof VaultsApiGetVaultBalanceByAsset */ readonly assetId: string } /** * Request parameters for hideVaultAccount operation in VaultsApi. * @export * @interface VaultsApiHideVaultAccountRequest */ export interface VaultsApiHideVaultAccountRequest { /** * The vault account to hide * @type {string} * @memberof VaultsApiHideVaultAccount */ readonly vaultAccountId: string /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof VaultsApiHideVaultAccount */ readonly idempotencyKey?: string } /** * Request parameters for lookupVaultByAddress operation in VaultsApi. * @export * @interface VaultsApiLookupVaultByAddressRequest */ export interface VaultsApiLookupVaultByAddressRequest { /** * The blockchain address to resolve. * @type {string} * @memberof VaultsApiLookupVaultByAddress */ readonly address: string } /** * Request parameters for setCustomerRefIdForAddress operation in VaultsApi. * @export * @interface VaultsApiSetCustomerRefIdForAddressRequest */ export interface VaultsApiSetCustomerRefIdForAddressRequest { /** * * @type {SetCustomerRefIdForAddressRequest} * @memberof VaultsApiSetCustomerRefIdForAddress */ readonly setCustomerRefIdForAddressRequest: SetCustomerRefIdForAddressRequest /** * The ID of the vault account * @type {string} * @memberof VaultsApiSetCustomerRefIdForAddress */ readonly vaultAccountId: string /** * The ID of the asset * @type {string} * @memberof VaultsApiSetCustomerRefIdForAddress */ readonly assetId: string /** * The address for which to add a description. For XRP, use <address>:<tag>, for all other assets, use only the address * @type {string} * @memberof VaultsApiSetCustomerRefIdForAddress */ readonly addressId: string /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof VaultsApiSetCustomerRefIdForAddress */ readonly idempotencyKey?: string } /** * Request parameters for setUsdcGatewayDepositAutomationBeta operation in VaultsApi. * @export * @interface VaultsApiSetUsdcGatewayDepositAutomationBetaRequest */ export interface VaultsApiSetUsdcGatewayDepositAutomationBetaRequest { /** * * @type {AutomationSettingsRequest} * @memberof VaultsApiSetUsdcGatewayDepositAutomationBeta */ readonly automationSettingsRequest: AutomationSettingsRequest /** * The ID of the vault account * @type {string} * @memberof VaultsApiSetUsdcGatewayDepositAutomationBeta */ readonly vaultAccountId: string /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof VaultsApiSetUsdcGatewayDepositAutomationBeta */ readonly idempotencyKey?: string } /** * Request parameters for setVaultAccountAutoFuel operation in VaultsApi. * @export * @interface VaultsApiSetVaultAccountAutoFuelRequest */ export interface VaultsApiSetVaultAccountAutoFuelRequest { /** * * @type {SetAutoFuelRequest} * @memberof VaultsApiSetVaultAccountAutoFuel */ readonly setAutoFuelRequest: SetAutoFuelRequest /** * The vault account ID * @type {string} * @memberof VaultsApiSetVaultAccountAutoFuel */ readonly vaultAccountId: string /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof VaultsApiSetVaultAccountAutoFuel */ readonly idempotencyKey?: string } /** * Request parameters for setVaultAccountCustomerRefId operation in VaultsApi. * @export * @interface VaultsApiSetVaultAccountCustomerRefIdRequest */ export interface VaultsApiSetVaultAccountCustomerRefIdRequest { /** * * @type {SetCustomerRefIdRequest} * @memberof VaultsApiSetVaultAccountCustomerRefId */ readonly setCustomerRefIdRequest: SetCustomerRefIdRequest /** * The vault account ID * @type {string} * @memberof VaultsApiSetVaultAccountCustomerRefId */ readonly vaultAccountId: string /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof VaultsApiSetVaultAccountCustomerRefId */ readonly idempotencyKey?: string } /** * Request parameters for unhideVaultAccount operation in VaultsApi. * @export * @interface VaultsApiUnhideVaultAccountRequest */ export interface VaultsApiUnhideVaultAccountRequest { /** * The vault account to unhide * @type {string} * @memberof VaultsApiUnhideVaultAccount */ readonly vaultAccountId: string /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof VaultsApiUnhideVaultAccount */ readonly idempotencyKey?: string } /** * Request parameters for updateUsdcGatewayDepositAutomationBeta operation in VaultsApi. * @export * @interface VaultsApiUpdateUsdcGatewayDepositAutomationBetaRequest */ export interface VaultsApiUpdateUsdcGatewayDepositAutomationBetaRequest { /** * * @type {UpdateAutomationSettingsRequest} * @memberof VaultsApiUpdateUsdcGatewayDepositAutomationBeta */ readonly updateAutomationSettingsRequest: UpdateAutomationSettingsRequest /** * The ID of the vault account * @type {string} * @memberof VaultsApiUpdateUsdcGatewayDepositAutomationBeta */ readonly vaultAccountId: string /** * The ID of the deposit automation, returned when it was created or read * @type {string} * @memberof VaultsApiUpdateUsdcGatewayDepositAutomationBeta */ readonly automationId: string /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof VaultsApiUpdateUsdcGatewayDepositAutomationBeta */ readonly idempotencyKey?: string } /** * Request parameters for updateVaultAccount operation in VaultsApi. * @export * @interface VaultsApiUpdateVaultAccountRequest */ export interface VaultsApiUpdateVaultAccountRequest { /** * * @type {UpdateVaultAccountRequest} * @memberof VaultsApiUpdateVaultAccount */ readonly updateVaultAccountRequest: UpdateVaultAccountRequest /** * The ID of the vault account to edit * @type {string} * @memberof VaultsApiUpdateVaultAccount */ readonly vaultAccountId: string /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof VaultsApiUpdateVaultAccount */ readonly idempotencyKey?: string } /** * Request parameters for updateVaultAccountAssetAddress operation in VaultsApi. * @export * @interface VaultsApiUpdateVaultAccountAssetAddressRequest */ export interface VaultsApiUpdateVaultAccountAssetAddressRequest { /** * The ID of the vault account * @type {string} * @memberof VaultsApiUpdateVaultAccountAssetAddress */ readonly vaultAccountId: string /** * The ID of the asset * @type {string} * @memberof VaultsApiUpdateVaultAccountAssetAddress */ readonly assetId: string /** * The address for which to add a description. For XRP, use <address>:<tag>, for all other assets, use only the address * @type {string} * @memberof VaultsApiUpdateVaultAccountAssetAddress */ readonly addressId: string /** * * @type {UpdateVaultAccountAssetAddressRequest} * @memberof VaultsApiUpdateVaultAccountAssetAddress */ readonly updateVaultAccountAssetAddressRequest?: UpdateVaultAccountAssetAddressRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof VaultsApiUpdateVaultAccountAssetAddress */ readonly idempotencyKey?: string } /** * Request parameters for updateVaultAccountAssetBalance operation in VaultsApi. * @export * @interface VaultsApiUpdateVaultAccountAssetBalanceRequest */ export interface VaultsApiUpdateVaultAccountAssetBalanceRequest { /** * The ID of the vault account to return * @type {string} * @memberof VaultsApiUpdateVaultAccountAssetBalance */ readonly vaultAccountId: string /** * The ID of the asset * @type {string} * @memberof VaultsApiUpdateVaultAccountAssetBalance */ readonly assetId: string /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof VaultsApiUpdateVaultAccountAssetBalance */ readonly idempotencyKey?: string } /** * VaultsApi - object-oriented interface * @export * @class VaultsApi * @extends {BaseAPI} */ export class VaultsApi extends BaseAPI { /** * Initiates activation for a wallet in a vault account. Activation is required for tokens that need an on-chain transaction for creation. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Activate a wallet in a vault account * @param {VaultsApiActivateAssetForVaultAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public activateAssetForVaultAccount(requestParameters: VaultsApiActivateAssetForVaultAccountRequest) { return VaultsApiFp(this.configuration).activateAssetForVaultAccount(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.idempotencyKey, requestParameters.blockchainWalletType).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Activates the USDC Gateway wallet associated with the given vault account. If the wallet does not yet exist it is created in an activated state. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Activate a USDC Gateway wallet * @param {VaultsApiActivateUsdcGatewayWalletBetaRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public activateUsdcGatewayWalletBeta(requestParameters: VaultsApiActivateUsdcGatewayWalletBetaRequest) { return VaultsApiFp(this.configuration).activateUsdcGatewayWalletBeta(requestParameters.vaultAccountId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Attach or detach one or more tags from the requested vault accounts. Endpoint Permission: For protected tags: Owner, Admin, Non-Signing Admin. For non protected tags: Owner, Admin, Non-Signing Admin, Signer, Editor, Approver. * @summary Attach or detach tags from vault accounts * @param {VaultsApiAttachOrDetachTagsFromVaultAccountsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public attachOrDetachTagsFromVaultAccounts(requestParameters: VaultsApiAttachOrDetachTagsFromVaultAccountsRequest) { return VaultsApiFp(this.configuration).attachOrDetachTagsFromVaultAccounts(requestParameters.vaultAccountsTagAttachmentOperationsRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Converts an existing segwit address to the legacy format. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Convert a segwit address to legacy format * @param {VaultsApiCreateLegacyAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public createLegacyAddress(requestParameters: VaultsApiCreateLegacyAddressRequest) { return VaultsApiFp(this.configuration).createLegacyAddress(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.addressId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Create multiple vault accounts by running an async job. - The HBAR, TON, SUI, TERRA, ALGO, and DOT blockchains are not supported. - These endpoints are currently in beta and might be subject to changes. - Limited to a maximum of 10,000 accounts per operation. - With `vaultType: KEY_LINK`, creates Key Link vault accounts; set `autoAssign: true` to bind them to the workspace\'s signing keys (see `vaultType` and `autoAssign`). **Endpoint Permissions:** Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Bulk creation of new vault accounts * @param {VaultsApiCreateMultipleAccountsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public createMultipleAccounts(requestParameters: VaultsApiCreateMultipleAccountsRequest) { return VaultsApiFp(this.configuration).createMultipleAccounts(requestParameters.createMultipleAccountsRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * **For UTXO blockchains only.** Create multiple deposit addresses by running an async job. - The target Vault account should already have a UTXO asset wallet with a permanent address. - Limited to a maximum of 10,000 addresses per operation. Use multiple operations for the same Vault account/permanent address if needed. **Endpoint Permissions:** Admin, Non-Signing Admin. * @summary Bulk creation of new deposit addresses * @param {VaultsApiCreateMultipleDepositAddressesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public createMultipleDepositAddresses(requestParameters: VaultsApiCreateMultipleDepositAddressesRequest) { return VaultsApiFp(this.configuration).createMultipleDepositAddresses(requestParameters.createMultipleDepositAddressesRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Creates a new vault account with the requested name. **Note: ** Vault account names should consist of ASCII characters only. Learn more about Fireblocks Vault Accounts in the following [guide](https://developers.fireblocks.com/reference/create-vault-account). Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Create a new vault account * @param {VaultsApiCreateVaultAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public createVaultAccount(requestParameters: VaultsApiCreateVaultAccountRequest) { return VaultsApiFp(this.configuration).createVaultAccount(requestParameters.createVaultAccountRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Creates a wallet for a specific asset in a vault account. Learn more about Fireblocks Vault Wallets in the following [guide](https://developers.fireblocks.com/reference/create-vault-wallet). Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Create a new vault wallet * @param {VaultsApiCreateVaultAccountAssetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public createVaultAccountAsset(requestParameters: VaultsApiCreateVaultAccountAssetRequest) { return VaultsApiFp(this.configuration).createVaultAccountAsset(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.createAssetsRequest, requestParameters.idempotencyKey, requestParameters.blockchainWalletType).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Creates a new deposit address for an asset of a vault account. Should be used for UTXO or Tag/Memo based assets ONLY. Requests with account based assets will fail. Endpoint Permission: Admin, Non-Signing Admin. * @summary Create new asset deposit address * @param {VaultsApiCreateVaultAccountAssetAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public createVaultAccountAssetAddress(requestParameters: VaultsApiCreateVaultAccountAssetAddressRequest) { return VaultsApiFp(this.configuration).createVaultAccountAssetAddress(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.createAddressRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Deactivates the USDC Gateway wallet associated with the given vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Deactivate a USDC Gateway wallet * @param {VaultsApiDeactivateUsdcGatewayWalletBetaRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public deactivateUsdcGatewayWalletBeta(requestParameters: VaultsApiDeactivateUsdcGatewayWalletBetaRequest) { return VaultsApiFp(this.configuration).deactivateUsdcGatewayWalletBeta(requestParameters.vaultAccountId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Stops the schedule for an existing deposit automation. The automation itself stays configured, only its schedule stops. Turn it back on later with PATCH, without setting up the automation again from scratch. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Stop a USDC Gateway deposit automation\'s schedule * @param {VaultsApiDisableUsdcGatewayDepositAutomationScheduleBetaRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public disableUsdcGatewayDepositAutomationScheduleBeta(requestParameters: VaultsApiDisableUsdcGatewayDepositAutomationScheduleBetaRequest) { return VaultsApiFp(this.configuration).disableUsdcGatewayDepositAutomationScheduleBeta(requestParameters.vaultAccountId, requestParameters.automationId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get all vault wallets of the vault accounts in your workspace. A vault wallet is an asset in a vault account. This method allows fast traversal of all account balances. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get vault wallets (Paginated) * @param {VaultsApiGetAssetWalletsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public getAssetWallets(requestParameters: VaultsApiGetAssetWalletsRequest = {}) { return VaultsApiFp(this.configuration).getAssetWallets(requestParameters.totalAmountLargerThan, requestParameters.assetId, requestParameters.orderBy, requestParameters.before, requestParameters.after, requestParameters.limit).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns the current status of (or an error for) the specified deposit addresss bulk creation job. **Endpoint Permissions:** Admin, Non-Signing Admin, Signer, Approver, Editor, and Viewer. * @summary Get the job status of the bulk deposit address creation * @param {VaultsApiGetCreateMultipleDepositAddressesJobStatusRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public getCreateMultipleDepositAddressesJobStatus(requestParameters: VaultsApiGetCreateMultipleDepositAddressesJobStatusRequest) { return VaultsApiFp(this.configuration).getCreateMultipleDepositAddressesJobStatus(requestParameters.jobId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns the current status of (or error for) the specified vault account bulk creation job. **Endpoint Permissions:** Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get job status of bulk creation of new vault accounts * @param {VaultsApiGetCreateMultipleVaultAccountsJobStatusRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public getCreateMultipleVaultAccountsJobStatus(requestParameters: VaultsApiGetCreateMultipleVaultAccountsJobStatusRequest) { return VaultsApiFp(this.configuration).getCreateMultipleVaultAccountsJobStatus(requestParameters.jobId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Retrieves the maximum BIP44 address index and change address index used for a specific asset in a vault account (BIP44 standard). * @summary Get maximum BIP44 index used * @param {VaultsApiGetMaxBipIndexUsedRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public getMaxBipIndexUsed(requestParameters: VaultsApiGetMaxBipIndexUsedRequest) { return VaultsApiFp(this.configuration).getMaxBipIndexUsed(requestParameters.vaultAccountId, requestParameters.assetId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * **UTXO assets only.** Retrieve the maximum amount of the specified asset that can be spent in a single transaction from the specified vault account. **Endpoint Permissions:** Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get max spendable amount in a transaction * @param {VaultsApiGetMaxSpendableAmountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public getMaxSpendableAmount(requestParameters: VaultsApiGetMaxSpendableAmountRequest) { return VaultsApiFp(this.configuration).getMaxSpendableAmount(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.manualSignging, requestParameters.includeAllLabels, requestParameters.includeAnyLabels, requestParameters.excludeAnyLabels, requestParameters.address, requestParameters.minAmount, requestParameters.maxAmount).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Gets all vault accounts in your workspace. This endpoint returns a limited amount of results with a quick response time. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get vault accounts (Paginated) * @param {VaultsApiGetPagedVaultAccountsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public getPagedVaultAccounts(requestParameters: VaultsApiGetPagedVaultAccountsRequest = {}) { return VaultsApiFp(this.configuration).getPagedVaultAccounts(requestParameters.namePrefix, requestParameters.nameSuffix, requestParameters.minAmountThreshold, requestParameters.assetId, requestParameters.orderBy, requestParameters.before, requestParameters.after, requestParameters.limit, requestParameters.tagIds, requestParameters.includeTagIds, requestParameters.excludeTagIds).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Gets the public key information based on derivation path and signing algorithm. Endpoint Permission: Admin, Non-Signing Admin. * @summary Get the public key for a derivation path * @param {VaultsApiGetPublicKeyInfoRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public getPublicKeyInfo(requestParameters: VaultsApiGetPublicKeyInfoRequest) { return VaultsApiFp(this.configuration).getPublicKeyInfo(requestParameters.derivationPath, requestParameters.algorithm, requestParameters.compressed).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get the public key information for a specific asset in a vault account. Endpoint Permission: Admin, Non-Signing Admin. * @summary Get an asset\'s public key * @param {VaultsApiGetPublicKeyInfoForAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public getPublicKeyInfoForAddress(requestParameters: VaultsApiGetPublicKeyInfoForAddressRequest) { return VaultsApiFp(this.configuration).getPublicKeyInfoForAddress(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.change, requestParameters.addressIndex, requestParameters.compressed).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns unspent inputs information of an UTXO asset in a vault account. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get UTXO unspent inputs information * @param {VaultsApiGetUnspentInputsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public getUnspentInputs(requestParameters: VaultsApiGetUnspentInputsRequest) { return VaultsApiFp(this.configuration).getUnspentInputs(requestParameters.vaultAccountId, requestParameters.assetId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns the USDC Gateway deposit automations configured for the given vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Read the USDC Gateway deposit automations for a vault account * @param {VaultsApiGetUsdcGatewayDepositAutomationBetaRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public getUsdcGatewayDepositAutomationBeta(requestParameters: VaultsApiGetUsdcGatewayDepositAutomationBetaRequest) { return VaultsApiFp(this.configuration).getUsdcGatewayDepositAutomationBeta(requestParameters.vaultAccountId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns the USDC Gateway wallet information associated with the given vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get USDC Gateway wallet info * @param {VaultsApiGetUsdcGatewayWalletInfoBetaRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public getUsdcGatewayWalletInfoBeta(requestParameters: VaultsApiGetUsdcGatewayWalletInfoBetaRequest) { return VaultsApiFp(this.configuration).getUsdcGatewayWalletInfoBeta(requestParameters.vaultAccountId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get a vault account by its unique ID. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get a vault account by ID * @param {VaultsApiGetVaultAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public getVaultAccount(requestParameters: VaultsApiGetVaultAccountRequest) { return VaultsApiFp(this.configuration).getVaultAccount(requestParameters.vaultAccountId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns a specific vault wallet balance information for a specific asset. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get the asset balance for a vault account * @param {VaultsApiGetVaultAccountAssetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public getVaultAccountAsset(requestParameters: VaultsApiGetVaultAccountAssetRequest) { return VaultsApiFp(this.configuration).getVaultAccountAsset(requestParameters.vaultAccountId, requestParameters.assetId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns a paginated response of the addresses for a given vault account and asset. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get addresses (Paginated) * @param {VaultsApiGetVaultAccountAssetAddressesPaginatedRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public getVaultAccountAssetAddressesPaginated(requestParameters: VaultsApiGetVaultAccountAssetAddressesPaginatedRequest) { return VaultsApiFp(this.configuration).getVaultAccountAssetAddressesPaginated(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.limit, requestParameters.before, requestParameters.after).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Gets the assets amount summary for all accounts or filtered accounts. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get asset balance for chosen assets * @param {VaultsApiGetVaultAssetsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public getVaultAssets(requestParameters: VaultsApiGetVaultAssetsRequest = {}) { return VaultsApiFp(this.configuration).getVaultAssets(requestParameters.accountNamePrefix, requestParameters.accountNameSuffix).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get the total balance of an asset across all the vault accounts. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get vault balance by an asset * @param {VaultsApiGetVaultBalanceByAssetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public getVaultBalanceByAsset(requestParameters: VaultsApiGetVaultBalanceByAssetRequest) { return VaultsApiFp(this.configuration).getVaultBalanceByAsset(requestParameters.assetId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Hides the requested vault account from the web console view. This operation is required when creating thousands of vault accounts to serve your end-users. Used for preventing the web console to be swamped with too much vault accounts. Learn more in the following [guide](https://developers.fireblocks.com/docs/create-direct-custody-wallets#hiding-vault-accounts). NOTE: Hiding the vault account from the web console will also hide all the related transactions to/from this vault. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Hide a vault account in the console * @param {VaultsApiHideVaultAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public hideVaultAccount(requestParameters: VaultsApiHideVaultAccountRequest) { return VaultsApiFp(this.configuration).hideVaultAccount(requestParameters.vaultAccountId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Resolves a blockchain address to the vault account that owns it. Returns the vault account ID and the blockchains associated with the address. **Note:** This endpoint is currently in beta and might be subject to changes. * @summary Look up a vault account by blockchain address * @param {VaultsApiLookupVaultByAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public lookupVaultByAddress(requestParameters: VaultsApiLookupVaultByAddressRequest) { return VaultsApiFp(this.configuration).lookupVaultByAddress(requestParameters.address).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Sets an AML/KYT customer reference ID for a specific address. Endpoint Permission: Admin, Non-Signing Admin. * @summary Assign AML customer reference ID * @param {VaultsApiSetCustomerRefIdForAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public setCustomerRefIdForAddress(requestParameters: VaultsApiSetCustomerRefIdForAddressRequest) { return VaultsApiFp(this.configuration).setCustomerRefIdForAddress(requestParameters.setCustomerRefIdForAddressRequest, requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.addressId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Turns on automatic deposits into the USDC Gateway wallet for the given vault account, on the schedule you choose. Returns an error if an automation already exists for this vault account and asset. Use PATCH to change it instead. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Set up a USDC Gateway deposit automation for a vault account * @param {VaultsApiSetUsdcGatewayDepositAutomationBetaRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public setUsdcGatewayDepositAutomationBeta(requestParameters: VaultsApiSetUsdcGatewayDepositAutomationBetaRequest) { return VaultsApiFp(this.configuration).setUsdcGatewayDepositAutomationBeta(requestParameters.automationSettingsRequest, requestParameters.vaultAccountId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Toggles the auto fueling property of the vault account to enabled or disabled. Vault Accounts with \'autoFuel=true\' are monitored and auto fueled by the Fireblocks Gas Station. Learn more about the Fireblocks Gas Station in the following [guide](https://developers.fireblocks.com/docs/work-with-gas-station). Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Set auto fueling to on or off * @param {VaultsApiSetVaultAccountAutoFuelRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public setVaultAccountAutoFuel(requestParameters: VaultsApiSetVaultAccountAutoFuelRequest) { return VaultsApiFp(this.configuration).setVaultAccountAutoFuel(requestParameters.setAutoFuelRequest, requestParameters.vaultAccountId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Assigns an AML/KYT customer reference ID for the vault account. Learn more about Fireblocks AML management in the following [guide](https://developers.fireblocks.com/docs/define-aml-policies). Endpoint Permission: Admin, Non-Signing Admin. * @summary Set an AML/KYT ID for a vault account * @param {VaultsApiSetVaultAccountCustomerRefIdRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public setVaultAccountCustomerRefId(requestParameters: VaultsApiSetVaultAccountCustomerRefIdRequest) { return VaultsApiFp(this.configuration).setVaultAccountCustomerRefId(requestParameters.setCustomerRefIdRequest, requestParameters.vaultAccountId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Makes a hidden vault account visible in web console view. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Unhide a vault account in the console * @param {VaultsApiUnhideVaultAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public unhideVaultAccount(requestParameters: VaultsApiUnhideVaultAccountRequest) { return VaultsApiFp(this.configuration).unhideVaultAccount(requestParameters.vaultAccountId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Changes an existing USDC Gateway deposit automation for a vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Change a USDC Gateway deposit automation * @param {VaultsApiUpdateUsdcGatewayDepositAutomationBetaRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public updateUsdcGatewayDepositAutomationBeta(requestParameters: VaultsApiUpdateUsdcGatewayDepositAutomationBetaRequest) { return VaultsApiFp(this.configuration).updateUsdcGatewayDepositAutomationBeta(requestParameters.updateAutomationSettingsRequest, requestParameters.vaultAccountId, requestParameters.automationId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Renames the requested vault account. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * @summary Rename a vault account * @param {VaultsApiUpdateVaultAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public updateVaultAccount(requestParameters: VaultsApiUpdateVaultAccountRequest) { return VaultsApiFp(this.configuration).updateVaultAccount(requestParameters.updateVaultAccountRequest, requestParameters.vaultAccountId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Updates the description of an existing address of an asset in a vault account. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Update address description * @param {VaultsApiUpdateVaultAccountAssetAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public updateVaultAccountAssetAddress(requestParameters: VaultsApiUpdateVaultAccountAssetAddressRequest) { return VaultsApiFp(this.configuration).updateVaultAccountAssetAddress(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.addressId, requestParameters.updateVaultAccountAssetAddressRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Updates the balance of a specific asset in a vault account. This API endpoint is subject to a strict rate limit. Should be used by clients in very specific scenarios. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * @summary Refresh asset balance data * @param {VaultsApiUpdateVaultAccountAssetBalanceRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ public updateVaultAccountAssetBalance(requestParameters: VaultsApiUpdateVaultAccountAssetBalanceRequest) { return VaultsApiFp(this.configuration).updateVaultAccountAssetBalance(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } } /** * @export */ export const GetAssetWalletsOrderByEnum = { Asc: 'ASC', Desc: 'DESC' } as const; export type GetAssetWalletsOrderByEnum = typeof GetAssetWalletsOrderByEnum[keyof typeof GetAssetWalletsOrderByEnum]; /** * @export */ export const GetPagedVaultAccountsOrderByEnum = { Asc: 'ASC', Desc: 'DESC' } as const; export type GetPagedVaultAccountsOrderByEnum = typeof GetPagedVaultAccountsOrderByEnum[keyof typeof GetPagedVaultAccountsOrderByEnum];