diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 9125589..c1a33b2 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -335,6 +335,8 @@ ReadAbiFunction.md ReadCallFunctionDto.md RedeemFundsToLinkedDDAResponse.md RegisterNewAssetRequest.md +RelatedRequestDto.md +RelatedRequestStatusType.md RelatedTransactionDto.md RemoveCollateralRequestBody.md RenameCosigner.md @@ -385,7 +387,9 @@ SignedMessageSignature.md SignedMessages.md SigningKeyDto.md SmartTransferApi.md +SmartTransferApproveTerm.md SmartTransferBadRequestResponse.md +SmartTransferCoinStatistic.md SmartTransferCreateTicket.md SmartTransferCreateTicketTerm.md SmartTransferForbiddenResponse.md @@ -395,6 +399,9 @@ SmartTransferNotFoundResponse.md SmartTransferSetTicketExpiration.md SmartTransferSetTicketExternalId.md SmartTransferSetUserGroups.md +SmartTransferStatistic.md +SmartTransferStatisticInflow.md +SmartTransferStatisticOutflow.md SmartTransferSubmitTicket.md SmartTransferTicket.md SmartTransferTicketFilteredResponse.md @@ -483,6 +490,7 @@ TravelRuleVASP.md TravelRuleValidateFullTransactionRequest.md TravelRuleValidateTransactionRequest.md TravelRuleValidateTransactionResponse.md +TravelRuleVaspForVault.md UnfreezeTransactionResponse.md UnmanagedWallet.md UnspentInput.md @@ -885,6 +893,8 @@ models/read-abi-function.ts models/read-call-function-dto.ts models/redeem-funds-to-linked-ddaresponse.ts models/register-new-asset-request.ts +models/related-request-dto.ts +models/related-request-status-type.ts models/related-transaction-dto.ts models/remove-collateral-request-body.ts models/rename-cosigner.ts @@ -933,7 +943,9 @@ models/signed-message-signature.ts models/signed-message.ts models/signed-messages.ts models/signing-key-dto.ts +models/smart-transfer-approve-term.ts models/smart-transfer-bad-request-response.ts +models/smart-transfer-coin-statistic.ts models/smart-transfer-create-ticket-term.ts models/smart-transfer-create-ticket.ts models/smart-transfer-forbidden-response.ts @@ -943,6 +955,9 @@ models/smart-transfer-not-found-response.ts models/smart-transfer-set-ticket-expiration.ts models/smart-transfer-set-ticket-external-id.ts models/smart-transfer-set-user-groups.ts +models/smart-transfer-statistic-inflow.ts +models/smart-transfer-statistic-outflow.ts +models/smart-transfer-statistic.ts models/smart-transfer-submit-ticket.ts models/smart-transfer-ticket-filtered-response.ts models/smart-transfer-ticket-response.ts @@ -1026,6 +1041,7 @@ models/travel-rule-update-vaspdetails.ts models/travel-rule-validate-full-transaction-request.ts models/travel-rule-validate-transaction-request.ts models/travel-rule-validate-transaction-response.ts +models/travel-rule-vasp-for-vault.ts models/travel-rule-vasp.ts models/unfreeze-transaction-response.ts models/unmanaged-wallet.ts diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 9d4b3b8..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,69 +0,0 @@ -### Changelog - -All notable changes to this project will be documented in this file. Dates are displayed in UTC. - -### [v4.0.0](https://github.com/fireblocks/ts-sdk/compare/v3.1.0...v4.0.0) - -> 17 September 2024 - -- Generated SDK #237 [`#107`](https://github.com/fireblocks/ts-sdk/pull/107) - -#### [v3.1.0](https://github.com/fireblocks/ts-sdk/compare/v3.0.0...v3.1.0) - -> 25 July 2024 - -- Generated SDK #6749 [`#102`](https://github.com/fireblocks/ts-sdk/pull/102) - -### [v3.0.0](https://github.com/fireblocks/ts-sdk/compare/v2.1.0...v3.0.0) - -> 17 July 2024 - -- Generated SDK #6152 [`#90`](https://github.com/fireblocks/ts-sdk/pull/90) -- Generated SDK #2589 [`#86`](https://github.com/fireblocks/ts-sdk/pull/86) -- Generated SDK #7882 [`#85`](https://github.com/fireblocks/ts-sdk/pull/85) -- Generated SDK #8418 [`#84`](https://github.com/fireblocks/ts-sdk/pull/84) -- Generated SDK #3524 [`#83`](https://github.com/fireblocks/ts-sdk/pull/83) -- Generated SDK #7984 [`#82`](https://github.com/fireblocks/ts-sdk/pull/82) -- Generated SDK #2873 [`#81`](https://github.com/fireblocks/ts-sdk/pull/81) - -#### [v2.1.0](https://github.com/fireblocks/ts-sdk/compare/v2.0.0...v2.1.0) - -> 4 June 2024 - -- Generated SDK for version COR-46191/fix_pipelines [`#44`](https://github.com/fireblocks/ts-sdk/pull/44) - -### [v2.0.0](https://github.com/fireblocks/ts-sdk/compare/v1.1.0...v2.0.0) - -> 8 May 2024 - -- feat: add tokenization api [`#35`](https://github.com/fireblocks/ts-sdk/pull/35) - -#### [v1.1.0](https://github.com/fireblocks/ts-sdk/compare/v1.0.1...v1.1.0) - -> 17 April 2024 - -- feat: adding consigners beta api [`#34`](https://github.com/fireblocks/ts-sdk/pull/34) -- fix: modify error message when secretKey missing and fix readme doc [`#33`](https://github.com/fireblocks/ts-sdk/pull/33) - -#### [v1.0.1](https://github.com/fireblocks/ts-sdk/compare/v1.0.0...v1.0.1) - -> 7 April 2024 - -- Generated SDK for version v1.0.1 [`#32`](https://github.com/fireblocks/ts-sdk/pull/32) - -#### v1.0.0 - -> 7 April 2024 - -- Generated SDK for version v1.0.0 GA [`#31`](https://github.com/fireblocks/ts-sdk/pull/31) -- add_license [`#30`](https://github.com/fireblocks/ts-sdk/pull/30) -- version_3_0_6_beta [`#29`](https://github.com/fireblocks/ts-sdk/pull/29) -- version_3_0_5_beta [`#27`](https://github.com/fireblocks/ts-sdk/pull/27) -- Version 3.0.4-beta [`#26`](https://github.com/fireblocks/ts-sdk/pull/26) -- Fireblocks api spec/generated/9818 [`#25`](https://github.com/fireblocks/ts-sdk/pull/25) -- Generated SDK for version 9817 [`#24`](https://github.com/fireblocks/ts-sdk/pull/24) -- Generated SDK for version master [`#23`](https://github.com/fireblocks/ts-sdk/pull/23) -- Added Idempotency & NCW headers support [`#22`](https://github.com/fireblocks/ts-sdk/pull/22) -- API SDK Improvments [`#21`](https://github.com/fireblocks/ts-sdk/pull/21) -- Update README.md [`#18`](https://github.com/fireblocks/ts-sdk/pull/18) -- Update README.md [`#17`](https://github.com/fireblocks/ts-sdk/pull/17) diff --git a/README.md b/README.md index 6ea064b..583ebe8 100644 --- a/README.md +++ b/README.md @@ -144,9 +144,9 @@ Class | Method | HTTP request | Description *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 -*ContractInteractionsApi* | [**getDeployedContractAbi**](docs/apis/ContractInteractionsApi.md#getDeployedContractAbi) | **GET** /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions | Return deployed contract\'s ABI -*ContractInteractionsApi* | [**readCallFunction**](docs/apis/ContractInteractionsApi.md#readCallFunction) | **POST** /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/read | Call a read function on a deployed contract -*ContractInteractionsApi* | [**writeCallFunction**](docs/apis/ContractInteractionsApi.md#writeCallFunction) | **POST** /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/write | Call a write function on a deployed contract +*ContractInteractionsApi* | [**getDeployedContractAbi**](docs/apis/ContractInteractionsApi.md#getDeployedContractAbi) | **GET** /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions | Return deployed contract\'s ABI +*ContractInteractionsApi* | [**readCallFunction**](docs/apis/ContractInteractionsApi.md#readCallFunction) | **POST** /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions/read | Call a read function on a deployed contract +*ContractInteractionsApi* | [**writeCallFunction**](docs/apis/ContractInteractionsApi.md#writeCallFunction) | **POST** /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions/write | Call a write function on a deployed contract *ContractTemplatesApi* | [**deleteContractTemplateById**](docs/apis/ContractTemplatesApi.md#deleteContractTemplateById) | **DELETE** /tokenization/templates/{contractTemplateId} | Delete a contract template by id *ContractTemplatesApi* | [**deployContract**](docs/apis/ContractTemplatesApi.md#deployContract) | **POST** /tokenization/templates/{contractTemplateId}/deploy | Deploy contract *ContractTemplatesApi* | [**getConstructorByContractTemplateId**](docs/apis/ContractTemplatesApi.md#getConstructorByContractTemplateId) | **GET** /tokenization/templates/{contractTemplateId}/constructor | Return contract template\'s constructor @@ -255,13 +255,16 @@ Class | Method | HTTP request | Description *PolicyEditorBetaApi* | [**publishPolicyRules**](docs/apis/PolicyEditorBetaApi.md#publishPolicyRules) | **POST** /tap/publish | Send publish request for a set of policy rules *PolicyEditorBetaApi* | [**updateDraft**](docs/apis/PolicyEditorBetaApi.md#updateDraft) | **PUT** /tap/draft | Update the draft with a new set of rules *ResetDeviceApi* | [**resetDevice**](docs/apis/ResetDeviceApi.md#resetDevice) | **POST** /management/users/{id}/reset_device | Resets device +*SmartTransferApi* | [**approveDvPTicketTerm**](docs/apis/SmartTransferApi.md#approveDvPTicketTerm) | **PUT** /smart_transfers/{ticketId}/terms/{termId}/dvp/approve | Define funding source and give approve to contract to transfer asset *SmartTransferApi* | [**cancelTicket**](docs/apis/SmartTransferApi.md#cancelTicket) | **PUT** /smart-transfers/{ticketId}/cancel | Cancel Ticket *SmartTransferApi* | [**createTicket**](docs/apis/SmartTransferApi.md#createTicket) | **POST** /smart-transfers | Create Ticket *SmartTransferApi* | [**createTicketTerm**](docs/apis/SmartTransferApi.md#createTicketTerm) | **POST** /smart-transfers/{ticketId}/terms | Create leg (term) *SmartTransferApi* | [**findTicketById**](docs/apis/SmartTransferApi.md#findTicketById) | **GET** /smart-transfers/{ticketId} | Search Tickets by ID *SmartTransferApi* | [**findTicketTermById**](docs/apis/SmartTransferApi.md#findTicketTermById) | **GET** /smart-transfers/{ticketId}/terms/{termId} | Search ticket by leg (term) ID *SmartTransferApi* | [**fulfillTicket**](docs/apis/SmartTransferApi.md#fulfillTicket) | **PUT** /smart-transfers/{ticketId}/fulfill | Fund ticket manually +*SmartTransferApi* | [**fundDvpTicket**](docs/apis/SmartTransferApi.md#fundDvpTicket) | **PUT** /smart_transfers/{ticketId}/dvp/fund | Fund dvp ticket *SmartTransferApi* | [**fundTicketTerm**](docs/apis/SmartTransferApi.md#fundTicketTerm) | **PUT** /smart-transfers/{ticketId}/terms/{termId}/fund | Define funding source +*SmartTransferApi* | [**getSmartTransferStatistic**](docs/apis/SmartTransferApi.md#getSmartTransferStatistic) | **GET** /smart_transfers/statistic | Get smart transfers statistic *SmartTransferApi* | [**getSmartTransferUserGroups**](docs/apis/SmartTransferApi.md#getSmartTransferUserGroups) | **GET** /smart-transfers/settings/user-groups | Get user group *SmartTransferApi* | [**manuallyFundTicketTerm**](docs/apis/SmartTransferApi.md#manuallyFundTicketTerm) | **PUT** /smart-transfers/{ticketId}/terms/{termId}/manually-fund | Manually add term transaction *SmartTransferApi* | [**removeTicketTerm**](docs/apis/SmartTransferApi.md#removeTicketTerm) | **DELETE** /smart-transfers/{ticketId}/terms/{termId} | Delete ticket leg (term) @@ -308,6 +311,8 @@ 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* | [**getVaspForVault**](docs/apis/TravelRuleBetaApi.md#getVaspForVault) | **GET** /screening/travel_rule/vault/{vaultAccountId}/vasp | Get assigned VASP to vault +*TravelRuleBetaApi* | [**setVaspForVault**](docs/apis/TravelRuleBetaApi.md#setVaspForVault) | **POST** /screening/travel_rule/vault/{vaultAccountId}/vasp | Assign VASP to vault *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 @@ -661,6 +666,8 @@ Class | Method | HTTP request | Description - [ReadCallFunctionDto](docs/models/ReadCallFunctionDto.md) - [RedeemFundsToLinkedDDAResponse](docs/models/RedeemFundsToLinkedDDAResponse.md) - [RegisterNewAssetRequest](docs/models/RegisterNewAssetRequest.md) + - [RelatedRequestDto](docs/models/RelatedRequestDto.md) + - [RelatedRequestStatusType](docs/models/RelatedRequestStatusType.md) - [RelatedTransactionDto](docs/models/RelatedTransactionDto.md) - [RemoveCollateralRequestBody](docs/models/RemoveCollateralRequestBody.md) - [RenameCosigner](docs/models/RenameCosigner.md) @@ -709,7 +716,9 @@ Class | Method | HTTP request | Description - [SignedMessageSignature](docs/models/SignedMessageSignature.md) - [SignedMessages](docs/models/SignedMessages.md) - [SigningKeyDto](docs/models/SigningKeyDto.md) + - [SmartTransferApproveTerm](docs/models/SmartTransferApproveTerm.md) - [SmartTransferBadRequestResponse](docs/models/SmartTransferBadRequestResponse.md) + - [SmartTransferCoinStatistic](docs/models/SmartTransferCoinStatistic.md) - [SmartTransferCreateTicket](docs/models/SmartTransferCreateTicket.md) - [SmartTransferCreateTicketTerm](docs/models/SmartTransferCreateTicketTerm.md) - [SmartTransferForbiddenResponse](docs/models/SmartTransferForbiddenResponse.md) @@ -719,6 +728,9 @@ Class | Method | HTTP request | Description - [SmartTransferSetTicketExpiration](docs/models/SmartTransferSetTicketExpiration.md) - [SmartTransferSetTicketExternalId](docs/models/SmartTransferSetTicketExternalId.md) - [SmartTransferSetUserGroups](docs/models/SmartTransferSetUserGroups.md) + - [SmartTransferStatistic](docs/models/SmartTransferStatistic.md) + - [SmartTransferStatisticInflow](docs/models/SmartTransferStatisticInflow.md) + - [SmartTransferStatisticOutflow](docs/models/SmartTransferStatisticOutflow.md) - [SmartTransferSubmitTicket](docs/models/SmartTransferSubmitTicket.md) - [SmartTransferTicket](docs/models/SmartTransferTicket.md) - [SmartTransferTicketFilteredResponse](docs/models/SmartTransferTicketFilteredResponse.md) @@ -803,6 +815,7 @@ Class | Method | HTTP request | Description - [TravelRuleValidateFullTransactionRequest](docs/models/TravelRuleValidateFullTransactionRequest.md) - [TravelRuleValidateTransactionRequest](docs/models/TravelRuleValidateTransactionRequest.md) - [TravelRuleValidateTransactionResponse](docs/models/TravelRuleValidateTransactionResponse.md) + - [TravelRuleVaspForVault](docs/models/TravelRuleVaspForVault.md) - [UnfreezeTransactionResponse](docs/models/UnfreezeTransactionResponse.md) - [UnmanagedWallet](docs/models/UnmanagedWallet.md) - [UnspentInput](docs/models/UnspentInput.md) diff --git a/api/contract-interactions-api.ts b/api/contract-interactions-api.ts index 36ec67e..6acf357 100644 --- a/api/contract-interactions-api.ts +++ b/api/contract-interactions-api.ts @@ -48,17 +48,17 @@ export const ContractInteractionsApiAxiosParamCreator = function (configuration? * Return deployed contract\'s ABI by blockchain native asset id and contract address * @summary Return deployed contract\'s ABI * @param {string} contractAddress The contract\'s onchain address - * @param {string} assetId + * @param {string} baseAssetId * @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} */ - getDeployedContractAbi: async (contractAddress: string, assetId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + getDeployedContractAbi: async (contractAddress: string, baseAssetId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getDeployedContractAbi', 'contractAddress', contractAddress) - assertParamExistsAndNotEmpty('getDeployedContractAbi', 'assetId', assetId) - const localVarPath = `/contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions` + assertParamExistsAndNotEmpty('getDeployedContractAbi', 'baseAssetId', baseAssetId) + const localVarPath = `/contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions` .replace(`{${"contractAddress"}}`, encodeURIComponent(String(contractAddress))) - .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId))); + .replace(`{${"baseAssetId"}}`, encodeURIComponent(String(baseAssetId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -90,18 +90,18 @@ export const ContractInteractionsApiAxiosParamCreator = function (configuration? * @summary Call a read function on a deployed contract * @param {ReadCallFunctionDto} readCallFunctionDto * @param {string} contractAddress The contract\'s onchain address - * @param {string} assetId + * @param {string} baseAssetId * @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} */ - readCallFunction: async (readCallFunctionDto: ReadCallFunctionDto, contractAddress: string, assetId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + readCallFunction: async (readCallFunctionDto: ReadCallFunctionDto, contractAddress: string, baseAssetId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('readCallFunction', 'readCallFunctionDto', readCallFunctionDto) assertParamExistsAndNotEmpty('readCallFunction', 'contractAddress', contractAddress) - assertParamExistsAndNotEmpty('readCallFunction', 'assetId', assetId) - const localVarPath = `/contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/read` + assertParamExistsAndNotEmpty('readCallFunction', 'baseAssetId', baseAssetId) + const localVarPath = `/contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions/read` .replace(`{${"contractAddress"}}`, encodeURIComponent(String(contractAddress))) - .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId))); + .replace(`{${"baseAssetId"}}`, encodeURIComponent(String(baseAssetId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -136,18 +136,18 @@ export const ContractInteractionsApiAxiosParamCreator = function (configuration? * @summary Call a write function on a deployed contract * @param {WriteCallFunctionDto} writeCallFunctionDto * @param {string} contractAddress The contract\'s onchain address - * @param {string} assetId + * @param {string} baseAssetId * @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} */ - writeCallFunction: async (writeCallFunctionDto: WriteCallFunctionDto, contractAddress: string, assetId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + writeCallFunction: async (writeCallFunctionDto: WriteCallFunctionDto, contractAddress: string, baseAssetId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('writeCallFunction', 'writeCallFunctionDto', writeCallFunctionDto) assertParamExistsAndNotEmpty('writeCallFunction', 'contractAddress', contractAddress) - assertParamExistsAndNotEmpty('writeCallFunction', 'assetId', assetId) - const localVarPath = `/contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/write` + assertParamExistsAndNotEmpty('writeCallFunction', 'baseAssetId', baseAssetId) + const localVarPath = `/contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions/write` .replace(`{${"contractAddress"}}`, encodeURIComponent(String(contractAddress))) - .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId))); + .replace(`{${"baseAssetId"}}`, encodeURIComponent(String(baseAssetId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -191,13 +191,13 @@ export const ContractInteractionsApiFp = function(configuration?: Configuration) * Return deployed contract\'s ABI by blockchain native asset id and contract address * @summary Return deployed contract\'s ABI * @param {string} contractAddress The contract\'s onchain address - * @param {string} assetId + * @param {string} baseAssetId * @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 getDeployedContractAbi(contractAddress: string, assetId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getDeployedContractAbi(contractAddress, assetId, idempotencyKey, options); + async getDeployedContractAbi(contractAddress: string, baseAssetId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDeployedContractAbi(contractAddress, baseAssetId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ContractInteractionsApi.getDeployedContractAbi']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -207,13 +207,13 @@ export const ContractInteractionsApiFp = function(configuration?: Configuration) * @summary Call a read function on a deployed contract * @param {ReadCallFunctionDto} readCallFunctionDto * @param {string} contractAddress The contract\'s onchain address - * @param {string} assetId + * @param {string} baseAssetId * @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 readCallFunction(readCallFunctionDto: ReadCallFunctionDto, contractAddress: string, assetId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.readCallFunction(readCallFunctionDto, contractAddress, assetId, idempotencyKey, options); + async readCallFunction(readCallFunctionDto: ReadCallFunctionDto, contractAddress: string, baseAssetId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.readCallFunction(readCallFunctionDto, contractAddress, baseAssetId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ContractInteractionsApi.readCallFunction']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -223,13 +223,13 @@ export const ContractInteractionsApiFp = function(configuration?: Configuration) * @summary Call a write function on a deployed contract * @param {WriteCallFunctionDto} writeCallFunctionDto * @param {string} contractAddress The contract\'s onchain address - * @param {string} assetId + * @param {string} baseAssetId * @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 writeCallFunction(writeCallFunctionDto: WriteCallFunctionDto, contractAddress: string, assetId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.writeCallFunction(writeCallFunctionDto, contractAddress, assetId, idempotencyKey, options); + async writeCallFunction(writeCallFunctionDto: WriteCallFunctionDto, contractAddress: string, baseAssetId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.writeCallFunction(writeCallFunctionDto, contractAddress, baseAssetId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ContractInteractionsApi.writeCallFunction']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -252,7 +252,7 @@ export const ContractInteractionsApiFactory = function (configuration?: Configur * @throws {RequiredError} */ getDeployedContractAbi(requestParameters: ContractInteractionsApiGetDeployedContractAbiRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getDeployedContractAbi(requestParameters.contractAddress, requestParameters.assetId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + return localVarFp.getDeployedContractAbi(requestParameters.contractAddress, requestParameters.baseAssetId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Call a read function on a deployed contract by blockchain native asset id and contract address @@ -262,7 +262,7 @@ export const ContractInteractionsApiFactory = function (configuration?: Configur * @throws {RequiredError} */ readCallFunction(requestParameters: ContractInteractionsApiReadCallFunctionRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.readCallFunction(requestParameters.readCallFunctionDto, requestParameters.contractAddress, requestParameters.assetId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + return localVarFp.readCallFunction(requestParameters.readCallFunctionDto, requestParameters.contractAddress, requestParameters.baseAssetId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Call a write function on a deployed contract by blockchain native asset id and contract address. This creates an onchain transaction, thus it is an async operation. It returns a transaction id that can be polled for status check @@ -272,7 +272,7 @@ export const ContractInteractionsApiFactory = function (configuration?: Configur * @throws {RequiredError} */ writeCallFunction(requestParameters: ContractInteractionsApiWriteCallFunctionRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.writeCallFunction(requestParameters.writeCallFunctionDto, requestParameters.contractAddress, requestParameters.assetId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + return localVarFp.writeCallFunction(requestParameters.writeCallFunctionDto, requestParameters.contractAddress, requestParameters.baseAssetId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, }; }; @@ -295,7 +295,7 @@ export interface ContractInteractionsApiGetDeployedContractAbiRequest { * @type {string} * @memberof ContractInteractionsApiGetDeployedContractAbi */ - readonly assetId: string + readonly baseAssetId: 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. @@ -330,7 +330,7 @@ export interface ContractInteractionsApiReadCallFunctionRequest { * @type {string} * @memberof ContractInteractionsApiReadCallFunction */ - readonly assetId: string + readonly baseAssetId: 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. @@ -365,7 +365,7 @@ export interface ContractInteractionsApiWriteCallFunctionRequest { * @type {string} * @memberof ContractInteractionsApiWriteCallFunction */ - readonly assetId: string + readonly baseAssetId: 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. @@ -391,7 +391,7 @@ export class ContractInteractionsApi extends BaseAPI { * @memberof ContractInteractionsApi */ public getDeployedContractAbi(requestParameters: ContractInteractionsApiGetDeployedContractAbiRequest) { - return ContractInteractionsApiFp(this.configuration).getDeployedContractAbi(requestParameters.contractAddress, requestParameters.assetId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return ContractInteractionsApiFp(this.configuration).getDeployedContractAbi(requestParameters.contractAddress, requestParameters.baseAssetId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** @@ -403,7 +403,7 @@ export class ContractInteractionsApi extends BaseAPI { * @memberof ContractInteractionsApi */ public readCallFunction(requestParameters: ContractInteractionsApiReadCallFunctionRequest) { - return ContractInteractionsApiFp(this.configuration).readCallFunction(requestParameters.readCallFunctionDto, requestParameters.contractAddress, requestParameters.assetId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return ContractInteractionsApiFp(this.configuration).readCallFunction(requestParameters.readCallFunctionDto, requestParameters.contractAddress, requestParameters.baseAssetId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** @@ -415,7 +415,7 @@ export class ContractInteractionsApi extends BaseAPI { * @memberof ContractInteractionsApi */ public writeCallFunction(requestParameters: ContractInteractionsApiWriteCallFunctionRequest) { - return ContractInteractionsApiFp(this.configuration).writeCallFunction(requestParameters.writeCallFunctionDto, requestParameters.contractAddress, requestParameters.assetId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return ContractInteractionsApiFp(this.configuration).writeCallFunction(requestParameters.writeCallFunctionDto, requestParameters.contractAddress, requestParameters.baseAssetId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } } diff --git a/api/deployed-contracts-api.ts b/api/deployed-contracts-api.ts index 604d578..37ae4fb 100644 --- a/api/deployed-contracts-api.ts +++ b/api/deployed-contracts-api.ts @@ -199,12 +199,12 @@ export const DeployedContractsApiAxiosParamCreator = function (configuration?: C * @param {string} [pageCursor] Page cursor to get the next page * @param {number} [pageSize] Number of items per page, requesting more then max will return max items * @param {string} [contractAddress] The contract\'s onchain address - * @param {string} [assetId] + * @param {string} [baseAssetId] * @param {string} [templateId] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeployedContracts: async (pageCursor?: string, pageSize?: number, contractAddress?: string, assetId?: string, templateId?: string, options: RawAxiosRequestConfig = {}): Promise => { + getDeployedContracts: async (pageCursor?: string, pageSize?: number, contractAddress?: string, baseAssetId?: string, templateId?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/tokenization/contracts`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -229,8 +229,8 @@ export const DeployedContractsApiAxiosParamCreator = function (configuration?: C localVarQueryParameter['contractAddress'] = contractAddress; } - if (assetId !== undefined) { - localVarQueryParameter['assetId'] = assetId; + if (baseAssetId !== undefined) { + localVarQueryParameter['baseAssetId'] = baseAssetId; } if (templateId !== undefined) { @@ -319,13 +319,13 @@ export const DeployedContractsApiFp = function(configuration?: Configuration) { * @param {string} [pageCursor] Page cursor to get the next page * @param {number} [pageSize] Number of items per page, requesting more then max will return max items * @param {string} [contractAddress] The contract\'s onchain address - * @param {string} [assetId] + * @param {string} [baseAssetId] * @param {string} [templateId] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getDeployedContracts(pageCursor?: string, pageSize?: number, contractAddress?: string, assetId?: string, templateId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getDeployedContracts(pageCursor, pageSize, contractAddress, assetId, templateId, options); + async getDeployedContracts(pageCursor?: string, pageSize?: number, contractAddress?: string, baseAssetId?: string, templateId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDeployedContracts(pageCursor, pageSize, contractAddress, baseAssetId, templateId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['DeployedContractsApi.getDeployedContracts']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -388,7 +388,7 @@ export const DeployedContractsApiFactory = function (configuration?: Configurati * @throws {RequiredError} */ getDeployedContracts(requestParameters: DeployedContractsApiGetDeployedContractsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getDeployedContracts(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.contractAddress, requestParameters.assetId, requestParameters.templateId, options).then((request) => request(axios, basePath)); + return localVarFp.getDeployedContracts(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.contractAddress, requestParameters.baseAssetId, requestParameters.templateId, options).then((request) => request(axios, basePath)); }, }; }; @@ -502,7 +502,7 @@ export interface DeployedContractsApiGetDeployedContractsRequest { * @type {string} * @memberof DeployedContractsApiGetDeployedContracts */ - readonly assetId?: string + readonly baseAssetId?: string /** * @@ -576,7 +576,7 @@ export class DeployedContractsApi extends BaseAPI { * @memberof DeployedContractsApi */ public getDeployedContracts(requestParameters: DeployedContractsApiGetDeployedContractsRequest = {}) { - return DeployedContractsApiFp(this.configuration).getDeployedContracts(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.contractAddress, requestParameters.assetId, requestParameters.templateId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + return DeployedContractsApiFp(this.configuration).getDeployedContracts(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.contractAddress, requestParameters.baseAssetId, requestParameters.templateId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } } diff --git a/api/smart-transfer-api.ts b/api/smart-transfer-api.ts index dd6a188..0d67e13 100644 --- a/api/smart-transfer-api.ts +++ b/api/smart-transfer-api.ts @@ -27,6 +27,10 @@ import { assertParamExistsAndNotEmpty } from '../utils/validation_utils'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore +import { ErrorSchema } from '../models'; +// @ts-ignore +import { SmartTransferApproveTerm } from '../models'; +// @ts-ignore import { SmartTransferBadRequestResponse } from '../models'; // @ts-ignore import { SmartTransferCreateTicket } from '../models'; @@ -47,6 +51,8 @@ import { SmartTransferSetTicketExternalId } from '../models'; // @ts-ignore import { SmartTransferSetUserGroups } from '../models'; // @ts-ignore +import { SmartTransferStatistic } from '../models'; +// @ts-ignore import { SmartTransferSubmitTicket } from '../models'; // @ts-ignore import { SmartTransferTicketFilteredResponse } from '../models'; @@ -64,6 +70,52 @@ import { SmartTransferUserGroupsResponse } from '../models'; */ export const SmartTransferApiAxiosParamCreator = function (configuration?: Configuration) { return { + /** + * Set funding source for ticket term and creating approving transaction for contract to transfer asset + * @summary Define funding source and give approve to contract to transfer asset + * @param {SmartTransferApproveTerm} smartTransferApproveTerm + * @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} + */ + approveDvPTicketTerm: async (smartTransferApproveTerm: SmartTransferApproveTerm, ticketId: string, termId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExists('approveDvPTicketTerm', 'smartTransferApproveTerm', smartTransferApproveTerm) + assertParamExistsAndNotEmpty('approveDvPTicketTerm', 'ticketId', ticketId) + assertParamExistsAndNotEmpty('approveDvPTicketTerm', 'termId', termId) + const localVarPath = `/smart_transfers/{ticketId}/terms/{termId}/dvp/approve` + .replace(`{${"ticketId"}}`, encodeURIComponent(String(ticketId))) + .replace(`{${"termId"}}`, encodeURIComponent(String(termId))); + // 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); + } + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(smartTransferApproveTerm, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * Cancel Smart Transfer ticket * @summary Cancel Ticket @@ -283,6 +335,44 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Create or fulfill dvp ticket order + * @summary Fund dvp ticket + * @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} + */ + fundDvpTicket: async (ticketId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExistsAndNotEmpty('fundDvpTicket', 'ticketId', ticketId) + const localVarPath = `/smart_transfers/{ticketId}/dvp/fund` + .replace(`{${"ticketId"}}`, encodeURIComponent(String(ticketId))); + // 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}; @@ -338,6 +428,36 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi options: localVarRequestOptions, }; }, + /** + * Get smart transfer statistic + * @summary Get smart transfers statistic + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSmartTransferStatistic: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/smart_transfers/statistic`; + // 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 Smart Transfer user groups * @summary Get user group @@ -459,7 +579,7 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi * @param {boolean} [createdByMe] Filter created tickets by created by self or by others. Optional * @param {string} [expiresAfter] Lower bound of search range. Optional * @param {string} [expiresBefore] Upper bound of search range. Optional - * @param {SearchTicketsTypeEnum} [type] Type of transfer. ASYNC executes transfers as they are funded, ATOMIC executes all terms (legs) as one atomic transfer + * @param {SearchTicketsTypeEnum} [type] Type of transfer. ASYNC executes transfers as they are funded, DVP executes all terms (legs) as one dvp transfer * @param {string} [externalRefId] External ref. ID that workspace can use to identify ticket outside of Fireblocks system. * @param {string} [after] ID of the record after which to fetch $limit records * @param {number} [limit] Number of records to fetch. By default, it is 100 @@ -759,6 +879,22 @@ export const SmartTransferApiAxiosParamCreator = function (configuration?: Confi export const SmartTransferApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = SmartTransferApiAxiosParamCreator(configuration) return { + /** + * Set funding source for ticket term and creating approving transaction for contract to transfer asset + * @summary Define funding source and give approve to contract to transfer asset + * @param {SmartTransferApproveTerm} smartTransferApproveTerm + * @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 approveDvPTicketTerm(smartTransferApproveTerm: SmartTransferApproveTerm, ticketId: string, termId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.approveDvPTicketTerm(smartTransferApproveTerm, ticketId, termId, idempotencyKey, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['SmartTransferApi.approveDvPTicketTerm']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, /** * Cancel Smart Transfer ticket * @summary Cancel Ticket @@ -843,6 +979,20 @@ export const SmartTransferApiFp = function(configuration?: Configuration) { const operationBasePath = operationServerMap['SmartTransferApi.fulfillTicket']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, + /** + * Create or fulfill dvp ticket order + * @summary Fund dvp ticket + * @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 fundDvpTicket(ticketId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.fundDvpTicket(ticketId, idempotencyKey, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['SmartTransferApi.fundDvpTicket']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, /** * Set funding source for ticket term (in case of ASYNC tickets, this will execute transfer immediately) * @summary Define funding source @@ -859,6 +1009,18 @@ export const SmartTransferApiFp = function(configuration?: Configuration) { const operationBasePath = operationServerMap['SmartTransferApi.fundTicketTerm']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, + /** + * Get smart transfer statistic + * @summary Get smart transfers statistic + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSmartTransferStatistic(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getSmartTransferStatistic(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['SmartTransferApi.getSmartTransferStatistic']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, /** * Get Smart Transfer user groups * @summary Get user group @@ -910,7 +1072,7 @@ export const SmartTransferApiFp = function(configuration?: Configuration) { * @param {boolean} [createdByMe] Filter created tickets by created by self or by others. Optional * @param {string} [expiresAfter] Lower bound of search range. Optional * @param {string} [expiresBefore] Upper bound of search range. Optional - * @param {SearchTicketsTypeEnum} [type] Type of transfer. ASYNC executes transfers as they are funded, ATOMIC executes all terms (legs) as one atomic transfer + * @param {SearchTicketsTypeEnum} [type] Type of transfer. ASYNC executes transfers as they are funded, DVP executes all terms (legs) as one dvp transfer * @param {string} [externalRefId] External ref. ID that workspace can use to identify ticket outside of Fireblocks system. * @param {string} [after] ID of the record after which to fetch $limit records * @param {number} [limit] Number of records to fetch. By default, it is 100 @@ -1008,6 +1170,16 @@ export const SmartTransferApiFp = function(configuration?: Configuration) { export const SmartTransferApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = SmartTransferApiFp(configuration) return { + /** + * Set funding source for ticket term and creating approving transaction for contract to transfer asset + * @summary Define funding source and give approve to contract to transfer asset + * @param {SmartTransferApiApproveDvPTicketTermRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + approveDvPTicketTerm(requestParameters: SmartTransferApiApproveDvPTicketTermRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.approveDvPTicketTerm(requestParameters.smartTransferApproveTerm, requestParameters.ticketId, requestParameters.termId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + }, /** * Cancel Smart Transfer ticket * @summary Cancel Ticket @@ -1068,6 +1240,16 @@ export const SmartTransferApiFactory = function (configuration?: Configuration, fulfillTicket(requestParameters: SmartTransferApiFulfillTicketRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.fulfillTicket(requestParameters.ticketId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, + /** + * Create or fulfill dvp ticket order + * @summary Fund dvp ticket + * @param {SmartTransferApiFundDvpTicketRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fundDvpTicket(requestParameters: SmartTransferApiFundDvpTicketRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.fundDvpTicket(requestParameters.ticketId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + }, /** * Set funding source for ticket term (in case of ASYNC tickets, this will execute transfer immediately) * @summary Define funding source @@ -1078,6 +1260,15 @@ export const SmartTransferApiFactory = function (configuration?: Configuration, 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 statistic + * @summary Get smart transfers statistic + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSmartTransferStatistic(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getSmartTransferStatistic(options).then((request) => request(axios, basePath)); + }, /** * Get Smart Transfer user groups * @summary Get user group @@ -1170,6 +1361,41 @@ export const SmartTransferApiFactory = function (configuration?: Configuration, }; }; +/** + * Request parameters for approveDvPTicketTerm operation in SmartTransferApi. + * @export + * @interface SmartTransferApiApproveDvPTicketTermRequest + */ +export interface SmartTransferApiApproveDvPTicketTermRequest { + /** + * + * @type {SmartTransferApproveTerm} + * @memberof SmartTransferApiApproveDvPTicketTerm + */ + readonly smartTransferApproveTerm: SmartTransferApproveTerm + + /** + * + * @type {string} + * @memberof SmartTransferApiApproveDvPTicketTerm + */ + readonly ticketId: string + + /** + * + * @type {string} + * @memberof SmartTransferApiApproveDvPTicketTerm + */ + readonly termId: 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 SmartTransferApiApproveDvPTicketTerm + */ + readonly idempotencyKey?: string +} + /** * Request parameters for cancelTicket operation in SmartTransferApi. * @export @@ -1296,6 +1522,27 @@ export interface SmartTransferApiFulfillTicketRequest { readonly idempotencyKey?: string } +/** + * Request parameters for fundDvpTicket operation in SmartTransferApi. + * @export + * @interface SmartTransferApiFundDvpTicketRequest + */ +export interface SmartTransferApiFundDvpTicketRequest { + /** + * + * @type {string} + * @memberof SmartTransferApiFundDvpTicket + */ + readonly ticketId: 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 SmartTransferApiFundDvpTicket + */ + readonly idempotencyKey?: string +} + /** * Request parameters for fundTicketTerm operation in SmartTransferApi. * @export @@ -1436,8 +1683,8 @@ export interface SmartTransferApiSearchTicketsRequest { readonly expiresBefore?: string /** - * Type of transfer. ASYNC executes transfers as they are funded, ATOMIC executes all terms (legs) as one atomic transfer - * @type {'ASYNC'} + * Type of transfer. ASYNC executes transfers as they are funded, DVP executes all terms (legs) as one dvp transfer + * @type {'ASYNC' | 'DVP'} * @memberof SmartTransferApiSearchTickets */ readonly type?: SearchTicketsTypeEnum @@ -1611,6 +1858,18 @@ export interface SmartTransferApiUpdateTicketTermRequest { * @extends {BaseAPI} */ export class SmartTransferApi extends BaseAPI { + /** + * Set funding source for ticket term and creating approving transaction for contract to transfer asset + * @summary Define funding source and give approve to contract to transfer asset + * @param {SmartTransferApiApproveDvPTicketTermRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SmartTransferApi + */ + public approveDvPTicketTerm(requestParameters: SmartTransferApiApproveDvPTicketTermRequest) { + return SmartTransferApiFp(this.configuration).approveDvPTicketTerm(requestParameters.smartTransferApproveTerm, requestParameters.ticketId, requestParameters.termId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + /** * Cancel Smart Transfer ticket * @summary Cancel Ticket @@ -1683,6 +1942,18 @@ export class SmartTransferApi extends BaseAPI { return SmartTransferApiFp(this.configuration).fulfillTicket(requestParameters.ticketId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } + /** + * Create or fulfill dvp ticket order + * @summary Fund dvp ticket + * @param {SmartTransferApiFundDvpTicketRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SmartTransferApi + */ + public fundDvpTicket(requestParameters: SmartTransferApiFundDvpTicketRequest) { + return SmartTransferApiFp(this.configuration).fundDvpTicket(requestParameters.ticketId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + /** * Set funding source for ticket term (in case of ASYNC tickets, this will execute transfer immediately) * @summary Define funding source @@ -1695,6 +1966,17 @@ export class SmartTransferApi extends BaseAPI { return SmartTransferApiFp(this.configuration).fundTicketTerm(requestParameters.smartTransferFundTerm, requestParameters.ticketId, requestParameters.termId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } + /** + * Get smart transfer statistic + * @summary Get smart transfers statistic + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SmartTransferApi + */ + public getSmartTransferStatistic() { + return SmartTransferApiFp(this.configuration).getSmartTransferStatistic().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + /** * Get Smart Transfer user groups * @summary Get user group @@ -1820,6 +2102,7 @@ export type SearchTicketsStatusesEnum = typeof SearchTicketsStatusesEnum[keyof t * @export */ export const SearchTicketsTypeEnum = { - Async: 'ASYNC' + Async: 'ASYNC', + Dvp: 'DVP' } as const; export type SearchTicketsTypeEnum = typeof SearchTicketsTypeEnum[keyof typeof SearchTicketsTypeEnum]; diff --git a/api/travel-rule-beta-api.ts b/api/travel-rule-beta-api.ts index e52088a..2dca297 100644 --- a/api/travel-rule-beta-api.ts +++ b/api/travel-rule-beta-api.ts @@ -27,6 +27,8 @@ import { assertParamExistsAndNotEmpty } from '../utils/validation_utils'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore +import { ErrorSchema } from '../models'; +// @ts-ignore import { TravelRuleGetAllVASPsResponse } from '../models'; // @ts-ignore import { TravelRuleUpdateVASPDetails } from '../models'; @@ -38,6 +40,8 @@ import { TravelRuleValidateFullTransactionRequest } from '../models'; import { TravelRuleValidateTransactionRequest } from '../models'; // @ts-ignore import { TravelRuleValidateTransactionResponse } from '../models'; +// @ts-ignore +import { TravelRuleVaspForVault } from '../models'; /** * TravelRuleBetaApi - axios parameter creator * @export @@ -132,6 +136,82 @@ export const TravelRuleBetaApiAxiosParamCreator = function (configuration?: Conf options: localVarRequestOptions, }; }, + /** + * Get assigned VASP Did for a specific vault. Returns empty string vaspDid value in response if none assigned. + * @summary Get assigned VASP to vault + * @param {string} vaultAccountId The ID of the vault account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaspForVault: async (vaultAccountId: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExistsAndNotEmpty('getVaspForVault', 'vaultAccountId', vaultAccountId) + const localVarPath = `/screening/travel_rule/vault/{vaultAccountId}/vasp` + .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + 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, + }; + }, + /** + * Sets the VASP Did for a specific vault. Pass empty string to remove existing one. + * @summary Assign VASP to vault + * @param {TravelRuleVaspForVault} travelRuleVaspForVault + * @param {string} vaultAccountId The ID of the vault account + * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setVaspForVault: async (travelRuleVaspForVault: TravelRuleVaspForVault, vaultAccountId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExists('setVaspForVault', 'travelRuleVaspForVault', travelRuleVaspForVault) + assertParamExistsAndNotEmpty('setVaspForVault', 'vaultAccountId', vaultAccountId) + const localVarPath = `/screening/travel_rule/vault/{vaultAccountId}/vasp` + .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (idempotencyKey != null) { + localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); + } + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(travelRuleVaspForVault, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * 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 @@ -292,6 +372,34 @@ export const TravelRuleBetaApiFp = function(configuration?: Configuration) { const operationBasePath = operationServerMap['TravelRuleBetaApi.getVASPs']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, + /** + * Get assigned VASP Did for a specific vault. Returns empty string vaspDid value in response if none assigned. + * @summary Get assigned VASP to vault + * @param {string} vaultAccountId The ID of the vault account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getVaspForVault(vaultAccountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getVaspForVault(vaultAccountId, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['TravelRuleBetaApi.getVaspForVault']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Sets the VASP Did for a specific vault. Pass empty string to remove existing one. + * @summary Assign VASP to vault + * @param {TravelRuleVaspForVault} travelRuleVaspForVault + * @param {string} vaultAccountId The ID of the vault account + * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async setVaspForVault(travelRuleVaspForVault: TravelRuleVaspForVault, vaultAccountId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.setVaspForVault(travelRuleVaspForVault, vaultAccountId, idempotencyKey, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['TravelRuleBetaApi.setVaspForVault']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, /** * 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 @@ -364,6 +472,26 @@ export const TravelRuleBetaApiFactory = function (configuration?: Configuration, getVASPs(requestParameters: TravelRuleBetaApiGetVASPsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getVASPs(requestParameters.order, requestParameters.perPage, requestParameters.page, requestParameters.fields, options).then((request) => request(axios, basePath)); }, + /** + * Get assigned VASP Did for a specific vault. Returns empty string vaspDid value in response if none assigned. + * @summary Get assigned VASP to vault + * @param {TravelRuleBetaApiGetVaspForVaultRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaspForVault(requestParameters: TravelRuleBetaApiGetVaspForVaultRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getVaspForVault(requestParameters.vaultAccountId, options).then((request) => request(axios, basePath)); + }, + /** + * Sets the VASP Did for a specific vault. Pass empty string to remove existing one. + * @summary Assign VASP to vault + * @param {TravelRuleBetaApiSetVaspForVaultRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setVaspForVault(requestParameters: TravelRuleBetaApiSetVaspForVaultRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.setVaspForVault(requestParameters.travelRuleVaspForVault, requestParameters.vaultAccountId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + }, /** * 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 @@ -453,6 +581,48 @@ export interface TravelRuleBetaApiGetVASPsRequest { readonly fields?: string } +/** + * Request parameters for getVaspForVault operation in TravelRuleBetaApi. + * @export + * @interface TravelRuleBetaApiGetVaspForVaultRequest + */ +export interface TravelRuleBetaApiGetVaspForVaultRequest { + /** + * The ID of the vault account + * @type {string} + * @memberof TravelRuleBetaApiGetVaspForVault + */ + readonly vaultAccountId: string +} + +/** + * Request parameters for setVaspForVault operation in TravelRuleBetaApi. + * @export + * @interface TravelRuleBetaApiSetVaspForVaultRequest + */ +export interface TravelRuleBetaApiSetVaspForVaultRequest { + /** + * + * @type {TravelRuleVaspForVault} + * @memberof TravelRuleBetaApiSetVaspForVault + */ + readonly travelRuleVaspForVault: TravelRuleVaspForVault + + /** + * The ID of the vault account + * @type {string} + * @memberof TravelRuleBetaApiSetVaspForVault + */ + 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 TravelRuleBetaApiSetVaspForVault + */ + readonly idempotencyKey?: string +} + /** * Request parameters for updateVasp operation in TravelRuleBetaApi. * @export @@ -547,6 +717,30 @@ export class TravelRuleBetaApi extends BaseAPI { return TravelRuleBetaApiFp(this.configuration).getVASPs(requestParameters.order, requestParameters.perPage, requestParameters.page, requestParameters.fields).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } + /** + * Get assigned VASP Did for a specific vault. Returns empty string vaspDid value in response if none assigned. + * @summary Get assigned VASP to vault + * @param {TravelRuleBetaApiGetVaspForVaultRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TravelRuleBetaApi + */ + public getVaspForVault(requestParameters: TravelRuleBetaApiGetVaspForVaultRequest) { + return TravelRuleBetaApiFp(this.configuration).getVaspForVault(requestParameters.vaultAccountId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Sets the VASP Did for a specific vault. Pass empty string to remove existing one. + * @summary Assign VASP to vault + * @param {TravelRuleBetaApiSetVaspForVaultRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TravelRuleBetaApi + */ + public setVaspForVault(requestParameters: TravelRuleBetaApiSetVaspForVaultRequest) { + return TravelRuleBetaApiFp(this.configuration).setVaspForVault(requestParameters.travelRuleVaspForVault, requestParameters.vaultAccountId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + /** * 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 diff --git a/docs/apis/ContractInteractionsApi.md b/docs/apis/ContractInteractionsApi.md index 8b28258..db2bc33 100644 --- a/docs/apis/ContractInteractionsApi.md +++ b/docs/apis/ContractInteractionsApi.md @@ -4,9 +4,9 @@ All URIs are relative to https://developers.fireblocks.com/reference/ Method | HTTP request | Description ------------- | ------------- | ------------- -[**getDeployedContractAbi**](#getDeployedContractAbi) | **GET** /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions | Return deployed contract\'s ABI -[**readCallFunction**](#readCallFunction) | **POST** /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/read | Call a read function on a deployed contract -[**writeCallFunction**](#writeCallFunction) | **POST** /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/write | Call a write function on a deployed contract +[**getDeployedContractAbi**](#getDeployedContractAbi) | **GET** /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions | Return deployed contract\'s ABI +[**readCallFunction**](#readCallFunction) | **POST** /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions/read | Call a read function on a deployed contract +[**writeCallFunction**](#writeCallFunction) | **POST** /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions/write | Call a write function on a deployed contract # **getDeployedContractAbi** @@ -33,7 +33,7 @@ let body: ContractInteractionsApiGetDeployedContractAbiRequest = { // string | The contract\'s onchain address contractAddress: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66, // string - assetId: assetId_example, + baseAssetId: baseAssetId_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, }; @@ -49,7 +49,7 @@ fireblocks.contractInteractions.getDeployedContractAbi(body).then((res: Firebloc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contractAddress** | [**string**] | The contract\'s onchain address | defaults to undefined - **assetId** | [**string**] | | defaults to undefined + **baseAssetId** | [**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 @@ -101,7 +101,7 @@ let body: ContractInteractionsApiReadCallFunctionRequest = { // string | The contract\'s onchain address contractAddress: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66, // string - assetId: assetId_example, + baseAssetId: baseAssetId_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, }; @@ -118,7 +118,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **readCallFunctionDto** | **[ReadCallFunctionDto](../models/ReadCallFunctionDto.md)**| | **contractAddress** | [**string**] | The contract\'s onchain address | defaults to undefined - **assetId** | [**string**] | | defaults to undefined + **baseAssetId** | [**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 @@ -170,7 +170,7 @@ let body: ContractInteractionsApiWriteCallFunctionRequest = { // string | The contract\'s onchain address contractAddress: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66, // string - assetId: assetId_example, + baseAssetId: baseAssetId_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, }; @@ -187,7 +187,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **writeCallFunctionDto** | **[WriteCallFunctionDto](../models/WriteCallFunctionDto.md)**| | **contractAddress** | [**string**] | The contract\'s onchain address | defaults to undefined - **assetId** | [**string**] | | defaults to undefined + **baseAssetId** | [**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 diff --git a/docs/apis/DeployedContractsApi.md b/docs/apis/DeployedContractsApi.md index 4d0a143..3fffabf 100644 --- a/docs/apis/DeployedContractsApi.md +++ b/docs/apis/DeployedContractsApi.md @@ -290,7 +290,7 @@ let body: DeployedContractsApiGetDeployedContractsRequest = { // string | The contract\'s onchain address (optional) contractAddress: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66, // string (optional) - assetId: assetId_example, + baseAssetId: baseAssetId_example, // string (optional) templateId: templateId_example, }; @@ -308,7 +308,7 @@ Name | Type | Description | Notes **pageCursor** | [**string**] | Page cursor to get the next page | (optional) defaults to undefined **pageSize** | [**number**] | Number of items per page, requesting more then max will return max items | (optional) defaults to undefined **contractAddress** | [**string**] | The contract\'s onchain address | (optional) defaults to undefined - **assetId** | [**string**] | | (optional) defaults to undefined + **baseAssetId** | [**string**] | | (optional) defaults to undefined **templateId** | [**string**] | | (optional) defaults to undefined diff --git a/docs/apis/SmartTransferApi.md b/docs/apis/SmartTransferApi.md index 7236e69..99ca3e3 100644 --- a/docs/apis/SmartTransferApi.md +++ b/docs/apis/SmartTransferApi.md @@ -4,13 +4,16 @@ All URIs are relative to https://developers.fireblocks.com/reference/ Method | HTTP request | Description ------------- | ------------- | ------------- +[**approveDvPTicketTerm**](#approveDvPTicketTerm) | **PUT** /smart_transfers/{ticketId}/terms/{termId}/dvp/approve | Define funding source and give approve to contract to transfer asset [**cancelTicket**](#cancelTicket) | **PUT** /smart-transfers/{ticketId}/cancel | Cancel Ticket [**createTicket**](#createTicket) | **POST** /smart-transfers | Create Ticket [**createTicketTerm**](#createTicketTerm) | **POST** /smart-transfers/{ticketId}/terms | Create leg (term) [**findTicketById**](#findTicketById) | **GET** /smart-transfers/{ticketId} | Search Tickets by ID [**findTicketTermById**](#findTicketTermById) | **GET** /smart-transfers/{ticketId}/terms/{termId} | Search ticket by leg (term) ID [**fulfillTicket**](#fulfillTicket) | **PUT** /smart-transfers/{ticketId}/fulfill | Fund ticket manually +[**fundDvpTicket**](#fundDvpTicket) | **PUT** /smart_transfers/{ticketId}/dvp/fund | Fund dvp ticket [**fundTicketTerm**](#fundTicketTerm) | **PUT** /smart-transfers/{ticketId}/terms/{termId}/fund | Define funding source +[**getSmartTransferStatistic**](#getSmartTransferStatistic) | **GET** /smart_transfers/statistic | Get smart transfers statistic [**getSmartTransferUserGroups**](#getSmartTransferUserGroups) | **GET** /smart-transfers/settings/user-groups | Get user group [**manuallyFundTicketTerm**](#manuallyFundTicketTerm) | **PUT** /smart-transfers/{ticketId}/terms/{termId}/manually-fund | Manually add term transaction [**removeTicketTerm**](#removeTicketTerm) | **DELETE** /smart-transfers/{ticketId}/terms/{termId} | Delete ticket leg (term) @@ -22,6 +25,77 @@ Method | HTTP request | Description [**updateTicketTerm**](#updateTicketTerm) | **PUT** /smart-transfers/{ticketId}/terms/{termId} | Update ticket leg (term) +# **approveDvPTicketTerm** +> SmartTransferTicketTermResponse approveDvPTicketTerm(smartTransferApproveTerm, ) + +Set funding source for ticket term and creating approving transaction for contract to transfer asset + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, SmartTransferApiApproveDvPTicketTermRequest, SmartTransferTicketTermResponse } 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: SmartTransferApiApproveDvPTicketTermRequest = { + // SmartTransferApproveTerm + smartTransferApproveTerm: param_value, + // string + ticketId: ticketId_example, + // string + termId: termId_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.approveDvPTicketTerm(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 +------------- | ------------- | ------------- | ------------- + **smartTransferApproveTerm** | **[SmartTransferApproveTerm](../models/SmartTransferApproveTerm.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 + + +### Return type + +**[SmartTransferTicketTermResponse](../models/SmartTransferTicketTermResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Creating approval transaction started | - | +**403** | Unauthorized | - | +**404** | Not found | - | +**422** | Bad Request | - | + +[[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) + # **cancelTicket** > SmartTransferTicketResponse cancelTicket() @@ -408,6 +482,71 @@ 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) +# **fundDvpTicket** +> SmartTransferTicketResponse fundDvpTicket() + +Create or fulfill dvp ticket order + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, SmartTransferApiFundDvpTicketRequest, SmartTransferTicketResponse } 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: SmartTransferApiFundDvpTicketRequest = { + // 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.fundDvpTicket(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 +------------- | ------------- | ------------- | ------------- + **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 + +**[SmartTransferTicketResponse](../models/SmartTransferTicketResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successfully started creating or fulfilling order on dvp Smart Transfer ticket | - | +**403** | Unauthorized | - | +**404** | Not found | - | +**422** | Bad Request | - | + +[[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** > SmartTransferTicketTermResponse fundTicketTerm(smartTransferFundTerm, ) @@ -479,6 +618,61 @@ 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) +# **getSmartTransferStatistic** +> SmartTransferStatistic getSmartTransferStatistic() + +Get smart transfer statistic + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, SmartTransferStatistic } 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.smartTransfer.getSmartTransferStatistic(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 + +**[SmartTransferStatistic](../models/SmartTransferStatistic.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Smart Transfer ticket statistic returned successfully | - | +**403** | Unauthorized | - | +**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) + # **getSmartTransferUserGroups** > SmartTransferUserGroupsResponse getSmartTransferUserGroups() @@ -702,7 +896,7 @@ let body: SmartTransferApiSearchTicketsRequest = { expiresAfter: 2013-10-20T19:20:30+01:00, // string | Upper bound of search range. Optional (optional) expiresBefore: 2013-10-20T19:20:30+01:00, - // 'ASYNC' | Type of transfer. ASYNC executes transfers as they are funded, ATOMIC executes all terms (legs) as one atomic transfer (optional) + // 'ASYNC' | 'DVP' | Type of transfer. ASYNC executes transfers as they are funded, DVP executes all terms (legs) as one dvp transfer (optional) type: type_example, // string | External ref. ID that workspace can use to identify ticket outside of Fireblocks system. (optional) externalRefId: externalRefId_example, @@ -728,7 +922,7 @@ Name | Type | Description | Notes **createdByMe** | [**boolean**] | Filter created tickets by created by self or by others. Optional | (optional) defaults to undefined **expiresAfter** | [**string**] | Lower bound of search range. Optional | (optional) defaults to undefined **expiresBefore** | [**string**] | Upper bound of search range. Optional | (optional) defaults to undefined - **type** | [**'ASYNC'**]**Array<'ASYNC'>** | Type of transfer. ASYNC executes transfers as they are funded, ATOMIC executes all terms (legs) as one atomic transfer | (optional) defaults to undefined + **type** | [**'ASYNC' | 'DVP'**]**Array<'ASYNC' | 'DVP'>** | Type of transfer. ASYNC executes transfers as they are funded, DVP executes all terms (legs) as one dvp transfer | (optional) defaults to undefined **externalRefId** | [**string**] | External ref. ID that workspace can use to identify ticket outside of Fireblocks system. | (optional) defaults to undefined **after** | [**string**] | ID of the record after which to fetch $limit records | (optional) defaults to undefined **limit** | [**number**] | Number of records to fetch. By default, it is 100 | (optional) defaults to undefined diff --git a/docs/apis/TravelRuleBetaApi.md b/docs/apis/TravelRuleBetaApi.md index 64c85a4..dcf2136 100644 --- a/docs/apis/TravelRuleBetaApi.md +++ b/docs/apis/TravelRuleBetaApi.md @@ -6,6 +6,8 @@ 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 +[**getVaspForVault**](#getVaspForVault) | **GET** /screening/travel_rule/vault/{vaultAccountId}/vasp | Get assigned VASP to vault +[**setVaspForVault**](#setVaspForVault) | **POST** /screening/travel_rule/vault/{vaultAccountId}/vasp | Assign VASP to vault [**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 @@ -143,6 +145,132 @@ 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) +# **getVaspForVault** +> TravelRuleVaspForVault getVaspForVault() + +Get assigned VASP Did for a specific vault. Returns empty string vaspDid value in response if none assigned. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, TravelRuleBetaApiGetVaspForVaultRequest, TravelRuleVaspForVault } 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: TravelRuleBetaApiGetVaspForVaultRequest = { + // string | The ID of the vault account + vaultAccountId: 1, +}; + +fireblocks.travelRuleBeta.getVaspForVault(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 +------------- | ------------- | ------------- | ------------- + **vaultAccountId** | [**string**] | The ID of the vault account | defaults to undefined + + +### Return type + +**[TravelRuleVaspForVault](../models/TravelRuleVaspForVault.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | * 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) + +# **setVaspForVault** +> TravelRuleVaspForVault setVaspForVault(travelRuleVaspForVault, ) + +Sets the VASP Did for a specific vault. Pass empty string to remove existing one. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, TravelRuleBetaApiSetVaspForVaultRequest, TravelRuleVaspForVault } 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: TravelRuleBetaApiSetVaspForVaultRequest = { + // TravelRuleVaspForVault + travelRuleVaspForVault: param_value, + // string | The ID of the vault account + 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.travelRuleBeta.setVaspForVault(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 +------------- | ------------- | ------------- | ------------- + **travelRuleVaspForVault** | **[TravelRuleVaspForVault](../models/TravelRuleVaspForVault.md)**| | + **vaultAccountId** | [**string**] | The ID of the vault account | 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 + +**[TravelRuleVaspForVault](../models/TravelRuleVaspForVault.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | OK | * 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) + # **updateVasp** > TravelRuleUpdateVASPDetails updateVasp(travelRuleUpdateVASPDetails) diff --git a/docs/models/CreateTokenRequestDtoCreateParams.md b/docs/models/CreateTokenRequestDtoCreateParams.md index 3712921..0e926d9 100644 --- a/docs/models/CreateTokenRequestDtoCreateParams.md +++ b/docs/models/CreateTokenRequestDtoCreateParams.md @@ -8,7 +8,7 @@ |**symbol** | **string** | The symbol of the token | [default to undefined]| |**name** | **string** | The name of the token | [default to undefined]| |**issuerAddress** | **string** | The address of the issuer of this token. Will be part of the identifier of this token on chain. | [default to undefined]| -|**constructorParams** | **Array<Array<ParameterWithValue>>** | The constructor parameters and values of the contract template | [optional] [default to undefined]| +|**deployFunctionParams** | [**Array<ParameterWithValue>**](ParameterWithValue.md) | The deploy function parameters and values of the contract template | [optional] [default to undefined]| diff --git a/docs/models/DelegationDto.md b/docs/models/DelegationDto.md index 3b96038..0a2d188 100644 --- a/docs/models/DelegationDto.md +++ b/docs/models/DelegationDto.md @@ -19,7 +19,9 @@ |**availableActions** | **Array<string>** | An array of available actions that can be performed. for example, actions like \"unstake\" or \"withdraw\". | [default to undefined]| |**inProgress** | **boolean** | Indicates whether there is an ongoing action for this position (true if ongoing, false if not). | [default to undefined]| |**blockchainPositionInfo** | [**SolanaBlockchainDataDto**](SolanaBlockchainDataDto.md) | Additional fields per blockchain - can be empty or missing if not initialized or no additional info exists. The type depends on the chainDescriptor value. For Solana (SOL), stake account address. For Ethereum (ETH), an empty object is returned as no specific data is available. | [default to undefined]| +|**dateUpdated** | **string** | When has the position last changed (ISO Date). | [optional] [default to undefined]| |**inProgressTxId** | **string** | The transaction ID of the ongoing request | [optional] [default to undefined]| +|**relatedRequests** | [**Array<RelatedRequestDto>**](RelatedRequestDto.md) | An array of partial unstake requests for this position, relevant only for the Lido provider. Each object includes the status of the unstake request, a boolean indicating whether the action is in progress, the amount of tokens to unstake, and the transaction ID of the request. With Lido, a position may have multiple partial unstake requests in different states. This field is optional and not applicable for other providers. | [optional] [default to undefined]| diff --git a/docs/models/EVMTokenCreateParamsDto.md b/docs/models/EVMTokenCreateParamsDto.md index 80d6782..9192234 100644 --- a/docs/models/EVMTokenCreateParamsDto.md +++ b/docs/models/EVMTokenCreateParamsDto.md @@ -5,7 +5,7 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| |**contractId** | **string** | The id of the contract template that will be used to create the token | [default to undefined]| -|**constructorParams** | **Array<Array<ParameterWithValue>>** | The constructor parameters and values of the contract template | [optional] [default to undefined]| +|**deployFunctionParams** | [**Array<ParameterWithValue>**](ParameterWithValue.md) | The deploy function parameters and values of the contract template | [optional] [default to undefined]| diff --git a/docs/models/LeanAbiFunction.md b/docs/models/LeanAbiFunction.md index b671b3b..d93a37c 100644 --- a/docs/models/LeanAbiFunction.md +++ b/docs/models/LeanAbiFunction.md @@ -6,6 +6,21 @@ |------------ | ------------- | ------------- | -------------| |**inputs** | [**Array<ParameterWithValue>**](ParameterWithValue.md) | The function inputs | [default to undefined]| |**name** | **string** | The function name | [optional] [default to undefined]| +|**outputs** | [**Array<ParameterWithValue>**](ParameterWithValue.md) | The function outputs | [optional] [default to undefined]| +|**stateMutability** | **string** | The state mutability of the function (e.g., view, pure, nonpayable, payable) | [optional] [default to undefined]| + + +## Enum: LeanAbiFunctionStateMutabilityEnum + + +* `View` (value: `'view'`) + +* `Pure` (value: `'pure'`) + +* `Nonpayable` (value: `'nonpayable'`) + +* `Payable` (value: `'payable'`) + diff --git a/docs/models/RelatedRequestDto.md b/docs/models/RelatedRequestDto.md new file mode 100644 index 0000000..808122c --- /dev/null +++ b/docs/models/RelatedRequestDto.md @@ -0,0 +1,15 @@ +# RelatedRequestDto + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**status** | [**RelatedRequestStatusType**](RelatedRequestStatusType.md) | | [default to undefined]| +|**inProgress** | **boolean** | Indicates whether there is an ongoing action for this position related to this request | [default to undefined]| +|**amount** | **string** | Amount of tokens to Unstake | [default to undefined]| +|**txId** | **string** | The transaction ID of the ongoing request | [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/RelatedRequestStatusType.md b/docs/models/RelatedRequestStatusType.md new file mode 100644 index 0000000..01f53a5 --- /dev/null +++ b/docs/models/RelatedRequestStatusType.md @@ -0,0 +1,72 @@ +# RelatedRequestStatusType + +## Enum + + +* `Error` (value: `'error'`) + +* `Created` (value: `'created'`) + +* `Canceled` (value: `'canceled'`) + +* `ActivateRequested` (value: `'activate_requested'`) + +* `ApproveInprogress` (value: `'approve_inprogress'`) + +* `ApproveInprogressSigned` (value: `'approve_inprogress_signed'`) + +* `ActivateInprogress` (value: `'activate_inprogress'`) + +* `ActivateInprogressSigned` (value: `'activate_inprogress_signed'`) + +* `ActivateInprogressConfirmed` (value: `'activate_inprogress_confirmed'`) + +* `ActivateDone` (value: `'activate_done'`) + +* `DeactivateRequested` (value: `'deactivate_requested'`) + +* `DeactivateInprogress` (value: `'deactivate_inprogress'`) + +* `DeactivateInprogressSigned` (value: `'deactivate_inprogress_signed'`) + +* `DeactivateInprogressConfirmed` (value: `'deactivate_inprogress_confirmed'`) + +* `DeactivateDone` (value: `'deactivate_done'`) + +* `WithdrawInprogress` (value: `'withdraw_inprogress'`) + +* `WithdrawRequested` (value: `'withdraw_requested'`) + +* `WithdrawInprogressConfirmed` (value: `'withdraw_inprogress_confirmed'`) + +* `WithdrawDone` (value: `'withdraw_done'`) + +* `ClaimRewardsRequested` (value: `'claim_rewards_requested'`) + +* `ClaimRewardsInprogress` (value: `'claim_rewards_inprogress'`) + +* `ClaimRewardsDone` (value: `'claim_rewards_done'`) + +* `Pending` (value: `'pending'`) + +* `PendingQueued` (value: `'pending_queued'`) + +* `ActiveOffline` (value: `'active_offline'`) + +* `ActiveOnline` (value: `'active_online'`) + +* `ExitingOnline` (value: `'exiting_online'`) + +* `Exited` (value: `'exited'`) + +* `Active` (value: `'active'`) + +* `Inactive` (value: `'inactive'`) + +* `Activating` (value: `'activating'`) + +* `Deactivating` (value: `'deactivating'`) + + + +[[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/SmartTransferApproveTerm.md b/docs/models/SmartTransferApproveTerm.md new file mode 100644 index 0000000..9cb33b5 --- /dev/null +++ b/docs/models/SmartTransferApproveTerm.md @@ -0,0 +1,28 @@ +# SmartTransferApproveTerm + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**asset** | **string** | Asset name | [default to undefined]| +|**amount** | **string** | Amount | [default to undefined]| +|**srcId** | **string** | Id of the vault that is used as the source of the asset. | [default to undefined]| +|**fee** | **string** | Transaction fee | [optional] [default to undefined]| +|**feeLevel** | **string** | Transaction fee level. | [optional] [default to undefined]| +|**note** | **string** | Transaction note | [optional] [default to undefined]| + + +## Enum: SmartTransferApproveTermFeeLevelEnum + + +* `Low` (value: `'LOW'`) + +* `Medium` (value: `'MEDIUM'`) + +* `High` (value: `'HIGH'`) + + + + + +[[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/SmartTransferCoinStatistic.md b/docs/models/SmartTransferCoinStatistic.md new file mode 100644 index 0000000..c6bb1f4 --- /dev/null +++ b/docs/models/SmartTransferCoinStatistic.md @@ -0,0 +1,13 @@ +# SmartTransferCoinStatistic + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**asset** | **string** | | [optional] [default to undefined]| +|**amount** | **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/SmartTransferCreateTicket.md b/docs/models/SmartTransferCreateTicket.md index d3cb9e6..5f5c6f6 100644 --- a/docs/models/SmartTransferCreateTicket.md +++ b/docs/models/SmartTransferCreateTicket.md @@ -18,6 +18,8 @@ * `Async` (value: `'ASYNC'`) +* `Dvp` (value: `'DVP'`) + diff --git a/docs/models/SmartTransferStatistic.md b/docs/models/SmartTransferStatistic.md new file mode 100644 index 0000000..fcb7baa --- /dev/null +++ b/docs/models/SmartTransferStatistic.md @@ -0,0 +1,15 @@ +# SmartTransferStatistic + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**inflow** | [**SmartTransferStatisticInflow**](SmartTransferStatisticInflow.md) | | [default to undefined]| +|**outflow** | [**SmartTransferStatisticOutflow**](SmartTransferStatisticOutflow.md) | | [default to undefined]| +|**totalActiveTickets** | **number** | Number of total active tickets | [default to undefined]| +|**totalInactiveTickets** | **number** | Number of total inactive tickets (expired, canceled, completed) | [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/SmartTransferStatisticInflow.md b/docs/models/SmartTransferStatisticInflow.md new file mode 100644 index 0000000..ce16573 --- /dev/null +++ b/docs/models/SmartTransferStatisticInflow.md @@ -0,0 +1,13 @@ +# SmartTransferStatisticInflow + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**coins** | [**Array<SmartTransferCoinStatistic>**](SmartTransferCoinStatistic.md) | | [optional] [default to undefined]| +|**ticketCount** | **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/SmartTransferStatisticOutflow.md b/docs/models/SmartTransferStatisticOutflow.md new file mode 100644 index 0000000..d99286c --- /dev/null +++ b/docs/models/SmartTransferStatisticOutflow.md @@ -0,0 +1,13 @@ +# SmartTransferStatisticOutflow + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**coins** | [**Array<SmartTransferCoinStatistic>**](SmartTransferCoinStatistic.md) | | [optional] [default to undefined]| +|**ticketCount** | **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/SmartTransferTicket.md b/docs/models/SmartTransferTicket.md index 5f12782..753b165 100644 --- a/docs/models/SmartTransferTicket.md +++ b/docs/models/SmartTransferTicket.md @@ -5,7 +5,7 @@ |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]| +|**type** | **string** | Kind of Smart Transfer. Can be either `ASYNC` or `DVP` | [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]| @@ -31,6 +31,8 @@ * `Async` (value: `'ASYNC'`) +* `Dvp` (value: `'DVP'`) + ## Enum: SmartTransferTicketStatusEnum diff --git a/docs/models/TransactionRequest.md b/docs/models/TransactionRequest.md index 3ed2c42..97eeb1d 100644 --- a/docs/models/TransactionRequest.md +++ b/docs/models/TransactionRequest.md @@ -30,7 +30,7 @@ |**autoStaking** | **boolean** | This feature is no longer supported. | [optional] [default to undefined]| |**networkStaking** | [**TransactionRequestNetworkStaking**](TransactionRequestNetworkStaking.md) | | [optional] [default to undefined]| |**cpuStaking** | [**TransactionRequestNetworkStaking**](TransactionRequestNetworkStaking.md) | | [optional] [default to undefined]| -|**useGasless** | **boolean** | - Override the default gaslsess configuration by sending true\\false | [optional] [default to undefined]| +|**useGasless** | **boolean** | - Override the default gasless configuration by sending true\\false | [optional] [default to undefined]| ## Enum: TransactionRequestFeeLevelEnum diff --git a/docs/models/TravelRuleVaspForVault.md b/docs/models/TravelRuleVaspForVault.md new file mode 100644 index 0000000..6b3fc9d --- /dev/null +++ b/docs/models/TravelRuleVaspForVault.md @@ -0,0 +1,12 @@ +# TravelRuleVaspForVault + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**vaspDid** | **string** | VASP DID | [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/models/delegation-dto.ts b/models/delegation-dto.ts index 4ec3f29..1d03857 100644 --- a/models/delegation-dto.ts +++ b/models/delegation-dto.ts @@ -13,6 +13,9 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { RelatedRequestDto } from './related-request-dto'; // May contain unused imports in some cases // @ts-ignore import { RelatedTransactionDto } from './related-transaction-dto'; @@ -116,11 +119,23 @@ export interface DelegationDto { * @memberof DelegationDto */ 'blockchainPositionInfo': SolanaBlockchainDataDto; + /** + * When has the position last changed (ISO Date). + * @type {string} + * @memberof DelegationDto + */ + 'dateUpdated'?: string; /** * The transaction ID of the ongoing request * @type {string} * @memberof DelegationDto */ 'inProgressTxId'?: string; + /** + * An array of partial unstake requests for this position, relevant only for the Lido provider. Each object includes the status of the unstake request, a boolean indicating whether the action is in progress, the amount of tokens to unstake, and the transaction ID of the request. With Lido, a position may have multiple partial unstake requests in different states. This field is optional and not applicable for other providers. + * @type {Array} + * @memberof DelegationDto + */ + 'relatedRequests'?: Array; } diff --git a/models/evmtoken-create-params-dto.ts b/models/evmtoken-create-params-dto.ts index c3ca2f6..a9a5176 100644 --- a/models/evmtoken-create-params-dto.ts +++ b/models/evmtoken-create-params-dto.ts @@ -30,10 +30,10 @@ export interface EVMTokenCreateParamsDto { */ 'contractId': string; /** - * The constructor parameters and values of the contract template - * @type {Array>} + * The deploy function parameters and values of the contract template + * @type {Array} * @memberof EVMTokenCreateParamsDto */ - 'constructorParams'?: Array>; + 'deployFunctionParams'?: Array; } diff --git a/models/index.ts b/models/index.ts index 92a0969..7aa2803 100644 --- a/models/index.ts +++ b/models/index.ts @@ -305,6 +305,8 @@ export * from './read-abi-function'; export * from './read-call-function-dto'; export * from './redeem-funds-to-linked-ddaresponse'; export * from './register-new-asset-request'; +export * from './related-request-dto'; +export * from './related-request-status-type'; export * from './related-transaction-dto'; export * from './remove-collateral-request-body'; export * from './rename-cosigner'; @@ -353,7 +355,9 @@ export * from './signed-message'; export * from './signed-message-signature'; export * from './signed-messages'; export * from './signing-key-dto'; +export * from './smart-transfer-approve-term'; export * from './smart-transfer-bad-request-response'; +export * from './smart-transfer-coin-statistic'; export * from './smart-transfer-create-ticket'; export * from './smart-transfer-create-ticket-term'; export * from './smart-transfer-forbidden-response'; @@ -363,6 +367,9 @@ export * from './smart-transfer-not-found-response'; 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-statistic'; +export * from './smart-transfer-statistic-inflow'; +export * from './smart-transfer-statistic-outflow'; export * from './smart-transfer-submit-ticket'; export * from './smart-transfer-ticket'; export * from './smart-transfer-ticket-filtered-response'; @@ -447,6 +454,7 @@ export * from './travel-rule-vasp'; export * from './travel-rule-validate-full-transaction-request'; export * from './travel-rule-validate-transaction-request'; export * from './travel-rule-validate-transaction-response'; +export * from './travel-rule-vasp-for-vault'; export * from './unfreeze-transaction-response'; export * from './unmanaged-wallet'; export * from './unspent-input'; diff --git a/models/lean-abi-function.ts b/models/lean-abi-function.ts index 201145c..bd27ffd 100644 --- a/models/lean-abi-function.ts +++ b/models/lean-abi-function.ts @@ -35,5 +35,27 @@ export interface LeanAbiFunction { * @memberof LeanAbiFunction */ 'name'?: string; + /** + * The function outputs + * @type {Array} + * @memberof LeanAbiFunction + */ + 'outputs'?: Array; + /** + * The state mutability of the function (e.g., view, pure, nonpayable, payable) + * @type {string} + * @memberof LeanAbiFunction + */ + 'stateMutability'?: LeanAbiFunctionStateMutabilityEnum; } +export const LeanAbiFunctionStateMutabilityEnum = { + View: 'view', + Pure: 'pure', + Nonpayable: 'nonpayable', + Payable: 'payable' +} as const; + +export type LeanAbiFunctionStateMutabilityEnum = typeof LeanAbiFunctionStateMutabilityEnum[keyof typeof LeanAbiFunctionStateMutabilityEnum]; + + diff --git a/models/related-request-dto.ts b/models/related-request-dto.ts new file mode 100644 index 0000000..d8a29d3 --- /dev/null +++ b/models/related-request-dto.ts @@ -0,0 +1,53 @@ +/* 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 { RelatedRequestStatusType } from './related-request-status-type'; + +/** + * + * @export + * @interface RelatedRequestDto + */ +export interface RelatedRequestDto { + /** + * + * @type {RelatedRequestStatusType} + * @memberof RelatedRequestDto + */ + 'status': RelatedRequestStatusType; + /** + * Indicates whether there is an ongoing action for this position related to this request + * @type {boolean} + * @memberof RelatedRequestDto + */ + 'inProgress': boolean; + /** + * Amount of tokens to Unstake + * @type {string} + * @memberof RelatedRequestDto + */ + 'amount': string; + /** + * The transaction ID of the ongoing request + * @type {string} + * @memberof RelatedRequestDto + */ + 'txId'?: string; +} + + + diff --git a/models/related-request-status-type.ts b/models/related-request-status-type.ts new file mode 100644 index 0000000..817c1cb --- /dev/null +++ b/models/related-request-status-type.ts @@ -0,0 +1,61 @@ +/* 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. + */ + + + +/** + * The status of the request + * @export + * @enum {string} + */ + +export const RelatedRequestStatusType = { + Error: 'error', + Created: 'created', + Canceled: 'canceled', + ActivateRequested: 'activate_requested', + ApproveInprogress: 'approve_inprogress', + ApproveInprogressSigned: 'approve_inprogress_signed', + ActivateInprogress: 'activate_inprogress', + ActivateInprogressSigned: 'activate_inprogress_signed', + ActivateInprogressConfirmed: 'activate_inprogress_confirmed', + ActivateDone: 'activate_done', + DeactivateRequested: 'deactivate_requested', + DeactivateInprogress: 'deactivate_inprogress', + DeactivateInprogressSigned: 'deactivate_inprogress_signed', + DeactivateInprogressConfirmed: 'deactivate_inprogress_confirmed', + DeactivateDone: 'deactivate_done', + WithdrawInprogress: 'withdraw_inprogress', + WithdrawRequested: 'withdraw_requested', + WithdrawInprogressConfirmed: 'withdraw_inprogress_confirmed', + WithdrawDone: 'withdraw_done', + ClaimRewardsRequested: 'claim_rewards_requested', + ClaimRewardsInprogress: 'claim_rewards_inprogress', + ClaimRewardsDone: 'claim_rewards_done', + Pending: 'pending', + PendingQueued: 'pending_queued', + ActiveOffline: 'active_offline', + ActiveOnline: 'active_online', + ExitingOnline: 'exiting_online', + Exited: 'exited', + Active: 'active', + Inactive: 'inactive', + Activating: 'activating', + Deactivating: 'deactivating' +} as const; + +export type RelatedRequestStatusType = typeof RelatedRequestStatusType[keyof typeof RelatedRequestStatusType]; + + + diff --git a/models/smart-transfer-approve-term.ts b/models/smart-transfer-approve-term.ts new file mode 100644 index 0000000..ed10667 --- /dev/null +++ b/models/smart-transfer-approve-term.ts @@ -0,0 +1,69 @@ +/* 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 SmartTransferApproveTerm + */ +export interface SmartTransferApproveTerm { + /** + * Asset name + * @type {string} + * @memberof SmartTransferApproveTerm + */ + 'asset': string; + /** + * Amount + * @type {string} + * @memberof SmartTransferApproveTerm + */ + 'amount': string; + /** + * Id of the vault that is used as the source of the asset. + * @type {string} + * @memberof SmartTransferApproveTerm + */ + 'srcId': string; + /** + * Transaction fee + * @type {string} + * @memberof SmartTransferApproveTerm + */ + 'fee'?: string; + /** + * Transaction fee level. + * @type {string} + * @memberof SmartTransferApproveTerm + */ + 'feeLevel'?: SmartTransferApproveTermFeeLevelEnum; + /** + * Transaction note + * @type {string} + * @memberof SmartTransferApproveTerm + */ + 'note'?: string; +} + +export const SmartTransferApproveTermFeeLevelEnum = { + Low: 'LOW', + Medium: 'MEDIUM', + High: 'HIGH' +} as const; + +export type SmartTransferApproveTermFeeLevelEnum = typeof SmartTransferApproveTermFeeLevelEnum[keyof typeof SmartTransferApproveTermFeeLevelEnum]; + + diff --git a/models/smart-transfer-coin-statistic.ts b/models/smart-transfer-coin-statistic.ts new file mode 100644 index 0000000..1bf2a27 --- /dev/null +++ b/models/smart-transfer-coin-statistic.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. + */ + + + +/** + * Smart transfer coin statistic + * @export + * @interface SmartTransferCoinStatistic + */ +export interface SmartTransferCoinStatistic { + /** + * + * @type {string} + * @memberof SmartTransferCoinStatistic + */ + 'asset'?: string; + /** + * + * @type {string} + * @memberof SmartTransferCoinStatistic + */ + 'amount'?: string; +} + diff --git a/models/smart-transfer-create-ticket.ts b/models/smart-transfer-create-ticket.ts index d5611e9..ab4ea52 100644 --- a/models/smart-transfer-create-ticket.ts +++ b/models/smart-transfer-create-ticket.ts @@ -68,7 +68,8 @@ export interface SmartTransferCreateTicket { } export const SmartTransferCreateTicketTypeEnum = { - Async: 'ASYNC' + Async: 'ASYNC', + Dvp: 'DVP' } as const; export type SmartTransferCreateTicketTypeEnum = typeof SmartTransferCreateTicketTypeEnum[keyof typeof SmartTransferCreateTicketTypeEnum]; diff --git a/models/smart-transfer-statistic-inflow.ts b/models/smart-transfer-statistic-inflow.ts new file mode 100644 index 0000000..692b8f3 --- /dev/null +++ b/models/smart-transfer-statistic-inflow.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 { SmartTransferCoinStatistic } from './smart-transfer-coin-statistic'; + +/** + * Inflow tickets data + * @export + * @interface SmartTransferStatisticInflow + */ +export interface SmartTransferStatisticInflow { + /** + * + * @type {Array} + * @memberof SmartTransferStatisticInflow + */ + 'coins'?: Array; + /** + * + * @type {number} + * @memberof SmartTransferStatisticInflow + */ + 'ticketCount'?: number; +} + diff --git a/models/smart-transfer-statistic-outflow.ts b/models/smart-transfer-statistic-outflow.ts new file mode 100644 index 0000000..55a4d9a --- /dev/null +++ b/models/smart-transfer-statistic-outflow.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 { SmartTransferCoinStatistic } from './smart-transfer-coin-statistic'; + +/** + * Outflow tickets data + * @export + * @interface SmartTransferStatisticOutflow + */ +export interface SmartTransferStatisticOutflow { + /** + * + * @type {Array} + * @memberof SmartTransferStatisticOutflow + */ + 'coins'?: Array; + /** + * + * @type {number} + * @memberof SmartTransferStatisticOutflow + */ + 'ticketCount'?: number; +} + diff --git a/models/smart-transfer-statistic.ts b/models/smart-transfer-statistic.ts new file mode 100644 index 0000000..9b58d16 --- /dev/null +++ b/models/smart-transfer-statistic.ts @@ -0,0 +1,54 @@ +/* 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 { SmartTransferStatisticInflow } from './smart-transfer-statistic-inflow'; +// May contain unused imports in some cases +// @ts-ignore +import { SmartTransferStatisticOutflow } from './smart-transfer-statistic-outflow'; + +/** + * Smart transfers statistic + * @export + * @interface SmartTransferStatistic + */ +export interface SmartTransferStatistic { + /** + * + * @type {SmartTransferStatisticInflow} + * @memberof SmartTransferStatistic + */ + 'inflow': SmartTransferStatisticInflow; + /** + * + * @type {SmartTransferStatisticOutflow} + * @memberof SmartTransferStatistic + */ + 'outflow': SmartTransferStatisticOutflow; + /** + * Number of total active tickets + * @type {number} + * @memberof SmartTransferStatistic + */ + 'totalActiveTickets': number; + /** + * Number of total inactive tickets (expired, canceled, completed) + * @type {number} + * @memberof SmartTransferStatistic + */ + 'totalInactiveTickets': number; +} + diff --git a/models/smart-transfer-ticket.ts b/models/smart-transfer-ticket.ts index a06e116..8b6921a 100644 --- a/models/smart-transfer-ticket.ts +++ b/models/smart-transfer-ticket.ts @@ -30,7 +30,7 @@ export interface SmartTransferTicket { */ 'id': string; /** - * Kind of Smart Transfer. Can be either `ASYNC` or `ATOMIC` + * Kind of Smart Transfer. Can be either `ASYNC` or `DVP` * @type {string} * @memberof SmartTransferTicket */ @@ -146,7 +146,8 @@ export interface SmartTransferTicket { } export const SmartTransferTicketTypeEnum = { - Async: 'ASYNC' + Async: 'ASYNC', + Dvp: 'DVP' } as const; export type SmartTransferTicketTypeEnum = typeof SmartTransferTicketTypeEnum[keyof typeof SmartTransferTicketTypeEnum]; diff --git a/models/transaction-request.ts b/models/transaction-request.ts index 86fc493..aa89442 100644 --- a/models/transaction-request.ts +++ b/models/transaction-request.ts @@ -216,7 +216,7 @@ export interface TransactionRequest { */ 'cpuStaking'?: TransactionRequestNetworkStaking; /** - * - Override the default gaslsess configuration by sending true\\false + * - Override the default gasless configuration by sending true\\false * @type {boolean} * @memberof TransactionRequest */ diff --git a/models/travel-rule-vasp-for-vault.ts b/models/travel-rule-vasp-for-vault.ts new file mode 100644 index 0000000..c890861 --- /dev/null +++ b/models/travel-rule-vasp-for-vault.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 TravelRuleVaspForVault + */ +export interface TravelRuleVaspForVault { + /** + * VASP DID + * @type {string} + * @memberof TravelRuleVaspForVault + */ + 'vaspDid'?: string; +} + diff --git a/package-lock.json b/package-lock.json index bd4e5db..1ef0456 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@fireblocks/ts-sdk", - "version": "4.0.0", + "version": "0.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@fireblocks/ts-sdk", - "version": "4.0.0", + "version": "0.0.0", "license": "MIT License", "dependencies": { "axios": "^1.6.7", @@ -40,12 +40,13 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", - "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.0.tgz", + "integrity": "sha512-INCKxTtbXtcNbUZ3YXutwMpEleqttcswhAdee7dhuoVrD2cnuc3PqtERBtxkX5nziX9vnBL8WXmSGwv8CuPV6g==", "dev": true, "dependencies": { - "@babel/highlight": "^7.24.7", + "@babel/helper-validator-identifier": "^7.25.9", + "js-tokens": "^4.0.0", "picocolors": "^1.0.0" }, "engines": { @@ -53,30 +54,30 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.25.4", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.25.4.tgz", - "integrity": "sha512-+LGRog6RAsCJrrrg/IO6LGmpphNe5DiK30dGjCoxxeGv49B10/3XYGxPsAwrDlMFcFEvdAUavDT8r9k/hSyQqQ==", + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.26.0.tgz", + "integrity": "sha512-qETICbZSLe7uXv9VE8T/RWOdIE5qqyTucOt4zLYMafj2MRO271VGgLd4RACJMeBO37UPWhXiKMBk7YlJ0fOzQA==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.25.2.tgz", - "integrity": "sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA==", + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.26.0.tgz", + "integrity": "sha512-i1SLeK+DzNnQ3LL/CswPCa/E5u4lh1k6IAEphON8F+cXt0t9euTshDru0q7/IqMa1PMPz5RnHuHscF8/ZJsStg==", "dev": true, "dependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.24.7", - "@babel/generator": "^7.25.0", - "@babel/helper-compilation-targets": "^7.25.2", - "@babel/helper-module-transforms": "^7.25.2", - "@babel/helpers": "^7.25.0", - "@babel/parser": "^7.25.0", - "@babel/template": "^7.25.0", - "@babel/traverse": "^7.25.2", - "@babel/types": "^7.25.2", + "@babel/code-frame": "^7.26.0", + "@babel/generator": "^7.26.0", + "@babel/helper-compilation-targets": "^7.25.9", + "@babel/helper-module-transforms": "^7.26.0", + "@babel/helpers": "^7.26.0", + "@babel/parser": "^7.26.0", + "@babel/template": "^7.25.9", + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.26.0", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -92,29 +93,30 @@ } }, "node_modules/@babel/generator": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.6.tgz", - "integrity": "sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw==", + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.26.0.tgz", + "integrity": "sha512-/AIkAmInnWwgEAJGQr9vY0c66Mj6kjkE2ZPB1PurTRaRAh3U+J45sAQMjQDJdh4WbR3l0x5xkimXBKyBXXAu2w==", "dev": true, "dependencies": { - "@babel/types": "^7.25.6", + "@babel/parser": "^7.26.0", + "@babel/types": "^7.26.0", "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25", - "jsesc": "^2.5.1" + "jsesc": "^3.0.2" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.2.tgz", - "integrity": "sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.9.tgz", + "integrity": "sha512-j9Db8Suy6yV/VHa4qzrj9yZfZxhLWQdVnRlXxmKLYlhWUVB1sB2G5sxuWYXk/whHD9iW76PmNzxZ4UCnTQTVEQ==", "dev": true, "dependencies": { - "@babel/compat-data": "^7.25.2", - "@babel/helper-validator-option": "^7.24.8", - "browserslist": "^4.23.1", + "@babel/compat-data": "^7.25.9", + "@babel/helper-validator-option": "^7.25.9", + "browserslist": "^4.24.0", "lru-cache": "^5.1.1", "semver": "^6.3.1" }, @@ -123,28 +125,27 @@ } }, "node_modules/@babel/helper-module-imports": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz", - "integrity": "sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz", + "integrity": "sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==", "dev": true, "dependencies": { - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7" + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.25.2.tgz", - "integrity": "sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ==", + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz", + "integrity": "sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==", "dev": true, "dependencies": { - "@babel/helper-module-imports": "^7.24.7", - "@babel/helper-simple-access": "^7.24.7", - "@babel/helper-validator-identifier": "^7.24.7", - "@babel/traverse": "^7.25.2" + "@babel/helper-module-imports": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9", + "@babel/traverse": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -154,160 +155,61 @@ } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz", - "integrity": "sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.9.tgz", + "integrity": "sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw==", "dev": true, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helper-simple-access": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz", - "integrity": "sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==", - "dev": true, - "dependencies": { - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/helper-string-parser": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz", - "integrity": "sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", + "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", - "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", + "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz", - "integrity": "sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz", + "integrity": "sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.25.6.tgz", - "integrity": "sha512-Xg0tn4HcfTijTwfDwYlvVCl43V6h4KyVVX2aEm4qdO/PC6L2YvzLHFdmxhoeSA3eslcE6+ZVXHgWwopXYLNq4Q==", + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.26.0.tgz", + "integrity": "sha512-tbhNuIxNcVb21pInl3ZSjksLCvgdZy9KwJ8brv993QtIVKJBBkYXz4q4ZbAv31GdnC+R90np23L5FbEBlthAEw==", "dev": true, "dependencies": { - "@babel/template": "^7.25.0", - "@babel/types": "^7.25.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", - "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.24.7", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0", - "picocolors": "^1.0.0" + "@babel/template": "^7.25.9", + "@babel/types": "^7.26.0" }, "engines": { "node": ">=6.9.0" } }, - "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": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "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/@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/@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/@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.25.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.6.tgz", - "integrity": "sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==", + "version": "7.26.1", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.1.tgz", + "integrity": "sha512-reoQYNiAJreZNsJzyrDNzFQ+IQ5JFiIzAHJg9bn94S3l+4++J7RsIhNMoB+lgP/9tpmiAQqspv+xfdxTSzREOw==", "dev": true, "dependencies": { - "@babel/types": "^7.25.6" + "@babel/types": "^7.26.0" }, "bin": { "parser": "bin/babel-parser.js" @@ -368,12 +270,12 @@ } }, "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.25.6.tgz", - "integrity": "sha512-sXaDXaJN9SNLymBdlWFA+bjzBhFD617ZaFiY13dGt7TVslVvVgA6fkZOP7Ki3IGElC45lwHdOTrCtKZGVAWeLQ==", + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.26.0.tgz", + "integrity": "sha512-e2dttdsJ1ZTpi3B9UYGLw41hifAubg19AtCu/2I/F1QNVclOBr1dYpTdmdyZ84Xiz43BS/tCUkMAZNLv12Pi+A==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.24.8" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -407,12 +309,12 @@ } }, "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.7.tgz", - "integrity": "sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.25.9.tgz", + "integrity": "sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -524,12 +426,12 @@ } }, "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.25.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.4.tgz", - "integrity": "sha512-uMOCoHVU52BsSWxPOMVv5qKRdeSlPuImUCB2dlPuBSU+W2/ROE7/Zg8F2Kepbk+8yBa68LlRKxO+xgEVWorsDg==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.9.tgz", + "integrity": "sha512-hjMgRy5hb8uJJjUcdWunWVcoi9bGpJp8p5Ol1229PoN6aytsLwNMgmdftO23wnCLMfVmTwZDWMPNq/D1SY60JQ==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.24.8" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -539,30 +441,30 @@ } }, "node_modules/@babel/template": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.0.tgz", - "integrity": "sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.9.tgz", + "integrity": "sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.24.7", - "@babel/parser": "^7.25.0", - "@babel/types": "^7.25.0" + "@babel/code-frame": "^7.25.9", + "@babel/parser": "^7.25.9", + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.6.tgz", - "integrity": "sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.9.tgz", + "integrity": "sha512-ZCuvfwOwlz/bawvAuvcj8rrithP2/N55Tzz342AkTvq4qaWbGfmCk/tKhNaV2cthijKrPAA8SRJV5WWe7IBMJw==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.24.7", - "@babel/generator": "^7.25.6", - "@babel/parser": "^7.25.6", - "@babel/template": "^7.25.0", - "@babel/types": "^7.25.6", + "@babel/code-frame": "^7.25.9", + "@babel/generator": "^7.25.9", + "@babel/parser": "^7.25.9", + "@babel/template": "^7.25.9", + "@babel/types": "^7.25.9", "debug": "^4.3.1", "globals": "^11.1.0" }, @@ -571,14 +473,13 @@ } }, "node_modules/@babel/types": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.6.tgz", - "integrity": "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==", + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.0.tgz", + "integrity": "sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==", "dev": true, "dependencies": { - "@babel/helper-string-parser": "^7.24.8", - "@babel/helper-validator-identifier": "^7.24.7", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1312,9 +1213,9 @@ } }, "node_modules/browserslist": { - "version": "4.23.3", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.3.tgz", - "integrity": "sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA==", + "version": "4.24.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.2.tgz", + "integrity": "sha512-ZIc+Q62revdMcqC6aChtW4jz3My3klmCO1fEmINZY/8J3EpBg5/A/D0AKmBveUh6pgoeycoMkVMko84tuYS+Gg==", "dev": true, "funding": [ { @@ -1331,10 +1232,10 @@ } ], "dependencies": { - "caniuse-lite": "^1.0.30001646", - "electron-to-chromium": "^1.5.4", + "caniuse-lite": "^1.0.30001669", + "electron-to-chromium": "^1.5.41", "node-releases": "^2.0.18", - "update-browserslist-db": "^1.1.0" + "update-browserslist-db": "^1.1.1" }, "bin": { "browserslist": "cli.js" @@ -1394,9 +1295,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001660", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001660.tgz", - "integrity": "sha512-GacvNTTuATm26qC74pt+ad1fW15mlQ/zuTzzY1ZoIzECTP8HURDfF43kNxPgf7H1jmelCBQTTbBNxdSXOA7Bqg==", + "version": "1.0.30001675", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001675.tgz", + "integrity": "sha512-/wV1bQwPrkLiQMjaJF5yUMVM/VdRPOCU8QZ+PmG6uW6DvYSrNY1bpwHI/3mOcUosLaJCzYDi5o91IQB51ft6cg==", "dev": true, "funding": [ { @@ -1640,9 +1541,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.24", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.24.tgz", - "integrity": "sha512-0x0wLCmpdKFCi9ulhvYZebgcPmHTkFVUfU2wzDykadkslKwT4oAmDTHEKLnlrDsMGZe4B+ksn8quZfZjYsBetA==", + "version": "1.5.49", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.49.tgz", + "integrity": "sha512-ZXfs1Of8fDb6z7WEYZjXpgIRF6MEu8JdeGA0A40aZq6OQbS+eJpnnV49epZRna2DU/YsEjSQuGtQPPtvt6J65A==", "dev": true }, "node_modules/emittery": { @@ -1811,9 +1712,9 @@ } }, "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==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", + "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", @@ -2754,15 +2655,15 @@ } }, "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz", + "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==", "dev": true, "bin": { "jsesc": "bin/jsesc" }, "engines": { - "node": ">=4" + "node": ">=6" } }, "node_modules/json-parse-even-better-errors": { @@ -3201,9 +3102,9 @@ "dev": true }, "node_modules/picocolors": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.0.tgz", - "integrity": "sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", "dev": true }, "node_modules/picomatch": { @@ -3586,15 +3487,6 @@ "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", @@ -3697,9 +3589,9 @@ } }, "node_modules/update-browserslist-db": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz", - "integrity": "sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz", + "integrity": "sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==", "dev": true, "funding": [ { @@ -3716,8 +3608,8 @@ } ], "dependencies": { - "escalade": "^3.1.2", - "picocolors": "^1.0.1" + "escalade": "^3.2.0", + "picocolors": "^1.1.0" }, "bin": { "update-browserslist-db": "cli.js" diff --git a/package.json b/package.json index 133e71c..863dcef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fireblocks/ts-sdk", - "version": "4.0.0", + "version": "0.0.0", "description": "OpenAPI client for @fireblocks/ts-sdk", "author": "Fireblocks SDK Generator", "repository": {