/* 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 { EmbeddedWallet } from '../models'; // @ts-ignore import { EmbeddedWalletAccount } from '../models'; // @ts-ignore import { EmbeddedWalletAddressDetails } from '../models'; // @ts-ignore import { EmbeddedWalletAssetBalance } from '../models'; // @ts-ignore import { EmbeddedWalletAssetResponse } from '../models'; // @ts-ignore import { EmbeddedWalletDevice } from '../models'; // @ts-ignore import { EmbeddedWalletDeviceKeySetupResponse } from '../models'; // @ts-ignore import { EmbeddedWalletLatestBackupResponse } from '../models'; // @ts-ignore import { EmbeddedWalletPaginatedAddressesResponse } from '../models'; // @ts-ignore import { EmbeddedWalletPaginatedAssetsResponse } from '../models'; // @ts-ignore import { EmbeddedWalletPaginatedDevicesResponse } from '../models'; // @ts-ignore import { EmbeddedWalletPaginatedWalletsResponse } from '../models'; // @ts-ignore import { EmbeddedWalletSetupStatusResponse } from '../models'; // @ts-ignore import { EnableDevice } from '../models'; // @ts-ignore import { EnableWallet } from '../models'; // @ts-ignore import { ErrorSchema } from '../models'; // @ts-ignore import { PublicKeyInformation } from '../models'; /** * EmbeddedWalletsApi - axios parameter creator * @export */ export const EmbeddedWalletsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Get the addresses of a specific asset, under a specific account, under a specific Non Custodial Wallet * @summary Add asset to account * @param {string} walletId Wallet Id * @param {string} accountId The ID of the 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 {*} [options] Override http request option. * @throws {RequiredError} */ addEmbeddedWalletAsset: async (walletId: string, accountId: string, assetId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('addEmbeddedWalletAsset', 'walletId', walletId) assertParamExistsAndNotEmpty('addEmbeddedWalletAsset', 'accountId', accountId) assertParamExistsAndNotEmpty('addEmbeddedWalletAsset', 'assetId', assetId) const localVarPath = `/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}` .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))) .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .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 = 'addEmbeddedWalletAsset'; 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, }; }, /** * Assign a specific Non Custodial Wallet to a user * @summary Assign a wallet * @param {string} walletId Wallet 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} */ assignEmbeddedWallet: async (walletId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('assignEmbeddedWallet', 'walletId', walletId) const localVarPath = `/ncw/wallets/{walletId}/assign` .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))); // 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 = 'assignEmbeddedWallet'; 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 new Non Custodial Wallet * @summary Create a new wallet * @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} */ createEmbeddedWallet: async (idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/ncw/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: '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 = 'createEmbeddedWallet'; 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 a new account under a specific Non Custodial Wallet * @summary Create a new account * @param {string} walletId Wallet 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} */ createEmbeddedWalletAccount: async (walletId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('createEmbeddedWalletAccount', 'walletId', walletId) const localVarPath = `/ncw/wallets/{walletId}/accounts` .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))); // 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 = 'createEmbeddedWalletAccount'; 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, }; }, /** * Get a wallet * @summary Get a wallet * @param {string} walletId Wallet Id * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWallet: async (walletId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getEmbeddedWallet', 'walletId', walletId) const localVarPath = `/ncw/wallets/{walletId}` .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))); // 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 = 'getEmbeddedWallet'; 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 specific account under a specific Non Custodial Wallet * @summary Get a account * @param {string} walletId WalletId * @param {string} accountId The ID of the account * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletAccount: async (walletId: string, accountId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getEmbeddedWalletAccount', 'walletId', walletId) assertParamExistsAndNotEmpty('getEmbeddedWalletAccount', 'accountId', accountId) const localVarPath = `/ncw/wallets/{walletId}/accounts/{accountId}` .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))) .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // 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 = 'getEmbeddedWalletAccount'; 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 the addresses of a specific asset, under a specific account, under a specific Non Custodial Wallet * @summary Retrieve asset addresses * @param {string} walletId Wallet Id * @param {string} accountId The ID of the account * @param {string} assetId The ID of the asset * @param {string} [pageCursor] Cursor to the next page * @param {number} [pageSize] Items per page * @param {GetEmbeddedWalletAddressesSortEnum} [sort] Sort by address * @param {GetEmbeddedWalletAddressesOrderEnum} [order] Is the order ascending or descending * @param {boolean} [enabled] Enabled * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletAddresses: async (walletId: string, accountId: string, assetId: string, pageCursor?: string, pageSize?: number, sort?: GetEmbeddedWalletAddressesSortEnum, order?: GetEmbeddedWalletAddressesOrderEnum, enabled?: boolean, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getEmbeddedWalletAddresses', 'walletId', walletId) assertParamExistsAndNotEmpty('getEmbeddedWalletAddresses', 'accountId', accountId) assertParamExistsAndNotEmpty('getEmbeddedWalletAddresses', 'assetId', assetId) const localVarPath = `/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/addresses` .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))) .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .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 = 'getEmbeddedWalletAddresses'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (pageCursor !== undefined) { localVarQueryParameter['pageCursor'] = pageCursor; } if (pageSize !== undefined) { localVarQueryParameter['pageSize'] = pageSize; } if (sort !== undefined) { localVarQueryParameter['sort'] = sort; } if (order !== undefined) { localVarQueryParameter['order'] = order; } if (enabled !== undefined) { localVarQueryParameter['enabled'] = enabled; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get asset under a specific account, under a specific Non Custodial Wallet * @summary Retrieve asset * @param {string} walletId Wallet Id * @param {string} accountId The ID of the account * @param {string} assetId The ID of the asset * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletAsset: async (walletId: string, accountId: string, assetId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getEmbeddedWalletAsset', 'walletId', walletId) assertParamExistsAndNotEmpty('getEmbeddedWalletAsset', 'accountId', accountId) assertParamExistsAndNotEmpty('getEmbeddedWalletAsset', 'assetId', assetId) const localVarPath = `/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}` .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))) .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .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 = 'getEmbeddedWalletAsset'; 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 balance for specific asset, under a specific account * @summary Retrieve asset balance * @param {string} walletId Wallet Id * @param {string} accountId The ID of the account * @param {string} assetId The ID of the asset * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletAssetBalance: async (walletId: string, accountId: string, assetId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getEmbeddedWalletAssetBalance', 'walletId', walletId) assertParamExistsAndNotEmpty('getEmbeddedWalletAssetBalance', 'accountId', accountId) assertParamExistsAndNotEmpty('getEmbeddedWalletAssetBalance', 'assetId', assetId) const localVarPath = `/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/balance` .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))) .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .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 = 'getEmbeddedWalletAssetBalance'; 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, }; }, /** * Retrieve assets for a specific account under a specific Non Custodial Wallet * @summary Retrieve assets * @param {string} walletId Wallet Id * @param {string} accountId The ID of the account * @param {Array} [sort] Sort by fields * @param {string} [pageCursor] Cursor to the next page * @param {number} [pageSize] Amount of results to return in the next page * @param {GetEmbeddedWalletAssetsOrderEnum} [order] Is the order ascending or descending * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletAssets: async (walletId: string, accountId: string, sort?: Array, pageCursor?: string, pageSize?: number, order?: GetEmbeddedWalletAssetsOrderEnum, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getEmbeddedWalletAssets', 'walletId', walletId) assertParamExistsAndNotEmpty('getEmbeddedWalletAssets', 'accountId', accountId) const localVarPath = `/ncw/wallets/{walletId}/accounts/{accountId}/assets` .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))) .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // 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 = 'getEmbeddedWalletAssets'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (sort) { localVarQueryParameter['sort'] = sort; } if (pageCursor !== undefined) { localVarQueryParameter['pageCursor'] = pageCursor; } if (pageSize !== undefined) { localVarQueryParameter['pageSize'] = pageSize; } if (order !== undefined) { localVarQueryParameter['order'] = order; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get specific device for a specific s Wallet * @summary Get Embedded Wallet Device * @param {string} walletId Wallet Id * @param {string} deviceId Device Id * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletDevice: async (walletId: string, deviceId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getEmbeddedWalletDevice', 'walletId', walletId) assertParamExistsAndNotEmpty('getEmbeddedWalletDevice', 'deviceId', deviceId) const localVarPath = `/ncw/wallets/{walletId}/devices/{deviceId}` .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))) .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId))); // 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 = 'getEmbeddedWalletDevice'; 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 the state of the specific device setup key under a specific Non Custodial Wallet * @summary Get device key setup state * @param {string} walletId Wallet Id * @param {string} deviceId Device Id * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletDeviceSetupState: async (walletId: string, deviceId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getEmbeddedWalletDeviceSetupState', 'walletId', walletId) assertParamExistsAndNotEmpty('getEmbeddedWalletDeviceSetupState', 'deviceId', deviceId) const localVarPath = `/ncw/wallets/{walletId}/devices/{deviceId}/setup_status` .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))) .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId))); // 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 = 'getEmbeddedWalletDeviceSetupState'; 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 paginated list of registered devices for a specific Non Custodial Wallet * @summary Get registered devices - paginated * @param {string} walletId Wallet Id * @param {Array} [sort] Sort by fields * @param {string} [pageCursor] Cursor to the next page * @param {number} [pageSize] Amount of results to return in the next page * @param {GetEmbeddedWalletDevicesPaginatedOrderEnum} [order] Is the order ascending or descending * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletDevicesPaginated: async (walletId: string, sort?: Array, pageCursor?: string, pageSize?: number, order?: GetEmbeddedWalletDevicesPaginatedOrderEnum, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getEmbeddedWalletDevicesPaginated', 'walletId', walletId) const localVarPath = `/ncw/wallets/{walletId}/devices_paginated` .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))); // 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 = 'getEmbeddedWalletDevicesPaginated'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (sort) { localVarQueryParameter['sort'] = sort; } if (pageCursor !== undefined) { localVarQueryParameter['pageCursor'] = pageCursor; } if (pageSize !== undefined) { localVarQueryParameter['pageSize'] = pageSize; } if (order !== undefined) { localVarQueryParameter['order'] = order; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get wallet Latest Backup details, including the deviceId, and backup time * @summary Get wallet Latest Backup details * @param {string} walletId Wallet Id * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletLatestBackup: async (walletId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getEmbeddedWalletLatestBackup', 'walletId', walletId) const localVarPath = `/ncw/wallets/{walletId}/backup/latest` .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))); // 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 = 'getEmbeddedWalletLatestBackup'; 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, }; }, /** * Gets the public key of an asset associated with a specific account within a Non-Custodial Wallet * @summary Get the public key of an asset * @param {string} xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. * @param {string} walletId The ID of the Non-Custodial wallet * @param {string} accountId The ID of the account * @param {string} assetId The ID of the asset * @param {number} change BIP44 derivation path - change value * @param {number} addressIndex BIP44 derivation path - index value * @param {boolean} [compressed] Compressed/Uncompressed public key format * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletPublicKeyInfoForAddress: async (xEndUserWalletId: string, walletId: string, accountId: string, assetId: string, change: number, addressIndex: number, compressed?: boolean, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getEmbeddedWalletPublicKeyInfoForAddress', 'xEndUserWalletId', xEndUserWalletId) assertParamExistsAndNotEmpty('getEmbeddedWalletPublicKeyInfoForAddress', 'walletId', walletId) assertParamExistsAndNotEmpty('getEmbeddedWalletPublicKeyInfoForAddress', 'accountId', accountId) assertParamExistsAndNotEmpty('getEmbeddedWalletPublicKeyInfoForAddress', 'assetId', assetId) assertParamExists('getEmbeddedWalletPublicKeyInfoForAddress', 'change', change) assertParamExists('getEmbeddedWalletPublicKeyInfoForAddress', 'addressIndex', addressIndex) const localVarPath = `/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/{change}/{addressIndex}/public_key_info` .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))) .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .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 = 'getEmbeddedWalletPublicKeyInfoForAddress'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (compressed !== undefined) { localVarQueryParameter['compressed'] = compressed; } if (xEndUserWalletId != null) { localVarHeaderParameter['X-End-User-Wallet-Id'] = String(xEndUserWalletId); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get the key setup state for a specific Non Custodial Wallet, including required algorithms and device setup status * @summary Get wallet key setup state * @param {string} walletId Wallet Id * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletSetupStatus: async (walletId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getEmbeddedWalletSetupStatus', 'walletId', walletId) const localVarPath = `/ncw/wallets/{walletId}/setup_status` .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))); // 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 = 'getEmbeddedWalletSetupStatus'; 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 the available supported assets for the Non-Custodial Wallet * @summary Retrieve supported assets * @param {string} [pageCursor] Next page cursor to fetch * @param {number} [pageSize] Items per page * @param {boolean} [onlyBaseAssets] Only base assets * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletSupportedAssets: async (pageCursor?: string, pageSize?: number, onlyBaseAssets?: boolean, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/ncw/wallets/supported_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 = 'getEmbeddedWalletSupportedAssets'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (pageCursor !== undefined) { localVarQueryParameter['pageCursor'] = pageCursor; } if (pageSize !== undefined) { localVarQueryParameter['pageSize'] = pageSize; } if (onlyBaseAssets !== undefined) { localVarQueryParameter['onlyBaseAssets'] = onlyBaseAssets; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get all Non Custodial Wallets * @summary List wallets * @param {string} [pageCursor] Next page cursor to fetch * @param {number} [pageSize] Items per page * @param {GetEmbeddedWalletsSortEnum} [sort] Field(s) to use for sorting * @param {GetEmbeddedWalletsOrderEnum} [order] Is the order ascending or descending * @param {boolean} [enabled] Enabled Wallets * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWallets: async (pageCursor?: string, pageSize?: number, sort?: GetEmbeddedWalletsSortEnum, order?: GetEmbeddedWalletsOrderEnum, enabled?: boolean, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/ncw/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 = 'getEmbeddedWallets'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (pageCursor !== undefined) { localVarQueryParameter['pageCursor'] = pageCursor; } if (pageSize !== undefined) { localVarQueryParameter['pageSize'] = pageSize; } if (sort !== undefined) { localVarQueryParameter['sort'] = sort; } if (order !== undefined) { localVarQueryParameter['order'] = order; } if (enabled !== undefined) { localVarQueryParameter['enabled'] = enabled; } 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 within a Non-Custodial Wallet * @summary Get the public key for a derivation path * @param {string} xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. * @param {string} walletId The ID of the Non-Custodial wallet * @param {string} derivationPath An array of integers (passed as JSON stringified array) representing the full BIP44 derivation path of the requested public key. The first element must always be 44. * @param {GetPublicKeyInfoNcwAlgorithmEnum} algorithm Elliptic Curve * @param {boolean} [compressed] Compressed/Uncompressed public key format * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicKeyInfoNcw: async (xEndUserWalletId: string, walletId: string, derivationPath: string, algorithm: GetPublicKeyInfoNcwAlgorithmEnum, compressed?: boolean, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getPublicKeyInfoNcw', 'xEndUserWalletId', xEndUserWalletId) assertParamExistsAndNotEmpty('getPublicKeyInfoNcw', 'walletId', walletId) assertParamExistsAndNotEmpty('getPublicKeyInfoNcw', 'derivationPath', derivationPath) assertParamExistsAndNotEmpty('getPublicKeyInfoNcw', 'algorithm', algorithm) const localVarPath = `/ncw/wallets/{walletId}/public_key_info` .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))); // 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 = 'getPublicKeyInfoNcw'; 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; } if (xEndUserWalletId != null) { localVarHeaderParameter['X-End-User-Wallet-Id'] = String(xEndUserWalletId); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Refresh the balance of an asset in a specific account * @summary Refresh asset balance * @param {string} walletId Wallet Id * @param {string} accountId The ID of the 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 {*} [options] Override http request option. * @throws {RequiredError} */ refreshEmbeddedWalletAssetBalance: async (walletId: string, accountId: string, assetId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('refreshEmbeddedWalletAssetBalance', 'walletId', walletId) assertParamExistsAndNotEmpty('refreshEmbeddedWalletAssetBalance', 'accountId', accountId) assertParamExistsAndNotEmpty('refreshEmbeddedWalletAssetBalance', 'assetId', assetId) const localVarPath = `/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/balance` .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))) .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .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: '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 = 'refreshEmbeddedWalletAssetBalance'; 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, }; }, /** * Update the enabled/disabled status of a specific device for a Non Custodial Wallet * @summary Update device status * @param {EnableDevice} enableDevice * @param {string} walletId Wallet Id * @param {string} deviceId Device 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} */ updateEmbeddedWalletDeviceStatus: async (enableDevice: EnableDevice, walletId: string, deviceId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('updateEmbeddedWalletDeviceStatus', 'enableDevice', enableDevice) assertParamExistsAndNotEmpty('updateEmbeddedWalletDeviceStatus', 'walletId', walletId) assertParamExistsAndNotEmpty('updateEmbeddedWalletDeviceStatus', 'deviceId', deviceId) const localVarPath = `/ncw/wallets/{walletId}/devices/{deviceId}/status` .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))) .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId))); // 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 = 'updateEmbeddedWalletDeviceStatus'; 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(enableDevice, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Update the enabled/disabled status of a specific Non Custodial Wallet * @summary Update wallet status * @param {EnableWallet} enableWallet * @param {string} walletId Wallet 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} */ updateEmbeddedWalletStatus: async (enableWallet: EnableWallet, walletId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('updateEmbeddedWalletStatus', 'enableWallet', enableWallet) assertParamExistsAndNotEmpty('updateEmbeddedWalletStatus', 'walletId', walletId) const localVarPath = `/ncw/wallets/{walletId}/status` .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))); // 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 = 'updateEmbeddedWalletStatus'; 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(enableWallet, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * EmbeddedWalletsApi - functional programming interface * @export */ export const EmbeddedWalletsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = EmbeddedWalletsApiAxiosParamCreator(configuration) return { /** * Get the addresses of a specific asset, under a specific account, under a specific Non Custodial Wallet * @summary Add asset to account * @param {string} walletId Wallet Id * @param {string} accountId The ID of the 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 {*} [options] Override http request option. * @throws {RequiredError} */ async addEmbeddedWalletAsset(walletId: string, accountId: string, assetId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.addEmbeddedWalletAsset(walletId, accountId, assetId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.addEmbeddedWalletAsset']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Assign a specific Non Custodial Wallet to a user * @summary Assign a wallet * @param {string} walletId Wallet 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 assignEmbeddedWallet(walletId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.assignEmbeddedWallet(walletId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.assignEmbeddedWallet']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Create new Non Custodial Wallet * @summary Create a new wallet * @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 createEmbeddedWallet(idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createEmbeddedWallet(idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.createEmbeddedWallet']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Create a new account under a specific Non Custodial Wallet * @summary Create a new account * @param {string} walletId Wallet 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 createEmbeddedWalletAccount(walletId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createEmbeddedWalletAccount(walletId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.createEmbeddedWalletAccount']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get a wallet * @summary Get a wallet * @param {string} walletId Wallet Id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getEmbeddedWallet(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getEmbeddedWallet(walletId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.getEmbeddedWallet']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get a specific account under a specific Non Custodial Wallet * @summary Get a account * @param {string} walletId WalletId * @param {string} accountId The ID of the account * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getEmbeddedWalletAccount(walletId: string, accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getEmbeddedWalletAccount(walletId, accountId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.getEmbeddedWalletAccount']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get the addresses of a specific asset, under a specific account, under a specific Non Custodial Wallet * @summary Retrieve asset addresses * @param {string} walletId Wallet Id * @param {string} accountId The ID of the account * @param {string} assetId The ID of the asset * @param {string} [pageCursor] Cursor to the next page * @param {number} [pageSize] Items per page * @param {GetEmbeddedWalletAddressesSortEnum} [sort] Sort by address * @param {GetEmbeddedWalletAddressesOrderEnum} [order] Is the order ascending or descending * @param {boolean} [enabled] Enabled * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getEmbeddedWalletAddresses(walletId: string, accountId: string, assetId: string, pageCursor?: string, pageSize?: number, sort?: GetEmbeddedWalletAddressesSortEnum, order?: GetEmbeddedWalletAddressesOrderEnum, enabled?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getEmbeddedWalletAddresses(walletId, accountId, assetId, pageCursor, pageSize, sort, order, enabled, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.getEmbeddedWalletAddresses']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get asset under a specific account, under a specific Non Custodial Wallet * @summary Retrieve asset * @param {string} walletId Wallet Id * @param {string} accountId The ID of the account * @param {string} assetId The ID of the asset * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getEmbeddedWalletAsset(walletId: string, accountId: string, assetId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getEmbeddedWalletAsset(walletId, accountId, assetId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.getEmbeddedWalletAsset']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get balance for specific asset, under a specific account * @summary Retrieve asset balance * @param {string} walletId Wallet Id * @param {string} accountId The ID of the account * @param {string} assetId The ID of the asset * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getEmbeddedWalletAssetBalance(walletId: string, accountId: string, assetId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getEmbeddedWalletAssetBalance(walletId, accountId, assetId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.getEmbeddedWalletAssetBalance']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Retrieve assets for a specific account under a specific Non Custodial Wallet * @summary Retrieve assets * @param {string} walletId Wallet Id * @param {string} accountId The ID of the account * @param {Array} [sort] Sort by fields * @param {string} [pageCursor] Cursor to the next page * @param {number} [pageSize] Amount of results to return in the next page * @param {GetEmbeddedWalletAssetsOrderEnum} [order] Is the order ascending or descending * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getEmbeddedWalletAssets(walletId: string, accountId: string, sort?: Array, pageCursor?: string, pageSize?: number, order?: GetEmbeddedWalletAssetsOrderEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getEmbeddedWalletAssets(walletId, accountId, sort, pageCursor, pageSize, order, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.getEmbeddedWalletAssets']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get specific device for a specific s Wallet * @summary Get Embedded Wallet Device * @param {string} walletId Wallet Id * @param {string} deviceId Device Id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getEmbeddedWalletDevice(walletId: string, deviceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getEmbeddedWalletDevice(walletId, deviceId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.getEmbeddedWalletDevice']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get the state of the specific device setup key under a specific Non Custodial Wallet * @summary Get device key setup state * @param {string} walletId Wallet Id * @param {string} deviceId Device Id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getEmbeddedWalletDeviceSetupState(walletId: string, deviceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getEmbeddedWalletDeviceSetupState(walletId, deviceId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.getEmbeddedWalletDeviceSetupState']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get a paginated list of registered devices for a specific Non Custodial Wallet * @summary Get registered devices - paginated * @param {string} walletId Wallet Id * @param {Array} [sort] Sort by fields * @param {string} [pageCursor] Cursor to the next page * @param {number} [pageSize] Amount of results to return in the next page * @param {GetEmbeddedWalletDevicesPaginatedOrderEnum} [order] Is the order ascending or descending * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getEmbeddedWalletDevicesPaginated(walletId: string, sort?: Array, pageCursor?: string, pageSize?: number, order?: GetEmbeddedWalletDevicesPaginatedOrderEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getEmbeddedWalletDevicesPaginated(walletId, sort, pageCursor, pageSize, order, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.getEmbeddedWalletDevicesPaginated']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get wallet Latest Backup details, including the deviceId, and backup time * @summary Get wallet Latest Backup details * @param {string} walletId Wallet Id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getEmbeddedWalletLatestBackup(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getEmbeddedWalletLatestBackup(walletId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.getEmbeddedWalletLatestBackup']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Gets the public key of an asset associated with a specific account within a Non-Custodial Wallet * @summary Get the public key of an asset * @param {string} xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. * @param {string} walletId The ID of the Non-Custodial wallet * @param {string} accountId The ID of the account * @param {string} assetId The ID of the asset * @param {number} change BIP44 derivation path - change value * @param {number} addressIndex BIP44 derivation path - index value * @param {boolean} [compressed] Compressed/Uncompressed public key format * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getEmbeddedWalletPublicKeyInfoForAddress(xEndUserWalletId: string, walletId: string, accountId: string, assetId: string, change: number, addressIndex: number, compressed?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getEmbeddedWalletPublicKeyInfoForAddress(xEndUserWalletId, walletId, accountId, assetId, change, addressIndex, compressed, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.getEmbeddedWalletPublicKeyInfoForAddress']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get the key setup state for a specific Non Custodial Wallet, including required algorithms and device setup status * @summary Get wallet key setup state * @param {string} walletId Wallet Id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getEmbeddedWalletSetupStatus(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getEmbeddedWalletSetupStatus(walletId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.getEmbeddedWalletSetupStatus']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get all the available supported assets for the Non-Custodial Wallet * @summary Retrieve supported assets * @param {string} [pageCursor] Next page cursor to fetch * @param {number} [pageSize] Items per page * @param {boolean} [onlyBaseAssets] Only base assets * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getEmbeddedWalletSupportedAssets(pageCursor?: string, pageSize?: number, onlyBaseAssets?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getEmbeddedWalletSupportedAssets(pageCursor, pageSize, onlyBaseAssets, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.getEmbeddedWalletSupportedAssets']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get all Non Custodial Wallets * @summary List wallets * @param {string} [pageCursor] Next page cursor to fetch * @param {number} [pageSize] Items per page * @param {GetEmbeddedWalletsSortEnum} [sort] Field(s) to use for sorting * @param {GetEmbeddedWalletsOrderEnum} [order] Is the order ascending or descending * @param {boolean} [enabled] Enabled Wallets * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getEmbeddedWallets(pageCursor?: string, pageSize?: number, sort?: GetEmbeddedWalletsSortEnum, order?: GetEmbeddedWalletsOrderEnum, enabled?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getEmbeddedWallets(pageCursor, pageSize, sort, order, enabled, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.getEmbeddedWallets']?.[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 within a Non-Custodial Wallet * @summary Get the public key for a derivation path * @param {string} xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. * @param {string} walletId The ID of the Non-Custodial wallet * @param {string} derivationPath An array of integers (passed as JSON stringified array) representing the full BIP44 derivation path of the requested public key. The first element must always be 44. * @param {GetPublicKeyInfoNcwAlgorithmEnum} algorithm Elliptic Curve * @param {boolean} [compressed] Compressed/Uncompressed public key format * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getPublicKeyInfoNcw(xEndUserWalletId: string, walletId: string, derivationPath: string, algorithm: GetPublicKeyInfoNcwAlgorithmEnum, compressed?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicKeyInfoNcw(xEndUserWalletId, walletId, derivationPath, algorithm, compressed, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.getPublicKeyInfoNcw']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Refresh the balance of an asset in a specific account * @summary Refresh asset balance * @param {string} walletId Wallet Id * @param {string} accountId The ID of the 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 {*} [options] Override http request option. * @throws {RequiredError} */ async refreshEmbeddedWalletAssetBalance(walletId: string, accountId: string, assetId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.refreshEmbeddedWalletAssetBalance(walletId, accountId, assetId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.refreshEmbeddedWalletAssetBalance']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Update the enabled/disabled status of a specific device for a Non Custodial Wallet * @summary Update device status * @param {EnableDevice} enableDevice * @param {string} walletId Wallet Id * @param {string} deviceId Device 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 updateEmbeddedWalletDeviceStatus(enableDevice: EnableDevice, walletId: string, deviceId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateEmbeddedWalletDeviceStatus(enableDevice, walletId, deviceId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.updateEmbeddedWalletDeviceStatus']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Update the enabled/disabled status of a specific Non Custodial Wallet * @summary Update wallet status * @param {EnableWallet} enableWallet * @param {string} walletId Wallet 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 updateEmbeddedWalletStatus(enableWallet: EnableWallet, walletId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateEmbeddedWalletStatus(enableWallet, walletId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EmbeddedWalletsApi.updateEmbeddedWalletStatus']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, } }; /** * EmbeddedWalletsApi - factory interface * @export */ export const EmbeddedWalletsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = EmbeddedWalletsApiFp(configuration) return { /** * Get the addresses of a specific asset, under a specific account, under a specific Non Custodial Wallet * @summary Add asset to account * @param {EmbeddedWalletsApiAddEmbeddedWalletAssetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ addEmbeddedWalletAsset(requestParameters: EmbeddedWalletsApiAddEmbeddedWalletAssetRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.addEmbeddedWalletAsset(requestParameters.walletId, requestParameters.accountId, requestParameters.assetId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Assign a specific Non Custodial Wallet to a user * @summary Assign a wallet * @param {EmbeddedWalletsApiAssignEmbeddedWalletRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ assignEmbeddedWallet(requestParameters: EmbeddedWalletsApiAssignEmbeddedWalletRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.assignEmbeddedWallet(requestParameters.walletId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Create new Non Custodial Wallet * @summary Create a new wallet * @param {EmbeddedWalletsApiCreateEmbeddedWalletRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createEmbeddedWallet(requestParameters: EmbeddedWalletsApiCreateEmbeddedWalletRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createEmbeddedWallet(requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Create a new account under a specific Non Custodial Wallet * @summary Create a new account * @param {EmbeddedWalletsApiCreateEmbeddedWalletAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createEmbeddedWalletAccount(requestParameters: EmbeddedWalletsApiCreateEmbeddedWalletAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createEmbeddedWalletAccount(requestParameters.walletId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Get a wallet * @summary Get a wallet * @param {EmbeddedWalletsApiGetEmbeddedWalletRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWallet(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getEmbeddedWallet(requestParameters.walletId, options).then((request) => request(axios, basePath)); }, /** * Get a specific account under a specific Non Custodial Wallet * @summary Get a account * @param {EmbeddedWalletsApiGetEmbeddedWalletAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletAccount(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getEmbeddedWalletAccount(requestParameters.walletId, requestParameters.accountId, options).then((request) => request(axios, basePath)); }, /** * Get the addresses of a specific asset, under a specific account, under a specific Non Custodial Wallet * @summary Retrieve asset addresses * @param {EmbeddedWalletsApiGetEmbeddedWalletAddressesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletAddresses(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletAddressesRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getEmbeddedWalletAddresses(requestParameters.walletId, requestParameters.accountId, requestParameters.assetId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sort, requestParameters.order, requestParameters.enabled, options).then((request) => request(axios, basePath)); }, /** * Get asset under a specific account, under a specific Non Custodial Wallet * @summary Retrieve asset * @param {EmbeddedWalletsApiGetEmbeddedWalletAssetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletAsset(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletAssetRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getEmbeddedWalletAsset(requestParameters.walletId, requestParameters.accountId, requestParameters.assetId, options).then((request) => request(axios, basePath)); }, /** * Get balance for specific asset, under a specific account * @summary Retrieve asset balance * @param {EmbeddedWalletsApiGetEmbeddedWalletAssetBalanceRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletAssetBalance(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletAssetBalanceRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getEmbeddedWalletAssetBalance(requestParameters.walletId, requestParameters.accountId, requestParameters.assetId, options).then((request) => request(axios, basePath)); }, /** * Retrieve assets for a specific account under a specific Non Custodial Wallet * @summary Retrieve assets * @param {EmbeddedWalletsApiGetEmbeddedWalletAssetsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletAssets(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletAssetsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getEmbeddedWalletAssets(requestParameters.walletId, requestParameters.accountId, requestParameters.sort, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.order, options).then((request) => request(axios, basePath)); }, /** * Get specific device for a specific s Wallet * @summary Get Embedded Wallet Device * @param {EmbeddedWalletsApiGetEmbeddedWalletDeviceRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletDevice(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletDeviceRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getEmbeddedWalletDevice(requestParameters.walletId, requestParameters.deviceId, options).then((request) => request(axios, basePath)); }, /** * Get the state of the specific device setup key under a specific Non Custodial Wallet * @summary Get device key setup state * @param {EmbeddedWalletsApiGetEmbeddedWalletDeviceSetupStateRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletDeviceSetupState(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletDeviceSetupStateRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getEmbeddedWalletDeviceSetupState(requestParameters.walletId, requestParameters.deviceId, options).then((request) => request(axios, basePath)); }, /** * Get a paginated list of registered devices for a specific Non Custodial Wallet * @summary Get registered devices - paginated * @param {EmbeddedWalletsApiGetEmbeddedWalletDevicesPaginatedRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletDevicesPaginated(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletDevicesPaginatedRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getEmbeddedWalletDevicesPaginated(requestParameters.walletId, requestParameters.sort, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.order, options).then((request) => request(axios, basePath)); }, /** * Get wallet Latest Backup details, including the deviceId, and backup time * @summary Get wallet Latest Backup details * @param {EmbeddedWalletsApiGetEmbeddedWalletLatestBackupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletLatestBackup(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletLatestBackupRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getEmbeddedWalletLatestBackup(requestParameters.walletId, options).then((request) => request(axios, basePath)); }, /** * Gets the public key of an asset associated with a specific account within a Non-Custodial Wallet * @summary Get the public key of an asset * @param {EmbeddedWalletsApiGetEmbeddedWalletPublicKeyInfoForAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletPublicKeyInfoForAddress(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletPublicKeyInfoForAddressRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getEmbeddedWalletPublicKeyInfoForAddress(requestParameters.xEndUserWalletId, requestParameters.walletId, requestParameters.accountId, requestParameters.assetId, requestParameters.change, requestParameters.addressIndex, requestParameters.compressed, options).then((request) => request(axios, basePath)); }, /** * Get the key setup state for a specific Non Custodial Wallet, including required algorithms and device setup status * @summary Get wallet key setup state * @param {EmbeddedWalletsApiGetEmbeddedWalletSetupStatusRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletSetupStatus(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletSetupStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getEmbeddedWalletSetupStatus(requestParameters.walletId, options).then((request) => request(axios, basePath)); }, /** * Get all the available supported assets for the Non-Custodial Wallet * @summary Retrieve supported assets * @param {EmbeddedWalletsApiGetEmbeddedWalletSupportedAssetsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWalletSupportedAssets(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletSupportedAssetsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getEmbeddedWalletSupportedAssets(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.onlyBaseAssets, options).then((request) => request(axios, basePath)); }, /** * Get all Non Custodial Wallets * @summary List wallets * @param {EmbeddedWalletsApiGetEmbeddedWalletsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmbeddedWallets(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getEmbeddedWallets(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sort, requestParameters.order, requestParameters.enabled, options).then((request) => request(axios, basePath)); }, /** * Gets the public key information based on derivation path and signing algorithm within a Non-Custodial Wallet * @summary Get the public key for a derivation path * @param {EmbeddedWalletsApiGetPublicKeyInfoNcwRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicKeyInfoNcw(requestParameters: EmbeddedWalletsApiGetPublicKeyInfoNcwRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPublicKeyInfoNcw(requestParameters.xEndUserWalletId, requestParameters.walletId, requestParameters.derivationPath, requestParameters.algorithm, requestParameters.compressed, options).then((request) => request(axios, basePath)); }, /** * Refresh the balance of an asset in a specific account * @summary Refresh asset balance * @param {EmbeddedWalletsApiRefreshEmbeddedWalletAssetBalanceRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ refreshEmbeddedWalletAssetBalance(requestParameters: EmbeddedWalletsApiRefreshEmbeddedWalletAssetBalanceRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.refreshEmbeddedWalletAssetBalance(requestParameters.walletId, requestParameters.accountId, requestParameters.assetId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Update the enabled/disabled status of a specific device for a Non Custodial Wallet * @summary Update device status * @param {EmbeddedWalletsApiUpdateEmbeddedWalletDeviceStatusRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateEmbeddedWalletDeviceStatus(requestParameters: EmbeddedWalletsApiUpdateEmbeddedWalletDeviceStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateEmbeddedWalletDeviceStatus(requestParameters.enableDevice, requestParameters.walletId, requestParameters.deviceId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Update the enabled/disabled status of a specific Non Custodial Wallet * @summary Update wallet status * @param {EmbeddedWalletsApiUpdateEmbeddedWalletStatusRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateEmbeddedWalletStatus(requestParameters: EmbeddedWalletsApiUpdateEmbeddedWalletStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateEmbeddedWalletStatus(requestParameters.enableWallet, requestParameters.walletId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for addEmbeddedWalletAsset operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiAddEmbeddedWalletAssetRequest */ export interface EmbeddedWalletsApiAddEmbeddedWalletAssetRequest { /** * Wallet Id * @type {string} * @memberof EmbeddedWalletsApiAddEmbeddedWalletAsset */ readonly walletId: string /** * The ID of the account * @type {string} * @memberof EmbeddedWalletsApiAddEmbeddedWalletAsset */ readonly accountId: string /** * The ID of the asset * @type {string} * @memberof EmbeddedWalletsApiAddEmbeddedWalletAsset */ 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 EmbeddedWalletsApiAddEmbeddedWalletAsset */ readonly idempotencyKey?: string } /** * Request parameters for assignEmbeddedWallet operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiAssignEmbeddedWalletRequest */ export interface EmbeddedWalletsApiAssignEmbeddedWalletRequest { /** * Wallet Id * @type {string} * @memberof EmbeddedWalletsApiAssignEmbeddedWallet */ readonly walletId: 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 EmbeddedWalletsApiAssignEmbeddedWallet */ readonly idempotencyKey?: string } /** * Request parameters for createEmbeddedWallet operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiCreateEmbeddedWalletRequest */ export interface EmbeddedWalletsApiCreateEmbeddedWalletRequest { /** * 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 EmbeddedWalletsApiCreateEmbeddedWallet */ readonly idempotencyKey?: string } /** * Request parameters for createEmbeddedWalletAccount operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiCreateEmbeddedWalletAccountRequest */ export interface EmbeddedWalletsApiCreateEmbeddedWalletAccountRequest { /** * Wallet Id * @type {string} * @memberof EmbeddedWalletsApiCreateEmbeddedWalletAccount */ readonly walletId: 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 EmbeddedWalletsApiCreateEmbeddedWalletAccount */ readonly idempotencyKey?: string } /** * Request parameters for getEmbeddedWallet operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiGetEmbeddedWalletRequest */ export interface EmbeddedWalletsApiGetEmbeddedWalletRequest { /** * Wallet Id * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWallet */ readonly walletId: string } /** * Request parameters for getEmbeddedWalletAccount operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiGetEmbeddedWalletAccountRequest */ export interface EmbeddedWalletsApiGetEmbeddedWalletAccountRequest { /** * WalletId * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAccount */ readonly walletId: string /** * The ID of the account * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAccount */ readonly accountId: string } /** * Request parameters for getEmbeddedWalletAddresses operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiGetEmbeddedWalletAddressesRequest */ export interface EmbeddedWalletsApiGetEmbeddedWalletAddressesRequest { /** * Wallet Id * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAddresses */ readonly walletId: string /** * The ID of the account * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAddresses */ readonly accountId: string /** * The ID of the asset * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAddresses */ readonly assetId: string /** * Cursor to the next page * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAddresses */ readonly pageCursor?: string /** * Items per page * @type {number} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAddresses */ readonly pageSize?: number /** * Sort by address * @type {'address' | 'createdAt'} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAddresses */ readonly sort?: GetEmbeddedWalletAddressesSortEnum /** * Is the order ascending or descending * @type {'DESC' | 'ASC'} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAddresses */ readonly order?: GetEmbeddedWalletAddressesOrderEnum /** * Enabled * @type {boolean} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAddresses */ readonly enabled?: boolean } /** * Request parameters for getEmbeddedWalletAsset operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiGetEmbeddedWalletAssetRequest */ export interface EmbeddedWalletsApiGetEmbeddedWalletAssetRequest { /** * Wallet Id * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAsset */ readonly walletId: string /** * The ID of the account * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAsset */ readonly accountId: string /** * The ID of the asset * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAsset */ readonly assetId: string } /** * Request parameters for getEmbeddedWalletAssetBalance operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiGetEmbeddedWalletAssetBalanceRequest */ export interface EmbeddedWalletsApiGetEmbeddedWalletAssetBalanceRequest { /** * Wallet Id * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAssetBalance */ readonly walletId: string /** * The ID of the account * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAssetBalance */ readonly accountId: string /** * The ID of the asset * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAssetBalance */ readonly assetId: string } /** * Request parameters for getEmbeddedWalletAssets operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiGetEmbeddedWalletAssetsRequest */ export interface EmbeddedWalletsApiGetEmbeddedWalletAssetsRequest { /** * Wallet Id * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAssets */ readonly walletId: string /** * The ID of the account * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAssets */ readonly accountId: string /** * Sort by fields * @type {Array<'assetId' | 'createdAt'>} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAssets */ readonly sort?: Array /** * Cursor to the next page * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAssets */ readonly pageCursor?: string /** * Amount of results to return in the next page * @type {number} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAssets */ readonly pageSize?: number /** * Is the order ascending or descending * @type {'ASC' | 'DESC'} * @memberof EmbeddedWalletsApiGetEmbeddedWalletAssets */ readonly order?: GetEmbeddedWalletAssetsOrderEnum } /** * Request parameters for getEmbeddedWalletDevice operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiGetEmbeddedWalletDeviceRequest */ export interface EmbeddedWalletsApiGetEmbeddedWalletDeviceRequest { /** * Wallet Id * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletDevice */ readonly walletId: string /** * Device Id * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletDevice */ readonly deviceId: string } /** * Request parameters for getEmbeddedWalletDeviceSetupState operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiGetEmbeddedWalletDeviceSetupStateRequest */ export interface EmbeddedWalletsApiGetEmbeddedWalletDeviceSetupStateRequest { /** * Wallet Id * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletDeviceSetupState */ readonly walletId: string /** * Device Id * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletDeviceSetupState */ readonly deviceId: string } /** * Request parameters for getEmbeddedWalletDevicesPaginated operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiGetEmbeddedWalletDevicesPaginatedRequest */ export interface EmbeddedWalletsApiGetEmbeddedWalletDevicesPaginatedRequest { /** * Wallet Id * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletDevicesPaginated */ readonly walletId: string /** * Sort by fields * @type {Array<'createdAt'>} * @memberof EmbeddedWalletsApiGetEmbeddedWalletDevicesPaginated */ readonly sort?: Array /** * Cursor to the next page * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletDevicesPaginated */ readonly pageCursor?: string /** * Amount of results to return in the next page * @type {number} * @memberof EmbeddedWalletsApiGetEmbeddedWalletDevicesPaginated */ readonly pageSize?: number /** * Is the order ascending or descending * @type {'ASC' | 'DESC'} * @memberof EmbeddedWalletsApiGetEmbeddedWalletDevicesPaginated */ readonly order?: GetEmbeddedWalletDevicesPaginatedOrderEnum } /** * Request parameters for getEmbeddedWalletLatestBackup operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiGetEmbeddedWalletLatestBackupRequest */ export interface EmbeddedWalletsApiGetEmbeddedWalletLatestBackupRequest { /** * Wallet Id * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletLatestBackup */ readonly walletId: string } /** * Request parameters for getEmbeddedWalletPublicKeyInfoForAddress operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiGetEmbeddedWalletPublicKeyInfoForAddressRequest */ export interface EmbeddedWalletsApiGetEmbeddedWalletPublicKeyInfoForAddressRequest { /** * Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletPublicKeyInfoForAddress */ readonly xEndUserWalletId: string /** * The ID of the Non-Custodial wallet * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletPublicKeyInfoForAddress */ readonly walletId: string /** * The ID of the account * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletPublicKeyInfoForAddress */ readonly accountId: string /** * The ID of the asset * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletPublicKeyInfoForAddress */ readonly assetId: string /** * BIP44 derivation path - change value * @type {number} * @memberof EmbeddedWalletsApiGetEmbeddedWalletPublicKeyInfoForAddress */ readonly change: number /** * BIP44 derivation path - index value * @type {number} * @memberof EmbeddedWalletsApiGetEmbeddedWalletPublicKeyInfoForAddress */ readonly addressIndex: number /** * Compressed/Uncompressed public key format * @type {boolean} * @memberof EmbeddedWalletsApiGetEmbeddedWalletPublicKeyInfoForAddress */ readonly compressed?: boolean } /** * Request parameters for getEmbeddedWalletSetupStatus operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiGetEmbeddedWalletSetupStatusRequest */ export interface EmbeddedWalletsApiGetEmbeddedWalletSetupStatusRequest { /** * Wallet Id * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletSetupStatus */ readonly walletId: string } /** * Request parameters for getEmbeddedWalletSupportedAssets operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiGetEmbeddedWalletSupportedAssetsRequest */ export interface EmbeddedWalletsApiGetEmbeddedWalletSupportedAssetsRequest { /** * Next page cursor to fetch * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWalletSupportedAssets */ readonly pageCursor?: string /** * Items per page * @type {number} * @memberof EmbeddedWalletsApiGetEmbeddedWalletSupportedAssets */ readonly pageSize?: number /** * Only base assets * @type {boolean} * @memberof EmbeddedWalletsApiGetEmbeddedWalletSupportedAssets */ readonly onlyBaseAssets?: boolean } /** * Request parameters for getEmbeddedWallets operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiGetEmbeddedWalletsRequest */ export interface EmbeddedWalletsApiGetEmbeddedWalletsRequest { /** * Next page cursor to fetch * @type {string} * @memberof EmbeddedWalletsApiGetEmbeddedWallets */ readonly pageCursor?: string /** * Items per page * @type {number} * @memberof EmbeddedWalletsApiGetEmbeddedWallets */ readonly pageSize?: number /** * Field(s) to use for sorting * @type {'createdAt'} * @memberof EmbeddedWalletsApiGetEmbeddedWallets */ readonly sort?: GetEmbeddedWalletsSortEnum /** * Is the order ascending or descending * @type {'ASC' | 'DESC'} * @memberof EmbeddedWalletsApiGetEmbeddedWallets */ readonly order?: GetEmbeddedWalletsOrderEnum /** * Enabled Wallets * @type {boolean} * @memberof EmbeddedWalletsApiGetEmbeddedWallets */ readonly enabled?: boolean } /** * Request parameters for getPublicKeyInfoNcw operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiGetPublicKeyInfoNcwRequest */ export interface EmbeddedWalletsApiGetPublicKeyInfoNcwRequest { /** * Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. * @type {string} * @memberof EmbeddedWalletsApiGetPublicKeyInfoNcw */ readonly xEndUserWalletId: string /** * The ID of the Non-Custodial wallet * @type {string} * @memberof EmbeddedWalletsApiGetPublicKeyInfoNcw */ readonly walletId: string /** * An array of integers (passed as JSON stringified array) representing the full BIP44 derivation path of the requested public key. The first element must always be 44. * @type {string} * @memberof EmbeddedWalletsApiGetPublicKeyInfoNcw */ readonly derivationPath: string /** * Elliptic Curve * @type {'MPC_ECDSA_SECP256K1' | 'MPC_EDDSA_ED25519'} * @memberof EmbeddedWalletsApiGetPublicKeyInfoNcw */ readonly algorithm: GetPublicKeyInfoNcwAlgorithmEnum /** * Compressed/Uncompressed public key format * @type {boolean} * @memberof EmbeddedWalletsApiGetPublicKeyInfoNcw */ readonly compressed?: boolean } /** * Request parameters for refreshEmbeddedWalletAssetBalance operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiRefreshEmbeddedWalletAssetBalanceRequest */ export interface EmbeddedWalletsApiRefreshEmbeddedWalletAssetBalanceRequest { /** * Wallet Id * @type {string} * @memberof EmbeddedWalletsApiRefreshEmbeddedWalletAssetBalance */ readonly walletId: string /** * The ID of the account * @type {string} * @memberof EmbeddedWalletsApiRefreshEmbeddedWalletAssetBalance */ readonly accountId: string /** * The ID of the asset * @type {string} * @memberof EmbeddedWalletsApiRefreshEmbeddedWalletAssetBalance */ 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 EmbeddedWalletsApiRefreshEmbeddedWalletAssetBalance */ readonly idempotencyKey?: string } /** * Request parameters for updateEmbeddedWalletDeviceStatus operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiUpdateEmbeddedWalletDeviceStatusRequest */ export interface EmbeddedWalletsApiUpdateEmbeddedWalletDeviceStatusRequest { /** * * @type {EnableDevice} * @memberof EmbeddedWalletsApiUpdateEmbeddedWalletDeviceStatus */ readonly enableDevice: EnableDevice /** * Wallet Id * @type {string} * @memberof EmbeddedWalletsApiUpdateEmbeddedWalletDeviceStatus */ readonly walletId: string /** * Device Id * @type {string} * @memberof EmbeddedWalletsApiUpdateEmbeddedWalletDeviceStatus */ readonly deviceId: 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 EmbeddedWalletsApiUpdateEmbeddedWalletDeviceStatus */ readonly idempotencyKey?: string } /** * Request parameters for updateEmbeddedWalletStatus operation in EmbeddedWalletsApi. * @export * @interface EmbeddedWalletsApiUpdateEmbeddedWalletStatusRequest */ export interface EmbeddedWalletsApiUpdateEmbeddedWalletStatusRequest { /** * * @type {EnableWallet} * @memberof EmbeddedWalletsApiUpdateEmbeddedWalletStatus */ readonly enableWallet: EnableWallet /** * Wallet Id * @type {string} * @memberof EmbeddedWalletsApiUpdateEmbeddedWalletStatus */ readonly walletId: 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 EmbeddedWalletsApiUpdateEmbeddedWalletStatus */ readonly idempotencyKey?: string } /** * EmbeddedWalletsApi - object-oriented interface * @export * @class EmbeddedWalletsApi * @extends {BaseAPI} */ export class EmbeddedWalletsApi extends BaseAPI { /** * Get the addresses of a specific asset, under a specific account, under a specific Non Custodial Wallet * @summary Add asset to account * @param {EmbeddedWalletsApiAddEmbeddedWalletAssetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public addEmbeddedWalletAsset(requestParameters: EmbeddedWalletsApiAddEmbeddedWalletAssetRequest) { return EmbeddedWalletsApiFp(this.configuration).addEmbeddedWalletAsset(requestParameters.walletId, requestParameters.accountId, requestParameters.assetId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Assign a specific Non Custodial Wallet to a user * @summary Assign a wallet * @param {EmbeddedWalletsApiAssignEmbeddedWalletRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public assignEmbeddedWallet(requestParameters: EmbeddedWalletsApiAssignEmbeddedWalletRequest) { return EmbeddedWalletsApiFp(this.configuration).assignEmbeddedWallet(requestParameters.walletId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Create new Non Custodial Wallet * @summary Create a new wallet * @param {EmbeddedWalletsApiCreateEmbeddedWalletRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public createEmbeddedWallet(requestParameters: EmbeddedWalletsApiCreateEmbeddedWalletRequest = {}) { return EmbeddedWalletsApiFp(this.configuration).createEmbeddedWallet(requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Create a new account under a specific Non Custodial Wallet * @summary Create a new account * @param {EmbeddedWalletsApiCreateEmbeddedWalletAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public createEmbeddedWalletAccount(requestParameters: EmbeddedWalletsApiCreateEmbeddedWalletAccountRequest) { return EmbeddedWalletsApiFp(this.configuration).createEmbeddedWalletAccount(requestParameters.walletId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get a wallet * @summary Get a wallet * @param {EmbeddedWalletsApiGetEmbeddedWalletRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public getEmbeddedWallet(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletRequest) { return EmbeddedWalletsApiFp(this.configuration).getEmbeddedWallet(requestParameters.walletId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get a specific account under a specific Non Custodial Wallet * @summary Get a account * @param {EmbeddedWalletsApiGetEmbeddedWalletAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public getEmbeddedWalletAccount(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletAccountRequest) { return EmbeddedWalletsApiFp(this.configuration).getEmbeddedWalletAccount(requestParameters.walletId, requestParameters.accountId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get the addresses of a specific asset, under a specific account, under a specific Non Custodial Wallet * @summary Retrieve asset addresses * @param {EmbeddedWalletsApiGetEmbeddedWalletAddressesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public getEmbeddedWalletAddresses(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletAddressesRequest) { return EmbeddedWalletsApiFp(this.configuration).getEmbeddedWalletAddresses(requestParameters.walletId, requestParameters.accountId, requestParameters.assetId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sort, requestParameters.order, requestParameters.enabled).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get asset under a specific account, under a specific Non Custodial Wallet * @summary Retrieve asset * @param {EmbeddedWalletsApiGetEmbeddedWalletAssetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public getEmbeddedWalletAsset(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletAssetRequest) { return EmbeddedWalletsApiFp(this.configuration).getEmbeddedWalletAsset(requestParameters.walletId, requestParameters.accountId, requestParameters.assetId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get balance for specific asset, under a specific account * @summary Retrieve asset balance * @param {EmbeddedWalletsApiGetEmbeddedWalletAssetBalanceRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public getEmbeddedWalletAssetBalance(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletAssetBalanceRequest) { return EmbeddedWalletsApiFp(this.configuration).getEmbeddedWalletAssetBalance(requestParameters.walletId, requestParameters.accountId, requestParameters.assetId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Retrieve assets for a specific account under a specific Non Custodial Wallet * @summary Retrieve assets * @param {EmbeddedWalletsApiGetEmbeddedWalletAssetsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public getEmbeddedWalletAssets(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletAssetsRequest) { return EmbeddedWalletsApiFp(this.configuration).getEmbeddedWalletAssets(requestParameters.walletId, requestParameters.accountId, requestParameters.sort, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.order).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get specific device for a specific s Wallet * @summary Get Embedded Wallet Device * @param {EmbeddedWalletsApiGetEmbeddedWalletDeviceRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public getEmbeddedWalletDevice(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletDeviceRequest) { return EmbeddedWalletsApiFp(this.configuration).getEmbeddedWalletDevice(requestParameters.walletId, requestParameters.deviceId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get the state of the specific device setup key under a specific Non Custodial Wallet * @summary Get device key setup state * @param {EmbeddedWalletsApiGetEmbeddedWalletDeviceSetupStateRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public getEmbeddedWalletDeviceSetupState(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletDeviceSetupStateRequest) { return EmbeddedWalletsApiFp(this.configuration).getEmbeddedWalletDeviceSetupState(requestParameters.walletId, requestParameters.deviceId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get a paginated list of registered devices for a specific Non Custodial Wallet * @summary Get registered devices - paginated * @param {EmbeddedWalletsApiGetEmbeddedWalletDevicesPaginatedRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public getEmbeddedWalletDevicesPaginated(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletDevicesPaginatedRequest) { return EmbeddedWalletsApiFp(this.configuration).getEmbeddedWalletDevicesPaginated(requestParameters.walletId, requestParameters.sort, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.order).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get wallet Latest Backup details, including the deviceId, and backup time * @summary Get wallet Latest Backup details * @param {EmbeddedWalletsApiGetEmbeddedWalletLatestBackupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public getEmbeddedWalletLatestBackup(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletLatestBackupRequest) { return EmbeddedWalletsApiFp(this.configuration).getEmbeddedWalletLatestBackup(requestParameters.walletId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Gets the public key of an asset associated with a specific account within a Non-Custodial Wallet * @summary Get the public key of an asset * @param {EmbeddedWalletsApiGetEmbeddedWalletPublicKeyInfoForAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public getEmbeddedWalletPublicKeyInfoForAddress(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletPublicKeyInfoForAddressRequest) { return EmbeddedWalletsApiFp(this.configuration).getEmbeddedWalletPublicKeyInfoForAddress(requestParameters.xEndUserWalletId, requestParameters.walletId, requestParameters.accountId, requestParameters.assetId, requestParameters.change, requestParameters.addressIndex, requestParameters.compressed).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get the key setup state for a specific Non Custodial Wallet, including required algorithms and device setup status * @summary Get wallet key setup state * @param {EmbeddedWalletsApiGetEmbeddedWalletSetupStatusRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public getEmbeddedWalletSetupStatus(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletSetupStatusRequest) { return EmbeddedWalletsApiFp(this.configuration).getEmbeddedWalletSetupStatus(requestParameters.walletId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get all the available supported assets for the Non-Custodial Wallet * @summary Retrieve supported assets * @param {EmbeddedWalletsApiGetEmbeddedWalletSupportedAssetsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public getEmbeddedWalletSupportedAssets(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletSupportedAssetsRequest = {}) { return EmbeddedWalletsApiFp(this.configuration).getEmbeddedWalletSupportedAssets(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.onlyBaseAssets).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get all Non Custodial Wallets * @summary List wallets * @param {EmbeddedWalletsApiGetEmbeddedWalletsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public getEmbeddedWallets(requestParameters: EmbeddedWalletsApiGetEmbeddedWalletsRequest = {}) { return EmbeddedWalletsApiFp(this.configuration).getEmbeddedWallets(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sort, requestParameters.order, requestParameters.enabled).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Gets the public key information based on derivation path and signing algorithm within a Non-Custodial Wallet * @summary Get the public key for a derivation path * @param {EmbeddedWalletsApiGetPublicKeyInfoNcwRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public getPublicKeyInfoNcw(requestParameters: EmbeddedWalletsApiGetPublicKeyInfoNcwRequest) { return EmbeddedWalletsApiFp(this.configuration).getPublicKeyInfoNcw(requestParameters.xEndUserWalletId, requestParameters.walletId, requestParameters.derivationPath, requestParameters.algorithm, requestParameters.compressed).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Refresh the balance of an asset in a specific account * @summary Refresh asset balance * @param {EmbeddedWalletsApiRefreshEmbeddedWalletAssetBalanceRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public refreshEmbeddedWalletAssetBalance(requestParameters: EmbeddedWalletsApiRefreshEmbeddedWalletAssetBalanceRequest) { return EmbeddedWalletsApiFp(this.configuration).refreshEmbeddedWalletAssetBalance(requestParameters.walletId, requestParameters.accountId, requestParameters.assetId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Update the enabled/disabled status of a specific device for a Non Custodial Wallet * @summary Update device status * @param {EmbeddedWalletsApiUpdateEmbeddedWalletDeviceStatusRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public updateEmbeddedWalletDeviceStatus(requestParameters: EmbeddedWalletsApiUpdateEmbeddedWalletDeviceStatusRequest) { return EmbeddedWalletsApiFp(this.configuration).updateEmbeddedWalletDeviceStatus(requestParameters.enableDevice, requestParameters.walletId, requestParameters.deviceId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Update the enabled/disabled status of a specific Non Custodial Wallet * @summary Update wallet status * @param {EmbeddedWalletsApiUpdateEmbeddedWalletStatusRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmbeddedWalletsApi */ public updateEmbeddedWalletStatus(requestParameters: EmbeddedWalletsApiUpdateEmbeddedWalletStatusRequest) { return EmbeddedWalletsApiFp(this.configuration).updateEmbeddedWalletStatus(requestParameters.enableWallet, requestParameters.walletId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } } /** * @export */ export const GetEmbeddedWalletAddressesSortEnum = { Address: 'address', CreatedAt: 'createdAt' } as const; export type GetEmbeddedWalletAddressesSortEnum = typeof GetEmbeddedWalletAddressesSortEnum[keyof typeof GetEmbeddedWalletAddressesSortEnum]; /** * @export */ export const GetEmbeddedWalletAddressesOrderEnum = { Desc: 'DESC', Asc: 'ASC' } as const; export type GetEmbeddedWalletAddressesOrderEnum = typeof GetEmbeddedWalletAddressesOrderEnum[keyof typeof GetEmbeddedWalletAddressesOrderEnum]; /** * @export */ export const GetEmbeddedWalletAssetsSortEnum = { AssetId: 'assetId', CreatedAt: 'createdAt' } as const; export type GetEmbeddedWalletAssetsSortEnum = typeof GetEmbeddedWalletAssetsSortEnum[keyof typeof GetEmbeddedWalletAssetsSortEnum]; /** * @export */ export const GetEmbeddedWalletAssetsOrderEnum = { Asc: 'ASC', Desc: 'DESC' } as const; export type GetEmbeddedWalletAssetsOrderEnum = typeof GetEmbeddedWalletAssetsOrderEnum[keyof typeof GetEmbeddedWalletAssetsOrderEnum]; /** * @export */ export const GetEmbeddedWalletDevicesPaginatedSortEnum = { CreatedAt: 'createdAt' } as const; export type GetEmbeddedWalletDevicesPaginatedSortEnum = typeof GetEmbeddedWalletDevicesPaginatedSortEnum[keyof typeof GetEmbeddedWalletDevicesPaginatedSortEnum]; /** * @export */ export const GetEmbeddedWalletDevicesPaginatedOrderEnum = { Asc: 'ASC', Desc: 'DESC' } as const; export type GetEmbeddedWalletDevicesPaginatedOrderEnum = typeof GetEmbeddedWalletDevicesPaginatedOrderEnum[keyof typeof GetEmbeddedWalletDevicesPaginatedOrderEnum]; /** * @export */ export const GetEmbeddedWalletsSortEnum = { CreatedAt: 'createdAt' } as const; export type GetEmbeddedWalletsSortEnum = typeof GetEmbeddedWalletsSortEnum[keyof typeof GetEmbeddedWalletsSortEnum]; /** * @export */ export const GetEmbeddedWalletsOrderEnum = { Asc: 'ASC', Desc: 'DESC' } as const; export type GetEmbeddedWalletsOrderEnum = typeof GetEmbeddedWalletsOrderEnum[keyof typeof GetEmbeddedWalletsOrderEnum]; /** * @export */ export const GetPublicKeyInfoNcwAlgorithmEnum = { EcdsaSecp256K1: 'MPC_ECDSA_SECP256K1', EddsaEd25519: 'MPC_EDDSA_ED25519' } as const; export type GetPublicKeyInfoNcwAlgorithmEnum = typeof GetPublicKeyInfoNcwAlgorithmEnum[keyof typeof GetPublicKeyInfoNcwAlgorithmEnum];