/** * 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 { ConfigurationOptions } from './clientConfiguration'; import { Configuration } from '../configuration'; import { ApiUserApi, ApprovalsBetaApi, AuditLogsApi, BlockchainLinkBetaApi, BlockchainsAssetsApi, CantonBetaApi, ComplianceApi, ComplianceOrchestratorBetaApi, ComplianceScreeningConfigurationApi, ConnectedAccountsApi, ConsoleUserApi, ContactsApi, ContractInteractionsApi, ContractTemplatesApi, ContractsApi, CosignersApi, DeployedContractsApi, EarnApi, EmbeddedWalletsApi, ExchangeAccountsApi, ExternalWalletsApi, FiatAccountsApi, GasStationsApi, GenieBetaApi, InternalWalletsApi, KeyLinkApi, KeysApi, NFTsApi, NetworkConnectionsApi, OTABetaApi, OffExchangesApi, OnchainDataApi, PaymentsPayoutApi, PolicyEditorV2Api, PolicyEditorV2BetaApi, ReportsBetaApi, ResetDeviceApi, SecurityPostureManagementApi, SmartTransferApi, StakingApi, TRLinkApi, TagsApi, TempoBetaApi, TokenizationApi, TradingApi, TransactionsApi, TravelRuleApi, UTXOManagementApi, UserGroupsBetaApi, UsersApi, VaultsApi, Web3ConnectionsApi, WebhooksApi, WebhooksV2Api, WhitelistIpAddressesApi, WorkspaceApi, WorkspaceStatusBetaApi } from '../api'; import { AxiosManager } from "../network/axiosManager"; export class Fireblocks { private readonly config: Configuration; private readonly axiosManager: AxiosManager private _apiUser?: ApiUserApi; private _approvalsBeta?: ApprovalsBetaApi; private _auditLogs?: AuditLogsApi; private _blockchainLinkBeta?: BlockchainLinkBetaApi; private _blockchainsAssets?: BlockchainsAssetsApi; private _cantonBeta?: CantonBetaApi; private _compliance?: ComplianceApi; private _complianceOrchestratorBeta?: ComplianceOrchestratorBetaApi; private _complianceScreeningConfiguration?: ComplianceScreeningConfigurationApi; private _connectedAccounts?: ConnectedAccountsApi; private _consoleUser?: ConsoleUserApi; private _contacts?: ContactsApi; private _contractInteractions?: ContractInteractionsApi; private _contractTemplates?: ContractTemplatesApi; private _contracts?: ContractsApi; private _cosigners?: CosignersApi; private _deployedContracts?: DeployedContractsApi; private _earn?: EarnApi; private _embeddedWallets?: EmbeddedWalletsApi; private _exchangeAccounts?: ExchangeAccountsApi; private _externalWallets?: ExternalWalletsApi; private _fiatAccounts?: FiatAccountsApi; private _gasStations?: GasStationsApi; private _genieBeta?: GenieBetaApi; private _internalWallets?: InternalWalletsApi; private _keyLink?: KeyLinkApi; private _keys?: KeysApi; private _nfts?: NFTsApi; private _networkConnections?: NetworkConnectionsApi; private _otaBeta?: OTABetaApi; private _offExchanges?: OffExchangesApi; private _onchainData?: OnchainDataApi; private _paymentsPayout?: PaymentsPayoutApi; private _policyEditorV2?: PolicyEditorV2Api; private _policyEditorV2Beta?: PolicyEditorV2BetaApi; private _reportsBeta?: ReportsBetaApi; private _resetDevice?: ResetDeviceApi; private _securityPostureManagement?: SecurityPostureManagementApi; private _smartTransfer?: SmartTransferApi; private _staking?: StakingApi; private _trLink?: TRLinkApi; private _tags?: TagsApi; private _tempoBeta?: TempoBetaApi; private _tokenization?: TokenizationApi; private _trading?: TradingApi; private _transactions?: TransactionsApi; private _travelRule?: TravelRuleApi; private _utxoManagement?: UTXOManagementApi; private _userGroupsBeta?: UserGroupsBetaApi; private _users?: UsersApi; private _vaults?: VaultsApi; private _web3Connections?: Web3ConnectionsApi; private _webhooks?: WebhooksApi; private _webhooksV2?: WebhooksV2Api; private _whitelistIpAddresses?: WhitelistIpAddressesApi; private _workspace?: WorkspaceApi; private _workspaceStatusBeta?: WorkspaceStatusBetaApi; constructor(conf: ConfigurationOptions = {}) { let apiKey = conf.apiKey || process.env.FIREBLOCKS_API_KEY; if (!apiKey ) { throw new Error("apiKey is required either in the configuration or as environment variable FIREBLOCKS_API_KEY"); } let secretKey = conf.secretKey || process.env.FIREBLOCKS_SECRET_KEY; if (!secretKey ) { throw new Error("secretKey is required either in the configuration or as environment variable FIREBLOCKS_SECRET_KEY"); } let basePath = conf.basePath || process.env.FIREBLOCKS_BASE_PATH; if (!basePath) { throw new Error("basePath is required either in the configuration or as environment variable FIREBLOCKS_BASE_PATH"); } this.config = new Configuration({ basePath, baseOptions: conf.additionalOptions?.baseOptions }); this.axiosManager = new AxiosManager(apiKey, secretKey, conf?.additionalOptions); } get apiUser(): ApiUserApi { return this._apiUser ?? new ApiUserApi(this.config, undefined, this.axiosManager.axios); } get approvalsBeta(): ApprovalsBetaApi { return this._approvalsBeta ?? new ApprovalsBetaApi(this.config, undefined, this.axiosManager.axios); } get auditLogs(): AuditLogsApi { return this._auditLogs ?? new AuditLogsApi(this.config, undefined, this.axiosManager.axios); } get blockchainLinkBeta(): BlockchainLinkBetaApi { return this._blockchainLinkBeta ?? new BlockchainLinkBetaApi(this.config, undefined, this.axiosManager.axios); } get blockchainsAssets(): BlockchainsAssetsApi { return this._blockchainsAssets ?? new BlockchainsAssetsApi(this.config, undefined, this.axiosManager.axios); } get cantonBeta(): CantonBetaApi { return this._cantonBeta ?? new CantonBetaApi(this.config, undefined, this.axiosManager.axios); } get compliance(): ComplianceApi { return this._compliance ?? new ComplianceApi(this.config, undefined, this.axiosManager.axios); } get complianceOrchestratorBeta(): ComplianceOrchestratorBetaApi { return this._complianceOrchestratorBeta ?? new ComplianceOrchestratorBetaApi(this.config, undefined, this.axiosManager.axios); } get complianceScreeningConfiguration(): ComplianceScreeningConfigurationApi { return this._complianceScreeningConfiguration ?? new ComplianceScreeningConfigurationApi(this.config, undefined, this.axiosManager.axios); } get connectedAccounts(): ConnectedAccountsApi { return this._connectedAccounts ?? new ConnectedAccountsApi(this.config, undefined, this.axiosManager.axios); } get consoleUser(): ConsoleUserApi { return this._consoleUser ?? new ConsoleUserApi(this.config, undefined, this.axiosManager.axios); } get contacts(): ContactsApi { return this._contacts ?? new ContactsApi(this.config, undefined, this.axiosManager.axios); } get contractInteractions(): ContractInteractionsApi { return this._contractInteractions ?? new ContractInteractionsApi(this.config, undefined, this.axiosManager.axios); } get contractTemplates(): ContractTemplatesApi { return this._contractTemplates ?? new ContractTemplatesApi(this.config, undefined, this.axiosManager.axios); } get contracts(): ContractsApi { return this._contracts ?? new ContractsApi(this.config, undefined, this.axiosManager.axios); } get cosigners(): CosignersApi { return this._cosigners ?? new CosignersApi(this.config, undefined, this.axiosManager.axios); } get deployedContracts(): DeployedContractsApi { return this._deployedContracts ?? new DeployedContractsApi(this.config, undefined, this.axiosManager.axios); } get earn(): EarnApi { return this._earn ?? new EarnApi(this.config, undefined, this.axiosManager.axios); } get embeddedWallets(): EmbeddedWalletsApi { return this._embeddedWallets ?? new EmbeddedWalletsApi(this.config, undefined, this.axiosManager.axios); } get exchangeAccounts(): ExchangeAccountsApi { return this._exchangeAccounts ?? new ExchangeAccountsApi(this.config, undefined, this.axiosManager.axios); } get externalWallets(): ExternalWalletsApi { return this._externalWallets ?? new ExternalWalletsApi(this.config, undefined, this.axiosManager.axios); } get fiatAccounts(): FiatAccountsApi { return this._fiatAccounts ?? new FiatAccountsApi(this.config, undefined, this.axiosManager.axios); } get gasStations(): GasStationsApi { return this._gasStations ?? new GasStationsApi(this.config, undefined, this.axiosManager.axios); } get genieBeta(): GenieBetaApi { return this._genieBeta ?? new GenieBetaApi(this.config, undefined, this.axiosManager.axios); } get internalWallets(): InternalWalletsApi { return this._internalWallets ?? new InternalWalletsApi(this.config, undefined, this.axiosManager.axios); } get keyLink(): KeyLinkApi { return this._keyLink ?? new KeyLinkApi(this.config, undefined, this.axiosManager.axios); } get keys(): KeysApi { return this._keys ?? new KeysApi(this.config, undefined, this.axiosManager.axios); } get nfts(): NFTsApi { return this._nfts ?? new NFTsApi(this.config, undefined, this.axiosManager.axios); } get networkConnections(): NetworkConnectionsApi { return this._networkConnections ?? new NetworkConnectionsApi(this.config, undefined, this.axiosManager.axios); } get otaBeta(): OTABetaApi { return this._otaBeta ?? new OTABetaApi(this.config, undefined, this.axiosManager.axios); } get offExchanges(): OffExchangesApi { return this._offExchanges ?? new OffExchangesApi(this.config, undefined, this.axiosManager.axios); } get onchainData(): OnchainDataApi { return this._onchainData ?? new OnchainDataApi(this.config, undefined, this.axiosManager.axios); } get paymentsPayout(): PaymentsPayoutApi { return this._paymentsPayout ?? new PaymentsPayoutApi(this.config, undefined, this.axiosManager.axios); } get policyEditorV2(): PolicyEditorV2Api { return this._policyEditorV2 ?? new PolicyEditorV2Api(this.config, undefined, this.axiosManager.axios); } get policyEditorV2Beta(): PolicyEditorV2BetaApi { return this._policyEditorV2Beta ?? new PolicyEditorV2BetaApi(this.config, undefined, this.axiosManager.axios); } get reportsBeta(): ReportsBetaApi { return this._reportsBeta ?? new ReportsBetaApi(this.config, undefined, this.axiosManager.axios); } get resetDevice(): ResetDeviceApi { return this._resetDevice ?? new ResetDeviceApi(this.config, undefined, this.axiosManager.axios); } get securityPostureManagement(): SecurityPostureManagementApi { return this._securityPostureManagement ?? new SecurityPostureManagementApi(this.config, undefined, this.axiosManager.axios); } get smartTransfer(): SmartTransferApi { return this._smartTransfer ?? new SmartTransferApi(this.config, undefined, this.axiosManager.axios); } get staking(): StakingApi { return this._staking ?? new StakingApi(this.config, undefined, this.axiosManager.axios); } get trLink(): TRLinkApi { return this._trLink ?? new TRLinkApi(this.config, undefined, this.axiosManager.axios); } get tags(): TagsApi { return this._tags ?? new TagsApi(this.config, undefined, this.axiosManager.axios); } get tempoBeta(): TempoBetaApi { return this._tempoBeta ?? new TempoBetaApi(this.config, undefined, this.axiosManager.axios); } get tokenization(): TokenizationApi { return this._tokenization ?? new TokenizationApi(this.config, undefined, this.axiosManager.axios); } get trading(): TradingApi { return this._trading ?? new TradingApi(this.config, undefined, this.axiosManager.axios); } get transactions(): TransactionsApi { return this._transactions ?? new TransactionsApi(this.config, undefined, this.axiosManager.axios); } get travelRule(): TravelRuleApi { return this._travelRule ?? new TravelRuleApi(this.config, undefined, this.axiosManager.axios); } get utxoManagement(): UTXOManagementApi { return this._utxoManagement ?? new UTXOManagementApi(this.config, undefined, this.axiosManager.axios); } get userGroupsBeta(): UserGroupsBetaApi { return this._userGroupsBeta ?? new UserGroupsBetaApi(this.config, undefined, this.axiosManager.axios); } get users(): UsersApi { return this._users ?? new UsersApi(this.config, undefined, this.axiosManager.axios); } get vaults(): VaultsApi { return this._vaults ?? new VaultsApi(this.config, undefined, this.axiosManager.axios); } get web3Connections(): Web3ConnectionsApi { return this._web3Connections ?? new Web3ConnectionsApi(this.config, undefined, this.axiosManager.axios); } get webhooks(): WebhooksApi { return this._webhooks ?? new WebhooksApi(this.config, undefined, this.axiosManager.axios); } get webhooksV2(): WebhooksV2Api { return this._webhooksV2 ?? new WebhooksV2Api(this.config, undefined, this.axiosManager.axios); } get whitelistIpAddresses(): WhitelistIpAddressesApi { return this._whitelistIpAddresses ?? new WhitelistIpAddressesApi(this.config, undefined, this.axiosManager.axios); } get workspace(): WorkspaceApi { return this._workspace ?? new WorkspaceApi(this.config, undefined, this.axiosManager.axios); } get workspaceStatusBeta(): WorkspaceStatusBetaApi { return this._workspaceStatusBeta ?? new WorkspaceStatusBetaApi(this.config, undefined, this.axiosManager.axios); } }