From e9a5780d2a10ef009b627ad92243654b06ffd2dd Mon Sep 17 00:00:00 2001 From: Asaf Shushan Date: Thu, 7 Mar 2024 15:38:01 +0200 Subject: [PATCH] version_3_0_5_beta --- README.md | 131 +- api.ts | 3 +- api/assets-api.ts | 48 +- api/compliance-api.ts | 572 +++ api/compliance-screening-configuration-api.ts | 202 +- api/external-wallets-api.ts | 72 +- api/fiat-accounts-api.ts | 66 +- api/internal-wallets-api.ts | 48 +- ...api-other-api.ts => job-management-api.ts} | 162 +- api/network-connections-api.ts | 210 +- api/policy-editor-beta-api.ts | 54 +- api/smart-transfer-api.ts | 296 +- api/staking-beta-api.ts | 8 +- api/travel-rule-beta-api.ts | 32 +- api/vaults-api.ts | 316 +- client/client.ts | 23 +- client/clientConfiguration.ts | 4 +- docs/apis/AdminQuorumApi.md | 4 +- docs/apis/ApiUserApi.md | 8 +- docs/apis/AssetsApi.md | 24 +- docs/apis/AuditLogsApi.md | 8 +- docs/apis/BlockchainsAssetsApi.md | 6 +- docs/apis/ComplianceApi.md | 405 ++ .../ComplianceScreeningConfigurationApi.md | 150 +- docs/apis/ConsoleUserApi.md | 8 +- docs/apis/ContractsApi.md | 38 +- docs/apis/ExchangeAccountsApi.md | 32 +- docs/apis/ExternalWalletsApi.md | 66 +- docs/apis/FiatAccountsApi.md | 44 +- docs/apis/GasStationsApi.md | 20 +- docs/apis/InternalWalletsApi.md | 56 +- ...OpenapiOtherApi.md => JobManagementApi.md} | 68 +- docs/apis/NFTsApi.md | 40 +- docs/apis/NetworkConnectionsApi.md | 166 +- docs/apis/OTABetaApi.md | 8 +- docs/apis/OffExchangesApi.md | 30 +- docs/apis/PaymentsPayoutApi.md | 14 +- docs/apis/PolicyEditorBetaApi.md | 46 +- docs/apis/ResetDeviceApi.md | 4 +- docs/apis/SmartTransferApi.md | 240 +- docs/apis/StakingBetaApi.md | 44 +- docs/apis/TransactionsApi.md | 80 +- docs/apis/TravelRuleBetaApi.md | 32 +- docs/apis/UserGroupsBetaApi.md | 28 +- docs/apis/UsersApi.md | 6 +- docs/apis/VaultsApi.md | 237 +- docs/apis/Web3ConnectionsApi.md | 16 +- docs/apis/WebhooksApi.md | 10 +- docs/apis/WhitelistIpAddressesApi.md | 4 +- docs/apis/WorkspaceApi.md | 4 +- docs/apis/WorkspaceStatusBetaApi.md | 4 +- docs/models/AmlRegistrationResult.md | 14 + docs/models/ComplianceResult.md | 69 + docs/models/ComplianceScreeningResult.md | 31 + docs/models/CreateAddressRequest.md | 13 + docs/models/CreateAssetsBulkRequest.md | 14 + docs/models/CreateAssetsRequest.md | 12 + docs/models/CreateWalletRequest.md | 13 + docs/models/DestinationTransferPeerPath.md | 31 +- .../DestinationTransferPeerPathResponse.md | 2 +- docs/models/ExecuteActionResponse.md | 12 + docs/models/Funds.md | 12 + docs/models/PolicyRules.md | 12 + docs/models/ScreeningConfigurationsRequest.md | 14 + docs/models/ScreeningPolicyResponse.md | 16 + ...eningProviderRulesConfigurationResponse.md | 60 + .../ScreeningUpdateConfigurationsRequest.md | 13 + docs/models/SetAutoFuelRequest.md | 12 + .../SetCustomerRefIdForAddressRequest.md | 12 + docs/models/SetCustomerRefIdRequest.md | 12 + .../SetNetworkIdDiscoverabilityRequest.md | 12 + docs/models/SetNetworkIdResponse.md | 12 + .../SetNetworkIdRoutingPolicyRequest.md | 12 + docs/models/SmartTransferCreateTicket.md | 25 + docs/models/SmartTransferCreateTicketTerm.md | 15 + docs/models/SmartTransferFundTerm.md | 18 + docs/models/SmartTransferManuallyFundTerm.md | 12 + .../SmartTransferSetTicketExpiration.md | 12 + .../SmartTransferSetTicketExternalId.md | 12 + docs/models/SmartTransferSetUserGroups.md | 12 + docs/models/SmartTransferSubmitTicket.md | 12 + docs/models/SmartTransferTicket.md | 70 + .../SmartTransferTicketFilteredResponse.md | 14 + docs/models/SmartTransferTicketResponse.md | 13 + docs/models/SmartTransferTicketTerm.md | 78 + .../models/SmartTransferTicketTermResponse.md | 13 + docs/models/SmartTransferUpdateTicketTerm.md | 15 + docs/models/SmartTransferUserGroups.md | 12 + .../models/SmartTransferUserGroupsResponse.md | 13 + docs/models/SourceTransferPeerPathResponse.md | 2 +- docs/models/ThirdPartyRouting.md | 13 + docs/models/TransactionFee.md | 6 +- docs/models/TransactionResponse.md | 5 +- docs/models/TransferPeerPath.md | 31 +- docs/models/TransferPeerPathType.md | 32 + .../TravelRuleCreateTransactionRequest.md | 4 +- docs/models/TravelRuleOwnershipProof.md | 8 +- .../TravelRuleTransactionBlockchainInfo.md | 6 +- ...ravelRuleValidateFullTransactionRequest.md | 10 +- error/fireblocksError.ts | 11 +- index.ts | 2 +- models/aml-registration-result.ts | 42 + models/block-info.ts | 2 +- models/compliance-result.ts | 90 + models/compliance-screening-result.ts | 65 + models/create-address-request.ts | 36 + models/create-assets-bulk-request.ts | 42 + models/create-assets-request.ts | 30 + models/create-wallet-request.ts | 36 + ...destination-transfer-peer-path-response.ts | 39 +- models/destination-transfer-peer-path.ts | 3 + models/execute-action-response.ts | 26 + models/funds.ts | 30 + models/index.ts | 82 +- models/policy-rules.ts | 33 + models/screening-configurations-request.ts | 42 + models/screening-policy-response.ts | 57 + ...g-provider-rules-configuration-response.ts | 88 + ...screening-update-configurations-request.ts | 36 + models/set-auto-fuel-request.ts | 30 + ...set-customer-ref-id-for-address-request.ts | 30 + models/set-customer-ref-id-request.ts | 30 + .../set-network-id-discoverability-request.ts | 30 + models/set-network-id-response.ts | 30 + .../set-network-id-routing-policy-request.ts | 33 + models/smart-transfer-create-ticket-term.ts | 48 + models/smart-transfer-create-ticket.ts | 76 + models/smart-transfer-fund-term.ts | 66 + models/smart-transfer-manually-fund-term.ts | 30 + .../smart-transfer-set-ticket-expiration.ts | 30 + .../smart-transfer-set-ticket-external-id.ts | 30 + models/smart-transfer-set-user-groups.ts | 30 + models/smart-transfer-submit-ticket.ts | 30 + ...smart-transfer-ticket-filtered-response.ts | 45 + models/smart-transfer-ticket-response.ts | 39 + models/smart-transfer-ticket-term-response.ts | 39 + models/smart-transfer-ticket-term.ts | 145 + models/smart-transfer-ticket.ts | 173 + models/smart-transfer-update-ticket-term.ts | 48 + models/smart-transfer-user-groups-response.ts | 39 + models/smart-transfer-user-groups.ts | 30 + models/source-transfer-peer-path-response.ts | 39 +- models/third-party-routing.ts | 36 + models/transaction-fee.ts | 12 +- models/transaction-response.ts | 14 +- models/transfer-peer-path-type.ts | 41 + models/transfer-peer-path.ts | 23 +- .../travel-rule-create-transaction-request.ts | 24 +- models/travel-rule-ownership-proof.ts | 28 +- ...travel-rule-transaction-blockchain-info.ts | 6 +- ...-rule-validate-full-transaction-request.ts | 52 +- network/axiosManager.ts | 2 +- package-lock.json | 4074 ++++++++++++++++- package.json | 38 +- tests/api.spec.ts | 128 + tests/axiosManager.spec.ts | 130 + tests/bearerTokenProvider.spec.ts | 77 + tests/client.spec.ts | 345 ++ tests/fireblocksError.spec.ts | 93 + tests/fireblocksResponse.spec.ts | 52 + 160 files changed, 10001 insertions(+), 2156 deletions(-) create mode 100644 api/compliance-api.ts rename api/{fireblocks-public-openapi-other-api.ts => job-management-api.ts} (76%) create mode 100644 docs/apis/ComplianceApi.md rename docs/apis/{FireblocksPublicOpenapiOtherApi.md => JobManagementApi.md} (78%) create mode 100644 docs/models/AmlRegistrationResult.md create mode 100644 docs/models/ComplianceResult.md create mode 100644 docs/models/ComplianceScreeningResult.md create mode 100644 docs/models/CreateAddressRequest.md create mode 100644 docs/models/CreateAssetsBulkRequest.md create mode 100644 docs/models/CreateAssetsRequest.md create mode 100644 docs/models/CreateWalletRequest.md create mode 100644 docs/models/ExecuteActionResponse.md create mode 100644 docs/models/Funds.md create mode 100644 docs/models/PolicyRules.md create mode 100644 docs/models/ScreeningConfigurationsRequest.md create mode 100644 docs/models/ScreeningPolicyResponse.md create mode 100644 docs/models/ScreeningProviderRulesConfigurationResponse.md create mode 100644 docs/models/ScreeningUpdateConfigurationsRequest.md create mode 100644 docs/models/SetAutoFuelRequest.md create mode 100644 docs/models/SetCustomerRefIdForAddressRequest.md create mode 100644 docs/models/SetCustomerRefIdRequest.md create mode 100644 docs/models/SetNetworkIdDiscoverabilityRequest.md create mode 100644 docs/models/SetNetworkIdResponse.md create mode 100644 docs/models/SetNetworkIdRoutingPolicyRequest.md create mode 100644 docs/models/SmartTransferCreateTicket.md create mode 100644 docs/models/SmartTransferCreateTicketTerm.md create mode 100644 docs/models/SmartTransferFundTerm.md create mode 100644 docs/models/SmartTransferManuallyFundTerm.md create mode 100644 docs/models/SmartTransferSetTicketExpiration.md create mode 100644 docs/models/SmartTransferSetTicketExternalId.md create mode 100644 docs/models/SmartTransferSetUserGroups.md create mode 100644 docs/models/SmartTransferSubmitTicket.md create mode 100644 docs/models/SmartTransferTicket.md create mode 100644 docs/models/SmartTransferTicketFilteredResponse.md create mode 100644 docs/models/SmartTransferTicketResponse.md create mode 100644 docs/models/SmartTransferTicketTerm.md create mode 100644 docs/models/SmartTransferTicketTermResponse.md create mode 100644 docs/models/SmartTransferUpdateTicketTerm.md create mode 100644 docs/models/SmartTransferUserGroups.md create mode 100644 docs/models/SmartTransferUserGroupsResponse.md create mode 100644 docs/models/ThirdPartyRouting.md create mode 100644 docs/models/TransferPeerPathType.md create mode 100644 models/aml-registration-result.ts create mode 100644 models/compliance-result.ts create mode 100644 models/compliance-screening-result.ts create mode 100644 models/create-address-request.ts create mode 100644 models/create-assets-bulk-request.ts create mode 100644 models/create-assets-request.ts create mode 100644 models/create-wallet-request.ts create mode 100644 models/execute-action-response.ts create mode 100644 models/funds.ts create mode 100644 models/policy-rules.ts create mode 100644 models/screening-configurations-request.ts create mode 100644 models/screening-policy-response.ts create mode 100644 models/screening-provider-rules-configuration-response.ts create mode 100644 models/screening-update-configurations-request.ts create mode 100644 models/set-auto-fuel-request.ts create mode 100644 models/set-customer-ref-id-for-address-request.ts create mode 100644 models/set-customer-ref-id-request.ts create mode 100644 models/set-network-id-discoverability-request.ts create mode 100644 models/set-network-id-response.ts create mode 100644 models/set-network-id-routing-policy-request.ts create mode 100644 models/smart-transfer-create-ticket-term.ts create mode 100644 models/smart-transfer-create-ticket.ts create mode 100644 models/smart-transfer-fund-term.ts create mode 100644 models/smart-transfer-manually-fund-term.ts create mode 100644 models/smart-transfer-set-ticket-expiration.ts create mode 100644 models/smart-transfer-set-ticket-external-id.ts create mode 100644 models/smart-transfer-set-user-groups.ts create mode 100644 models/smart-transfer-submit-ticket.ts create mode 100644 models/smart-transfer-ticket-filtered-response.ts create mode 100644 models/smart-transfer-ticket-response.ts create mode 100644 models/smart-transfer-ticket-term-response.ts create mode 100644 models/smart-transfer-ticket-term.ts create mode 100644 models/smart-transfer-ticket.ts create mode 100644 models/smart-transfer-update-ticket-term.ts create mode 100644 models/smart-transfer-user-groups-response.ts create mode 100644 models/smart-transfer-user-groups.ts create mode 100644 models/third-party-routing.ts create mode 100644 models/transfer-peer-path-type.ts create mode 100644 tests/api.spec.ts create mode 100644 tests/axiosManager.spec.ts create mode 100644 tests/bearerTokenProvider.spec.ts create mode 100644 tests/client.spec.ts create mode 100644 tests/fireblocksError.spec.ts create mode 100644 tests/fireblocksResponse.spec.ts diff --git a/README.md b/README.md index b80bc4a..2ae65d0 100644 --- a/README.md +++ b/README.md @@ -31,10 +31,10 @@ You can initialize the SDK using environment variables from your .env file or by ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from "@fireblocks/ts-sdk"; +import { Fireblocks, BasePath } from "@fireblocks/ts-sdk"; // Set the environment variables -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox // or assign directly to "https://sandbox-api.fireblocks.io/v1"; +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox // or assign directly to "https://sandbox-api.fireblocks.io/v1"; process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -47,14 +47,14 @@ Alternatively, you can directly pass the required parameters when initializing t ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from "@fireblocks/ts-sdk"; +import { Fireblocks, BasePath } from "@fireblocks/ts-sdk"; const FIREBLOCKS_API_SECRET_PATH = "./fireblocks_secret.key"; // Initialize a Fireblocks API instance with local variables const fireblocks = new Fireblocks({ apiKey: "my-api-key", - baseServerPath: BaseServerPathEnum.Sandbox, // or assign directly to "https://sandbox-api.fireblocks.io/v1"; + basePath: BasePath.Sandbox, // or assign directly to "https://sandbox-api.fireblocks.io/v1"; secretKey: readFileSync(FIREBLOCKS_API_SECRET_PATH, "utf8"), }); ``` @@ -134,14 +134,19 @@ Class | Method | HTTP request | Description *AdminQuorumApi* | [**setAdminQuorumThreshold**](docs/apis/AdminQuorumApi.md#setAdminQuorumThreshold) | **PUT** /admin_quorum | Update admin quorum threshold *ApiUserApi* | [**createApiUser**](docs/apis/ApiUserApi.md#createApiUser) | **POST** /management/api_users | create api user *ApiUserApi* | [**getApiUsers**](docs/apis/ApiUserApi.md#getApiUsers) | **GET** /management/api_users | get api users -*AssetsApi* | [**getAssetBalance**](docs/apis/AssetsApi.md#getAssetBalance) | **POST** /vault/assets/bulk | Bulk creation of wallets +*AssetsApi* | [**createAssetsBulk**](docs/apis/AssetsApi.md#createAssetsBulk) | **POST** /vault/assets/bulk | Bulk creation of wallets *AuditLogsApi* | [**getAuditLogs**](docs/apis/AuditLogsApi.md#getAuditLogs) | **GET** /management/audit_logs | Get audit logs *AuditLogsApi* | [**getAudits**](docs/apis/AuditLogsApi.md#getAudits) | **GET** /audits | Get audit logs *BlockchainsAssetsApi* | [**getSupportedAssets**](docs/apis/BlockchainsAssetsApi.md#getSupportedAssets) | **GET** /supported_assets | List all asset types supported by Fireblocks -*ComplianceScreeningConfigurationApi* | [**travelRuleApiControllerGetPostScreeningPolicy**](docs/apis/ComplianceScreeningConfigurationApi.md#travelRuleApiControllerGetPostScreeningPolicy) | **GET** /screening/travel_rule/post_screening_policy | Travel Rule - View Post-Screening Policy -*ComplianceScreeningConfigurationApi* | [**travelRuleApiControllerGetScreeningConfiguration**](docs/apis/ComplianceScreeningConfigurationApi.md#travelRuleApiControllerGetScreeningConfiguration) | **GET** /screening/travel_rule/policy_configuration | Get Travel Rule Screening Policy Configuration -*ComplianceScreeningConfigurationApi* | [**travelRuleApiControllerGetScreeningPolicy**](docs/apis/ComplianceScreeningConfigurationApi.md#travelRuleApiControllerGetScreeningPolicy) | **GET** /screening/travel_rule/screening_policy | Travel Rule - View Screening Policy -*ComplianceScreeningConfigurationApi* | [**travelRuleApiControllerUpdateTravelRuleConfig**](docs/apis/ComplianceScreeningConfigurationApi.md#travelRuleApiControllerUpdateTravelRuleConfig) | **PUT** /screening/travel_rule/policy_configuration | Update Travel Rule Configuration +*ComplianceApi* | [**getAmlPostScreeningPolicy**](docs/apis/ComplianceApi.md#getAmlPostScreeningPolicy) | **GET** /screening/aml/post_screening_policy | AML - View Post-Screening Policy +*ComplianceApi* | [**getAmlScreeningPolicy**](docs/apis/ComplianceApi.md#getAmlScreeningPolicy) | **GET** /screening/aml/screening_policy | AML - View Screening Policy +*ComplianceApi* | [**getPostScreeningPolicy**](docs/apis/ComplianceApi.md#getPostScreeningPolicy) | **GET** /screening/travel_rule/post_screening_policy | Travel Rule - View Post-Screening Policy +*ComplianceApi* | [**getScreeningPolicy**](docs/apis/ComplianceApi.md#getScreeningPolicy) | **GET** /screening/travel_rule/screening_policy | Travel Rule - View Screening Policy +*ComplianceApi* | [**updateAmlScreeningConfiguration**](docs/apis/ComplianceApi.md#updateAmlScreeningConfiguration) | **PUT** /screening/aml/policy_configuration | Update AML Configuration +*ComplianceApi* | [**updateScreeningConfiguration**](docs/apis/ComplianceApi.md#updateScreeningConfiguration) | **PUT** /screening/configurations | Tenant - Screening Configuration +*ComplianceApi* | [**updateTravelRuleConfig**](docs/apis/ComplianceApi.md#updateTravelRuleConfig) | **PUT** /screening/travel_rule/policy_configuration | Update Travel Rule Configuration +*ComplianceScreeningConfigurationApi* | [**getAmlScreeningConfiguration**](docs/apis/ComplianceScreeningConfigurationApi.md#getAmlScreeningConfiguration) | **GET** /screening/aml/policy_configuration | Get AML Screening Policy Configuration +*ComplianceScreeningConfigurationApi* | [**getScreeningConfiguration**](docs/apis/ComplianceScreeningConfigurationApi.md#getScreeningConfiguration) | **GET** /screening/travel_rule/policy_configuration | Get Travel Rule Screening Policy Configuration *ConsoleUserApi* | [**createConsoleUser**](docs/apis/ConsoleUserApi.md#createConsoleUser) | **POST** /management/users | create console user *ConsoleUserApi* | [**getConsoleUsers**](docs/apis/ConsoleUserApi.md#getConsoleUsers) | **GET** /management/users | get console users *ContractsApi* | [**addContractAsset**](docs/apis/ContractsApi.md#addContractAsset) | **POST** /contracts/{contractId}/{assetId} | Add an asset to a contract @@ -164,17 +169,11 @@ Class | Method | HTTP request | Description *ExternalWalletsApi* | [**getExternalWalletAsset**](docs/apis/ExternalWalletsApi.md#getExternalWalletAsset) | **GET** /external_wallets/{walletId}/{assetId} | Get an asset from an external wallet *ExternalWalletsApi* | [**getExternalWallets**](docs/apis/ExternalWalletsApi.md#getExternalWallets) | **GET** /external_wallets | List external wallets *ExternalWalletsApi* | [**removeAssetFromExternalWallet**](docs/apis/ExternalWalletsApi.md#removeAssetFromExternalWallet) | **DELETE** /external_wallets/{walletId}/{assetId} | Delete an asset from an external wallet -*ExternalWalletsApi* | [**setCustomerRefIdForExternalWallet**](docs/apis/ExternalWalletsApi.md#setCustomerRefIdForExternalWallet) | **POST** /external_wallets/{walletId}/set_customer_ref_id | Set an AML customer reference ID for an external wallet +*ExternalWalletsApi* | [**setExternalWalletCustomerRefId**](docs/apis/ExternalWalletsApi.md#setExternalWalletCustomerRefId) | **POST** /external_wallets/{walletId}/set_customer_ref_id | Set an AML customer reference ID for an external wallet *FiatAccountsApi* | [**depositFundsFromLinkedDDA**](docs/apis/FiatAccountsApi.md#depositFundsFromLinkedDDA) | **POST** /fiat_accounts/{accountId}/deposit_from_linked_dda | Deposit funds from DDA *FiatAccountsApi* | [**getFiatAccount**](docs/apis/FiatAccountsApi.md#getFiatAccount) | **GET** /fiat_accounts/{accountId} | Find a specific fiat account *FiatAccountsApi* | [**getFiatAccounts**](docs/apis/FiatAccountsApi.md#getFiatAccounts) | **GET** /fiat_accounts | List fiat accounts -*FiatAccountsApi* | [**redeemFundsToLinkedDda**](docs/apis/FiatAccountsApi.md#redeemFundsToLinkedDda) | **POST** /fiat_accounts/{accountId}/redeem_to_linked_dda | Redeem funds to DDA -*FireblocksPublicOpenapiOtherApi* | [**cancelJob**](docs/apis/FireblocksPublicOpenapiOtherApi.md#cancelJob) | **POST** /batch/{jobId}/cancel | Cancel a running job -*FireblocksPublicOpenapiOtherApi* | [**continueJob**](docs/apis/FireblocksPublicOpenapiOtherApi.md#continueJob) | **POST** /batch/{jobId}/continue | Continue a paused job -*FireblocksPublicOpenapiOtherApi* | [**getJob**](docs/apis/FireblocksPublicOpenapiOtherApi.md#getJob) | **GET** /batch/{jobId} | Get job details -*FireblocksPublicOpenapiOtherApi* | [**getJobTasks**](docs/apis/FireblocksPublicOpenapiOtherApi.md#getJobTasks) | **GET** /batch/{jobId}/tasks | Return a list of tasks for given job -*FireblocksPublicOpenapiOtherApi* | [**getJobs**](docs/apis/FireblocksPublicOpenapiOtherApi.md#getJobs) | **GET** /batch/jobs | Return a list of jobs belonging to tenant -*FireblocksPublicOpenapiOtherApi* | [**pauseJob**](docs/apis/FireblocksPublicOpenapiOtherApi.md#pauseJob) | **POST** /batch/{jobId}/pause | Pause a job +*FiatAccountsApi* | [**redeemFundsToLinkedDDA**](docs/apis/FiatAccountsApi.md#redeemFundsToLinkedDDA) | **POST** /fiat_accounts/{accountId}/redeem_to_linked_dda | Redeem funds to DDA *GasStationsApi* | [**getGasStationByAssetId**](docs/apis/GasStationsApi.md#getGasStationByAssetId) | **GET** /gas_station/{assetId} | Get gas station settings by asset *GasStationsApi* | [**getGasStationInfo**](docs/apis/GasStationsApi.md#getGasStationInfo) | **GET** /gas_station | Get gas station settings *GasStationsApi* | [**updateGasStationConfiguration**](docs/apis/GasStationsApi.md#updateGasStationConfiguration) | **PUT** /gas_station/configuration | Edit gas station settings @@ -187,6 +186,12 @@ Class | Method | HTTP request | Description *InternalWalletsApi* | [**getInternalWalletAsset**](docs/apis/InternalWalletsApi.md#getInternalWalletAsset) | **GET** /internal_wallets/{walletId}/{assetId} | Get an asset from an internal wallet *InternalWalletsApi* | [**getInternalWallets**](docs/apis/InternalWalletsApi.md#getInternalWallets) | **GET** /internal_wallets | List internal wallets *InternalWalletsApi* | [**setCustomerRefIdForInternalWallet**](docs/apis/InternalWalletsApi.md#setCustomerRefIdForInternalWallet) | **POST** /internal_wallets/{walletId}/set_customer_ref_id | Set an AML/KYT customer reference ID for an internal wallet +*JobManagementApi* | [**cancelJob**](docs/apis/JobManagementApi.md#cancelJob) | **POST** /batch/{jobId}/cancel | Cancel a running job +*JobManagementApi* | [**continueJob**](docs/apis/JobManagementApi.md#continueJob) | **POST** /batch/{jobId}/continue | Continue a paused job +*JobManagementApi* | [**getJob**](docs/apis/JobManagementApi.md#getJob) | **GET** /batch/{jobId} | Get job details +*JobManagementApi* | [**getJobTasks**](docs/apis/JobManagementApi.md#getJobTasks) | **GET** /batch/{jobId}/tasks | Return a list of tasks for given job +*JobManagementApi* | [**getJobs**](docs/apis/JobManagementApi.md#getJobs) | **GET** /batch/jobs | Return a list of jobs belonging to tenant +*JobManagementApi* | [**pauseJob**](docs/apis/JobManagementApi.md#pauseJob) | **POST** /batch/{jobId}/pause | Pause a job *NFTsApi* | [**getNFT**](docs/apis/NFTsApi.md#getNFT) | **GET** /nfts/tokens/{id} | List token data by ID *NFTsApi* | [**getNFTs**](docs/apis/NFTsApi.md#getNFTs) | **GET** /nfts/tokens | List tokens by IDs *NFTsApi* | [**getOwnershipTokens**](docs/apis/NFTsApi.md#getOwnershipTokens) | **GET** /nfts/ownership/tokens | List all owned tokens (paginated) @@ -206,10 +211,10 @@ Class | Method | HTTP request | Description *NetworkConnectionsApi* | [**getNetworkConnections**](docs/apis/NetworkConnectionsApi.md#getNetworkConnections) | **GET** /network_connections | List network connections *NetworkConnectionsApi* | [**getNetworkId**](docs/apis/NetworkConnectionsApi.md#getNetworkId) | **GET** /network_ids/{networkId} | Returns specific network ID. *NetworkConnectionsApi* | [**getNetworkIds**](docs/apis/NetworkConnectionsApi.md#getNetworkIds) | **GET** /network_ids | Returns all network IDs, both local IDs and discoverable remote IDs -*NetworkConnectionsApi* | [**setDiscoverabilityForNetworkId**](docs/apis/NetworkConnectionsApi.md#setDiscoverabilityForNetworkId) | **PATCH** /network_ids/{networkId}/set_discoverability | Update network ID\'s discoverability. +*NetworkConnectionsApi* | [**setNetworkIdDiscoverability**](docs/apis/NetworkConnectionsApi.md#setNetworkIdDiscoverability) | **PATCH** /network_ids/{networkId}/set_discoverability | Update network ID\'s discoverability. *NetworkConnectionsApi* | [**setNetworkIdName**](docs/apis/NetworkConnectionsApi.md#setNetworkIdName) | **PATCH** /network_ids/{networkId}/set_name | Update network ID\'s name. +*NetworkConnectionsApi* | [**setNetworkIdRoutingPolicy**](docs/apis/NetworkConnectionsApi.md#setNetworkIdRoutingPolicy) | **PATCH** /network_ids/{networkId}/set_routing_policy | Update network id routing policy. *NetworkConnectionsApi* | [**setRoutingPolicy**](docs/apis/NetworkConnectionsApi.md#setRoutingPolicy) | **PATCH** /network_connections/{connectionId}/set_routing_policy | Update network connection routing policy. -*NetworkConnectionsApi* | [**setRoutingPolicyForNetworkId**](docs/apis/NetworkConnectionsApi.md#setRoutingPolicyForNetworkId) | **PATCH** /network_ids/{networkId}/set_routing_policy | Update network id routing policy. *OTABetaApi* | [**getOtaStatus**](docs/apis/OTABetaApi.md#getOtaStatus) | **GET** /management/ota | Returns current OTA status *OTABetaApi* | [**setOtaStatus**](docs/apis/OTABetaApi.md#setOtaStatus) | **PUT** /management/ota | Enable or disable transactions to OTA *OffExchangesApi* | [**addOffExchange**](docs/apis/OffExchangesApi.md#addOffExchange) | **POST** /off_exchange/add | add collateral @@ -266,7 +271,7 @@ Class | Method | HTTP request | Description *TransactionsApi* | [**validateAddress**](docs/apis/TransactionsApi.md#validateAddress) | **GET** /transactions/validate_address/{assetId}/{address} | Validate destination address *TravelRuleBetaApi* | [**getVASPByDID**](docs/apis/TravelRuleBetaApi.md#getVASPByDID) | **GET** /screening/travel_rule/vasp/{did} | Get VASP details *TravelRuleBetaApi* | [**getVASPs**](docs/apis/TravelRuleBetaApi.md#getVASPs) | **GET** /screening/travel_rule/vasp | Get All VASPs -*TravelRuleBetaApi* | [**travelRuleApiControllerUpdateVasp**](docs/apis/TravelRuleBetaApi.md#travelRuleApiControllerUpdateVasp) | **PUT** /screening/travel_rule/vasp/update | Add jsonDidKey to VASP details +*TravelRuleBetaApi* | [**updateVasp**](docs/apis/TravelRuleBetaApi.md#updateVasp) | **PUT** /screening/travel_rule/vasp/update | Add jsonDidKey to VASP details *TravelRuleBetaApi* | [**validateFullTravelRuleTransaction**](docs/apis/TravelRuleBetaApi.md#validateFullTravelRuleTransaction) | **POST** /screening/travel_rule/transaction/validate/full | Validate Full Travel Rule Transaction *TravelRuleBetaApi* | [**validateTravelRuleTransaction**](docs/apis/TravelRuleBetaApi.md#validateTravelRuleTransaction) | **POST** /screening/travel_rule/transaction/validate | Validate Travel Rule Transaction *UserGroupsBetaApi* | [**createUserGroup**](docs/apis/UserGroupsBetaApi.md#createUserGroup) | **POST** /management/user_groups | Create user group @@ -295,9 +300,9 @@ Class | Method | HTTP request | Description *VaultsApi* | [**getVaultAssets**](docs/apis/VaultsApi.md#getVaultAssets) | **GET** /vault/assets | Get asset balance for chosen assets *VaultsApi* | [**getVaultBalanceByAsset**](docs/apis/VaultsApi.md#getVaultBalanceByAsset) | **GET** /vault/assets/{assetId} | Get vault balance by asset *VaultsApi* | [**hideVaultAccount**](docs/apis/VaultsApi.md#hideVaultAccount) | **POST** /vault/accounts/{vaultAccountId}/hide | Hide a vault account in the console -*VaultsApi* | [**setAutoFuelForVaultAccount**](docs/apis/VaultsApi.md#setAutoFuelForVaultAccount) | **POST** /vault/accounts/{vaultAccountId}/set_auto_fuel | Turn autofueling on or off *VaultsApi* | [**setCustomerRefIdForAddress**](docs/apis/VaultsApi.md#setCustomerRefIdForAddress) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/set_customer_ref_id | Assign AML customer reference ID -*VaultsApi* | [**setCustomerRefIdForVaultAccount**](docs/apis/VaultsApi.md#setCustomerRefIdForVaultAccount) | **POST** /vault/accounts/{vaultAccountId}/set_customer_ref_id | Set an AML/KYT customer reference ID for a vault account +*VaultsApi* | [**setVaultAccountAutoFuel**](docs/apis/VaultsApi.md#setVaultAccountAutoFuel) | **POST** /vault/accounts/{vaultAccountId}/set_auto_fuel | Turn autofueling on or off +*VaultsApi* | [**setVaultAccountCustomerRefId**](docs/apis/VaultsApi.md#setVaultAccountCustomerRefId) | **POST** /vault/accounts/{vaultAccountId}/set_customer_ref_id | Set an AML/KYT customer reference ID for a vault account *VaultsApi* | [**unhideVaultAccount**](docs/apis/VaultsApi.md#unhideVaultAccount) | **POST** /vault/accounts/{vaultAccountId}/unhide | Unhide a vault account in the console *VaultsApi* | [**updateVaultAccount**](docs/apis/VaultsApi.md#updateVaultAccount) | **PUT** /vault/accounts/{vaultAccountId} | Rename a vault account *VaultsApi* | [**updateVaultAccountAssetAddress**](docs/apis/VaultsApi.md#updateVaultAccountAssetAddress) | **PUT** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId} | Update address description @@ -325,6 +330,7 @@ Class | Method | HTTP request | Description - [AddCollateralRequestBody](docs/models/AddCollateralRequestBody.md) - [AddContractAssetRequest](docs/models/AddContractAssetRequest.md) - [AdditionalInfoDto](docs/models/AdditionalInfoDto.md) + - [AmlRegistrationResult](docs/models/AmlRegistrationResult.md) - [AmlScreeningResult](docs/models/AmlScreeningResult.md) - [AmountAggregationTimePeriodMethod](docs/models/AmountAggregationTimePeriodMethod.md) - [AmountAndChainDescriptor](docs/models/AmountAndChainDescriptor.md) @@ -336,32 +342,32 @@ Class | Method | HTTP request | Description - [BlockInfo](docs/models/BlockInfo.md) - [CancelTransactionResponse](docs/models/CancelTransactionResponse.md) - [ChainInfoResponseDto](docs/models/ChainInfoResponseDto.md) - - [CheckThirdPartyRouting200Response](docs/models/CheckThirdPartyRouting200Response.md) - [CollectionOwnershipResponse](docs/models/CollectionOwnershipResponse.md) + - [ComplianceResult](docs/models/ComplianceResult.md) + - [ComplianceScreeningResult](docs/models/ComplianceScreeningResult.md) - [ConfigChangeRequestStatus](docs/models/ConfigChangeRequestStatus.md) - [ConvertAssetsRequest](docs/models/ConvertAssetsRequest.md) - [CreateAPIUser](docs/models/CreateAPIUser.md) + - [CreateAddressRequest](docs/models/CreateAddressRequest.md) - [CreateAddressResponse](docs/models/CreateAddressResponse.md) + - [CreateAssetsBulkRequest](docs/models/CreateAssetsBulkRequest.md) + - [CreateAssetsRequest](docs/models/CreateAssetsRequest.md) - [CreateConnectionRequest](docs/models/CreateConnectionRequest.md) - [CreateConnectionResponse](docs/models/CreateConnectionResponse.md) - [CreateConsoleUser](docs/models/CreateConsoleUser.md) - [CreateContractRequest](docs/models/CreateContractRequest.md) - [CreateInternalTransferRequest](docs/models/CreateInternalTransferRequest.md) - [CreateInternalWalletAssetRequest](docs/models/CreateInternalWalletAssetRequest.md) - - [CreateInternalWalletRequest](docs/models/CreateInternalWalletRequest.md) - [CreateMultipleAccountsRequest](docs/models/CreateMultipleAccountsRequest.md) - [CreateNcwConnectionRequest](docs/models/CreateNcwConnectionRequest.md) - [CreateNetworkIdRequest](docs/models/CreateNetworkIdRequest.md) - [CreatePayoutRequest](docs/models/CreatePayoutRequest.md) - [CreateRequest](docs/models/CreateRequest.md) - - [CreateTicket201Response](docs/models/CreateTicket201Response.md) - - [CreateTicketTerm201Response](docs/models/CreateTicketTerm201Response.md) - [CreateTransactionResponse](docs/models/CreateTransactionResponse.md) - [CreateUserGroupResponse](docs/models/CreateUserGroupResponse.md) - - [CreateVaultAccountAssetAddressRequest](docs/models/CreateVaultAccountAssetAddressRequest.md) - - [CreateVaultAccountAssetRequest](docs/models/CreateVaultAccountAssetRequest.md) - [CreateVaultAccountRequest](docs/models/CreateVaultAccountRequest.md) - [CreateVaultAssetResponse](docs/models/CreateVaultAssetResponse.md) + - [CreateWalletRequest](docs/models/CreateWalletRequest.md) - [CustomCryptoRoutingDest](docs/models/CustomCryptoRoutingDest.md) - [CustomFiatRoutingDest](docs/models/CustomFiatRoutingDest.md) - [DefaultNetworkRoutingDest](docs/models/DefaultNetworkRoutingDest.md) @@ -386,25 +392,22 @@ Class | Method | HTTP request | Description - [ExchangeSettlementTransactionsResponse](docs/models/ExchangeSettlementTransactionsResponse.md) - [ExchangeTradingAccount](docs/models/ExchangeTradingAccount.md) - [ExchangeType](docs/models/ExchangeType.md) - - [ExecuteAction201Response](docs/models/ExecuteAction201Response.md) - [ExecuteActionRequest](docs/models/ExecuteActionRequest.md) + - [ExecuteActionResponse](docs/models/ExecuteActionResponse.md) - [ExternalWalletAsset](docs/models/ExternalWalletAsset.md) - [FeeInfo](docs/models/FeeInfo.md) - [FiatAccount](docs/models/FiatAccount.md) - [FiatAccountType](docs/models/FiatAccountType.md) - [FiatAsset](docs/models/FiatAsset.md) - - [FindTicketById200Response](docs/models/FindTicketById200Response.md) - - [FindTicketTermById200Response](docs/models/FindTicketTermById200Response.md) - [FreezeTransactionResponse](docs/models/FreezeTransactionResponse.md) + - [Funds](docs/models/Funds.md) - [GasStationConfiguration](docs/models/GasStationConfiguration.md) - [GasStationPropertiesResponse](docs/models/GasStationPropertiesResponse.md) - - [GetAssetBalanceRequest](docs/models/GetAssetBalanceRequest.md) - [GetAuditLogsResponseDTO](docs/models/GetAuditLogsResponseDTO.md) - [GetConnectionsResponse](docs/models/GetConnectionsResponse.md) - [GetFilterParameter](docs/models/GetFilterParameter.md) - [GetOtaStatus200Response](docs/models/GetOtaStatus200Response.md) - [GetOwnershipTokens200Response](docs/models/GetOwnershipTokens200Response.md) - - [GetSmartTransferUserGroups200Response](docs/models/GetSmartTransferUserGroups200Response.md) - [GetTransactionOperation](docs/models/GetTransactionOperation.md) - [GetUsersResponse](docs/models/GetUsersResponse.md) - [GetWorkspaceStatus200Response](docs/models/GetWorkspaceStatus200Response.md) @@ -414,7 +417,6 @@ Class | Method | HTTP request | Description - [ListOwnedCollections200Response](docs/models/ListOwnedCollections200Response.md) - [ListOwnedTokens200Response](docs/models/ListOwnedTokens200Response.md) - [MediaEntityResponse](docs/models/MediaEntityResponse.md) - - [Ncw](docs/models/Ncw.md) - [NetworkChannel](docs/models/NetworkChannel.md) - [NetworkConnection](docs/models/NetworkConnection.md) - [NetworkConnectionResponse](docs/models/NetworkConnectionResponse.md) @@ -469,6 +471,7 @@ Class | Method | HTTP request | Description - [PolicyRuleRawMessageSigning](docs/models/PolicyRuleRawMessageSigning.md) - [PolicyRuleRawMessageSigningDerivationPath](docs/models/PolicyRuleRawMessageSigningDerivationPath.md) - [PolicyRuleSrc](docs/models/PolicyRuleSrc.md) + - [PolicyRules](docs/models/PolicyRules.md) - [PolicySrcOrDestSubType](docs/models/PolicySrcOrDestSubType.md) - [PolicySrcOrDestType](docs/models/PolicySrcOrDestType.md) - [PolicyStatus](docs/models/PolicyStatus.md) @@ -476,58 +479,56 @@ Class | Method | HTTP request | Description - [ProviderDto](docs/models/ProviderDto.md) - [PublicKeyInformation](docs/models/PublicKeyInformation.md) - [PublishDraftRequest](docs/models/PublishDraftRequest.md) - - [PublishPolicyRulesRequest](docs/models/PublishPolicyRulesRequest.md) - [PublishResult](docs/models/PublishResult.md) - - [RedeemFundsToLinkedDdaRequest](docs/models/RedeemFundsToLinkedDdaRequest.md) - [RelatedTransactionDto](docs/models/RelatedTransactionDto.md) - [RemoveCollateralRequestBody](docs/models/RemoveCollateralRequestBody.md) - - [RequestOptions](docs/models/RequestOptions.md) - [ResendTransactionWebhooksRequest](docs/models/ResendTransactionWebhooksRequest.md) - [ResendWebhooksResponse](docs/models/ResendWebhooksResponse.md) - [RespondToConnectionRequest](docs/models/RespondToConnectionRequest.md) - [RewardInfo](docs/models/RewardInfo.md) - [RewardsInfo](docs/models/RewardsInfo.md) - - [SearchTickets200Response](docs/models/SearchTickets200Response.md) + - [ScreeningConfigurationsRequest](docs/models/ScreeningConfigurationsRequest.md) + - [ScreeningPolicyResponse](docs/models/ScreeningPolicyResponse.md) + - [ScreeningProviderRulesConfigurationResponse](docs/models/ScreeningProviderRulesConfigurationResponse.md) + - [ScreeningUpdateConfigurationsRequest](docs/models/ScreeningUpdateConfigurationsRequest.md) - [SessionDTO](docs/models/SessionDTO.md) - [SessionMetadata](docs/models/SessionMetadata.md) - [SetAdminQuorumThresholdRequest](docs/models/SetAdminQuorumThresholdRequest.md) - - [SetAutoFuelForVaultAccountRequest](docs/models/SetAutoFuelForVaultAccountRequest.md) + - [SetAutoFuelRequest](docs/models/SetAutoFuelRequest.md) - [SetConfirmationsThresholdRequest](docs/models/SetConfirmationsThresholdRequest.md) - [SetConfirmationsThresholdResponse](docs/models/SetConfirmationsThresholdResponse.md) - - [SetCustomerRefIdForVaultAccountRequest](docs/models/SetCustomerRefIdForVaultAccountRequest.md) - - [SetDiscoverabilityForNetworkIdRequest](docs/models/SetDiscoverabilityForNetworkIdRequest.md) + - [SetCustomerRefIdForAddressRequest](docs/models/SetCustomerRefIdForAddressRequest.md) + - [SetCustomerRefIdRequest](docs/models/SetCustomerRefIdRequest.md) + - [SetNetworkIdDiscoverabilityRequest](docs/models/SetNetworkIdDiscoverabilityRequest.md) - [SetNetworkIdNameRequest](docs/models/SetNetworkIdNameRequest.md) + - [SetNetworkIdResponse](docs/models/SetNetworkIdResponse.md) + - [SetNetworkIdRoutingPolicyRequest](docs/models/SetNetworkIdRoutingPolicyRequest.md) - [SetOtaStatusRequest](docs/models/SetOtaStatusRequest.md) - [SetRoutingPolicy200Response](docs/models/SetRoutingPolicy200Response.md) - - [SetRoutingPolicyForNetworkIdRequest](docs/models/SetRoutingPolicyForNetworkIdRequest.md) - [SetRoutingPolicyRequest](docs/models/SetRoutingPolicyRequest.md) - - [SetUserGroups201Response](docs/models/SetUserGroups201Response.md) - [SettlementRequestBody](docs/models/SettlementRequestBody.md) - [SettlementResponse](docs/models/SettlementResponse.md) - [SignedMessage](docs/models/SignedMessage.md) - [SignedMessageSignature](docs/models/SignedMessageSignature.md) - [SmartTransferBadRequestResponse](docs/models/SmartTransferBadRequestResponse.md) - - [SmartTransferCreateTicketDto](docs/models/SmartTransferCreateTicketDto.md) - - [SmartTransferCreateTicketTermDto](docs/models/SmartTransferCreateTicketTermDto.md) + - [SmartTransferCreateTicket](docs/models/SmartTransferCreateTicket.md) + - [SmartTransferCreateTicketTerm](docs/models/SmartTransferCreateTicketTerm.md) - [SmartTransferForbiddenResponse](docs/models/SmartTransferForbiddenResponse.md) - - [SmartTransferFundTermDto](docs/models/SmartTransferFundTermDto.md) - - [SmartTransferManuallyFundTermDto](docs/models/SmartTransferManuallyFundTermDto.md) + - [SmartTransferFundTerm](docs/models/SmartTransferFundTerm.md) + - [SmartTransferManuallyFundTerm](docs/models/SmartTransferManuallyFundTerm.md) - [SmartTransferNotFoundResponse](docs/models/SmartTransferNotFoundResponse.md) - - [SmartTransferSetTicketExpirationDto](docs/models/SmartTransferSetTicketExpirationDto.md) - - [SmartTransferSetTicketExternalIdDto](docs/models/SmartTransferSetTicketExternalIdDto.md) - - [SmartTransferSetUserGroupsDto](docs/models/SmartTransferSetUserGroupsDto.md) - - [SmartTransferSubmitTicketDto](docs/models/SmartTransferSubmitTicketDto.md) - - [SmartTransferTicketDto](docs/models/SmartTransferTicketDto.md) - - [SmartTransferTicketFilteredResponseDto](docs/models/SmartTransferTicketFilteredResponseDto.md) - - [SmartTransferTicketResponseDto](docs/models/SmartTransferTicketResponseDto.md) - - [SmartTransferTicketResponseDtoData](docs/models/SmartTransferTicketResponseDtoData.md) - - [SmartTransferTicketTermDto](docs/models/SmartTransferTicketTermDto.md) - - [SmartTransferTicketTermResponseDto](docs/models/SmartTransferTicketTermResponseDto.md) - - [SmartTransferTicketTermResponseDtoData](docs/models/SmartTransferTicketTermResponseDtoData.md) - - [SmartTransferUpdateTicketTermDto](docs/models/SmartTransferUpdateTicketTermDto.md) - - [SmartTransferUserGroupsDto](docs/models/SmartTransferUserGroupsDto.md) - - [SmartTransferUserGroupsResponseDto](docs/models/SmartTransferUserGroupsResponseDto.md) - - [SmartTransferUserGroupsResponseDtoData](docs/models/SmartTransferUserGroupsResponseDtoData.md) + - [SmartTransferSetTicketExpiration](docs/models/SmartTransferSetTicketExpiration.md) + - [SmartTransferSetTicketExternalId](docs/models/SmartTransferSetTicketExternalId.md) + - [SmartTransferSetUserGroups](docs/models/SmartTransferSetUserGroups.md) + - [SmartTransferSubmitTicket](docs/models/SmartTransferSubmitTicket.md) + - [SmartTransferTicket](docs/models/SmartTransferTicket.md) + - [SmartTransferTicketFilteredResponse](docs/models/SmartTransferTicketFilteredResponse.md) + - [SmartTransferTicketResponse](docs/models/SmartTransferTicketResponse.md) + - [SmartTransferTicketTerm](docs/models/SmartTransferTicketTerm.md) + - [SmartTransferTicketTermResponse](docs/models/SmartTransferTicketTermResponse.md) + - [SmartTransferUpdateTicketTerm](docs/models/SmartTransferUpdateTicketTerm.md) + - [SmartTransferUserGroups](docs/models/SmartTransferUserGroups.md) + - [SmartTransferUserGroupsResponse](docs/models/SmartTransferUserGroupsResponse.md) - [SolanaBlockchainDataDto](docs/models/SolanaBlockchainDataDto.md) - [SourceTransferPeerPathResponse](docs/models/SourceTransferPeerPathResponse.md) - [SpamOwnershipResponse](docs/models/SpamOwnershipResponse.md) @@ -537,6 +538,7 @@ Class | Method | HTTP request | Description - [StakeResponseDto](docs/models/StakeResponseDto.md) - [SystemMessageInfo](docs/models/SystemMessageInfo.md) - [Task](docs/models/Task.md) + - [ThirdPartyRouting](docs/models/ThirdPartyRouting.md) - [ToCollateralTransaction](docs/models/ToCollateralTransaction.md) - [ToExchangeTransaction](docs/models/ToExchangeTransaction.md) - [TokenCollectionResponse](docs/models/TokenCollectionResponse.md) @@ -561,17 +563,15 @@ Class | Method | HTTP request | Description - [TransactionResponseContractCallDecodedData](docs/models/TransactionResponseContractCallDecodedData.md) - [TransactionResponseDestination](docs/models/TransactionResponseDestination.md) - [TransferPeerPath](docs/models/TransferPeerPath.md) + - [TransferPeerPathType](docs/models/TransferPeerPathType.md) - [TravelRuleAddress](docs/models/TravelRuleAddress.md) - - [TravelRuleConfigurationsRequest](docs/models/TravelRuleConfigurationsRequest.md) - [TravelRuleCreateTransactionRequest](docs/models/TravelRuleCreateTransactionRequest.md) - [TravelRuleGetAllVASPsResponse](docs/models/TravelRuleGetAllVASPsResponse.md) - [TravelRuleIssuer](docs/models/TravelRuleIssuer.md) - [TravelRuleIssuers](docs/models/TravelRuleIssuers.md) - [TravelRuleOwnershipProof](docs/models/TravelRuleOwnershipProof.md) - [TravelRulePiiIVMS](docs/models/TravelRulePiiIVMS.md) - - [TravelRulePolicyResponse](docs/models/TravelRulePolicyResponse.md) - [TravelRulePolicyRuleResponse](docs/models/TravelRulePolicyRuleResponse.md) - - [TravelRuleProviderRulesConfigurationResponse](docs/models/TravelRuleProviderRulesConfigurationResponse.md) - [TravelRuleTransactionBlockchainInfo](docs/models/TravelRuleTransactionBlockchainInfo.md) - [TravelRuleUpdateVASPDetails](docs/models/TravelRuleUpdateVASPDetails.md) - [TravelRuleVASP](docs/models/TravelRuleVASP.md) @@ -583,7 +583,6 @@ Class | Method | HTTP request | Description - [UnspentInput](docs/models/UnspentInput.md) - [UnspentInputsResponse](docs/models/UnspentInputsResponse.md) - [UnstakeRequestDto](docs/models/UnstakeRequestDto.md) - - [UpdateDraftRequest](docs/models/UpdateDraftRequest.md) - [UpdateTokenOwnershipStatusDto](docs/models/UpdateTokenOwnershipStatusDto.md) - [UpdateVaultAccountAssetAddressRequest](docs/models/UpdateVaultAccountAssetAddressRequest.md) - [UpdateVaultAccountRequest](docs/models/UpdateVaultAccountRequest.md) diff --git a/api.ts b/api.ts index 647e938..ce542d4 100644 --- a/api.ts +++ b/api.ts @@ -19,15 +19,16 @@ export * from './api/api-user-api'; export * from './api/assets-api'; export * from './api/audit-logs-api'; export * from './api/blockchains-assets-api'; +export * from './api/compliance-api'; export * from './api/compliance-screening-configuration-api'; export * from './api/console-user-api'; export * from './api/contracts-api'; export * from './api/exchange-accounts-api'; export * from './api/external-wallets-api'; export * from './api/fiat-accounts-api'; -export * from './api/fireblocks-public-openapi-other-api'; export * from './api/gas-stations-api'; export * from './api/internal-wallets-api'; +export * from './api/job-management-api'; export * from './api/nfts-api'; export * from './api/network-connections-api'; export * from './api/otabeta-api'; diff --git a/api/assets-api.ts b/api/assets-api.ts index e9b535e..b450b72 100644 --- a/api/assets-api.ts +++ b/api/assets-api.ts @@ -26,9 +26,9 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { ErrorSchema } from '../models'; +import { CreateAssetsBulkRequest } from '../models'; // @ts-ignore -import { GetAssetBalanceRequest } from '../models'; +import { ErrorSchema } from '../models'; // @ts-ignore import { JobCreated } from '../models'; /** @@ -40,14 +40,14 @@ export const AssetsApiAxiosParamCreator = function (configuration?: Configuratio /** * Create multiple wallets for a given vault account by running an async job.
**Note**: - These endpoints are currently in beta and might be subject to changes. - We limit accounts to 10k per operation and 200k per customer during beta testing. - Currently, we are only supporting EVM wallets. * @summary Bulk creation of wallets - * @param {GetAssetBalanceRequest} getAssetBalanceRequest + * @param {CreateAssetsBulkRequest} createAssetsBulkRequest * @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} */ - getAssetBalance: async (getAssetBalanceRequest: GetAssetBalanceRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'getAssetBalanceRequest' is not null or undefined - assertParamExists('getAssetBalance', 'getAssetBalanceRequest', getAssetBalanceRequest) + createAssetsBulk: async (createAssetsBulkRequest: CreateAssetsBulkRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'createAssetsBulkRequest' is not null or undefined + assertParamExists('createAssetsBulk', 'createAssetsBulkRequest', createAssetsBulkRequest) const localVarPath = `/vault/assets/bulk`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -71,7 +71,7 @@ export const AssetsApiAxiosParamCreator = function (configuration?: Configuratio setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(getAssetBalanceRequest, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(createAssetsBulkRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -91,15 +91,15 @@ export const AssetsApiFp = function(configuration?: Configuration) { /** * Create multiple wallets for a given vault account by running an async job.
**Note**: - These endpoints are currently in beta and might be subject to changes. - We limit accounts to 10k per operation and 200k per customer during beta testing. - Currently, we are only supporting EVM wallets. * @summary Bulk creation of wallets - * @param {GetAssetBalanceRequest} getAssetBalanceRequest + * @param {CreateAssetsBulkRequest} createAssetsBulkRequest * @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 getAssetBalance(getAssetBalanceRequest: GetAssetBalanceRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetBalance(getAssetBalanceRequest, idempotencyKey, options); + async createAssetsBulk(createAssetsBulkRequest: CreateAssetsBulkRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createAssetsBulk(createAssetsBulkRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['AssetsApi.getAssetBalance']?.[index]?.url; + const operationBasePath = operationServerMap['AssetsApi.createAssetsBulk']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, } @@ -115,33 +115,33 @@ export const AssetsApiFactory = function (configuration?: Configuration, basePat /** * Create multiple wallets for a given vault account by running an async job.
**Note**: - These endpoints are currently in beta and might be subject to changes. - We limit accounts to 10k per operation and 200k per customer during beta testing. - Currently, we are only supporting EVM wallets. * @summary Bulk creation of wallets - * @param {AssetsApiGetAssetBalanceRequest} requestParameters Request parameters. + * @param {AssetsApiCreateAssetsBulkRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAssetBalance(requestParameters: AssetsApiGetAssetBalanceRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getAssetBalance(requestParameters.getAssetBalanceRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + createAssetsBulk(requestParameters: AssetsApiCreateAssetsBulkRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createAssetsBulk(requestParameters.createAssetsBulkRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, }; }; /** - * Request parameters for getAssetBalance operation in AssetsApi. + * Request parameters for createAssetsBulk operation in AssetsApi. * @export - * @interface AssetsApiGetAssetBalanceRequest + * @interface AssetsApiCreateAssetsBulkRequest */ -export interface AssetsApiGetAssetBalanceRequest { +export interface AssetsApiCreateAssetsBulkRequest { /** * - * @type {GetAssetBalanceRequest} - * @memberof AssetsApiGetAssetBalance + * @type {CreateAssetsBulkRequest} + * @memberof AssetsApiCreateAssetsBulk */ - readonly getAssetBalanceRequest: GetAssetBalanceRequest + readonly createAssetsBulkRequest: CreateAssetsBulkRequest /** * 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 AssetsApiGetAssetBalance + * @memberof AssetsApiCreateAssetsBulk */ readonly idempotencyKey?: string } @@ -156,13 +156,13 @@ export class AssetsApi extends BaseAPI { /** * Create multiple wallets for a given vault account by running an async job.
**Note**: - These endpoints are currently in beta and might be subject to changes. - We limit accounts to 10k per operation and 200k per customer during beta testing. - Currently, we are only supporting EVM wallets. * @summary Bulk creation of wallets - * @param {AssetsApiGetAssetBalanceRequest} requestParameters Request parameters. + * @param {AssetsApiCreateAssetsBulkRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AssetsApi */ - public getAssetBalance(requestParameters: AssetsApiGetAssetBalanceRequest) { - return AssetsApiFp(this.configuration).getAssetBalance(requestParameters.getAssetBalanceRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + public createAssetsBulk(requestParameters: AssetsApiCreateAssetsBulkRequest) { + return AssetsApiFp(this.configuration).createAssetsBulk(requestParameters.createAssetsBulkRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } } diff --git a/api/compliance-api.ts b/api/compliance-api.ts new file mode 100644 index 0000000..88587df --- /dev/null +++ b/api/compliance-api.ts @@ -0,0 +1,572 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import { ScreeningConfigurationsRequest } from '../models'; +// @ts-ignore +import { ScreeningPolicyResponse } from '../models'; +// @ts-ignore +import { ScreeningProviderRulesConfigurationResponse } from '../models'; +// @ts-ignore +import { ScreeningUpdateConfigurationsRequest } from '../models'; +/** + * ComplianceApi - axios parameter creator + * @export + */ +export const ComplianceApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Get the post-screening policy for AML. + * @summary AML - View Post-Screening Policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAmlPostScreeningPolicy: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/screening/aml/post_screening_policy`; + // 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}; + 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 screening policy for AML. + * @summary AML - View Screening Policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAmlScreeningPolicy: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/screening/aml/screening_policy`; + // 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}; + 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 post-screening policy for Travel Rule. + * @summary Travel Rule - View Post-Screening Policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPostScreeningPolicy: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/screening/travel_rule/post_screening_policy`; + // 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}; + 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 screening policy for Travel Rule. + * @summary Travel Rule - View Screening Policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getScreeningPolicy: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/screening/travel_rule/screening_policy`; + // 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}; + 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, + }; + }, + /** + * Updates bypass screening, inbound delay, or outbound delay configurations for AML. + * @summary Update AML Configuration + * @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} + */ + updateAmlScreeningConfiguration: async (idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/screening/aml/policy_configuration`; + // 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}; + 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 tenant screening configuration. + * @summary Tenant - Screening Configuration + * @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} + */ + updateScreeningConfiguration: async (idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/screening/configurations`; + // 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}; + 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, + }; + }, + /** + * Updates bypass screening, inbound delay, or outbound delay configurations for Travel Rule. + * @summary Update Travel Rule Configuration + * @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} + */ + updateTravelRuleConfig: async (idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/screening/travel_rule/policy_configuration`; + // 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}; + 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, + }; + }, + } +}; + +/** + * ComplianceApi - functional programming interface + * @export + */ +export const ComplianceApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ComplianceApiAxiosParamCreator(configuration) + return { + /** + * Get the post-screening policy for AML. + * @summary AML - View Post-Screening Policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getAmlPostScreeningPolicy(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAmlPostScreeningPolicy(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ComplianceApi.getAmlPostScreeningPolicy']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Get the screening policy for AML. + * @summary AML - View Screening Policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getAmlScreeningPolicy(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAmlScreeningPolicy(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ComplianceApi.getAmlScreeningPolicy']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Get the post-screening policy for Travel Rule. + * @summary Travel Rule - View Post-Screening Policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getPostScreeningPolicy(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPostScreeningPolicy(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ComplianceApi.getPostScreeningPolicy']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Get the screening policy for Travel Rule. + * @summary Travel Rule - View Screening Policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getScreeningPolicy(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getScreeningPolicy(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ComplianceApi.getScreeningPolicy']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Updates bypass screening, inbound delay, or outbound delay configurations for AML. + * @summary Update AML Configuration + * @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 updateAmlScreeningConfiguration(idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateAmlScreeningConfiguration(idempotencyKey, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ComplianceApi.updateAmlScreeningConfiguration']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Update tenant screening configuration. + * @summary Tenant - Screening Configuration + * @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 updateScreeningConfiguration(idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateScreeningConfiguration(idempotencyKey, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ComplianceApi.updateScreeningConfiguration']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Updates bypass screening, inbound delay, or outbound delay configurations for Travel Rule. + * @summary Update Travel Rule Configuration + * @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 updateTravelRuleConfig(idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateTravelRuleConfig(idempotencyKey, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ComplianceApi.updateTravelRuleConfig']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + } +}; + +/** + * ComplianceApi - factory interface + * @export + */ +export const ComplianceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ComplianceApiFp(configuration) + return { + /** + * Get the post-screening policy for AML. + * @summary AML - View Post-Screening Policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAmlPostScreeningPolicy(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getAmlPostScreeningPolicy(options).then((request) => request(axios, basePath)); + }, + /** + * Get the screening policy for AML. + * @summary AML - View Screening Policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAmlScreeningPolicy(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getAmlScreeningPolicy(options).then((request) => request(axios, basePath)); + }, + /** + * Get the post-screening policy for Travel Rule. + * @summary Travel Rule - View Post-Screening Policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPostScreeningPolicy(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getPostScreeningPolicy(options).then((request) => request(axios, basePath)); + }, + /** + * Get the screening policy for Travel Rule. + * @summary Travel Rule - View Screening Policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getScreeningPolicy(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getScreeningPolicy(options).then((request) => request(axios, basePath)); + }, + /** + * Updates bypass screening, inbound delay, or outbound delay configurations for AML. + * @summary Update AML Configuration + * @param {ComplianceApiUpdateAmlScreeningConfigurationRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateAmlScreeningConfiguration(requestParameters: ComplianceApiUpdateAmlScreeningConfigurationRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updateAmlScreeningConfiguration(requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + }, + /** + * Update tenant screening configuration. + * @summary Tenant - Screening Configuration + * @param {ComplianceApiUpdateScreeningConfigurationRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateScreeningConfiguration(requestParameters: ComplianceApiUpdateScreeningConfigurationRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updateScreeningConfiguration(requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + }, + /** + * Updates bypass screening, inbound delay, or outbound delay configurations for Travel Rule. + * @summary Update Travel Rule Configuration + * @param {ComplianceApiUpdateTravelRuleConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateTravelRuleConfig(requestParameters: ComplianceApiUpdateTravelRuleConfigRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updateTravelRuleConfig(requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for updateAmlScreeningConfiguration operation in ComplianceApi. + * @export + * @interface ComplianceApiUpdateAmlScreeningConfigurationRequest + */ +export interface ComplianceApiUpdateAmlScreeningConfigurationRequest { + /** + * 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 ComplianceApiUpdateAmlScreeningConfiguration + */ + readonly idempotencyKey?: string +} + +/** + * Request parameters for updateScreeningConfiguration operation in ComplianceApi. + * @export + * @interface ComplianceApiUpdateScreeningConfigurationRequest + */ +export interface ComplianceApiUpdateScreeningConfigurationRequest { + /** + * 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 ComplianceApiUpdateScreeningConfiguration + */ + readonly idempotencyKey?: string +} + +/** + * Request parameters for updateTravelRuleConfig operation in ComplianceApi. + * @export + * @interface ComplianceApiUpdateTravelRuleConfigRequest + */ +export interface ComplianceApiUpdateTravelRuleConfigRequest { + /** + * 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 ComplianceApiUpdateTravelRuleConfig + */ + readonly idempotencyKey?: string +} + +/** + * ComplianceApi - object-oriented interface + * @export + * @class ComplianceApi + * @extends {BaseAPI} + */ +export class ComplianceApi extends BaseAPI { + /** + * Get the post-screening policy for AML. + * @summary AML - View Post-Screening Policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ComplianceApi + */ + public getAmlPostScreeningPolicy() { + return ComplianceApiFp(this.configuration).getAmlPostScreeningPolicy().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Get the screening policy for AML. + * @summary AML - View Screening Policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ComplianceApi + */ + public getAmlScreeningPolicy() { + return ComplianceApiFp(this.configuration).getAmlScreeningPolicy().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Get the post-screening policy for Travel Rule. + * @summary Travel Rule - View Post-Screening Policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ComplianceApi + */ + public getPostScreeningPolicy() { + return ComplianceApiFp(this.configuration).getPostScreeningPolicy().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Get the screening policy for Travel Rule. + * @summary Travel Rule - View Screening Policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ComplianceApi + */ + public getScreeningPolicy() { + return ComplianceApiFp(this.configuration).getScreeningPolicy().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Updates bypass screening, inbound delay, or outbound delay configurations for AML. + * @summary Update AML Configuration + * @param {ComplianceApiUpdateAmlScreeningConfigurationRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ComplianceApi + */ + public updateAmlScreeningConfiguration(requestParameters: ComplianceApiUpdateAmlScreeningConfigurationRequest = {}) { + return ComplianceApiFp(this.configuration).updateAmlScreeningConfiguration(requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Update tenant screening configuration. + * @summary Tenant - Screening Configuration + * @param {ComplianceApiUpdateScreeningConfigurationRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ComplianceApi + */ + public updateScreeningConfiguration(requestParameters: ComplianceApiUpdateScreeningConfigurationRequest = {}) { + return ComplianceApiFp(this.configuration).updateScreeningConfiguration(requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Updates bypass screening, inbound delay, or outbound delay configurations for Travel Rule. + * @summary Update Travel Rule Configuration + * @param {ComplianceApiUpdateTravelRuleConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ComplianceApi + */ + public updateTravelRuleConfig(requestParameters: ComplianceApiUpdateTravelRuleConfigRequest = {}) { + return ComplianceApiFp(this.configuration).updateTravelRuleConfig(requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } +} + diff --git a/api/compliance-screening-configuration-api.ts b/api/compliance-screening-configuration-api.ts index 7324ab3..46f51d4 100644 --- a/api/compliance-screening-configuration-api.ts +++ b/api/compliance-screening-configuration-api.ts @@ -26,11 +26,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { TravelRuleConfigurationsRequest } from '../models'; -// @ts-ignore -import { TravelRulePolicyResponse } from '../models'; -// @ts-ignore -import { TravelRuleProviderRulesConfigurationResponse } from '../models'; +import { ScreeningConfigurationsRequest } from '../models'; /** * ComplianceScreeningConfigurationApi - axios parameter creator * @export @@ -38,13 +34,13 @@ import { TravelRuleProviderRulesConfigurationResponse } from '../models'; export const ComplianceScreeningConfigurationApiAxiosParamCreator = function (configuration?: Configuration) { return { /** - * Get the post-screening policy for Travel Rule. - * @summary Travel Rule - View Post-Screening Policy + * Retrieves the configuration for Travel Rule screening policy. + * @summary Get AML Screening Policy Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - travelRuleApiControllerGetPostScreeningPolicy: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/screening/travel_rule/post_screening_policy`; + getAmlScreeningConfiguration: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/screening/aml/policy_configuration`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -73,7 +69,7 @@ export const ComplianceScreeningConfigurationApiAxiosParamCreator = function (co * @param {*} [options] Override http request option. * @throws {RequiredError} */ - travelRuleApiControllerGetScreeningConfiguration: async (options: RawAxiosRequestConfig = {}): Promise => { + getScreeningConfiguration: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/screening/travel_rule/policy_configuration`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -88,71 +84,6 @@ export const ComplianceScreeningConfigurationApiAxiosParamCreator = function (co - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get the screening policy for Travel Rule. - * @summary Travel Rule - View Screening Policy - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - travelRuleApiControllerGetScreeningPolicy: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/screening/travel_rule/screening_policy`; - // 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}; - 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, - }; - }, - /** - * Updates bypass screening, inbound delay, or outbound delay configurations for Travel Rule. - * @summary Update Travel Rule Configuration - * @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} - */ - travelRuleApiControllerUpdateTravelRuleConfig: async (idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/screening/travel_rule/policy_configuration`; - // 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}; - 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}; @@ -173,15 +104,15 @@ export const ComplianceScreeningConfigurationApiFp = function(configuration?: Co const localVarAxiosParamCreator = ComplianceScreeningConfigurationApiAxiosParamCreator(configuration) return { /** - * Get the post-screening policy for Travel Rule. - * @summary Travel Rule - View Post-Screening Policy + * Retrieves the configuration for Travel Rule screening policy. + * @summary Get AML Screening Policy Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async travelRuleApiControllerGetPostScreeningPolicy(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.travelRuleApiControllerGetPostScreeningPolicy(options); + async getAmlScreeningConfiguration(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAmlScreeningConfiguration(options); const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ComplianceScreeningConfigurationApi.travelRuleApiControllerGetPostScreeningPolicy']?.[index]?.url; + const operationBasePath = operationServerMap['ComplianceScreeningConfigurationApi.getAmlScreeningConfiguration']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** @@ -190,35 +121,10 @@ export const ComplianceScreeningConfigurationApiFp = function(configuration?: Co * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async travelRuleApiControllerGetScreeningConfiguration(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.travelRuleApiControllerGetScreeningConfiguration(options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ComplianceScreeningConfigurationApi.travelRuleApiControllerGetScreeningConfiguration']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Get the screening policy for Travel Rule. - * @summary Travel Rule - View Screening Policy - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async travelRuleApiControllerGetScreeningPolicy(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.travelRuleApiControllerGetScreeningPolicy(options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ComplianceScreeningConfigurationApi.travelRuleApiControllerGetScreeningPolicy']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Updates bypass screening, inbound delay, or outbound delay configurations for Travel Rule. - * @summary Update Travel Rule Configuration - * @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 travelRuleApiControllerUpdateTravelRuleConfig(idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.travelRuleApiControllerUpdateTravelRuleConfig(idempotencyKey, options); + async getScreeningConfiguration(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getScreeningConfiguration(options); const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ComplianceScreeningConfigurationApi.travelRuleApiControllerUpdateTravelRuleConfig']?.[index]?.url; + const operationBasePath = operationServerMap['ComplianceScreeningConfigurationApi.getScreeningConfiguration']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, } @@ -232,13 +138,13 @@ export const ComplianceScreeningConfigurationApiFactory = function (configuratio const localVarFp = ComplianceScreeningConfigurationApiFp(configuration) return { /** - * Get the post-screening policy for Travel Rule. - * @summary Travel Rule - View Post-Screening Policy + * Retrieves the configuration for Travel Rule screening policy. + * @summary Get AML Screening Policy Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - travelRuleApiControllerGetPostScreeningPolicy(options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.travelRuleApiControllerGetPostScreeningPolicy(options).then((request) => request(axios, basePath)); + getAmlScreeningConfiguration(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getAmlScreeningConfiguration(options).then((request) => request(axios, basePath)); }, /** * Retrieves the configuration for Travel Rule screening policy. @@ -246,45 +152,12 @@ export const ComplianceScreeningConfigurationApiFactory = function (configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - travelRuleApiControllerGetScreeningConfiguration(options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.travelRuleApiControllerGetScreeningConfiguration(options).then((request) => request(axios, basePath)); - }, - /** - * Get the screening policy for Travel Rule. - * @summary Travel Rule - View Screening Policy - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - travelRuleApiControllerGetScreeningPolicy(options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.travelRuleApiControllerGetScreeningPolicy(options).then((request) => request(axios, basePath)); - }, - /** - * Updates bypass screening, inbound delay, or outbound delay configurations for Travel Rule. - * @summary Update Travel Rule Configuration - * @param {ComplianceScreeningConfigurationApiTravelRuleApiControllerUpdateTravelRuleConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - travelRuleApiControllerUpdateTravelRuleConfig(requestParameters: ComplianceScreeningConfigurationApiTravelRuleApiControllerUpdateTravelRuleConfigRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.travelRuleApiControllerUpdateTravelRuleConfig(requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + getScreeningConfiguration(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getScreeningConfiguration(options).then((request) => request(axios, basePath)); }, }; }; -/** - * Request parameters for travelRuleApiControllerUpdateTravelRuleConfig operation in ComplianceScreeningConfigurationApi. - * @export - * @interface ComplianceScreeningConfigurationApiTravelRuleApiControllerUpdateTravelRuleConfigRequest - */ -export interface ComplianceScreeningConfigurationApiTravelRuleApiControllerUpdateTravelRuleConfigRequest { - /** - * 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 ComplianceScreeningConfigurationApiTravelRuleApiControllerUpdateTravelRuleConfig - */ - readonly idempotencyKey?: string -} - /** * ComplianceScreeningConfigurationApi - object-oriented interface * @export @@ -293,14 +166,14 @@ export interface ComplianceScreeningConfigurationApiTravelRuleApiControllerUpdat */ export class ComplianceScreeningConfigurationApi extends BaseAPI { /** - * Get the post-screening policy for Travel Rule. - * @summary Travel Rule - View Post-Screening Policy + * Retrieves the configuration for Travel Rule screening policy. + * @summary Get AML Screening Policy Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceScreeningConfigurationApi */ - public travelRuleApiControllerGetPostScreeningPolicy() { - return ComplianceScreeningConfigurationApiFp(this.configuration).travelRuleApiControllerGetPostScreeningPolicy().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + public getAmlScreeningConfiguration() { + return ComplianceScreeningConfigurationApiFp(this.configuration).getAmlScreeningConfiguration().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** @@ -310,31 +183,8 @@ export class ComplianceScreeningConfigurationApi extends BaseAPI { * @throws {RequiredError} * @memberof ComplianceScreeningConfigurationApi */ - public travelRuleApiControllerGetScreeningConfiguration() { - return ComplianceScreeningConfigurationApiFp(this.configuration).travelRuleApiControllerGetScreeningConfiguration().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); - } - - /** - * Get the screening policy for Travel Rule. - * @summary Travel Rule - View Screening Policy - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ComplianceScreeningConfigurationApi - */ - public travelRuleApiControllerGetScreeningPolicy() { - return ComplianceScreeningConfigurationApiFp(this.configuration).travelRuleApiControllerGetScreeningPolicy().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); - } - - /** - * Updates bypass screening, inbound delay, or outbound delay configurations for Travel Rule. - * @summary Update Travel Rule Configuration - * @param {ComplianceScreeningConfigurationApiTravelRuleApiControllerUpdateTravelRuleConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ComplianceScreeningConfigurationApi - */ - public travelRuleApiControllerUpdateTravelRuleConfig(requestParameters: ComplianceScreeningConfigurationApiTravelRuleApiControllerUpdateTravelRuleConfigRequest = {}) { - return ComplianceScreeningConfigurationApiFp(this.configuration).travelRuleApiControllerUpdateTravelRuleConfig(requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + public getScreeningConfiguration() { + return ComplianceScreeningConfigurationApiFp(this.configuration).getScreeningConfiguration().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } } diff --git a/api/external-wallets-api.ts b/api/external-wallets-api.ts index 9e97aa8..b7a3736 100644 --- a/api/external-wallets-api.ts +++ b/api/external-wallets-api.ts @@ -28,13 +28,13 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, ope // @ts-ignore import { AddAssetToExternalWalletRequest } from '../models'; // @ts-ignore -import { CreateInternalWalletRequest } from '../models'; +import { CreateWalletRequest } from '../models'; // @ts-ignore import { ErrorSchema } from '../models'; // @ts-ignore import { ExternalWalletAsset } from '../models'; // @ts-ignore -import { SetCustomerRefIdForVaultAccountRequest } from '../models'; +import { SetCustomerRefIdRequest } from '../models'; // @ts-ignore import { UnmanagedWallet } from '../models'; /** @@ -93,12 +93,12 @@ export const ExternalWalletsApiAxiosParamCreator = function (configuration?: Con /** * Creates a new external wallet with the requested name. * @summary Create an external wallet - * @param {CreateInternalWalletRequest} [createInternalWalletRequest] + * @param {CreateWalletRequest} [createWalletRequest] * @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} */ - createExternalWallet: async (createInternalWalletRequest?: CreateInternalWalletRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + createExternalWallet: async (createWalletRequest?: CreateWalletRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/external_wallets`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -122,7 +122,7 @@ export const ExternalWalletsApiAxiosParamCreator = function (configuration?: Con setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(createInternalWalletRequest, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(createWalletRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -306,17 +306,17 @@ export const ExternalWalletsApiAxiosParamCreator = function (configuration?: Con /** * Sets an AML/KYT customer reference ID for the specific external wallet. * @summary Set an AML customer reference ID for an external wallet - * @param {SetCustomerRefIdForVaultAccountRequest} setCustomerRefIdForVaultAccountRequest + * @param {SetCustomerRefIdRequest} setCustomerRefIdRequest * @param {string} walletId The 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} */ - setCustomerRefIdForExternalWallet: async (setCustomerRefIdForVaultAccountRequest: SetCustomerRefIdForVaultAccountRequest, walletId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'setCustomerRefIdForVaultAccountRequest' is not null or undefined - assertParamExists('setCustomerRefIdForExternalWallet', 'setCustomerRefIdForVaultAccountRequest', setCustomerRefIdForVaultAccountRequest) + setExternalWalletCustomerRefId: async (setCustomerRefIdRequest: SetCustomerRefIdRequest, walletId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'setCustomerRefIdRequest' is not null or undefined + assertParamExists('setExternalWalletCustomerRefId', 'setCustomerRefIdRequest', setCustomerRefIdRequest) // verify required parameter 'walletId' is not null or undefined - assertParamExists('setCustomerRefIdForExternalWallet', 'walletId', walletId) + assertParamExists('setExternalWalletCustomerRefId', 'walletId', walletId) const localVarPath = `/external_wallets/{walletId}/set_customer_ref_id` .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -341,7 +341,7 @@ export const ExternalWalletsApiAxiosParamCreator = function (configuration?: Con setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(setCustomerRefIdForVaultAccountRequest, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(setCustomerRefIdRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -377,13 +377,13 @@ export const ExternalWalletsApiFp = function(configuration?: Configuration) { /** * Creates a new external wallet with the requested name. * @summary Create an external wallet - * @param {CreateInternalWalletRequest} [createInternalWalletRequest] + * @param {CreateWalletRequest} [createWalletRequest] * @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 createExternalWallet(createInternalWalletRequest?: CreateInternalWalletRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createExternalWallet(createInternalWalletRequest, idempotencyKey, options); + async createExternalWallet(createWalletRequest?: CreateWalletRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createExternalWallet(createWalletRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ExternalWalletsApi.createExternalWallet']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -457,16 +457,16 @@ export const ExternalWalletsApiFp = function(configuration?: Configuration) { /** * Sets an AML/KYT customer reference ID for the specific external wallet. * @summary Set an AML customer reference ID for an external wallet - * @param {SetCustomerRefIdForVaultAccountRequest} setCustomerRefIdForVaultAccountRequest + * @param {SetCustomerRefIdRequest} setCustomerRefIdRequest * @param {string} walletId The 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 setCustomerRefIdForExternalWallet(setCustomerRefIdForVaultAccountRequest: SetCustomerRefIdForVaultAccountRequest, walletId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.setCustomerRefIdForExternalWallet(setCustomerRefIdForVaultAccountRequest, walletId, idempotencyKey, options); + async setExternalWalletCustomerRefId(setCustomerRefIdRequest: SetCustomerRefIdRequest, walletId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.setExternalWalletCustomerRefId(setCustomerRefIdRequest, walletId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ExternalWalletsApi.setCustomerRefIdForExternalWallet']?.[index]?.url; + const operationBasePath = operationServerMap['ExternalWalletsApi.setExternalWalletCustomerRefId']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, } @@ -497,7 +497,7 @@ export const ExternalWalletsApiFactory = function (configuration?: Configuration * @throws {RequiredError} */ createExternalWallet(requestParameters: ExternalWalletsApiCreateExternalWalletRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.createExternalWallet(requestParameters.createInternalWalletRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + return localVarFp.createExternalWallet(requestParameters.createWalletRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Deletes an external wallet by ID. @@ -551,12 +551,12 @@ export const ExternalWalletsApiFactory = function (configuration?: Configuration /** * Sets an AML/KYT customer reference ID for the specific external wallet. * @summary Set an AML customer reference ID for an external wallet - * @param {ExternalWalletsApiSetCustomerRefIdForExternalWalletRequest} requestParameters Request parameters. + * @param {ExternalWalletsApiSetExternalWalletCustomerRefIdRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setCustomerRefIdForExternalWallet(requestParameters: ExternalWalletsApiSetCustomerRefIdForExternalWalletRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.setCustomerRefIdForExternalWallet(requestParameters.setCustomerRefIdForVaultAccountRequest, requestParameters.walletId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + setExternalWalletCustomerRefId(requestParameters: ExternalWalletsApiSetExternalWalletCustomerRefIdRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.setExternalWalletCustomerRefId(requestParameters.setCustomerRefIdRequest, requestParameters.walletId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, }; }; @@ -604,10 +604,10 @@ export interface ExternalWalletsApiAddAssetToExternalWalletRequest { export interface ExternalWalletsApiCreateExternalWalletRequest { /** * - * @type {CreateInternalWalletRequest} + * @type {CreateWalletRequest} * @memberof ExternalWalletsApiCreateExternalWallet */ - readonly createInternalWalletRequest?: CreateInternalWalletRequest + readonly createWalletRequest?: CreateWalletRequest /** * 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. @@ -688,29 +688,29 @@ export interface ExternalWalletsApiRemoveAssetFromExternalWalletRequest { } /** - * Request parameters for setCustomerRefIdForExternalWallet operation in ExternalWalletsApi. + * Request parameters for setExternalWalletCustomerRefId operation in ExternalWalletsApi. * @export - * @interface ExternalWalletsApiSetCustomerRefIdForExternalWalletRequest + * @interface ExternalWalletsApiSetExternalWalletCustomerRefIdRequest */ -export interface ExternalWalletsApiSetCustomerRefIdForExternalWalletRequest { +export interface ExternalWalletsApiSetExternalWalletCustomerRefIdRequest { /** * - * @type {SetCustomerRefIdForVaultAccountRequest} - * @memberof ExternalWalletsApiSetCustomerRefIdForExternalWallet + * @type {SetCustomerRefIdRequest} + * @memberof ExternalWalletsApiSetExternalWalletCustomerRefId */ - readonly setCustomerRefIdForVaultAccountRequest: SetCustomerRefIdForVaultAccountRequest + readonly setCustomerRefIdRequest: SetCustomerRefIdRequest /** * The wallet ID * @type {string} - * @memberof ExternalWalletsApiSetCustomerRefIdForExternalWallet + * @memberof ExternalWalletsApiSetExternalWalletCustomerRefId */ 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 ExternalWalletsApiSetCustomerRefIdForExternalWallet + * @memberof ExternalWalletsApiSetExternalWalletCustomerRefId */ readonly idempotencyKey?: string } @@ -743,7 +743,7 @@ export class ExternalWalletsApi extends BaseAPI { * @memberof ExternalWalletsApi */ public createExternalWallet(requestParameters: ExternalWalletsApiCreateExternalWalletRequest = {}) { - return ExternalWalletsApiFp(this.configuration).createExternalWallet(requestParameters.createInternalWalletRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return ExternalWalletsApiFp(this.configuration).createExternalWallet(requestParameters.createWalletRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** @@ -808,13 +808,13 @@ export class ExternalWalletsApi extends BaseAPI { /** * Sets an AML/KYT customer reference ID for the specific external wallet. * @summary Set an AML customer reference ID for an external wallet - * @param {ExternalWalletsApiSetCustomerRefIdForExternalWalletRequest} requestParameters Request parameters. + * @param {ExternalWalletsApiSetExternalWalletCustomerRefIdRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ExternalWalletsApi */ - public setCustomerRefIdForExternalWallet(requestParameters: ExternalWalletsApiSetCustomerRefIdForExternalWalletRequest) { - return ExternalWalletsApiFp(this.configuration).setCustomerRefIdForExternalWallet(requestParameters.setCustomerRefIdForVaultAccountRequest, requestParameters.walletId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + public setExternalWalletCustomerRefId(requestParameters: ExternalWalletsApiSetExternalWalletCustomerRefIdRequest) { + return ExternalWalletsApiFp(this.configuration).setExternalWalletCustomerRefId(requestParameters.setCustomerRefIdRequest, requestParameters.walletId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } } diff --git a/api/fiat-accounts-api.ts b/api/fiat-accounts-api.ts index 6789a04..fe1ec83 100644 --- a/api/fiat-accounts-api.ts +++ b/api/fiat-accounts-api.ts @@ -30,7 +30,7 @@ import { ErrorSchema } from '../models'; // @ts-ignore import { FiatAccount } from '../models'; // @ts-ignore -import { RedeemFundsToLinkedDdaRequest } from '../models'; +import { Funds } from '../models'; /** * FiatAccountsApi - axios parameter creator * @export @@ -41,12 +41,12 @@ export const FiatAccountsApiAxiosParamCreator = function (configuration?: Config * Deposits funds from the linked DDA. * @summary Deposit funds from DDA * @param {string} accountId The ID of the fiat account to use - * @param {RedeemFundsToLinkedDdaRequest} [redeemFundsToLinkedDdaRequest] + * @param {Funds} [funds] * @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} */ - depositFundsFromLinkedDDA: async (accountId: string, redeemFundsToLinkedDdaRequest?: RedeemFundsToLinkedDdaRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + depositFundsFromLinkedDDA: async (accountId: string, funds?: Funds, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('depositFundsFromLinkedDDA', 'accountId', accountId) const localVarPath = `/fiat_accounts/{accountId}/deposit_from_linked_dda` @@ -73,7 +73,7 @@ export const FiatAccountsApiAxiosParamCreator = function (configuration?: Config setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(redeemFundsToLinkedDdaRequest, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(funds, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -148,14 +148,14 @@ export const FiatAccountsApiAxiosParamCreator = function (configuration?: Config * Redeems funds to the linked DDA. * @summary Redeem funds to DDA * @param {string} accountId The ID of the fiat account to use - * @param {RedeemFundsToLinkedDdaRequest} [redeemFundsToLinkedDdaRequest] + * @param {Funds} [funds] * @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} */ - redeemFundsToLinkedDda: async (accountId: string, redeemFundsToLinkedDdaRequest?: RedeemFundsToLinkedDdaRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + redeemFundsToLinkedDDA: async (accountId: string, funds?: Funds, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined - assertParamExists('redeemFundsToLinkedDda', 'accountId', accountId) + assertParamExists('redeemFundsToLinkedDDA', 'accountId', accountId) const localVarPath = `/fiat_accounts/{accountId}/redeem_to_linked_dda` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -180,7 +180,7 @@ export const FiatAccountsApiAxiosParamCreator = function (configuration?: Config setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(redeemFundsToLinkedDdaRequest, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(funds, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -201,13 +201,13 @@ export const FiatAccountsApiFp = function(configuration?: Configuration) { * Deposits funds from the linked DDA. * @summary Deposit funds from DDA * @param {string} accountId The ID of the fiat account to use - * @param {RedeemFundsToLinkedDdaRequest} [redeemFundsToLinkedDdaRequest] + * @param {Funds} [funds] * @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 depositFundsFromLinkedDDA(accountId: string, redeemFundsToLinkedDdaRequest?: RedeemFundsToLinkedDdaRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.depositFundsFromLinkedDDA(accountId, redeemFundsToLinkedDdaRequest, idempotencyKey, options); + async depositFundsFromLinkedDDA(accountId: string, funds?: Funds, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.depositFundsFromLinkedDDA(accountId, funds, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FiatAccountsApi.depositFundsFromLinkedDDA']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -241,15 +241,15 @@ export const FiatAccountsApiFp = function(configuration?: Configuration) { * Redeems funds to the linked DDA. * @summary Redeem funds to DDA * @param {string} accountId The ID of the fiat account to use - * @param {RedeemFundsToLinkedDdaRequest} [redeemFundsToLinkedDdaRequest] + * @param {Funds} [funds] * @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 redeemFundsToLinkedDda(accountId: string, redeemFundsToLinkedDdaRequest?: RedeemFundsToLinkedDdaRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.redeemFundsToLinkedDda(accountId, redeemFundsToLinkedDdaRequest, idempotencyKey, options); + async redeemFundsToLinkedDDA(accountId: string, funds?: Funds, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.redeemFundsToLinkedDDA(accountId, funds, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['FiatAccountsApi.redeemFundsToLinkedDda']?.[index]?.url; + const operationBasePath = operationServerMap['FiatAccountsApi.redeemFundsToLinkedDDA']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, } @@ -270,7 +270,7 @@ export const FiatAccountsApiFactory = function (configuration?: Configuration, b * @throws {RequiredError} */ depositFundsFromLinkedDDA(requestParameters: FiatAccountsApiDepositFundsFromLinkedDDARequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.depositFundsFromLinkedDDA(requestParameters.accountId, requestParameters.redeemFundsToLinkedDdaRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + return localVarFp.depositFundsFromLinkedDDA(requestParameters.accountId, requestParameters.funds, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Returns a fiat account by ID. @@ -294,12 +294,12 @@ export const FiatAccountsApiFactory = function (configuration?: Configuration, b /** * Redeems funds to the linked DDA. * @summary Redeem funds to DDA - * @param {FiatAccountsApiRedeemFundsToLinkedDdaRequest} requestParameters Request parameters. + * @param {FiatAccountsApiRedeemFundsToLinkedDDARequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - redeemFundsToLinkedDda(requestParameters: FiatAccountsApiRedeemFundsToLinkedDdaRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.redeemFundsToLinkedDda(requestParameters.accountId, requestParameters.redeemFundsToLinkedDdaRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + redeemFundsToLinkedDDA(requestParameters: FiatAccountsApiRedeemFundsToLinkedDDARequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.redeemFundsToLinkedDDA(requestParameters.accountId, requestParameters.funds, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, }; }; @@ -319,10 +319,10 @@ export interface FiatAccountsApiDepositFundsFromLinkedDDARequest { /** * - * @type {RedeemFundsToLinkedDdaRequest} + * @type {Funds} * @memberof FiatAccountsApiDepositFundsFromLinkedDDA */ - readonly redeemFundsToLinkedDdaRequest?: RedeemFundsToLinkedDdaRequest + readonly funds?: Funds /** * 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. @@ -347,29 +347,29 @@ export interface FiatAccountsApiGetFiatAccountRequest { } /** - * Request parameters for redeemFundsToLinkedDda operation in FiatAccountsApi. + * Request parameters for redeemFundsToLinkedDDA operation in FiatAccountsApi. * @export - * @interface FiatAccountsApiRedeemFundsToLinkedDdaRequest + * @interface FiatAccountsApiRedeemFundsToLinkedDDARequest */ -export interface FiatAccountsApiRedeemFundsToLinkedDdaRequest { +export interface FiatAccountsApiRedeemFundsToLinkedDDARequest { /** * The ID of the fiat account to use * @type {string} - * @memberof FiatAccountsApiRedeemFundsToLinkedDda + * @memberof FiatAccountsApiRedeemFundsToLinkedDDA */ readonly accountId: string /** * - * @type {RedeemFundsToLinkedDdaRequest} - * @memberof FiatAccountsApiRedeemFundsToLinkedDda + * @type {Funds} + * @memberof FiatAccountsApiRedeemFundsToLinkedDDA */ - readonly redeemFundsToLinkedDdaRequest?: RedeemFundsToLinkedDdaRequest + readonly funds?: Funds /** * 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 FiatAccountsApiRedeemFundsToLinkedDda + * @memberof FiatAccountsApiRedeemFundsToLinkedDDA */ readonly idempotencyKey?: string } @@ -390,7 +390,7 @@ export class FiatAccountsApi extends BaseAPI { * @memberof FiatAccountsApi */ public depositFundsFromLinkedDDA(requestParameters: FiatAccountsApiDepositFundsFromLinkedDDARequest) { - return FiatAccountsApiFp(this.configuration).depositFundsFromLinkedDDA(requestParameters.accountId, requestParameters.redeemFundsToLinkedDdaRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return FiatAccountsApiFp(this.configuration).depositFundsFromLinkedDDA(requestParameters.accountId, requestParameters.funds, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** @@ -419,13 +419,13 @@ export class FiatAccountsApi extends BaseAPI { /** * Redeems funds to the linked DDA. * @summary Redeem funds to DDA - * @param {FiatAccountsApiRedeemFundsToLinkedDdaRequest} requestParameters Request parameters. + * @param {FiatAccountsApiRedeemFundsToLinkedDDARequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FiatAccountsApi */ - public redeemFundsToLinkedDda(requestParameters: FiatAccountsApiRedeemFundsToLinkedDdaRequest) { - return FiatAccountsApiFp(this.configuration).redeemFundsToLinkedDda(requestParameters.accountId, requestParameters.redeemFundsToLinkedDdaRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + public redeemFundsToLinkedDDA(requestParameters: FiatAccountsApiRedeemFundsToLinkedDDARequest) { + return FiatAccountsApiFp(this.configuration).redeemFundsToLinkedDDA(requestParameters.accountId, requestParameters.funds, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } } diff --git a/api/internal-wallets-api.ts b/api/internal-wallets-api.ts index f4d6145..fb5f6d5 100644 --- a/api/internal-wallets-api.ts +++ b/api/internal-wallets-api.ts @@ -28,11 +28,11 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, ope // @ts-ignore import { CreateInternalWalletAssetRequest } from '../models'; // @ts-ignore -import { CreateInternalWalletRequest } from '../models'; +import { CreateWalletRequest } from '../models'; // @ts-ignore import { ErrorSchema } from '../models'; // @ts-ignore -import { SetCustomerRefIdForVaultAccountRequest } from '../models'; +import { SetCustomerRefIdRequest } from '../models'; // @ts-ignore import { UnmanagedWallet } from '../models'; // @ts-ignore @@ -46,12 +46,12 @@ export const InternalWalletsApiAxiosParamCreator = function (configuration?: Con /** * Creates a new internal wallet with the requested name. * @summary Create an internal wallet - * @param {CreateInternalWalletRequest} [createInternalWalletRequest] + * @param {CreateWalletRequest} [createWalletRequest] * @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} */ - createInternalWallet: async (createInternalWalletRequest?: CreateInternalWalletRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + createInternalWallet: async (createWalletRequest?: CreateWalletRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/internal_wallets`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -75,7 +75,7 @@ export const InternalWalletsApiAxiosParamCreator = function (configuration?: Con setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(createInternalWalletRequest, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(createWalletRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -306,15 +306,15 @@ export const InternalWalletsApiAxiosParamCreator = function (configuration?: Con /** * Sets an AML/KYT customer reference ID for the specific internal wallet. * @summary Set an AML/KYT customer reference ID for an internal wallet - * @param {SetCustomerRefIdForVaultAccountRequest} setCustomerRefIdForVaultAccountRequest + * @param {SetCustomerRefIdRequest} setCustomerRefIdRequest * @param {string} walletId The 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} */ - setCustomerRefIdForInternalWallet: async (setCustomerRefIdForVaultAccountRequest: SetCustomerRefIdForVaultAccountRequest, walletId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'setCustomerRefIdForVaultAccountRequest' is not null or undefined - assertParamExists('setCustomerRefIdForInternalWallet', 'setCustomerRefIdForVaultAccountRequest', setCustomerRefIdForVaultAccountRequest) + setCustomerRefIdForInternalWallet: async (setCustomerRefIdRequest: SetCustomerRefIdRequest, walletId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'setCustomerRefIdRequest' is not null or undefined + assertParamExists('setCustomerRefIdForInternalWallet', 'setCustomerRefIdRequest', setCustomerRefIdRequest) // verify required parameter 'walletId' is not null or undefined assertParamExists('setCustomerRefIdForInternalWallet', 'walletId', walletId) const localVarPath = `/internal_wallets/{walletId}/set_customer_ref_id` @@ -341,7 +341,7 @@ export const InternalWalletsApiAxiosParamCreator = function (configuration?: Con setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(setCustomerRefIdForVaultAccountRequest, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(setCustomerRefIdRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -361,13 +361,13 @@ export const InternalWalletsApiFp = function(configuration?: Configuration) { /** * Creates a new internal wallet with the requested name. * @summary Create an internal wallet - * @param {CreateInternalWalletRequest} [createInternalWalletRequest] + * @param {CreateWalletRequest} [createWalletRequest] * @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 createInternalWallet(createInternalWalletRequest?: CreateInternalWalletRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createInternalWallet(createInternalWalletRequest, idempotencyKey, options); + async createInternalWallet(createWalletRequest?: CreateWalletRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createInternalWallet(createWalletRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['InternalWalletsApi.createInternalWallet']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -457,14 +457,14 @@ export const InternalWalletsApiFp = function(configuration?: Configuration) { /** * Sets an AML/KYT customer reference ID for the specific internal wallet. * @summary Set an AML/KYT customer reference ID for an internal wallet - * @param {SetCustomerRefIdForVaultAccountRequest} setCustomerRefIdForVaultAccountRequest + * @param {SetCustomerRefIdRequest} setCustomerRefIdRequest * @param {string} walletId The 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 setCustomerRefIdForInternalWallet(setCustomerRefIdForVaultAccountRequest: SetCustomerRefIdForVaultAccountRequest, walletId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.setCustomerRefIdForInternalWallet(setCustomerRefIdForVaultAccountRequest, walletId, idempotencyKey, options); + async setCustomerRefIdForInternalWallet(setCustomerRefIdRequest: SetCustomerRefIdRequest, walletId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.setCustomerRefIdForInternalWallet(setCustomerRefIdRequest, walletId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['InternalWalletsApi.setCustomerRefIdForInternalWallet']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -487,7 +487,7 @@ export const InternalWalletsApiFactory = function (configuration?: Configuration * @throws {RequiredError} */ createInternalWallet(requestParameters: InternalWalletsApiCreateInternalWalletRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.createInternalWallet(requestParameters.createInternalWalletRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + return localVarFp.createInternalWallet(requestParameters.createWalletRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Adds an asset to an existing internal wallet. @@ -556,7 +556,7 @@ export const InternalWalletsApiFactory = function (configuration?: Configuration * @throws {RequiredError} */ setCustomerRefIdForInternalWallet(requestParameters: InternalWalletsApiSetCustomerRefIdForInternalWalletRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.setCustomerRefIdForInternalWallet(requestParameters.setCustomerRefIdForVaultAccountRequest, requestParameters.walletId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + return localVarFp.setCustomerRefIdForInternalWallet(requestParameters.setCustomerRefIdRequest, requestParameters.walletId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, }; }; @@ -569,10 +569,10 @@ export const InternalWalletsApiFactory = function (configuration?: Configuration export interface InternalWalletsApiCreateInternalWalletRequest { /** * - * @type {CreateInternalWalletRequest} + * @type {CreateWalletRequest} * @memberof InternalWalletsApiCreateInternalWallet */ - readonly createInternalWalletRequest?: CreateInternalWalletRequest + readonly createWalletRequest?: CreateWalletRequest /** * 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. @@ -695,10 +695,10 @@ export interface InternalWalletsApiGetInternalWalletAssetRequest { export interface InternalWalletsApiSetCustomerRefIdForInternalWalletRequest { /** * - * @type {SetCustomerRefIdForVaultAccountRequest} + * @type {SetCustomerRefIdRequest} * @memberof InternalWalletsApiSetCustomerRefIdForInternalWallet */ - readonly setCustomerRefIdForVaultAccountRequest: SetCustomerRefIdForVaultAccountRequest + readonly setCustomerRefIdRequest: SetCustomerRefIdRequest /** * The wallet ID @@ -731,7 +731,7 @@ export class InternalWalletsApi extends BaseAPI { * @memberof InternalWalletsApi */ public createInternalWallet(requestParameters: InternalWalletsApiCreateInternalWalletRequest = {}) { - return InternalWalletsApiFp(this.configuration).createInternalWallet(requestParameters.createInternalWalletRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return InternalWalletsApiFp(this.configuration).createInternalWallet(requestParameters.createWalletRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** @@ -814,7 +814,7 @@ export class InternalWalletsApi extends BaseAPI { * @memberof InternalWalletsApi */ public setCustomerRefIdForInternalWallet(requestParameters: InternalWalletsApiSetCustomerRefIdForInternalWalletRequest) { - return InternalWalletsApiFp(this.configuration).setCustomerRefIdForInternalWallet(requestParameters.setCustomerRefIdForVaultAccountRequest, requestParameters.walletId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return InternalWalletsApiFp(this.configuration).setCustomerRefIdForInternalWallet(requestParameters.setCustomerRefIdRequest, requestParameters.walletId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } } diff --git a/api/fireblocks-public-openapi-other-api.ts b/api/job-management-api.ts similarity index 76% rename from api/fireblocks-public-openapi-other-api.ts rename to api/job-management-api.ts index 7c84e78..c0f0171 100644 --- a/api/fireblocks-public-openapi-other-api.ts +++ b/api/job-management-api.ts @@ -32,10 +32,10 @@ import { Job } from '../models'; // @ts-ignore import { Task } from '../models'; /** - * FireblocksPublicOpenapiOtherApi - axios parameter creator + * JobManagementApi - axios parameter creator * @export */ -export const FireblocksPublicOpenapiOtherApiAxiosParamCreator = function (configuration?: Configuration) { +export const JobManagementApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Stop the given job immediately. If the job is in the ‘Active’ state, the job will be canceled after completing the current task. Vault accounts and Wallets that are already created will not be affected. @@ -266,11 +266,11 @@ export const FireblocksPublicOpenapiOtherApiAxiosParamCreator = function (config }; /** - * FireblocksPublicOpenapiOtherApi - functional programming interface + * JobManagementApi - functional programming interface * @export */ -export const FireblocksPublicOpenapiOtherApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = FireblocksPublicOpenapiOtherApiAxiosParamCreator(configuration) +export const JobManagementApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = JobManagementApiAxiosParamCreator(configuration) return { /** * Stop the given job immediately. If the job is in the ‘Active’ state, the job will be canceled after completing the current task. Vault accounts and Wallets that are already created will not be affected. @@ -283,7 +283,7 @@ export const FireblocksPublicOpenapiOtherApiFp = function(configuration?: Config async cancelJob(jobId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.cancelJob(jobId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['FireblocksPublicOpenapiOtherApi.cancelJob']?.[index]?.url; + const operationBasePath = operationServerMap['JobManagementApi.cancelJob']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** @@ -297,7 +297,7 @@ export const FireblocksPublicOpenapiOtherApiFp = function(configuration?: Config async continueJob(jobId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.continueJob(jobId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['FireblocksPublicOpenapiOtherApi.continueJob']?.[index]?.url; + const operationBasePath = operationServerMap['JobManagementApi.continueJob']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** @@ -310,7 +310,7 @@ export const FireblocksPublicOpenapiOtherApiFp = function(configuration?: Config async getJob(jobId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getJob(jobId, options); const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['FireblocksPublicOpenapiOtherApi.getJob']?.[index]?.url; + const operationBasePath = operationServerMap['JobManagementApi.getJob']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** @@ -323,7 +323,7 @@ export const FireblocksPublicOpenapiOtherApiFp = function(configuration?: Config async getJobTasks(jobId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getJobTasks(jobId, options); const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['FireblocksPublicOpenapiOtherApi.getJobTasks']?.[index]?.url; + const operationBasePath = operationServerMap['JobManagementApi.getJobTasks']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** @@ -337,7 +337,7 @@ export const FireblocksPublicOpenapiOtherApiFp = function(configuration?: Config async getJobs(fromTime?: number, toTime?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getJobs(fromTime, toTime, options); const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['FireblocksPublicOpenapiOtherApi.getJobs']?.[index]?.url; + const operationBasePath = operationServerMap['JobManagementApi.getJobs']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** @@ -351,271 +351,271 @@ export const FireblocksPublicOpenapiOtherApiFp = function(configuration?: Config async pauseJob(jobId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.pauseJob(jobId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['FireblocksPublicOpenapiOtherApi.pauseJob']?.[index]?.url; + const operationBasePath = operationServerMap['JobManagementApi.pauseJob']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, } }; /** - * FireblocksPublicOpenapiOtherApi - factory interface + * JobManagementApi - factory interface * @export */ -export const FireblocksPublicOpenapiOtherApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = FireblocksPublicOpenapiOtherApiFp(configuration) +export const JobManagementApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = JobManagementApiFp(configuration) return { /** * Stop the given job immediately. If the job is in the ‘Active’ state, the job will be canceled after completing the current task. Vault accounts and Wallets that are already created will not be affected. * @summary Cancel a running job - * @param {FireblocksPublicOpenapiOtherApiCancelJobRequest} requestParameters Request parameters. + * @param {JobManagementApiCancelJobRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - cancelJob(requestParameters: FireblocksPublicOpenapiOtherApiCancelJobRequest, options?: RawAxiosRequestConfig): AxiosPromise { + cancelJob(requestParameters: JobManagementApiCancelJobRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.cancelJob(requestParameters.jobId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Continue the given paused job. * @summary Continue a paused job - * @param {FireblocksPublicOpenapiOtherApiContinueJobRequest} requestParameters Request parameters. + * @param {JobManagementApiContinueJobRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - continueJob(requestParameters: FireblocksPublicOpenapiOtherApiContinueJobRequest, options?: RawAxiosRequestConfig): AxiosPromise { + continueJob(requestParameters: JobManagementApiContinueJobRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.continueJob(requestParameters.jobId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Get an object describing the given job * @summary Get job details - * @param {FireblocksPublicOpenapiOtherApiGetJobRequest} requestParameters Request parameters. + * @param {JobManagementApiGetJobRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getJob(requestParameters: FireblocksPublicOpenapiOtherApiGetJobRequest, options?: RawAxiosRequestConfig): AxiosPromise { + getJob(requestParameters: JobManagementApiGetJobRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getJob(requestParameters.jobId, options).then((request) => request(axios, basePath)); }, /** * Return a list of tasks for given job * @summary Return a list of tasks for given job - * @param {FireblocksPublicOpenapiOtherApiGetJobTasksRequest} requestParameters Request parameters. + * @param {JobManagementApiGetJobTasksRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getJobTasks(requestParameters: FireblocksPublicOpenapiOtherApiGetJobTasksRequest, options?: RawAxiosRequestConfig): AxiosPromise> { + getJobTasks(requestParameters: JobManagementApiGetJobTasksRequest, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getJobTasks(requestParameters.jobId, options).then((request) => request(axios, basePath)); }, /** * Get an array of objects including all active, paused, canceled, and complete jobs in a workspace. * @summary Return a list of jobs belonging to tenant - * @param {FireblocksPublicOpenapiOtherApiGetJobsRequest} requestParameters Request parameters. + * @param {JobManagementApiGetJobsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getJobs(requestParameters: FireblocksPublicOpenapiOtherApiGetJobsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise> { + getJobs(requestParameters: JobManagementApiGetJobsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getJobs(requestParameters.fromTime, requestParameters.toTime, options).then((request) => request(axios, basePath)); }, /** * Pause the given job, after the current task is done. A paused job can later be resumed by calling ‘continue’, or canceled. * @summary Pause a job - * @param {FireblocksPublicOpenapiOtherApiPauseJobRequest} requestParameters Request parameters. + * @param {JobManagementApiPauseJobRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - pauseJob(requestParameters: FireblocksPublicOpenapiOtherApiPauseJobRequest, options?: RawAxiosRequestConfig): AxiosPromise { + pauseJob(requestParameters: JobManagementApiPauseJobRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.pauseJob(requestParameters.jobId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, }; }; /** - * Request parameters for cancelJob operation in FireblocksPublicOpenapiOtherApi. + * Request parameters for cancelJob operation in JobManagementApi. * @export - * @interface FireblocksPublicOpenapiOtherApiCancelJobRequest + * @interface JobManagementApiCancelJobRequest */ -export interface FireblocksPublicOpenapiOtherApiCancelJobRequest { +export interface JobManagementApiCancelJobRequest { /** * The requested job id * @type {string} - * @memberof FireblocksPublicOpenapiOtherApiCancelJob + * @memberof JobManagementApiCancelJob */ readonly jobId: 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 FireblocksPublicOpenapiOtherApiCancelJob + * @memberof JobManagementApiCancelJob */ readonly idempotencyKey?: string } /** - * Request parameters for continueJob operation in FireblocksPublicOpenapiOtherApi. + * Request parameters for continueJob operation in JobManagementApi. * @export - * @interface FireblocksPublicOpenapiOtherApiContinueJobRequest + * @interface JobManagementApiContinueJobRequest */ -export interface FireblocksPublicOpenapiOtherApiContinueJobRequest { +export interface JobManagementApiContinueJobRequest { /** * The requested job id * @type {string} - * @memberof FireblocksPublicOpenapiOtherApiContinueJob + * @memberof JobManagementApiContinueJob */ readonly jobId: 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 FireblocksPublicOpenapiOtherApiContinueJob + * @memberof JobManagementApiContinueJob */ readonly idempotencyKey?: string } /** - * Request parameters for getJob operation in FireblocksPublicOpenapiOtherApi. + * Request parameters for getJob operation in JobManagementApi. * @export - * @interface FireblocksPublicOpenapiOtherApiGetJobRequest + * @interface JobManagementApiGetJobRequest */ -export interface FireblocksPublicOpenapiOtherApiGetJobRequest { +export interface JobManagementApiGetJobRequest { /** * The requested job id * @type {string} - * @memberof FireblocksPublicOpenapiOtherApiGetJob + * @memberof JobManagementApiGetJob */ readonly jobId: string } /** - * Request parameters for getJobTasks operation in FireblocksPublicOpenapiOtherApi. + * Request parameters for getJobTasks operation in JobManagementApi. * @export - * @interface FireblocksPublicOpenapiOtherApiGetJobTasksRequest + * @interface JobManagementApiGetJobTasksRequest */ -export interface FireblocksPublicOpenapiOtherApiGetJobTasksRequest { +export interface JobManagementApiGetJobTasksRequest { /** * The requested job id * @type {string} - * @memberof FireblocksPublicOpenapiOtherApiGetJobTasks + * @memberof JobManagementApiGetJobTasks */ readonly jobId: string } /** - * Request parameters for getJobs operation in FireblocksPublicOpenapiOtherApi. + * Request parameters for getJobs operation in JobManagementApi. * @export - * @interface FireblocksPublicOpenapiOtherApiGetJobsRequest + * @interface JobManagementApiGetJobsRequest */ -export interface FireblocksPublicOpenapiOtherApiGetJobsRequest { +export interface JobManagementApiGetJobsRequest { /** * Start of time range in ms since 1970 * @type {number} - * @memberof FireblocksPublicOpenapiOtherApiGetJobs + * @memberof JobManagementApiGetJobs */ readonly fromTime?: number /** * End of time range in ms since 1970 * @type {number} - * @memberof FireblocksPublicOpenapiOtherApiGetJobs + * @memberof JobManagementApiGetJobs */ readonly toTime?: number } /** - * Request parameters for pauseJob operation in FireblocksPublicOpenapiOtherApi. + * Request parameters for pauseJob operation in JobManagementApi. * @export - * @interface FireblocksPublicOpenapiOtherApiPauseJobRequest + * @interface JobManagementApiPauseJobRequest */ -export interface FireblocksPublicOpenapiOtherApiPauseJobRequest { +export interface JobManagementApiPauseJobRequest { /** * The requested job id * @type {string} - * @memberof FireblocksPublicOpenapiOtherApiPauseJob + * @memberof JobManagementApiPauseJob */ readonly jobId: 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 FireblocksPublicOpenapiOtherApiPauseJob + * @memberof JobManagementApiPauseJob */ readonly idempotencyKey?: string } /** - * FireblocksPublicOpenapiOtherApi - object-oriented interface + * JobManagementApi - object-oriented interface * @export - * @class FireblocksPublicOpenapiOtherApi + * @class JobManagementApi * @extends {BaseAPI} */ -export class FireblocksPublicOpenapiOtherApi extends BaseAPI { +export class JobManagementApi extends BaseAPI { /** * Stop the given job immediately. If the job is in the ‘Active’ state, the job will be canceled after completing the current task. Vault accounts and Wallets that are already created will not be affected. * @summary Cancel a running job - * @param {FireblocksPublicOpenapiOtherApiCancelJobRequest} requestParameters Request parameters. + * @param {JobManagementApiCancelJobRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof FireblocksPublicOpenapiOtherApi + * @memberof JobManagementApi */ - public cancelJob(requestParameters: FireblocksPublicOpenapiOtherApiCancelJobRequest) { - return FireblocksPublicOpenapiOtherApiFp(this.configuration).cancelJob(requestParameters.jobId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + public cancelJob(requestParameters: JobManagementApiCancelJobRequest) { + return JobManagementApiFp(this.configuration).cancelJob(requestParameters.jobId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Continue the given paused job. * @summary Continue a paused job - * @param {FireblocksPublicOpenapiOtherApiContinueJobRequest} requestParameters Request parameters. + * @param {JobManagementApiContinueJobRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof FireblocksPublicOpenapiOtherApi + * @memberof JobManagementApi */ - public continueJob(requestParameters: FireblocksPublicOpenapiOtherApiContinueJobRequest) { - return FireblocksPublicOpenapiOtherApiFp(this.configuration).continueJob(requestParameters.jobId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + public continueJob(requestParameters: JobManagementApiContinueJobRequest) { + return JobManagementApiFp(this.configuration).continueJob(requestParameters.jobId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get an object describing the given job * @summary Get job details - * @param {FireblocksPublicOpenapiOtherApiGetJobRequest} requestParameters Request parameters. + * @param {JobManagementApiGetJobRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof FireblocksPublicOpenapiOtherApi + * @memberof JobManagementApi */ - public getJob(requestParameters: FireblocksPublicOpenapiOtherApiGetJobRequest) { - return FireblocksPublicOpenapiOtherApiFp(this.configuration).getJob(requestParameters.jobId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + public getJob(requestParameters: JobManagementApiGetJobRequest) { + return JobManagementApiFp(this.configuration).getJob(requestParameters.jobId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Return a list of tasks for given job * @summary Return a list of tasks for given job - * @param {FireblocksPublicOpenapiOtherApiGetJobTasksRequest} requestParameters Request parameters. + * @param {JobManagementApiGetJobTasksRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof FireblocksPublicOpenapiOtherApi + * @memberof JobManagementApi */ - public getJobTasks(requestParameters: FireblocksPublicOpenapiOtherApiGetJobTasksRequest) { - return FireblocksPublicOpenapiOtherApiFp(this.configuration).getJobTasks(requestParameters.jobId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + public getJobTasks(requestParameters: JobManagementApiGetJobTasksRequest) { + return JobManagementApiFp(this.configuration).getJobTasks(requestParameters.jobId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get an array of objects including all active, paused, canceled, and complete jobs in a workspace. * @summary Return a list of jobs belonging to tenant - * @param {FireblocksPublicOpenapiOtherApiGetJobsRequest} requestParameters Request parameters. + * @param {JobManagementApiGetJobsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof FireblocksPublicOpenapiOtherApi + * @memberof JobManagementApi */ - public getJobs(requestParameters: FireblocksPublicOpenapiOtherApiGetJobsRequest = {}) { - return FireblocksPublicOpenapiOtherApiFp(this.configuration).getJobs(requestParameters.fromTime, requestParameters.toTime).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + public getJobs(requestParameters: JobManagementApiGetJobsRequest = {}) { + return JobManagementApiFp(this.configuration).getJobs(requestParameters.fromTime, requestParameters.toTime).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Pause the given job, after the current task is done. A paused job can later be resumed by calling ‘continue’, or canceled. * @summary Pause a job - * @param {FireblocksPublicOpenapiOtherApiPauseJobRequest} requestParameters Request parameters. + * @param {JobManagementApiPauseJobRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof FireblocksPublicOpenapiOtherApi + * @memberof JobManagementApi */ - public pauseJob(requestParameters: FireblocksPublicOpenapiOtherApiPauseJobRequest) { - return FireblocksPublicOpenapiOtherApiFp(this.configuration).pauseJob(requestParameters.jobId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + public pauseJob(requestParameters: JobManagementApiPauseJobRequest) { + return JobManagementApiFp(this.configuration).pauseJob(requestParameters.jobId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } } diff --git a/api/network-connections-api.ts b/api/network-connections-api.ts index 2b895d5..9398ea2 100644 --- a/api/network-connections-api.ts +++ b/api/network-connections-api.ts @@ -26,8 +26,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { CheckThirdPartyRouting200Response } from '../models'; -// @ts-ignore import { CreateNetworkIdRequest } from '../models'; // @ts-ignore import { ErrorSchema } from '../models'; @@ -38,15 +36,19 @@ import { NetworkConnectionResponse } from '../models'; // @ts-ignore import { NetworkIdResponse } from '../models'; // @ts-ignore -import { SetDiscoverabilityForNetworkIdRequest } from '../models'; +import { SetNetworkIdDiscoverabilityRequest } from '../models'; // @ts-ignore import { SetNetworkIdNameRequest } from '../models'; // @ts-ignore -import { SetRoutingPolicy200Response } from '../models'; +import { SetNetworkIdResponse } from '../models'; // @ts-ignore -import { SetRoutingPolicyForNetworkIdRequest } from '../models'; +import { SetNetworkIdRoutingPolicyRequest } from '../models'; +// @ts-ignore +import { SetRoutingPolicy200Response } from '../models'; // @ts-ignore import { SetRoutingPolicyRequest } from '../models'; +// @ts-ignore +import { ThirdPartyRouting } from '../models'; /** * NetworkConnectionsApi - axios parameter creator * @export @@ -368,16 +370,16 @@ export const NetworkConnectionsApiAxiosParamCreator = function (configuration?: /** * Update whether or not the network ID is discoverable by others. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). * @summary Update network ID\'s discoverability. - * @param {SetDiscoverabilityForNetworkIdRequest} setDiscoverabilityForNetworkIdRequest + * @param {SetNetworkIdDiscoverabilityRequest} setNetworkIdDiscoverabilityRequest * @param {string} networkId The ID of the network * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setDiscoverabilityForNetworkId: async (setDiscoverabilityForNetworkIdRequest: SetDiscoverabilityForNetworkIdRequest, networkId: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'setDiscoverabilityForNetworkIdRequest' is not null or undefined - assertParamExists('setDiscoverabilityForNetworkId', 'setDiscoverabilityForNetworkIdRequest', setDiscoverabilityForNetworkIdRequest) + setNetworkIdDiscoverability: async (setNetworkIdDiscoverabilityRequest: SetNetworkIdDiscoverabilityRequest, networkId: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'setNetworkIdDiscoverabilityRequest' is not null or undefined + assertParamExists('setNetworkIdDiscoverability', 'setNetworkIdDiscoverabilityRequest', setNetworkIdDiscoverabilityRequest) // verify required parameter 'networkId' is not null or undefined - assertParamExists('setDiscoverabilityForNetworkId', 'networkId', networkId) + assertParamExists('setNetworkIdDiscoverability', 'networkId', networkId) const localVarPath = `/network_ids/{networkId}/set_discoverability` .replace(`{${"networkId"}}`, encodeURIComponent(String(networkId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -398,7 +400,7 @@ export const NetworkConnectionsApiAxiosParamCreator = function (configuration?: setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(setDiscoverabilityForNetworkIdRequest, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(setNetworkIdDiscoverabilityRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -446,18 +448,18 @@ export const NetworkConnectionsApiAxiosParamCreator = function (configuration?: }; }, /** - * Updates an existing network connection\'s routing policy. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - * @summary Update network connection routing policy. - * @param {string} connectionId The ID of the network connection - * @param {SetRoutingPolicyRequest} [setRoutingPolicyRequest] + * Updates the routing policy of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + * @summary Update network id routing policy. + * @param {string} networkId The ID of the network + * @param {SetNetworkIdRoutingPolicyRequest} [setNetworkIdRoutingPolicyRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setRoutingPolicy: async (connectionId: string, setRoutingPolicyRequest?: SetRoutingPolicyRequest, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'connectionId' is not null or undefined - assertParamExists('setRoutingPolicy', 'connectionId', connectionId) - const localVarPath = `/network_connections/{connectionId}/set_routing_policy` - .replace(`{${"connectionId"}}`, encodeURIComponent(String(connectionId))); + setNetworkIdRoutingPolicy: async (networkId: string, setNetworkIdRoutingPolicyRequest?: SetNetworkIdRoutingPolicyRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'networkId' is not null or undefined + assertParamExists('setNetworkIdRoutingPolicy', 'networkId', networkId) + const localVarPath = `/network_ids/{networkId}/set_routing_policy` + .replace(`{${"networkId"}}`, encodeURIComponent(String(networkId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -476,7 +478,7 @@ export const NetworkConnectionsApiAxiosParamCreator = function (configuration?: setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(setRoutingPolicyRequest, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(setNetworkIdRoutingPolicyRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -484,18 +486,18 @@ export const NetworkConnectionsApiAxiosParamCreator = function (configuration?: }; }, /** - * Updates the routing policy of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - * @summary Update network id routing policy. - * @param {string} networkId The ID of the network - * @param {SetRoutingPolicyForNetworkIdRequest} [setRoutingPolicyForNetworkIdRequest] + * Updates an existing network connection\'s routing policy. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + * @summary Update network connection routing policy. + * @param {string} connectionId The ID of the network connection + * @param {SetRoutingPolicyRequest} [setRoutingPolicyRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setRoutingPolicyForNetworkId: async (networkId: string, setRoutingPolicyForNetworkIdRequest?: SetRoutingPolicyForNetworkIdRequest, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'networkId' is not null or undefined - assertParamExists('setRoutingPolicyForNetworkId', 'networkId', networkId) - const localVarPath = `/network_ids/{networkId}/set_routing_policy` - .replace(`{${"networkId"}}`, encodeURIComponent(String(networkId))); + setRoutingPolicy: async (connectionId: string, setRoutingPolicyRequest?: SetRoutingPolicyRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'connectionId' is not null or undefined + assertParamExists('setRoutingPolicy', 'connectionId', connectionId) + const localVarPath = `/network_connections/{connectionId}/set_routing_policy` + .replace(`{${"connectionId"}}`, encodeURIComponent(String(connectionId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -514,7 +516,7 @@ export const NetworkConnectionsApiAxiosParamCreator = function (configuration?: setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(setRoutingPolicyForNetworkIdRequest, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(setRoutingPolicyRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -539,7 +541,7 @@ export const NetworkConnectionsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async checkThirdPartyRouting(connectionId: string, assetType: CheckThirdPartyRoutingAssetTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async checkThirdPartyRouting(connectionId: string, assetType: CheckThirdPartyRoutingAssetTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.checkThirdPartyRouting(connectionId, assetType, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['NetworkConnectionsApi.checkThirdPartyRouting']?.[index]?.url; @@ -652,15 +654,15 @@ export const NetworkConnectionsApiFp = function(configuration?: Configuration) { /** * Update whether or not the network ID is discoverable by others. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). * @summary Update network ID\'s discoverability. - * @param {SetDiscoverabilityForNetworkIdRequest} setDiscoverabilityForNetworkIdRequest + * @param {SetNetworkIdDiscoverabilityRequest} setNetworkIdDiscoverabilityRequest * @param {string} networkId The ID of the network * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setDiscoverabilityForNetworkId(setDiscoverabilityForNetworkIdRequest: SetDiscoverabilityForNetworkIdRequest, networkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.setDiscoverabilityForNetworkId(setDiscoverabilityForNetworkIdRequest, networkId, options); + async setNetworkIdDiscoverability(setNetworkIdDiscoverabilityRequest: SetNetworkIdDiscoverabilityRequest, networkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.setNetworkIdDiscoverability(setNetworkIdDiscoverabilityRequest, networkId, options); const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['NetworkConnectionsApi.setDiscoverabilityForNetworkId']?.[index]?.url; + const operationBasePath = operationServerMap['NetworkConnectionsApi.setNetworkIdDiscoverability']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** @@ -671,38 +673,38 @@ export const NetworkConnectionsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setNetworkIdName(setNetworkIdNameRequest: SetNetworkIdNameRequest, networkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async setNetworkIdName(setNetworkIdNameRequest: SetNetworkIdNameRequest, networkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setNetworkIdName(setNetworkIdNameRequest, networkId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['NetworkConnectionsApi.setNetworkIdName']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** - * Updates an existing network connection\'s routing policy. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - * @summary Update network connection routing policy. - * @param {string} connectionId The ID of the network connection - * @param {SetRoutingPolicyRequest} [setRoutingPolicyRequest] + * Updates the routing policy of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + * @summary Update network id routing policy. + * @param {string} networkId The ID of the network + * @param {SetNetworkIdRoutingPolicyRequest} [setNetworkIdRoutingPolicyRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setRoutingPolicy(connectionId: string, setRoutingPolicyRequest?: SetRoutingPolicyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.setRoutingPolicy(connectionId, setRoutingPolicyRequest, options); + async setNetworkIdRoutingPolicy(networkId: string, setNetworkIdRoutingPolicyRequest?: SetNetworkIdRoutingPolicyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.setNetworkIdRoutingPolicy(networkId, setNetworkIdRoutingPolicyRequest, options); const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['NetworkConnectionsApi.setRoutingPolicy']?.[index]?.url; + const operationBasePath = operationServerMap['NetworkConnectionsApi.setNetworkIdRoutingPolicy']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** - * Updates the routing policy of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - * @summary Update network id routing policy. - * @param {string} networkId The ID of the network - * @param {SetRoutingPolicyForNetworkIdRequest} [setRoutingPolicyForNetworkIdRequest] + * Updates an existing network connection\'s routing policy. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + * @summary Update network connection routing policy. + * @param {string} connectionId The ID of the network connection + * @param {SetRoutingPolicyRequest} [setRoutingPolicyRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setRoutingPolicyForNetworkId(networkId: string, setRoutingPolicyForNetworkIdRequest?: SetRoutingPolicyForNetworkIdRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.setRoutingPolicyForNetworkId(networkId, setRoutingPolicyForNetworkIdRequest, options); + async setRoutingPolicy(connectionId: string, setRoutingPolicyRequest?: SetRoutingPolicyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.setRoutingPolicy(connectionId, setRoutingPolicyRequest, options); const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['NetworkConnectionsApi.setRoutingPolicyForNetworkId']?.[index]?.url; + const operationBasePath = operationServerMap['NetworkConnectionsApi.setRoutingPolicy']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, } @@ -722,7 +724,7 @@ export const NetworkConnectionsApiFactory = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - checkThirdPartyRouting(requestParameters: NetworkConnectionsApiCheckThirdPartyRoutingRequest, options?: RawAxiosRequestConfig): AxiosPromise { + checkThirdPartyRouting(requestParameters: NetworkConnectionsApiCheckThirdPartyRoutingRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.checkThirdPartyRouting(requestParameters.connectionId, requestParameters.assetType, options).then((request) => request(axios, basePath)); }, /** @@ -806,12 +808,12 @@ export const NetworkConnectionsApiFactory = function (configuration?: Configurat /** * Update whether or not the network ID is discoverable by others. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). * @summary Update network ID\'s discoverability. - * @param {NetworkConnectionsApiSetDiscoverabilityForNetworkIdRequest} requestParameters Request parameters. + * @param {NetworkConnectionsApiSetNetworkIdDiscoverabilityRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setDiscoverabilityForNetworkId(requestParameters: NetworkConnectionsApiSetDiscoverabilityForNetworkIdRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.setDiscoverabilityForNetworkId(requestParameters.setDiscoverabilityForNetworkIdRequest, requestParameters.networkId, options).then((request) => request(axios, basePath)); + setNetworkIdDiscoverability(requestParameters: NetworkConnectionsApiSetNetworkIdDiscoverabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.setNetworkIdDiscoverability(requestParameters.setNetworkIdDiscoverabilityRequest, requestParameters.networkId, options).then((request) => request(axios, basePath)); }, /** * Updates name of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). @@ -820,28 +822,28 @@ export const NetworkConnectionsApiFactory = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setNetworkIdName(requestParameters: NetworkConnectionsApiSetNetworkIdNameRequest, options?: RawAxiosRequestConfig): AxiosPromise { + setNetworkIdName(requestParameters: NetworkConnectionsApiSetNetworkIdNameRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.setNetworkIdName(requestParameters.setNetworkIdNameRequest, requestParameters.networkId, options).then((request) => request(axios, basePath)); }, /** - * Updates an existing network connection\'s routing policy. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - * @summary Update network connection routing policy. - * @param {NetworkConnectionsApiSetRoutingPolicyRequest} requestParameters Request parameters. + * Updates the routing policy of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + * @summary Update network id routing policy. + * @param {NetworkConnectionsApiSetNetworkIdRoutingPolicyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setRoutingPolicy(requestParameters: NetworkConnectionsApiSetRoutingPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.setRoutingPolicy(requestParameters.connectionId, requestParameters.setRoutingPolicyRequest, options).then((request) => request(axios, basePath)); + setNetworkIdRoutingPolicy(requestParameters: NetworkConnectionsApiSetNetworkIdRoutingPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.setNetworkIdRoutingPolicy(requestParameters.networkId, requestParameters.setNetworkIdRoutingPolicyRequest, options).then((request) => request(axios, basePath)); }, /** - * Updates the routing policy of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - * @summary Update network id routing policy. - * @param {NetworkConnectionsApiSetRoutingPolicyForNetworkIdRequest} requestParameters Request parameters. + * Updates an existing network connection\'s routing policy. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + * @summary Update network connection routing policy. + * @param {NetworkConnectionsApiSetRoutingPolicyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setRoutingPolicyForNetworkId(requestParameters: NetworkConnectionsApiSetRoutingPolicyForNetworkIdRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.setRoutingPolicyForNetworkId(requestParameters.networkId, requestParameters.setRoutingPolicyForNetworkIdRequest, options).then((request) => request(axios, basePath)); + setRoutingPolicy(requestParameters: NetworkConnectionsApiSetRoutingPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.setRoutingPolicy(requestParameters.connectionId, requestParameters.setRoutingPolicyRequest, options).then((request) => request(axios, basePath)); }, }; }; @@ -966,22 +968,22 @@ export interface NetworkConnectionsApiGetNetworkIdRequest { } /** - * Request parameters for setDiscoverabilityForNetworkId operation in NetworkConnectionsApi. + * Request parameters for setNetworkIdDiscoverability operation in NetworkConnectionsApi. * @export - * @interface NetworkConnectionsApiSetDiscoverabilityForNetworkIdRequest + * @interface NetworkConnectionsApiSetNetworkIdDiscoverabilityRequest */ -export interface NetworkConnectionsApiSetDiscoverabilityForNetworkIdRequest { +export interface NetworkConnectionsApiSetNetworkIdDiscoverabilityRequest { /** * - * @type {SetDiscoverabilityForNetworkIdRequest} - * @memberof NetworkConnectionsApiSetDiscoverabilityForNetworkId + * @type {SetNetworkIdDiscoverabilityRequest} + * @memberof NetworkConnectionsApiSetNetworkIdDiscoverability */ - readonly setDiscoverabilityForNetworkIdRequest: SetDiscoverabilityForNetworkIdRequest + readonly setNetworkIdDiscoverabilityRequest: SetNetworkIdDiscoverabilityRequest /** * The ID of the network * @type {string} - * @memberof NetworkConnectionsApiSetDiscoverabilityForNetworkId + * @memberof NetworkConnectionsApiSetNetworkIdDiscoverability */ readonly networkId: string } @@ -1008,45 +1010,45 @@ export interface NetworkConnectionsApiSetNetworkIdNameRequest { } /** - * Request parameters for setRoutingPolicy operation in NetworkConnectionsApi. + * Request parameters for setNetworkIdRoutingPolicy operation in NetworkConnectionsApi. * @export - * @interface NetworkConnectionsApiSetRoutingPolicyRequest + * @interface NetworkConnectionsApiSetNetworkIdRoutingPolicyRequest */ -export interface NetworkConnectionsApiSetRoutingPolicyRequest { +export interface NetworkConnectionsApiSetNetworkIdRoutingPolicyRequest { /** - * The ID of the network connection + * The ID of the network * @type {string} - * @memberof NetworkConnectionsApiSetRoutingPolicy + * @memberof NetworkConnectionsApiSetNetworkIdRoutingPolicy */ - readonly connectionId: string + readonly networkId: string /** * - * @type {SetRoutingPolicyRequest} - * @memberof NetworkConnectionsApiSetRoutingPolicy + * @type {SetNetworkIdRoutingPolicyRequest} + * @memberof NetworkConnectionsApiSetNetworkIdRoutingPolicy */ - readonly setRoutingPolicyRequest?: SetRoutingPolicyRequest + readonly setNetworkIdRoutingPolicyRequest?: SetNetworkIdRoutingPolicyRequest } /** - * Request parameters for setRoutingPolicyForNetworkId operation in NetworkConnectionsApi. + * Request parameters for setRoutingPolicy operation in NetworkConnectionsApi. * @export - * @interface NetworkConnectionsApiSetRoutingPolicyForNetworkIdRequest + * @interface NetworkConnectionsApiSetRoutingPolicyRequest */ -export interface NetworkConnectionsApiSetRoutingPolicyForNetworkIdRequest { +export interface NetworkConnectionsApiSetRoutingPolicyRequest { /** - * The ID of the network + * The ID of the network connection * @type {string} - * @memberof NetworkConnectionsApiSetRoutingPolicyForNetworkId + * @memberof NetworkConnectionsApiSetRoutingPolicy */ - readonly networkId: string + readonly connectionId: string /** * - * @type {SetRoutingPolicyForNetworkIdRequest} - * @memberof NetworkConnectionsApiSetRoutingPolicyForNetworkId + * @type {SetRoutingPolicyRequest} + * @memberof NetworkConnectionsApiSetRoutingPolicy */ - readonly setRoutingPolicyForNetworkIdRequest?: SetRoutingPolicyForNetworkIdRequest + readonly setRoutingPolicyRequest?: SetRoutingPolicyRequest } /** @@ -1165,13 +1167,13 @@ export class NetworkConnectionsApi extends BaseAPI { /** * Update whether or not the network ID is discoverable by others. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). * @summary Update network ID\'s discoverability. - * @param {NetworkConnectionsApiSetDiscoverabilityForNetworkIdRequest} requestParameters Request parameters. + * @param {NetworkConnectionsApiSetNetworkIdDiscoverabilityRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof NetworkConnectionsApi */ - public setDiscoverabilityForNetworkId(requestParameters: NetworkConnectionsApiSetDiscoverabilityForNetworkIdRequest) { - return NetworkConnectionsApiFp(this.configuration).setDiscoverabilityForNetworkId(requestParameters.setDiscoverabilityForNetworkIdRequest, requestParameters.networkId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + public setNetworkIdDiscoverability(requestParameters: NetworkConnectionsApiSetNetworkIdDiscoverabilityRequest) { + return NetworkConnectionsApiFp(this.configuration).setNetworkIdDiscoverability(requestParameters.setNetworkIdDiscoverabilityRequest, requestParameters.networkId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** @@ -1187,27 +1189,27 @@ export class NetworkConnectionsApi extends BaseAPI { } /** - * Updates an existing network connection\'s routing policy. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - * @summary Update network connection routing policy. - * @param {NetworkConnectionsApiSetRoutingPolicyRequest} requestParameters Request parameters. + * Updates the routing policy of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + * @summary Update network id routing policy. + * @param {NetworkConnectionsApiSetNetworkIdRoutingPolicyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof NetworkConnectionsApi */ - public setRoutingPolicy(requestParameters: NetworkConnectionsApiSetRoutingPolicyRequest) { - return NetworkConnectionsApiFp(this.configuration).setRoutingPolicy(requestParameters.connectionId, requestParameters.setRoutingPolicyRequest).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + public setNetworkIdRoutingPolicy(requestParameters: NetworkConnectionsApiSetNetworkIdRoutingPolicyRequest) { + return NetworkConnectionsApiFp(this.configuration).setNetworkIdRoutingPolicy(requestParameters.networkId, requestParameters.setNetworkIdRoutingPolicyRequest).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** - * Updates the routing policy of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - * @summary Update network id routing policy. - * @param {NetworkConnectionsApiSetRoutingPolicyForNetworkIdRequest} requestParameters Request parameters. + * Updates an existing network connection\'s routing policy. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + * @summary Update network connection routing policy. + * @param {NetworkConnectionsApiSetRoutingPolicyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof NetworkConnectionsApi */ - public setRoutingPolicyForNetworkId(requestParameters: NetworkConnectionsApiSetRoutingPolicyForNetworkIdRequest) { - return NetworkConnectionsApiFp(this.configuration).setRoutingPolicyForNetworkId(requestParameters.networkId, requestParameters.setRoutingPolicyForNetworkIdRequest).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + public setRoutingPolicy(requestParameters: NetworkConnectionsApiSetRoutingPolicyRequest) { + return NetworkConnectionsApiFp(this.configuration).setRoutingPolicy(requestParameters.connectionId, requestParameters.setRoutingPolicyRequest).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } } diff --git a/api/policy-editor-beta-api.ts b/api/policy-editor-beta-api.ts index 9862f94..a0b9b52 100644 --- a/api/policy-editor-beta-api.ts +++ b/api/policy-editor-beta-api.ts @@ -32,13 +32,11 @@ import { ErrorSchema } from '../models'; // @ts-ignore import { PolicyAndValidationResponse } from '../models'; // @ts-ignore -import { PublishDraftRequest } from '../models'; +import { PolicyRules } from '../models'; // @ts-ignore -import { PublishPolicyRulesRequest } from '../models'; +import { PublishDraftRequest } from '../models'; // @ts-ignore import { PublishResult } from '../models'; -// @ts-ignore -import { UpdateDraftRequest } from '../models'; /** * PolicyEditorBetaApi - axios parameter creator * @export @@ -149,14 +147,14 @@ export const PolicyEditorBetaApiAxiosParamCreator = function (configuration?: Co /** * Send publish request of set of policy rules and returns the response.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. * @summary Send publish request for a set of policy rules - * @param {PublishPolicyRulesRequest} publishPolicyRulesRequest + * @param {PolicyRules} policyRules * @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} */ - publishPolicyRules: async (publishPolicyRulesRequest: PublishPolicyRulesRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'publishPolicyRulesRequest' is not null or undefined - assertParamExists('publishPolicyRules', 'publishPolicyRulesRequest', publishPolicyRulesRequest) + publishPolicyRules: async (policyRules: PolicyRules, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'policyRules' is not null or undefined + assertParamExists('publishPolicyRules', 'policyRules', policyRules) const localVarPath = `/tap/publish`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -180,7 +178,7 @@ export const PolicyEditorBetaApiAxiosParamCreator = function (configuration?: Co setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(publishPolicyRulesRequest, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(policyRules, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -190,14 +188,14 @@ export const PolicyEditorBetaApiAxiosParamCreator = function (configuration?: Co /** * Update the draft and return its validation.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. * @summary Update the draft with a new set of rules - * @param {UpdateDraftRequest} updateDraftRequest + * @param {PolicyRules} policyRules * @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} */ - updateDraft: async (updateDraftRequest: UpdateDraftRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'updateDraftRequest' is not null or undefined - assertParamExists('updateDraft', 'updateDraftRequest', updateDraftRequest) + updateDraft: async (policyRules: PolicyRules, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'policyRules' is not null or undefined + assertParamExists('updateDraft', 'policyRules', policyRules) const localVarPath = `/tap/draft`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -221,7 +219,7 @@ export const PolicyEditorBetaApiAxiosParamCreator = function (configuration?: Co setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(updateDraftRequest, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(policyRules, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -279,13 +277,13 @@ export const PolicyEditorBetaApiFp = function(configuration?: Configuration) { /** * Send publish request of set of policy rules and returns the response.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. * @summary Send publish request for a set of policy rules - * @param {PublishPolicyRulesRequest} publishPolicyRulesRequest + * @param {PolicyRules} policyRules * @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 publishPolicyRules(publishPolicyRulesRequest: PublishPolicyRulesRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.publishPolicyRules(publishPolicyRulesRequest, idempotencyKey, options); + async publishPolicyRules(policyRules: PolicyRules, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.publishPolicyRules(policyRules, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['PolicyEditorBetaApi.publishPolicyRules']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -293,13 +291,13 @@ export const PolicyEditorBetaApiFp = function(configuration?: Configuration) { /** * Update the draft and return its validation.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. * @summary Update the draft with a new set of rules - * @param {UpdateDraftRequest} updateDraftRequest + * @param {PolicyRules} policyRules * @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 updateDraft(updateDraftRequest: UpdateDraftRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraft(updateDraftRequest, idempotencyKey, options); + async updateDraft(policyRules: PolicyRules, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraft(policyRules, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['PolicyEditorBetaApi.updateDraft']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -350,7 +348,7 @@ export const PolicyEditorBetaApiFactory = function (configuration?: Configuratio * @throws {RequiredError} */ publishPolicyRules(requestParameters: PolicyEditorBetaApiPublishPolicyRulesRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.publishPolicyRules(requestParameters.publishPolicyRulesRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + return localVarFp.publishPolicyRules(requestParameters.policyRules, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Update the draft and return its validation.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. @@ -360,7 +358,7 @@ export const PolicyEditorBetaApiFactory = function (configuration?: Configuratio * @throws {RequiredError} */ updateDraft(requestParameters: PolicyEditorBetaApiUpdateDraftRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.updateDraft(requestParameters.updateDraftRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + return localVarFp.updateDraft(requestParameters.policyRules, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, }; }; @@ -394,10 +392,10 @@ export interface PolicyEditorBetaApiPublishDraftRequest { export interface PolicyEditorBetaApiPublishPolicyRulesRequest { /** * - * @type {PublishPolicyRulesRequest} + * @type {PolicyRules} * @memberof PolicyEditorBetaApiPublishPolicyRules */ - readonly publishPolicyRulesRequest: PublishPolicyRulesRequest + readonly policyRules: PolicyRules /** * 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. @@ -415,10 +413,10 @@ export interface PolicyEditorBetaApiPublishPolicyRulesRequest { export interface PolicyEditorBetaApiUpdateDraftRequest { /** * - * @type {UpdateDraftRequest} + * @type {PolicyRules} * @memberof PolicyEditorBetaApiUpdateDraft */ - readonly updateDraftRequest: UpdateDraftRequest + readonly policyRules: PolicyRules /** * 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. @@ -478,7 +476,7 @@ export class PolicyEditorBetaApi extends BaseAPI { * @memberof PolicyEditorBetaApi */ public publishPolicyRules(requestParameters: PolicyEditorBetaApiPublishPolicyRulesRequest) { - return PolicyEditorBetaApiFp(this.configuration).publishPolicyRules(requestParameters.publishPolicyRulesRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return PolicyEditorBetaApiFp(this.configuration).publishPolicyRules(requestParameters.policyRules, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** @@ -490,7 +488,7 @@ export class PolicyEditorBetaApi extends BaseAPI { * @memberof PolicyEditorBetaApi */ public updateDraft(requestParameters: PolicyEditorBetaApiUpdateDraftRequest) { - return PolicyEditorBetaApiFp(this.configuration).updateDraft(requestParameters.updateDraftRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return PolicyEditorBetaApiFp(this.configuration).updateDraft(requestParameters.policyRules, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } } diff --git a/api/smart-transfer-api.ts b/api/smart-transfer-api.ts index 385627c..006b661 100644 --- a/api/smart-transfer-api.ts +++ b/api/smart-transfer-api.ts @@ -26,43 +26,37 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { CreateTicket201Response } from '../models'; -// @ts-ignore -import { CreateTicketTerm201Response } from '../models'; -// @ts-ignore -import { FindTicketById200Response } from '../models'; +import { SmartTransferBadRequestResponse } from '../models'; // @ts-ignore -import { FindTicketTermById200Response } from '../models'; +import { SmartTransferCreateTicket } from '../models'; // @ts-ignore -import { GetSmartTransferUserGroups200Response } from '../models'; +import { SmartTransferCreateTicketTerm } from '../models'; // @ts-ignore -import { SearchTickets200Response } from '../models'; +import { SmartTransferForbiddenResponse } from '../models'; // @ts-ignore -import { SetUserGroups201Response } from '../models'; +import { SmartTransferFundTerm } from '../models'; // @ts-ignore -import { SmartTransferBadRequestResponse } from '../models'; +import { SmartTransferManuallyFundTerm } from '../models'; // @ts-ignore -import { SmartTransferCreateTicketDto } from '../models'; -// @ts-ignore -import { SmartTransferCreateTicketTermDto } from '../models'; +import { SmartTransferNotFoundResponse } from '../models'; // @ts-ignore -import { SmartTransferForbiddenResponse } from '../models'; +import { SmartTransferSetTicketExpiration } from '../models'; // @ts-ignore -import { SmartTransferFundTermDto } from '../models'; +import { SmartTransferSetTicketExternalId } from '../models'; // @ts-ignore -import { SmartTransferManuallyFundTermDto } from '../models'; +import { SmartTransferSetUserGroups } from '../models'; // @ts-ignore -import { SmartTransferNotFoundResponse } from '../models'; +import { SmartTransferSubmitTicket } from '../models'; // @ts-ignore -import { SmartTransferSetTicketExpirationDto } from '../models'; +import { SmartTransferTicketFilteredResponse } from '../models'; // @ts-ignore -import { SmartTransferSetTicketExternalIdDto } from '../models'; +import { SmartTransferTicketResponse } from '../models'; // @ts-ignore -import { SmartTransferSetUserGroupsDto } from '../models'; +import { SmartTransferTicketTermResponse } from '../models'; // @ts-ignore -import { SmartTransferSubmitTicketDto } from '../models'; +import { SmartTransferUpdateTicketTerm } from '../models'; // @ts-ignore -import { SmartTransferUpdateTicketTermDto } from '../models'; +import { SmartTransferUserGroupsResponse } from '../models'; /** * SmartTransferApi - axios parameter creator * @export @@ -111,14 +105,14 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi /** * Creates new Smart Transfer ticket * @summary Create Ticket - * @param {SmartTransferCreateTicketDto} smartTransferCreateTicketDto + * @param {SmartTransferCreateTicket} smartTransferCreateTicket * @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} */ - createTicket: async (smartTransferCreateTicketDto: SmartTransferCreateTicketDto, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'smartTransferCreateTicketDto' is not null or undefined - assertParamExists('createTicket', 'smartTransferCreateTicketDto', smartTransferCreateTicketDto) + createTicket: async (smartTransferCreateTicket: SmartTransferCreateTicket, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'smartTransferCreateTicket' is not null or undefined + assertParamExists('createTicket', 'smartTransferCreateTicket', smartTransferCreateTicket) const localVarPath = `/smart-transfers`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -142,7 +136,7 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(smartTransferCreateTicketDto, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(smartTransferCreateTicket, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -152,15 +146,15 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi /** * Creates new smart transfer ticket term (when the ticket status is DRAFT) * @summary Create leg (term) - * @param {SmartTransferCreateTicketTermDto} smartTransferCreateTicketTermDto + * @param {SmartTransferCreateTicketTerm} smartTransferCreateTicketTerm * @param {string} ticketId * @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} */ - createTicketTerm: async (smartTransferCreateTicketTermDto: SmartTransferCreateTicketTermDto, ticketId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'smartTransferCreateTicketTermDto' is not null or undefined - assertParamExists('createTicketTerm', 'smartTransferCreateTicketTermDto', smartTransferCreateTicketTermDto) + createTicketTerm: async (smartTransferCreateTicketTerm: SmartTransferCreateTicketTerm, ticketId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'smartTransferCreateTicketTerm' is not null or undefined + assertParamExists('createTicketTerm', 'smartTransferCreateTicketTerm', smartTransferCreateTicketTerm) // verify required parameter 'ticketId' is not null or undefined assertParamExists('createTicketTerm', 'ticketId', ticketId) const localVarPath = `/smart-transfers/{ticketId}/terms` @@ -187,7 +181,7 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(smartTransferCreateTicketTermDto, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(smartTransferCreateTicketTerm, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -308,16 +302,16 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi /** * Set funding source for ticket term (in case of ASYNC tickets, this will execute transfer immediately) * @summary Define funding source - * @param {SmartTransferFundTermDto} smartTransferFundTermDto + * @param {SmartTransferFundTerm} smartTransferFundTerm * @param {string} ticketId * @param {string} termId * @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} */ - fundTicketTerm: async (smartTransferFundTermDto: SmartTransferFundTermDto, ticketId: string, termId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'smartTransferFundTermDto' is not null or undefined - assertParamExists('fundTicketTerm', 'smartTransferFundTermDto', smartTransferFundTermDto) + fundTicketTerm: async (smartTransferFundTerm: SmartTransferFundTerm, ticketId: string, termId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'smartTransferFundTerm' is not null or undefined + assertParamExists('fundTicketTerm', 'smartTransferFundTerm', smartTransferFundTerm) // verify required parameter 'ticketId' is not null or undefined assertParamExists('fundTicketTerm', 'ticketId', ticketId) // verify required parameter 'termId' is not null or undefined @@ -347,7 +341,7 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(smartTransferFundTermDto, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(smartTransferFundTerm, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -387,16 +381,16 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi /** * Manually set ticket term transaction * @summary Manually add term transaction - * @param {SmartTransferManuallyFundTermDto} smartTransferManuallyFundTermDto + * @param {SmartTransferManuallyFundTerm} smartTransferManuallyFundTerm * @param {string} ticketId * @param {string} termId * @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} */ - manuallyFundTicketTerm: async (smartTransferManuallyFundTermDto: SmartTransferManuallyFundTermDto, ticketId: string, termId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'smartTransferManuallyFundTermDto' is not null or undefined - assertParamExists('manuallyFundTicketTerm', 'smartTransferManuallyFundTermDto', smartTransferManuallyFundTermDto) + manuallyFundTicketTerm: async (smartTransferManuallyFundTerm: SmartTransferManuallyFundTerm, ticketId: string, termId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'smartTransferManuallyFundTerm' is not null or undefined + assertParamExists('manuallyFundTicketTerm', 'smartTransferManuallyFundTerm', smartTransferManuallyFundTerm) // verify required parameter 'ticketId' is not null or undefined assertParamExists('manuallyFundTicketTerm', 'ticketId', ticketId) // verify required parameter 'termId' is not null or undefined @@ -426,7 +420,7 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(smartTransferManuallyFundTermDto, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(smartTransferManuallyFundTerm, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -558,15 +552,15 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi /** * Set external id Smart Transfer ticket * @summary Add external ref. ID - * @param {SmartTransferSetTicketExternalIdDto} smartTransferSetTicketExternalIdDto + * @param {SmartTransferSetTicketExternalId} smartTransferSetTicketExternalId * @param {string} ticketId * @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} */ - setExternalRefId: async (smartTransferSetTicketExternalIdDto: SmartTransferSetTicketExternalIdDto, ticketId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'smartTransferSetTicketExternalIdDto' is not null or undefined - assertParamExists('setExternalRefId', 'smartTransferSetTicketExternalIdDto', smartTransferSetTicketExternalIdDto) + setExternalRefId: async (smartTransferSetTicketExternalId: SmartTransferSetTicketExternalId, ticketId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'smartTransferSetTicketExternalId' is not null or undefined + assertParamExists('setExternalRefId', 'smartTransferSetTicketExternalId', smartTransferSetTicketExternalId) // verify required parameter 'ticketId' is not null or undefined assertParamExists('setExternalRefId', 'ticketId', ticketId) const localVarPath = `/smart-transfers/{ticketId}/external-id` @@ -593,7 +587,7 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(smartTransferSetTicketExternalIdDto, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(smartTransferSetTicketExternalId, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -603,15 +597,15 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi /** * Set expiration date on Smart Transfer ticket * @summary Set expiration - * @param {SmartTransferSetTicketExpirationDto} smartTransferSetTicketExpirationDto + * @param {SmartTransferSetTicketExpiration} smartTransferSetTicketExpiration * @param {string} ticketId * @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} */ - setTicketExpiration: async (smartTransferSetTicketExpirationDto: SmartTransferSetTicketExpirationDto, ticketId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'smartTransferSetTicketExpirationDto' is not null or undefined - assertParamExists('setTicketExpiration', 'smartTransferSetTicketExpirationDto', smartTransferSetTicketExpirationDto) + setTicketExpiration: async (smartTransferSetTicketExpiration: SmartTransferSetTicketExpiration, ticketId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'smartTransferSetTicketExpiration' is not null or undefined + assertParamExists('setTicketExpiration', 'smartTransferSetTicketExpiration', smartTransferSetTicketExpiration) // verify required parameter 'ticketId' is not null or undefined assertParamExists('setTicketExpiration', 'ticketId', ticketId) const localVarPath = `/smart-transfers/{ticketId}/expires-in` @@ -638,7 +632,7 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(smartTransferSetTicketExpirationDto, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(smartTransferSetTicketExpiration, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -648,14 +642,14 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi /** * Set Smart Transfer user group * @summary Set user group - * @param {SmartTransferSetUserGroupsDto} smartTransferSetUserGroupsDto + * @param {SmartTransferSetUserGroups} smartTransferSetUserGroups * @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} */ - setUserGroups: async (smartTransferSetUserGroupsDto: SmartTransferSetUserGroupsDto, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'smartTransferSetUserGroupsDto' is not null or undefined - assertParamExists('setUserGroups', 'smartTransferSetUserGroupsDto', smartTransferSetUserGroupsDto) + setUserGroups: async (smartTransferSetUserGroups: SmartTransferSetUserGroups, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'smartTransferSetUserGroups' is not null or undefined + assertParamExists('setUserGroups', 'smartTransferSetUserGroups', smartTransferSetUserGroups) const localVarPath = `/smart-transfers/settings/user-groups`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -679,7 +673,7 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(smartTransferSetUserGroupsDto, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(smartTransferSetUserGroups, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -689,15 +683,15 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi /** * Submit Smart Transfer ticket - change status into ready for approval if auto approval is not turned on, or OPEN if auto approval is on * @summary Submit ticket - * @param {SmartTransferSubmitTicketDto} smartTransferSubmitTicketDto + * @param {SmartTransferSubmitTicket} smartTransferSubmitTicket * @param {string} ticketId * @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} */ - submitTicket: async (smartTransferSubmitTicketDto: SmartTransferSubmitTicketDto, ticketId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'smartTransferSubmitTicketDto' is not null or undefined - assertParamExists('submitTicket', 'smartTransferSubmitTicketDto', smartTransferSubmitTicketDto) + submitTicket: async (smartTransferSubmitTicket: SmartTransferSubmitTicket, ticketId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'smartTransferSubmitTicket' is not null or undefined + assertParamExists('submitTicket', 'smartTransferSubmitTicket', smartTransferSubmitTicket) // verify required parameter 'ticketId' is not null or undefined assertParamExists('submitTicket', 'ticketId', ticketId) const localVarPath = `/smart-transfers/{ticketId}/submit` @@ -724,7 +718,7 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(smartTransferSubmitTicketDto, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(smartTransferSubmitTicket, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -734,16 +728,16 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi /** * Update ticket term (when ticket status is DRAFT) * @summary Update ticket leg (term) - * @param {SmartTransferUpdateTicketTermDto} smartTransferUpdateTicketTermDto + * @param {SmartTransferUpdateTicketTerm} smartTransferUpdateTicketTerm * @param {string} ticketId * @param {string} termId * @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} */ - updateTicketTerm: async (smartTransferUpdateTicketTermDto: SmartTransferUpdateTicketTermDto, ticketId: string, termId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'smartTransferUpdateTicketTermDto' is not null or undefined - assertParamExists('updateTicketTerm', 'smartTransferUpdateTicketTermDto', smartTransferUpdateTicketTermDto) + updateTicketTerm: async (smartTransferUpdateTicketTerm: SmartTransferUpdateTicketTerm, ticketId: string, termId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'smartTransferUpdateTicketTerm' is not null or undefined + assertParamExists('updateTicketTerm', 'smartTransferUpdateTicketTerm', smartTransferUpdateTicketTerm) // verify required parameter 'ticketId' is not null or undefined assertParamExists('updateTicketTerm', 'ticketId', ticketId) // verify required parameter 'termId' is not null or undefined @@ -773,7 +767,7 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(smartTransferUpdateTicketTermDto, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(smartTransferUpdateTicketTerm, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -798,7 +792,7 @@ export const SmartTransferApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async cancelTicket(ticketId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async cancelTicket(ticketId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.cancelTicket(ticketId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['SmartTransferApi.cancelTicket']?.[index]?.url; @@ -807,13 +801,13 @@ export const SmartTransferApiFp = function(configuration?: Configuration) { /** * Creates new Smart Transfer ticket * @summary Create Ticket - * @param {SmartTransferCreateTicketDto} smartTransferCreateTicketDto + * @param {SmartTransferCreateTicket} smartTransferCreateTicket * @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 createTicket(smartTransferCreateTicketDto: SmartTransferCreateTicketDto, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createTicket(smartTransferCreateTicketDto, idempotencyKey, options); + async createTicket(smartTransferCreateTicket: SmartTransferCreateTicket, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createTicket(smartTransferCreateTicket, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['SmartTransferApi.createTicket']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -821,14 +815,14 @@ export const SmartTransferApiFp = function(configuration?: Configuration) { /** * Creates new smart transfer ticket term (when the ticket status is DRAFT) * @summary Create leg (term) - * @param {SmartTransferCreateTicketTermDto} smartTransferCreateTicketTermDto + * @param {SmartTransferCreateTicketTerm} smartTransferCreateTicketTerm * @param {string} ticketId * @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 createTicketTerm(smartTransferCreateTicketTermDto: SmartTransferCreateTicketTermDto, ticketId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createTicketTerm(smartTransferCreateTicketTermDto, ticketId, idempotencyKey, options); + async createTicketTerm(smartTransferCreateTicketTerm: SmartTransferCreateTicketTerm, ticketId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createTicketTerm(smartTransferCreateTicketTerm, ticketId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['SmartTransferApi.createTicketTerm']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -840,7 +834,7 @@ export const SmartTransferApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async findTicketById(ticketId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async findTicketById(ticketId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.findTicketById(ticketId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['SmartTransferApi.findTicketById']?.[index]?.url; @@ -854,7 +848,7 @@ export const SmartTransferApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async findTicketTermById(ticketId: string, termId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async findTicketTermById(ticketId: string, termId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.findTicketTermById(ticketId, termId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['SmartTransferApi.findTicketTermById']?.[index]?.url; @@ -868,7 +862,7 @@ export const SmartTransferApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async fulfillTicket(ticketId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async fulfillTicket(ticketId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.fulfillTicket(ticketId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['SmartTransferApi.fulfillTicket']?.[index]?.url; @@ -877,15 +871,15 @@ export const SmartTransferApiFp = function(configuration?: Configuration) { /** * Set funding source for ticket term (in case of ASYNC tickets, this will execute transfer immediately) * @summary Define funding source - * @param {SmartTransferFundTermDto} smartTransferFundTermDto + * @param {SmartTransferFundTerm} smartTransferFundTerm * @param {string} ticketId * @param {string} termId * @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 fundTicketTerm(smartTransferFundTermDto: SmartTransferFundTermDto, ticketId: string, termId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.fundTicketTerm(smartTransferFundTermDto, ticketId, termId, idempotencyKey, options); + async fundTicketTerm(smartTransferFundTerm: SmartTransferFundTerm, ticketId: string, termId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.fundTicketTerm(smartTransferFundTerm, ticketId, termId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['SmartTransferApi.fundTicketTerm']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -896,7 +890,7 @@ export const SmartTransferApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getSmartTransferUserGroups(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getSmartTransferUserGroups(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSmartTransferUserGroups(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['SmartTransferApi.getSmartTransferUserGroups']?.[index]?.url; @@ -905,15 +899,15 @@ export const SmartTransferApiFp = function(configuration?: Configuration) { /** * Manually set ticket term transaction * @summary Manually add term transaction - * @param {SmartTransferManuallyFundTermDto} smartTransferManuallyFundTermDto + * @param {SmartTransferManuallyFundTerm} smartTransferManuallyFundTerm * @param {string} ticketId * @param {string} termId * @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 manuallyFundTicketTerm(smartTransferManuallyFundTermDto: SmartTransferManuallyFundTermDto, ticketId: string, termId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.manuallyFundTicketTerm(smartTransferManuallyFundTermDto, ticketId, termId, idempotencyKey, options); + async manuallyFundTicketTerm(smartTransferManuallyFundTerm: SmartTransferManuallyFundTerm, ticketId: string, termId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.manuallyFundTicketTerm(smartTransferManuallyFundTerm, ticketId, termId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['SmartTransferApi.manuallyFundTicketTerm']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -948,7 +942,7 @@ export const SmartTransferApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async searchTickets(q?: string, statuses?: Array, networkId?: string, createdByMe?: boolean, expiresAfter?: string, expiresBefore?: string, type?: SearchTicketsTypeEnum, externalRefId?: string, after?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async searchTickets(q?: string, statuses?: Array, networkId?: string, createdByMe?: boolean, expiresAfter?: string, expiresBefore?: string, type?: SearchTicketsTypeEnum, externalRefId?: string, after?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.searchTickets(q, statuses, networkId, createdByMe, expiresAfter, expiresBefore, type, externalRefId, after, limit, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['SmartTransferApi.searchTickets']?.[index]?.url; @@ -957,14 +951,14 @@ export const SmartTransferApiFp = function(configuration?: Configuration) { /** * Set external id Smart Transfer ticket * @summary Add external ref. ID - * @param {SmartTransferSetTicketExternalIdDto} smartTransferSetTicketExternalIdDto + * @param {SmartTransferSetTicketExternalId} smartTransferSetTicketExternalId * @param {string} ticketId * @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 setExternalRefId(smartTransferSetTicketExternalIdDto: SmartTransferSetTicketExternalIdDto, ticketId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.setExternalRefId(smartTransferSetTicketExternalIdDto, ticketId, idempotencyKey, options); + async setExternalRefId(smartTransferSetTicketExternalId: SmartTransferSetTicketExternalId, ticketId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.setExternalRefId(smartTransferSetTicketExternalId, ticketId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['SmartTransferApi.setExternalRefId']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -972,14 +966,14 @@ export const SmartTransferApiFp = function(configuration?: Configuration) { /** * Set expiration date on Smart Transfer ticket * @summary Set expiration - * @param {SmartTransferSetTicketExpirationDto} smartTransferSetTicketExpirationDto + * @param {SmartTransferSetTicketExpiration} smartTransferSetTicketExpiration * @param {string} ticketId * @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 setTicketExpiration(smartTransferSetTicketExpirationDto: SmartTransferSetTicketExpirationDto, ticketId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.setTicketExpiration(smartTransferSetTicketExpirationDto, ticketId, idempotencyKey, options); + async setTicketExpiration(smartTransferSetTicketExpiration: SmartTransferSetTicketExpiration, ticketId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.setTicketExpiration(smartTransferSetTicketExpiration, ticketId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['SmartTransferApi.setTicketExpiration']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -987,13 +981,13 @@ export const SmartTransferApiFp = function(configuration?: Configuration) { /** * Set Smart Transfer user group * @summary Set user group - * @param {SmartTransferSetUserGroupsDto} smartTransferSetUserGroupsDto + * @param {SmartTransferSetUserGroups} smartTransferSetUserGroups * @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 setUserGroups(smartTransferSetUserGroupsDto: SmartTransferSetUserGroupsDto, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.setUserGroups(smartTransferSetUserGroupsDto, idempotencyKey, options); + async setUserGroups(smartTransferSetUserGroups: SmartTransferSetUserGroups, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.setUserGroups(smartTransferSetUserGroups, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['SmartTransferApi.setUserGroups']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -1001,14 +995,14 @@ export const SmartTransferApiFp = function(configuration?: Configuration) { /** * Submit Smart Transfer ticket - change status into ready for approval if auto approval is not turned on, or OPEN if auto approval is on * @summary Submit ticket - * @param {SmartTransferSubmitTicketDto} smartTransferSubmitTicketDto + * @param {SmartTransferSubmitTicket} smartTransferSubmitTicket * @param {string} ticketId * @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 submitTicket(smartTransferSubmitTicketDto: SmartTransferSubmitTicketDto, ticketId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.submitTicket(smartTransferSubmitTicketDto, ticketId, idempotencyKey, options); + async submitTicket(smartTransferSubmitTicket: SmartTransferSubmitTicket, ticketId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.submitTicket(smartTransferSubmitTicket, ticketId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['SmartTransferApi.submitTicket']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -1016,15 +1010,15 @@ export const SmartTransferApiFp = function(configuration?: Configuration) { /** * Update ticket term (when ticket status is DRAFT) * @summary Update ticket leg (term) - * @param {SmartTransferUpdateTicketTermDto} smartTransferUpdateTicketTermDto + * @param {SmartTransferUpdateTicketTerm} smartTransferUpdateTicketTerm * @param {string} ticketId * @param {string} termId * @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 updateTicketTerm(smartTransferUpdateTicketTermDto: SmartTransferUpdateTicketTermDto, ticketId: string, termId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateTicketTerm(smartTransferUpdateTicketTermDto, ticketId, termId, idempotencyKey, options); + async updateTicketTerm(smartTransferUpdateTicketTerm: SmartTransferUpdateTicketTerm, ticketId: string, termId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateTicketTerm(smartTransferUpdateTicketTerm, ticketId, termId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['SmartTransferApi.updateTicketTerm']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -1046,7 +1040,7 @@ export const SmartTransferApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - cancelTicket(requestParameters: SmartTransferApiCancelTicketRequest, options?: RawAxiosRequestConfig): AxiosPromise { + cancelTicket(requestParameters: SmartTransferApiCancelTicketRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.cancelTicket(requestParameters.ticketId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** @@ -1056,8 +1050,8 @@ export const SmartTransferApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createTicket(requestParameters: SmartTransferApiCreateTicketRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.createTicket(requestParameters.smartTransferCreateTicketDto, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + createTicket(requestParameters: SmartTransferApiCreateTicketRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createTicket(requestParameters.smartTransferCreateTicket, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Creates new smart transfer ticket term (when the ticket status is DRAFT) @@ -1066,8 +1060,8 @@ export const SmartTransferApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createTicketTerm(requestParameters: SmartTransferApiCreateTicketTermRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.createTicketTerm(requestParameters.smartTransferCreateTicketTermDto, requestParameters.ticketId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + createTicketTerm(requestParameters: SmartTransferApiCreateTicketTermRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createTicketTerm(requestParameters.smartTransferCreateTicketTerm, requestParameters.ticketId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Find Smart Transfer ticket by id @@ -1076,7 +1070,7 @@ export const SmartTransferApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - findTicketById(requestParameters: SmartTransferApiFindTicketByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise { + findTicketById(requestParameters: SmartTransferApiFindTicketByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.findTicketById(requestParameters.ticketId, options).then((request) => request(axios, basePath)); }, /** @@ -1086,7 +1080,7 @@ export const SmartTransferApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - findTicketTermById(requestParameters: SmartTransferApiFindTicketTermByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise { + findTicketTermById(requestParameters: SmartTransferApiFindTicketTermByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.findTicketTermById(requestParameters.ticketId, requestParameters.termId, options).then((request) => request(axios, basePath)); }, /** @@ -1096,7 +1090,7 @@ export const SmartTransferApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - fulfillTicket(requestParameters: SmartTransferApiFulfillTicketRequest, options?: RawAxiosRequestConfig): AxiosPromise { + fulfillTicket(requestParameters: SmartTransferApiFulfillTicketRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.fulfillTicket(requestParameters.ticketId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** @@ -1106,8 +1100,8 @@ export const SmartTransferApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - fundTicketTerm(requestParameters: SmartTransferApiFundTicketTermRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.fundTicketTerm(requestParameters.smartTransferFundTermDto, requestParameters.ticketId, requestParameters.termId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + fundTicketTerm(requestParameters: SmartTransferApiFundTicketTermRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.fundTicketTerm(requestParameters.smartTransferFundTerm, requestParameters.ticketId, requestParameters.termId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Get Smart Transfer user groups @@ -1115,7 +1109,7 @@ export const SmartTransferApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getSmartTransferUserGroups(options?: RawAxiosRequestConfig): AxiosPromise { + getSmartTransferUserGroups(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getSmartTransferUserGroups(options).then((request) => request(axios, basePath)); }, /** @@ -1125,8 +1119,8 @@ export const SmartTransferApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - manuallyFundTicketTerm(requestParameters: SmartTransferApiManuallyFundTicketTermRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.manuallyFundTicketTerm(requestParameters.smartTransferManuallyFundTermDto, requestParameters.ticketId, requestParameters.termId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + manuallyFundTicketTerm(requestParameters: SmartTransferApiManuallyFundTicketTermRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.manuallyFundTicketTerm(requestParameters.smartTransferManuallyFundTerm, requestParameters.ticketId, requestParameters.termId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Delete ticket term when ticket is in DRAFT status @@ -1145,7 +1139,7 @@ export const SmartTransferApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - searchTickets(requestParameters: SmartTransferApiSearchTicketsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + searchTickets(requestParameters: SmartTransferApiSearchTicketsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.searchTickets(requestParameters.q, requestParameters.statuses, requestParameters.networkId, requestParameters.createdByMe, requestParameters.expiresAfter, requestParameters.expiresBefore, requestParameters.type, requestParameters.externalRefId, requestParameters.after, requestParameters.limit, options).then((request) => request(axios, basePath)); }, /** @@ -1155,8 +1149,8 @@ export const SmartTransferApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setExternalRefId(requestParameters: SmartTransferApiSetExternalRefIdRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.setExternalRefId(requestParameters.smartTransferSetTicketExternalIdDto, requestParameters.ticketId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + setExternalRefId(requestParameters: SmartTransferApiSetExternalRefIdRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.setExternalRefId(requestParameters.smartTransferSetTicketExternalId, requestParameters.ticketId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Set expiration date on Smart Transfer ticket @@ -1165,8 +1159,8 @@ export const SmartTransferApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setTicketExpiration(requestParameters: SmartTransferApiSetTicketExpirationRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.setTicketExpiration(requestParameters.smartTransferSetTicketExpirationDto, requestParameters.ticketId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + setTicketExpiration(requestParameters: SmartTransferApiSetTicketExpirationRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.setTicketExpiration(requestParameters.smartTransferSetTicketExpiration, requestParameters.ticketId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Set Smart Transfer user group @@ -1175,8 +1169,8 @@ export const SmartTransferApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setUserGroups(requestParameters: SmartTransferApiSetUserGroupsRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.setUserGroups(requestParameters.smartTransferSetUserGroupsDto, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + setUserGroups(requestParameters: SmartTransferApiSetUserGroupsRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.setUserGroups(requestParameters.smartTransferSetUserGroups, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Submit Smart Transfer ticket - change status into ready for approval if auto approval is not turned on, or OPEN if auto approval is on @@ -1185,8 +1179,8 @@ export const SmartTransferApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - submitTicket(requestParameters: SmartTransferApiSubmitTicketRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.submitTicket(requestParameters.smartTransferSubmitTicketDto, requestParameters.ticketId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + submitTicket(requestParameters: SmartTransferApiSubmitTicketRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.submitTicket(requestParameters.smartTransferSubmitTicket, requestParameters.ticketId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Update ticket term (when ticket status is DRAFT) @@ -1195,8 +1189,8 @@ export const SmartTransferApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateTicketTerm(requestParameters: SmartTransferApiUpdateTicketTermRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.updateTicketTerm(requestParameters.smartTransferUpdateTicketTermDto, requestParameters.ticketId, requestParameters.termId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + updateTicketTerm(requestParameters: SmartTransferApiUpdateTicketTermRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updateTicketTerm(requestParameters.smartTransferUpdateTicketTerm, requestParameters.ticketId, requestParameters.termId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, }; }; @@ -1230,10 +1224,10 @@ export interface SmartTransferApiCancelTicketRequest { export interface SmartTransferApiCreateTicketRequest { /** * - * @type {SmartTransferCreateTicketDto} + * @type {SmartTransferCreateTicket} * @memberof SmartTransferApiCreateTicket */ - readonly smartTransferCreateTicketDto: SmartTransferCreateTicketDto + readonly smartTransferCreateTicket: SmartTransferCreateTicket /** * 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. @@ -1251,10 +1245,10 @@ export interface SmartTransferApiCreateTicketRequest { export interface SmartTransferApiCreateTicketTermRequest { /** * - * @type {SmartTransferCreateTicketTermDto} + * @type {SmartTransferCreateTicketTerm} * @memberof SmartTransferApiCreateTicketTerm */ - readonly smartTransferCreateTicketTermDto: SmartTransferCreateTicketTermDto + readonly smartTransferCreateTicketTerm: SmartTransferCreateTicketTerm /** * @@ -1335,10 +1329,10 @@ export interface SmartTransferApiFulfillTicketRequest { export interface SmartTransferApiFundTicketTermRequest { /** * - * @type {SmartTransferFundTermDto} + * @type {SmartTransferFundTerm} * @memberof SmartTransferApiFundTicketTerm */ - readonly smartTransferFundTermDto: SmartTransferFundTermDto + readonly smartTransferFundTerm: SmartTransferFundTerm /** * @@ -1370,10 +1364,10 @@ export interface SmartTransferApiFundTicketTermRequest { export interface SmartTransferApiManuallyFundTicketTermRequest { /** * - * @type {SmartTransferManuallyFundTermDto} + * @type {SmartTransferManuallyFundTerm} * @memberof SmartTransferApiManuallyFundTicketTerm */ - readonly smartTransferManuallyFundTermDto: SmartTransferManuallyFundTermDto + readonly smartTransferManuallyFundTerm: SmartTransferManuallyFundTerm /** * @@ -1503,10 +1497,10 @@ export interface SmartTransferApiSearchTicketsRequest { export interface SmartTransferApiSetExternalRefIdRequest { /** * - * @type {SmartTransferSetTicketExternalIdDto} + * @type {SmartTransferSetTicketExternalId} * @memberof SmartTransferApiSetExternalRefId */ - readonly smartTransferSetTicketExternalIdDto: SmartTransferSetTicketExternalIdDto + readonly smartTransferSetTicketExternalId: SmartTransferSetTicketExternalId /** * @@ -1531,10 +1525,10 @@ export interface SmartTransferApiSetExternalRefIdRequest { export interface SmartTransferApiSetTicketExpirationRequest { /** * - * @type {SmartTransferSetTicketExpirationDto} + * @type {SmartTransferSetTicketExpiration} * @memberof SmartTransferApiSetTicketExpiration */ - readonly smartTransferSetTicketExpirationDto: SmartTransferSetTicketExpirationDto + readonly smartTransferSetTicketExpiration: SmartTransferSetTicketExpiration /** * @@ -1559,10 +1553,10 @@ export interface SmartTransferApiSetTicketExpirationRequest { export interface SmartTransferApiSetUserGroupsRequest { /** * - * @type {SmartTransferSetUserGroupsDto} + * @type {SmartTransferSetUserGroups} * @memberof SmartTransferApiSetUserGroups */ - readonly smartTransferSetUserGroupsDto: SmartTransferSetUserGroupsDto + readonly smartTransferSetUserGroups: SmartTransferSetUserGroups /** * 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. @@ -1580,10 +1574,10 @@ export interface SmartTransferApiSetUserGroupsRequest { export interface SmartTransferApiSubmitTicketRequest { /** * - * @type {SmartTransferSubmitTicketDto} + * @type {SmartTransferSubmitTicket} * @memberof SmartTransferApiSubmitTicket */ - readonly smartTransferSubmitTicketDto: SmartTransferSubmitTicketDto + readonly smartTransferSubmitTicket: SmartTransferSubmitTicket /** * @@ -1608,10 +1602,10 @@ export interface SmartTransferApiSubmitTicketRequest { export interface SmartTransferApiUpdateTicketTermRequest { /** * - * @type {SmartTransferUpdateTicketTermDto} + * @type {SmartTransferUpdateTicketTerm} * @memberof SmartTransferApiUpdateTicketTerm */ - readonly smartTransferUpdateTicketTermDto: SmartTransferUpdateTicketTermDto + readonly smartTransferUpdateTicketTerm: SmartTransferUpdateTicketTerm /** * @@ -1663,7 +1657,7 @@ export class SmartTransferApi extends BaseAPI { * @memberof SmartTransferApi */ public createTicket(requestParameters: SmartTransferApiCreateTicketRequest) { - return SmartTransferApiFp(this.configuration).createTicket(requestParameters.smartTransferCreateTicketDto, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return SmartTransferApiFp(this.configuration).createTicket(requestParameters.smartTransferCreateTicket, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** @@ -1675,7 +1669,7 @@ export class SmartTransferApi extends BaseAPI { * @memberof SmartTransferApi */ public createTicketTerm(requestParameters: SmartTransferApiCreateTicketTermRequest) { - return SmartTransferApiFp(this.configuration).createTicketTerm(requestParameters.smartTransferCreateTicketTermDto, requestParameters.ticketId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return SmartTransferApiFp(this.configuration).createTicketTerm(requestParameters.smartTransferCreateTicketTerm, requestParameters.ticketId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** @@ -1723,7 +1717,7 @@ export class SmartTransferApi extends BaseAPI { * @memberof SmartTransferApi */ public fundTicketTerm(requestParameters: SmartTransferApiFundTicketTermRequest) { - return SmartTransferApiFp(this.configuration).fundTicketTerm(requestParameters.smartTransferFundTermDto, requestParameters.ticketId, requestParameters.termId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return SmartTransferApiFp(this.configuration).fundTicketTerm(requestParameters.smartTransferFundTerm, requestParameters.ticketId, requestParameters.termId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** @@ -1746,7 +1740,7 @@ export class SmartTransferApi extends BaseAPI { * @memberof SmartTransferApi */ public manuallyFundTicketTerm(requestParameters: SmartTransferApiManuallyFundTicketTermRequest) { - return SmartTransferApiFp(this.configuration).manuallyFundTicketTerm(requestParameters.smartTransferManuallyFundTermDto, requestParameters.ticketId, requestParameters.termId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return SmartTransferApiFp(this.configuration).manuallyFundTicketTerm(requestParameters.smartTransferManuallyFundTerm, requestParameters.ticketId, requestParameters.termId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** @@ -1782,7 +1776,7 @@ export class SmartTransferApi extends BaseAPI { * @memberof SmartTransferApi */ public setExternalRefId(requestParameters: SmartTransferApiSetExternalRefIdRequest) { - return SmartTransferApiFp(this.configuration).setExternalRefId(requestParameters.smartTransferSetTicketExternalIdDto, requestParameters.ticketId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return SmartTransferApiFp(this.configuration).setExternalRefId(requestParameters.smartTransferSetTicketExternalId, requestParameters.ticketId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** @@ -1794,7 +1788,7 @@ export class SmartTransferApi extends BaseAPI { * @memberof SmartTransferApi */ public setTicketExpiration(requestParameters: SmartTransferApiSetTicketExpirationRequest) { - return SmartTransferApiFp(this.configuration).setTicketExpiration(requestParameters.smartTransferSetTicketExpirationDto, requestParameters.ticketId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return SmartTransferApiFp(this.configuration).setTicketExpiration(requestParameters.smartTransferSetTicketExpiration, requestParameters.ticketId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** @@ -1806,7 +1800,7 @@ export class SmartTransferApi extends BaseAPI { * @memberof SmartTransferApi */ public setUserGroups(requestParameters: SmartTransferApiSetUserGroupsRequest) { - return SmartTransferApiFp(this.configuration).setUserGroups(requestParameters.smartTransferSetUserGroupsDto, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return SmartTransferApiFp(this.configuration).setUserGroups(requestParameters.smartTransferSetUserGroups, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** @@ -1818,7 +1812,7 @@ export class SmartTransferApi extends BaseAPI { * @memberof SmartTransferApi */ public submitTicket(requestParameters: SmartTransferApiSubmitTicketRequest) { - return SmartTransferApiFp(this.configuration).submitTicket(requestParameters.smartTransferSubmitTicketDto, requestParameters.ticketId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return SmartTransferApiFp(this.configuration).submitTicket(requestParameters.smartTransferSubmitTicket, requestParameters.ticketId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** @@ -1830,7 +1824,7 @@ export class SmartTransferApi extends BaseAPI { * @memberof SmartTransferApi */ public updateTicketTerm(requestParameters: SmartTransferApiUpdateTicketTermRequest) { - return SmartTransferApiFp(this.configuration).updateTicketTerm(requestParameters.smartTransferUpdateTicketTermDto, requestParameters.ticketId, requestParameters.termId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return SmartTransferApiFp(this.configuration).updateTicketTerm(requestParameters.smartTransferUpdateTicketTerm, requestParameters.ticketId, requestParameters.termId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } } diff --git a/api/staking-beta-api.ts b/api/staking-beta-api.ts index fde7456..2e233bb 100644 --- a/api/staking-beta-api.ts +++ b/api/staking-beta-api.ts @@ -32,10 +32,10 @@ import { DelegationDto } from '../models'; // @ts-ignore import { DelegationSummaryDto } from '../models'; // @ts-ignore -import { ExecuteAction201Response } from '../models'; -// @ts-ignore import { ExecuteActionRequest } from '../models'; // @ts-ignore +import { ExecuteActionResponse } from '../models'; +// @ts-ignore import { ProviderDto } from '../models'; /** * StakingBetaApi - axios parameter creator @@ -388,7 +388,7 @@ export const StakingBetaApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async executeAction(executeActionRequest: ExecuteActionRequest, chainDescriptor: ExecuteActionChainDescriptorEnum, actionId: ExecuteActionActionIdEnum, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async executeAction(executeActionRequest: ExecuteActionRequest, chainDescriptor: ExecuteActionChainDescriptorEnum, actionId: ExecuteActionActionIdEnum, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.executeAction(executeActionRequest, chainDescriptor, actionId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['StakingBetaApi.executeAction']?.[index]?.url; @@ -508,7 +508,7 @@ export const StakingBetaApiFactory = function (configuration?: Configuration, ba * @param {*} [options] Override http request option. * @throws {RequiredError} */ - executeAction(requestParameters: StakingBetaApiExecuteActionRequest, options?: RawAxiosRequestConfig): AxiosPromise { + executeAction(requestParameters: StakingBetaApiExecuteActionRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.executeAction(requestParameters.executeActionRequest, requestParameters.chainDescriptor, requestParameters.actionId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** diff --git a/api/travel-rule-beta-api.ts b/api/travel-rule-beta-api.ts index 99fed36..19ab194 100644 --- a/api/travel-rule-beta-api.ts +++ b/api/travel-rule-beta-api.ts @@ -140,9 +140,9 @@ export const TravelRuleBetaApiAxiosParamCreator = function (configuration?: Conf * @param {*} [options] Override http request option. * @throws {RequiredError} */ - travelRuleApiControllerUpdateVasp: async (travelRuleUpdateVASPDetails: TravelRuleUpdateVASPDetails, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + updateVasp: async (travelRuleUpdateVASPDetails: TravelRuleUpdateVASPDetails, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'travelRuleUpdateVASPDetails' is not null or undefined - assertParamExists('travelRuleApiControllerUpdateVasp', 'travelRuleUpdateVASPDetails', travelRuleUpdateVASPDetails) + assertParamExists('updateVasp', 'travelRuleUpdateVASPDetails', travelRuleUpdateVASPDetails) const localVarPath = `/screening/travel_rule/vasp/update`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -303,10 +303,10 @@ export const TravelRuleBetaApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async travelRuleApiControllerUpdateVasp(travelRuleUpdateVASPDetails: TravelRuleUpdateVASPDetails, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.travelRuleApiControllerUpdateVasp(travelRuleUpdateVASPDetails, idempotencyKey, options); + async updateVasp(travelRuleUpdateVASPDetails: TravelRuleUpdateVASPDetails, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateVasp(travelRuleUpdateVASPDetails, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['TravelRuleBetaApi.travelRuleApiControllerUpdateVasp']?.[index]?.url; + const operationBasePath = operationServerMap['TravelRuleBetaApi.updateVasp']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** @@ -370,12 +370,12 @@ export const TravelRuleBetaApiFactory = function (configuration?: Configuration, /** * Update VASP Details. Updates a VASP with the provided parameters. Use this endpoint to add your public jsonDIDkey generated by Notabene. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren\'t yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). * @summary Add jsonDidKey to VASP details - * @param {TravelRuleBetaApiTravelRuleApiControllerUpdateVaspRequest} requestParameters Request parameters. + * @param {TravelRuleBetaApiUpdateVaspRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - travelRuleApiControllerUpdateVasp(requestParameters: TravelRuleBetaApiTravelRuleApiControllerUpdateVaspRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.travelRuleApiControllerUpdateVasp(requestParameters.travelRuleUpdateVASPDetails, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + updateVasp(requestParameters: TravelRuleBetaApiUpdateVaspRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updateVasp(requestParameters.travelRuleUpdateVASPDetails, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Validate Full Travel Rule transactions. Checks for all required information on the originator and beneficiary VASPs. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren\'t yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). @@ -457,22 +457,22 @@ export interface TravelRuleBetaApiGetVASPsRequest { } /** - * Request parameters for travelRuleApiControllerUpdateVasp operation in TravelRuleBetaApi. + * Request parameters for updateVasp operation in TravelRuleBetaApi. * @export - * @interface TravelRuleBetaApiTravelRuleApiControllerUpdateVaspRequest + * @interface TravelRuleBetaApiUpdateVaspRequest */ -export interface TravelRuleBetaApiTravelRuleApiControllerUpdateVaspRequest { +export interface TravelRuleBetaApiUpdateVaspRequest { /** * * @type {TravelRuleUpdateVASPDetails} - * @memberof TravelRuleBetaApiTravelRuleApiControllerUpdateVasp + * @memberof TravelRuleBetaApiUpdateVasp */ readonly travelRuleUpdateVASPDetails: TravelRuleUpdateVASPDetails /** * 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 TravelRuleBetaApiTravelRuleApiControllerUpdateVasp + * @memberof TravelRuleBetaApiUpdateVasp */ readonly idempotencyKey?: string } @@ -553,13 +553,13 @@ export class TravelRuleBetaApi extends BaseAPI { /** * Update VASP Details. Updates a VASP with the provided parameters. Use this endpoint to add your public jsonDIDkey generated by Notabene. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren\'t yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). * @summary Add jsonDidKey to VASP details - * @param {TravelRuleBetaApiTravelRuleApiControllerUpdateVaspRequest} requestParameters Request parameters. + * @param {TravelRuleBetaApiUpdateVaspRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TravelRuleBetaApi */ - public travelRuleApiControllerUpdateVasp(requestParameters: TravelRuleBetaApiTravelRuleApiControllerUpdateVaspRequest) { - return TravelRuleBetaApiFp(this.configuration).travelRuleApiControllerUpdateVasp(requestParameters.travelRuleUpdateVASPDetails, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + public updateVasp(requestParameters: TravelRuleBetaApiUpdateVaspRequest) { + return TravelRuleBetaApiFp(this.configuration).updateVasp(requestParameters.travelRuleUpdateVASPDetails, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** diff --git a/api/vaults-api.ts b/api/vaults-api.ts index 0165f53..e7b9223 100644 --- a/api/vaults-api.ts +++ b/api/vaults-api.ts @@ -26,13 +26,13 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { CreateAddressResponse } from '../models'; +import { CreateAddressRequest } from '../models'; // @ts-ignore -import { CreateMultipleAccountsRequest } from '../models'; +import { CreateAddressResponse } from '../models'; // @ts-ignore -import { CreateVaultAccountAssetAddressRequest } from '../models'; +import { CreateAssetsRequest } from '../models'; // @ts-ignore -import { CreateVaultAccountAssetRequest } from '../models'; +import { CreateMultipleAccountsRequest } from '../models'; // @ts-ignore import { CreateVaultAccountRequest } from '../models'; // @ts-ignore @@ -48,9 +48,11 @@ import { PaginatedAssetWalletResponse } from '../models'; // @ts-ignore import { PublicKeyInformation } from '../models'; // @ts-ignore -import { SetAutoFuelForVaultAccountRequest } from '../models'; +import { SetAutoFuelRequest } from '../models'; +// @ts-ignore +import { SetCustomerRefIdForAddressRequest } from '../models'; // @ts-ignore -import { SetCustomerRefIdForVaultAccountRequest } from '../models'; +import { SetCustomerRefIdRequest } from '../models'; // @ts-ignore import { UnspentInputsResponse } from '../models'; // @ts-ignore @@ -248,12 +250,12 @@ export const VaultsApiAxiosParamCreator = function (configuration?: Configuratio * @summary Create a new wallet * @param {string} vaultAccountId The ID of the vault account to return, or \'default\' for the default vault account * @param {string} assetId The ID of the asset - * @param {CreateVaultAccountAssetRequest} [createVaultAccountAssetRequest] + * @param {CreateAssetsRequest} [createAssetsRequest] * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createVaultAccountAsset: async (vaultAccountId: string, assetId: string, createVaultAccountAssetRequest?: CreateVaultAccountAssetRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + createVaultAccountAsset: async (vaultAccountId: string, assetId: string, createAssetsRequest?: CreateAssetsRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'vaultAccountId' is not null or undefined assertParamExists('createVaultAccountAsset', 'vaultAccountId', vaultAccountId) // verify required parameter 'assetId' is not null or undefined @@ -283,7 +285,7 @@ export const VaultsApiAxiosParamCreator = function (configuration?: Configuratio setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(createVaultAccountAssetRequest, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(createAssetsRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -295,12 +297,12 @@ export const VaultsApiAxiosParamCreator = function (configuration?: Configuratio * @summary Create new asset deposit address * @param {string} vaultAccountId The ID of the vault account to return * @param {string} assetId The ID of the asset - * @param {CreateVaultAccountAssetAddressRequest} [createVaultAccountAssetAddressRequest] + * @param {CreateAddressRequest} [createAddressRequest] * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createVaultAccountAssetAddress: async (vaultAccountId: string, assetId: string, createVaultAccountAssetAddressRequest?: CreateVaultAccountAssetAddressRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + createVaultAccountAssetAddress: async (vaultAccountId: string, assetId: string, createAddressRequest?: CreateAddressRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'vaultAccountId' is not null or undefined assertParamExists('createVaultAccountAssetAddress', 'vaultAccountId', vaultAccountId) // verify required parameter 'assetId' is not null or undefined @@ -330,7 +332,7 @@ export const VaultsApiAxiosParamCreator = function (configuration?: Configuratio setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(createVaultAccountAssetAddressRequest, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(createAddressRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -975,21 +977,29 @@ export const VaultsApiAxiosParamCreator = function (configuration?: Configuratio }; }, /** - * Sets the autofueling property of the vault account to enabled or disabled. - * @summary Turn autofueling on or off - * @param {SetAutoFuelForVaultAccountRequest} setAutoFuelForVaultAccountRequest - * @param {string} vaultAccountId The vault account ID + * Sets an AML/KYT customer reference ID for a specific address. + * @summary Assign AML customer reference ID + * @param {SetCustomerRefIdForAddressRequest} setCustomerRefIdForAddressRequest + * @param {string} vaultAccountId The ID of the vault account + * @param {string} assetId The ID of the asset + * @param {string} addressId The address for which to add a description. For XRP, use <address>:<tag>, for all other assets, use only the address * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setAutoFuelForVaultAccount: async (setAutoFuelForVaultAccountRequest: SetAutoFuelForVaultAccountRequest, vaultAccountId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'setAutoFuelForVaultAccountRequest' is not null or undefined - assertParamExists('setAutoFuelForVaultAccount', 'setAutoFuelForVaultAccountRequest', setAutoFuelForVaultAccountRequest) + setCustomerRefIdForAddress: async (setCustomerRefIdForAddressRequest: SetCustomerRefIdForAddressRequest, vaultAccountId: string, assetId: string, addressId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'setCustomerRefIdForAddressRequest' is not null or undefined + assertParamExists('setCustomerRefIdForAddress', 'setCustomerRefIdForAddressRequest', setCustomerRefIdForAddressRequest) // verify required parameter 'vaultAccountId' is not null or undefined - assertParamExists('setAutoFuelForVaultAccount', 'vaultAccountId', vaultAccountId) - const localVarPath = `/vault/accounts/{vaultAccountId}/set_auto_fuel` - .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))); + assertParamExists('setCustomerRefIdForAddress', 'vaultAccountId', vaultAccountId) + // verify required parameter 'assetId' is not null or undefined + assertParamExists('setCustomerRefIdForAddress', 'assetId', assetId) + // verify required parameter 'addressId' is not null or undefined + assertParamExists('setCustomerRefIdForAddress', 'addressId', addressId) + const localVarPath = `/vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/set_customer_ref_id` + .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))) + .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId))) + .replace(`{${"addressId"}}`, encodeURIComponent(String(addressId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1012,7 +1022,7 @@ export const VaultsApiAxiosParamCreator = function (configuration?: Configuratio setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(setAutoFuelForVaultAccountRequest, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(setCustomerRefIdForAddressRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -1020,29 +1030,21 @@ export const VaultsApiAxiosParamCreator = function (configuration?: Configuratio }; }, /** - * Sets an AML/KYT customer reference ID for a specific address. - * @summary Assign AML customer reference ID - * @param {SetCustomerRefIdForVaultAccountRequest} setCustomerRefIdForVaultAccountRequest - * @param {string} vaultAccountId The ID of the vault account - * @param {string} assetId The ID of the asset - * @param {string} addressId The address for which to add a description. For XRP, use <address>:<tag>, for all other assets, use only the address + * Sets the autofueling property of the vault account to enabled or disabled. + * @summary Turn autofueling on or off + * @param {SetAutoFuelRequest} setAutoFuelRequest + * @param {string} vaultAccountId The vault account ID * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setCustomerRefIdForAddress: async (setCustomerRefIdForVaultAccountRequest: SetCustomerRefIdForVaultAccountRequest, vaultAccountId: string, assetId: string, addressId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'setCustomerRefIdForVaultAccountRequest' is not null or undefined - assertParamExists('setCustomerRefIdForAddress', 'setCustomerRefIdForVaultAccountRequest', setCustomerRefIdForVaultAccountRequest) + setVaultAccountAutoFuel: async (setAutoFuelRequest: SetAutoFuelRequest, vaultAccountId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'setAutoFuelRequest' is not null or undefined + assertParamExists('setVaultAccountAutoFuel', 'setAutoFuelRequest', setAutoFuelRequest) // verify required parameter 'vaultAccountId' is not null or undefined - assertParamExists('setCustomerRefIdForAddress', 'vaultAccountId', vaultAccountId) - // verify required parameter 'assetId' is not null or undefined - assertParamExists('setCustomerRefIdForAddress', 'assetId', assetId) - // verify required parameter 'addressId' is not null or undefined - assertParamExists('setCustomerRefIdForAddress', 'addressId', addressId) - const localVarPath = `/vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/set_customer_ref_id` - .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))) - .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId))) - .replace(`{${"addressId"}}`, encodeURIComponent(String(addressId))); + assertParamExists('setVaultAccountAutoFuel', 'vaultAccountId', vaultAccountId) + const localVarPath = `/vault/accounts/{vaultAccountId}/set_auto_fuel` + .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1065,7 +1067,7 @@ export const VaultsApiAxiosParamCreator = function (configuration?: Configuratio setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(setCustomerRefIdForVaultAccountRequest, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(setAutoFuelRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -1075,17 +1077,17 @@ export const VaultsApiAxiosParamCreator = function (configuration?: Configuratio /** * Assigns an AML/KYT customer reference ID for the vault account. * @summary Set an AML/KYT customer reference ID for a vault account - * @param {SetCustomerRefIdForVaultAccountRequest} setCustomerRefIdForVaultAccountRequest + * @param {SetCustomerRefIdRequest} setCustomerRefIdRequest * @param {string} vaultAccountId The vault account ID * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setCustomerRefIdForVaultAccount: async (setCustomerRefIdForVaultAccountRequest: SetCustomerRefIdForVaultAccountRequest, vaultAccountId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'setCustomerRefIdForVaultAccountRequest' is not null or undefined - assertParamExists('setCustomerRefIdForVaultAccount', 'setCustomerRefIdForVaultAccountRequest', setCustomerRefIdForVaultAccountRequest) + setVaultAccountCustomerRefId: async (setCustomerRefIdRequest: SetCustomerRefIdRequest, vaultAccountId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'setCustomerRefIdRequest' is not null or undefined + assertParamExists('setVaultAccountCustomerRefId', 'setCustomerRefIdRequest', setCustomerRefIdRequest) // verify required parameter 'vaultAccountId' is not null or undefined - assertParamExists('setCustomerRefIdForVaultAccount', 'vaultAccountId', vaultAccountId) + assertParamExists('setVaultAccountCustomerRefId', 'vaultAccountId', vaultAccountId) const localVarPath = `/vault/accounts/{vaultAccountId}/set_customer_ref_id` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -1110,7 +1112,7 @@ export const VaultsApiAxiosParamCreator = function (configuration?: Configuratio setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(setCustomerRefIdForVaultAccountRequest, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(setCustomerRefIdRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -1257,12 +1259,11 @@ export const VaultsApiAxiosParamCreator = function (configuration?: Configuratio * @summary Refresh asset balance data * @param {string} vaultAccountId The ID of the vault account to return * @param {string} assetId The ID of the asset - * @param {object} [body] * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateVaultAccountAssetBalance: async (vaultAccountId: string, assetId: string, body?: object, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + updateVaultAccountAssetBalance: async (vaultAccountId: string, assetId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'vaultAccountId' is not null or undefined assertParamExists('updateVaultAccountAssetBalance', 'vaultAccountId', vaultAccountId) // verify required parameter 'assetId' is not null or undefined @@ -1287,12 +1288,9 @@ export const VaultsApiAxiosParamCreator = function (configuration?: Configuratio - localVarHeaderParameter['Content-Type'] = 'application/json'; - setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -1373,13 +1371,13 @@ export const VaultsApiFp = function(configuration?: Configuration) { * @summary Create a new wallet * @param {string} vaultAccountId The ID of the vault account to return, or \'default\' for the default vault account * @param {string} assetId The ID of the asset - * @param {CreateVaultAccountAssetRequest} [createVaultAccountAssetRequest] + * @param {CreateAssetsRequest} [createAssetsRequest] * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createVaultAccountAsset(vaultAccountId: string, assetId: string, createVaultAccountAssetRequest?: CreateVaultAccountAssetRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createVaultAccountAsset(vaultAccountId, assetId, createVaultAccountAssetRequest, idempotencyKey, options); + async createVaultAccountAsset(vaultAccountId: string, assetId: string, createAssetsRequest?: CreateAssetsRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createVaultAccountAsset(vaultAccountId, assetId, createAssetsRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.createVaultAccountAsset']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -1389,13 +1387,13 @@ export const VaultsApiFp = function(configuration?: Configuration) { * @summary Create new asset deposit address * @param {string} vaultAccountId The ID of the vault account to return * @param {string} assetId The ID of the asset - * @param {CreateVaultAccountAssetAddressRequest} [createVaultAccountAssetAddressRequest] + * @param {CreateAddressRequest} [createAddressRequest] * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createVaultAccountAssetAddress(vaultAccountId: string, assetId: string, createVaultAccountAssetAddressRequest?: CreateVaultAccountAssetAddressRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createVaultAccountAssetAddress(vaultAccountId, assetId, createVaultAccountAssetAddressRequest, idempotencyKey, options); + async createVaultAccountAssetAddress(vaultAccountId: string, assetId: string, createAddressRequest?: CreateAddressRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createVaultAccountAssetAddress(vaultAccountId, assetId, createAddressRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.createVaultAccountAssetAddress']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -1615,50 +1613,50 @@ export const VaultsApiFp = function(configuration?: Configuration) { return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** - * Sets the autofueling property of the vault account to enabled or disabled. - * @summary Turn autofueling on or off - * @param {SetAutoFuelForVaultAccountRequest} setAutoFuelForVaultAccountRequest - * @param {string} vaultAccountId The vault account ID + * Sets an AML/KYT customer reference ID for a specific address. + * @summary Assign AML customer reference ID + * @param {SetCustomerRefIdForAddressRequest} setCustomerRefIdForAddressRequest + * @param {string} vaultAccountId The ID of the vault account + * @param {string} assetId The ID of the asset + * @param {string} addressId The address for which to add a description. For XRP, use <address>:<tag>, for all other assets, use only the address * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setAutoFuelForVaultAccount(setAutoFuelForVaultAccountRequest: SetAutoFuelForVaultAccountRequest, vaultAccountId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.setAutoFuelForVaultAccount(setAutoFuelForVaultAccountRequest, vaultAccountId, idempotencyKey, options); + async setCustomerRefIdForAddress(setCustomerRefIdForAddressRequest: SetCustomerRefIdForAddressRequest, vaultAccountId: string, assetId: string, addressId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.setCustomerRefIdForAddress(setCustomerRefIdForAddressRequest, vaultAccountId, assetId, addressId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['VaultsApi.setAutoFuelForVaultAccount']?.[index]?.url; + const operationBasePath = operationServerMap['VaultsApi.setCustomerRefIdForAddress']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** - * Sets an AML/KYT customer reference ID for a specific address. - * @summary Assign AML customer reference ID - * @param {SetCustomerRefIdForVaultAccountRequest} setCustomerRefIdForVaultAccountRequest - * @param {string} vaultAccountId The ID of the vault account - * @param {string} assetId The ID of the asset - * @param {string} addressId The address for which to add a description. For XRP, use <address>:<tag>, for all other assets, use only the address + * Sets the autofueling property of the vault account to enabled or disabled. + * @summary Turn autofueling on or off + * @param {SetAutoFuelRequest} setAutoFuelRequest + * @param {string} vaultAccountId The vault account ID * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setCustomerRefIdForAddress(setCustomerRefIdForVaultAccountRequest: SetCustomerRefIdForVaultAccountRequest, vaultAccountId: string, assetId: string, addressId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.setCustomerRefIdForAddress(setCustomerRefIdForVaultAccountRequest, vaultAccountId, assetId, addressId, idempotencyKey, options); + async setVaultAccountAutoFuel(setAutoFuelRequest: SetAutoFuelRequest, vaultAccountId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.setVaultAccountAutoFuel(setAutoFuelRequest, vaultAccountId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['VaultsApi.setCustomerRefIdForAddress']?.[index]?.url; + const operationBasePath = operationServerMap['VaultsApi.setVaultAccountAutoFuel']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Assigns an AML/KYT customer reference ID for the vault account. * @summary Set an AML/KYT customer reference ID for a vault account - * @param {SetCustomerRefIdForVaultAccountRequest} setCustomerRefIdForVaultAccountRequest + * @param {SetCustomerRefIdRequest} setCustomerRefIdRequest * @param {string} vaultAccountId The vault account ID * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setCustomerRefIdForVaultAccount(setCustomerRefIdForVaultAccountRequest: SetCustomerRefIdForVaultAccountRequest, vaultAccountId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.setCustomerRefIdForVaultAccount(setCustomerRefIdForVaultAccountRequest, vaultAccountId, idempotencyKey, options); + async setVaultAccountCustomerRefId(setCustomerRefIdRequest: SetCustomerRefIdRequest, vaultAccountId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.setVaultAccountCustomerRefId(setCustomerRefIdRequest, vaultAccountId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['VaultsApi.setCustomerRefIdForVaultAccount']?.[index]?.url; + const operationBasePath = operationServerMap['VaultsApi.setVaultAccountCustomerRefId']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** @@ -1712,13 +1710,12 @@ export const VaultsApiFp = function(configuration?: Configuration) { * @summary Refresh asset balance data * @param {string} vaultAccountId The ID of the vault account to return * @param {string} assetId The ID of the asset - * @param {object} [body] * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateVaultAccountAssetBalance(vaultAccountId: string, assetId: string, body?: object, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateVaultAccountAssetBalance(vaultAccountId, assetId, body, idempotencyKey, options); + async updateVaultAccountAssetBalance(vaultAccountId: string, assetId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateVaultAccountAssetBalance(vaultAccountId, assetId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['VaultsApi.updateVaultAccountAssetBalance']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -1781,7 +1778,7 @@ export const VaultsApiFactory = function (configuration?: Configuration, basePat * @throws {RequiredError} */ createVaultAccountAsset(requestParameters: VaultsApiCreateVaultAccountAssetRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.createVaultAccountAsset(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.createVaultAccountAssetRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + return localVarFp.createVaultAccountAsset(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.createAssetsRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Creates a new deposit address for an asset of a vault account. @@ -1791,7 +1788,7 @@ export const VaultsApiFactory = function (configuration?: Configuration, basePat * @throws {RequiredError} */ createVaultAccountAssetAddress(requestParameters: VaultsApiCreateVaultAccountAssetAddressRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.createVaultAccountAssetAddress(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.createVaultAccountAssetAddressRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + return localVarFp.createVaultAccountAssetAddress(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.createAddressRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Gets all asset wallets at all of the vault accounts in your workspace. An asset wallet is an asset at a vault account. This method allows fast traversal of all account balances. @@ -1934,34 +1931,34 @@ export const VaultsApiFactory = function (configuration?: Configuration, basePat return localVarFp.hideVaultAccount(requestParameters.vaultAccountId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** - * Sets the autofueling property of the vault account to enabled or disabled. - * @summary Turn autofueling on or off - * @param {VaultsApiSetAutoFuelForVaultAccountRequest} requestParameters Request parameters. + * Sets an AML/KYT customer reference ID for a specific address. + * @summary Assign AML customer reference ID + * @param {VaultsApiSetCustomerRefIdForAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setAutoFuelForVaultAccount(requestParameters: VaultsApiSetAutoFuelForVaultAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.setAutoFuelForVaultAccount(requestParameters.setAutoFuelForVaultAccountRequest, requestParameters.vaultAccountId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + setCustomerRefIdForAddress(requestParameters: VaultsApiSetCustomerRefIdForAddressRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.setCustomerRefIdForAddress(requestParameters.setCustomerRefIdForAddressRequest, requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.addressId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** - * Sets an AML/KYT customer reference ID for a specific address. - * @summary Assign AML customer reference ID - * @param {VaultsApiSetCustomerRefIdForAddressRequest} requestParameters Request parameters. + * Sets the autofueling property of the vault account to enabled or disabled. + * @summary Turn autofueling on or off + * @param {VaultsApiSetVaultAccountAutoFuelRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setCustomerRefIdForAddress(requestParameters: VaultsApiSetCustomerRefIdForAddressRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.setCustomerRefIdForAddress(requestParameters.setCustomerRefIdForVaultAccountRequest, requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.addressId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + setVaultAccountAutoFuel(requestParameters: VaultsApiSetVaultAccountAutoFuelRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.setVaultAccountAutoFuel(requestParameters.setAutoFuelRequest, requestParameters.vaultAccountId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Assigns an AML/KYT customer reference ID for the vault account. * @summary Set an AML/KYT customer reference ID for a vault account - * @param {VaultsApiSetCustomerRefIdForVaultAccountRequest} requestParameters Request parameters. + * @param {VaultsApiSetVaultAccountCustomerRefIdRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setCustomerRefIdForVaultAccount(requestParameters: VaultsApiSetCustomerRefIdForVaultAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.setCustomerRefIdForVaultAccount(requestParameters.setCustomerRefIdForVaultAccountRequest, requestParameters.vaultAccountId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + setVaultAccountCustomerRefId(requestParameters: VaultsApiSetVaultAccountCustomerRefIdRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.setVaultAccountCustomerRefId(requestParameters.setCustomerRefIdRequest, requestParameters.vaultAccountId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Makes a hidden vault account visible in web console view. @@ -2001,7 +1998,7 @@ export const VaultsApiFactory = function (configuration?: Configuration, basePat * @throws {RequiredError} */ updateVaultAccountAssetBalance(requestParameters: VaultsApiUpdateVaultAccountAssetBalanceRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.updateVaultAccountAssetBalance(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.body, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + return localVarFp.updateVaultAccountAssetBalance(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, }; }; @@ -2133,10 +2130,10 @@ export interface VaultsApiCreateVaultAccountAssetRequest { /** * - * @type {CreateVaultAccountAssetRequest} + * @type {CreateAssetsRequest} * @memberof VaultsApiCreateVaultAccountAsset */ - readonly createVaultAccountAssetRequest?: CreateVaultAccountAssetRequest + readonly createAssetsRequest?: CreateAssetsRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. @@ -2168,10 +2165,10 @@ export interface VaultsApiCreateVaultAccountAssetAddressRequest { /** * - * @type {CreateVaultAccountAssetAddressRequest} + * @type {CreateAddressRequest} * @memberof VaultsApiCreateVaultAccountAssetAddress */ - readonly createVaultAccountAssetAddressRequest?: CreateVaultAccountAssetAddressRequest + readonly createAddressRequest?: CreateAddressRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. @@ -2601,34 +2598,6 @@ export interface VaultsApiHideVaultAccountRequest { readonly idempotencyKey?: string } -/** - * Request parameters for setAutoFuelForVaultAccount operation in VaultsApi. - * @export - * @interface VaultsApiSetAutoFuelForVaultAccountRequest - */ -export interface VaultsApiSetAutoFuelForVaultAccountRequest { - /** - * - * @type {SetAutoFuelForVaultAccountRequest} - * @memberof VaultsApiSetAutoFuelForVaultAccount - */ - readonly setAutoFuelForVaultAccountRequest: SetAutoFuelForVaultAccountRequest - - /** - * The vault account ID - * @type {string} - * @memberof VaultsApiSetAutoFuelForVaultAccount - */ - readonly vaultAccountId: string - - /** - * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. - * @type {string} - * @memberof VaultsApiSetAutoFuelForVaultAccount - */ - readonly idempotencyKey?: string -} - /** * Request parameters for setCustomerRefIdForAddress operation in VaultsApi. * @export @@ -2637,10 +2606,10 @@ export interface VaultsApiSetAutoFuelForVaultAccountRequest { export interface VaultsApiSetCustomerRefIdForAddressRequest { /** * - * @type {SetCustomerRefIdForVaultAccountRequest} + * @type {SetCustomerRefIdForAddressRequest} * @memberof VaultsApiSetCustomerRefIdForAddress */ - readonly setCustomerRefIdForVaultAccountRequest: SetCustomerRefIdForVaultAccountRequest + readonly setCustomerRefIdForAddressRequest: SetCustomerRefIdForAddressRequest /** * The ID of the vault account @@ -2672,29 +2641,57 @@ export interface VaultsApiSetCustomerRefIdForAddressRequest { } /** - * Request parameters for setCustomerRefIdForVaultAccount operation in VaultsApi. + * Request parameters for setVaultAccountAutoFuel operation in VaultsApi. + * @export + * @interface VaultsApiSetVaultAccountAutoFuelRequest + */ +export interface VaultsApiSetVaultAccountAutoFuelRequest { + /** + * + * @type {SetAutoFuelRequest} + * @memberof VaultsApiSetVaultAccountAutoFuel + */ + readonly setAutoFuelRequest: SetAutoFuelRequest + + /** + * The vault account ID + * @type {string} + * @memberof VaultsApiSetVaultAccountAutoFuel + */ + readonly vaultAccountId: string + + /** + * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + * @type {string} + * @memberof VaultsApiSetVaultAccountAutoFuel + */ + readonly idempotencyKey?: string +} + +/** + * Request parameters for setVaultAccountCustomerRefId operation in VaultsApi. * @export - * @interface VaultsApiSetCustomerRefIdForVaultAccountRequest + * @interface VaultsApiSetVaultAccountCustomerRefIdRequest */ -export interface VaultsApiSetCustomerRefIdForVaultAccountRequest { +export interface VaultsApiSetVaultAccountCustomerRefIdRequest { /** * - * @type {SetCustomerRefIdForVaultAccountRequest} - * @memberof VaultsApiSetCustomerRefIdForVaultAccount + * @type {SetCustomerRefIdRequest} + * @memberof VaultsApiSetVaultAccountCustomerRefId */ - readonly setCustomerRefIdForVaultAccountRequest: SetCustomerRefIdForVaultAccountRequest + readonly setCustomerRefIdRequest: SetCustomerRefIdRequest /** * The vault account ID * @type {string} - * @memberof VaultsApiSetCustomerRefIdForVaultAccount + * @memberof VaultsApiSetVaultAccountCustomerRefId */ readonly vaultAccountId: string /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} - * @memberof VaultsApiSetCustomerRefIdForVaultAccount + * @memberof VaultsApiSetVaultAccountCustomerRefId */ readonly idempotencyKey?: string } @@ -2810,13 +2807,6 @@ export interface VaultsApiUpdateVaultAccountAssetBalanceRequest { */ readonly assetId: string - /** - * - * @type {object} - * @memberof VaultsApiUpdateVaultAccountAssetBalance - */ - readonly body?: object - /** * 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} @@ -2889,7 +2879,7 @@ export class VaultsApi extends BaseAPI { * @memberof VaultsApi */ public createVaultAccountAsset(requestParameters: VaultsApiCreateVaultAccountAssetRequest) { - return VaultsApiFp(this.configuration).createVaultAccountAsset(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.createVaultAccountAssetRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return VaultsApiFp(this.configuration).createVaultAccountAsset(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.createAssetsRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** @@ -2901,7 +2891,7 @@ export class VaultsApi extends BaseAPI { * @memberof VaultsApi */ public createVaultAccountAssetAddress(requestParameters: VaultsApiCreateVaultAccountAssetAddressRequest) { - return VaultsApiFp(this.configuration).createVaultAccountAssetAddress(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.createVaultAccountAssetAddressRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return VaultsApiFp(this.configuration).createVaultAccountAssetAddress(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.createAddressRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** @@ -3073,39 +3063,39 @@ export class VaultsApi extends BaseAPI { } /** - * Sets the autofueling property of the vault account to enabled or disabled. - * @summary Turn autofueling on or off - * @param {VaultsApiSetAutoFuelForVaultAccountRequest} requestParameters Request parameters. + * Sets an AML/KYT customer reference ID for a specific address. + * @summary Assign AML customer reference ID + * @param {VaultsApiSetCustomerRefIdForAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ - public setAutoFuelForVaultAccount(requestParameters: VaultsApiSetAutoFuelForVaultAccountRequest) { - return VaultsApiFp(this.configuration).setAutoFuelForVaultAccount(requestParameters.setAutoFuelForVaultAccountRequest, requestParameters.vaultAccountId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + public setCustomerRefIdForAddress(requestParameters: VaultsApiSetCustomerRefIdForAddressRequest) { + return VaultsApiFp(this.configuration).setCustomerRefIdForAddress(requestParameters.setCustomerRefIdForAddressRequest, requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.addressId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** - * Sets an AML/KYT customer reference ID for a specific address. - * @summary Assign AML customer reference ID - * @param {VaultsApiSetCustomerRefIdForAddressRequest} requestParameters Request parameters. + * Sets the autofueling property of the vault account to enabled or disabled. + * @summary Turn autofueling on or off + * @param {VaultsApiSetVaultAccountAutoFuelRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ - public setCustomerRefIdForAddress(requestParameters: VaultsApiSetCustomerRefIdForAddressRequest) { - return VaultsApiFp(this.configuration).setCustomerRefIdForAddress(requestParameters.setCustomerRefIdForVaultAccountRequest, requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.addressId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + public setVaultAccountAutoFuel(requestParameters: VaultsApiSetVaultAccountAutoFuelRequest) { + return VaultsApiFp(this.configuration).setVaultAccountAutoFuel(requestParameters.setAutoFuelRequest, requestParameters.vaultAccountId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Assigns an AML/KYT customer reference ID for the vault account. * @summary Set an AML/KYT customer reference ID for a vault account - * @param {VaultsApiSetCustomerRefIdForVaultAccountRequest} requestParameters Request parameters. + * @param {VaultsApiSetVaultAccountCustomerRefIdRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof VaultsApi */ - public setCustomerRefIdForVaultAccount(requestParameters: VaultsApiSetCustomerRefIdForVaultAccountRequest) { - return VaultsApiFp(this.configuration).setCustomerRefIdForVaultAccount(requestParameters.setCustomerRefIdForVaultAccountRequest, requestParameters.vaultAccountId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + public setVaultAccountCustomerRefId(requestParameters: VaultsApiSetVaultAccountCustomerRefIdRequest) { + return VaultsApiFp(this.configuration).setVaultAccountCustomerRefId(requestParameters.setCustomerRefIdRequest, requestParameters.vaultAccountId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** @@ -3153,7 +3143,7 @@ export class VaultsApi extends BaseAPI { * @memberof VaultsApi */ public updateVaultAccountAssetBalance(requestParameters: VaultsApiUpdateVaultAccountAssetBalanceRequest) { - return VaultsApiFp(this.configuration).updateVaultAccountAssetBalance(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.body, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return VaultsApiFp(this.configuration).updateVaultAccountAssetBalance(requestParameters.vaultAccountId, requestParameters.assetId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } } diff --git a/client/client.ts b/client/client.ts index b9ec591..39da29c 100644 --- a/client/client.ts +++ b/client/client.ts @@ -17,15 +17,16 @@ import { AdminQuorumApi, AssetsApi, AuditLogsApi, BlockchainsAssetsApi, + ComplianceApi, ComplianceScreeningConfigurationApi, ConsoleUserApi, ContractsApi, ExchangeAccountsApi, ExternalWalletsApi, FiatAccountsApi, - FireblocksPublicOpenapiOtherApi, GasStationsApi, InternalWalletsApi, + JobManagementApi, NFTsApi, NetworkConnectionsApi, OTABetaApi, @@ -57,15 +58,16 @@ export class Fireblocks { private _assets?: AssetsApi; private _auditLogs?: AuditLogsApi; private _blockchainsAssets?: BlockchainsAssetsApi; + private _compliance?: ComplianceApi; private _complianceScreeningConfiguration?: ComplianceScreeningConfigurationApi; private _consoleUser?: ConsoleUserApi; private _contracts?: ContractsApi; private _exchangeAccounts?: ExchangeAccountsApi; private _externalWallets?: ExternalWalletsApi; private _fiatAccounts?: FiatAccountsApi; - private _fireblocksPublicOpenapiOther?: FireblocksPublicOpenapiOtherApi; private _gasStations?: GasStationsApi; private _internalWallets?: InternalWalletsApi; + private _jobManagement?: JobManagementApi; private _nFTs?: NFTsApi; private _networkConnections?: NetworkConnectionsApi; private _oTABeta?: OTABetaApi; @@ -98,11 +100,11 @@ export class Fireblocks { throw new Error("apiKey is required either in the configuration or as environment variable FIREBLOCKS_API_KEY"); } - let baseServerPath = conf.baseServerPath || process.env.FIREBLOCKS_BASE_PATH; - if (!baseServerPath) { - throw new Error("baseServerPath or baseServer are required either in the configuration or as environment variable FIREBLOCKS_BASE_PATH or baseServer"); + 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: baseServerPath, baseOptions: conf.additionalOptions?.baseOptions }); + this.config = new Configuration({ basePath, baseOptions: conf.additionalOptions?.baseOptions }); this.axiosManager = new AxiosManager(apiKey, secretKey, conf?.additionalOptions); } @@ -121,6 +123,9 @@ export class Fireblocks { get blockchainsAssets(): BlockchainsAssetsApi { return this._blockchainsAssets ?? new BlockchainsAssetsApi(this.config, undefined, this.axiosManager.axios); } + get compliance(): ComplianceApi { + return this._compliance ?? new ComplianceApi(this.config, undefined, this.axiosManager.axios); + } get complianceScreeningConfiguration(): ComplianceScreeningConfigurationApi { return this._complianceScreeningConfiguration ?? new ComplianceScreeningConfigurationApi(this.config, undefined, this.axiosManager.axios); } @@ -139,15 +144,15 @@ export class Fireblocks { get fiatAccounts(): FiatAccountsApi { return this._fiatAccounts ?? new FiatAccountsApi(this.config, undefined, this.axiosManager.axios); } - get fireblocksPublicOpenapiOther(): FireblocksPublicOpenapiOtherApi { - return this._fireblocksPublicOpenapiOther ?? new FireblocksPublicOpenapiOtherApi(this.config, undefined, this.axiosManager.axios); - } get gasStations(): GasStationsApi { return this._gasStations ?? new GasStationsApi(this.config, undefined, this.axiosManager.axios); } get internalWallets(): InternalWalletsApi { return this._internalWallets ?? new InternalWalletsApi(this.config, undefined, this.axiosManager.axios); } + get jobManagement(): JobManagementApi { + return this._jobManagement ?? new JobManagementApi(this.config, undefined, this.axiosManager.axios); + } get nFTs(): NFTsApi { return this._nFTs ?? new NFTsApi(this.config, undefined, this.axiosManager.axios); } diff --git a/client/clientConfiguration.ts b/client/clientConfiguration.ts index 48968f0..ffa57b9 100644 --- a/client/clientConfiguration.ts +++ b/client/clientConfiguration.ts @@ -30,7 +30,7 @@ export interface ConfigurationOptions { * The base path for the server against which to make requests. This can * also be set as an environment variable FIREBLOCKS_BASE_PATH. */ - baseServerPath?: BaseServerPathEnum | string; + basePath?: BasePath | string; /** * Additional options to configure the SDK */ @@ -48,7 +48,7 @@ export interface AdditionalOptions { userAgent?: string; } -export enum BaseServerPathEnum { +export enum BasePath { Sandbox = 'https://sandbox-api.fireblocks.io/v1', US = 'https://api.fireblocks.io/v1', EU = 'https://eu-api.fireblocks.io/v1', diff --git a/docs/apis/AdminQuorumApi.md b/docs/apis/AdminQuorumApi.md index 8a19cea..3e6b5a9 100644 --- a/docs/apis/AdminQuorumApi.md +++ b/docs/apis/AdminQuorumApi.md @@ -17,11 +17,11 @@ Update admin quorum threshold ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, AdminQuorumApiSetAdminQuorumThresholdRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); diff --git a/docs/apis/ApiUserApi.md b/docs/apis/ApiUserApi.md index 497b021..069ac7f 100644 --- a/docs/apis/ApiUserApi.md +++ b/docs/apis/ApiUserApi.md @@ -18,11 +18,11 @@ creates api user ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, ApiUserApiCreateApiUserRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -84,11 +84,11 @@ get api users from the current tenant ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); diff --git a/docs/apis/AssetsApi.md b/docs/apis/AssetsApi.md index 701b479..2ba761b 100644 --- a/docs/apis/AssetsApi.md +++ b/docs/apis/AssetsApi.md @@ -4,11 +4,11 @@ All URIs are relative to https://developers.fireblocks.com/reference/ Method | HTTP request | Description ------------- | ------------- | ------------- -[**getAssetBalance**](#getAssetBalance) | **POST** /vault/assets/bulk | Bulk creation of wallets +[**createAssetsBulk**](#createAssetsBulk) | **POST** /vault/assets/bulk | Bulk creation of wallets -# **getAssetBalance** -> JobCreated getAssetBalance(getAssetBalanceRequest) +# **createAssetsBulk** +> JobCreated createAssetsBulk(createAssetsBulkRequest) Create multiple wallets for a given vault account by running an async job.
**Note**: - These endpoints are currently in beta and might be subject to changes. - We limit accounts to 10k per operation and 200k per customer during beta testing. - Currently, we are only supporting EVM wallets. @@ -17,24 +17,24 @@ Create multiple wallets for a given vault account by running an async job.
```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, AssetsApiGetAssetBalanceRequest, JobCreated } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, AssetsApiCreateAssetsBulkRequest, JobCreated } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); -let body: AssetsApiGetAssetBalanceRequest = { - // GetAssetBalanceRequest - getAssetBalanceRequest: param_value, +let body: AssetsApiCreateAssetsBulkRequest = { + // CreateAssetsBulkRequest + createAssetsBulkRequest: param_value, // 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. (optional) idempotencyKey: idempotencyKey_example, }; -fireblocks.assets.getAssetBalance(body).then((res: FireblocksResponse) => { +fireblocks.assets.createAssetsBulk(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -44,7 +44,7 @@ fireblocks.assets.getAssetBalance(body).then((res: FireblocksResponse ScreeningPolicyResponse getAmlPostScreeningPolicy() + +Get the post-screening policy for AML. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, ScreeningPolicyResponse } from '@fireblocks/ts-sdk'; + +// Set the environment variables for authentication +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_API_KEY = "my-api-key"; +process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); + +const fireblocks = new Fireblocks(); + +let body:any = {}; + +fireblocks.compliance.getAmlPostScreeningPolicy(body).then((res: FireblocksResponse) => { + console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); +}).catch((error:any) => console.error(error)); +``` + + +### Parameters +This endpoint does not need any parameter. + + +### Return type + +**[ScreeningPolicyResponse](../models/ScreeningPolicyResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Post-screening policy retrieved successfully. | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getAmlScreeningPolicy** +> ScreeningProviderRulesConfigurationResponse getAmlScreeningPolicy() + +Get the screening policy for AML. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, ScreeningProviderRulesConfigurationResponse } from '@fireblocks/ts-sdk'; + +// Set the environment variables for authentication +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_API_KEY = "my-api-key"; +process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); + +const fireblocks = new Fireblocks(); + +let body:any = {}; + +fireblocks.compliance.getAmlScreeningPolicy(body).then((res: FireblocksResponse) => { + console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); +}).catch((error:any) => console.error(error)); +``` + + +### Parameters +This endpoint does not need any parameter. + + +### Return type + +**[ScreeningProviderRulesConfigurationResponse](../models/ScreeningProviderRulesConfigurationResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Screening policy retrieved successfully. | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getPostScreeningPolicy** +> ScreeningPolicyResponse getPostScreeningPolicy() + +Get the post-screening policy for Travel Rule. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, ScreeningPolicyResponse } from '@fireblocks/ts-sdk'; + +// Set the environment variables for authentication +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_API_KEY = "my-api-key"; +process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); + +const fireblocks = new Fireblocks(); + +let body:any = {}; + +fireblocks.compliance.getPostScreeningPolicy(body).then((res: FireblocksResponse) => { + console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); +}).catch((error:any) => console.error(error)); +``` + + +### Parameters +This endpoint does not need any parameter. + + +### Return type + +**[ScreeningPolicyResponse](../models/ScreeningPolicyResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Post-screening policy retrieved successfully. | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getScreeningPolicy** +> ScreeningProviderRulesConfigurationResponse getScreeningPolicy() + +Get the screening policy for Travel Rule. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, ScreeningProviderRulesConfigurationResponse } from '@fireblocks/ts-sdk'; + +// Set the environment variables for authentication +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_API_KEY = "my-api-key"; +process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); + +const fireblocks = new Fireblocks(); + +let body:any = {}; + +fireblocks.compliance.getScreeningPolicy(body).then((res: FireblocksResponse) => { + console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); +}).catch((error:any) => console.error(error)); +``` + + +### Parameters +This endpoint does not need any parameter. + + +### Return type + +**[ScreeningProviderRulesConfigurationResponse](../models/ScreeningProviderRulesConfigurationResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Screening policy retrieved successfully. | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **updateAmlScreeningConfiguration** +> ScreeningConfigurationsRequest updateAmlScreeningConfiguration() + +Updates bypass screening, inbound delay, or outbound delay configurations for AML. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, ComplianceApiUpdateAmlScreeningConfigurationRequest, ScreeningConfigurationsRequest } from '@fireblocks/ts-sdk'; + +// Set the environment variables for authentication +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_API_KEY = "my-api-key"; +process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); + +const fireblocks = new Fireblocks(); + +let body: ComplianceApiUpdateAmlScreeningConfigurationRequest = { + // 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. (optional) + idempotencyKey: idempotencyKey_example, +}; + +fireblocks.compliance.updateAmlScreeningConfiguration(body).then((res: FireblocksResponse) => { + console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); +}).catch((error:any) => console.error(error)); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idempotencyKey** | [**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. | (optional) defaults to undefined + + +### Return type + +**[ScreeningConfigurationsRequest](../models/ScreeningConfigurationsRequest.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Configuration updated successfully. | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **updateScreeningConfiguration** +> ScreeningUpdateConfigurationsRequest updateScreeningConfiguration() + +Update tenant screening configuration. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, ComplianceApiUpdateScreeningConfigurationRequest, ScreeningUpdateConfigurationsRequest } from '@fireblocks/ts-sdk'; + +// Set the environment variables for authentication +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_API_KEY = "my-api-key"; +process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); + +const fireblocks = new Fireblocks(); + +let body: ComplianceApiUpdateScreeningConfigurationRequest = { + // 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. (optional) + idempotencyKey: idempotencyKey_example, +}; + +fireblocks.compliance.updateScreeningConfiguration(body).then((res: FireblocksResponse) => { + console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); +}).catch((error:any) => console.error(error)); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idempotencyKey** | [**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. | (optional) defaults to undefined + + +### Return type + +**[ScreeningUpdateConfigurationsRequest](../models/ScreeningUpdateConfigurationsRequest.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Tenant Screening configuration updated successfully. | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **updateTravelRuleConfig** +> ScreeningConfigurationsRequest updateTravelRuleConfig() + +Updates bypass screening, inbound delay, or outbound delay configurations for Travel Rule. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, ComplianceApiUpdateTravelRuleConfigRequest, ScreeningConfigurationsRequest } from '@fireblocks/ts-sdk'; + +// Set the environment variables for authentication +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_API_KEY = "my-api-key"; +process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); + +const fireblocks = new Fireblocks(); + +let body: ComplianceApiUpdateTravelRuleConfigRequest = { + // 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. (optional) + idempotencyKey: idempotencyKey_example, +}; + +fireblocks.compliance.updateTravelRuleConfig(body).then((res: FireblocksResponse) => { + console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); +}).catch((error:any) => console.error(error)); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idempotencyKey** | [**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. | (optional) defaults to undefined + + +### Return type + +**[ScreeningConfigurationsRequest](../models/ScreeningConfigurationsRequest.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Configuration updated successfully. | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + diff --git a/docs/apis/ComplianceScreeningConfigurationApi.md b/docs/apis/ComplianceScreeningConfigurationApi.md index c0915db..09e29e9 100644 --- a/docs/apis/ComplianceScreeningConfigurationApi.md +++ b/docs/apis/ComplianceScreeningConfigurationApi.md @@ -4,67 +4,12 @@ All URIs are relative to https://developers.fireblocks.com/reference/ Method | HTTP request | Description ------------- | ------------- | ------------- -[**travelRuleApiControllerGetPostScreeningPolicy**](#travelRuleApiControllerGetPostScreeningPolicy) | **GET** /screening/travel_rule/post_screening_policy | Travel Rule - View Post-Screening Policy -[**travelRuleApiControllerGetScreeningConfiguration**](#travelRuleApiControllerGetScreeningConfiguration) | **GET** /screening/travel_rule/policy_configuration | Get Travel Rule Screening Policy Configuration -[**travelRuleApiControllerGetScreeningPolicy**](#travelRuleApiControllerGetScreeningPolicy) | **GET** /screening/travel_rule/screening_policy | Travel Rule - View Screening Policy -[**travelRuleApiControllerUpdateTravelRuleConfig**](#travelRuleApiControllerUpdateTravelRuleConfig) | **PUT** /screening/travel_rule/policy_configuration | Update Travel Rule Configuration +[**getAmlScreeningConfiguration**](#getAmlScreeningConfiguration) | **GET** /screening/aml/policy_configuration | Get AML Screening Policy Configuration +[**getScreeningConfiguration**](#getScreeningConfiguration) | **GET** /screening/travel_rule/policy_configuration | Get Travel Rule Screening Policy Configuration -# **travelRuleApiControllerGetPostScreeningPolicy** -> TravelRulePolicyResponse travelRuleApiControllerGetPostScreeningPolicy() - -Get the post-screening policy for Travel Rule. - -### Example - - -```typescript -import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, TravelRulePolicyResponse } from '@fireblocks/ts-sdk'; - -// Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" -process.env.FIREBLOCKS_API_KEY = "my-api-key"; -process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); - -const fireblocks = new Fireblocks(); - -let body:any = {}; - -fireblocks.complianceScreeningConfiguration.travelRuleApiControllerGetPostScreeningPolicy(body).then((res: FireblocksResponse) => { - console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); -}).catch((error:any) => console.error(error)); -``` - - -### Parameters -This endpoint does not need any parameter. - - -### Return type - -**[TravelRulePolicyResponse](../models/TravelRulePolicyResponse.md)** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Post-screening policy retrieved successfully. | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - -# **travelRuleApiControllerGetScreeningConfiguration** -> TravelRuleConfigurationsRequest travelRuleApiControllerGetScreeningConfiguration() +# **getAmlScreeningConfiguration** +> ScreeningConfigurationsRequest getAmlScreeningConfiguration() Retrieves the configuration for Travel Rule screening policy. @@ -73,11 +18,11 @@ Retrieves the configuration for Travel Rule screening policy. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, TravelRuleConfigurationsRequest } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, ScreeningConfigurationsRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -85,7 +30,7 @@ const fireblocks = new Fireblocks(); let body:any = {}; -fireblocks.complianceScreeningConfiguration.travelRuleApiControllerGetScreeningConfiguration(body).then((res: FireblocksResponse) => { +fireblocks.complianceScreeningConfiguration.getAmlScreeningConfiguration(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -97,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -**[TravelRuleConfigurationsRequest](../models/TravelRuleConfigurationsRequest.md)** +**[ScreeningConfigurationsRequest](../models/ScreeningConfigurationsRequest.md)** ### Authorization @@ -116,21 +61,21 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) -# **travelRuleApiControllerGetScreeningPolicy** -> TravelRuleProviderRulesConfigurationResponse travelRuleApiControllerGetScreeningPolicy() +# **getScreeningConfiguration** +> ScreeningConfigurationsRequest getScreeningConfiguration() -Get the screening policy for Travel Rule. +Retrieves the configuration for Travel Rule screening policy. ### Example ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, TravelRuleProviderRulesConfigurationResponse } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, ScreeningConfigurationsRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -138,7 +83,7 @@ const fireblocks = new Fireblocks(); let body:any = {}; -fireblocks.complianceScreeningConfiguration.travelRuleApiControllerGetScreeningPolicy(body).then((res: FireblocksResponse) => { +fireblocks.complianceScreeningConfiguration.getScreeningConfiguration(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -150,7 +95,7 @@ This endpoint does not need any parameter. ### Return type -**[TravelRuleProviderRulesConfigurationResponse](../models/TravelRuleProviderRulesConfigurationResponse.md)** +**[ScreeningConfigurationsRequest](../models/ScreeningConfigurationsRequest.md)** ### Authorization @@ -165,66 +110,7 @@ No authorization required ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Screening policy retrieved successfully. | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - -# **travelRuleApiControllerUpdateTravelRuleConfig** -> TravelRuleConfigurationsRequest travelRuleApiControllerUpdateTravelRuleConfig() - -Updates bypass screening, inbound delay, or outbound delay configurations for Travel Rule. - -### Example - - -```typescript -import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, ComplianceScreeningConfigurationApiTravelRuleApiControllerUpdateTravelRuleConfigRequest, TravelRuleConfigurationsRequest } from '@fireblocks/ts-sdk'; - -// Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" -process.env.FIREBLOCKS_API_KEY = "my-api-key"; -process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); - -const fireblocks = new Fireblocks(); - -let body: ComplianceScreeningConfigurationApiTravelRuleApiControllerUpdateTravelRuleConfigRequest = { - // 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. (optional) - idempotencyKey: idempotencyKey_example, -}; - -fireblocks.complianceScreeningConfiguration.travelRuleApiControllerUpdateTravelRuleConfig(body).then((res: FireblocksResponse) => { - console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); -}).catch((error:any) => console.error(error)); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **idempotencyKey** | [**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. | (optional) defaults to undefined - - -### Return type - -**[TravelRuleConfigurationsRequest](../models/TravelRuleConfigurationsRequest.md)** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Configuration updated successfully. | - | +**200** | Screening policy configuration retrieved successfully. | - | [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/apis/ConsoleUserApi.md b/docs/apis/ConsoleUserApi.md index 9b0c628..297db75 100644 --- a/docs/apis/ConsoleUserApi.md +++ b/docs/apis/ConsoleUserApi.md @@ -18,11 +18,11 @@ creates fireblocks console user ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, ConsoleUserApiCreateConsoleUserRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -85,11 +85,11 @@ get console users from the current tenant ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); diff --git a/docs/apis/ContractsApi.md b/docs/apis/ContractsApi.md index b402b24..663fa48 100644 --- a/docs/apis/ContractsApi.md +++ b/docs/apis/ContractsApi.md @@ -23,11 +23,11 @@ Adds an asset to an existing contract. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, ContractsApiAddContractAssetRequest, ExternalWalletAsset } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -71,7 +71,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -92,11 +92,11 @@ Creates a new contract. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, ContractsApiCreateContractRequest, UnmanagedWallet } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -134,7 +134,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -155,11 +155,11 @@ Deletes a contract by ID. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, ContractsApiDeleteContractRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -215,11 +215,11 @@ Deletes a contract asset by ID. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, ContractsApiDeleteContractAssetRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -278,11 +278,11 @@ Returns a contract by ID. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, ContractsApiGetContractRequest, UnmanagedWallet } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -317,7 +317,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -338,11 +338,11 @@ Returns a contract asset by ID. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, ContractsApiGetContractAssetRequest, ExternalWalletAsset } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -380,7 +380,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -401,11 +401,11 @@ Gets a list of contracts. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -434,7 +434,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details diff --git a/docs/apis/ExchangeAccountsApi.md b/docs/apis/ExchangeAccountsApi.md index 56cc85c..562204d 100644 --- a/docs/apis/ExchangeAccountsApi.md +++ b/docs/apis/ExchangeAccountsApi.md @@ -22,11 +22,11 @@ Convert exchange account funds from the source asset to the destination asset. C ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, ExchangeAccountsApiConvertAssetsRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -88,11 +88,11 @@ Returns an exchange account by ID. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, ExchangeAccountsApiGetExchangeAccountRequest, ExchangeAccount } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -127,7 +127,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -148,11 +148,11 @@ Returns an asset for an exchange account. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, ExchangeAccountsApiGetExchangeAccountAssetRequest, ExchangeAsset } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -190,7 +190,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -211,11 +211,11 @@ Deprecated (use new \'paged\' endpoint) - Returns all exchange accounts. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -244,7 +244,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -265,11 +265,11 @@ Returns a page include exchange accounts. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, ExchangeAccountsApiGetPagedExchangeAccountsRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -310,7 +310,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -331,11 +331,11 @@ Transfers funds between trading accounts under the same exchange account. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, ExchangeAccountsApiInternalTransferRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); diff --git a/docs/apis/ExternalWalletsApi.md b/docs/apis/ExternalWalletsApi.md index f2467ec..89a59bc 100644 --- a/docs/apis/ExternalWalletsApi.md +++ b/docs/apis/ExternalWalletsApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description [**getExternalWalletAsset**](#getExternalWalletAsset) | **GET** /external_wallets/{walletId}/{assetId} | Get an asset from an external wallet [**getExternalWallets**](#getExternalWallets) | **GET** /external_wallets | List external wallets [**removeAssetFromExternalWallet**](#removeAssetFromExternalWallet) | **DELETE** /external_wallets/{walletId}/{assetId} | Delete an asset from an external wallet -[**setCustomerRefIdForExternalWallet**](#setCustomerRefIdForExternalWallet) | **POST** /external_wallets/{walletId}/set_customer_ref_id | Set an AML customer reference ID for an external wallet +[**setExternalWalletCustomerRefId**](#setExternalWalletCustomerRefId) | **POST** /external_wallets/{walletId}/set_customer_ref_id | Set an AML customer reference ID for an external wallet # **addAssetToExternalWallet** @@ -24,11 +24,11 @@ Adds an asset to an existing external wallet. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, ExternalWalletsApiAddAssetToExternalWalletRequest, ExternalWalletAsset } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -72,7 +72,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -93,19 +93,19 @@ Creates a new external wallet with the requested name. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, ExternalWalletsApiCreateExternalWalletRequest, UnmanagedWallet } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); let body: ExternalWalletsApiCreateExternalWalletRequest = { - // CreateInternalWalletRequest (optional) - createInternalWalletRequest: param_value, + // CreateWalletRequest (optional) + createWalletRequest: param_value, // 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. (optional) idempotencyKey: idempotencyKey_example, }; @@ -120,7 +120,7 @@ fireblocks.externalWallets.createExternalWallet(body).then((res: FireblocksRespo Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **createInternalWalletRequest** | **[CreateInternalWalletRequest](../models/CreateInternalWalletRequest.md)**| | + **createWalletRequest** | **[CreateWalletRequest](../models/CreateWalletRequest.md)**| | **idempotencyKey** | [**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. | (optional) defaults to undefined @@ -135,7 +135,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -156,11 +156,11 @@ Deletes an external wallet by ID. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, ExternalWalletsApiDeleteExternalWalletRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -216,11 +216,11 @@ Returns an external wallet by ID. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, ExternalWalletsApiGetExternalWalletRequest, UnmanagedWallet } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -255,7 +255,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -276,11 +276,11 @@ Returns an external wallet by wallet ID and asset ID. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, ExternalWalletsApiGetExternalWalletAssetRequest, ExternalWalletAsset } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -318,7 +318,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -339,11 +339,11 @@ Gets a list of external wallets under the workspace. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -372,7 +372,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -393,11 +393,11 @@ Deletes an external wallet asset by ID. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, ExternalWalletsApiRemoveAssetFromExternalWalletRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -446,8 +446,8 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) -# **setCustomerRefIdForExternalWallet** -> setCustomerRefIdForExternalWallet(setCustomerRefIdForVaultAccountRequest, ) +# **setExternalWalletCustomerRefId** +> setExternalWalletCustomerRefId(setCustomerRefIdRequest, ) Sets an AML/KYT customer reference ID for the specific external wallet. @@ -456,26 +456,26 @@ Sets an AML/KYT customer reference ID for the specific external wallet. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, ExternalWalletsApiSetCustomerRefIdForExternalWalletRequest } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, ExternalWalletsApiSetExternalWalletCustomerRefIdRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); -let body: ExternalWalletsApiSetCustomerRefIdForExternalWalletRequest = { - // SetCustomerRefIdForVaultAccountRequest - setCustomerRefIdForVaultAccountRequest: param_value, +let body: ExternalWalletsApiSetExternalWalletCustomerRefIdRequest = { + // SetCustomerRefIdRequest + setCustomerRefIdRequest: param_value, // string | The wallet ID walletId: walletId_example, // 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. (optional) idempotencyKey: idempotencyKey_example, }; -fireblocks.externalWallets.setCustomerRefIdForExternalWallet(body).then((res: FireblocksResponse) => { +fireblocks.externalWallets.setExternalWalletCustomerRefId(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -485,7 +485,7 @@ fireblocks.externalWallets.setCustomerRefIdForExternalWallet(body).then((res: Fi Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **setCustomerRefIdForVaultAccountRequest** | **[SetCustomerRefIdForVaultAccountRequest](../models/SetCustomerRefIdForVaultAccountRequest.md)**| | + **setCustomerRefIdRequest** | **[SetCustomerRefIdRequest](../models/SetCustomerRefIdRequest.md)**| | **walletId** | [**string**] | The wallet ID | defaults to undefined **idempotencyKey** | [**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. | (optional) defaults to undefined diff --git a/docs/apis/FiatAccountsApi.md b/docs/apis/FiatAccountsApi.md index fcf6691..38fc3d3 100644 --- a/docs/apis/FiatAccountsApi.md +++ b/docs/apis/FiatAccountsApi.md @@ -7,7 +7,7 @@ Method | HTTP request | Description [**depositFundsFromLinkedDDA**](#depositFundsFromLinkedDDA) | **POST** /fiat_accounts/{accountId}/deposit_from_linked_dda | Deposit funds from DDA [**getFiatAccount**](#getFiatAccount) | **GET** /fiat_accounts/{accountId} | Find a specific fiat account [**getFiatAccounts**](#getFiatAccounts) | **GET** /fiat_accounts | List fiat accounts -[**redeemFundsToLinkedDda**](#redeemFundsToLinkedDda) | **POST** /fiat_accounts/{accountId}/redeem_to_linked_dda | Redeem funds to DDA +[**redeemFundsToLinkedDDA**](#redeemFundsToLinkedDDA) | **POST** /fiat_accounts/{accountId}/redeem_to_linked_dda | Redeem funds to DDA # **depositFundsFromLinkedDDA** @@ -20,11 +20,11 @@ Deposits funds from the linked DDA. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, FiatAccountsApiDepositFundsFromLinkedDDARequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -33,8 +33,8 @@ const fireblocks = new Fireblocks(); let body: FiatAccountsApiDepositFundsFromLinkedDDARequest = { // string | The ID of the fiat account to use accountId: accountId_example, - // RedeemFundsToLinkedDdaRequest (optional) - redeemFundsToLinkedDdaRequest: param_value, + // Funds (optional) + funds: param_value, // 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. (optional) idempotencyKey: idempotencyKey_example, }; @@ -49,7 +49,7 @@ fireblocks.fiatAccounts.depositFundsFromLinkedDDA(body).then((res: FireblocksRes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **redeemFundsToLinkedDdaRequest** | **[RedeemFundsToLinkedDdaRequest](../models/RedeemFundsToLinkedDdaRequest.md)**| | + **funds** | **[Funds](../models/Funds.md)**| | **accountId** | [**string**] | The ID of the fiat account to use | defaults to undefined **idempotencyKey** | [**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. | (optional) defaults to undefined @@ -86,11 +86,11 @@ Returns a fiat account by ID. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, FiatAccountsApiGetFiatAccountRequest, FiatAccount } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -125,7 +125,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -146,11 +146,11 @@ Returns all fiat accounts. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -179,7 +179,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -190,8 +190,8 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) -# **redeemFundsToLinkedDda** -> redeemFundsToLinkedDda() +# **redeemFundsToLinkedDDA** +> redeemFundsToLinkedDDA() Redeems funds to the linked DDA. @@ -200,26 +200,26 @@ Redeems funds to the linked DDA. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, FiatAccountsApiRedeemFundsToLinkedDdaRequest } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, FiatAccountsApiRedeemFundsToLinkedDDARequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); -let body: FiatAccountsApiRedeemFundsToLinkedDdaRequest = { +let body: FiatAccountsApiRedeemFundsToLinkedDDARequest = { // string | The ID of the fiat account to use accountId: accountId_example, - // RedeemFundsToLinkedDdaRequest (optional) - redeemFundsToLinkedDdaRequest: param_value, + // Funds (optional) + funds: param_value, // 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. (optional) idempotencyKey: idempotencyKey_example, }; -fireblocks.fiatAccounts.redeemFundsToLinkedDda(body).then((res: FireblocksResponse) => { +fireblocks.fiatAccounts.redeemFundsToLinkedDDA(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -229,7 +229,7 @@ fireblocks.fiatAccounts.redeemFundsToLinkedDda(body).then((res: FireblocksRespon Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **redeemFundsToLinkedDdaRequest** | **[RedeemFundsToLinkedDdaRequest](../models/RedeemFundsToLinkedDdaRequest.md)**| | + **funds** | **[Funds](../models/Funds.md)**| | **accountId** | [**string**] | The ID of the fiat account to use | defaults to undefined **idempotencyKey** | [**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. | (optional) defaults to undefined diff --git a/docs/apis/GasStationsApi.md b/docs/apis/GasStationsApi.md index d5840e1..858f042 100644 --- a/docs/apis/GasStationsApi.md +++ b/docs/apis/GasStationsApi.md @@ -20,11 +20,11 @@ Returns gas station settings and balances for a requested asset. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, GasStationsApiGetGasStationByAssetIdRequest, GasStationPropertiesResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -59,7 +59,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -80,11 +80,11 @@ Returns gas station settings and ETH balance. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, GasStationPropertiesResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -113,7 +113,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -134,11 +134,11 @@ Configures gas station settings for ETH. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, GasStationsApiUpdateGasStationConfigurationRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -197,11 +197,11 @@ Configures gas station settings for a requested asset. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, GasStationsApiUpdateGasStationConfigurationByAssetIdRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); diff --git a/docs/apis/InternalWalletsApi.md b/docs/apis/InternalWalletsApi.md index 8f87492..f970c92 100644 --- a/docs/apis/InternalWalletsApi.md +++ b/docs/apis/InternalWalletsApi.md @@ -24,19 +24,19 @@ Creates a new internal wallet with the requested name. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, InternalWalletsApiCreateInternalWalletRequest, UnmanagedWallet } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); let body: InternalWalletsApiCreateInternalWalletRequest = { - // CreateInternalWalletRequest (optional) - createInternalWalletRequest: param_value, + // CreateWalletRequest (optional) + createWalletRequest: param_value, // 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. (optional) idempotencyKey: idempotencyKey_example, }; @@ -51,7 +51,7 @@ fireblocks.internalWallets.createInternalWallet(body).then((res: FireblocksRespo Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **createInternalWalletRequest** | **[CreateInternalWalletRequest](../models/CreateInternalWalletRequest.md)**| | + **createWalletRequest** | **[CreateWalletRequest](../models/CreateWalletRequest.md)**| | **idempotencyKey** | [**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. | (optional) defaults to undefined @@ -66,7 +66,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -87,11 +87,11 @@ Adds an asset to an existing internal wallet. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, InternalWalletsApiCreateInternalWalletAssetRequest, WalletAsset } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -135,7 +135,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -156,11 +156,11 @@ Deletes an internal wallet by ID. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, InternalWalletsApiDeleteInternalWalletRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -216,11 +216,11 @@ Deletes a whitelisted address (for an asset) from an internal wallet. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, InternalWalletsApiDeleteInternalWalletAssetRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -279,11 +279,11 @@ Returns all assets in an internal wallet by ID. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, InternalWalletsApiGetInternalWalletRequest, UnmanagedWallet } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -318,7 +318,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -339,11 +339,11 @@ Returns information for an asset in an internal wallet. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, InternalWalletsApiGetInternalWalletAssetRequest, WalletAsset } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -381,7 +381,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -402,11 +402,11 @@ Gets a list of internal wallets. **Note**: BTC-based assets belonging to whitel ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -435,7 +435,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -447,7 +447,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **setCustomerRefIdForInternalWallet** -> setCustomerRefIdForInternalWallet(setCustomerRefIdForVaultAccountRequest, ) +> setCustomerRefIdForInternalWallet(setCustomerRefIdRequest, ) Sets an AML/KYT customer reference ID for the specific internal wallet. @@ -456,19 +456,19 @@ Sets an AML/KYT customer reference ID for the specific internal wallet. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, InternalWalletsApiSetCustomerRefIdForInternalWalletRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); let body: InternalWalletsApiSetCustomerRefIdForInternalWalletRequest = { - // SetCustomerRefIdForVaultAccountRequest - setCustomerRefIdForVaultAccountRequest: param_value, + // SetCustomerRefIdRequest + setCustomerRefIdRequest: param_value, // string | The wallet ID walletId: walletId_example, // 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. (optional) @@ -485,7 +485,7 @@ fireblocks.internalWallets.setCustomerRefIdForInternalWallet(body).then((res: Fi Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **setCustomerRefIdForVaultAccountRequest** | **[SetCustomerRefIdForVaultAccountRequest](../models/SetCustomerRefIdForVaultAccountRequest.md)**| | + **setCustomerRefIdRequest** | **[SetCustomerRefIdRequest](../models/SetCustomerRefIdRequest.md)**| | **walletId** | [**string**] | The wallet ID | defaults to undefined **idempotencyKey** | [**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. | (optional) defaults to undefined diff --git a/docs/apis/FireblocksPublicOpenapiOtherApi.md b/docs/apis/JobManagementApi.md similarity index 78% rename from docs/apis/FireblocksPublicOpenapiOtherApi.md rename to docs/apis/JobManagementApi.md index 6368a01..86187d3 100644 --- a/docs/apis/FireblocksPublicOpenapiOtherApi.md +++ b/docs/apis/JobManagementApi.md @@ -1,4 +1,4 @@ -# FireblocksPublicOpenapiOtherApi +# JobManagementApi All URIs are relative to https://developers.fireblocks.com/reference/ @@ -22,24 +22,24 @@ Stop the given job immediately. If the job is in the ‘Active’ state, the job ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, FireblocksPublicOpenapiOtherApiCancelJobRequest } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, JobManagementApiCancelJobRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); -let body: FireblocksPublicOpenapiOtherApiCancelJobRequest = { +let body: JobManagementApiCancelJobRequest = { // string | The requested job id jobId: jobId_example, // 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. (optional) idempotencyKey: idempotencyKey_example, }; -fireblocks.fireblocksPublicOpenapiOther.cancelJob(body).then((res: FireblocksResponse) => { +fireblocks.jobManagement.cancelJob(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -85,24 +85,24 @@ Continue the given paused job. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, FireblocksPublicOpenapiOtherApiContinueJobRequest } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, JobManagementApiContinueJobRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); -let body: FireblocksPublicOpenapiOtherApiContinueJobRequest = { +let body: JobManagementApiContinueJobRequest = { // string | The requested job id jobId: jobId_example, // 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. (optional) idempotencyKey: idempotencyKey_example, }; -fireblocks.fireblocksPublicOpenapiOther.continueJob(body).then((res: FireblocksResponse) => { +fireblocks.jobManagement.continueJob(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -148,22 +148,22 @@ Get an object describing the given job ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, FireblocksPublicOpenapiOtherApiGetJobRequest, Job } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, JobManagementApiGetJobRequest, Job } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); -let body: FireblocksPublicOpenapiOtherApiGetJobRequest = { +let body: JobManagementApiGetJobRequest = { // string | The requested job id jobId: jobId_example, }; -fireblocks.fireblocksPublicOpenapiOther.getJob(body).then((res: FireblocksResponse) => { +fireblocks.jobManagement.getJob(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -187,7 +187,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -208,22 +208,22 @@ Return a list of tasks for given job ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, FireblocksPublicOpenapiOtherApiGetJobTasksRequest } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, JobManagementApiGetJobTasksRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); -let body: FireblocksPublicOpenapiOtherApiGetJobTasksRequest = { +let body: JobManagementApiGetJobTasksRequest = { // string | The requested job id jobId: jobId_example, }; -fireblocks.fireblocksPublicOpenapiOther.getJobTasks(body).then((res: FireblocksResponse) => { +fireblocks.jobManagement.getJobTasks(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -247,7 +247,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -268,24 +268,24 @@ Get an array of objects including all active, paused, canceled, and complete job ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, FireblocksPublicOpenapiOtherApiGetJobsRequest } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, JobManagementApiGetJobsRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); -let body: FireblocksPublicOpenapiOtherApiGetJobsRequest = { +let body: JobManagementApiGetJobsRequest = { // number | Start of time range in ms since 1970 (optional) fromTime: 56, // number | End of time range in ms since 1970 (optional) toTime: 56, }; -fireblocks.fireblocksPublicOpenapiOther.getJobs(body).then((res: FireblocksResponse) => { +fireblocks.jobManagement.getJobs(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -310,7 +310,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -331,24 +331,24 @@ Pause the given job, after the current task is done. A paused job can later be r ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, FireblocksPublicOpenapiOtherApiPauseJobRequest } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, JobManagementApiPauseJobRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); -let body: FireblocksPublicOpenapiOtherApiPauseJobRequest = { +let body: JobManagementApiPauseJobRequest = { // string | The requested job id jobId: jobId_example, // 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. (optional) idempotencyKey: idempotencyKey_example, }; -fireblocks.fireblocksPublicOpenapiOther.pauseJob(body).then((res: FireblocksResponse) => { +fireblocks.jobManagement.pauseJob(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` diff --git a/docs/apis/NFTsApi.md b/docs/apis/NFTsApi.md index dd0a475..40c30e8 100644 --- a/docs/apis/NFTsApi.md +++ b/docs/apis/NFTsApi.md @@ -26,11 +26,11 @@ Returns the requested token data. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, NFTsApiGetNFTRequest, TokenResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -85,11 +85,11 @@ Returns the requested tokens data. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, NFTsApiGetNFTsRequest, ListOwnedTokens200Response } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -156,11 +156,11 @@ Returns all tokens and their data in your workspace. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, NFTsApiGetOwnershipTokensRequest, GetOwnershipTokens200Response } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -254,11 +254,11 @@ Returns all collections in your workspace ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, NFTsApiListOwnedCollectionsRequest, ListOwnedCollections200Response } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -334,11 +334,11 @@ Returns all owned distinct tokens (for your tenant) and their data in your works ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, NFTsApiListOwnedTokensRequest, ListOwnedTokens200Response } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -417,11 +417,11 @@ Updates the latest token metadata. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, NFTsApiRefreshNFTMetadataRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -479,11 +479,11 @@ Updates all tokens and balances per blockchain and vault account. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, NFTsApiUpdateOwnershipTokensRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -544,11 +544,11 @@ Updates token status for a tenant, in all tenant vaults. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, NFTsApiUpdateTokenOwnershipStatusRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -609,11 +609,11 @@ Updates tokens spam property for a tenant\'s token ownerships, in all tenant vau ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, NFTsApiUpdateTokensOwnershipSpamRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -673,11 +673,11 @@ Updates tokens status for a tenant, in all tenant vaults. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, NFTsApiUpdateTokensOwnershipStatusRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); diff --git a/docs/apis/NetworkConnectionsApi.md b/docs/apis/NetworkConnectionsApi.md index 21c861f..28a70fe 100644 --- a/docs/apis/NetworkConnectionsApi.md +++ b/docs/apis/NetworkConnectionsApi.md @@ -13,14 +13,14 @@ Method | HTTP request | Description [**getNetworkConnections**](#getNetworkConnections) | **GET** /network_connections | List network connections [**getNetworkId**](#getNetworkId) | **GET** /network_ids/{networkId} | Returns specific network ID. [**getNetworkIds**](#getNetworkIds) | **GET** /network_ids | Returns all network IDs, both local IDs and discoverable remote IDs -[**setDiscoverabilityForNetworkId**](#setDiscoverabilityForNetworkId) | **PATCH** /network_ids/{networkId}/set_discoverability | Update network ID\'s discoverability. +[**setNetworkIdDiscoverability**](#setNetworkIdDiscoverability) | **PATCH** /network_ids/{networkId}/set_discoverability | Update network ID\'s discoverability. [**setNetworkIdName**](#setNetworkIdName) | **PATCH** /network_ids/{networkId}/set_name | Update network ID\'s name. +[**setNetworkIdRoutingPolicy**](#setNetworkIdRoutingPolicy) | **PATCH** /network_ids/{networkId}/set_routing_policy | Update network id routing policy. [**setRoutingPolicy**](#setRoutingPolicy) | **PATCH** /network_connections/{connectionId}/set_routing_policy | Update network connection routing policy. -[**setRoutingPolicyForNetworkId**](#setRoutingPolicyForNetworkId) | **PATCH** /network_ids/{networkId}/set_routing_policy | Update network id routing policy. # **checkThirdPartyRouting** -> CheckThirdPartyRouting200Response checkThirdPartyRouting() +> ThirdPartyRouting checkThirdPartyRouting() The Fireblocks Network allows for flexibility around incoming deposits. A receiver can receive network deposits to locations other than Fireblocks. This endpoint validates whether future transactions are routed to the displayed recipient or to a 3rd party. @@ -29,11 +29,11 @@ The Fireblocks Network allows for flexibility around incoming deposits. A receiv ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, NetworkConnectionsApiCheckThirdPartyRoutingRequest, CheckThirdPartyRouting200Response } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, NetworkConnectionsApiCheckThirdPartyRoutingRequest, ThirdPartyRouting } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -46,7 +46,7 @@ let body: NetworkConnectionsApiCheckThirdPartyRoutingRequest = { assetType: assetType_example, }; -fireblocks.networkConnections.checkThirdPartyRouting(body).then((res: FireblocksResponse) => { +fireblocks.networkConnections.checkThirdPartyRouting(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -62,7 +62,7 @@ Name | Type | Description | Notes ### Return type -**[CheckThirdPartyRouting200Response](../models/CheckThirdPartyRouting200Response.md)** +**[ThirdPartyRouting](../models/ThirdPartyRouting.md)** ### Authorization @@ -71,7 +71,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -92,11 +92,11 @@ Initiates a new network connection. **Note:** This API call is subject to Flexi ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, NetworkConnectionsApiCreateNetworkConnectionRequest, NetworkConnectionResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -134,7 +134,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -155,11 +155,11 @@ Creates a new Network ID. **Note:** This API call is subject to Flexible Routin ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, NetworkConnectionsApiCreateNetworkIdRequest, NetworkIdResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -197,7 +197,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -218,11 +218,11 @@ Deletes an existing network connection specified by its connection ID. **Note:* ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, NetworkConnectionsApiDeleteNetworkConnectionRequest, SetRoutingPolicy200Response } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -257,7 +257,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -278,11 +278,11 @@ Deletes a network by its ID. **Note:** This API call is subject to Flexible Rou ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, NetworkConnectionsApiDeleteNetworkIdRequest, SetRoutingPolicy200Response } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -317,7 +317,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -338,11 +338,11 @@ Gets a network connection by ID. **Note:** This API call is subject to Flexible ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, NetworkConnectionsApiGetNetworkRequest, NetworkConnectionResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -377,7 +377,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -398,11 +398,11 @@ Returns all network connections. **Note:** This API call is subject to Flexible ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -431,7 +431,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -452,11 +452,11 @@ Retrieves a network by its ID. **Note:** This API call is subject to Flexible R ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, NetworkConnectionsApiGetNetworkIdRequest, NetworkIdResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -491,7 +491,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -512,11 +512,11 @@ Retrieves a list of all local and discoverable remote network IDs. **Note:** Th ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -545,7 +545,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -556,8 +556,8 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) -# **setDiscoverabilityForNetworkId** -> SetRoutingPolicy200Response setDiscoverabilityForNetworkId(setDiscoverabilityForNetworkIdRequest, ) +# **setNetworkIdDiscoverability** +> SetNetworkIdResponse setNetworkIdDiscoverability(setNetworkIdDiscoverabilityRequest, ) Update whether or not the network ID is discoverable by others. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). @@ -566,24 +566,24 @@ Update whether or not the network ID is discoverable by others. **Note:** This ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, NetworkConnectionsApiSetDiscoverabilityForNetworkIdRequest, SetRoutingPolicy200Response } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, NetworkConnectionsApiSetNetworkIdDiscoverabilityRequest, SetNetworkIdResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); -let body: NetworkConnectionsApiSetDiscoverabilityForNetworkIdRequest = { - // SetDiscoverabilityForNetworkIdRequest - setDiscoverabilityForNetworkIdRequest: param_value, +let body: NetworkConnectionsApiSetNetworkIdDiscoverabilityRequest = { + // SetNetworkIdDiscoverabilityRequest + setNetworkIdDiscoverabilityRequest: param_value, // string | The ID of the network networkId: networkId_example, }; -fireblocks.networkConnections.setDiscoverabilityForNetworkId(body).then((res: FireblocksResponse) => { +fireblocks.networkConnections.setNetworkIdDiscoverability(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -593,13 +593,13 @@ fireblocks.networkConnections.setDiscoverabilityForNetworkId(body).then((res: Fi Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **setDiscoverabilityForNetworkIdRequest** | **[SetDiscoverabilityForNetworkIdRequest](../models/SetDiscoverabilityForNetworkIdRequest.md)**| | + **setNetworkIdDiscoverabilityRequest** | **[SetNetworkIdDiscoverabilityRequest](../models/SetNetworkIdDiscoverabilityRequest.md)**| | **networkId** | [**string**] | The ID of the network | defaults to undefined ### Return type -**[SetRoutingPolicy200Response](../models/SetRoutingPolicy200Response.md)** +**[SetNetworkIdResponse](../models/SetNetworkIdResponse.md)** ### Authorization @@ -608,7 +608,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -620,7 +620,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **setNetworkIdName** -> SetRoutingPolicy200Response setNetworkIdName(setNetworkIdNameRequest, ) +> SetNetworkIdResponse setNetworkIdName(setNetworkIdNameRequest, ) Updates name of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). @@ -629,11 +629,11 @@ Updates name of a specified network ID. **Note:** This API call is subject to F ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, NetworkConnectionsApiSetNetworkIdNameRequest, SetRoutingPolicy200Response } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, NetworkConnectionsApiSetNetworkIdNameRequest, SetNetworkIdResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -646,7 +646,7 @@ let body: NetworkConnectionsApiSetNetworkIdNameRequest = { networkId: networkId_example, }; -fireblocks.networkConnections.setNetworkIdName(body).then((res: FireblocksResponse) => { +fireblocks.networkConnections.setNetworkIdName(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -662,7 +662,7 @@ Name | Type | Description | Notes ### Return type -**[SetRoutingPolicy200Response](../models/SetRoutingPolicy200Response.md)** +**[SetNetworkIdResponse](../models/SetNetworkIdResponse.md)** ### Authorization @@ -671,7 +671,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -682,34 +682,34 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) -# **setRoutingPolicy** -> SetRoutingPolicy200Response setRoutingPolicy() +# **setNetworkIdRoutingPolicy** +> SetNetworkIdResponse setNetworkIdRoutingPolicy() -Updates an existing network connection\'s routing policy. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). +Updates the routing policy of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). ### Example ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, NetworkConnectionsApiSetRoutingPolicyRequest, SetRoutingPolicy200Response } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, NetworkConnectionsApiSetNetworkIdRoutingPolicyRequest, SetNetworkIdResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); -let body: NetworkConnectionsApiSetRoutingPolicyRequest = { - // string | The ID of the network connection - connectionId: connectionId_example, - // SetRoutingPolicyRequest (optional) - setRoutingPolicyRequest: param_value, +let body: NetworkConnectionsApiSetNetworkIdRoutingPolicyRequest = { + // string | The ID of the network + networkId: networkId_example, + // SetNetworkIdRoutingPolicyRequest (optional) + setNetworkIdRoutingPolicyRequest: param_value, }; -fireblocks.networkConnections.setRoutingPolicy(body).then((res: FireblocksResponse) => { +fireblocks.networkConnections.setNetworkIdRoutingPolicy(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -719,13 +719,13 @@ fireblocks.networkConnections.setRoutingPolicy(body).then((res: FireblocksRespon Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **setRoutingPolicyRequest** | **[SetRoutingPolicyRequest](../models/SetRoutingPolicyRequest.md)**| | - **connectionId** | [**string**] | The ID of the network connection | defaults to undefined + **setNetworkIdRoutingPolicyRequest** | **[SetNetworkIdRoutingPolicyRequest](../models/SetNetworkIdRoutingPolicyRequest.md)**| | + **networkId** | [**string**] | The ID of the network | defaults to undefined ### Return type -**[SetRoutingPolicy200Response](../models/SetRoutingPolicy200Response.md)** +**[SetNetworkIdResponse](../models/SetNetworkIdResponse.md)** ### Authorization @@ -734,7 +734,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -745,34 +745,34 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) -# **setRoutingPolicyForNetworkId** -> SetRoutingPolicy200Response setRoutingPolicyForNetworkId() +# **setRoutingPolicy** +> SetRoutingPolicy200Response setRoutingPolicy() -Updates the routing policy of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). +Updates an existing network connection\'s routing policy. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). ### Example ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, NetworkConnectionsApiSetRoutingPolicyForNetworkIdRequest, SetRoutingPolicy200Response } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, NetworkConnectionsApiSetRoutingPolicyRequest, SetRoutingPolicy200Response } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); -let body: NetworkConnectionsApiSetRoutingPolicyForNetworkIdRequest = { - // string | The ID of the network - networkId: networkId_example, - // SetRoutingPolicyForNetworkIdRequest (optional) - setRoutingPolicyForNetworkIdRequest: param_value, +let body: NetworkConnectionsApiSetRoutingPolicyRequest = { + // string | The ID of the network connection + connectionId: connectionId_example, + // SetRoutingPolicyRequest (optional) + setRoutingPolicyRequest: param_value, }; -fireblocks.networkConnections.setRoutingPolicyForNetworkId(body).then((res: FireblocksResponse) => { +fireblocks.networkConnections.setRoutingPolicy(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -782,8 +782,8 @@ fireblocks.networkConnections.setRoutingPolicyForNetworkId(body).then((res: Fire Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **setRoutingPolicyForNetworkIdRequest** | **[SetRoutingPolicyForNetworkIdRequest](../models/SetRoutingPolicyForNetworkIdRequest.md)**| | - **networkId** | [**string**] | The ID of the network | defaults to undefined + **setRoutingPolicyRequest** | **[SetRoutingPolicyRequest](../models/SetRoutingPolicyRequest.md)**| | + **connectionId** | [**string**] | The ID of the network connection | defaults to undefined ### Return type @@ -797,7 +797,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details diff --git a/docs/apis/OTABetaApi.md b/docs/apis/OTABetaApi.md index 5d21203..fbe14a5 100644 --- a/docs/apis/OTABetaApi.md +++ b/docs/apis/OTABetaApi.md @@ -18,11 +18,11 @@ Returns current OTA status ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, GetOtaStatus200Response } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -72,11 +72,11 @@ Enable or disable transactions to OTA ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, OTABetaApiSetOtaStatusRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); diff --git a/docs/apis/OffExchangesApi.md b/docs/apis/OffExchangesApi.md index 4ce91ad..46df60a 100644 --- a/docs/apis/OffExchangesApi.md +++ b/docs/apis/OffExchangesApi.md @@ -21,11 +21,11 @@ add collateral, create deposit request ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, OffExchangesApiAddOffExchangeRequest, CreateTransactionResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -63,7 +63,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -84,11 +84,11 @@ Returns a collateral account by mainExchangeAccountId. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, OffExchangesApiGetOffExchangeCollateralAccountsRequest, ExchangeAccount } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -123,7 +123,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -144,11 +144,11 @@ get settlements transactions from exchange ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, OffExchangesApiGetOffExchangeSettlementTransactionsRequest, ExchangeSettlementTransactionsResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -183,7 +183,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -204,11 +204,11 @@ remove collateral, create withdraw request ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, OffExchangesApiRemoveOffExchangeRequest, CreateTransactionResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -246,7 +246,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -267,11 +267,11 @@ create settlement for a trader ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, OffExchangesApiSettleOffExchangeTradesRequest, SettlementResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -309,7 +309,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details diff --git a/docs/apis/PaymentsPayoutApi.md b/docs/apis/PaymentsPayoutApi.md index d7bee8c..df9212f 100644 --- a/docs/apis/PaymentsPayoutApi.md +++ b/docs/apis/PaymentsPayoutApi.md @@ -19,11 +19,11 @@ Method | HTTP request | Description ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, PaymentsPayoutApiCreatePayoutRequest, PayoutResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -31,7 +31,7 @@ const fireblocks = new Fireblocks(); let body: PaymentsPayoutApiCreatePayoutRequest = { // CreatePayoutRequest (optional) - createPayoutRequest: {"paymentAccount":{"id":"EX_SUB3","type":"EXCHANGE_ACCOUNT"},"instructionSet":[{"payeeAccount":{"id":"bef85a1c-b605-4b2e-bdb5-2d400f4d0bf3","type":"EXTERNAL_WALLET"},"amount":{"amount":"43","assetId":"USDC"}},{"payeeAccount":{"id":"3adc1f92-e791-44a8-9aee-7f31c2108b78","type":"NETWORK_CONNECTION"},"amount":{"amount":"4423","assetId":"USDC"}}]}, + createPayoutRequest: {"paymentAccount":{"id":"EX_SUB1","type":"EXCHANGE_ACCOUNT"},"instructionSet":[{"payeeAccount":{"id":"bef85a1c-b605-4b2e-bdb5-2d400f4d0bf3","type":"EXTERNAL_WALLET"},"amount":{"amount":"43","assetId":"USDC"}},{"payeeAccount":{"id":"3adc1f92-e791-44a8-9aee-7f31c2108b78","type":"NETWORK_CONNECTION"},"amount":{"amount":"4423","assetId":"USDC"}}]}, // 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. (optional) idempotencyKey: idempotencyKey_example, }; @@ -84,11 +84,11 @@ No authorization required ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, PaymentsPayoutApiExecutePayoutActionRequest, DispatchPayoutResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -149,11 +149,11 @@ No authorization required ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, PaymentsPayoutApiGetPayoutRequest, PayoutResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); diff --git a/docs/apis/PolicyEditorBetaApi.md b/docs/apis/PolicyEditorBetaApi.md index 00f6c70..45292ce 100644 --- a/docs/apis/PolicyEditorBetaApi.md +++ b/docs/apis/PolicyEditorBetaApi.md @@ -21,11 +21,11 @@ Returns the active policy and its validation.
**Note:** These endpoints ar ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, PolicyAndValidationResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -54,7 +54,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -75,11 +75,11 @@ Returns the active draft and its validation.
**Note:** These endpoints are ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, DraftReviewAndValidationResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -108,7 +108,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -129,11 +129,11 @@ Send publish request of certain draft id and returns the response.
**Note: ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, PolicyEditorBetaApiPublishDraftRequest, PublishResult } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -171,7 +171,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -183,7 +183,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **publishPolicyRules** -> PublishResult publishPolicyRules(publishPolicyRulesRequest) +> PublishResult publishPolicyRules(policyRules) Send publish request of set of policy rules and returns the response.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. @@ -192,19 +192,19 @@ Send publish request of set of policy rules and returns the response.
**No ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, PolicyEditorBetaApiPublishPolicyRulesRequest, PublishResult } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); let body: PolicyEditorBetaApiPublishPolicyRulesRequest = { - // PublishPolicyRulesRequest - publishPolicyRulesRequest: param_value, + // PolicyRules + policyRules: param_value, // 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. (optional) idempotencyKey: idempotencyKey_example, }; @@ -219,7 +219,7 @@ fireblocks.policyEditorBeta.publishPolicyRules(body).then((res: FireblocksRespon Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **publishPolicyRulesRequest** | **[PublishPolicyRulesRequest](../models/PublishPolicyRulesRequest.md)**| | + **policyRules** | **[PolicyRules](../models/PolicyRules.md)**| | **idempotencyKey** | [**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. | (optional) defaults to undefined @@ -234,7 +234,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -246,7 +246,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **updateDraft** -> DraftReviewAndValidationResponse updateDraft(updateDraftRequest) +> DraftReviewAndValidationResponse updateDraft(policyRules) Update the draft and return its validation.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. @@ -255,19 +255,19 @@ Update the draft and return its validation.
**Note:** These endpoints are ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, PolicyEditorBetaApiUpdateDraftRequest, DraftReviewAndValidationResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); let body: PolicyEditorBetaApiUpdateDraftRequest = { - // UpdateDraftRequest - updateDraftRequest: param_value, + // PolicyRules + policyRules: param_value, // 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. (optional) idempotencyKey: idempotencyKey_example, }; @@ -282,7 +282,7 @@ fireblocks.policyEditorBeta.updateDraft(body).then((res: FireblocksResponse FindTicketById200Response cancelTicket() +> SmartTransferTicketResponse cancelTicket() Cancel Smart Transfer ticket @@ -32,11 +32,11 @@ Cancel Smart Transfer ticket ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, SmartTransferApiCancelTicketRequest, FindTicketById200Response } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, SmartTransferApiCancelTicketRequest, SmartTransferTicketResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -49,7 +49,7 @@ let body: SmartTransferApiCancelTicketRequest = { idempotencyKey: idempotencyKey_example, }; -fireblocks.smartTransfer.cancelTicket(body).then((res: FireblocksResponse) => { +fireblocks.smartTransfer.cancelTicket(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -65,7 +65,7 @@ Name | Type | Description | Notes ### Return type -**[FindTicketById200Response](../models/FindTicketById200Response.md)** +**[SmartTransferTicketResponse](../models/SmartTransferTicketResponse.md)** ### Authorization @@ -88,7 +88,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **createTicket** -> CreateTicket201Response createTicket(smartTransferCreateTicketDto) +> SmartTransferTicketResponse createTicket(smartTransferCreateTicket) Creates new Smart Transfer ticket @@ -97,24 +97,24 @@ Creates new Smart Transfer ticket ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, SmartTransferApiCreateTicketRequest, CreateTicket201Response } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, SmartTransferApiCreateTicketRequest, SmartTransferTicketResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); let body: SmartTransferApiCreateTicketRequest = { - // SmartTransferCreateTicketDto - smartTransferCreateTicketDto: param_value, + // SmartTransferCreateTicket + smartTransferCreateTicket: param_value, // 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. (optional) idempotencyKey: idempotencyKey_example, }; -fireblocks.smartTransfer.createTicket(body).then((res: FireblocksResponse) => { +fireblocks.smartTransfer.createTicket(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -124,13 +124,13 @@ fireblocks.smartTransfer.createTicket(body).then((res: FireblocksResponse CreateTicketTerm201Response createTicketTerm(smartTransferCreateTicketTermDto, ) +> SmartTransferTicketTermResponse createTicketTerm(smartTransferCreateTicketTerm, ) Creates new smart transfer ticket term (when the ticket status is DRAFT) @@ -161,26 +161,26 @@ Creates new smart transfer ticket term (when the ticket status is DRAFT) ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, SmartTransferApiCreateTicketTermRequest, CreateTicketTerm201Response } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, SmartTransferApiCreateTicketTermRequest, SmartTransferTicketTermResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); let body: SmartTransferApiCreateTicketTermRequest = { - // SmartTransferCreateTicketTermDto - smartTransferCreateTicketTermDto: param_value, + // SmartTransferCreateTicketTerm + smartTransferCreateTicketTerm: param_value, // string ticketId: ticketId_example, // 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. (optional) idempotencyKey: idempotencyKey_example, }; -fireblocks.smartTransfer.createTicketTerm(body).then((res: FireblocksResponse) => { +fireblocks.smartTransfer.createTicketTerm(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -190,14 +190,14 @@ fireblocks.smartTransfer.createTicketTerm(body).then((res: FireblocksResponse FindTicketById200Response findTicketById() +> SmartTransferTicketResponse findTicketById() Find Smart Transfer ticket by id @@ -228,11 +228,11 @@ Find Smart Transfer ticket by id ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, SmartTransferApiFindTicketByIdRequest, FindTicketById200Response } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, SmartTransferApiFindTicketByIdRequest, SmartTransferTicketResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -243,7 +243,7 @@ let body: SmartTransferApiFindTicketByIdRequest = { ticketId: ticketId_example, }; -fireblocks.smartTransfer.findTicketById(body).then((res: FireblocksResponse) => { +fireblocks.smartTransfer.findTicketById(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -258,7 +258,7 @@ Name | Type | Description | Notes ### Return type -**[FindTicketById200Response](../models/FindTicketById200Response.md)** +**[SmartTransferTicketResponse](../models/SmartTransferTicketResponse.md)** ### Authorization @@ -280,7 +280,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **findTicketTermById** -> FindTicketTermById200Response findTicketTermById() +> SmartTransferTicketTermResponse findTicketTermById() Find Smart Transfer ticket term by id @@ -289,11 +289,11 @@ Find Smart Transfer ticket term by id ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, SmartTransferApiFindTicketTermByIdRequest, FindTicketTermById200Response } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, SmartTransferApiFindTicketTermByIdRequest, SmartTransferTicketTermResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -306,7 +306,7 @@ let body: SmartTransferApiFindTicketTermByIdRequest = { termId: termId_example, }; -fireblocks.smartTransfer.findTicketTermById(body).then((res: FireblocksResponse) => { +fireblocks.smartTransfer.findTicketTermById(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -322,7 +322,7 @@ Name | Type | Description | Notes ### Return type -**[FindTicketTermById200Response](../models/FindTicketTermById200Response.md)** +**[SmartTransferTicketTermResponse](../models/SmartTransferTicketTermResponse.md)** ### Authorization @@ -344,7 +344,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **fulfillTicket** -> FindTicketById200Response fulfillTicket() +> SmartTransferTicketResponse fulfillTicket() Manually fulfill ticket, in case when all terms (legs) are funded manually @@ -353,11 +353,11 @@ Manually fulfill ticket, in case when all terms (legs) are funded manually ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, SmartTransferApiFulfillTicketRequest, FindTicketById200Response } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, SmartTransferApiFulfillTicketRequest, SmartTransferTicketResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -370,7 +370,7 @@ let body: SmartTransferApiFulfillTicketRequest = { idempotencyKey: idempotencyKey_example, }; -fireblocks.smartTransfer.fulfillTicket(body).then((res: FireblocksResponse) => { +fireblocks.smartTransfer.fulfillTicket(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -386,7 +386,7 @@ Name | Type | Description | Notes ### Return type -**[FindTicketById200Response](../models/FindTicketById200Response.md)** +**[SmartTransferTicketResponse](../models/SmartTransferTicketResponse.md)** ### Authorization @@ -409,7 +409,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **fundTicketTerm** -> fundTicketTerm(smartTransferFundTermDto, ) +> SmartTransferTicketTermResponse fundTicketTerm(smartTransferFundTerm, ) Set funding source for ticket term (in case of ASYNC tickets, this will execute transfer immediately) @@ -418,19 +418,19 @@ Set funding source for ticket term (in case of ASYNC tickets, this will execute ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, SmartTransferApiFundTicketTermRequest } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, SmartTransferApiFundTicketTermRequest, SmartTransferTicketTermResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); let body: SmartTransferApiFundTicketTermRequest = { - // SmartTransferFundTermDto - smartTransferFundTermDto: param_value, + // SmartTransferFundTerm + smartTransferFundTerm: param_value, // string ticketId: ticketId_example, // string @@ -439,7 +439,7 @@ let body: SmartTransferApiFundTicketTermRequest = { idempotencyKey: idempotencyKey_example, }; -fireblocks.smartTransfer.fundTicketTerm(body).then((res: FireblocksResponse) => { +fireblocks.smartTransfer.fundTicketTerm(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -449,7 +449,7 @@ fireblocks.smartTransfer.fundTicketTerm(body).then((res: FireblocksResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **smartTransferFundTermDto** | **[SmartTransferFundTermDto](../models/SmartTransferFundTermDto.md)**| | + **smartTransferFundTerm** | **[SmartTransferFundTerm](../models/SmartTransferFundTerm.md)**| | **ticketId** | [**string**] | | defaults to undefined **termId** | [**string**] | | defaults to undefined **idempotencyKey** | [**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. | (optional) defaults to undefined @@ -457,7 +457,7 @@ Name | Type | Description | Notes ### Return type -void (empty response body) +**[SmartTransferTicketTermResponse](../models/SmartTransferTicketTermResponse.md)** ### Authorization @@ -472,7 +472,6 @@ No authorization required ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | | - | **201** | Funding source for ticket term successfully done | - | **403** | Unauthorized | - | **404** | Not found | - | @@ -481,7 +480,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getSmartTransferUserGroups** -> GetSmartTransferUserGroups200Response getSmartTransferUserGroups() +> SmartTransferUserGroupsResponse getSmartTransferUserGroups() Get Smart Transfer user groups @@ -490,11 +489,11 @@ Get Smart Transfer user groups ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, GetSmartTransferUserGroups200Response } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, SmartTransferUserGroupsResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -502,7 +501,7 @@ const fireblocks = new Fireblocks(); let body:any = {}; -fireblocks.smartTransfer.getSmartTransferUserGroups(body).then((res: FireblocksResponse) => { +fireblocks.smartTransfer.getSmartTransferUserGroups(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -514,7 +513,7 @@ This endpoint does not need any parameter. ### Return type -**[GetSmartTransferUserGroups200Response](../models/GetSmartTransferUserGroups200Response.md)** +**[SmartTransferUserGroupsResponse](../models/SmartTransferUserGroupsResponse.md)** ### Authorization @@ -536,7 +535,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **manuallyFundTicketTerm** -> manuallyFundTicketTerm(smartTransferManuallyFundTermDto, ) +> SmartTransferTicketTermResponse manuallyFundTicketTerm(smartTransferManuallyFundTerm, ) Manually set ticket term transaction @@ -545,19 +544,19 @@ Manually set ticket term transaction ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, SmartTransferApiManuallyFundTicketTermRequest } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, SmartTransferApiManuallyFundTicketTermRequest, SmartTransferTicketTermResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); let body: SmartTransferApiManuallyFundTicketTermRequest = { - // SmartTransferManuallyFundTermDto - smartTransferManuallyFundTermDto: param_value, + // SmartTransferManuallyFundTerm + smartTransferManuallyFundTerm: param_value, // string ticketId: ticketId_example, // string @@ -566,7 +565,7 @@ let body: SmartTransferApiManuallyFundTicketTermRequest = { idempotencyKey: idempotencyKey_example, }; -fireblocks.smartTransfer.manuallyFundTicketTerm(body).then((res: FireblocksResponse) => { +fireblocks.smartTransfer.manuallyFundTicketTerm(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -576,7 +575,7 @@ fireblocks.smartTransfer.manuallyFundTicketTerm(body).then((res: FireblocksRespo Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **smartTransferManuallyFundTermDto** | **[SmartTransferManuallyFundTermDto](../models/SmartTransferManuallyFundTermDto.md)**| | + **smartTransferManuallyFundTerm** | **[SmartTransferManuallyFundTerm](../models/SmartTransferManuallyFundTerm.md)**| | **ticketId** | [**string**] | | defaults to undefined **termId** | [**string**] | | defaults to undefined **idempotencyKey** | [**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. | (optional) defaults to undefined @@ -584,7 +583,7 @@ Name | Type | Description | Notes ### Return type -void (empty response body) +**[SmartTransferTicketTermResponse](../models/SmartTransferTicketTermResponse.md)** ### Authorization @@ -599,7 +598,6 @@ No authorization required ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | | - | **201** | Successfully manually set ticket term transaction | - | **403** | Unauthorized | - | **404** | Not found | - | @@ -617,11 +615,11 @@ Delete ticket term when ticket is in DRAFT status ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, SmartTransferApiRemoveTicketTermRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -672,7 +670,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **searchTickets** -> SearchTickets200Response searchTickets() +> SmartTransferTicketFilteredResponse searchTickets() Finds Smart Transfer tickets that match the submitted criteria @@ -681,11 +679,11 @@ Finds Smart Transfer tickets that match the submitted criteria ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, SmartTransferApiSearchTicketsRequest, SearchTickets200Response } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, SmartTransferApiSearchTicketsRequest, SmartTransferTicketFilteredResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -714,7 +712,7 @@ let body: SmartTransferApiSearchTicketsRequest = { limit: 8.14, }; -fireblocks.smartTransfer.searchTickets(body).then((res: FireblocksResponse) => { +fireblocks.smartTransfer.searchTickets(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -738,7 +736,7 @@ Name | Type | Description | Notes ### Return type -**[SearchTickets200Response](../models/SearchTickets200Response.md)** +**[SmartTransferTicketFilteredResponse](../models/SmartTransferTicketFilteredResponse.md)** ### Authorization @@ -759,7 +757,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **setExternalRefId** -> FindTicketById200Response setExternalRefId(smartTransferSetTicketExternalIdDto, ) +> SmartTransferTicketResponse setExternalRefId(smartTransferSetTicketExternalId, ) Set external id Smart Transfer ticket @@ -768,26 +766,26 @@ Set external id Smart Transfer ticket ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, SmartTransferApiSetExternalRefIdRequest, FindTicketById200Response } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, SmartTransferApiSetExternalRefIdRequest, SmartTransferTicketResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); let body: SmartTransferApiSetExternalRefIdRequest = { - // SmartTransferSetTicketExternalIdDto - smartTransferSetTicketExternalIdDto: param_value, + // SmartTransferSetTicketExternalId + smartTransferSetTicketExternalId: param_value, // string ticketId: ticketId_example, // 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. (optional) idempotencyKey: idempotencyKey_example, }; -fireblocks.smartTransfer.setExternalRefId(body).then((res: FireblocksResponse) => { +fireblocks.smartTransfer.setExternalRefId(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -797,14 +795,14 @@ fireblocks.smartTransfer.setExternalRefId(body).then((res: FireblocksResponse FindTicketById200Response setTicketExpiration(smartTransferSetTicketExpirationDto, ) +> SmartTransferTicketResponse setTicketExpiration(smartTransferSetTicketExpiration, ) Set expiration date on Smart Transfer ticket @@ -836,26 +834,26 @@ Set expiration date on Smart Transfer ticket ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, SmartTransferApiSetTicketExpirationRequest, FindTicketById200Response } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, SmartTransferApiSetTicketExpirationRequest, SmartTransferTicketResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); let body: SmartTransferApiSetTicketExpirationRequest = { - // SmartTransferSetTicketExpirationDto - smartTransferSetTicketExpirationDto: param_value, + // SmartTransferSetTicketExpiration + smartTransferSetTicketExpiration: param_value, // string ticketId: ticketId_example, // 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. (optional) idempotencyKey: idempotencyKey_example, }; -fireblocks.smartTransfer.setTicketExpiration(body).then((res: FireblocksResponse) => { +fireblocks.smartTransfer.setTicketExpiration(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -865,14 +863,14 @@ fireblocks.smartTransfer.setTicketExpiration(body).then((res: FireblocksResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **smartTransferSetTicketExpirationDto** | **[SmartTransferSetTicketExpirationDto](../models/SmartTransferSetTicketExpirationDto.md)**| | + **smartTransferSetTicketExpiration** | **[SmartTransferSetTicketExpiration](../models/SmartTransferSetTicketExpiration.md)**| | **ticketId** | [**string**] | | defaults to undefined **idempotencyKey** | [**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. | (optional) defaults to undefined ### Return type -**[FindTicketById200Response](../models/FindTicketById200Response.md)** +**[SmartTransferTicketResponse](../models/SmartTransferTicketResponse.md)** ### Authorization @@ -895,7 +893,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **setUserGroups** -> SetUserGroups201Response setUserGroups(smartTransferSetUserGroupsDto) +> SmartTransferUserGroupsResponse setUserGroups(smartTransferSetUserGroups) Set Smart Transfer user group @@ -904,24 +902,24 @@ Set Smart Transfer user group ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, SmartTransferApiSetUserGroupsRequest, SetUserGroups201Response } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, SmartTransferApiSetUserGroupsRequest, SmartTransferUserGroupsResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); let body: SmartTransferApiSetUserGroupsRequest = { - // SmartTransferSetUserGroupsDto - smartTransferSetUserGroupsDto: param_value, + // SmartTransferSetUserGroups + smartTransferSetUserGroups: param_value, // 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. (optional) idempotencyKey: idempotencyKey_example, }; -fireblocks.smartTransfer.setUserGroups(body).then((res: FireblocksResponse) => { +fireblocks.smartTransfer.setUserGroups(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -931,13 +929,13 @@ fireblocks.smartTransfer.setUserGroups(body).then((res: FireblocksResponse FindTicketById200Response submitTicket(smartTransferSubmitTicketDto, ) +> SmartTransferTicketResponse submitTicket(smartTransferSubmitTicket, ) Submit Smart Transfer ticket - change status into ready for approval if auto approval is not turned on, or OPEN if auto approval is on @@ -968,26 +966,26 @@ Submit Smart Transfer ticket - change status into ready for approval if auto app ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, SmartTransferApiSubmitTicketRequest, FindTicketById200Response } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, SmartTransferApiSubmitTicketRequest, SmartTransferTicketResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); let body: SmartTransferApiSubmitTicketRequest = { - // SmartTransferSubmitTicketDto - smartTransferSubmitTicketDto: param_value, + // SmartTransferSubmitTicket + smartTransferSubmitTicket: param_value, // string ticketId: ticketId_example, // 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. (optional) idempotencyKey: idempotencyKey_example, }; -fireblocks.smartTransfer.submitTicket(body).then((res: FireblocksResponse) => { +fireblocks.smartTransfer.submitTicket(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -997,14 +995,14 @@ fireblocks.smartTransfer.submitTicket(body).then((res: FireblocksResponse FindTicketTermById200Response updateTicketTerm(smartTransferUpdateTicketTermDto, ) +> SmartTransferTicketTermResponse updateTicketTerm(smartTransferUpdateTicketTerm, ) Update ticket term (when ticket status is DRAFT) @@ -1036,19 +1034,19 @@ Update ticket term (when ticket status is DRAFT) ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, SmartTransferApiUpdateTicketTermRequest, FindTicketTermById200Response } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, SmartTransferApiUpdateTicketTermRequest, SmartTransferTicketTermResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); let body: SmartTransferApiUpdateTicketTermRequest = { - // SmartTransferUpdateTicketTermDto - smartTransferUpdateTicketTermDto: param_value, + // SmartTransferUpdateTicketTerm + smartTransferUpdateTicketTerm: param_value, // string ticketId: ticketId_example, // string @@ -1057,7 +1055,7 @@ let body: SmartTransferApiUpdateTicketTermRequest = { idempotencyKey: idempotencyKey_example, }; -fireblocks.smartTransfer.updateTicketTerm(body).then((res: FireblocksResponse) => { +fireblocks.smartTransfer.updateTicketTerm(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -1067,7 +1065,7 @@ fireblocks.smartTransfer.updateTicketTerm(body).then((res: FireblocksResponse ExecuteAction201Response executeAction(executeActionRequest, ) +> ExecuteActionResponse executeAction(executeActionRequest, ) Perform a chain-specific staking action (e.g. stake, unstake, withdraw). @@ -87,11 +87,11 @@ Perform a chain-specific staking action (e.g. stake, unstake, withdraw). ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, StakingBetaApiExecuteActionRequest, ExecuteAction201Response } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, StakingBetaApiExecuteActionRequest, ExecuteActionResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -108,7 +108,7 @@ let body: StakingBetaApiExecuteActionRequest = { idempotencyKey: idempotencyKey_example, }; -fireblocks.stakingBeta.executeAction(body).then((res: FireblocksResponse) => { +fireblocks.stakingBeta.executeAction(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -126,7 +126,7 @@ Name | Type | Description | Notes ### Return type -**[ExecuteAction201Response](../models/ExecuteAction201Response.md)** +**[ExecuteActionResponse](../models/ExecuteActionResponse.md)** ### Authorization @@ -155,11 +155,11 @@ Return detailed information on all staking positions, including the staked amoun ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, StakingBetaApiGetAllDelegationsRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -214,11 +214,11 @@ Return chain-specific, staking-related information summary (e.g. epoch details, ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, StakingBetaApiGetChainInfoRequest, ChainInfoResponseDto } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -273,11 +273,11 @@ Return an alphabetical list of supported chains. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -326,11 +326,11 @@ Return detailed information on a staking position, including the staked amount, ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, StakingBetaApiGetDelegationByIdRequest, DelegationDto } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -385,11 +385,11 @@ Return information on all the available staking providers. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -438,11 +438,11 @@ Return a summary of all vaults, categorized by their status (active, inactive), ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, DelegationSummaryDto } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -491,11 +491,11 @@ Return a summary for each vault, categorized by their status (active, inactive), ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, { [key: string]: DelegationSummaryDto; } } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); diff --git a/docs/apis/TransactionsApi.md b/docs/apis/TransactionsApi.md index 51709d7..524c886 100644 --- a/docs/apis/TransactionsApi.md +++ b/docs/apis/TransactionsApi.md @@ -29,11 +29,11 @@ Cancels a transaction by ID. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, TransactionsApiCancelTransactionRequest, CancelTransactionResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -74,7 +74,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -95,11 +95,11 @@ Creates a new transaction. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, TransactionsApiCreateTransactionRequest, CreateTransactionResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -140,7 +140,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -161,11 +161,11 @@ Drops a stuck ETH transaction and creates a replacement transaction. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, TransactionsApiDropTransactionRequest, DropTransactionResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -209,13 +209,13 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Created successfully | * X-Request-ID -
| +**200** | Operation completed successfully | * X-Request-ID -
| **0** | Error Response | * X-Request-ID -
| [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) @@ -230,11 +230,11 @@ Gets the estimated required fee for an asset. For UTXO based assets, the respons ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, TransactionsApiEstimateNetworkFeeRequest, EstimatedNetworkFeeResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -269,7 +269,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -290,11 +290,11 @@ Estimates the transaction fee for a transaction request. * Note: Supports all Fi ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, TransactionsApiEstimateTransactionFeeRequest, EstimatedTransactionFeeResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -332,7 +332,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -353,11 +353,11 @@ Freezes a transaction by ID. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, TransactionsApiFreezeTransactionRequest, FreezeTransactionResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -398,7 +398,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */* + - **Accept**: application/json ### HTTP response details @@ -418,11 +418,11 @@ Returns a transaction by ID. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, TransactionsApiGetTransactionRequest, TransactionResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -457,7 +457,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -479,11 +479,11 @@ Returns transaction by external transaction ID. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, TransactionsApiGetTransactionByExternalIdRequest, TransactionResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -518,7 +518,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -539,11 +539,11 @@ Lists the transaction history for your workspace. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, TransactionsApiGetTransactionsRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -617,7 +617,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -638,11 +638,11 @@ Overrides the required number of confirmations for transaction completion by tra ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, TransactionsApiSetConfirmationThresholdByTransactionHashRequest, SetConfirmationsThresholdResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -683,7 +683,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -704,11 +704,11 @@ Overrides the required number of confirmations for transaction completion by tra ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, TransactionsApiSetTransactionConfirmationThresholdRequest, SetConfirmationsThresholdResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -749,7 +749,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -770,11 +770,11 @@ Unfreezes a transaction by ID and makes the transaction available again. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, TransactionsApiUnfreezeTransactionRequest, UnfreezeTransactionResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -815,7 +815,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */* + - **Accept**: application/json ### HTTP response details @@ -835,11 +835,11 @@ Checks if an address is valid (for XRP, DOT, XLM, and EOS). ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, TransactionsApiValidateAddressRequest, ValidateAddressResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -877,7 +877,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details diff --git a/docs/apis/TravelRuleBetaApi.md b/docs/apis/TravelRuleBetaApi.md index 3dad251..64c85a4 100644 --- a/docs/apis/TravelRuleBetaApi.md +++ b/docs/apis/TravelRuleBetaApi.md @@ -6,7 +6,7 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**getVASPByDID**](#getVASPByDID) | **GET** /screening/travel_rule/vasp/{did} | Get VASP details [**getVASPs**](#getVASPs) | **GET** /screening/travel_rule/vasp | Get All VASPs -[**travelRuleApiControllerUpdateVasp**](#travelRuleApiControllerUpdateVasp) | **PUT** /screening/travel_rule/vasp/update | Add jsonDidKey to VASP details +[**updateVasp**](#updateVasp) | **PUT** /screening/travel_rule/vasp/update | Add jsonDidKey to VASP details [**validateFullTravelRuleTransaction**](#validateFullTravelRuleTransaction) | **POST** /screening/travel_rule/transaction/validate/full | Validate Full Travel Rule Transaction [**validateTravelRuleTransaction**](#validateTravelRuleTransaction) | **POST** /screening/travel_rule/transaction/validate | Validate Travel Rule Transaction @@ -21,11 +21,11 @@ Get VASP Details. Returns information about a VASP that has the specified DID. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, TravelRuleBetaApiGetVASPByDIDRequest, TravelRuleVASP } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -85,11 +85,11 @@ Get All VASPs. Returns a list of VASPs. VASPs can be searched and sorted and re ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, TravelRuleBetaApiGetVASPsRequest, TravelRuleGetAllVASPsResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -143,8 +143,8 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) -# **travelRuleApiControllerUpdateVasp** -> TravelRuleUpdateVASPDetails travelRuleApiControllerUpdateVasp(travelRuleUpdateVASPDetails) +# **updateVasp** +> TravelRuleUpdateVASPDetails updateVasp(travelRuleUpdateVASPDetails) Update VASP Details. Updates a VASP with the provided parameters. Use this endpoint to add your public jsonDIDkey generated by Notabene. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren\'t yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). @@ -153,24 +153,24 @@ Update VASP Details. Updates a VASP with the provided parameters. Use this endp ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, TravelRuleBetaApiTravelRuleApiControllerUpdateVaspRequest, TravelRuleUpdateVASPDetails } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, TravelRuleBetaApiUpdateVaspRequest, TravelRuleUpdateVASPDetails } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); -let body: TravelRuleBetaApiTravelRuleApiControllerUpdateVaspRequest = { +let body: TravelRuleBetaApiUpdateVaspRequest = { // TravelRuleUpdateVASPDetails travelRuleUpdateVASPDetails: param_value, // 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. (optional) idempotencyKey: idempotencyKey_example, }; -fireblocks.travelRuleBeta.travelRuleApiControllerUpdateVasp(body).then((res: FireblocksResponse) => { +fireblocks.travelRuleBeta.updateVasp(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -217,11 +217,11 @@ Validate Full Travel Rule transactions. Checks for all required information on ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, TravelRuleBetaApiValidateFullTravelRuleTransactionRequest, TravelRuleValidateTransactionResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -281,11 +281,11 @@ Validate Travel Rule transactions. Checks what beneficiary VASP details are req ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, TravelRuleBetaApiValidateTravelRuleTransactionRequest, TravelRuleValidateTransactionResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); diff --git a/docs/apis/UserGroupsBetaApi.md b/docs/apis/UserGroupsBetaApi.md index d0b6197..a1cea81 100644 --- a/docs/apis/UserGroupsBetaApi.md +++ b/docs/apis/UserGroupsBetaApi.md @@ -21,11 +21,11 @@ Create a new user group.
**Note**: - This endpoint is now in Beta, disable ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, UserGroupsBetaApiCreateUserGroupRequest, CreateUserGroupResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -63,7 +63,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -84,11 +84,11 @@ Delete a user group by ID.
**Note**: - This endpoint is now in Beta, disab ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, UserGroupsBetaApiDeleteUserGroupRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -144,11 +144,11 @@ Get a user group by ID.
**Note**: - This endpoint is now in Beta, disabled ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, UserGroupsBetaApiGetUserGroupRequest, UserGroupResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -183,7 +183,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -204,11 +204,11 @@ Get all user groups in your workspace.
**Note**: - This endpoint is now i ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -237,7 +237,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -258,11 +258,11 @@ Update a user group by ID.
**Note**: - This endpoint is now in Beta, disab ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, UserGroupsBetaApiUpdateUserGroupRequest, UserGroupCreateResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -303,7 +303,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details diff --git a/docs/apis/UsersApi.md b/docs/apis/UsersApi.md index ae6be82..081db51 100644 --- a/docs/apis/UsersApi.md +++ b/docs/apis/UsersApi.md @@ -17,11 +17,11 @@ List all users for the workspace. Please note that this endpoint is available o ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, GetUsersResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -50,7 +50,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details diff --git a/docs/apis/VaultsApi.md b/docs/apis/VaultsApi.md index 447fe80..f161db3 100644 --- a/docs/apis/VaultsApi.md +++ b/docs/apis/VaultsApi.md @@ -24,9 +24,9 @@ Method | HTTP request | Description [**getVaultAssets**](#getVaultAssets) | **GET** /vault/assets | Get asset balance for chosen assets [**getVaultBalanceByAsset**](#getVaultBalanceByAsset) | **GET** /vault/assets/{assetId} | Get vault balance by asset [**hideVaultAccount**](#hideVaultAccount) | **POST** /vault/accounts/{vaultAccountId}/hide | Hide a vault account in the console -[**setAutoFuelForVaultAccount**](#setAutoFuelForVaultAccount) | **POST** /vault/accounts/{vaultAccountId}/set_auto_fuel | Turn autofueling on or off [**setCustomerRefIdForAddress**](#setCustomerRefIdForAddress) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/set_customer_ref_id | Assign AML customer reference ID -[**setCustomerRefIdForVaultAccount**](#setCustomerRefIdForVaultAccount) | **POST** /vault/accounts/{vaultAccountId}/set_customer_ref_id | Set an AML/KYT customer reference ID for a vault account +[**setVaultAccountAutoFuel**](#setVaultAccountAutoFuel) | **POST** /vault/accounts/{vaultAccountId}/set_auto_fuel | Turn autofueling on or off +[**setVaultAccountCustomerRefId**](#setVaultAccountCustomerRefId) | **POST** /vault/accounts/{vaultAccountId}/set_customer_ref_id | Set an AML/KYT customer reference ID for a vault account [**unhideVaultAccount**](#unhideVaultAccount) | **POST** /vault/accounts/{vaultAccountId}/unhide | Unhide a vault account in the console [**updateVaultAccount**](#updateVaultAccount) | **PUT** /vault/accounts/{vaultAccountId} | Rename a vault account [**updateVaultAccountAssetAddress**](#updateVaultAccountAssetAddress) | **PUT** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId} | Update address description @@ -43,11 +43,11 @@ Initiates activation for a wallet in a vault account. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, VaultsApiActivateAssetForVaultAccountRequest, CreateVaultAssetResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -88,7 +88,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -109,11 +109,11 @@ Converts an existing segwit address to the legacy format. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, VaultsApiCreateLegacyAddressRequest, CreateAddressResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -157,7 +157,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -178,11 +178,11 @@ Create multiple vault accounts by running an async job.
**Note**: - These ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, VaultsApiCreateMultipleAccountsRequest, JobCreated } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -220,7 +220,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -241,11 +241,11 @@ Creates a new vault account with the requested name. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, VaultsApiCreateVaultAccountRequest, VaultAccount } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -283,7 +283,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details @@ -304,11 +304,11 @@ Creates a wallet for a specific asset in a vault account. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, VaultsApiCreateVaultAccountAssetRequest, CreateVaultAssetResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -319,8 +319,8 @@ let body: VaultsApiCreateVaultAccountAssetRequest = { vaultAccountId: vaultAccountId_example, // string | The ID of the asset assetId: assetId_example, - // CreateVaultAccountAssetRequest (optional) - createVaultAccountAssetRequest: param_value, + // CreateAssetsRequest (optional) + createAssetsRequest: param_value, // 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. (optional) idempotencyKey: idempotencyKey_example, }; @@ -335,7 +335,7 @@ fireblocks.vaults.createVaultAccountAsset(body).then((res: FireblocksResponse setAutoFuelForVaultAccount(setAutoFuelForVaultAccountRequest, ) +# **setCustomerRefIdForAddress** +> setCustomerRefIdForAddress(setCustomerRefIdForAddressRequest, ) -Sets the autofueling property of the vault account to enabled or disabled. +Sets an AML/KYT customer reference ID for a specific address. ### Example ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, VaultsApiSetAutoFuelForVaultAccountRequest } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, VaultsApiSetCustomerRefIdForAddressRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); -let body: VaultsApiSetAutoFuelForVaultAccountRequest = { - // SetAutoFuelForVaultAccountRequest - setAutoFuelForVaultAccountRequest: param_value, - // string | The vault account ID +let body: VaultsApiSetCustomerRefIdForAddressRequest = { + // SetCustomerRefIdForAddressRequest + setCustomerRefIdForAddressRequest: param_value, + // string | The ID of the vault account vaultAccountId: vaultAccountId_example, + // string | The ID of the asset + assetId: assetId_example, + // string | The address for which to add a description. For XRP, use
:, for all other assets, use only the address + addressId: addressId_example, // 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. (optional) idempotencyKey: idempotencyKey_example, }; -fireblocks.vaults.setAutoFuelForVaultAccount(body).then((res: FireblocksResponse) => { +fireblocks.vaults.setCustomerRefIdForAddress(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -1405,8 +1409,10 @@ fireblocks.vaults.setAutoFuelForVaultAccount(body).then((res: FireblocksResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **setAutoFuelForVaultAccountRequest** | **[SetAutoFuelForVaultAccountRequest](../models/SetAutoFuelForVaultAccountRequest.md)**| | - **vaultAccountId** | [**string**] | The vault account ID | defaults to undefined + **setCustomerRefIdForAddressRequest** | **[SetCustomerRefIdForAddressRequest](../models/SetCustomerRefIdForAddressRequest.md)**| | + **vaultAccountId** | [**string**] | The ID of the vault account | defaults to undefined + **assetId** | [**string**] | The ID of the asset | defaults to undefined + **addressId** | [**string**] | The address for which to add a description. For XRP, use <address>:<tag>, for all other assets, use only the address | defaults to undefined **idempotencyKey** | [**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. | (optional) defaults to undefined @@ -1432,40 +1438,36 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) -# **setCustomerRefIdForAddress** -> setCustomerRefIdForAddress(setCustomerRefIdForVaultAccountRequest, ) +# **setVaultAccountAutoFuel** +> setVaultAccountAutoFuel(setAutoFuelRequest, ) -Sets an AML/KYT customer reference ID for a specific address. +Sets the autofueling property of the vault account to enabled or disabled. ### Example ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, VaultsApiSetCustomerRefIdForAddressRequest } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, VaultsApiSetVaultAccountAutoFuelRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); -let body: VaultsApiSetCustomerRefIdForAddressRequest = { - // SetCustomerRefIdForVaultAccountRequest - setCustomerRefIdForVaultAccountRequest: param_value, - // string | The ID of the vault account +let body: VaultsApiSetVaultAccountAutoFuelRequest = { + // SetAutoFuelRequest + setAutoFuelRequest: param_value, + // string | The vault account ID vaultAccountId: vaultAccountId_example, - // string | The ID of the asset - assetId: assetId_example, - // string | The address for which to add a description. For XRP, use
:, for all other assets, use only the address - addressId: addressId_example, // 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. (optional) idempotencyKey: idempotencyKey_example, }; -fireblocks.vaults.setCustomerRefIdForAddress(body).then((res: FireblocksResponse) => { +fireblocks.vaults.setVaultAccountAutoFuel(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -1475,10 +1477,8 @@ fireblocks.vaults.setCustomerRefIdForAddress(body).then((res: FireblocksResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **setCustomerRefIdForVaultAccountRequest** | **[SetCustomerRefIdForVaultAccountRequest](../models/SetCustomerRefIdForVaultAccountRequest.md)**| | - **vaultAccountId** | [**string**] | The ID of the vault account | defaults to undefined - **assetId** | [**string**] | The ID of the asset | defaults to undefined - **addressId** | [**string**] | The address for which to add a description. For XRP, use <address>:<tag>, for all other assets, use only the address | defaults to undefined + **setAutoFuelRequest** | **[SetAutoFuelRequest](../models/SetAutoFuelRequest.md)**| | + **vaultAccountId** | [**string**] | The vault account ID | defaults to undefined **idempotencyKey** | [**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. | (optional) defaults to undefined @@ -1504,8 +1504,8 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) -# **setCustomerRefIdForVaultAccount** -> setCustomerRefIdForVaultAccount(setCustomerRefIdForVaultAccountRequest, ) +# **setVaultAccountCustomerRefId** +> setVaultAccountCustomerRefId(setCustomerRefIdRequest, ) Assigns an AML/KYT customer reference ID for the vault account. @@ -1514,26 +1514,26 @@ Assigns an AML/KYT customer reference ID for the vault account. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, VaultsApiSetCustomerRefIdForVaultAccountRequest } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, VaultsApiSetVaultAccountCustomerRefIdRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); const fireblocks = new Fireblocks(); -let body: VaultsApiSetCustomerRefIdForVaultAccountRequest = { - // SetCustomerRefIdForVaultAccountRequest - setCustomerRefIdForVaultAccountRequest: param_value, +let body: VaultsApiSetVaultAccountCustomerRefIdRequest = { + // SetCustomerRefIdRequest + setCustomerRefIdRequest: param_value, // string | The vault account ID vaultAccountId: vaultAccountId_example, // 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. (optional) idempotencyKey: idempotencyKey_example, }; -fireblocks.vaults.setCustomerRefIdForVaultAccount(body).then((res: FireblocksResponse) => { +fireblocks.vaults.setVaultAccountCustomerRefId(body).then((res: FireblocksResponse) => { console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2)); }).catch((error:any) => console.error(error)); ``` @@ -1543,7 +1543,7 @@ fireblocks.vaults.setCustomerRefIdForVaultAccount(body).then((res: FireblocksRes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **setCustomerRefIdForVaultAccountRequest** | **[SetCustomerRefIdForVaultAccountRequest](../models/SetCustomerRefIdForVaultAccountRequest.md)**| | + **setCustomerRefIdRequest** | **[SetCustomerRefIdRequest](../models/SetCustomerRefIdRequest.md)**| | **vaultAccountId** | [**string**] | The vault account ID | defaults to undefined **idempotencyKey** | [**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. | (optional) defaults to undefined @@ -1580,11 +1580,11 @@ Makes a hidden vault account visible in web console view. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, VaultsApiUnhideVaultAccountRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -1643,11 +1643,11 @@ Renames the requested vault account. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, VaultsApiUpdateVaultAccountRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -1709,11 +1709,11 @@ Updates the description of an existing address of an asset in a vault account. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, VaultsApiUpdateVaultAccountAssetAddressRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -1781,11 +1781,11 @@ Updates the balance of a specific asset in a vault account. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, VaultsApiUpdateVaultAccountAssetBalanceRequest, VaultAsset } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -1796,8 +1796,6 @@ let body: VaultsApiUpdateVaultAccountAssetBalanceRequest = { vaultAccountId: vaultAccountId_example, // string | The ID of the asset assetId: assetId_example, - // object (optional) - body: Object, // 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. (optional) idempotencyKey: idempotencyKey_example, }; @@ -1812,7 +1810,6 @@ fireblocks.vaults.updateVaultAccountAssetBalance(body).then((res: FireblocksResp Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **object**| | **vaultAccountId** | [**string**] | The ID of the vault account to return | defaults to undefined **assetId** | [**string**] | The ID of the asset | defaults to undefined **idempotencyKey** | [**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. | (optional) defaults to undefined @@ -1829,7 +1826,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details diff --git a/docs/apis/Web3ConnectionsApi.md b/docs/apis/Web3ConnectionsApi.md index 69d8e03..9f71c92 100644 --- a/docs/apis/Web3ConnectionsApi.md +++ b/docs/apis/Web3ConnectionsApi.md @@ -20,11 +20,11 @@ Initiate a new Web3 connection. * Note: After this succeeds, make a request to ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, Web3ConnectionsApiCreateRequest, CreateConnectionResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -84,11 +84,11 @@ Get open Web3 connections. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, Web3ConnectionsApiGetRequest, GetConnectionsResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -157,11 +157,11 @@ Remove a Web3 connection ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, Web3ConnectionsApiRemoveRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -218,11 +218,11 @@ Submit a response to *approve* or *reject* an initiated Web3 connection. * Note: ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, Web3ConnectionsApiSubmitRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); diff --git a/docs/apis/WebhooksApi.md b/docs/apis/WebhooksApi.md index adfcbb3..f7b92da 100644 --- a/docs/apis/WebhooksApi.md +++ b/docs/apis/WebhooksApi.md @@ -18,11 +18,11 @@ Resends failed webhook notifications for a transaction by ID. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, WebhooksApiResendTransactionWebhooksRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -84,11 +84,11 @@ Resends all failed webhook notifications. ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, WebhooksApiResendWebhooksRequest, ResendWebhooksResponse } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); @@ -123,7 +123,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */*, application/json + - **Accept**: application/json ### HTTP response details diff --git a/docs/apis/WhitelistIpAddressesApi.md b/docs/apis/WhitelistIpAddressesApi.md index fe7b428..4f1c97b 100644 --- a/docs/apis/WhitelistIpAddressesApi.md +++ b/docs/apis/WhitelistIpAddressesApi.md @@ -17,11 +17,11 @@ gets ip addresses ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, WhitelistIpAddressesApiGetWhitelistIpAddressesRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); diff --git a/docs/apis/WorkspaceApi.md b/docs/apis/WorkspaceApi.md index 7b7d524..7e1057d 100644 --- a/docs/apis/WorkspaceApi.md +++ b/docs/apis/WorkspaceApi.md @@ -17,11 +17,11 @@ Freezes a Workspace so that ALL operations by ANY user are blocked. You should ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, WorkspaceApiFreezeWorkspaceRequest } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); diff --git a/docs/apis/WorkspaceStatusBetaApi.md b/docs/apis/WorkspaceStatusBetaApi.md index aaebd79..597e2a0 100644 --- a/docs/apis/WorkspaceStatusBetaApi.md +++ b/docs/apis/WorkspaceStatusBetaApi.md @@ -17,11 +17,11 @@ Returns current workspace status ```typescript import { readFileSync } from 'fs'; -import { Fireblocks, BaseServerPathEnum } from '@fireblocks/ts-sdk'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; import type { FireblocksResponse, GetWorkspaceStatus200Response } from '@fireblocks/ts-sdk'; // Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = BaseServerPathEnum.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" +process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1" process.env.FIREBLOCKS_API_KEY = "my-api-key"; process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8"); diff --git a/docs/models/AmlRegistrationResult.md b/docs/models/AmlRegistrationResult.md new file mode 100644 index 0000000..f23a328 --- /dev/null +++ b/docs/models/AmlRegistrationResult.md @@ -0,0 +1,14 @@ +# AmlRegistrationResult + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**provider** | **string** | | [optional] [default to undefined]| +|**success** | **boolean** | | [optional] [default to undefined]| +|**timestamp** | **number** | | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/ComplianceResult.md b/docs/models/ComplianceResult.md new file mode 100644 index 0000000..28bd590 --- /dev/null +++ b/docs/models/ComplianceResult.md @@ -0,0 +1,69 @@ +# ComplianceResult + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**aml** | [**Array<ComplianceScreeningResult>**](ComplianceScreeningResult.md) | The end result of the AML screening. | [optional] [default to undefined]| +|**tr** | [**Array<ComplianceScreeningResult>**](ComplianceScreeningResult.md) | The result of the Travel Rule screening. | [optional] [default to undefined]| +|**amlList** | [**Array<ComplianceScreeningResult>**](ComplianceScreeningResult.md) | The list of all results of the AML screening. | [optional] [default to undefined]| +|**status** | **string** | Status of compliance result screening. | [optional] [default to undefined]| +|**amlRegistration** | [**Array<AmlRegistrationResult>**](AmlRegistrationResult.md) | The results of the AML address registration. | [optional] [default to undefined]| + + +## Enum: ComplianceResultStatusEnum + + +* `Started` (value: `'Started'`) + +* `AmlStarted` (value: `'AMLStarted'`) + +* `AmlCompleted` (value: `'AMLCompleted'`) + +* `AmlFailed` (value: `'AMLFailed'`) + +* `AmlinBackground` (value: `'AMLInBackground'`) + +* `TrStarted` (value: `'TRStarted'`) + +* `TrCompleted` (value: `'TRCompleted'`) + +* `TrFailed` (value: `'TRFailed'`) + +* `Completed` (value: `'Completed'`) + +* `RegistrationStarted` (value: `'RegistrationStarted'`) + +* `AmlRegistrationStarted` (value: `'AMLRegistrationStarted'`) + +* `AmlRegistrationCompleted` (value: `'AMLRegistrationCompleted'`) + +* `TrUpdateStarted` (value: `'TRUpdateStarted'`) + +* `TrUpdateCompleted` (value: `'TRUpdateCompleted'`) + +* `UpdateCompleted` (value: `'UpdateCompleted'`) + +* `IncomingStarted` (value: `'IncomingStarted'`) + +* `AmlIncomingStarted` (value: `'AMLIncomingStarted'`) + +* `AmlIncomingCompleted` (value: `'AMLIncomingCompleted'`) + +* `AmlIncomingFailed` (value: `'AMLIncomingFailed'`) + +* `AmlIncomingInBackground` (value: `'AMLIncomingInBackground'`) + +* `TrIncomingStarted` (value: `'TRIncomingStarted'`) + +* `TrIncomingCompleted` (value: `'TRIncomingCompleted'`) + +* `TrIncomingFailed` (value: `'TRIncomingFailed'`) + +* `IncomingCompleted` (value: `'IncomingCompleted'`) + + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/ComplianceScreeningResult.md b/docs/models/ComplianceScreeningResult.md new file mode 100644 index 0000000..3546f4c --- /dev/null +++ b/docs/models/ComplianceScreeningResult.md @@ -0,0 +1,31 @@ +# ComplianceScreeningResult + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**provider** | **string** | | [optional] [default to undefined]| +|**payload** | **object** | The payload of the screening result. The payload is a JSON object that contains the screening result. The payload is different for each screening provider. | [optional] [default to undefined]| +|**bypassReason** | **string** | | [optional] [default to undefined]| +|**screeningStatus** | **string** | | [optional] [default to undefined]| +|**timestamp** | **number** | | [optional] [default to undefined]| + + +## Enum: ComplianceScreeningResultScreeningStatusEnum + + +* `Completed` (value: `'COMPLETED'`) + +* `Pending` (value: `'PENDING'`) + +* `Bypassed` (value: `'BYPASSED'`) + +* `Failed` (value: `'FAILED'`) + +* `Frozen` (value: `'FROZEN'`) + + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/CreateAddressRequest.md b/docs/models/CreateAddressRequest.md new file mode 100644 index 0000000..7292c18 --- /dev/null +++ b/docs/models/CreateAddressRequest.md @@ -0,0 +1,13 @@ +# CreateAddressRequest + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**description** | **string** | (Optional) Attach a description to the new address | [optional] [default to undefined]| +|**customerRefId** | **string** | Optional - Sets a customer reference ID | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/CreateAssetsBulkRequest.md b/docs/models/CreateAssetsBulkRequest.md new file mode 100644 index 0000000..2aeed8f --- /dev/null +++ b/docs/models/CreateAssetsBulkRequest.md @@ -0,0 +1,14 @@ +# CreateAssetsBulkRequest + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**assetId** | **string** | The ID of the new asset | [optional] [default to undefined]| +|**vaultAccountIdFrom** | **string** | The smallest vault account ID in the range | [optional] [default to undefined]| +|**vaultAccountIdTo** | **string** | The largest vault account ID in the range | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/CreateAssetsRequest.md b/docs/models/CreateAssetsRequest.md new file mode 100644 index 0000000..3dc31b8 --- /dev/null +++ b/docs/models/CreateAssetsRequest.md @@ -0,0 +1,12 @@ +# CreateAssetsRequest + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**eosAccountName** | **string** | Optional - when creating an EOS wallet, the account name. If not provided, a random name will be generated | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/CreateWalletRequest.md b/docs/models/CreateWalletRequest.md new file mode 100644 index 0000000..9680ab8 --- /dev/null +++ b/docs/models/CreateWalletRequest.md @@ -0,0 +1,13 @@ +# CreateWalletRequest + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**name** | **string** | the wallet\'s display name | [optional] [default to undefined]| +|**customerRefId** | **string** | Optional - Sets a customer reference ID | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/DestinationTransferPeerPath.md b/docs/models/DestinationTransferPeerPath.md index 19e23a4..1b66047 100644 --- a/docs/models/DestinationTransferPeerPath.md +++ b/docs/models/DestinationTransferPeerPath.md @@ -4,7 +4,7 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| -|**type** | **string** | | [default to undefined]| +|**type** | [**TransferPeerPathType**](TransferPeerPathType.md) | | [default to undefined]| |**subType** | **string** | | [optional] [default to undefined]| |**id** | **string** | | [optional] [default to undefined]| |**name** | **string** | | [optional] [default to undefined]| @@ -12,35 +12,6 @@ |**oneTimeAddress** | [**OneTimeAddress**](OneTimeAddress.md) | | [optional] [default to undefined]| -## Enum: DestinationTransferPeerPathTypeEnum - - -* `VaultAccount` (value: `'VAULT_ACCOUNT'`) - -* `ExchangeAccount` (value: `'EXCHANGE_ACCOUNT'`) - -* `InternalWallet` (value: `'INTERNAL_WALLET'`) - -* `ExternalWallet` (value: `'EXTERNAL_WALLET'`) - -* `Contract` (value: `'CONTRACT'`) - -* `NetworkConnection` (value: `'NETWORK_CONNECTION'`) - -* `FiatAccount` (value: `'FIAT_ACCOUNT'`) - -* `Compound` (value: `'COMPOUND'`) - -* `GasStation` (value: `'GAS_STATION'`) - -* `OneTimeAddress` (value: `'ONE_TIME_ADDRESS'`) - -* `Unknown` (value: `'UNKNOWN'`) - -* `EndUserWallet` (value: `'END_USER_WALLET'`) - - - ## Enum: DestinationTransferPeerPathSubTypeEnum diff --git a/docs/models/DestinationTransferPeerPathResponse.md b/docs/models/DestinationTransferPeerPathResponse.md index 75d6a3e..4662499 100644 --- a/docs/models/DestinationTransferPeerPathResponse.md +++ b/docs/models/DestinationTransferPeerPathResponse.md @@ -4,7 +4,7 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| -|**type** | **string** | | [default to undefined]| +|**type** | [**TransferPeerPathType**](TransferPeerPathType.md) | | [default to undefined]| |**subType** | **string** | In case the type is set to `EXCHANGE_ACCOUNT` or `FIAT_ACCOUNT`, the specific exchange vendor name or fiat vendor name.In case the type is set to `INTERNAL_WALLET` or `EXTERNAL_WALLET`, the subType is set to `Internal` or `External`. | [optional] [default to undefined]| |**id** | **string** | The ID of the peer. You can retrieve the ID of each venue object using the endpoints for [listing vault accounts](https://developers.fireblocks.com/reference/get_vault-accounts-paged), [listing exchange account](https://developers.fireblocks.com/reference/get_exchange-accounts), [listing fiat accounts](https://developers.fireblocks.com/reference/get_fiat-accounts), [listing internal wallets](https://developers.fireblocks.com/reference/get_internal-wallets), [listing external wallets](https://developers.fireblocks.com/reference/get_external-wallets), [listing network connections](https://developers.fireblocks.com/reference/get_network-connections). For the other types, this parameter is not needed. | [optional] [default to undefined]| |**name** | **string** | The name of the peer. | [optional] [default to undefined]| diff --git a/docs/models/ExecuteActionResponse.md b/docs/models/ExecuteActionResponse.md new file mode 100644 index 0000000..bdf7ff4 --- /dev/null +++ b/docs/models/ExecuteActionResponse.md @@ -0,0 +1,12 @@ +# ExecuteActionResponse + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**id** | **string** | The unique identifier of the staking position | [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/Funds.md b/docs/models/Funds.md new file mode 100644 index 0000000..b96e733 --- /dev/null +++ b/docs/models/Funds.md @@ -0,0 +1,12 @@ +# Funds + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**amount** | **number** | | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/PolicyRules.md b/docs/models/PolicyRules.md new file mode 100644 index 0000000..2ae91ba --- /dev/null +++ b/docs/models/PolicyRules.md @@ -0,0 +1,12 @@ +# PolicyRules + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**rules** | [**Array<PolicyRule>**](PolicyRule.md) | Policy rules | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/ScreeningConfigurationsRequest.md b/docs/models/ScreeningConfigurationsRequest.md new file mode 100644 index 0000000..0df1d68 --- /dev/null +++ b/docs/models/ScreeningConfigurationsRequest.md @@ -0,0 +1,14 @@ +# ScreeningConfigurationsRequest + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**bypassScreeningDuringServiceOutages** | **boolean** | Flag to enable or disable bypass screening during service outages. | [optional] [default to undefined]| +|**inboundTransactionDelay** | **number** | Inbound transaction delay in seconds. | [optional] [default to undefined]| +|**outboundTransactionDelay** | **number** | Outbound transaction delay in seconds. | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/ScreeningPolicyResponse.md b/docs/models/ScreeningPolicyResponse.md new file mode 100644 index 0000000..537dbc3 --- /dev/null +++ b/docs/models/ScreeningPolicyResponse.md @@ -0,0 +1,16 @@ +# ScreeningPolicyResponse + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**policy** | [**TravelRulePolicyRuleResponse**](TravelRulePolicyRuleResponse.md) | | [default to undefined]| +|**isDefault** | **boolean** | | [default to undefined]| +|**lastUpdate** | **string** | | [default to undefined]| +|**policyStatus** | **string** | | [optional] [default to undefined]| +|**createDate** | **string** | | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/ScreeningProviderRulesConfigurationResponse.md b/docs/models/ScreeningProviderRulesConfigurationResponse.md new file mode 100644 index 0000000..01da6f4 --- /dev/null +++ b/docs/models/ScreeningProviderRulesConfigurationResponse.md @@ -0,0 +1,60 @@ +# ScreeningProviderRulesConfigurationResponse + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**action** | **string** | | [default to undefined]| +|**direction** | **string** | | [optional] [default to undefined]| +|**status** | **string** | | [optional] [default to undefined]| +|**amountUSD** | **number** | | [optional] [default to undefined]| +|**amount** | **number** | | [optional] [default to undefined]| +|**asset** | **string** | | [optional] [default to undefined]| + + +## Enum: ScreeningProviderRulesConfigurationResponseActionEnum + + +* `Accept` (value: `'ACCEPT'`) + +* `Reject` (value: `'REJECT'`) + +* `Alert` (value: `'ALERT'`) + +* `Wait` (value: `'WAIT'`) + +* `Freeze` (value: `'FREEZE'`) + +* `Cancel` (value: `'CANCEL'`) + + + +## Enum: ScreeningProviderRulesConfigurationResponseDirectionEnum + + +* `Inbound` (value: `'INBOUND'`) + +* `Outbound` (value: `'OUTBOUND'`) + + + +## Enum: ScreeningProviderRulesConfigurationResponseStatusEnum + + +* `Completed` (value: `'COMPLETED'`) + +* `Pending` (value: `'PENDING'`) + +* `Rejected` (value: `'REJECTED'`) + +* `Failed` (value: `'FAILED'`) + +* `Canceled` (value: `'CANCELED'`) + +* `BlockingTimeExpired` (value: `'BLOCKING_TIME_EXPIRED'`) + + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/ScreeningUpdateConfigurationsRequest.md b/docs/models/ScreeningUpdateConfigurationsRequest.md new file mode 100644 index 0000000..cbed8aa --- /dev/null +++ b/docs/models/ScreeningUpdateConfigurationsRequest.md @@ -0,0 +1,13 @@ +# ScreeningUpdateConfigurationsRequest + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**disableBypass** | **boolean** | Flag to enable or disable bypass screening on tenant configuration. | [optional] [default to undefined]| +|**disableUnfreeze** | **boolean** | Flag to enable or disable unfreeze of transaction frozen by policy rule on tenant configuration. | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SetAutoFuelRequest.md b/docs/models/SetAutoFuelRequest.md new file mode 100644 index 0000000..098dc6b --- /dev/null +++ b/docs/models/SetAutoFuelRequest.md @@ -0,0 +1,12 @@ +# SetAutoFuelRequest + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**autoFuel** | **boolean** | Auto Fuel | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SetCustomerRefIdForAddressRequest.md b/docs/models/SetCustomerRefIdForAddressRequest.md new file mode 100644 index 0000000..f145567 --- /dev/null +++ b/docs/models/SetCustomerRefIdForAddressRequest.md @@ -0,0 +1,12 @@ +# SetCustomerRefIdForAddressRequest + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**customerRefId** | **string** | Customer reference ID | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SetCustomerRefIdRequest.md b/docs/models/SetCustomerRefIdRequest.md new file mode 100644 index 0000000..c9e424c --- /dev/null +++ b/docs/models/SetCustomerRefIdRequest.md @@ -0,0 +1,12 @@ +# SetCustomerRefIdRequest + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**customerRefId** | **string** | Customer reference ID | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SetNetworkIdDiscoverabilityRequest.md b/docs/models/SetNetworkIdDiscoverabilityRequest.md new file mode 100644 index 0000000..03eba33 --- /dev/null +++ b/docs/models/SetNetworkIdDiscoverabilityRequest.md @@ -0,0 +1,12 @@ +# SetNetworkIdDiscoverabilityRequest + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**isDiscoverable** | **boolean** | | [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SetNetworkIdResponse.md b/docs/models/SetNetworkIdResponse.md new file mode 100644 index 0000000..54e1217 --- /dev/null +++ b/docs/models/SetNetworkIdResponse.md @@ -0,0 +1,12 @@ +# SetNetworkIdResponse + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**success** | **boolean** | | [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SetNetworkIdRoutingPolicyRequest.md b/docs/models/SetNetworkIdRoutingPolicyRequest.md new file mode 100644 index 0000000..a0e780a --- /dev/null +++ b/docs/models/SetNetworkIdRoutingPolicyRequest.md @@ -0,0 +1,12 @@ +# SetNetworkIdRoutingPolicyRequest + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**routingPolicy** | [**NetworkIdRoutingPolicy**](NetworkIdRoutingPolicy.md) | | [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SmartTransferCreateTicket.md b/docs/models/SmartTransferCreateTicket.md new file mode 100644 index 0000000..d3cb9e6 --- /dev/null +++ b/docs/models/SmartTransferCreateTicket.md @@ -0,0 +1,25 @@ +# SmartTransferCreateTicket + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**createdByNetworkId** | **string** | | [default to undefined]| +|**type** | **string** | | [default to undefined]| +|**expiresIn** | **number** | Number of hours after which an OPEN ticket will expire if no term is funded. | [optional] [default to undefined]| +|**terms** | [**Array<SmartTransferCreateTicketTerm>**](SmartTransferCreateTicketTerm.md) | | [optional] [default to undefined]| +|**externalRefId** | **string** | | [optional] [default to undefined]| +|**note** | **string** | | [optional] [default to undefined]| +|**submit** | **boolean** | | [optional] [default to undefined]| + + +## Enum: SmartTransferCreateTicketTypeEnum + + +* `Async` (value: `'ASYNC'`) + + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SmartTransferCreateTicketTerm.md b/docs/models/SmartTransferCreateTicketTerm.md new file mode 100644 index 0000000..58f4e68 --- /dev/null +++ b/docs/models/SmartTransferCreateTicketTerm.md @@ -0,0 +1,15 @@ +# SmartTransferCreateTicketTerm + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**asset** | **string** | Asset name | [default to undefined]| +|**amount** | **number** | Amount | [default to undefined]| +|**fromNetworkId** | **string** | Identifier of the origination Network Profile | [default to undefined]| +|**toNetworkId** | **string** | Identifier of the destination Network Profile | [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SmartTransferFundTerm.md b/docs/models/SmartTransferFundTerm.md new file mode 100644 index 0000000..122be93 --- /dev/null +++ b/docs/models/SmartTransferFundTerm.md @@ -0,0 +1,18 @@ +# SmartTransferFundTerm + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**asset** | **string** | Asset name | [default to undefined]| +|**amount** | **string** | Amount | [default to undefined]| +|**networkConnectionId** | **string** | Id of the network connection used. | [default to undefined]| +|**srcId** | **string** | Id of the vault that is used as the source of the asset. | [default to undefined]| +|**srcType** | **string** | Source of the asset. | [default to undefined]| +|**fee** | **string** | Transaction fee | [optional] [default to undefined]| +|**feeLevel** | **string** | Transaction fee level. | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SmartTransferManuallyFundTerm.md b/docs/models/SmartTransferManuallyFundTerm.md new file mode 100644 index 0000000..3055fa2 --- /dev/null +++ b/docs/models/SmartTransferManuallyFundTerm.md @@ -0,0 +1,12 @@ +# SmartTransferManuallyFundTerm + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**txHash** | **string** | | [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SmartTransferSetTicketExpiration.md b/docs/models/SmartTransferSetTicketExpiration.md new file mode 100644 index 0000000..8812367 --- /dev/null +++ b/docs/models/SmartTransferSetTicketExpiration.md @@ -0,0 +1,12 @@ +# SmartTransferSetTicketExpiration + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**expiresIn** | **number** | Sets ticket expiration time (in hours) after a ticket is submitted. If no funding source is set to any term, the ticket will automatically expire after given time. | [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SmartTransferSetTicketExternalId.md b/docs/models/SmartTransferSetTicketExternalId.md new file mode 100644 index 0000000..03cf06f --- /dev/null +++ b/docs/models/SmartTransferSetTicketExternalId.md @@ -0,0 +1,12 @@ +# SmartTransferSetTicketExternalId + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**externalRefId** | **string** | Each workspace can set their own external id they want to refer to this Ticket | [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SmartTransferSetUserGroups.md b/docs/models/SmartTransferSetUserGroups.md new file mode 100644 index 0000000..ea53d12 --- /dev/null +++ b/docs/models/SmartTransferSetUserGroups.md @@ -0,0 +1,12 @@ +# SmartTransferSetUserGroups + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**userGroupIds** | **Array<string>** | | [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SmartTransferSubmitTicket.md b/docs/models/SmartTransferSubmitTicket.md new file mode 100644 index 0000000..7525698 --- /dev/null +++ b/docs/models/SmartTransferSubmitTicket.md @@ -0,0 +1,12 @@ +# SmartTransferSubmitTicket + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**expiresIn** | **number** | Sets the ticket expiration time (in hours) after the ticket is submitted. If no funding source is set for any term, the ticket will automatically expire after given time. | [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SmartTransferTicket.md b/docs/models/SmartTransferTicket.md new file mode 100644 index 0000000..5f12782 --- /dev/null +++ b/docs/models/SmartTransferTicket.md @@ -0,0 +1,70 @@ +# SmartTransferTicket + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**id** | **string** | Unique id of Smart Transfer ticket | [default to undefined]| +|**type** | **string** | Kind of Smart Transfer. Can be either `ASYNC` or `ATOMIC` | [default to undefined]| +|**status** | **string** | Current status of Smart Transfer ticket | [default to undefined]| +|**createdByNetworkId** | **string** | ID of network profile that created ticket | [default to undefined]| +|**createdByNetworkIdName** | **string** | Name of network profile that created ticket | [default to undefined]| +|**createdAt** | **string** | Date and time at which the ticket is created. | [default to undefined]| +|**updatedAt** | **string** | Date and time of last ticket update. | [default to undefined]| +|**direction** | **string** | Direction of Smart Transfer. | [optional] [default to undefined]| +|**terms** | [**Array<SmartTransferTicketTerm>**](SmartTransferTicketTerm.md) | Ticket terms (legs) | [optional] [default to undefined]| +|**expiresIn** | **number** | Number of hours for expiration.This data is valid only it ticket not in DRAFT state and it will be used to calculate expiresAt value | [optional] [default to undefined]| +|**expiresAt** | **string** | Date and time at which the ticket will expire if no funding is performed. | [optional] [default to undefined]| +|**submittedAt** | **string** | Date and time when ticket is submitted. | [optional] [default to undefined]| +|**expiredAt** | **string** | Date and time when ticket is expired. | [optional] [default to undefined]| +|**canceledAt** | **string** | Date and time when ticket is canceled. | [optional] [default to undefined]| +|**fulfilledAt** | **string** | Date and time when ticket is fulfilled. | [optional] [default to undefined]| +|**externalRefId** | **string** | External Ref ID for Smart Transfer ticket. | [optional] [default to undefined]| +|**note** | **string** | Note | [optional] [default to undefined]| +|**canceledByNetworkIdName** | **string** | Name of network profile that canceled ticket | [optional] [default to undefined]| +|**canceledByMe** | **boolean** | | [optional] [default to undefined]| +|**createdByMe** | **boolean** | | [optional] [default to undefined]| + + +## Enum: SmartTransferTicketTypeEnum + + +* `Async` (value: `'ASYNC'`) + + + +## Enum: SmartTransferTicketStatusEnum + + +* `Draft` (value: `'DRAFT'`) + +* `PendingApproval` (value: `'PENDING_APPROVAL'`) + +* `Open` (value: `'OPEN'`) + +* `InSettlement` (value: `'IN_SETTLEMENT'`) + +* `Fulfilled` (value: `'FULFILLED'`) + +* `Expired` (value: `'EXPIRED'`) + +* `Canceled` (value: `'CANCELED'`) + + + +## Enum: SmartTransferTicketDirectionEnum + + +* `Exchange` (value: `'EXCHANGE'`) + +* `Send` (value: `'SEND'`) + +* `Receive` (value: `'RECEIVE'`) + +* `Intermediate` (value: `'INTERMEDIATE'`) + + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SmartTransferTicketFilteredResponse.md b/docs/models/SmartTransferTicketFilteredResponse.md new file mode 100644 index 0000000..80ad6ce --- /dev/null +++ b/docs/models/SmartTransferTicketFilteredResponse.md @@ -0,0 +1,14 @@ +# SmartTransferTicketFilteredResponse + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**message** | **string** | Result message | [default to undefined]| +|**after** | **string** | Unique id of next filtered result | [default to undefined]| +|**data** | [**Array<SmartTransferTicket>**](SmartTransferTicket.md) | Result that match given query criteria | [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SmartTransferTicketResponse.md b/docs/models/SmartTransferTicketResponse.md new file mode 100644 index 0000000..bb6a721 --- /dev/null +++ b/docs/models/SmartTransferTicketResponse.md @@ -0,0 +1,13 @@ +# SmartTransferTicketResponse + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**message** | **string** | Result message | [default to undefined]| +|**data** | [**SmartTransferTicket**](SmartTransferTicket.md) | | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SmartTransferTicketTerm.md b/docs/models/SmartTransferTicketTerm.md new file mode 100644 index 0000000..d673c73 --- /dev/null +++ b/docs/models/SmartTransferTicketTerm.md @@ -0,0 +1,78 @@ +# SmartTransferTicketTerm + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**id** | **string** | Unique id of Smart Transfer ticket term | [default to undefined]| +|**ticketId** | **string** | Unique id of Smart Transfer ticket | [default to undefined]| +|**asset** | **string** | Asset name | [default to undefined]| +|**amount** | **string** | Amount | [default to undefined]| +|**fromNetworkId** | **string** | Identifier of the origination Network Profile | [default to undefined]| +|**fromNetworkIdName** | **string** | Source network name | [default to undefined]| +|**toNetworkId** | **string** | Identifier of the destination Network Profile | [default to undefined]| +|**toNetworkIdName** | **string** | Destination network name | [default to undefined]| +|**txHash** | **string** | Blockchain TX hash | [default to undefined]| +|**fbTxId** | **string** | Fireblocks transaction ID. It is set when the funding transaction is created. | [default to undefined]| +|**txStatus** | **string** | Ticket term transaction status | [default to undefined]| +|**status** | **string** | Ticket term status | [default to undefined]| +|**createdAt** | **string** | Date and time when the term is created. | [default to undefined]| +|**updatedAt** | **string** | Date and time of last term update. | [default to undefined]| +|**amountUsd** | **string** | Amount USD | [optional] [default to undefined]| + + +## Enum: SmartTransferTicketTermTxStatusEnum + + +* `Queued` (value: `'queued'`) + +* `Submitted` (value: `'submitted'`) + +* `PendingSignature` (value: `'pendingSignature'`) + +* `PendingAuthorization` (value: `'pendingAuthorization'`) + +* `Broadcasting` (value: `'broadcasting'`) + +* `Confirming` (value: `'confirming'`) + +* `PendingAmlScreening` (value: `'pendingAmlScreening'`) + +* `Completed` (value: `'completed'`) + +* `Cancelled` (value: `'cancelled'`) + +* `Failed` (value: `'failed'`) + +* `Rejected` (value: `'rejected'`) + +* `Blocked` (value: `'blocked'`) + +* `ThirdPartyPendingManualApproval` (value: `'thirdPartyPendingManualApproval'`) + +* `ThirdPartyPending` (value: `'thirdPartyPending'`) + +* `PartiallyCompleted` (value: `'partiallyCompleted'`) + +* `Cancelling` (value: `'cancelling'`) + + + +## Enum: SmartTransferTicketTermStatusEnum + + +* `Created` (value: `'CREATED'`) + +* `Funding` (value: `'FUNDING'`) + +* `FundingFailed` (value: `'FUNDING_FAILED'`) + +* `Funded` (value: `'FUNDED'`) + +* `Rejected` (value: `'REJECTED'`) + + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SmartTransferTicketTermResponse.md b/docs/models/SmartTransferTicketTermResponse.md new file mode 100644 index 0000000..a9dabce --- /dev/null +++ b/docs/models/SmartTransferTicketTermResponse.md @@ -0,0 +1,13 @@ +# SmartTransferTicketTermResponse + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**message** | **string** | Result message | [default to undefined]| +|**data** | [**SmartTransferTicketTerm**](SmartTransferTicketTerm.md) | | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SmartTransferUpdateTicketTerm.md b/docs/models/SmartTransferUpdateTicketTerm.md new file mode 100644 index 0000000..e3d6dc0 --- /dev/null +++ b/docs/models/SmartTransferUpdateTicketTerm.md @@ -0,0 +1,15 @@ +# SmartTransferUpdateTicketTerm + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**asset** | **string** | Asset name | [default to undefined]| +|**amount** | **number** | Amount | [default to undefined]| +|**fromNetworkId** | **string** | Identifier of the origination Network Profile | [default to undefined]| +|**toNetworkId** | **string** | Identifier of the destination Network Profile | [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SmartTransferUserGroups.md b/docs/models/SmartTransferUserGroups.md new file mode 100644 index 0000000..345b2fa --- /dev/null +++ b/docs/models/SmartTransferUserGroups.md @@ -0,0 +1,12 @@ +# SmartTransferUserGroups + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**userGroupIds** | **Array<string>** | Data object with result data | [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SmartTransferUserGroupsResponse.md b/docs/models/SmartTransferUserGroupsResponse.md new file mode 100644 index 0000000..7aae353 --- /dev/null +++ b/docs/models/SmartTransferUserGroupsResponse.md @@ -0,0 +1,13 @@ +# SmartTransferUserGroupsResponse + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**message** | **string** | Result message | [default to undefined]| +|**data** | [**SmartTransferUserGroups**](SmartTransferUserGroups.md) | | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/SourceTransferPeerPathResponse.md b/docs/models/SourceTransferPeerPathResponse.md index 6b6a8a4..e408047 100644 --- a/docs/models/SourceTransferPeerPathResponse.md +++ b/docs/models/SourceTransferPeerPathResponse.md @@ -4,7 +4,7 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| -|**type** | **string** | | [default to undefined]| +|**type** | [**TransferPeerPathType**](TransferPeerPathType.md) | | [default to undefined]| |**subType** | **string** | In case the type is set to `EXCHANGE_ACCOUNT` or `FIAT_ACCOUNT`, the specific exchange vendor name or fiat vendor name. In case the type is set to `INTERNAL_WALLET` or `EXTERNAL_WALLET`, the subType is set to `Internal` or `External`. | [optional] [default to undefined]| |**id** | **string** | The ID of the peer. You can retrieve the ID of each venue object using the endpoints for [listing vault accounts](https://developers.fireblocks.com/reference/get_vault-accounts-paged), [listing exchange account](https://developers.fireblocks.com/reference/get_exchange-accounts), [listing fiat accounts](https://developers.fireblocks.com/reference/get_fiat-accounts), [listing internal wallets](https://developers.fireblocks.com/reference/get_internal-wallets), [listing external wallets](https://developers.fireblocks.com/reference/get_external-wallets), [listing network connections](https://developers.fireblocks.com/reference/get_network-connections). For the other types, this parameter is not needed. | [optional] [default to undefined]| |**name** | **string** | The name of the peer. | [optional] [default to undefined]| diff --git a/docs/models/ThirdPartyRouting.md b/docs/models/ThirdPartyRouting.md new file mode 100644 index 0000000..b2c3d33 --- /dev/null +++ b/docs/models/ThirdPartyRouting.md @@ -0,0 +1,13 @@ +# ThirdPartyRouting + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**isThirdPartyRouting** | **boolean** | | [optional] [default to undefined]| +|**description** | **string** | | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/TransactionFee.md b/docs/models/TransactionFee.md index af0ea70..9194f7e 100644 --- a/docs/models/TransactionFee.md +++ b/docs/models/TransactionFee.md @@ -5,11 +5,11 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| |**feePerByte** | **string** | | [optional] [default to undefined]| -|**gasPrice** | **string** | | [optional] [default to undefined]| +|**gasPrice** | **number** | | [optional] [default to undefined]| |**gasLimit** | **string** | | [optional] [default to undefined]| |**networkFee** | **string** | | [optional] [default to undefined]| -|**baseFee** | **string** | (optional) Base Fee according to EIP-1559 (ETH assets) | [optional] [default to undefined]| -|**priorityFee** | **string** | (optional) Priority Fee according to EIP-1559 (ETH assets) | [optional] [default to undefined]| +|**baseFee** | **number** | (optional) Base Fee according to EIP-1559 (ETH assets) | [optional] [default to undefined]| +|**priorityFee** | **number** | (optional) Priority Fee according to EIP-1559 (ETH assets) | [optional] [default to undefined]| diff --git a/docs/models/TransactionResponse.md b/docs/models/TransactionResponse.md index 0fe0ee3..93f0661 100644 --- a/docs/models/TransactionResponse.md +++ b/docs/models/TransactionResponse.md @@ -35,8 +35,9 @@ |**exchangeTxId** | **string** | If the transaction originated from an exchange, this is the ID of this transaction at the exchange. | [optional] [default to undefined]| |**customerRefId** | **string** | The ID for AML providers to associate the owner of funds with transactions. | [optional] [default to undefined]| |**amlScreeningResult** | [**AmlScreeningResult**](AmlScreeningResult.md) | | [optional] [default to undefined]| +|**complianceResult** | [**ComplianceResult**](ComplianceResult.md) | | [optional] [default to undefined]| |**extraParameters** | **object** | Additional protocol / operation specific key-value parameters: For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. | [optional] [default to undefined]| -|**signedMessages** | [**SignedMessage**](SignedMessage.md) | | [optional] [default to undefined]| +|**signedMessages** | [**Array<SignedMessage>**](SignedMessage.md) | | [optional] [default to undefined]| |**numOfConfirmations** | **number** | The number of confirmations of the transaction. The number will increase until the transaction will be considered completed according to the confirmation policy. | [optional] [default to undefined]| |**blockInfo** | [**BlockInfo**](BlockInfo.md) | | [optional] [default to undefined]| |**index** | **number** | For UTXO based assets this is the vOut, for Ethereum based, this is the index of the event of the contract call. **Note:** This field is not returned if a transaction uses the `destinations` object with more than one value. | [optional] [default to undefined]| @@ -55,6 +56,8 @@ ## Enum: TransactionResponseAddressTypeEnum +* `Empty` (value: `''`) + * `Whitelisted` (value: `'WHITELISTED'`) * `OneTime` (value: `'ONE_TIME'`) diff --git a/docs/models/TransferPeerPath.md b/docs/models/TransferPeerPath.md index f17e16b..d088310 100644 --- a/docs/models/TransferPeerPath.md +++ b/docs/models/TransferPeerPath.md @@ -4,42 +4,13 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| -|**type** | **string** | | [default to undefined]| +|**type** | [**TransferPeerPathType**](TransferPeerPathType.md) | | [default to undefined]| |**subType** | **string** | | [optional] [default to undefined]| |**id** | **string** | | [optional] [default to undefined]| |**name** | **string** | | [optional] [default to undefined]| |**walletId** | **string** | | [optional] [default to undefined]| -## Enum: TransferPeerPathTypeEnum - - -* `VaultAccount` (value: `'VAULT_ACCOUNT'`) - -* `ExchangeAccount` (value: `'EXCHANGE_ACCOUNT'`) - -* `InternalWallet` (value: `'INTERNAL_WALLET'`) - -* `ExternalWallet` (value: `'EXTERNAL_WALLET'`) - -* `Contract` (value: `'CONTRACT'`) - -* `NetworkConnection` (value: `'NETWORK_CONNECTION'`) - -* `FiatAccount` (value: `'FIAT_ACCOUNT'`) - -* `Compound` (value: `'COMPOUND'`) - -* `GasStation` (value: `'GAS_STATION'`) - -* `OneTimeAddress` (value: `'ONE_TIME_ADDRESS'`) - -* `Unknown` (value: `'UNKNOWN'`) - -* `EndUserWallet` (value: `'END_USER_WALLET'`) - - - ## Enum: TransferPeerPathSubTypeEnum diff --git a/docs/models/TransferPeerPathType.md b/docs/models/TransferPeerPathType.md new file mode 100644 index 0000000..d210563 --- /dev/null +++ b/docs/models/TransferPeerPathType.md @@ -0,0 +1,32 @@ +# TransferPeerPathType + +## Enum + + +* `VaultAccount` (value: `'VAULT_ACCOUNT'`) + +* `ExchangeAccount` (value: `'EXCHANGE_ACCOUNT'`) + +* `InternalWallet` (value: `'INTERNAL_WALLET'`) + +* `ExternalWallet` (value: `'EXTERNAL_WALLET'`) + +* `Contract` (value: `'CONTRACT'`) + +* `NetworkConnection` (value: `'NETWORK_CONNECTION'`) + +* `FiatAccount` (value: `'FIAT_ACCOUNT'`) + +* `Compound` (value: `'COMPOUND'`) + +* `GasStation` (value: `'GAS_STATION'`) + +* `OneTimeAddress` (value: `'ONE_TIME_ADDRESS'`) + +* `Unknown` (value: `'UNKNOWN'`) + +* `EndUserWallet` (value: `'END_USER_WALLET'`) + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/TravelRuleCreateTransactionRequest.md b/docs/models/TravelRuleCreateTransactionRequest.md index 3f81f70..478b964 100644 --- a/docs/models/TravelRuleCreateTransactionRequest.md +++ b/docs/models/TravelRuleCreateTransactionRequest.md @@ -4,10 +4,10 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| -|**originatorVASPdid** | **string** | The VASP ID of the transaction originator | [default to undefined]| -|**beneficiaryVASPdid** | **string** | The VASP ID of the transaction beneficiary | [default to undefined]| |**originator** | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | | [default to undefined]| |**beneficiary** | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | | [default to undefined]| +|**originatorVASPdid** | **string** | The VASP ID of the transaction originator | [optional] [default to undefined]| +|**beneficiaryVASPdid** | **string** | The VASP ID of the transaction beneficiary | [optional] [default to undefined]| |**beneficiaryVASPname** | **string** | The name of the VASP acting as the beneficiary | [optional] [default to undefined]| |**transactionBlockchainInfo** | [**TravelRuleTransactionBlockchainInfo**](TravelRuleTransactionBlockchainInfo.md) | | [optional] [default to undefined]| |**encrypted** | **string** | Encrypted data related to the transaction | [optional] [default to undefined]| diff --git a/docs/models/TravelRuleOwnershipProof.md b/docs/models/TravelRuleOwnershipProof.md index b823d30..0f830b4 100644 --- a/docs/models/TravelRuleOwnershipProof.md +++ b/docs/models/TravelRuleOwnershipProof.md @@ -4,12 +4,8 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| -|**type** | **string** | Type of ownership proof | [default to undefined]| -|**id** | **string** | Identification number | [default to undefined]| -|**name** | **string** | Name of owner | [default to undefined]| -|**country** | **string** | Country of issuance | [default to undefined]| -|**issueDate** | **string** | Date of issuance | [default to undefined]| -|**issuer** | **string** | Name of issuing entity | [default to undefined]| +|**type** | **string** | Type of ownership proof | [optional] [default to undefined]| +|**proof** | **string** | Identification number | [optional] [default to undefined]| diff --git a/docs/models/TravelRuleTransactionBlockchainInfo.md b/docs/models/TravelRuleTransactionBlockchainInfo.md index 715ee6d..7019482 100644 --- a/docs/models/TravelRuleTransactionBlockchainInfo.md +++ b/docs/models/TravelRuleTransactionBlockchainInfo.md @@ -4,9 +4,9 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| -|**txHash** | **string** | | [default to undefined]| -|**origin** | **string** | | [default to undefined]| -|**destination** | **string** | | [default to undefined]| +|**txHash** | **string** | | [optional] [default to undefined]| +|**origin** | **string** | | [optional] [default to undefined]| +|**destination** | **string** | | [optional] [default to undefined]| diff --git a/docs/models/TravelRuleValidateFullTransactionRequest.md b/docs/models/TravelRuleValidateFullTransactionRequest.md index 9cbd2a1..deb2b29 100644 --- a/docs/models/TravelRuleValidateFullTransactionRequest.md +++ b/docs/models/TravelRuleValidateFullTransactionRequest.md @@ -4,16 +4,16 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| -|**transactionAsset** | **string** | The asset involved in the transaction | [default to undefined]| -|**transactionAmount** | **string** | The amount of the transaction | [default to undefined]| -|**originatorVASPdid** | **string** | The VASP ID of the transaction originator | [default to undefined]| -|**beneficiaryVASPdid** | **string** | The VASP ID of the transaction beneficiary | [default to undefined]| -|**transactionBlockchainInfo** | [**TravelRuleTransactionBlockchainInfo**](TravelRuleTransactionBlockchainInfo.md) | | [default to undefined]| |**originator** | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | | [default to undefined]| |**beneficiary** | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | | [default to undefined]| +|**transactionAsset** | **string** | The asset involved in the transaction | [optional] [default to undefined]| +|**transactionAmount** | **string** | The amount of the transaction | [optional] [default to undefined]| |**originatorDid** | **string** | The DID of the transaction originator | [optional] [default to undefined]| |**beneficiaryDid** | **string** | The DID of the transaction beneficiary | [optional] [default to undefined]| +|**originatorVASPdid** | **string** | The VASP ID of the transaction originator | [optional] [default to undefined]| +|**beneficiaryVASPdid** | **string** | The VASP ID of the transaction beneficiary | [optional] [default to undefined]| |**beneficiaryVASPname** | **string** | The name of the VASP acting as the beneficiary | [optional] [default to undefined]| +|**transactionBlockchainInfo** | [**TravelRuleTransactionBlockchainInfo**](TravelRuleTransactionBlockchainInfo.md) | | [optional] [default to undefined]| |**encrypted** | **string** | Encrypted data related to the transaction | [optional] [default to undefined]| |**protocol** | **string** | The protocol used to perform the travel rule | [optional] [default to undefined]| |**notificationEmail** | **string** | The email address where a notification should be sent upon completion of the travel rule | [optional] [default to undefined]| diff --git a/error/fireblocksError.ts b/error/fireblocksError.ts index eaf3629..b0670f7 100644 --- a/error/fireblocksError.ts +++ b/error/fireblocksError.ts @@ -13,11 +13,14 @@ import { isAxiosError } from "axios"; import { convertToFireblocksResponse, FireblocksResponse } from "../response/fireblocksResponse"; -export class FireblocksError extends Error { +export class FireblocksError { + public readonly message: string; public readonly response?: FireblocksResponse; - constructor(message: string, response?: FireblocksResponse) { - super(message); + public readonly request?: any; + constructor(message: string, response?: FireblocksResponse, request?: any) { + this.message = message; this.response = response; + this.request = request; } } @@ -25,7 +28,7 @@ export function handleError(error: any) { if (isAxiosError(error)) { const errorMessage = error.response?.data.message || error.message || "No response from server"; const response = error.response ? convertToFireblocksResponse(error.response) : undefined; - return new FireblocksError(errorMessage, response); + return new FireblocksError(errorMessage, response, error.request); } return error; } diff --git a/index.ts b/index.ts index 48c2b8e..2f33cc6 100644 --- a/index.ts +++ b/index.ts @@ -11,7 +11,7 @@ */ -export { ConfigurationOptions, AdditionalOptions, BaseServerPathEnum } from "./client/clientConfiguration" +export { ConfigurationOptions, AdditionalOptions, BasePath } from "./client/clientConfiguration" export { Fireblocks } from "./client/client" export { FireblocksResponse } from "./response/fireblocksResponse" export { FireblocksError } from "./error/fireblocksError" diff --git a/models/aml-registration-result.ts b/models/aml-registration-result.ts new file mode 100644 index 0000000..1e30ac9 --- /dev/null +++ b/models/aml-registration-result.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface AmlRegistrationResult + */ +export interface AmlRegistrationResult { + /** + * + * @type {string} + * @memberof AmlRegistrationResult + */ + 'provider'?: string; + /** + * + * @type {boolean} + * @memberof AmlRegistrationResult + */ + 'success'?: boolean; + /** + * + * @type {number} + * @memberof AmlRegistrationResult + */ + 'timestamp'?: number; +} + diff --git a/models/block-info.ts b/models/block-info.ts index 0282f6e..99d9fd5 100644 --- a/models/block-info.ts +++ b/models/block-info.ts @@ -31,6 +31,6 @@ export interface BlockInfo { * @type {string} * @memberof BlockInfo */ - 'blockHash'?: string; + 'blockHash'?: string | null; } diff --git a/models/compliance-result.ts b/models/compliance-result.ts new file mode 100644 index 0000000..d813aab --- /dev/null +++ b/models/compliance-result.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AmlRegistrationResult } from './aml-registration-result'; +// May contain unused imports in some cases +// @ts-ignore +import { ComplianceScreeningResult } from './compliance-screening-result'; + +/** + * The result of the Compliance AML/Travel Rule screening. + * @export + * @interface ComplianceResult + */ +export interface ComplianceResult { + /** + * The end result of the AML screening. + * @type {Array} + * @memberof ComplianceResult + */ + 'aml'?: Array; + /** + * The result of the Travel Rule screening. + * @type {Array} + * @memberof ComplianceResult + */ + 'tr'?: Array; + /** + * The list of all results of the AML screening. + * @type {Array} + * @memberof ComplianceResult + */ + 'amlList'?: Array; + /** + * Status of compliance result screening. + * @type {string} + * @memberof ComplianceResult + */ + 'status'?: ComplianceResultStatusEnum; + /** + * The results of the AML address registration. + * @type {Array} + * @memberof ComplianceResult + */ + 'amlRegistration'?: Array; +} + +export const ComplianceResultStatusEnum = { + Started: 'Started', + AmlStarted: 'AMLStarted', + AmlCompleted: 'AMLCompleted', + AmlFailed: 'AMLFailed', + AmlinBackground: 'AMLInBackground', + TrStarted: 'TRStarted', + TrCompleted: 'TRCompleted', + TrFailed: 'TRFailed', + Completed: 'Completed', + RegistrationStarted: 'RegistrationStarted', + AmlRegistrationStarted: 'AMLRegistrationStarted', + AmlRegistrationCompleted: 'AMLRegistrationCompleted', + TrUpdateStarted: 'TRUpdateStarted', + TrUpdateCompleted: 'TRUpdateCompleted', + UpdateCompleted: 'UpdateCompleted', + IncomingStarted: 'IncomingStarted', + AmlIncomingStarted: 'AMLIncomingStarted', + AmlIncomingCompleted: 'AMLIncomingCompleted', + AmlIncomingFailed: 'AMLIncomingFailed', + AmlIncomingInBackground: 'AMLIncomingInBackground', + TrIncomingStarted: 'TRIncomingStarted', + TrIncomingCompleted: 'TRIncomingCompleted', + TrIncomingFailed: 'TRIncomingFailed', + IncomingCompleted: 'IncomingCompleted' +} as const; + +export type ComplianceResultStatusEnum = typeof ComplianceResultStatusEnum[keyof typeof ComplianceResultStatusEnum]; + + diff --git a/models/compliance-screening-result.ts b/models/compliance-screening-result.ts new file mode 100644 index 0000000..8c8a0a9 --- /dev/null +++ b/models/compliance-screening-result.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface ComplianceScreeningResult + */ +export interface ComplianceScreeningResult { + /** + * + * @type {string} + * @memberof ComplianceScreeningResult + */ + 'provider'?: string; + /** + * The payload of the screening result. The payload is a JSON object that contains the screening result. The payload is different for each screening provider. + * @type {object} + * @memberof ComplianceScreeningResult + */ + 'payload'?: object; + /** + * + * @type {string} + * @memberof ComplianceScreeningResult + */ + 'bypassReason'?: string; + /** + * + * @type {string} + * @memberof ComplianceScreeningResult + */ + 'screeningStatus'?: ComplianceScreeningResultScreeningStatusEnum; + /** + * + * @type {number} + * @memberof ComplianceScreeningResult + */ + 'timestamp'?: number; +} + +export const ComplianceScreeningResultScreeningStatusEnum = { + Completed: 'COMPLETED', + Pending: 'PENDING', + Bypassed: 'BYPASSED', + Failed: 'FAILED', + Frozen: 'FROZEN' +} as const; + +export type ComplianceScreeningResultScreeningStatusEnum = typeof ComplianceScreeningResultScreeningStatusEnum[keyof typeof ComplianceScreeningResultScreeningStatusEnum]; + + diff --git a/models/create-address-request.ts b/models/create-address-request.ts new file mode 100644 index 0000000..adf06ad --- /dev/null +++ b/models/create-address-request.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface CreateAddressRequest + */ +export interface CreateAddressRequest { + /** + * (Optional) Attach a description to the new address + * @type {string} + * @memberof CreateAddressRequest + */ + 'description'?: string; + /** + * Optional - Sets a customer reference ID + * @type {string} + * @memberof CreateAddressRequest + */ + 'customerRefId'?: string; +} + diff --git a/models/create-assets-bulk-request.ts b/models/create-assets-bulk-request.ts new file mode 100644 index 0000000..09ff8b6 --- /dev/null +++ b/models/create-assets-bulk-request.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface CreateAssetsBulkRequest + */ +export interface CreateAssetsBulkRequest { + /** + * The ID of the new asset + * @type {string} + * @memberof CreateAssetsBulkRequest + */ + 'assetId'?: string; + /** + * The smallest vault account ID in the range + * @type {string} + * @memberof CreateAssetsBulkRequest + */ + 'vaultAccountIdFrom'?: string; + /** + * The largest vault account ID in the range + * @type {string} + * @memberof CreateAssetsBulkRequest + */ + 'vaultAccountIdTo'?: string; +} + diff --git a/models/create-assets-request.ts b/models/create-assets-request.ts new file mode 100644 index 0000000..b810d2d --- /dev/null +++ b/models/create-assets-request.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface CreateAssetsRequest + */ +export interface CreateAssetsRequest { + /** + * Optional - when creating an EOS wallet, the account name. If not provided, a random name will be generated + * @type {string} + * @memberof CreateAssetsRequest + */ + 'eosAccountName'?: string; +} + diff --git a/models/create-wallet-request.ts b/models/create-wallet-request.ts new file mode 100644 index 0000000..d1c70bb --- /dev/null +++ b/models/create-wallet-request.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface CreateWalletRequest + */ +export interface CreateWalletRequest { + /** + * the wallet\'s display name + * @type {string} + * @memberof CreateWalletRequest + */ + 'name'?: string; + /** + * Optional - Sets a customer reference ID + * @type {string} + * @memberof CreateWalletRequest + */ + 'customerRefId'?: string; +} + diff --git a/models/destination-transfer-peer-path-response.ts b/models/destination-transfer-peer-path-response.ts index beb1bb0..9fab5b2 100644 --- a/models/destination-transfer-peer-path-response.ts +++ b/models/destination-transfer-peer-path-response.ts @@ -15,12 +15,45 @@ // May contain unused imports in some cases // @ts-ignore -import { TransferPeerPath } from './transfer-peer-path'; +import { TransferPeerPathType } from './transfer-peer-path-type'; /** - * @type DestinationTransferPeerPathResponse + * Destination of the transaction. **Note:** In case the transaction is sent to multiple destinations, the `destinations` parameter is be used instead of this. * @export + * @interface DestinationTransferPeerPathResponse */ -export type DestinationTransferPeerPathResponse = TransferPeerPath; +export interface DestinationTransferPeerPathResponse { + /** + * + * @type {TransferPeerPathType} + * @memberof DestinationTransferPeerPathResponse + */ + 'type': TransferPeerPathType; + /** + * In case the type is set to `EXCHANGE_ACCOUNT` or `FIAT_ACCOUNT`, the specific exchange vendor name or fiat vendor name.In case the type is set to `INTERNAL_WALLET` or `EXTERNAL_WALLET`, the subType is set to `Internal` or `External`. + * @type {string} + * @memberof DestinationTransferPeerPathResponse + */ + 'subType'?: string; + /** + * The ID of the peer. You can retrieve the ID of each venue object using the endpoints for [listing vault accounts](https://developers.fireblocks.com/reference/get_vault-accounts-paged), [listing exchange account](https://developers.fireblocks.com/reference/get_exchange-accounts), [listing fiat accounts](https://developers.fireblocks.com/reference/get_fiat-accounts), [listing internal wallets](https://developers.fireblocks.com/reference/get_internal-wallets), [listing external wallets](https://developers.fireblocks.com/reference/get_external-wallets), [listing network connections](https://developers.fireblocks.com/reference/get_network-connections). For the other types, this parameter is not needed. + * @type {string} + * @memberof DestinationTransferPeerPathResponse + */ + 'id'?: string | null; + /** + * The name of the peer. + * @type {string} + * @memberof DestinationTransferPeerPathResponse + */ + 'name'?: string; + /** + * + * @type {string} + * @memberof DestinationTransferPeerPathResponse + */ + 'walletId'?: string; +} + diff --git a/models/destination-transfer-peer-path.ts b/models/destination-transfer-peer-path.ts index 597e092..7cae86f 100644 --- a/models/destination-transfer-peer-path.ts +++ b/models/destination-transfer-peer-path.ts @@ -19,6 +19,9 @@ import { OneTimeAddress } from './one-time-address'; // May contain unused imports in some cases // @ts-ignore import { TransferPeerPath } from './transfer-peer-path'; +// May contain unused imports in some cases +// @ts-ignore +import { TransferPeerPathType } from './transfer-peer-path-type'; /** * @type DestinationTransferPeerPath diff --git a/models/execute-action-response.ts b/models/execute-action-response.ts new file mode 100644 index 0000000..5460228 --- /dev/null +++ b/models/execute-action-response.ts @@ -0,0 +1,26 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { StakeResponseDto } from './stake-response-dto'; + +/** + * @type ExecuteActionResponse + * @export + */ +export type ExecuteActionResponse = StakeResponseDto | object; + + diff --git a/models/funds.ts b/models/funds.ts new file mode 100644 index 0000000..7206505 --- /dev/null +++ b/models/funds.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface Funds + */ +export interface Funds { + /** + * + * @type {number} + * @memberof Funds + */ + 'amount'?: number; +} + diff --git a/models/index.ts b/models/index.ts index 3f1e260..b817df1 100644 --- a/models/index.ts +++ b/models/index.ts @@ -8,6 +8,7 @@ export * from './add-asset-to-external-wallet-request-one-of1-additional-info-on export * from './add-collateral-request-body'; export * from './add-contract-asset-request'; export * from './additional-info-dto'; +export * from './aml-registration-result'; export * from './aml-screening-result'; export * from './amount-aggregation-time-period-method'; export * from './amount-and-chain-descriptor'; @@ -19,32 +20,32 @@ export * from './authorization-info'; export * from './block-info'; export * from './cancel-transaction-response'; export * from './chain-info-response-dto'; -export * from './check-third-party-routing200-response'; export * from './collection-ownership-response'; +export * from './compliance-result'; +export * from './compliance-screening-result'; export * from './config-change-request-status'; export * from './convert-assets-request'; export * from './create-apiuser'; +export * from './create-address-request'; export * from './create-address-response'; +export * from './create-assets-bulk-request'; +export * from './create-assets-request'; export * from './create-connection-request'; export * from './create-connection-response'; export * from './create-console-user'; export * from './create-contract-request'; export * from './create-internal-transfer-request'; export * from './create-internal-wallet-asset-request'; -export * from './create-internal-wallet-request'; export * from './create-multiple-accounts-request'; export * from './create-ncw-connection-request'; export * from './create-network-id-request'; export * from './create-payout-request'; export * from './create-request'; -export * from './create-ticket201-response'; -export * from './create-ticket-term201-response'; export * from './create-transaction-response'; export * from './create-user-group-response'; -export * from './create-vault-account-asset-address-request'; -export * from './create-vault-account-asset-request'; export * from './create-vault-account-request'; export * from './create-vault-asset-response'; +export * from './create-wallet-request'; export * from './custom-crypto-routing-dest'; export * from './custom-fiat-routing-dest'; export * from './default-network-routing-dest'; @@ -69,25 +70,22 @@ export * from './exchange-asset'; export * from './exchange-settlement-transactions-response'; export * from './exchange-trading-account'; export * from './exchange-type'; -export * from './execute-action201-response'; export * from './execute-action-request'; +export * from './execute-action-response'; export * from './external-wallet-asset'; export * from './fee-info'; export * from './fiat-account'; export * from './fiat-account-type'; export * from './fiat-asset'; -export * from './find-ticket-by-id200-response'; -export * from './find-ticket-term-by-id200-response'; export * from './freeze-transaction-response'; +export * from './funds'; export * from './gas-station-configuration'; export * from './gas-station-properties-response'; -export * from './get-asset-balance-request'; export * from './get-audit-logs-response-dto'; export * from './get-connections-response'; export * from './get-filter-parameter'; export * from './get-ota-status200-response'; export * from './get-ownership-tokens200-response'; -export * from './get-smart-transfer-user-groups200-response'; export * from './get-transaction-operation'; export * from './get-users-response'; export * from './get-workspace-status200-response'; @@ -97,7 +95,6 @@ export * from './job-created'; export * from './list-owned-collections200-response'; export * from './list-owned-tokens200-response'; export * from './media-entity-response'; -export * from './ncw'; export * from './network-channel'; export * from './network-connection'; export * from './network-connection-response'; @@ -152,6 +149,7 @@ export * from './policy-rule-operators'; export * from './policy-rule-raw-message-signing'; export * from './policy-rule-raw-message-signing-derivation-path'; export * from './policy-rule-src'; +export * from './policy-rules'; export * from './policy-src-or-dest-sub-type'; export * from './policy-src-or-dest-type'; export * from './policy-status'; @@ -159,58 +157,56 @@ export * from './policy-validation'; export * from './provider-dto'; export * from './public-key-information'; export * from './publish-draft-request'; -export * from './publish-policy-rules-request'; export * from './publish-result'; -export * from './redeem-funds-to-linked-dda-request'; export * from './related-transaction-dto'; export * from './remove-collateral-request-body'; -export * from './request-options'; export * from './resend-transaction-webhooks-request'; export * from './resend-webhooks-response'; export * from './respond-to-connection-request'; export * from './reward-info'; export * from './rewards-info'; -export * from './search-tickets200-response'; +export * from './screening-configurations-request'; +export * from './screening-policy-response'; +export * from './screening-provider-rules-configuration-response'; +export * from './screening-update-configurations-request'; export * from './session-dto'; export * from './session-metadata'; export * from './set-admin-quorum-threshold-request'; -export * from './set-auto-fuel-for-vault-account-request'; +export * from './set-auto-fuel-request'; export * from './set-confirmations-threshold-request'; export * from './set-confirmations-threshold-response'; -export * from './set-customer-ref-id-for-vault-account-request'; -export * from './set-discoverability-for-network-id-request'; +export * from './set-customer-ref-id-for-address-request'; +export * from './set-customer-ref-id-request'; +export * from './set-network-id-discoverability-request'; export * from './set-network-id-name-request'; +export * from './set-network-id-response'; +export * from './set-network-id-routing-policy-request'; export * from './set-ota-status-request'; export * from './set-routing-policy200-response'; -export * from './set-routing-policy-for-network-id-request'; export * from './set-routing-policy-request'; -export * from './set-user-groups201-response'; export * from './settlement-request-body'; export * from './settlement-response'; export * from './signed-message'; export * from './signed-message-signature'; export * from './smart-transfer-bad-request-response'; -export * from './smart-transfer-create-ticket-dto'; -export * from './smart-transfer-create-ticket-term-dto'; +export * from './smart-transfer-create-ticket'; +export * from './smart-transfer-create-ticket-term'; export * from './smart-transfer-forbidden-response'; -export * from './smart-transfer-fund-term-dto'; -export * from './smart-transfer-manually-fund-term-dto'; +export * from './smart-transfer-fund-term'; +export * from './smart-transfer-manually-fund-term'; export * from './smart-transfer-not-found-response'; -export * from './smart-transfer-set-ticket-expiration-dto'; -export * from './smart-transfer-set-ticket-external-id-dto'; -export * from './smart-transfer-set-user-groups-dto'; -export * from './smart-transfer-submit-ticket-dto'; -export * from './smart-transfer-ticket-dto'; -export * from './smart-transfer-ticket-filtered-response-dto'; -export * from './smart-transfer-ticket-response-dto'; -export * from './smart-transfer-ticket-response-dto-data'; -export * from './smart-transfer-ticket-term-dto'; -export * from './smart-transfer-ticket-term-response-dto'; -export * from './smart-transfer-ticket-term-response-dto-data'; -export * from './smart-transfer-update-ticket-term-dto'; -export * from './smart-transfer-user-groups-dto'; -export * from './smart-transfer-user-groups-response-dto'; -export * from './smart-transfer-user-groups-response-dto-data'; +export * from './smart-transfer-set-ticket-expiration'; +export * from './smart-transfer-set-ticket-external-id'; +export * from './smart-transfer-set-user-groups'; +export * from './smart-transfer-submit-ticket'; +export * from './smart-transfer-ticket'; +export * from './smart-transfer-ticket-filtered-response'; +export * from './smart-transfer-ticket-response'; +export * from './smart-transfer-ticket-term'; +export * from './smart-transfer-ticket-term-response'; +export * from './smart-transfer-update-ticket-term'; +export * from './smart-transfer-user-groups'; +export * from './smart-transfer-user-groups-response'; export * from './solana-blockchain-data-dto'; export * from './source-transfer-peer-path-response'; export * from './spam-ownership-response'; @@ -220,6 +216,7 @@ export * from './stake-request-dto'; export * from './stake-response-dto'; export * from './system-message-info'; export * from './task'; +export * from './third-party-routing'; export * from './to-collateral-transaction'; export * from './to-exchange-transaction'; export * from './token-collection-response'; @@ -244,17 +241,15 @@ export * from './transaction-response'; export * from './transaction-response-contract-call-decoded-data'; export * from './transaction-response-destination'; export * from './transfer-peer-path'; +export * from './transfer-peer-path-type'; export * from './travel-rule-address'; -export * from './travel-rule-configurations-request'; export * from './travel-rule-create-transaction-request'; export * from './travel-rule-get-all-vasps-response'; export * from './travel-rule-issuer'; export * from './travel-rule-issuers'; export * from './travel-rule-ownership-proof'; export * from './travel-rule-pii-ivms'; -export * from './travel-rule-policy-response'; export * from './travel-rule-policy-rule-response'; -export * from './travel-rule-provider-rules-configuration-response'; export * from './travel-rule-transaction-blockchain-info'; export * from './travel-rule-update-vaspdetails'; export * from './travel-rule-vasp'; @@ -266,7 +261,6 @@ export * from './unmanaged-wallet'; export * from './unspent-input'; export * from './unspent-inputs-response'; export * from './unstake-request-dto'; -export * from './update-draft-request'; export * from './update-token-ownership-status-dto'; export * from './update-vault-account-asset-address-request'; export * from './update-vault-account-request'; diff --git a/models/policy-rules.ts b/models/policy-rules.ts new file mode 100644 index 0000000..05f7034 --- /dev/null +++ b/models/policy-rules.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PolicyRule } from './policy-rule'; + +/** + * + * @export + * @interface PolicyRules + */ +export interface PolicyRules { + /** + * Policy rules + * @type {Array} + * @memberof PolicyRules + */ + 'rules'?: Array; +} + diff --git a/models/screening-configurations-request.ts b/models/screening-configurations-request.ts new file mode 100644 index 0000000..0bd0d61 --- /dev/null +++ b/models/screening-configurations-request.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface ScreeningConfigurationsRequest + */ +export interface ScreeningConfigurationsRequest { + /** + * Flag to enable or disable bypass screening during service outages. + * @type {boolean} + * @memberof ScreeningConfigurationsRequest + */ + 'bypassScreeningDuringServiceOutages'?: boolean; + /** + * Inbound transaction delay in seconds. + * @type {number} + * @memberof ScreeningConfigurationsRequest + */ + 'inboundTransactionDelay'?: number; + /** + * Outbound transaction delay in seconds. + * @type {number} + * @memberof ScreeningConfigurationsRequest + */ + 'outboundTransactionDelay'?: number; +} + diff --git a/models/screening-policy-response.ts b/models/screening-policy-response.ts new file mode 100644 index 0000000..fbf27e5 --- /dev/null +++ b/models/screening-policy-response.ts @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { TravelRulePolicyRuleResponse } from './travel-rule-policy-rule-response'; + +/** + * + * @export + * @interface ScreeningPolicyResponse + */ +export interface ScreeningPolicyResponse { + /** + * + * @type {TravelRulePolicyRuleResponse} + * @memberof ScreeningPolicyResponse + */ + 'policy': TravelRulePolicyRuleResponse; + /** + * + * @type {boolean} + * @memberof ScreeningPolicyResponse + */ + 'isDefault': boolean; + /** + * + * @type {string} + * @memberof ScreeningPolicyResponse + */ + 'lastUpdate': string; + /** + * + * @type {string} + * @memberof ScreeningPolicyResponse + */ + 'policyStatus'?: string; + /** + * + * @type {string} + * @memberof ScreeningPolicyResponse + */ + 'createDate'?: string; +} + diff --git a/models/screening-provider-rules-configuration-response.ts b/models/screening-provider-rules-configuration-response.ts new file mode 100644 index 0000000..9397094 --- /dev/null +++ b/models/screening-provider-rules-configuration-response.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface ScreeningProviderRulesConfigurationResponse + */ +export interface ScreeningProviderRulesConfigurationResponse { + /** + * + * @type {string} + * @memberof ScreeningProviderRulesConfigurationResponse + */ + 'action': ScreeningProviderRulesConfigurationResponseActionEnum; + /** + * + * @type {string} + * @memberof ScreeningProviderRulesConfigurationResponse + */ + 'direction'?: ScreeningProviderRulesConfigurationResponseDirectionEnum; + /** + * + * @type {string} + * @memberof ScreeningProviderRulesConfigurationResponse + */ + 'status'?: ScreeningProviderRulesConfigurationResponseStatusEnum; + /** + * + * @type {number} + * @memberof ScreeningProviderRulesConfigurationResponse + */ + 'amountUSD'?: number; + /** + * + * @type {number} + * @memberof ScreeningProviderRulesConfigurationResponse + */ + 'amount'?: number; + /** + * + * @type {string} + * @memberof ScreeningProviderRulesConfigurationResponse + */ + 'asset'?: string; +} + +export const ScreeningProviderRulesConfigurationResponseActionEnum = { + Accept: 'ACCEPT', + Reject: 'REJECT', + Alert: 'ALERT', + Wait: 'WAIT', + Freeze: 'FREEZE', + Cancel: 'CANCEL' +} as const; + +export type ScreeningProviderRulesConfigurationResponseActionEnum = typeof ScreeningProviderRulesConfigurationResponseActionEnum[keyof typeof ScreeningProviderRulesConfigurationResponseActionEnum]; +export const ScreeningProviderRulesConfigurationResponseDirectionEnum = { + Inbound: 'INBOUND', + Outbound: 'OUTBOUND' +} as const; + +export type ScreeningProviderRulesConfigurationResponseDirectionEnum = typeof ScreeningProviderRulesConfigurationResponseDirectionEnum[keyof typeof ScreeningProviderRulesConfigurationResponseDirectionEnum]; +export const ScreeningProviderRulesConfigurationResponseStatusEnum = { + Completed: 'COMPLETED', + Pending: 'PENDING', + Rejected: 'REJECTED', + Failed: 'FAILED', + Canceled: 'CANCELED', + BlockingTimeExpired: 'BLOCKING_TIME_EXPIRED' +} as const; + +export type ScreeningProviderRulesConfigurationResponseStatusEnum = typeof ScreeningProviderRulesConfigurationResponseStatusEnum[keyof typeof ScreeningProviderRulesConfigurationResponseStatusEnum]; + + diff --git a/models/screening-update-configurations-request.ts b/models/screening-update-configurations-request.ts new file mode 100644 index 0000000..5eb0fc1 --- /dev/null +++ b/models/screening-update-configurations-request.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface ScreeningUpdateConfigurationsRequest + */ +export interface ScreeningUpdateConfigurationsRequest { + /** + * Flag to enable or disable bypass screening on tenant configuration. + * @type {boolean} + * @memberof ScreeningUpdateConfigurationsRequest + */ + 'disableBypass'?: boolean; + /** + * Flag to enable or disable unfreeze of transaction frozen by policy rule on tenant configuration. + * @type {boolean} + * @memberof ScreeningUpdateConfigurationsRequest + */ + 'disableUnfreeze'?: boolean; +} + diff --git a/models/set-auto-fuel-request.ts b/models/set-auto-fuel-request.ts new file mode 100644 index 0000000..771eaef --- /dev/null +++ b/models/set-auto-fuel-request.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface SetAutoFuelRequest + */ +export interface SetAutoFuelRequest { + /** + * Auto Fuel + * @type {boolean} + * @memberof SetAutoFuelRequest + */ + 'autoFuel'?: boolean; +} + diff --git a/models/set-customer-ref-id-for-address-request.ts b/models/set-customer-ref-id-for-address-request.ts new file mode 100644 index 0000000..a42292e --- /dev/null +++ b/models/set-customer-ref-id-for-address-request.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface SetCustomerRefIdForAddressRequest + */ +export interface SetCustomerRefIdForAddressRequest { + /** + * Customer reference ID + * @type {string} + * @memberof SetCustomerRefIdForAddressRequest + */ + 'customerRefId'?: string; +} + diff --git a/models/set-customer-ref-id-request.ts b/models/set-customer-ref-id-request.ts new file mode 100644 index 0000000..cd96f7b --- /dev/null +++ b/models/set-customer-ref-id-request.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface SetCustomerRefIdRequest + */ +export interface SetCustomerRefIdRequest { + /** + * Customer reference ID + * @type {string} + * @memberof SetCustomerRefIdRequest + */ + 'customerRefId'?: string; +} + diff --git a/models/set-network-id-discoverability-request.ts b/models/set-network-id-discoverability-request.ts new file mode 100644 index 0000000..5c8fd8a --- /dev/null +++ b/models/set-network-id-discoverability-request.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface SetNetworkIdDiscoverabilityRequest + */ +export interface SetNetworkIdDiscoverabilityRequest { + /** + * + * @type {boolean} + * @memberof SetNetworkIdDiscoverabilityRequest + */ + 'isDiscoverable': boolean; +} + diff --git a/models/set-network-id-response.ts b/models/set-network-id-response.ts new file mode 100644 index 0000000..b415f5e --- /dev/null +++ b/models/set-network-id-response.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface SetNetworkIdResponse + */ +export interface SetNetworkIdResponse { + /** + * + * @type {boolean} + * @memberof SetNetworkIdResponse + */ + 'success': boolean; +} + diff --git a/models/set-network-id-routing-policy-request.ts b/models/set-network-id-routing-policy-request.ts new file mode 100644 index 0000000..4a44f6d --- /dev/null +++ b/models/set-network-id-routing-policy-request.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { NetworkIdRoutingPolicy } from './network-id-routing-policy'; + +/** + * + * @export + * @interface SetNetworkIdRoutingPolicyRequest + */ +export interface SetNetworkIdRoutingPolicyRequest { + /** + * + * @type {NetworkIdRoutingPolicy} + * @memberof SetNetworkIdRoutingPolicyRequest + */ + 'routingPolicy': NetworkIdRoutingPolicy; +} + diff --git a/models/smart-transfer-create-ticket-term.ts b/models/smart-transfer-create-ticket-term.ts new file mode 100644 index 0000000..3591cc5 --- /dev/null +++ b/models/smart-transfer-create-ticket-term.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface SmartTransferCreateTicketTerm + */ +export interface SmartTransferCreateTicketTerm { + /** + * Asset name + * @type {string} + * @memberof SmartTransferCreateTicketTerm + */ + 'asset': string; + /** + * Amount + * @type {number} + * @memberof SmartTransferCreateTicketTerm + */ + 'amount': number; + /** + * Identifier of the origination Network Profile + * @type {string} + * @memberof SmartTransferCreateTicketTerm + */ + 'fromNetworkId': string; + /** + * Identifier of the destination Network Profile + * @type {string} + * @memberof SmartTransferCreateTicketTerm + */ + 'toNetworkId': string; +} + diff --git a/models/smart-transfer-create-ticket.ts b/models/smart-transfer-create-ticket.ts new file mode 100644 index 0000000..d5611e9 --- /dev/null +++ b/models/smart-transfer-create-ticket.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { SmartTransferCreateTicketTerm } from './smart-transfer-create-ticket-term'; + +/** + * + * @export + * @interface SmartTransferCreateTicket + */ +export interface SmartTransferCreateTicket { + /** + * + * @type {string} + * @memberof SmartTransferCreateTicket + */ + 'createdByNetworkId': string; + /** + * + * @type {string} + * @memberof SmartTransferCreateTicket + */ + 'type': SmartTransferCreateTicketTypeEnum; + /** + * Number of hours after which an OPEN ticket will expire if no term is funded. + * @type {number} + * @memberof SmartTransferCreateTicket + */ + 'expiresIn'?: number; + /** + * + * @type {Array} + * @memberof SmartTransferCreateTicket + */ + 'terms'?: Array; + /** + * + * @type {string} + * @memberof SmartTransferCreateTicket + */ + 'externalRefId'?: string; + /** + * + * @type {string} + * @memberof SmartTransferCreateTicket + */ + 'note'?: string; + /** + * + * @type {boolean} + * @memberof SmartTransferCreateTicket + */ + 'submit'?: boolean; +} + +export const SmartTransferCreateTicketTypeEnum = { + Async: 'ASYNC' +} as const; + +export type SmartTransferCreateTicketTypeEnum = typeof SmartTransferCreateTicketTypeEnum[keyof typeof SmartTransferCreateTicketTypeEnum]; + + diff --git a/models/smart-transfer-fund-term.ts b/models/smart-transfer-fund-term.ts new file mode 100644 index 0000000..24c1f36 --- /dev/null +++ b/models/smart-transfer-fund-term.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface SmartTransferFundTerm + */ +export interface SmartTransferFundTerm { + /** + * Asset name + * @type {string} + * @memberof SmartTransferFundTerm + */ + 'asset': string; + /** + * Amount + * @type {string} + * @memberof SmartTransferFundTerm + */ + 'amount': string; + /** + * Id of the network connection used. + * @type {string} + * @memberof SmartTransferFundTerm + */ + 'networkConnectionId': string; + /** + * Id of the vault that is used as the source of the asset. + * @type {string} + * @memberof SmartTransferFundTerm + */ + 'srcId': string; + /** + * Source of the asset. + * @type {string} + * @memberof SmartTransferFundTerm + */ + 'srcType': string; + /** + * Transaction fee + * @type {string} + * @memberof SmartTransferFundTerm + */ + 'fee'?: string; + /** + * Transaction fee level. + * @type {string} + * @memberof SmartTransferFundTerm + */ + 'feeLevel'?: string; +} + diff --git a/models/smart-transfer-manually-fund-term.ts b/models/smart-transfer-manually-fund-term.ts new file mode 100644 index 0000000..b205068 --- /dev/null +++ b/models/smart-transfer-manually-fund-term.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface SmartTransferManuallyFundTerm + */ +export interface SmartTransferManuallyFundTerm { + /** + * + * @type {string} + * @memberof SmartTransferManuallyFundTerm + */ + 'txHash': string; +} + diff --git a/models/smart-transfer-set-ticket-expiration.ts b/models/smart-transfer-set-ticket-expiration.ts new file mode 100644 index 0000000..9e8052f --- /dev/null +++ b/models/smart-transfer-set-ticket-expiration.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface SmartTransferSetTicketExpiration + */ +export interface SmartTransferSetTicketExpiration { + /** + * Sets ticket expiration time (in hours) after a ticket is submitted. If no funding source is set to any term, the ticket will automatically expire after given time. + * @type {number} + * @memberof SmartTransferSetTicketExpiration + */ + 'expiresIn': number; +} + diff --git a/models/smart-transfer-set-ticket-external-id.ts b/models/smart-transfer-set-ticket-external-id.ts new file mode 100644 index 0000000..fb87d0a --- /dev/null +++ b/models/smart-transfer-set-ticket-external-id.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface SmartTransferSetTicketExternalId + */ +export interface SmartTransferSetTicketExternalId { + /** + * Each workspace can set their own external id they want to refer to this Ticket + * @type {string} + * @memberof SmartTransferSetTicketExternalId + */ + 'externalRefId': string; +} + diff --git a/models/smart-transfer-set-user-groups.ts b/models/smart-transfer-set-user-groups.ts new file mode 100644 index 0000000..af59b92 --- /dev/null +++ b/models/smart-transfer-set-user-groups.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface SmartTransferSetUserGroups + */ +export interface SmartTransferSetUserGroups { + /** + * + * @type {Array} + * @memberof SmartTransferSetUserGroups + */ + 'userGroupIds': Array; +} + diff --git a/models/smart-transfer-submit-ticket.ts b/models/smart-transfer-submit-ticket.ts new file mode 100644 index 0000000..90516f8 --- /dev/null +++ b/models/smart-transfer-submit-ticket.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface SmartTransferSubmitTicket + */ +export interface SmartTransferSubmitTicket { + /** + * Sets the ticket expiration time (in hours) after the ticket is submitted. If no funding source is set for any term, the ticket will automatically expire after given time. + * @type {number} + * @memberof SmartTransferSubmitTicket + */ + 'expiresIn': number; +} + diff --git a/models/smart-transfer-ticket-filtered-response.ts b/models/smart-transfer-ticket-filtered-response.ts new file mode 100644 index 0000000..6f7ab52 --- /dev/null +++ b/models/smart-transfer-ticket-filtered-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { SmartTransferTicket } from './smart-transfer-ticket'; + +/** + * + * @export + * @interface SmartTransferTicketFilteredResponse + */ +export interface SmartTransferTicketFilteredResponse { + /** + * Result message + * @type {string} + * @memberof SmartTransferTicketFilteredResponse + */ + 'message': string | null; + /** + * Unique id of next filtered result + * @type {string} + * @memberof SmartTransferTicketFilteredResponse + */ + 'after': string; + /** + * Result that match given query criteria + * @type {Array} + * @memberof SmartTransferTicketFilteredResponse + */ + 'data': Array; +} + diff --git a/models/smart-transfer-ticket-response.ts b/models/smart-transfer-ticket-response.ts new file mode 100644 index 0000000..b324f84 --- /dev/null +++ b/models/smart-transfer-ticket-response.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { SmartTransferTicket } from './smart-transfer-ticket'; + +/** + * + * @export + * @interface SmartTransferTicketResponse + */ +export interface SmartTransferTicketResponse { + /** + * Result message + * @type {string} + * @memberof SmartTransferTicketResponse + */ + 'message': string | null; + /** + * + * @type {SmartTransferTicket} + * @memberof SmartTransferTicketResponse + */ + 'data'?: SmartTransferTicket | null; +} + diff --git a/models/smart-transfer-ticket-term-response.ts b/models/smart-transfer-ticket-term-response.ts new file mode 100644 index 0000000..32369bc --- /dev/null +++ b/models/smart-transfer-ticket-term-response.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { SmartTransferTicketTerm } from './smart-transfer-ticket-term'; + +/** + * + * @export + * @interface SmartTransferTicketTermResponse + */ +export interface SmartTransferTicketTermResponse { + /** + * Result message + * @type {string} + * @memberof SmartTransferTicketTermResponse + */ + 'message': string | null; + /** + * + * @type {SmartTransferTicketTerm} + * @memberof SmartTransferTicketTermResponse + */ + 'data'?: SmartTransferTicketTerm | null; +} + diff --git a/models/smart-transfer-ticket-term.ts b/models/smart-transfer-ticket-term.ts new file mode 100644 index 0000000..1ccb2e9 --- /dev/null +++ b/models/smart-transfer-ticket-term.ts @@ -0,0 +1,145 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * Data object with result data + * @export + * @interface SmartTransferTicketTerm + */ +export interface SmartTransferTicketTerm { + /** + * Unique id of Smart Transfer ticket term + * @type {string} + * @memberof SmartTransferTicketTerm + */ + 'id': string; + /** + * Unique id of Smart Transfer ticket + * @type {string} + * @memberof SmartTransferTicketTerm + */ + 'ticketId': string; + /** + * Asset name + * @type {string} + * @memberof SmartTransferTicketTerm + */ + 'asset': string; + /** + * Amount + * @type {string} + * @memberof SmartTransferTicketTerm + */ + 'amount': string; + /** + * Identifier of the origination Network Profile + * @type {string} + * @memberof SmartTransferTicketTerm + */ + 'fromNetworkId': string; + /** + * Source network name + * @type {string} + * @memberof SmartTransferTicketTerm + */ + 'fromNetworkIdName': string; + /** + * Identifier of the destination Network Profile + * @type {string} + * @memberof SmartTransferTicketTerm + */ + 'toNetworkId': string; + /** + * Destination network name + * @type {string} + * @memberof SmartTransferTicketTerm + */ + 'toNetworkIdName': string; + /** + * Blockchain TX hash + * @type {string} + * @memberof SmartTransferTicketTerm + */ + 'txHash': string | null; + /** + * Fireblocks transaction ID. It is set when the funding transaction is created. + * @type {string} + * @memberof SmartTransferTicketTerm + */ + 'fbTxId': string | null; + /** + * Ticket term transaction status + * @type {string} + * @memberof SmartTransferTicketTerm + */ + 'txStatus': SmartTransferTicketTermTxStatusEnum | null; + /** + * Ticket term status + * @type {string} + * @memberof SmartTransferTicketTerm + */ + 'status': SmartTransferTicketTermStatusEnum; + /** + * Date and time when the term is created. + * @type {string} + * @memberof SmartTransferTicketTerm + */ + 'createdAt': string; + /** + * Date and time of last term update. + * @type {string} + * @memberof SmartTransferTicketTerm + */ + 'updatedAt': string; + /** + * Amount USD + * @type {string} + * @memberof SmartTransferTicketTerm + */ + 'amountUsd'?: string; +} + +export const SmartTransferTicketTermTxStatusEnum = { + Queued: 'queued', + Submitted: 'submitted', + PendingSignature: 'pendingSignature', + PendingAuthorization: 'pendingAuthorization', + Broadcasting: 'broadcasting', + Confirming: 'confirming', + PendingAmlScreening: 'pendingAmlScreening', + Completed: 'completed', + Cancelled: 'cancelled', + Failed: 'failed', + Rejected: 'rejected', + Blocked: 'blocked', + ThirdPartyPendingManualApproval: 'thirdPartyPendingManualApproval', + ThirdPartyPending: 'thirdPartyPending', + PartiallyCompleted: 'partiallyCompleted', + Cancelling: 'cancelling' +} as const; + +export type SmartTransferTicketTermTxStatusEnum = typeof SmartTransferTicketTermTxStatusEnum[keyof typeof SmartTransferTicketTermTxStatusEnum]; +export const SmartTransferTicketTermStatusEnum = { + Created: 'CREATED', + Funding: 'FUNDING', + FundingFailed: 'FUNDING_FAILED', + Funded: 'FUNDED', + Rejected: 'REJECTED' +} as const; + +export type SmartTransferTicketTermStatusEnum = typeof SmartTransferTicketTermStatusEnum[keyof typeof SmartTransferTicketTermStatusEnum]; + + diff --git a/models/smart-transfer-ticket.ts b/models/smart-transfer-ticket.ts new file mode 100644 index 0000000..a06e116 --- /dev/null +++ b/models/smart-transfer-ticket.ts @@ -0,0 +1,173 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { SmartTransferTicketTerm } from './smart-transfer-ticket-term'; + +/** + * Data object with result data + * @export + * @interface SmartTransferTicket + */ +export interface SmartTransferTicket { + /** + * Unique id of Smart Transfer ticket + * @type {string} + * @memberof SmartTransferTicket + */ + 'id': string; + /** + * Kind of Smart Transfer. Can be either `ASYNC` or `ATOMIC` + * @type {string} + * @memberof SmartTransferTicket + */ + 'type': SmartTransferTicketTypeEnum; + /** + * Current status of Smart Transfer ticket + * @type {string} + * @memberof SmartTransferTicket + */ + 'status': SmartTransferTicketStatusEnum; + /** + * ID of network profile that created ticket + * @type {string} + * @memberof SmartTransferTicket + */ + 'createdByNetworkId': string; + /** + * Name of network profile that created ticket + * @type {string} + * @memberof SmartTransferTicket + */ + 'createdByNetworkIdName': string; + /** + * Date and time at which the ticket is created. + * @type {string} + * @memberof SmartTransferTicket + */ + 'createdAt': string; + /** + * Date and time of last ticket update. + * @type {string} + * @memberof SmartTransferTicket + */ + 'updatedAt': string; + /** + * Direction of Smart Transfer. + * @type {string} + * @memberof SmartTransferTicket + */ + 'direction'?: SmartTransferTicketDirectionEnum; + /** + * Ticket terms (legs) + * @type {Array} + * @memberof SmartTransferTicket + */ + 'terms'?: Array; + /** + * Number of hours for expiration.This data is valid only it ticket not in DRAFT state and it will be used to calculate expiresAt value + * @type {number} + * @memberof SmartTransferTicket + */ + 'expiresIn'?: number; + /** + * Date and time at which the ticket will expire if no funding is performed. + * @type {string} + * @memberof SmartTransferTicket + */ + 'expiresAt'?: string; + /** + * Date and time when ticket is submitted. + * @type {string} + * @memberof SmartTransferTicket + */ + 'submittedAt'?: string; + /** + * Date and time when ticket is expired. + * @type {string} + * @memberof SmartTransferTicket + */ + 'expiredAt'?: string; + /** + * Date and time when ticket is canceled. + * @type {string} + * @memberof SmartTransferTicket + */ + 'canceledAt'?: string; + /** + * Date and time when ticket is fulfilled. + * @type {string} + * @memberof SmartTransferTicket + */ + 'fulfilledAt'?: string; + /** + * External Ref ID for Smart Transfer ticket. + * @type {string} + * @memberof SmartTransferTicket + */ + 'externalRefId'?: string; + /** + * Note + * @type {string} + * @memberof SmartTransferTicket + */ + 'note'?: string; + /** + * Name of network profile that canceled ticket + * @type {string} + * @memberof SmartTransferTicket + */ + 'canceledByNetworkIdName'?: string; + /** + * + * @type {boolean} + * @memberof SmartTransferTicket + */ + 'canceledByMe'?: boolean; + /** + * + * @type {boolean} + * @memberof SmartTransferTicket + */ + 'createdByMe'?: boolean; +} + +export const SmartTransferTicketTypeEnum = { + Async: 'ASYNC' +} as const; + +export type SmartTransferTicketTypeEnum = typeof SmartTransferTicketTypeEnum[keyof typeof SmartTransferTicketTypeEnum]; +export const SmartTransferTicketStatusEnum = { + Draft: 'DRAFT', + PendingApproval: 'PENDING_APPROVAL', + Open: 'OPEN', + InSettlement: 'IN_SETTLEMENT', + Fulfilled: 'FULFILLED', + Expired: 'EXPIRED', + Canceled: 'CANCELED' +} as const; + +export type SmartTransferTicketStatusEnum = typeof SmartTransferTicketStatusEnum[keyof typeof SmartTransferTicketStatusEnum]; +export const SmartTransferTicketDirectionEnum = { + Exchange: 'EXCHANGE', + Send: 'SEND', + Receive: 'RECEIVE', + Intermediate: 'INTERMEDIATE' +} as const; + +export type SmartTransferTicketDirectionEnum = typeof SmartTransferTicketDirectionEnum[keyof typeof SmartTransferTicketDirectionEnum]; + + diff --git a/models/smart-transfer-update-ticket-term.ts b/models/smart-transfer-update-ticket-term.ts new file mode 100644 index 0000000..3212bf9 --- /dev/null +++ b/models/smart-transfer-update-ticket-term.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface SmartTransferUpdateTicketTerm + */ +export interface SmartTransferUpdateTicketTerm { + /** + * Asset name + * @type {string} + * @memberof SmartTransferUpdateTicketTerm + */ + 'asset': string; + /** + * Amount + * @type {number} + * @memberof SmartTransferUpdateTicketTerm + */ + 'amount': number; + /** + * Identifier of the origination Network Profile + * @type {string} + * @memberof SmartTransferUpdateTicketTerm + */ + 'fromNetworkId': string; + /** + * Identifier of the destination Network Profile + * @type {string} + * @memberof SmartTransferUpdateTicketTerm + */ + 'toNetworkId': string; +} + diff --git a/models/smart-transfer-user-groups-response.ts b/models/smart-transfer-user-groups-response.ts new file mode 100644 index 0000000..9fae67b --- /dev/null +++ b/models/smart-transfer-user-groups-response.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { SmartTransferUserGroups } from './smart-transfer-user-groups'; + +/** + * + * @export + * @interface SmartTransferUserGroupsResponse + */ +export interface SmartTransferUserGroupsResponse { + /** + * Result message + * @type {string} + * @memberof SmartTransferUserGroupsResponse + */ + 'message': string | null; + /** + * + * @type {SmartTransferUserGroups} + * @memberof SmartTransferUserGroupsResponse + */ + 'data'?: SmartTransferUserGroups | null; +} + diff --git a/models/smart-transfer-user-groups.ts b/models/smart-transfer-user-groups.ts new file mode 100644 index 0000000..84480c5 --- /dev/null +++ b/models/smart-transfer-user-groups.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * Data object with result data + * @export + * @interface SmartTransferUserGroups + */ +export interface SmartTransferUserGroups { + /** + * Data object with result data + * @type {Array} + * @memberof SmartTransferUserGroups + */ + 'userGroupIds': Array | null; +} + diff --git a/models/source-transfer-peer-path-response.ts b/models/source-transfer-peer-path-response.ts index b2bc67b..8c3a242 100644 --- a/models/source-transfer-peer-path-response.ts +++ b/models/source-transfer-peer-path-response.ts @@ -15,12 +15,45 @@ // May contain unused imports in some cases // @ts-ignore -import { TransferPeerPath } from './transfer-peer-path'; +import { TransferPeerPathType } from './transfer-peer-path-type'; /** - * @type SourceTransferPeerPathResponse + * Source of the transaction. * @export + * @interface SourceTransferPeerPathResponse */ -export type SourceTransferPeerPathResponse = TransferPeerPath; +export interface SourceTransferPeerPathResponse { + /** + * + * @type {TransferPeerPathType} + * @memberof SourceTransferPeerPathResponse + */ + 'type': TransferPeerPathType; + /** + * In case the type is set to `EXCHANGE_ACCOUNT` or `FIAT_ACCOUNT`, the specific exchange vendor name or fiat vendor name. In case the type is set to `INTERNAL_WALLET` or `EXTERNAL_WALLET`, the subType is set to `Internal` or `External`. + * @type {string} + * @memberof SourceTransferPeerPathResponse + */ + 'subType'?: string; + /** + * The ID of the peer. You can retrieve the ID of each venue object using the endpoints for [listing vault accounts](https://developers.fireblocks.com/reference/get_vault-accounts-paged), [listing exchange account](https://developers.fireblocks.com/reference/get_exchange-accounts), [listing fiat accounts](https://developers.fireblocks.com/reference/get_fiat-accounts), [listing internal wallets](https://developers.fireblocks.com/reference/get_internal-wallets), [listing external wallets](https://developers.fireblocks.com/reference/get_external-wallets), [listing network connections](https://developers.fireblocks.com/reference/get_network-connections). For the other types, this parameter is not needed. + * @type {string} + * @memberof SourceTransferPeerPathResponse + */ + 'id'?: string | null; + /** + * The name of the peer. + * @type {string} + * @memberof SourceTransferPeerPathResponse + */ + 'name'?: string; + /** + * + * @type {string} + * @memberof SourceTransferPeerPathResponse + */ + 'walletId'?: string; +} + diff --git a/models/third-party-routing.ts b/models/third-party-routing.ts new file mode 100644 index 0000000..4de9293 --- /dev/null +++ b/models/third-party-routing.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @interface ThirdPartyRouting + */ +export interface ThirdPartyRouting { + /** + * + * @type {boolean} + * @memberof ThirdPartyRouting + */ + 'isThirdPartyRouting'?: boolean; + /** + * + * @type {string} + * @memberof ThirdPartyRouting + */ + 'description'?: string; +} + diff --git a/models/transaction-fee.ts b/models/transaction-fee.ts index 8d6e4af..35d4ead 100644 --- a/models/transaction-fee.ts +++ b/models/transaction-fee.ts @@ -28,10 +28,10 @@ export interface TransactionFee { 'feePerByte'?: string; /** * - * @type {string} + * @type {number} * @memberof TransactionFee */ - 'gasPrice'?: string; + 'gasPrice'?: number; /** * * @type {string} @@ -46,15 +46,15 @@ export interface TransactionFee { 'networkFee'?: string; /** * (optional) Base Fee according to EIP-1559 (ETH assets) - * @type {string} + * @type {number} * @memberof TransactionFee */ - 'baseFee'?: string; + 'baseFee'?: number; /** * (optional) Priority Fee according to EIP-1559 (ETH assets) - * @type {string} + * @type {number} * @memberof TransactionFee */ - 'priorityFee'?: string; + 'priorityFee'?: number; } diff --git a/models/transaction-response.ts b/models/transaction-response.ts index e8e14a5..e1337ba 100644 --- a/models/transaction-response.ts +++ b/models/transaction-response.ts @@ -27,6 +27,9 @@ import { AuthorizationInfo } from './authorization-info'; import { BlockInfo } from './block-info'; // May contain unused imports in some cases // @ts-ignore +import { ComplianceResult } from './compliance-result'; +// May contain unused imports in some cases +// @ts-ignore import { DestinationTransferPeerPathResponse } from './destination-transfer-peer-path-response'; // May contain unused imports in some cases // @ts-ignore @@ -248,6 +251,12 @@ export interface TransactionResponse { * @memberof TransactionResponse */ 'amlScreeningResult'?: AmlScreeningResult; + /** + * + * @type {ComplianceResult} + * @memberof TransactionResponse + */ + 'complianceResult'?: ComplianceResult; /** * Additional protocol / operation specific key-value parameters: For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. * @type {object} @@ -256,10 +265,10 @@ export interface TransactionResponse { 'extraParameters'?: object; /** * - * @type {SignedMessage} + * @type {Array} * @memberof TransactionResponse */ - 'signedMessages'?: SignedMessage; + 'signedMessages'?: Array; /** * The number of confirmations of the transaction. The number will increase until the transaction will be considered completed according to the confirmation policy. * @type {number} @@ -348,6 +357,7 @@ export interface TransactionResponse { } export const TransactionResponseAddressTypeEnum = { + Empty: '', Whitelisted: 'WHITELISTED', OneTime: 'ONE_TIME' } as const; diff --git a/models/transfer-peer-path-type.ts b/models/transfer-peer-path-type.ts new file mode 100644 index 0000000..7f83a23 --- /dev/null +++ b/models/transfer-peer-path-type.ts @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const TransferPeerPathType = { + VaultAccount: 'VAULT_ACCOUNT', + ExchangeAccount: 'EXCHANGE_ACCOUNT', + InternalWallet: 'INTERNAL_WALLET', + ExternalWallet: 'EXTERNAL_WALLET', + Contract: 'CONTRACT', + NetworkConnection: 'NETWORK_CONNECTION', + FiatAccount: 'FIAT_ACCOUNT', + Compound: 'COMPOUND', + GasStation: 'GAS_STATION', + OneTimeAddress: 'ONE_TIME_ADDRESS', + Unknown: 'UNKNOWN', + EndUserWallet: 'END_USER_WALLET' +} as const; + +export type TransferPeerPathType = typeof TransferPeerPathType[keyof typeof TransferPeerPathType]; + + + diff --git a/models/transfer-peer-path.ts b/models/transfer-peer-path.ts index f3aade1..a07da56 100644 --- a/models/transfer-peer-path.ts +++ b/models/transfer-peer-path.ts @@ -13,6 +13,9 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { TransferPeerPathType } from './transfer-peer-path-type'; /** * @@ -22,10 +25,10 @@ export interface TransferPeerPath { /** * - * @type {string} + * @type {TransferPeerPathType} * @memberof TransferPeerPath */ - 'type': TransferPeerPathTypeEnum; + 'type': TransferPeerPathType; /** * * @type {string} @@ -52,22 +55,6 @@ export interface TransferPeerPath { 'walletId'?: string; } -export const TransferPeerPathTypeEnum = { - VaultAccount: 'VAULT_ACCOUNT', - ExchangeAccount: 'EXCHANGE_ACCOUNT', - InternalWallet: 'INTERNAL_WALLET', - ExternalWallet: 'EXTERNAL_WALLET', - Contract: 'CONTRACT', - NetworkConnection: 'NETWORK_CONNECTION', - FiatAccount: 'FIAT_ACCOUNT', - Compound: 'COMPOUND', - GasStation: 'GAS_STATION', - OneTimeAddress: 'ONE_TIME_ADDRESS', - Unknown: 'UNKNOWN', - EndUserWallet: 'END_USER_WALLET' -} as const; - -export type TransferPeerPathTypeEnum = typeof TransferPeerPathTypeEnum[keyof typeof TransferPeerPathTypeEnum]; export const TransferPeerPathSubTypeEnum = { Binance: 'BINANCE', Binanceus: 'BINANCEUS', diff --git a/models/travel-rule-create-transaction-request.ts b/models/travel-rule-create-transaction-request.ts index 410255f..b75ac92 100644 --- a/models/travel-rule-create-transaction-request.ts +++ b/models/travel-rule-create-transaction-request.ts @@ -29,18 +29,6 @@ import { TravelRuleTransactionBlockchainInfo } from './travel-rule-transaction-b * @interface TravelRuleCreateTransactionRequest */ export interface TravelRuleCreateTransactionRequest { - /** - * The VASP ID of the transaction originator - * @type {string} - * @memberof TravelRuleCreateTransactionRequest - */ - 'originatorVASPdid': string; - /** - * The VASP ID of the transaction beneficiary - * @type {string} - * @memberof TravelRuleCreateTransactionRequest - */ - 'beneficiaryVASPdid': string; /** * * @type {TravelRulePiiIVMS} @@ -53,6 +41,18 @@ export interface TravelRuleCreateTransactionRequest { * @memberof TravelRuleCreateTransactionRequest */ 'beneficiary': TravelRulePiiIVMS; + /** + * The VASP ID of the transaction originator + * @type {string} + * @memberof TravelRuleCreateTransactionRequest + */ + 'originatorVASPdid'?: string; + /** + * The VASP ID of the transaction beneficiary + * @type {string} + * @memberof TravelRuleCreateTransactionRequest + */ + 'beneficiaryVASPdid'?: string; /** * The name of the VASP acting as the beneficiary * @type {string} diff --git a/models/travel-rule-ownership-proof.ts b/models/travel-rule-ownership-proof.ts index d8fd996..a406405 100644 --- a/models/travel-rule-ownership-proof.ts +++ b/models/travel-rule-ownership-proof.ts @@ -25,36 +25,12 @@ export interface TravelRuleOwnershipProof { * @type {string} * @memberof TravelRuleOwnershipProof */ - 'type': string; + 'type'?: string; /** * Identification number * @type {string} * @memberof TravelRuleOwnershipProof */ - 'id': string; - /** - * Name of owner - * @type {string} - * @memberof TravelRuleOwnershipProof - */ - 'name': string; - /** - * Country of issuance - * @type {string} - * @memberof TravelRuleOwnershipProof - */ - 'country': string; - /** - * Date of issuance - * @type {string} - * @memberof TravelRuleOwnershipProof - */ - 'issueDate': string; - /** - * Name of issuing entity - * @type {string} - * @memberof TravelRuleOwnershipProof - */ - 'issuer': string; + 'proof'?: string; } diff --git a/models/travel-rule-transaction-blockchain-info.ts b/models/travel-rule-transaction-blockchain-info.ts index 5a844e4..d6b8f55 100644 --- a/models/travel-rule-transaction-blockchain-info.ts +++ b/models/travel-rule-transaction-blockchain-info.ts @@ -25,18 +25,18 @@ export interface TravelRuleTransactionBlockchainInfo { * @type {string} * @memberof TravelRuleTransactionBlockchainInfo */ - 'txHash': string; + 'txHash'?: string; /** * * @type {string} * @memberof TravelRuleTransactionBlockchainInfo */ - 'origin': string; + 'origin'?: string; /** * * @type {string} * @memberof TravelRuleTransactionBlockchainInfo */ - 'destination': string; + 'destination'?: string; } diff --git a/models/travel-rule-validate-full-transaction-request.ts b/models/travel-rule-validate-full-transaction-request.ts index 119d0b9..56c2e09 100644 --- a/models/travel-rule-validate-full-transaction-request.ts +++ b/models/travel-rule-validate-full-transaction-request.ts @@ -30,65 +30,65 @@ import { TravelRuleTransactionBlockchainInfo } from './travel-rule-transaction-b */ export interface TravelRuleValidateFullTransactionRequest { /** - * The asset involved in the transaction - * @type {string} + * + * @type {TravelRulePiiIVMS} * @memberof TravelRuleValidateFullTransactionRequest */ - 'transactionAsset': string; + 'originator': TravelRulePiiIVMS; /** - * The amount of the transaction - * @type {string} + * + * @type {TravelRulePiiIVMS} * @memberof TravelRuleValidateFullTransactionRequest */ - 'transactionAmount': string; + 'beneficiary': TravelRulePiiIVMS; /** - * The VASP ID of the transaction originator + * The asset involved in the transaction * @type {string} * @memberof TravelRuleValidateFullTransactionRequest */ - 'originatorVASPdid': string; + 'transactionAsset'?: string; /** - * The VASP ID of the transaction beneficiary + * The amount of the transaction * @type {string} * @memberof TravelRuleValidateFullTransactionRequest */ - 'beneficiaryVASPdid': string; - /** - * - * @type {TravelRuleTransactionBlockchainInfo} - * @memberof TravelRuleValidateFullTransactionRequest - */ - 'transactionBlockchainInfo': TravelRuleTransactionBlockchainInfo; + 'transactionAmount'?: string; /** - * - * @type {TravelRulePiiIVMS} + * The DID of the transaction originator + * @type {string} * @memberof TravelRuleValidateFullTransactionRequest */ - 'originator': TravelRulePiiIVMS; + 'originatorDid'?: string; /** - * - * @type {TravelRulePiiIVMS} + * The DID of the transaction beneficiary + * @type {string} * @memberof TravelRuleValidateFullTransactionRequest */ - 'beneficiary': TravelRulePiiIVMS; + 'beneficiaryDid'?: string; /** - * The DID of the transaction originator + * The VASP ID of the transaction originator * @type {string} * @memberof TravelRuleValidateFullTransactionRequest */ - 'originatorDid'?: string; + 'originatorVASPdid'?: string; /** - * The DID of the transaction beneficiary + * The VASP ID of the transaction beneficiary * @type {string} * @memberof TravelRuleValidateFullTransactionRequest */ - 'beneficiaryDid'?: string; + 'beneficiaryVASPdid'?: string; /** * The name of the VASP acting as the beneficiary * @type {string} * @memberof TravelRuleValidateFullTransactionRequest */ 'beneficiaryVASPname'?: string; + /** + * + * @type {TravelRuleTransactionBlockchainInfo} + * @memberof TravelRuleValidateFullTransactionRequest + */ + 'transactionBlockchainInfo'?: TravelRuleTransactionBlockchainInfo; /** * Encrypted data related to the transaction * @type {string} diff --git a/network/axiosManager.ts b/network/axiosManager.ts index 82fb289..8cd555b 100644 --- a/network/axiosManager.ts +++ b/network/axiosManager.ts @@ -62,7 +62,7 @@ export class AxiosManager { ); } - private getHeaders(config: InternalAxiosRequestConfig): Record { + public getHeaders(config: InternalAxiosRequestConfig): Record { return { ...this.getApiKeyHeader(), ...this.getAuthorizationHeader(config), diff --git a/package-lock.json b/package-lock.json index f33a26d..69dd9b1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@fireblocks/ts-sdk", - "version": "3.0.3-beta", + "version": "3.0.5-beta", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@fireblocks/ts-sdk", - "version": "3.0.3-beta", + "version": "3.0.5-beta", "license": "Unlicense", "dependencies": { "axios": "^1.6.7", @@ -15,240 +15,3495 @@ "uuid": "8.3.2" }, "devDependencies": { + "@types/jest": "29.4.0", "@types/jsonwebtoken": "^8.5.1", "@types/node": "^12.11.5", "@types/platform": "^1.3.6", "@types/uuid": "^8.3.2", + "jest": "29.4.2", + "jest-junit": "^14.0.0", + "ts-jest": "29.0.5", "typescript": "^4.0" } }, - "node_modules/@types/jsonwebtoken": { - "version": "8.5.9", - "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-8.5.9.tgz", - "integrity": "sha512-272FMnFGzAVMGtu9tkr29hRL6bZj4Zs1KZNeHLnKqAvp06tAIcarTMwOh8/8bz4FmKRcMxZhZNeUAQsNLoiPhg==", + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", "dev": true, "dependencies": { - "@types/node": "*" + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" } }, - "node_modules/@types/node": { - "version": "12.20.55", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", - "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==", - "dev": true + "node_modules/@babel/code-frame": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", + "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.23.4", + "chalk": "^2.4.2" + }, + "engines": { + "node": ">=6.9.0" + } }, - "node_modules/@types/platform": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/@types/platform/-/platform-1.3.6.tgz", - "integrity": "sha512-ZmSaqHuvzv+jC232cFoz2QqPUkaj6EvMmCrWcx3WRr7xTPVFCMUOTcOq8m2d+Zw1iKRc1kDiaA+jtNrV0hkVew==", - "dev": true + "node_modules/@babel/code-frame/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } }, - "node_modules/@types/uuid": { - "version": "8.3.4", - "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.4.tgz", - "integrity": "sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==", + "node_modules/@babel/code-frame/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/code-frame/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", "dev": true }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + "node_modules/@babel/code-frame/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } }, - "node_modules/axios": { - "version": "1.6.7", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz", - "integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==", + "node_modules/@babel/code-frame/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, "dependencies": { - "follow-redirects": "^1.15.4", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" } }, - "node_modules/buffer-equal-constant-time": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", - "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" + "node_modules/@babel/compat-data": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz", + "integrity": "sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "node_modules/@babel/core": { + "version": "7.24.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.0.tgz", + "integrity": "sha512-fQfkg0Gjkza3nf0c7/w6Xf34BW4YvzNfACRLmmb7XRLa6XHdR+K9AlJlxneFfWYf6uhOzuzZVTjF/8KfndZANw==", + "dev": true, "dependencies": { - "delayed-stream": "~1.0.0" + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.6", + "@babel/helper-compilation-targets": "^7.23.6", + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helpers": "^7.24.0", + "@babel/parser": "^7.24.0", + "@babel/template": "^7.24.0", + "@babel/traverse": "^7.24.0", + "@babel/types": "^7.24.0", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" }, "engines": { - "node": ">= 0.8" + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" } }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "node_modules/@babel/generator": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz", + "integrity": "sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.23.6", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, "engines": { - "node": ">=0.4.0" + "node": ">=6.9.0" } }, - "node_modules/ecdsa-sig-formatter": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", - "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "node_modules/@babel/helper-compilation-targets": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", + "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", + "dev": true, "dependencies": { - "safe-buffer": "^5.0.1" + "@babel/compat-data": "^7.23.5", + "@babel/helper-validator-option": "^7.23.5", + "browserslist": "^4.22.2", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/follow-redirects": { - "version": "1.15.5", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", - "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", + "dev": true, "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } + "node": ">=6.9.0" } }, - "node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "node_modules/@babel/helper-function-name": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", + "dev": true, "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" }, "engines": { - "node": ">= 6" + "node": ">=6.9.0" } }, - "node_modules/jsonwebtoken": { - "version": "8.5.1", - "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz", - "integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==", + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", + "dev": true, "dependencies": { - "jws": "^3.2.2", - "lodash.includes": "^4.3.0", - "lodash.isboolean": "^3.0.3", - "lodash.isinteger": "^4.0.4", - "lodash.isnumber": "^3.0.3", - "lodash.isplainobject": "^4.0.6", - "lodash.isstring": "^4.0.1", - "lodash.once": "^4.0.0", - "ms": "^2.1.1", - "semver": "^5.6.0" + "@babel/types": "^7.22.5" }, "engines": { - "node": ">=4", - "npm": ">=1.4.28" + "node": ">=6.9.0" } }, - "node_modules/jwa": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", - "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", + "node_modules/@babel/helper-module-imports": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", + "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", + "dev": true, "dependencies": { - "buffer-equal-constant-time": "1.0.1", - "ecdsa-sig-formatter": "1.0.11", - "safe-buffer": "^5.0.1" + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/jws": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", - "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "node_modules/@babel/helper-module-transforms": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", + "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", + "dev": true, "dependencies": { - "jwa": "^1.4.1", - "safe-buffer": "^5.0.1" + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/helper-validator-identifier": "^7.22.20" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "node_modules/lodash.includes": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", - "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==" + "node_modules/@babel/helper-plugin-utils": { + "version": "7.24.0", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.0.tgz", + "integrity": "sha512-9cUznXMG0+FxRuJfvL82QlTqIzhVW9sL0KjMPHhAOOvpQGL8QtdxnBKILjBqxlHyliz0yCa1G903ZXI/FuHy2w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } }, - "node_modules/lodash.isboolean": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", - "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==" + "node_modules/@babel/helper-simple-access": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", + "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } }, - "node_modules/lodash.isinteger": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", - "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==" + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } }, - "node_modules/lodash.isnumber": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", - "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==" + "node_modules/@babel/helper-string-parser": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", + "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } }, - "node_modules/lodash.isplainobject": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==" + "node_modules/@babel/helper-validator-identifier": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } }, - "node_modules/lodash.isstring": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", - "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==" + "node_modules/@babel/helper-validator-option": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", + "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } }, - "node_modules/lodash.once": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", - "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==" + "node_modules/@babel/helpers": { + "version": "7.24.0", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.0.tgz", + "integrity": "sha512-ulDZdc0Aj5uLc5nETsa7EPx2L7rM0YJM8r7ck7U73AXi7qOV44IHHRAYZHY6iU1rr3C5N4NtTmMRUJP6kwCWeA==", + "dev": true, + "dependencies": { + "@babel/template": "^7.24.0", + "@babel/traverse": "^7.24.0", + "@babel/types": "^7.24.0" + }, + "engines": { + "node": ">=6.9.0" + } }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "node_modules/@babel/highlight": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", + "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.22.20", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0" + }, "engines": { - "node": ">= 0.6" + "node": ">=6.9.0" } }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, "dependencies": { - "mime-db": "1.52.0" + "color-convert": "^1.9.0" }, "engines": { - "node": ">= 0.6" + "node": ">=4" } }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } }, - "node_modules/platform": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/platform/-/platform-1.3.6.tgz", - "integrity": "sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg==" + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } }, - "node_modules/proxy-from-env": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" + "node_modules/@babel/highlight/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/parser": { + "version": "7.24.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.0.tgz", + "integrity": "sha512-QuP/FxEAzMSjXygs8v4N9dvdXzEHN4W1oF3PxuWAtPo08UdM17u89RDMgjLn/mlc56iM0HlLmVkO/wgR+rDgHg==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz", + "integrity": "sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.23.3.tgz", + "integrity": "sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.24.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.24.0.tgz", + "integrity": "sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.23.5", + "@babel/parser": "^7.24.0", + "@babel/types": "^7.24.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.24.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.0.tgz", + "integrity": "sha512-HfuJlI8qq3dEDmNU5ChzzpZRWq+oxCZQyMzIMEqLho+AQnhMnKQUzH6ydo3RBl/YjPCuk68Y6s0Gx0AeyULiWw==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.6", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.24.0", + "@babel/types": "^7.24.0", + "debug": "^4.3.1", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.24.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.0.tgz", + "integrity": "sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.23.4", + "@babel/helper-validator-identifier": "^7.22.20", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/core": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/environment": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "dev": true, + "dependencies": { + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", + "dev": true, + "dependencies": { + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", + "dev": true, + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^3.0.0" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.8", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", + "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.5.tgz", + "integrity": "sha512-WXCyOcRtH37HAUkpXhUduaxdm82b4GSlyTqajXviN4EfiuPgNYR109xMCKvpl6zPIpua0DGlMEDCq+g8EdoheQ==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "29.4.0", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.4.0.tgz", + "integrity": "sha512-VaywcGQ9tPorCX/Jkkni7RWGFfI11whqzs8dvxF41P17Z+z872thvEvlIbznjPJ02kl1HMX3LmLOonsj2n7HeQ==", + "dev": true, + "dependencies": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } + }, + "node_modules/@types/jsonwebtoken": { + "version": "8.5.9", + "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-8.5.9.tgz", + "integrity": "sha512-272FMnFGzAVMGtu9tkr29hRL6bZj4Zs1KZNeHLnKqAvp06tAIcarTMwOh8/8bz4FmKRcMxZhZNeUAQsNLoiPhg==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/node": { + "version": "12.20.55", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", + "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==", + "dev": true + }, + "node_modules/@types/platform": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/@types/platform/-/platform-1.3.6.tgz", + "integrity": "sha512-ZmSaqHuvzv+jC232cFoz2QqPUkaj6EvMmCrWcx3WRr7xTPVFCMUOTcOq8m2d+Zw1iKRc1kDiaA+jtNrV0hkVew==", + "dev": true + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true + }, + "node_modules/@types/uuid": { + "version": "8.3.4", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.4.tgz", + "integrity": "sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==", + "dev": true + }, + "node_modules/@types/yargs": { + "version": "17.0.32", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", + "integrity": "sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/axios": { + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz", + "integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==", + "dependencies": { + "follow-redirects": "^1.15.4", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/babel-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", + "dev": true, + "dependencies": { + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", + "dev": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", + "dev": true, + "dependencies": { + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.0.tgz", + "integrity": "sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001587", + "electron-to-chromium": "^1.4.668", + "node-releases": "^2.0.14", + "update-browserslist-db": "^1.0.13" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001596", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001596.tgz", + "integrity": "sha512-zpkZ+kEr6We7w63ORkoJ2pOfBwBkY/bJrG/UZ90qNb45Isblu8wzDgevEOrRL1r9dWayHjYiiyCMEXPn4DweGQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz", + "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==", + "dev": true + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "dev": true + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "node_modules/create-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + }, + "bin": { + "create-jest": "bin/create-jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/dedent": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.1.tgz", + "integrity": "sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg==", + "dev": true, + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/diff-sequences": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.4.695", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.695.tgz", + "integrity": "sha512-eMijZmeqPtm774pCZIOrfUHMs/7ls++W1sLhxwqgu8KQ8E2WmMtzwyqOMt0XXUJ3HTIPfuwlfwF+I5cwnfItBA==", + "dev": true + }, + "node_modules/emittery": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/escalade": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", + "dev": true, + "dependencies": { + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/follow-redirects": { + "version": "1.15.5", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", + "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/hasown": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.1.tgz", + "integrity": "sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "node_modules/is-core-module": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "dev": true, + "dependencies": { + "hasown": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.2.tgz", + "integrity": "sha512-1WUsZ9R1lA0HtBSohTkm39WTPlNKSJ5iFk7UwqXkBLoHQT+hfqPsfsTDVuZdKGaBwn7din9bS7SsnoAr943hvw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", + "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", + "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest": { + "version": "29.4.2", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.4.2.tgz", + "integrity": "sha512-+5hLd260vNIHu+7ZgMIooSpKl7Jp5pHKb51e73AJU3owd5dEo/RfVwHbA/na3C/eozrt3hJOLGf96c7EWwIAzg==", + "dev": true, + "dependencies": { + "@jest/core": "^29.4.2", + "@jest/types": "^29.4.2", + "import-local": "^3.0.2", + "jest-cli": "^29.4.2" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", + "dev": true, + "dependencies": { + "execa": "^5.0.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-cli": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", + "dev": true, + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "create-jest": "^29.7.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-config": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-diff": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-docblock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", + "dev": true, + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-environment-node": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-junit": { + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/jest-junit/-/jest-junit-14.0.1.tgz", + "integrity": "sha512-h7/wwzPbllgpQhhVcRzRC76/cc89GlazThoV1fDxcALkf26IIlRsu/AcTG64f4nR2WPE3Cbd+i/sVf+NCUHrWQ==", + "dev": true, + "dependencies": { + "mkdirp": "^1.0.4", + "strip-ansi": "^6.0.1", + "uuid": "^8.3.2", + "xml": "^1.0.1" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/jest-leak-detector": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-mock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", + "dev": true, + "dependencies": { + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/jest-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watcher": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "dev": true, + "dependencies": { + "@types/node": "*", + "jest-util": "^29.7.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonwebtoken": { + "version": "8.5.1", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz", + "integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==", + "dependencies": { + "jws": "^3.2.2", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^5.6.0" + }, + "engines": { + "node": ">=4", + "npm": ">=1.4.28" + } + }, + "node_modules/jsonwebtoken/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/jwa": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", + "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", + "dependencies": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jws": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", + "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "dependencies": { + "jwa": "^1.4.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==" + }, + "node_modules/lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==" + }, + "node_modules/lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==" + }, + "node_modules/lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==" + }, + "node_modules/lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==" + }, + "node_modules/lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==" + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true + }, + "node_modules/lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==" + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-dir/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", + "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", + "dev": true + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/platform": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/platform/-/platform-1.3.6.tgz", + "integrity": "sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg==" + }, + "node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, + "node_modules/pure-rand": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.0.4.tgz", + "integrity": "sha512-LA0Y9kxMYv47GIPJy6MI84fqTd2HmYZI83W/kM/SkKfDlajnZYfmXFTxkbY+xSBPkLJxltMa9hIkmdc29eguMA==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ] + }, + "node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "dev": true, + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve.exports": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", + "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" }, { "type": "consulting", @@ -257,11 +3512,322 @@ ] }, "node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, "bin": { - "semver": "bin/semver" + "semver": "bin/semver.js" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-jest": { + "version": "29.0.5", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.0.5.tgz", + "integrity": "sha512-PL3UciSgIpQ7f6XjVOmbi96vmDHUqAyqDr8YxzopDqX3kfgYtX1cuNeBjP+L9sFXi6nzsGGA6R3fP3DDDJyrxA==", + "dev": true, + "dependencies": { + "bs-logger": "0.x", + "fast-json-stable-stringify": "2.x", + "jest-util": "^29.0.0", + "json5": "^2.2.3", + "lodash.memoize": "4.x", + "make-error": "1.x", + "semver": "7.x", + "yargs-parser": "^21.0.1" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.0.0-beta.0 <8", + "@jest/types": "^29.0.0", + "babel-jest": "^29.0.0", + "jest": "^29.0.0", + "typescript": ">=4.3" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@jest/types": { + "optional": true + }, + "babel-jest": { + "optional": true + }, + "esbuild": { + "optional": true + } + } + }, + "node_modules/ts-jest/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/typescript": { @@ -277,6 +3843,36 @@ "node": ">=4.2.0" } }, + "node_modules/update-browserslist-db": { + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", + "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, "node_modules/uuid": { "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", @@ -284,6 +3880,140 @@ "bin": { "uuid": "dist/bin/uuid" } + }, + "node_modules/v8-to-istanbul": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz", + "integrity": "sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/xml": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/xml/-/xml-1.0.1.tgz", + "integrity": "sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw==", + "dev": true + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } } } } diff --git a/package.json b/package.json index dcb8f28..b1463d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fireblocks/ts-sdk", - "version": "3.0.3-beta", + "version": "3.0.5-beta", "description": "OpenAPI client for @fireblocks/ts-sdk", "author": "Fireblocks SDK Generator", "repository": { @@ -21,7 +21,10 @@ "build": "tsc && npm run copy:package", "copy:package": "cp package.json dist/", "prepare": "npm run build", - "postversion": "git push && git push --tags" + "postversion": "git push && git push --tags", + "test": "jest --coverage --passWithNoTests --runInBand --detectOpenHandles --forceExit", + "test:watch": "jest --watch", + "test:cov": "jest --coverage" }, "dependencies": { "jsonwebtoken": "8.5.1", @@ -34,6 +37,37 @@ "@types/uuid": "^8.3.2", "@types/platform": "^1.3.6", "@types/node": "^12.11.5", + "@types/jest": "29.4.0", + "jest": "29.4.2", + "jest-junit": "^14.0.0", + "ts-jest": "29.0.5", "typescript": "^4.0" } +, + "jest": { + "moduleFileExtensions": [ + "js", + "json", + "ts" + ], + "rootDir": ".", + "testRegex": ".spec.ts$", + "transform": { + "^.+\\.(t|j)s$": "ts-jest" + }, + "coverageDirectory": "../coverage", + "testEnvironment": "node", + "reporters": [ + "default", + "jest-junit" + ], + "coverageReporters": [ + "json", + "cobertura", + "clover", + "json-summary", + "text", + "lcov" + ] + } } diff --git a/tests/api.spec.ts b/tests/api.spec.ts new file mode 100644 index 0000000..5601762 --- /dev/null +++ b/tests/api.spec.ts @@ -0,0 +1,128 @@ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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 { Fireblocks } from '../client/client'; +import { AxiosError, AxiosRequestConfig, AxiosResponse } from "axios"; +import { convertToFireblocksResponse, FireblocksResponse} from "../response/fireblocksResponse"; +import { FireblocksError } from "../error/fireblocksError"; + +const mockedResponse: AxiosResponse = { + data: 'Mocked data', + status: 200, + statusText: 'OK', + headers: {}, + config: {} as AxiosRequestConfig as any, +}; + +let mockAxios: any; + +jest.mock("../network/axiosManager", () => { + mockAxios = { + request: jest.fn((config: AxiosRequestConfig) => { + return Promise.resolve(mockedResponse); + }), // Mocking the request method to return the mocked response + defaults: jest.fn() + }; + return { + AxiosManager: jest.fn().mockReturnValue({ + axios: mockAxios + }) +} +}); + + +describe("Api Tests", () => { + let fireblocks: Fireblocks; + + beforeEach(() => { + fireblocks = new Fireblocks({ + apiKey: "my-api-key", + basePath: "http://mock-server", + secretKey: "secretKey" + }); + }); + + afterEach(() => { + jest.clearAllMocks(); + }); + + describe('Api Request test', () => { + + it('Should include basePath as url in final request', async () => { + await fireblocks.blockchainsAssets.getSupportedAssets(); + expect(mockAxios.request).toHaveBeenCalledTimes(1); + expect(mockAxios.request).toHaveBeenCalledWith(expect.objectContaining({url: "http://mock-server/supported_assets"})); + }); + + it('Should include baseOptions headers in final request', async () => { + fireblocks = new Fireblocks({ + apiKey: "my-api-key", + basePath: "http://mock-server", + secretKey: "secretKey", + additionalOptions: { + baseOptions: { + headers: { + "X-My-Header": "my-header-value" + } as any + } + } + }); + await fireblocks.blockchainsAssets.getSupportedAssets(); + expect(mockAxios.request).toHaveBeenCalledTimes(1); + expect(mockAxios.request).toHaveBeenCalledWith(expect.objectContaining({headers: {"X-My-Header": "my-header-value"}})); + }); + + it('Should return fireblocks response when response is axios response', async () => { + const res = await fireblocks.blockchainsAssets.getSupportedAssets(); + expect(mockAxios.request).toHaveBeenCalledTimes(1); + expect(res).toEqual(convertToFireblocksResponse(mockedResponse)); + }); + + it('Should return fireblocks error when error is axios error', async () => { + mockAxios.request.mockImplementation(() => { + return Promise.reject(new AxiosError( + "Mocked error message 1", + "BAD_REQUEST", + {} as AxiosRequestConfig as any, + { url: "http://localhost:8080" }, + { + data: {message: 'Mocked error message 2'}, + status: 400, + statusText: "BAD_REQUEST", + headers: {"X-My-Header": "my-header-value"}, + config: {} as AxiosRequestConfig as any, + } + )); + }); + const expectedResponse = new FireblocksResponse( + {message: 'Mocked error message 2'}, + 400, + {"X-My-Header": "my-header-value"} + ); + const expectedError = new FireblocksError( + "Mocked error message 1", + expectedResponse, + { url: "http://localhost:8080" } + ); + await expect(fireblocks.blockchainsAssets.getSupportedAssets()).rejects.toThrowError(expectedError as any); + }); + + it('Should not return fireblocks error when error is not axios error', async () => { + mockAxios.request.mockImplementation(() => { + return Promise.reject(new Error("Mocked error message")); + }); + await expect(fireblocks.blockchainsAssets.getSupportedAssets()).rejects.toThrowError("Mocked error message"); + }); + }); + +}); diff --git a/tests/axiosManager.spec.ts b/tests/axiosManager.spec.ts new file mode 100644 index 0000000..a7bcf4a --- /dev/null +++ b/tests/axiosManager.spec.ts @@ -0,0 +1,130 @@ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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 { version } from "../package.json"; +import { AxiosManager } from '../network/axiosManager'; +import { BearerTokenProvider } from '../network/bearerTokenProvider'; + +// Mocking dependencies +jest.mock('../network/bearerTokenProvider', () => { + return { + BearerTokenProvider: jest.fn().mockImplementation(() => { + return { + getToken: jest.fn().mockReturnValue('mocked token'), + }; + }), + }; +}); + +let mockAxiosRequestInterceptor : any; +let mockAxiosResponseInterceptor : any; +jest.mock('axios', () => { + mockAxiosRequestInterceptor = jest.fn(); + mockAxiosResponseInterceptor = jest.fn(); + return { + create: () => { + return { + interceptors: { + request: {eject: jest.fn(), use: mockAxiosRequestInterceptor}, + response: {eject: jest.fn(), use: mockAxiosResponseInterceptor}, + }, + }; + }, + }; +}); + + + +describe('AxiosManager Tests', () => { + let axiosManager: AxiosManager; + + beforeEach(() => { + axiosManager = new AxiosManager('apiKey', 'secretKey'); + }); + + afterEach(() => { + jest.clearAllMocks(); + }); + + describe('Constructor tests', () => { + it('Should create an instance of BearerTokenProvider', () => { + expect(BearerTokenProvider).toHaveBeenCalledWith('apiKey', 'secretKey'); + }); + + it('Should set request interceptor', async () => { + expect(mockAxiosRequestInterceptor).toHaveBeenCalled(); + }); + + it('Should set response interceptor', () => { + expect(mockAxiosResponseInterceptor).toHaveBeenCalled(); + }); + }); + + describe('GetHeaders tests', () => { + + describe('Default', () => { + + it('Should return fireblocks headers as expected', () => { + const config = { method: 'GET', url: 'http://example.com', data: {} }; + const headers = axiosManager.getHeaders(config as any); + expect(headers).toEqual(expect.objectContaining({ + 'X-API-Key': 'apiKey', + 'Authorization': 'Bearer mocked token', + 'User-Agent': expect.stringContaining('@fireblocks/ts-sdk/'), + 'Content-Type': 'application/json' + })); + }); + }); + + describe('UserAgent Header', () => { + + it('Should return user-agent header starting with package name when default configuration is used', () => { + const config = { method: 'GET', url: 'http://example.com', data: {} }; + const headers = axiosManager.getHeaders(config as any); + const isStartingWithPackageName = headers['User-Agent'].startsWith(`@fireblocks/ts-sdk/${version}`); + expect(isStartingWithPackageName).toEqual(true); + }); + + it('Should return user-agent header with configured userAgent when userAgent option is used', () => { + axiosManager = new AxiosManager('apiKey', 'secretKey', { userAgent: 'my-user-agent' }); + const config = { method: 'GET', url: 'http://example.com', data: {} }; + const headers = axiosManager.getHeaders(config as any); + const isStartingWithInputUserAgent = headers['User-Agent'].startsWith('my-user-agent'); + expect(isStartingWithInputUserAgent).toEqual(true); + }); + + it('Should return headers when isAnonymousPlatform set to true', () => { + axiosManager = new AxiosManager('apiKey', 'secretKey', { isAnonymousPlatform: true }); + const config = { method: 'GET', url: 'http://example.com', data: {} }; + const headers = axiosManager.getHeaders(config as any); + expect(headers['User-Agent']).toEqual(`@fireblocks/ts-sdk/${version}`); + }); + }); + + describe('ApiKey Header', () => { + + it('Should return empty string when api key is missing', () => { + axiosManager = new AxiosManager(undefined as any, 'secretKey', ); + const config = { method: 'GET', url: 'http://example.com', data: {} }; + const headers = axiosManager.getHeaders(config as any); + expect(headers['X-API-Key']).toEqual(""); + }); + + it('Should return empty string when api key is empty string as well', () => { + axiosManager = new AxiosManager("", 'secretKey', ); + const config = { method: 'GET', url: 'http://example.com', data: {} }; + const headers = axiosManager.getHeaders(config as any); + expect(headers['X-API-Key']).toEqual(""); + }); + }); + }); +}); diff --git a/tests/bearerTokenProvider.spec.ts b/tests/bearerTokenProvider.spec.ts new file mode 100644 index 0000000..c216ed5 --- /dev/null +++ b/tests/bearerTokenProvider.spec.ts @@ -0,0 +1,77 @@ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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 { BearerTokenProvider } from '../network/bearerTokenProvider'; +import jwt from 'jsonwebtoken'; + +jest.mock('jsonwebtoken'); +const mockJwtSign = jwt.sign as jest.Mock; + +describe('BearerTokenProvider Tests', () => { + const apiKey = 'your-api-key'; + const secretKey = 'your-secret-key'; + const bearerTokenProvider = new BearerTokenProvider(apiKey, secretKey); + + describe('GetToken tests', () => { + it('Should call jwt.sign with expected parameters for GET when no payload is being used', () => { + const method = 'GET'; + const path = 'https://example.com/api'; + + const expectedToken = 'expected-token-value'; + mockJwtSign.mockReturnValue(expectedToken); + + const token = bearerTokenProvider.getToken(method, path); + + expect(mockJwtSign).toHaveBeenCalledWith( + { + uri: '/api', + nonce: expect.any(String), + iat: expect.any(Number), + exp: expect.any(Number), + sub: apiKey, + bodyHash: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' + }, + secretKey, + { algorithm: 'RS256' } + ); + + expect(token).toBe(expectedToken); + }); + + it('Should return a valid JWT for POST request when payload is used', () => { + const method = 'POST'; + const path = 'https://example.com/api'; + const payload = JSON.stringify({ key: 'value' }); + + const expectedToken = 'expected-token-value'; + mockJwtSign.mockReturnValue(expectedToken); + + const token = bearerTokenProvider.getToken(method, path, payload); + + expect(mockJwtSign).toHaveBeenCalledWith( + { + uri: '/api', + nonce: expect.any(String), + iat: expect.any(Number), + exp: expect.any(Number), + sub: apiKey, + bodyHash: 'e43abcf3375244839c012f9633f95862d232a95b00d5bc7348b3098b9fed7f32' + }, + secretKey, + { algorithm: 'RS256' } + ); + + expect(token).toBe(expectedToken); + }); + }); +}); diff --git a/tests/client.spec.ts b/tests/client.spec.ts new file mode 100644 index 0000000..19a081f --- /dev/null +++ b/tests/client.spec.ts @@ -0,0 +1,345 @@ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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 { Fireblocks } from '../client/client'; +import { AdminQuorumApi, +ApiUserApi, +AssetsApi, +AuditLogsApi, +BlockchainsAssetsApi, +ComplianceApi, +ComplianceScreeningConfigurationApi, +ConsoleUserApi, +ContractsApi, +ExchangeAccountsApi, +ExternalWalletsApi, +FiatAccountsApi, +GasStationsApi, +InternalWalletsApi, +JobManagementApi, +NFTsApi, +NetworkConnectionsApi, +OTABetaApi, +OffExchangesApi, +PaymentsPayoutApi, +PolicyEditorBetaApi, +ResetDeviceApi, +SmartTransferApi, +StakingBetaApi, +TransactionsApi, +TravelRuleBetaApi, +UserGroupsBetaApi, +UsersApi, +VaultsApi, +Web3ConnectionsApi, +WebhooksApi, +WhitelistIpAddressesApi, +WorkspaceApi, +WorkspaceStatusBetaApi +} from '../api'; +import { AxiosRequestConfig, AxiosResponse } from "axios"; +import { convertToFireblocksResponse } from "../response/fireblocksResponse"; +import { Configuration } from "../configuration"; + +let mockAdminQuorumApi: jest.Mock; +let mockApiUserApi: jest.Mock; +let mockAssetsApi: jest.Mock; +let mockAuditLogsApi: jest.Mock; +let mockBlockchainsAssetsApi: jest.Mock; +let mockComplianceApi: jest.Mock; +let mockComplianceScreeningConfigurationApi: jest.Mock; +let mockConsoleUserApi: jest.Mock; +let mockContractsApi: jest.Mock; +let mockExchangeAccountsApi: jest.Mock; +let mockExternalWalletsApi: jest.Mock; +let mockFiatAccountsApi: jest.Mock; +let mockGasStationsApi: jest.Mock; +let mockInternalWalletsApi: jest.Mock; +let mockJobManagementApi: jest.Mock; +let mockNFTsApi: jest.Mock; +let mockNetworkConnectionsApi: jest.Mock; +let mockOTABetaApi: jest.Mock; +let mockOffExchangesApi: jest.Mock; +let mockPaymentsPayoutApi: jest.Mock; +let mockPolicyEditorBetaApi: jest.Mock; +let mockResetDeviceApi: jest.Mock; +let mockSmartTransferApi: jest.Mock; +let mockStakingBetaApi: jest.Mock; +let mockTransactionsApi: jest.Mock; +let mockTravelRuleBetaApi: jest.Mock; +let mockUserGroupsBetaApi: jest.Mock; +let mockUsersApi: jest.Mock; +let mockVaultsApi: jest.Mock; +let mockWeb3ConnectionsApi: jest.Mock; +let mockWebhooksApi: jest.Mock; +let mockWhitelistIpAddressesApi: jest.Mock; +let mockWorkspaceApi: jest.Mock; +let mockWorkspaceStatusBetaApi: jest.Mock; + +jest.mock('../api', () => { + mockAdminQuorumApi = jest.fn(); + mockApiUserApi = jest.fn(); + mockAssetsApi = jest.fn(); + mockAuditLogsApi = jest.fn(); + mockBlockchainsAssetsApi = jest.fn(); + mockComplianceApi = jest.fn(); + mockComplianceScreeningConfigurationApi = jest.fn(); + mockConsoleUserApi = jest.fn(); + mockContractsApi = jest.fn(); + mockExchangeAccountsApi = jest.fn(); + mockExternalWalletsApi = jest.fn(); + mockFiatAccountsApi = jest.fn(); + mockGasStationsApi = jest.fn(); + mockInternalWalletsApi = jest.fn(); + mockJobManagementApi = jest.fn(); + mockNFTsApi = jest.fn(); + mockNetworkConnectionsApi = jest.fn(); + mockOTABetaApi = jest.fn(); + mockOffExchangesApi = jest.fn(); + mockPaymentsPayoutApi = jest.fn(); + mockPolicyEditorBetaApi = jest.fn(); + mockResetDeviceApi = jest.fn(); + mockSmartTransferApi = jest.fn(); + mockStakingBetaApi = jest.fn(); + mockTransactionsApi = jest.fn(); + mockTravelRuleBetaApi = jest.fn(); + mockUserGroupsBetaApi = jest.fn(); + mockUsersApi = jest.fn(); + mockVaultsApi = jest.fn(); + mockWeb3ConnectionsApi = jest.fn(); + mockWebhooksApi = jest.fn(); + mockWhitelistIpAddressesApi = jest.fn(); + mockWorkspaceApi = jest.fn(); + mockWorkspaceStatusBetaApi = jest.fn(); + const actual = jest.requireActual('../api'); + return { + ...actual, + AdminQuorumApi: mockAdminQuorumApi, + ApiUserApi: mockApiUserApi, + AssetsApi: mockAssetsApi, + AuditLogsApi: mockAuditLogsApi, + BlockchainsAssetsApi: mockBlockchainsAssetsApi, + ComplianceApi: mockComplianceApi, + ComplianceScreeningConfigurationApi: mockComplianceScreeningConfigurationApi, + ConsoleUserApi: mockConsoleUserApi, + ContractsApi: mockContractsApi, + ExchangeAccountsApi: mockExchangeAccountsApi, + ExternalWalletsApi: mockExternalWalletsApi, + FiatAccountsApi: mockFiatAccountsApi, + GasStationsApi: mockGasStationsApi, + InternalWalletsApi: mockInternalWalletsApi, + JobManagementApi: mockJobManagementApi, + NFTsApi: mockNFTsApi, + NetworkConnectionsApi: mockNetworkConnectionsApi, + OTABetaApi: mockOTABetaApi, + OffExchangesApi: mockOffExchangesApi, + PaymentsPayoutApi: mockPaymentsPayoutApi, + PolicyEditorBetaApi: mockPolicyEditorBetaApi, + ResetDeviceApi: mockResetDeviceApi, + SmartTransferApi: mockSmartTransferApi, + StakingBetaApi: mockStakingBetaApi, + TransactionsApi: mockTransactionsApi, + TravelRuleBetaApi: mockTravelRuleBetaApi, + UserGroupsBetaApi: mockUserGroupsBetaApi, + UsersApi: mockUsersApi, + VaultsApi: mockVaultsApi, + Web3ConnectionsApi: mockWeb3ConnectionsApi, + WebhooksApi: mockWebhooksApi, + WhitelistIpAddressesApi: mockWhitelistIpAddressesApi, + WorkspaceApi: mockWorkspaceApi, + WorkspaceStatusBetaApi: mockWorkspaceStatusBetaApi, + }; +}); + +const mockedResponse: AxiosResponse = { + data: 'Mocked data', + status: 200, + statusText: 'OK', + headers: {}, + config: {} as AxiosRequestConfig as any, +}; + +let mockAxios: any; + +jest.mock("../network/axiosManager", () => { + mockAxios = { + request: jest.fn((config: AxiosRequestConfig) => { + return Promise.resolve(mockedResponse); + }), // Mocking the request method to return the mocked response + defaults: jest.fn() + }; + return { + AxiosManager: jest.fn().mockReturnValue({ + axios: mockAxios + }) +} +}); + + +describe("Fireblocks Client Tests", () => { + let fireblocks: Fireblocks; + + beforeEach(() => { + fireblocks = new Fireblocks({ + apiKey: "my-api-key", + basePath: "http://mock-server", + secretKey: "secretKey" + }); + }); + + afterEach(() => { + jest.clearAllMocks(); + }); + + describe('Api getters tests', () => { + const expectedConfig = new Configuration({ basePath: "http://mock-server" }); + + it('Should return AdminQuorumApi', async () => { + expect(fireblocks.adminQuorum).toBeInstanceOf(AdminQuorumApi); + expect(mockAdminQuorumApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return ApiUserApi', async () => { + expect(fireblocks.apiUser).toBeInstanceOf(ApiUserApi); + expect(mockApiUserApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return AssetsApi', async () => { + expect(fireblocks.assets).toBeInstanceOf(AssetsApi); + expect(mockAssetsApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return AuditLogsApi', async () => { + expect(fireblocks.auditLogs).toBeInstanceOf(AuditLogsApi); + expect(mockAuditLogsApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return BlockchainsAssetsApi', async () => { + expect(fireblocks.blockchainsAssets).toBeInstanceOf(BlockchainsAssetsApi); + expect(mockBlockchainsAssetsApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return ComplianceApi', async () => { + expect(fireblocks.compliance).toBeInstanceOf(ComplianceApi); + expect(mockComplianceApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return ComplianceScreeningConfigurationApi', async () => { + expect(fireblocks.complianceScreeningConfiguration).toBeInstanceOf(ComplianceScreeningConfigurationApi); + expect(mockComplianceScreeningConfigurationApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return ConsoleUserApi', async () => { + expect(fireblocks.consoleUser).toBeInstanceOf(ConsoleUserApi); + expect(mockConsoleUserApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return ContractsApi', async () => { + expect(fireblocks.contracts).toBeInstanceOf(ContractsApi); + expect(mockContractsApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return ExchangeAccountsApi', async () => { + expect(fireblocks.exchangeAccounts).toBeInstanceOf(ExchangeAccountsApi); + expect(mockExchangeAccountsApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return ExternalWalletsApi', async () => { + expect(fireblocks.externalWallets).toBeInstanceOf(ExternalWalletsApi); + expect(mockExternalWalletsApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return FiatAccountsApi', async () => { + expect(fireblocks.fiatAccounts).toBeInstanceOf(FiatAccountsApi); + expect(mockFiatAccountsApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return GasStationsApi', async () => { + expect(fireblocks.gasStations).toBeInstanceOf(GasStationsApi); + expect(mockGasStationsApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return InternalWalletsApi', async () => { + expect(fireblocks.internalWallets).toBeInstanceOf(InternalWalletsApi); + expect(mockInternalWalletsApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return JobManagementApi', async () => { + expect(fireblocks.jobManagement).toBeInstanceOf(JobManagementApi); + expect(mockJobManagementApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return NFTsApi', async () => { + expect(fireblocks.nFTs).toBeInstanceOf(NFTsApi); + expect(mockNFTsApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return NetworkConnectionsApi', async () => { + expect(fireblocks.networkConnections).toBeInstanceOf(NetworkConnectionsApi); + expect(mockNetworkConnectionsApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return OTABetaApi', async () => { + expect(fireblocks.oTABeta).toBeInstanceOf(OTABetaApi); + expect(mockOTABetaApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return OffExchangesApi', async () => { + expect(fireblocks.offExchanges).toBeInstanceOf(OffExchangesApi); + expect(mockOffExchangesApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return PaymentsPayoutApi', async () => { + expect(fireblocks.paymentsPayout).toBeInstanceOf(PaymentsPayoutApi); + expect(mockPaymentsPayoutApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return PolicyEditorBetaApi', async () => { + expect(fireblocks.policyEditorBeta).toBeInstanceOf(PolicyEditorBetaApi); + expect(mockPolicyEditorBetaApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return ResetDeviceApi', async () => { + expect(fireblocks.resetDevice).toBeInstanceOf(ResetDeviceApi); + expect(mockResetDeviceApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return SmartTransferApi', async () => { + expect(fireblocks.smartTransfer).toBeInstanceOf(SmartTransferApi); + expect(mockSmartTransferApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return StakingBetaApi', async () => { + expect(fireblocks.stakingBeta).toBeInstanceOf(StakingBetaApi); + expect(mockStakingBetaApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return TransactionsApi', async () => { + expect(fireblocks.transactions).toBeInstanceOf(TransactionsApi); + expect(mockTransactionsApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return TravelRuleBetaApi', async () => { + expect(fireblocks.travelRuleBeta).toBeInstanceOf(TravelRuleBetaApi); + expect(mockTravelRuleBetaApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return UserGroupsBetaApi', async () => { + expect(fireblocks.userGroupsBeta).toBeInstanceOf(UserGroupsBetaApi); + expect(mockUserGroupsBetaApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return UsersApi', async () => { + expect(fireblocks.users).toBeInstanceOf(UsersApi); + expect(mockUsersApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return VaultsApi', async () => { + expect(fireblocks.vaults).toBeInstanceOf(VaultsApi); + expect(mockVaultsApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return Web3ConnectionsApi', async () => { + expect(fireblocks.web3Connections).toBeInstanceOf(Web3ConnectionsApi); + expect(mockWeb3ConnectionsApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return WebhooksApi', async () => { + expect(fireblocks.webhooks).toBeInstanceOf(WebhooksApi); + expect(mockWebhooksApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return WhitelistIpAddressesApi', async () => { + expect(fireblocks.whitelistIpAddresses).toBeInstanceOf(WhitelistIpAddressesApi); + expect(mockWhitelistIpAddressesApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return WorkspaceApi', async () => { + expect(fireblocks.workspace).toBeInstanceOf(WorkspaceApi); + expect(mockWorkspaceApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + it('Should return WorkspaceStatusBetaApi', async () => { + expect(fireblocks.workspaceStatusBeta).toBeInstanceOf(WorkspaceStatusBetaApi); + expect(mockWorkspaceStatusBetaApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); + + }); + +}); diff --git a/tests/fireblocksError.spec.ts b/tests/fireblocksError.spec.ts new file mode 100644 index 0000000..7734fc1 --- /dev/null +++ b/tests/fireblocksError.spec.ts @@ -0,0 +1,93 @@ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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 { AxiosRequestConfig, AxiosError } from "axios"; +import { FireblocksError, handleError } from "../error/fireblocksError"; + + +describe("Fireblocks Error Tests", () => { + + describe('HandleError tests', () => { + + it('Should return full fireblocks error when axios error schema is full', async () => { + const axiosError = new AxiosError( + "Mocked error message 1", + "BAD_REQUEST", + {} as AxiosRequestConfig as any, + { url: "http://localhost:8080" }, + { + data: {message: 'Mocked error message 2'}, + status: 400, + statusText: "BAD_REQUEST", + headers: {"X-My-Header": "my-header-value"}, + config: {} as AxiosRequestConfig as any, + } + ); + const res = handleError(axiosError); + expect(res).toBeInstanceOf(FireblocksError); + expect(res).toEqual({ + message: "Mocked error message 2", + response: { + data: {message: 'Mocked error message 2'}, + statusCode: 400, + headers: {"X-My-Header": "my-header-value"}, + }, + request: { + url: "http://localhost:8080" + }, + }); + }); + + it('Should return error with message when axios error missing response property', async () => { + const axiosError = new AxiosError( + "Mocked error message 1", + "BAD_REQUEST", + {} as AxiosRequestConfig as any, + { url: "http://localhost:8080" }, + undefined + ); + const res = handleError(axiosError); + expect(res).toBeInstanceOf(FireblocksError); + expect(res).toEqual({ + message: "Mocked error message 1", + response: undefined, + request: { + url: "http://localhost:8080" + }, + }); + }); + + it('Should return error with message when axios error missing response and message properties', async () => { + const axiosError = new AxiosError( + undefined, + "BAD_REQUEST", + {} as AxiosRequestConfig as any, + undefined, + undefined + ); + const res = handleError(axiosError); + expect(res).toBeInstanceOf(FireblocksError); + expect(res).toEqual({ + message: "No response from server", + response: undefined, + request: undefined, + }); + }); + + it('Should not convert error when error is not axios error', async () => { + const error = new Error("Mocked error message 1"); + const res = handleError(error); + expect(res).toBeInstanceOf(Error); + expect(res).toEqual(error); + }); + }); +}); diff --git a/tests/fireblocksResponse.spec.ts b/tests/fireblocksResponse.spec.ts new file mode 100644 index 0000000..c1cd3d7 --- /dev/null +++ b/tests/fireblocksResponse.spec.ts @@ -0,0 +1,52 @@ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@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 { convertToFireblocksResponse } from "../response/fireblocksResponse"; +import { AxiosRequestConfig, AxiosResponse } from "axios"; + + +describe("Fireblocks Response Tests", () => { + + describe('ConvertToFireblocksResponse tests', () => { + + it('Should return full fireblocks response when axios response schema is full', async () => { + const axiosResponse = { + data: 'Mocked data', + status: 200, + statusText: "200", + headers: {"X-My-Header": "my-header-value"}, + config: {} as AxiosRequestConfig as any, + }; + const res = convertToFireblocksResponse(axiosResponse); + expect(res).toEqual({ + data: 'Mocked data', + statusCode: 200, + headers: {"X-My-Header": "my-header-value"} + }); + }); + + it('Should return data undefined when axios response is missing data property', async () => { + const axiosResponse = { + status: 200, + statusText: "200", + headers: {"X-My-Header": "my-header-value"}, + config: {} as AxiosRequestConfig as any, + }; + const res = convertToFireblocksResponse(axiosResponse as any); + expect(res).toEqual({ + data: undefined, + statusCode: 200, + headers: {"X-My-Header": "my-header-value"} + }); + }); + }); +});