From 85419e7e281c07adaa965ae5f2a39a96715e0220 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 8 Jan 2025 17:54:20 +0200 Subject: [PATCH] Generated SDK #8699 (#116) Co-authored-by: fireblocks_dx_team --- .openapi-generator/FILES | 166 ++- CHANGELOG.md | 81 -- README.md | 121 +- api.ts | 6 +- api/blockchains-assets-api.ts | 4 +- api/blockchains-assets-beta-api.ts | 579 ++++++++ api/compliance-api.ts | 99 ++ api/contract-interactions-api.ts | 95 ++ api/cosigners-beta-api.ts | 541 ++++++- api/embedded-wallets-api.ts | 340 +++++ api/keys-beta-api.ts | 213 +++ api/staking-api.ts | 1247 +++++++++++++++++ api/staking-beta-api.ts | 830 ----------- api/webhooks-v2-beta-api.ts | 857 +++++++++++ client/client.ts | 28 +- docs/apis/BlockchainsAssetsApi.md | 1 + docs/apis/BlockchainsAssetsBetaApi.md | 295 ++++ docs/apis/ComplianceApi.md | 64 + docs/apis/ContractInteractionsApi.md | 64 + docs/apis/CosignersBetaApi.md | 334 ++++- docs/apis/EmbeddedWalletsApi.md | 155 ++ docs/apis/KeysBetaApi.md | 125 ++ docs/apis/StakingApi.md | 811 +++++++++++ docs/apis/StakingBetaApi.md | 537 ------- docs/apis/WebhooksV2BetaApi.md | 476 +++++++ docs/models/AddCosignerRequest.md | 14 + docs/models/AddCosignerResponse.md | 15 + ...AdditionalInfoDto.md => AdditionalInfo.md} | 2 +- docs/models/ApiKey.md | 3 +- docs/models/AssetBadRequestErrorResponse.md | 2 +- docs/models/AssetClassBeta.md | 18 + docs/models/AssetConflictErrorResponse.md | 2 +- docs/models/AssetForbiddenErrorResponse.md | 2 +- .../AssetInternalServerErrorResponse.md | 2 +- docs/models/AssetMedia.md | 23 + ...ionResponse.md => AssetMediaAttributes.md} | 4 +- ...etResponseMetadata.md => AssetMetadata.md} | 4 +- docs/models/AssetMetadataBeta.md | 26 + docs/models/AssetNotFoundErrorResponse.md | 2 +- ...ssetResponseOnchain.md => AssetOnchain.md} | 2 +- docs/models/AssetOnchainBeta.md | 16 + .../AssetPriceForbiddenErrorResponse.md | 2 +- .../models/AssetPriceNotFoundErrorResponse.md | 2 +- docs/models/AssetResponse.md | 4 +- docs/models/AssetResponseBeta.md | 19 + docs/models/AuditLogData.md | 4 +- docs/models/BlockchainExplorer.md | 15 + docs/models/BlockchainMedia.md | 22 + docs/models/BlockchainMetadata.md | 24 + .../models/BlockchainNotFoundErrorResponse.md | 13 + docs/models/BlockchainOnchain.md | 24 + docs/models/BlockchainResponse.md | 17 + docs/models/CallbackHandler.md | 14 + docs/models/CallbackHandlerRequest.md | 14 + docs/models/ChainDescriptor.md | 18 + ...nfoResponseDto.md => ChainInfoResponse.md} | 4 +- docs/models/ClaimRewardsRequest.md | 15 + docs/models/Cosigner.md | 17 + docs/models/CreateWebhookRequest.md | 15 + .../{DelegationDto.md => Delegation.md} | 12 +- ...tionSummaryDto.md => DelegationSummary.md} | 2 +- docs/models/ExecuteActionRequest.md | 19 - docs/models/FeeLevel.md | 14 + docs/models/GetMpcKeysResponse.md | 13 + docs/models/ListAssetsResponse.md | 13 + docs/models/ListBlockchainsResponse.md | 13 + docs/models/MpcKey.md | 16 + docs/models/Notification.md | 19 + docs/models/NotificationPaginatedResponse.md | 13 + docs/models/NotificationStatus.md | 14 + docs/models/NotificationWithData.md | 20 + docs/models/PairApiKeyRequest.md | 12 + docs/models/PairApiKeyResponse.md | 13 + docs/models/Players.md | 22 + docs/models/{ProviderDto.md => Provider.md} | 10 +- docs/models/PublicKeyInformation.md | 17 +- ...RelatedRequestDto.md => RelatedRequest.md} | 4 +- ...ransactionDto.md => RelatedTransaction.md} | 2 +- ...hainDataDto.md => SolanaBlockchainData.md} | 3 +- docs/models/SplitRequest.md | 16 + docs/models/SplitResponse.md | 12 + .../{StakeRequestDto.md => StakeRequest.md} | 6 +- .../{StakeResponseDto.md => StakeResponse.md} | 2 +- docs/models/StakingProvider.md | 14 + docs/models/Status.md | 39 + docs/models/TokenInfoNotFoundErrorResponse.md | 13 + docs/models/TransactionOperation.md | 2 + docs/models/TransactionReceiptResponse.md | 25 + docs/models/TransferPeerPathType.md | 2 + docs/models/TxLog.md | 20 + ...UnstakeRequestDto.md => UnstakeRequest.md} | 4 +- docs/models/UpdateCallbackHandlerRequest.md | 12 + docs/models/UpdateCallbackHandlerResponse.md | 13 + docs/models/UpdateWebhookRequest.md | 15 + docs/models/{ValidatorDto.md => Validator.md} | 3 +- docs/models/Version.md | 12 + docs/models/Webhook.md | 27 + docs/models/WebhookEvent.md | 78 ++ docs/models/WebhookPaginatedResponse.md | 13 + ...thdrawRequestDto.md => WithdrawRequest.md} | 4 +- models/add-cosigner-request.ts | 42 + models/add-cosigner-response.ts | 48 + ...itional-info-dto.ts => additional-info.ts} | 12 +- models/api-key.ts | 11 +- models/asset-bad-request-error-response.ts | 4 +- models/asset-class-beta.ts | 34 + models/asset-conflict-error-response.ts | 4 +- models/asset-forbidden-error-response.ts | 4 +- .../asset-internal-server-error-response.ts | 4 +- models/asset-media-attributes.ts | 30 + models/asset-media.ts | 53 + models/asset-metadata-beta.ts | 71 + ...response-metadata.ts => asset-metadata.ts} | 14 +- models/asset-not-found-error-response.ts | 4 +- models/asset-onchain-beta.ts | 54 + ...t-response-onchain.ts => asset-onchain.ts} | 14 +- .../asset-price-forbidden-error-response.ts | 4 +- .../asset-price-not-found-error-response.ts | 4 +- models/asset-response-beta.ts | 83 ++ models/asset-response.ts | 12 +- models/audit-log-data.ts | 8 +- models/blockchain-explorer.ts | 48 + models/blockchain-media.ts | 44 + models/blockchain-metadata.ts | 62 + models/blockchain-not-found-error-response.ts | 36 + models/blockchain-onchain.ts | 56 + models/blockchain-response.ts | 66 + models/callback-handler-request.ts | 42 + models/callback-handler.ts | 42 + models/chain-descriptor.ts | 34 + ...response-dto.ts => chain-info-response.ts} | 22 +- models/claim-rewards-request.ts | 53 + models/cosigner.ts | 28 +- models/create-webhook-request.ts | 51 + ...n-summary-dto.ts => delegation-summary.ts} | 12 +- models/{delegation-dto.ts => delegation.ts} | 81 +- models/fee-level.ts | 32 + ...on-request.ts => get-mpc-keys-response.ts} | 27 +- models/index.ts | 77 +- models/list-assets-response.ts | 39 + models/list-blockchains-response.ts | 39 + models/mpc-key.ts | 57 + models/notification-paginated-response.ts | 39 + models/notification-status.ts | 32 + models/notification-with-data.ts | 86 ++ models/notification.ts | 80 ++ models/pair-api-key-request.ts | 33 + models/pair-api-key-response.ts | 39 + models/players.ts | 44 + models/{provider-dto.ts => provider.ts} | 42 +- models/public-key-information.ts | 17 +- ...ated-request-dto.ts => related-request.ts} | 18 +- ...nsaction-dto.ts => related-transaction.ts} | 8 +- models/rename-cosigner.ts | 2 +- models/solana-blockchain-data.ts | 36 + models/split-request.ts | 59 + ...ockchain-data-dto.ts => split-response.ts} | 10 +- ...{stake-request-dto.ts => stake-request.ts} | 36 +- ...take-response-dto.ts => stake-response.ts} | 6 +- .../staking-get-all-delegations-response.ts | 4 +- models/staking-get-chains-response.ts | 5 +- models/staking-get-providers-response.ts | 4 +- .../staking-get-summary-by-vault-response.ts | 4 +- models/staking-provider.ts | 32 + models/status.ts | 54 + models/token-info-not-found-error-response.ts | 36 + models/transaction-operation.ts | 3 +- models/transaction-receipt-response.ts | 111 ++ models/transfer-peer-path-type.ts | 3 +- models/tx-log.ts | 78 ++ ...take-request-dto.ts => unstake-request.ts} | 25 +- models/update-callback-handler-request.ts | 33 + models/update-callback-handler-response.ts | 39 + models/update-webhook-request.ts | 51 + models/{validator-dto.ts => validator.ts} | 14 +- ...{execute-action-response.ts => version.ts} | 16 +- models/webhook-event.ts | 64 + models/webhook-paginated-response.ts | 39 + models/webhook.ts | 77 + ...raw-request-dto.ts => withdraw-request.ts} | 23 +- package-lock.json | 537 +++++-- package.json | 6 +- tests/client.spec.ts | 46 +- 183 files changed, 10452 insertions(+), 1933 deletions(-) delete mode 100644 CHANGELOG.md create mode 100644 api/blockchains-assets-beta-api.ts create mode 100644 api/embedded-wallets-api.ts create mode 100644 api/keys-beta-api.ts create mode 100644 api/staking-api.ts delete mode 100644 api/staking-beta-api.ts create mode 100644 api/webhooks-v2-beta-api.ts create mode 100644 docs/apis/BlockchainsAssetsBetaApi.md create mode 100644 docs/apis/EmbeddedWalletsApi.md create mode 100644 docs/apis/KeysBetaApi.md create mode 100644 docs/apis/StakingApi.md delete mode 100644 docs/apis/StakingBetaApi.md create mode 100644 docs/apis/WebhooksV2BetaApi.md create mode 100644 docs/models/AddCosignerRequest.md create mode 100644 docs/models/AddCosignerResponse.md rename docs/models/{AdditionalInfoDto.md => AdditionalInfo.md} (97%) create mode 100644 docs/models/AssetClassBeta.md create mode 100644 docs/models/AssetMedia.md rename docs/models/{ExecuteActionResponse.md => AssetMediaAttributes.md} (72%) rename docs/models/{AssetResponseMetadata.md => AssetMetadata.md} (89%) create mode 100644 docs/models/AssetMetadataBeta.md rename docs/models/{AssetResponseOnchain.md => AssetOnchain.md} (96%) create mode 100644 docs/models/AssetOnchainBeta.md create mode 100644 docs/models/AssetResponseBeta.md create mode 100644 docs/models/BlockchainExplorer.md create mode 100644 docs/models/BlockchainMedia.md create mode 100644 docs/models/BlockchainMetadata.md create mode 100644 docs/models/BlockchainNotFoundErrorResponse.md create mode 100644 docs/models/BlockchainOnchain.md create mode 100644 docs/models/BlockchainResponse.md create mode 100644 docs/models/CallbackHandler.md create mode 100644 docs/models/CallbackHandlerRequest.md create mode 100644 docs/models/ChainDescriptor.md rename docs/models/{ChainInfoResponseDto.md => ChainInfoResponse.md} (78%) create mode 100644 docs/models/ClaimRewardsRequest.md create mode 100644 docs/models/CreateWebhookRequest.md rename docs/models/{DelegationDto.md => Delegation.md} (56%) rename docs/models/{DelegationSummaryDto.md => DelegationSummary.md} (98%) delete mode 100644 docs/models/ExecuteActionRequest.md create mode 100644 docs/models/FeeLevel.md create mode 100644 docs/models/GetMpcKeysResponse.md create mode 100644 docs/models/ListAssetsResponse.md create mode 100644 docs/models/ListBlockchainsResponse.md create mode 100644 docs/models/MpcKey.md create mode 100644 docs/models/Notification.md create mode 100644 docs/models/NotificationPaginatedResponse.md create mode 100644 docs/models/NotificationStatus.md create mode 100644 docs/models/NotificationWithData.md create mode 100644 docs/models/PairApiKeyRequest.md create mode 100644 docs/models/PairApiKeyResponse.md create mode 100644 docs/models/Players.md rename docs/models/{ProviderDto.md => Provider.md} (57%) rename docs/models/{RelatedRequestDto.md => RelatedRequest.md} (93%) rename docs/models/{RelatedTransactionDto.md => RelatedTransaction.md} (95%) rename docs/models/{SolanaBlockchainDataDto.md => SolanaBlockchainData.md} (68%) create mode 100644 docs/models/SplitRequest.md create mode 100644 docs/models/SplitResponse.md rename docs/models/{StakeRequestDto.md => StakeRequest.md} (73%) rename docs/models/{StakeResponseDto.md => StakeResponse.md} (95%) create mode 100644 docs/models/StakingProvider.md create mode 100644 docs/models/Status.md create mode 100644 docs/models/TokenInfoNotFoundErrorResponse.md create mode 100644 docs/models/TransactionReceiptResponse.md create mode 100644 docs/models/TxLog.md rename docs/models/{UnstakeRequestDto.md => UnstakeRequest.md} (81%) create mode 100644 docs/models/UpdateCallbackHandlerRequest.md create mode 100644 docs/models/UpdateCallbackHandlerResponse.md create mode 100644 docs/models/UpdateWebhookRequest.md rename docs/models/{ValidatorDto.md => Validator.md} (81%) create mode 100644 docs/models/Version.md create mode 100644 docs/models/Webhook.md create mode 100644 docs/models/WebhookEvent.md create mode 100644 docs/models/WebhookPaginatedResponse.md rename docs/models/{WithdrawRequestDto.md => WithdrawRequest.md} (76%) create mode 100644 models/add-cosigner-request.ts create mode 100644 models/add-cosigner-response.ts rename models/{additional-info-dto.ts => additional-info.ts} (78%) create mode 100644 models/asset-class-beta.ts create mode 100644 models/asset-media-attributes.ts create mode 100644 models/asset-media.ts create mode 100644 models/asset-metadata-beta.ts rename models/{asset-response-metadata.ts => asset-metadata.ts} (64%) create mode 100644 models/asset-onchain-beta.ts rename models/{asset-response-onchain.ts => asset-onchain.ts} (76%) create mode 100644 models/asset-response-beta.ts create mode 100644 models/blockchain-explorer.ts create mode 100644 models/blockchain-media.ts create mode 100644 models/blockchain-metadata.ts create mode 100644 models/blockchain-not-found-error-response.ts create mode 100644 models/blockchain-onchain.ts create mode 100644 models/blockchain-response.ts create mode 100644 models/callback-handler-request.ts create mode 100644 models/callback-handler.ts create mode 100644 models/chain-descriptor.ts rename models/{chain-info-response-dto.ts => chain-info-response.ts} (67%) create mode 100644 models/claim-rewards-request.ts create mode 100644 models/create-webhook-request.ts rename models/{delegation-summary-dto.ts => delegation-summary.ts} (87%) rename models/{delegation-dto.ts => delegation.ts} (67%) create mode 100644 models/fee-level.ts rename models/{execute-action-request.ts => get-mpc-keys-response.ts} (55%) create mode 100644 models/list-assets-response.ts create mode 100644 models/list-blockchains-response.ts create mode 100644 models/mpc-key.ts create mode 100644 models/notification-paginated-response.ts create mode 100644 models/notification-status.ts create mode 100644 models/notification-with-data.ts create mode 100644 models/notification.ts create mode 100644 models/pair-api-key-request.ts create mode 100644 models/pair-api-key-response.ts create mode 100644 models/players.ts rename models/{provider-dto.ts => provider.ts} (62%) rename models/{related-request-dto.ts => related-request.ts} (69%) rename models/{related-transaction-dto.ts => related-transaction.ts} (80%) create mode 100644 models/solana-blockchain-data.ts create mode 100644 models/split-request.ts rename models/{solana-blockchain-data-dto.ts => split-response.ts} (69%) rename models/{stake-request-dto.ts => stake-request.ts} (63%) rename models/{stake-response-dto.ts => stake-response.ts} (84%) create mode 100644 models/staking-provider.ts create mode 100644 models/status.ts create mode 100644 models/token-info-not-found-error-response.ts create mode 100644 models/transaction-receipt-response.ts create mode 100644 models/tx-log.ts rename models/{unstake-request-dto.ts => unstake-request.ts} (72%) create mode 100644 models/update-callback-handler-request.ts create mode 100644 models/update-callback-handler-response.ts create mode 100644 models/update-webhook-request.ts rename models/{validator-dto.ts => validator.ts} (73%) rename models/{execute-action-response.ts => version.ts} (68%) create mode 100644 models/webhook-event.ts create mode 100644 models/webhook-paginated-response.ts create mode 100644 models/webhook.ts rename models/{withdraw-request-dto.ts => withdraw-request.ts} (68%) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index eedda3f..48ec1ce 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -16,7 +16,9 @@ AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.md AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.md AddCollateralRequestBody.md AddContractAssetRequest.md -AdditionalInfoDto.md +AddCosignerRequest.md +AddCosignerResponse.md +AdditionalInfo.md AmlRegistrationResult.md AmlScreeningResult.md AmountAggregationTimePeriodMethod.md @@ -28,17 +30,23 @@ ApiUserApi.md AssetAlreadyExistHttpError.md AssetAmount.md AssetBadRequestErrorResponse.md +AssetClassBeta.md AssetConflictErrorResponse.md AssetForbiddenErrorResponse.md AssetInternalServerErrorResponse.md +AssetMedia.md +AssetMediaAttributes.md +AssetMetadata.md +AssetMetadataBeta.md AssetMetadataDto.md AssetNotFoundErrorResponse.md +AssetOnchain.md +AssetOnchainBeta.md AssetPriceForbiddenErrorResponse.md AssetPriceNotFoundErrorResponse.md AssetPriceResponse.md AssetResponse.md -AssetResponseMetadata.md -AssetResponseOnchain.md +AssetResponseBeta.md AssetTypeResponse.md AssetWallet.md AssetsApi.md @@ -49,9 +57,20 @@ AuditorData.md AuthorizationGroups.md AuthorizationInfo.md BlockInfo.md +BlockchainExplorer.md +BlockchainMedia.md +BlockchainMetadata.md +BlockchainNotFoundErrorResponse.md +BlockchainOnchain.md +BlockchainResponse.md BlockchainsAssetsApi.md +BlockchainsAssetsBetaApi.md +CallbackHandler.md +CallbackHandlerRequest.md CancelTransactionResponse.md -ChainInfoResponseDto.md +ChainDescriptor.md +ChainInfoResponse.md +ClaimRewardsRequest.md CollectionBurnRequestDto.md CollectionBurnResponseDto.md CollectionDeployRequestDto.md @@ -136,11 +155,12 @@ CreateVaultAccountConnectionRequest.md CreateVaultAccountRequest.md CreateVaultAssetResponse.md CreateWalletRequest.md +CreateWebhookRequest.md CreateWorkflowExecutionRequestParamsInner.md CustomRoutingDest.md DefaultNetworkRoutingDest.md -DelegationDto.md -DelegationSummaryDto.md +Delegation.md +DelegationSummary.md DeleteNetworkConnectionResponse.md DeleteNetworkIdResponse.md DeployedContractResponseDto.md @@ -173,6 +193,7 @@ DropTransactionRequest.md DropTransactionResponse.md EVMTokenCreateParamsDto.md EditGasStationConfigurationResponse.md +EmbeddedWalletsApi.md ErrorResponse.md ErrorResponseError.md ErrorSchema.md @@ -186,8 +207,6 @@ ExchangeAsset.md ExchangeSettlementTransactionsResponse.md ExchangeTradingAccount.md ExchangeType.md -ExecuteActionRequest.md -ExecuteActionResponse.md ExecutionConversionOperation.md ExecutionDisbursementOperation.md ExecutionOperationStatus.md @@ -196,6 +215,7 @@ ExecutionTransferOperation.md ExternalWalletAsset.md ExternalWalletsApi.md FeeInfo.md +FeeLevel.md FetchAbiRequestDto.md FiatAccount.md FiatAccountType.md @@ -221,6 +241,7 @@ GetFilterParameter.md GetInternalWalletsResponse.md GetLinkedCollectionsPaginatedResponse.md GetMaxSpendableAmountResponse.md +GetMpcKeysResponse.md GetNFTsResponse.md GetNetworkConnectionsResponse.md GetNetworkIdsResponse.md @@ -249,16 +270,20 @@ JobCreated.md JobManagementApi.md Jobs.md KeyLinkBetaApi.md +KeysBetaApi.md LICENSE LeanAbiFunction.md LeanContractDto.md LeanDeployedContractResponseDto.md +ListAssetsResponse.md +ListBlockchainsResponse.md ListOwnedCollectionsResponse.md ListOwnedTokensResponse.md MediaEntityResponse.md ModifySigningKeyAgentIdDto.md ModifySigningKeyDto.md ModifyValidationKeyDto.md +MpcKey.md NFTsApi.md NetworkChannel.md NetworkConnection.md @@ -275,6 +300,10 @@ NetworkIdRoutingPolicyValue.md NetworkRecord.md NoneNetworkRoutingDest.md NotFoundException.md +Notification.md +NotificationPaginatedResponse.md +NotificationStatus.md +NotificationWithData.md OTABetaApi.md OffExchangesApi.md OneTimeAddress.md @@ -285,6 +314,8 @@ PaginatedAddressResponsePaging.md PaginatedAssetWalletResponse.md PaginatedAssetWalletResponsePaging.md Paging.md +PairApiKeyRequest.md +PairApiKeyResponse.md Parameter.md ParameterWithValue.md ParameterWithValueList.md @@ -302,6 +333,7 @@ PayoutInstructionState.md PayoutResponse.md PayoutState.md PayoutStatus.md +Players.md PolicyAndValidationResponse.md PolicyCheckResult.md PolicyEditorBetaApi.md @@ -326,7 +358,7 @@ PolicySrcOrDestType.md PolicyStatus.md PolicyValidation.md PreScreening.md -ProviderDto.md +Provider.md PublicKeyInformation.md PublishDraftRequest.md PublishResult.md @@ -335,8 +367,8 @@ ReadAbiFunction.md ReadCallFunctionDto.md RedeemFundsToLinkedDDAResponse.md RegisterNewAssetRequest.md -RelatedRequestDto.md -RelatedTransactionDto.md +RelatedRequest.md +RelatedTransaction.md RemoveCollateralRequestBody.md RenameCosigner.md RenameVaultAccountResponse.md @@ -412,20 +444,24 @@ SmartTransferTicketTermResponse.md SmartTransferUpdateTicketTerm.md SmartTransferUserGroups.md SmartTransferUserGroupsResponse.md -SolanaBlockchainDataDto.md +SolanaBlockchainData.md SourceTransferPeerPath.md SourceTransferPeerPathResponse.md SpamOwnershipResponse.md SpamTokenResponse.md +SplitRequest.md +SplitResponse.md SrcOrDestAttributes.md SrcOrDestAttributesInner.md -StakeRequestDto.md -StakeResponseDto.md -StakingBetaApi.md +StakeRequest.md +StakeResponse.md +StakingApi.md StakingGetAllDelegationsResponse.md StakingGetChainsResponse.md StakingGetProvidersResponse.md StakingGetSummaryByVaultResponse.md +StakingProvider.md +Status.md StellarRippleCreateParamsDto.md SystemMessageInfo.md Task.md @@ -435,6 +471,7 @@ ThirdPartyRouting.md ToCollateralTransaction.md ToExchangeTransaction.md TokenCollectionResponse.md +TokenInfoNotFoundErrorResponse.md TokenLinkDto.md TokenLinkDtoTokenMetadata.md TokenLinkExistsHttpError.md @@ -449,6 +486,7 @@ TradingAccountType.md Transaction.md TransactionFee.md TransactionOperation.md +TransactionReceiptResponse.md TransactionRequest.md TransactionRequestAmount.md TransactionRequestDestination.md @@ -492,16 +530,20 @@ TravelRuleValidateFullTransactionRequest.md TravelRuleValidateTransactionRequest.md TravelRuleValidateTransactionResponse.md TravelRuleVaspForVault.md +TxLog.md UnfreezeTransactionResponse.md UnmanagedWallet.md UnspentInput.md UnspentInputsResponse.md -UnstakeRequestDto.md +UnstakeRequest.md +UpdateCallbackHandlerRequest.md +UpdateCallbackHandlerResponse.md UpdateTokenOwnershipStatusDto.md UpdateTokensOwnershipSpamRequest.md UpdateTokensOwnershipStatusRequest.md UpdateVaultAccountAssetAddressRequest.md UpdateVaultAccountRequest.md +UpdateWebhookRequest.md UserGroupCreateRequest.md UserGroupCreateResponse.md UserGroupResponse.md @@ -517,7 +559,7 @@ ValidateAddressResponse.md ValidatedTransactionsForRescan.md ValidatedTransactionsForRescanResponse.md ValidationKeyDto.md -ValidatorDto.md +Validator.md VaultAccount.md VaultAccountsPagedResponse.md VaultAccountsPagedResponsePaging.md @@ -526,12 +568,17 @@ VaultAsset.md VaultWalletAddress.md VaultsApi.md VendorDto.md +Version.md WalletAsset.md WalletAssetAdditionalInfo.md Web3ConnectionsApi.md +Webhook.md +WebhookEvent.md +WebhookPaginatedResponse.md WebhooksApi.md +WebhooksV2BetaApi.md WhitelistIpAddressesApi.md -WithdrawRequestDto.md +WithdrawRequest.md WorkflowConfigStatus.md WorkflowConfigurationId.md WorkflowExecutionOperation.md @@ -544,6 +591,7 @@ api/api-user-api.ts api/assets-api.ts api/audit-logs-api.ts api/blockchains-assets-api.ts +api/blockchains-assets-beta-api.ts api/compliance-api.ts api/compliance-screening-configuration-api.ts api/console-user-api.ts @@ -552,6 +600,7 @@ api/contract-templates-api.ts api/contracts-api.ts api/cosigners-beta-api.ts api/deployed-contracts-api.ts +api/embedded-wallets-api.ts api/exchange-accounts-api.ts api/external-wallets-api.ts api/fiat-accounts-api.ts @@ -559,6 +608,7 @@ api/gas-stations-api.ts api/internal-wallets-api.ts api/job-management-api.ts api/key-link-beta-api.ts +api/keys-beta-api.ts api/network-connections-api.ts api/nfts-api.ts api/off-exchanges-api.ts @@ -567,7 +617,7 @@ api/payments-payout-api.ts api/policy-editor-beta-api.ts api/reset-device-api.ts api/smart-transfer-api.ts -api/staking-beta-api.ts +api/staking-api.ts api/tokenization-api.ts api/transactions-api.ts api/travel-rule-beta-api.ts @@ -576,6 +626,7 @@ api/users-api.ts api/vaults-api.ts api/web3-connections-api.ts api/webhooks-api.ts +api/webhooks-v2-beta-api.ts api/whitelist-ip-addresses-api.ts api/workspace-status-beta-api.ts base.ts @@ -599,7 +650,9 @@ models/add-asset-to-external-wallet-request-one-of1.ts models/add-asset-to-external-wallet-request.ts models/add-collateral-request-body.ts models/add-contract-asset-request.ts -models/additional-info-dto.ts +models/add-cosigner-request.ts +models/add-cosigner-response.ts +models/additional-info.ts models/aml-registration-result.ts models/aml-screening-result.ts models/amount-aggregation-time-period-method.ts @@ -612,16 +665,22 @@ models/apiusers.ts models/asset-already-exist-http-error.ts models/asset-amount.ts models/asset-bad-request-error-response.ts +models/asset-class-beta.ts models/asset-conflict-error-response.ts models/asset-forbidden-error-response.ts models/asset-internal-server-error-response.ts +models/asset-media-attributes.ts +models/asset-media.ts +models/asset-metadata-beta.ts models/asset-metadata-dto.ts +models/asset-metadata.ts models/asset-not-found-error-response.ts +models/asset-onchain-beta.ts +models/asset-onchain.ts models/asset-price-forbidden-error-response.ts models/asset-price-not-found-error-response.ts models/asset-price-response.ts -models/asset-response-metadata.ts -models/asset-response-onchain.ts +models/asset-response-beta.ts models/asset-response.ts models/asset-type-response.ts models/asset-wallet.ts @@ -631,8 +690,18 @@ models/auditor-data.ts models/authorization-groups.ts models/authorization-info.ts models/block-info.ts +models/blockchain-explorer.ts +models/blockchain-media.ts +models/blockchain-metadata.ts +models/blockchain-not-found-error-response.ts +models/blockchain-onchain.ts +models/blockchain-response.ts +models/callback-handler-request.ts +models/callback-handler.ts models/cancel-transaction-response.ts -models/chain-info-response-dto.ts +models/chain-descriptor.ts +models/chain-info-response.ts +models/claim-rewards-request.ts models/collection-burn-request-dto.ts models/collection-burn-response-dto.ts models/collection-deploy-request-dto.ts @@ -710,11 +779,12 @@ models/create-vault-account-connection-request.ts models/create-vault-account-request.ts models/create-vault-asset-response.ts models/create-wallet-request.ts +models/create-webhook-request.ts models/create-workflow-execution-request-params-inner.ts models/custom-routing-dest.ts models/default-network-routing-dest.ts -models/delegation-dto.ts -models/delegation-summary-dto.ts +models/delegation-summary.ts +models/delegation.ts models/delete-network-connection-response.ts models/delete-network-id-response.ts models/deployed-contract-response-dto.ts @@ -758,8 +828,6 @@ models/exchange-asset.ts models/exchange-settlement-transactions-response.ts models/exchange-trading-account.ts models/exchange-type.ts -models/execute-action-request.ts -models/execute-action-response.ts models/execution-conversion-operation.ts models/execution-disbursement-operation.ts models/execution-operation-status.ts @@ -767,6 +835,7 @@ models/execution-screening-operation.ts models/execution-transfer-operation.ts models/external-wallet-asset.ts models/fee-info.ts +models/fee-level.ts models/fetch-abi-request-dto.ts models/fiat-account-type.ts models/fiat-account.ts @@ -790,6 +859,7 @@ models/get-filter-parameter.ts models/get-internal-wallets-response.ts models/get-linked-collections-paginated-response.ts models/get-max-spendable-amount-response.ts +models/get-mpc-keys-response.ts models/get-network-connections-response.ts models/get-network-ids-response.ts models/get-nfts-response.ts @@ -819,12 +889,15 @@ models/jobs.ts models/lean-abi-function.ts models/lean-contract-dto.ts models/lean-deployed-contract-response-dto.ts +models/list-assets-response.ts +models/list-blockchains-response.ts models/list-owned-collections-response.ts models/list-owned-tokens-response.ts models/media-entity-response.ts models/modify-signing-key-agent-id-dto.ts models/modify-signing-key-dto.ts models/modify-validation-key-dto.ts +models/mpc-key.ts models/network-channel.ts models/network-connection-response.ts models/network-connection-routing-policy-value.ts @@ -839,6 +912,10 @@ models/network-id.ts models/network-record.ts models/none-network-routing-dest.ts models/not-found-exception.ts +models/notification-paginated-response.ts +models/notification-status.ts +models/notification-with-data.ts +models/notification.ts models/one-time-address-account.ts models/one-time-address.ts models/operation-execution-failure.ts @@ -847,6 +924,8 @@ models/paginated-address-response.ts models/paginated-asset-wallet-response-paging.ts models/paginated-asset-wallet-response.ts models/paging.ts +models/pair-api-key-request.ts +models/pair-api-key-response.ts models/parameter-with-value-list.ts models/parameter-with-value.ts models/parameter.ts @@ -863,6 +942,7 @@ models/payout-instruction.ts models/payout-response.ts models/payout-state.ts models/payout-status.ts +models/players.ts models/policy-and-validation-response.ts models/policy-check-result.ts models/policy-metadata.ts @@ -886,7 +966,7 @@ models/policy-src-or-dest-type.ts models/policy-status.ts models/policy-validation.ts models/pre-screening.ts -models/provider-dto.ts +models/provider.ts models/public-key-information.ts models/publish-draft-request.ts models/publish-result.ts @@ -894,8 +974,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-transaction-dto.ts +models/related-request.ts +models/related-transaction.ts models/remove-collateral-request-body.ts models/rename-cosigner.ts models/rename-vault-account-response.ts @@ -969,19 +1049,23 @@ models/smart-transfer-ticket.ts models/smart-transfer-update-ticket-term.ts models/smart-transfer-user-groups-response.ts models/smart-transfer-user-groups.ts -models/solana-blockchain-data-dto.ts +models/solana-blockchain-data.ts models/source-transfer-peer-path-response.ts models/source-transfer-peer-path.ts models/spam-ownership-response.ts models/spam-token-response.ts +models/split-request.ts +models/split-response.ts models/src-or-dest-attributes-inner.ts models/src-or-dest-attributes.ts -models/stake-request-dto.ts -models/stake-response-dto.ts +models/stake-request.ts +models/stake-response.ts models/staking-get-all-delegations-response.ts models/staking-get-chains-response.ts models/staking-get-providers-response.ts models/staking-get-summary-by-vault-response.ts +models/staking-provider.ts +models/status.ts models/stellar-ripple-create-params-dto.ts models/system-message-info.ts models/task.ts @@ -991,6 +1075,7 @@ models/third-party-routing.ts models/to-collateral-transaction.ts models/to-exchange-transaction.ts models/token-collection-response.ts +models/token-info-not-found-error-response.ts models/token-link-dto-token-metadata.ts models/token-link-dto.ts models/token-link-exists-http-error.ts @@ -1003,6 +1088,7 @@ models/tokens-paginated-response.ts models/trading-account-type.ts models/transaction-fee.ts models/transaction-operation.ts +models/transaction-receipt-response.ts models/transaction-request-amount.ts models/transaction-request-destination.ts models/transaction-request-fee.ts @@ -1045,16 +1131,20 @@ 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/tx-log.ts models/unfreeze-transaction-response.ts models/unmanaged-wallet.ts models/unspent-input.ts models/unspent-inputs-response.ts -models/unstake-request-dto.ts +models/unstake-request.ts +models/update-callback-handler-request.ts +models/update-callback-handler-response.ts models/update-token-ownership-status-dto.ts models/update-tokens-ownership-spam-request.ts models/update-tokens-ownership-status-request.ts models/update-vault-account-asset-address-request.ts models/update-vault-account-request.ts +models/update-webhook-request.ts models/user-group-create-request.ts models/user-group-create-response.ts models/user-group-response.ts @@ -1068,7 +1158,7 @@ models/validate-address-response.ts models/validated-transactions-for-rescan-response.ts models/validated-transactions-for-rescan.ts models/validation-key-dto.ts -models/validator-dto.ts +models/validator.ts models/vault-account.ts models/vault-accounts-paged-response-paging.ts models/vault-accounts-paged-response.ts @@ -1076,9 +1166,13 @@ models/vault-action-status.ts models/vault-asset.ts models/vault-wallet-address.ts models/vendor-dto.ts +models/version.ts models/wallet-asset-additional-info.ts models/wallet-asset.ts -models/withdraw-request-dto.ts +models/webhook-event.ts +models/webhook-paginated-response.ts +models/webhook.ts +models/withdraw-request.ts models/workflow-config-status.ts models/workflow-configuration-id.ts models/workflow-execution-operation.ts diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 5db19ed..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,81 +0,0 @@ -### Changelog - -All notable changes to this project will be documented in this file. Dates are displayed in UTC. - -### [v6.0.0](https://github.com/fireblocks/ts-sdk/compare/v5.0.0...v6.0.0) - -> 5 December 2024 - -- Generated SDK #1430 [`#111`](https://github.com/fireblocks/ts-sdk/pull/111) - -### [v5.0.0](https://github.com/fireblocks/ts-sdk/compare/v4.0.0...v5.0.0) - -> 31 October 2024 - -- Generated SDK #5184 [`#109`](https://github.com/fireblocks/ts-sdk/pull/109) - -### [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 685f460..31dfaa4 100644 --- a/README.md +++ b/README.md @@ -133,10 +133,15 @@ Class | Method | HTTP request | Description *BlockchainsAssetsApi* | [**getSupportedAssets**](docs/apis/BlockchainsAssetsApi.md#getSupportedAssets) | **GET** /supported_assets | List all asset types supported by Fireblocks *BlockchainsAssetsApi* | [**registerNewAsset**](docs/apis/BlockchainsAssetsApi.md#registerNewAsset) | **POST** /assets | Register an asset *BlockchainsAssetsApi* | [**setAssetPrice**](docs/apis/BlockchainsAssetsApi.md#setAssetPrice) | **POST** /assets/prices/{id} | Set asset price +*BlockchainsAssetsBetaApi* | [**getAssetById**](docs/apis/BlockchainsAssetsBetaApi.md#getAssetById) | **GET** /assets/{id} | Get an asset +*BlockchainsAssetsBetaApi* | [**getBlockchainById**](docs/apis/BlockchainsAssetsBetaApi.md#getBlockchainById) | **GET** /blockchains/{id} | Get an blockchain +*BlockchainsAssetsBetaApi* | [**listAssets**](docs/apis/BlockchainsAssetsBetaApi.md#listAssets) | **GET** /assets | List assets +*BlockchainsAssetsBetaApi* | [**listBlockchains**](docs/apis/BlockchainsAssetsBetaApi.md#listBlockchains) | **GET** /blockchains | List blockchains *ComplianceApi* | [**getAmlPostScreeningPolicy**](docs/apis/ComplianceApi.md#getAmlPostScreeningPolicy) | **GET** /screening/aml/post_screening_policy | AML - View Post-Screening Policy *ComplianceApi* | [**getAmlScreeningPolicy**](docs/apis/ComplianceApi.md#getAmlScreeningPolicy) | **GET** /screening/aml/screening_policy | AML - View Screening Policy *ComplianceApi* | [**getPostScreeningPolicy**](docs/apis/ComplianceApi.md#getPostScreeningPolicy) | **GET** /screening/travel_rule/post_screening_policy | Travel Rule - View Post-Screening Policy *ComplianceApi* | [**getScreeningPolicy**](docs/apis/ComplianceApi.md#getScreeningPolicy) | **GET** /screening/travel_rule/screening_policy | Travel Rule - View Screening Policy +*ComplianceApi* | [**retryRejectedTransactionBypassScreeningChecks**](docs/apis/ComplianceApi.md#retryRejectedTransactionBypassScreeningChecks) | **POST** /screening/transaction/{txId}/bypass_screening_policy | Calling the \"Bypass Screening Policy\" API endpoint triggers a new transaction, with the API user as the initiator, bypassing the screening policy check *ComplianceApi* | [**updateAmlScreeningConfiguration**](docs/apis/ComplianceApi.md#updateAmlScreeningConfiguration) | **PUT** /screening/aml/policy_configuration | Update AML Configuration *ComplianceApi* | [**updateScreeningConfiguration**](docs/apis/ComplianceApi.md#updateScreeningConfiguration) | **PUT** /screening/configurations | Tenant - Screening Configuration *ComplianceApi* | [**updateTravelRuleConfig**](docs/apis/ComplianceApi.md#updateTravelRuleConfig) | **PUT** /screening/travel_rule/policy_configuration | Update Travel Rule Configuration @@ -145,6 +150,7 @@ Class | Method | HTTP request | Description *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/{baseAssetId}/contract_address/{contractAddress}/functions | Return deployed contract\'s ABI +*ContractInteractionsApi* | [**getTransactionReceipt**](docs/apis/ContractInteractionsApi.md#getTransactionReceipt) | **GET** /contract_interactions/base_asset_id/{baseAssetId}/tx_hash/{txHash}/receipt | Get transaction receipt *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 @@ -161,16 +167,23 @@ Class | Method | HTTP request | Description *ContractsApi* | [**getContract**](docs/apis/ContractsApi.md#getContract) | **GET** /contracts/{contractId} | Find a specific contract *ContractsApi* | [**getContractAsset**](docs/apis/ContractsApi.md#getContractAsset) | **GET** /contracts/{contractId}/{assetId} | Find a contract asset *ContractsApi* | [**getContracts**](docs/apis/ContractsApi.md#getContracts) | **GET** /contracts | List contracts +*CosignersBetaApi* | [**addCosigner**](docs/apis/CosignersBetaApi.md#addCosigner) | **POST** /cosigners | Add cosigner *CosignersBetaApi* | [**getApiKey**](docs/apis/CosignersBetaApi.md#getApiKey) | **GET** /cosigners/{cosignerId}/api_keys/{apiKeyId} | Get API key *CosignersBetaApi* | [**getApiKeys**](docs/apis/CosignersBetaApi.md#getApiKeys) | **GET** /cosigners/{cosignerId}/api_keys | Get all API keys *CosignersBetaApi* | [**getCosigner**](docs/apis/CosignersBetaApi.md#getCosigner) | **GET** /cosigners/{cosignerId} | Get cosigner *CosignersBetaApi* | [**getCosigners**](docs/apis/CosignersBetaApi.md#getCosigners) | **GET** /cosigners | Get all cosigners +*CosignersBetaApi* | [**getRequestStatus**](docs/apis/CosignersBetaApi.md#getRequestStatus) | **GET** /cosigners/{cosignerId}/api_keys/{apiKeyId}/{requestId} | Get request status +*CosignersBetaApi* | [**pairApiKey**](docs/apis/CosignersBetaApi.md#pairApiKey) | **PUT** /cosigners/{cosignerId}/api_keys/{apiKeyId} | Pair API key *CosignersBetaApi* | [**renameCosigner**](docs/apis/CosignersBetaApi.md#renameCosigner) | **PATCH** /cosigners/{cosignerId} | Rename cosigner +*CosignersBetaApi* | [**unpairApiKey**](docs/apis/CosignersBetaApi.md#unpairApiKey) | **DELETE** /cosigners/{cosignerId}/api_keys/{apiKeyId} | Unpair API key +*CosignersBetaApi* | [**updateCallbackHandler**](docs/apis/CosignersBetaApi.md#updateCallbackHandler) | **PATCH** /cosigners/{cosignerId}/api_keys/{apiKeyId} | Update API key callback handler *DeployedContractsApi* | [**addContractABI**](docs/apis/DeployedContractsApi.md#addContractABI) | **POST** /tokenization/contracts/abi | Save contract ABI *DeployedContractsApi* | [**fetchContractAbi**](docs/apis/DeployedContractsApi.md#fetchContractAbi) | **POST** /tokenization/contracts/fetch_abi | Fetch the contract ABI *DeployedContractsApi* | [**getDeployedContractByAddress**](docs/apis/DeployedContractsApi.md#getDeployedContractByAddress) | **GET** /tokenization/contracts/{assetId}/{contractAddress} | Return deployed contract data *DeployedContractsApi* | [**getDeployedContractById**](docs/apis/DeployedContractsApi.md#getDeployedContractById) | **GET** /tokenization/contracts/{id} | Return deployed contract data by id *DeployedContractsApi* | [**getDeployedContracts**](docs/apis/DeployedContractsApi.md#getDeployedContracts) | **GET** /tokenization/contracts | List deployed contracts data +*EmbeddedWalletsApi* | [**getPublicKeyInfoForAddressNcw**](docs/apis/EmbeddedWalletsApi.md#getPublicKeyInfoForAddressNcw) | **GET** /ncw/{walletId}/accounts/{accountId}/{assetId}/{change}/{addressIndex}/public_key_info | Get the public key of an asset +*EmbeddedWalletsApi* | [**getPublicKeyInfoNcw**](docs/apis/EmbeddedWalletsApi.md#getPublicKeyInfoNcw) | **GET** /ncw/{walletId}/public_key_info | Get the public key for a derivation path *ExchangeAccountsApi* | [**convertAssets**](docs/apis/ExchangeAccountsApi.md#convertAssets) | **POST** /exchange_accounts/{exchangeAccountId}/convert | Convert exchange account funds from the source asset to the destination asset. *ExchangeAccountsApi* | [**getExchangeAccount**](docs/apis/ExchangeAccountsApi.md#getExchangeAccount) | **GET** /exchange_accounts/{exchangeAccountId} | Find a specific exchange account *ExchangeAccountsApi* | [**getExchangeAccountAsset**](docs/apis/ExchangeAccountsApi.md#getExchangeAccountAsset) | **GET** /exchange_accounts/{exchangeAccountId}/{assetId} | Find an asset for an exchange account @@ -215,6 +228,8 @@ Class | Method | HTTP request | Description *KeyLinkBetaApi* | [**getValidationKeysList**](docs/apis/KeyLinkBetaApi.md#getValidationKeysList) | **GET** /key_link/validation_keys | Get list of registered validation keys *KeyLinkBetaApi* | [**setAgentId**](docs/apis/KeyLinkBetaApi.md#setAgentId) | **PATCH** /key_link/signing_keys/{keyId}/agent_user_id | Set agent user id that can sign with the signing key identified by the Fireblocks provided `keyId` *KeyLinkBetaApi* | [**updateSigningKey**](docs/apis/KeyLinkBetaApi.md#updateSigningKey) | **PATCH** /key_link/signing_keys/{keyId} | Modify the signing by Fireblocks provided `keyId` +*KeysBetaApi* | [**getMpcKeysList**](docs/apis/KeysBetaApi.md#getMpcKeysList) | **GET** /keys/mpc/list | Get list of mpc keys +*KeysBetaApi* | [**getMpcKeysListByUser**](docs/apis/KeysBetaApi.md#getMpcKeysListByUser) | **GET** /keys/mpc/list/{userId} | Get list of mpc keys by `userId` *NFTsApi* | [**getNFT**](docs/apis/NFTsApi.md#getNFT) | **GET** /nfts/tokens/{id} | List token data by ID *NFTsApi* | [**getNFTs**](docs/apis/NFTsApi.md#getNFTs) | **GET** /nfts/tokens | List tokens by IDs *NFTsApi* | [**getOwnershipTokens**](docs/apis/NFTsApi.md#getOwnershipTokens) | **GET** /nfts/ownership/tokens | List all owned tokens (paginated) @@ -275,15 +290,19 @@ Class | Method | HTTP request | Description *SmartTransferApi* | [**setUserGroups**](docs/apis/SmartTransferApi.md#setUserGroups) | **POST** /smart-transfers/settings/user-groups | Set user group *SmartTransferApi* | [**submitTicket**](docs/apis/SmartTransferApi.md#submitTicket) | **PUT** /smart-transfers/{ticketId}/submit | Submit ticket *SmartTransferApi* | [**updateTicketTerm**](docs/apis/SmartTransferApi.md#updateTicketTerm) | **PUT** /smart-transfers/{ticketId}/terms/{termId} | Update ticket leg (term) -*StakingBetaApi* | [**approveTermsOfServiceByProviderId**](docs/apis/StakingBetaApi.md#approveTermsOfServiceByProviderId) | **POST** /staking/providers/{providerId}/approveTermsOfService | -*StakingBetaApi* | [**executeAction**](docs/apis/StakingBetaApi.md#executeAction) | **POST** /staking/chains/{chainDescriptor}/{actionId} | -*StakingBetaApi* | [**getAllDelegations**](docs/apis/StakingBetaApi.md#getAllDelegations) | **GET** /staking/positions | -*StakingBetaApi* | [**getChainInfo**](docs/apis/StakingBetaApi.md#getChainInfo) | **GET** /staking/chains/{chainDescriptor}/chainInfo | -*StakingBetaApi* | [**getChains**](docs/apis/StakingBetaApi.md#getChains) | **GET** /staking/chains | -*StakingBetaApi* | [**getDelegationById**](docs/apis/StakingBetaApi.md#getDelegationById) | **GET** /staking/positions/{id} | -*StakingBetaApi* | [**getProviders**](docs/apis/StakingBetaApi.md#getProviders) | **GET** /staking/providers | -*StakingBetaApi* | [**getSummary**](docs/apis/StakingBetaApi.md#getSummary) | **GET** /staking/positions/summary | -*StakingBetaApi* | [**getSummaryByVault**](docs/apis/StakingBetaApi.md#getSummaryByVault) | **GET** /staking/positions/summary/vaults | +*StakingApi* | [**approveTermsOfServiceByProviderId**](docs/apis/StakingApi.md#approveTermsOfServiceByProviderId) | **POST** /staking/providers/{providerId}/approveTermsOfService | Approve staking terms of service +*StakingApi* | [**claimRewards**](docs/apis/StakingApi.md#claimRewards) | **POST** /staking/chains/{chainDescriptor}/claim_rewards | Execute a Claim Rewards operation +*StakingApi* | [**getAllDelegations**](docs/apis/StakingApi.md#getAllDelegations) | **GET** /staking/positions | List staking positions details +*StakingApi* | [**getChainInfo**](docs/apis/StakingApi.md#getChainInfo) | **GET** /staking/chains/{chainDescriptor}/chainInfo | Get chain-specific staking summary +*StakingApi* | [**getChains**](docs/apis/StakingApi.md#getChains) | **GET** /staking/chains | List staking supported chains +*StakingApi* | [**getDelegationById**](docs/apis/StakingApi.md#getDelegationById) | **GET** /staking/positions/{id} | Get staking position details +*StakingApi* | [**getProviders**](docs/apis/StakingApi.md#getProviders) | **GET** /staking/providers | List staking providers details +*StakingApi* | [**getSummary**](docs/apis/StakingApi.md#getSummary) | **GET** /staking/positions/summary | Get staking summary details +*StakingApi* | [**getSummaryByVault**](docs/apis/StakingApi.md#getSummaryByVault) | **GET** /staking/positions/summary/vaults | Get staking summary details by vault +*StakingApi* | [**split**](docs/apis/StakingApi.md#split) | **POST** /staking/chains/{chainDescriptor}/split | Execute a Split operation on SOL/SOL_TEST stake account +*StakingApi* | [**stake**](docs/apis/StakingApi.md#stake) | **POST** /staking/chains/{chainDescriptor}/stake | Initiate Stake Operation +*StakingApi* | [**unstake**](docs/apis/StakingApi.md#unstake) | **POST** /staking/chains/{chainDescriptor}/unstake | Execute an Unstake operation +*StakingApi* | [**withdraw**](docs/apis/StakingApi.md#withdraw) | **POST** /staking/chains/{chainDescriptor}/withdraw | Execute a Withdraw operation *TokenizationApi* | [**burnCollectionToken**](docs/apis/TokenizationApi.md#burnCollectionToken) | **POST** /tokenization/collections/{id}/tokens/burn | Burn tokens *TokenizationApi* | [**createNewCollection**](docs/apis/TokenizationApi.md#createNewCollection) | **POST** /tokenization/collections | Create a new collection *TokenizationApi* | [**fetchCollectionTokenDetails**](docs/apis/TokenizationApi.md#fetchCollectionTokenDetails) | **GET** /tokenization/collections/{id}/tokens/{tokenId} | Get collection token details @@ -354,6 +373,13 @@ Class | Method | HTTP request | Description *Web3ConnectionsApi* | [**submit**](docs/apis/Web3ConnectionsApi.md#submit) | **PUT** /connections/wc/{id} | Respond to a pending Web3 connection request. *WebhooksApi* | [**resendTransactionWebhooks**](docs/apis/WebhooksApi.md#resendTransactionWebhooks) | **POST** /webhooks/resend/{txId} | Resend failed webhooks for a transaction by ID *WebhooksApi* | [**resendWebhooks**](docs/apis/WebhooksApi.md#resendWebhooks) | **POST** /webhooks/resend | Resend failed webhooks +*WebhooksV2BetaApi* | [**createWebhook**](docs/apis/WebhooksV2BetaApi.md#createWebhook) | **POST** /webhooks | Create new webhook +*WebhooksV2BetaApi* | [**deleteWebhook**](docs/apis/WebhooksV2BetaApi.md#deleteWebhook) | **DELETE** /webhooks/{webhookId} | Delete webhook +*WebhooksV2BetaApi* | [**getNotification**](docs/apis/WebhooksV2BetaApi.md#getNotification) | **GET** /webhooks/{webhookId}/notifications/{notificationId} | Get notification by id +*WebhooksV2BetaApi* | [**getNotifications**](docs/apis/WebhooksV2BetaApi.md#getNotifications) | **GET** /webhooks/{webhookId}/notifications | Get all notifications by webhook id +*WebhooksV2BetaApi* | [**getWebhook**](docs/apis/WebhooksV2BetaApi.md#getWebhook) | **GET** /webhooks/{webhookId} | Get webhook by id +*WebhooksV2BetaApi* | [**getWebhooks**](docs/apis/WebhooksV2BetaApi.md#getWebhooks) | **GET** /webhooks | Get all webhooks +*WebhooksV2BetaApi* | [**updateWebhook**](docs/apis/WebhooksV2BetaApi.md#updateWebhook) | **PATCH** /webhooks/{webhookId} | Update webhook *WhitelistIpAddressesApi* | [**getWhitelistIpAddresses**](docs/apis/WhitelistIpAddressesApi.md#getWhitelistIpAddresses) | **GET** /management/api_users/{userId}/whitelist_ip_addresses | Gets whitelisted ip addresses *WorkspaceStatusBetaApi* | [**getWorkspaceStatus**](docs/apis/WorkspaceStatusBetaApi.md#getWorkspaceStatus) | **GET** /management/workspace_status | Returns current workspace status @@ -375,7 +401,9 @@ Class | Method | HTTP request | Description - [AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2](docs/models/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.md) - [AddCollateralRequestBody](docs/models/AddCollateralRequestBody.md) - [AddContractAssetRequest](docs/models/AddContractAssetRequest.md) - - [AdditionalInfoDto](docs/models/AdditionalInfoDto.md) + - [AddCosignerRequest](docs/models/AddCosignerRequest.md) + - [AddCosignerResponse](docs/models/AddCosignerResponse.md) + - [AdditionalInfo](docs/models/AdditionalInfo.md) - [AmlRegistrationResult](docs/models/AmlRegistrationResult.md) - [AmlScreeningResult](docs/models/AmlScreeningResult.md) - [AmountAggregationTimePeriodMethod](docs/models/AmountAggregationTimePeriodMethod.md) @@ -386,17 +414,23 @@ Class | Method | HTTP request | Description - [AssetAlreadyExistHttpError](docs/models/AssetAlreadyExistHttpError.md) - [AssetAmount](docs/models/AssetAmount.md) - [AssetBadRequestErrorResponse](docs/models/AssetBadRequestErrorResponse.md) + - [AssetClassBeta](docs/models/AssetClassBeta.md) - [AssetConflictErrorResponse](docs/models/AssetConflictErrorResponse.md) - [AssetForbiddenErrorResponse](docs/models/AssetForbiddenErrorResponse.md) - [AssetInternalServerErrorResponse](docs/models/AssetInternalServerErrorResponse.md) + - [AssetMedia](docs/models/AssetMedia.md) + - [AssetMediaAttributes](docs/models/AssetMediaAttributes.md) + - [AssetMetadata](docs/models/AssetMetadata.md) + - [AssetMetadataBeta](docs/models/AssetMetadataBeta.md) - [AssetMetadataDto](docs/models/AssetMetadataDto.md) - [AssetNotFoundErrorResponse](docs/models/AssetNotFoundErrorResponse.md) + - [AssetOnchain](docs/models/AssetOnchain.md) + - [AssetOnchainBeta](docs/models/AssetOnchainBeta.md) - [AssetPriceForbiddenErrorResponse](docs/models/AssetPriceForbiddenErrorResponse.md) - [AssetPriceNotFoundErrorResponse](docs/models/AssetPriceNotFoundErrorResponse.md) - [AssetPriceResponse](docs/models/AssetPriceResponse.md) - [AssetResponse](docs/models/AssetResponse.md) - - [AssetResponseMetadata](docs/models/AssetResponseMetadata.md) - - [AssetResponseOnchain](docs/models/AssetResponseOnchain.md) + - [AssetResponseBeta](docs/models/AssetResponseBeta.md) - [AssetTypeResponse](docs/models/AssetTypeResponse.md) - [AssetWallet](docs/models/AssetWallet.md) - [AuditLogData](docs/models/AuditLogData.md) @@ -405,8 +439,18 @@ Class | Method | HTTP request | Description - [AuthorizationGroups](docs/models/AuthorizationGroups.md) - [AuthorizationInfo](docs/models/AuthorizationInfo.md) - [BlockInfo](docs/models/BlockInfo.md) + - [BlockchainExplorer](docs/models/BlockchainExplorer.md) + - [BlockchainMedia](docs/models/BlockchainMedia.md) + - [BlockchainMetadata](docs/models/BlockchainMetadata.md) + - [BlockchainNotFoundErrorResponse](docs/models/BlockchainNotFoundErrorResponse.md) + - [BlockchainOnchain](docs/models/BlockchainOnchain.md) + - [BlockchainResponse](docs/models/BlockchainResponse.md) + - [CallbackHandler](docs/models/CallbackHandler.md) + - [CallbackHandlerRequest](docs/models/CallbackHandlerRequest.md) - [CancelTransactionResponse](docs/models/CancelTransactionResponse.md) - - [ChainInfoResponseDto](docs/models/ChainInfoResponseDto.md) + - [ChainDescriptor](docs/models/ChainDescriptor.md) + - [ChainInfoResponse](docs/models/ChainInfoResponse.md) + - [ClaimRewardsRequest](docs/models/ClaimRewardsRequest.md) - [CollectionBurnRequestDto](docs/models/CollectionBurnRequestDto.md) - [CollectionBurnResponseDto](docs/models/CollectionBurnResponseDto.md) - [CollectionDeployRequestDto](docs/models/CollectionDeployRequestDto.md) @@ -484,11 +528,12 @@ Class | Method | HTTP request | Description - [CreateVaultAccountRequest](docs/models/CreateVaultAccountRequest.md) - [CreateVaultAssetResponse](docs/models/CreateVaultAssetResponse.md) - [CreateWalletRequest](docs/models/CreateWalletRequest.md) + - [CreateWebhookRequest](docs/models/CreateWebhookRequest.md) - [CreateWorkflowExecutionRequestParamsInner](docs/models/CreateWorkflowExecutionRequestParamsInner.md) - [CustomRoutingDest](docs/models/CustomRoutingDest.md) - [DefaultNetworkRoutingDest](docs/models/DefaultNetworkRoutingDest.md) - - [DelegationDto](docs/models/DelegationDto.md) - - [DelegationSummaryDto](docs/models/DelegationSummaryDto.md) + - [Delegation](docs/models/Delegation.md) + - [DelegationSummary](docs/models/DelegationSummary.md) - [DeleteNetworkConnectionResponse](docs/models/DeleteNetworkConnectionResponse.md) - [DeleteNetworkIdResponse](docs/models/DeleteNetworkIdResponse.md) - [DeployedContractResponseDto](docs/models/DeployedContractResponseDto.md) @@ -532,8 +577,6 @@ Class | Method | HTTP request | Description - [ExchangeSettlementTransactionsResponse](docs/models/ExchangeSettlementTransactionsResponse.md) - [ExchangeTradingAccount](docs/models/ExchangeTradingAccount.md) - [ExchangeType](docs/models/ExchangeType.md) - - [ExecuteActionRequest](docs/models/ExecuteActionRequest.md) - - [ExecuteActionResponse](docs/models/ExecuteActionResponse.md) - [ExecutionConversionOperation](docs/models/ExecutionConversionOperation.md) - [ExecutionDisbursementOperation](docs/models/ExecutionDisbursementOperation.md) - [ExecutionOperationStatus](docs/models/ExecutionOperationStatus.md) @@ -541,6 +584,7 @@ Class | Method | HTTP request | Description - [ExecutionTransferOperation](docs/models/ExecutionTransferOperation.md) - [ExternalWalletAsset](docs/models/ExternalWalletAsset.md) - [FeeInfo](docs/models/FeeInfo.md) + - [FeeLevel](docs/models/FeeLevel.md) - [FetchAbiRequestDto](docs/models/FetchAbiRequestDto.md) - [FiatAccount](docs/models/FiatAccount.md) - [FiatAccountType](docs/models/FiatAccountType.md) @@ -564,6 +608,7 @@ Class | Method | HTTP request | Description - [GetInternalWalletsResponse](docs/models/GetInternalWalletsResponse.md) - [GetLinkedCollectionsPaginatedResponse](docs/models/GetLinkedCollectionsPaginatedResponse.md) - [GetMaxSpendableAmountResponse](docs/models/GetMaxSpendableAmountResponse.md) + - [GetMpcKeysResponse](docs/models/GetMpcKeysResponse.md) - [GetNFTsResponse](docs/models/GetNFTsResponse.md) - [GetNetworkConnectionsResponse](docs/models/GetNetworkConnectionsResponse.md) - [GetNetworkIdsResponse](docs/models/GetNetworkIdsResponse.md) @@ -592,12 +637,15 @@ Class | Method | HTTP request | Description - [LeanAbiFunction](docs/models/LeanAbiFunction.md) - [LeanContractDto](docs/models/LeanContractDto.md) - [LeanDeployedContractResponseDto](docs/models/LeanDeployedContractResponseDto.md) + - [ListAssetsResponse](docs/models/ListAssetsResponse.md) + - [ListBlockchainsResponse](docs/models/ListBlockchainsResponse.md) - [ListOwnedCollectionsResponse](docs/models/ListOwnedCollectionsResponse.md) - [ListOwnedTokensResponse](docs/models/ListOwnedTokensResponse.md) - [MediaEntityResponse](docs/models/MediaEntityResponse.md) - [ModifySigningKeyAgentIdDto](docs/models/ModifySigningKeyAgentIdDto.md) - [ModifySigningKeyDto](docs/models/ModifySigningKeyDto.md) - [ModifyValidationKeyDto](docs/models/ModifyValidationKeyDto.md) + - [MpcKey](docs/models/MpcKey.md) - [NetworkChannel](docs/models/NetworkChannel.md) - [NetworkConnection](docs/models/NetworkConnection.md) - [NetworkConnectionResponse](docs/models/NetworkConnectionResponse.md) @@ -612,6 +660,10 @@ Class | Method | HTTP request | Description - [NetworkRecord](docs/models/NetworkRecord.md) - [NoneNetworkRoutingDest](docs/models/NoneNetworkRoutingDest.md) - [NotFoundException](docs/models/NotFoundException.md) + - [Notification](docs/models/Notification.md) + - [NotificationPaginatedResponse](docs/models/NotificationPaginatedResponse.md) + - [NotificationStatus](docs/models/NotificationStatus.md) + - [NotificationWithData](docs/models/NotificationWithData.md) - [OneTimeAddress](docs/models/OneTimeAddress.md) - [OneTimeAddressAccount](docs/models/OneTimeAddressAccount.md) - [OperationExecutionFailure](docs/models/OperationExecutionFailure.md) @@ -620,6 +672,8 @@ Class | Method | HTTP request | Description - [PaginatedAssetWalletResponse](docs/models/PaginatedAssetWalletResponse.md) - [PaginatedAssetWalletResponsePaging](docs/models/PaginatedAssetWalletResponsePaging.md) - [Paging](docs/models/Paging.md) + - [PairApiKeyRequest](docs/models/PairApiKeyRequest.md) + - [PairApiKeyResponse](docs/models/PairApiKeyResponse.md) - [Parameter](docs/models/Parameter.md) - [ParameterWithValue](docs/models/ParameterWithValue.md) - [ParameterWithValueList](docs/models/ParameterWithValueList.md) @@ -636,6 +690,7 @@ Class | Method | HTTP request | Description - [PayoutResponse](docs/models/PayoutResponse.md) - [PayoutState](docs/models/PayoutState.md) - [PayoutStatus](docs/models/PayoutStatus.md) + - [Players](docs/models/Players.md) - [PolicyAndValidationResponse](docs/models/PolicyAndValidationResponse.md) - [PolicyCheckResult](docs/models/PolicyCheckResult.md) - [PolicyMetadata](docs/models/PolicyMetadata.md) @@ -659,7 +714,7 @@ Class | Method | HTTP request | Description - [PolicyStatus](docs/models/PolicyStatus.md) - [PolicyValidation](docs/models/PolicyValidation.md) - [PreScreening](docs/models/PreScreening.md) - - [ProviderDto](docs/models/ProviderDto.md) + - [Provider](docs/models/Provider.md) - [PublicKeyInformation](docs/models/PublicKeyInformation.md) - [PublishDraftRequest](docs/models/PublishDraftRequest.md) - [PublishResult](docs/models/PublishResult.md) @@ -667,8 +722,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) - - [RelatedTransactionDto](docs/models/RelatedTransactionDto.md) + - [RelatedRequest](docs/models/RelatedRequest.md) + - [RelatedTransaction](docs/models/RelatedTransaction.md) - [RemoveCollateralRequestBody](docs/models/RemoveCollateralRequestBody.md) - [RenameCosigner](docs/models/RenameCosigner.md) - [RenameVaultAccountResponse](docs/models/RenameVaultAccountResponse.md) @@ -742,19 +797,23 @@ Class | Method | HTTP request | Description - [SmartTransferUpdateTicketTerm](docs/models/SmartTransferUpdateTicketTerm.md) - [SmartTransferUserGroups](docs/models/SmartTransferUserGroups.md) - [SmartTransferUserGroupsResponse](docs/models/SmartTransferUserGroupsResponse.md) - - [SolanaBlockchainDataDto](docs/models/SolanaBlockchainDataDto.md) + - [SolanaBlockchainData](docs/models/SolanaBlockchainData.md) - [SourceTransferPeerPath](docs/models/SourceTransferPeerPath.md) - [SourceTransferPeerPathResponse](docs/models/SourceTransferPeerPathResponse.md) - [SpamOwnershipResponse](docs/models/SpamOwnershipResponse.md) - [SpamTokenResponse](docs/models/SpamTokenResponse.md) + - [SplitRequest](docs/models/SplitRequest.md) + - [SplitResponse](docs/models/SplitResponse.md) - [SrcOrDestAttributes](docs/models/SrcOrDestAttributes.md) - [SrcOrDestAttributesInner](docs/models/SrcOrDestAttributesInner.md) - - [StakeRequestDto](docs/models/StakeRequestDto.md) - - [StakeResponseDto](docs/models/StakeResponseDto.md) + - [StakeRequest](docs/models/StakeRequest.md) + - [StakeResponse](docs/models/StakeResponse.md) - [StakingGetAllDelegationsResponse](docs/models/StakingGetAllDelegationsResponse.md) - [StakingGetChainsResponse](docs/models/StakingGetChainsResponse.md) - [StakingGetProvidersResponse](docs/models/StakingGetProvidersResponse.md) - [StakingGetSummaryByVaultResponse](docs/models/StakingGetSummaryByVaultResponse.md) + - [StakingProvider](docs/models/StakingProvider.md) + - [Status](docs/models/Status.md) - [StellarRippleCreateParamsDto](docs/models/StellarRippleCreateParamsDto.md) - [SystemMessageInfo](docs/models/SystemMessageInfo.md) - [Task](docs/models/Task.md) @@ -764,6 +823,7 @@ Class | Method | HTTP request | Description - [ToCollateralTransaction](docs/models/ToCollateralTransaction.md) - [ToExchangeTransaction](docs/models/ToExchangeTransaction.md) - [TokenCollectionResponse](docs/models/TokenCollectionResponse.md) + - [TokenInfoNotFoundErrorResponse](docs/models/TokenInfoNotFoundErrorResponse.md) - [TokenLinkDto](docs/models/TokenLinkDto.md) - [TokenLinkDtoTokenMetadata](docs/models/TokenLinkDtoTokenMetadata.md) - [TokenLinkExistsHttpError](docs/models/TokenLinkExistsHttpError.md) @@ -777,6 +837,7 @@ Class | Method | HTTP request | Description - [Transaction](docs/models/Transaction.md) - [TransactionFee](docs/models/TransactionFee.md) - [TransactionOperation](docs/models/TransactionOperation.md) + - [TransactionReceiptResponse](docs/models/TransactionReceiptResponse.md) - [TransactionRequest](docs/models/TransactionRequest.md) - [TransactionRequestAmount](docs/models/TransactionRequestAmount.md) - [TransactionRequestDestination](docs/models/TransactionRequestDestination.md) @@ -818,16 +879,20 @@ Class | Method | HTTP request | Description - [TravelRuleValidateTransactionRequest](docs/models/TravelRuleValidateTransactionRequest.md) - [TravelRuleValidateTransactionResponse](docs/models/TravelRuleValidateTransactionResponse.md) - [TravelRuleVaspForVault](docs/models/TravelRuleVaspForVault.md) + - [TxLog](docs/models/TxLog.md) - [UnfreezeTransactionResponse](docs/models/UnfreezeTransactionResponse.md) - [UnmanagedWallet](docs/models/UnmanagedWallet.md) - [UnspentInput](docs/models/UnspentInput.md) - [UnspentInputsResponse](docs/models/UnspentInputsResponse.md) - - [UnstakeRequestDto](docs/models/UnstakeRequestDto.md) + - [UnstakeRequest](docs/models/UnstakeRequest.md) + - [UpdateCallbackHandlerRequest](docs/models/UpdateCallbackHandlerRequest.md) + - [UpdateCallbackHandlerResponse](docs/models/UpdateCallbackHandlerResponse.md) - [UpdateTokenOwnershipStatusDto](docs/models/UpdateTokenOwnershipStatusDto.md) - [UpdateTokensOwnershipSpamRequest](docs/models/UpdateTokensOwnershipSpamRequest.md) - [UpdateTokensOwnershipStatusRequest](docs/models/UpdateTokensOwnershipStatusRequest.md) - [UpdateVaultAccountAssetAddressRequest](docs/models/UpdateVaultAccountAssetAddressRequest.md) - [UpdateVaultAccountRequest](docs/models/UpdateVaultAccountRequest.md) + - [UpdateWebhookRequest](docs/models/UpdateWebhookRequest.md) - [UserGroupCreateRequest](docs/models/UserGroupCreateRequest.md) - [UserGroupCreateResponse](docs/models/UserGroupCreateResponse.md) - [UserGroupResponse](docs/models/UserGroupResponse.md) @@ -841,7 +906,7 @@ Class | Method | HTTP request | Description - [ValidatedTransactionsForRescan](docs/models/ValidatedTransactionsForRescan.md) - [ValidatedTransactionsForRescanResponse](docs/models/ValidatedTransactionsForRescanResponse.md) - [ValidationKeyDto](docs/models/ValidationKeyDto.md) - - [ValidatorDto](docs/models/ValidatorDto.md) + - [Validator](docs/models/Validator.md) - [VaultAccount](docs/models/VaultAccount.md) - [VaultAccountsPagedResponse](docs/models/VaultAccountsPagedResponse.md) - [VaultAccountsPagedResponsePaging](docs/models/VaultAccountsPagedResponsePaging.md) @@ -849,9 +914,13 @@ Class | Method | HTTP request | Description - [VaultAsset](docs/models/VaultAsset.md) - [VaultWalletAddress](docs/models/VaultWalletAddress.md) - [VendorDto](docs/models/VendorDto.md) + - [Version](docs/models/Version.md) - [WalletAsset](docs/models/WalletAsset.md) - [WalletAssetAdditionalInfo](docs/models/WalletAssetAdditionalInfo.md) - - [WithdrawRequestDto](docs/models/WithdrawRequestDto.md) + - [Webhook](docs/models/Webhook.md) + - [WebhookEvent](docs/models/WebhookEvent.md) + - [WebhookPaginatedResponse](docs/models/WebhookPaginatedResponse.md) + - [WithdrawRequest](docs/models/WithdrawRequest.md) - [WorkflowConfigStatus](docs/models/WorkflowConfigStatus.md) - [WorkflowConfigurationId](docs/models/WorkflowConfigurationId.md) - [WorkflowExecutionOperation](docs/models/WorkflowExecutionOperation.md) diff --git a/api.ts b/api.ts index f9279b7..808419b 100644 --- a/api.ts +++ b/api.ts @@ -18,6 +18,7 @@ export * from './api/api-user-api'; export * from './api/assets-api'; export * from './api/audit-logs-api'; export * from './api/blockchains-assets-api'; +export * from './api/blockchains-assets-beta-api'; export * from './api/compliance-api'; export * from './api/compliance-screening-configuration-api'; export * from './api/console-user-api'; @@ -26,6 +27,7 @@ export * from './api/contract-templates-api'; export * from './api/contracts-api'; export * from './api/cosigners-beta-api'; export * from './api/deployed-contracts-api'; +export * from './api/embedded-wallets-api'; export * from './api/exchange-accounts-api'; export * from './api/external-wallets-api'; export * from './api/fiat-accounts-api'; @@ -33,6 +35,7 @@ export * from './api/gas-stations-api'; export * from './api/internal-wallets-api'; export * from './api/job-management-api'; export * from './api/key-link-beta-api'; +export * from './api/keys-beta-api'; export * from './api/nfts-api'; export * from './api/network-connections-api'; export * from './api/otabeta-api'; @@ -41,7 +44,7 @@ export * from './api/payments-payout-api'; export * from './api/policy-editor-beta-api'; export * from './api/reset-device-api'; export * from './api/smart-transfer-api'; -export * from './api/staking-beta-api'; +export * from './api/staking-api'; export * from './api/tokenization-api'; export * from './api/transactions-api'; export * from './api/travel-rule-beta-api'; @@ -50,6 +53,7 @@ export * from './api/users-api'; export * from './api/vaults-api'; export * from './api/web3-connections-api'; export * from './api/webhooks-api'; +export * from './api/webhooks-v2-beta-api'; export * from './api/whitelist-ip-addresses-api'; export * from './api/workspace-status-beta-api'; diff --git a/api/blockchains-assets-api.ts b/api/blockchains-assets-api.ts index d39ab6c..2ef29cd 100644 --- a/api/blockchains-assets-api.ts +++ b/api/blockchains-assets-api.ts @@ -35,8 +35,6 @@ import { AssetForbiddenErrorResponse } from '../models'; // @ts-ignore import { AssetInternalServerErrorResponse } from '../models'; // @ts-ignore -import { AssetNotFoundErrorResponse } from '../models'; -// @ts-ignore import { AssetPriceForbiddenErrorResponse } from '../models'; // @ts-ignore import { AssetPriceNotFoundErrorResponse } from '../models'; @@ -52,6 +50,8 @@ import { GetSupportedAssetsResponse } from '../models'; import { RegisterNewAssetRequest } from '../models'; // @ts-ignore import { SetAssetPriceRequest } from '../models'; +// @ts-ignore +import { TokenInfoNotFoundErrorResponse } from '../models'; /** * BlockchainsAssetsApi - axios parameter creator * @export diff --git a/api/blockchains-assets-beta-api.ts b/api/blockchains-assets-beta-api.ts new file mode 100644 index 0000000..d4d02c5 --- /dev/null +++ b/api/blockchains-assets-beta-api.ts @@ -0,0 +1,579 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +import { convertToFireblocksResponse } from "../response/fireblocksResponse"; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +import { assertParamExistsAndNotEmpty } from '../utils/validation_utils'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import { AssetClassBeta } from '../models'; +// @ts-ignore +import { AssetInternalServerErrorResponse } from '../models'; +// @ts-ignore +import { AssetNotFoundErrorResponse } from '../models'; +// @ts-ignore +import { AssetResponseBeta } from '../models'; +// @ts-ignore +import { BlockchainNotFoundErrorResponse } from '../models'; +// @ts-ignore +import { BlockchainResponse } from '../models'; +// @ts-ignore +import { ErrorSchema } from '../models'; +// @ts-ignore +import { ListAssetsResponse } from '../models'; +// @ts-ignore +import { ListBlockchainsResponse } from '../models'; +/** + * BlockchainsAssetsBetaApi - axios parameter creator + * @export + */ +export const BlockchainsAssetsBetaApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Returns an asset by ID or legacyID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. + * @summary Get an asset + * @param {string} id The ID or legacyId of the asset + * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAssetById: async (id: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExistsAndNotEmpty('getAssetById', 'id', id) + const localVarPath = `/assets/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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; + + if (idempotencyKey != null) { + localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns an blockchain by ID or legacyID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. + * @summary Get an blockchain + * @param {string} id The ID or legacyId of the blockchain + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBlockchainById: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExistsAndNotEmpty('getBlockchainById', 'id', id) + const localVarPath = `/blockchains/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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, + }; + }, + /** + * Returns all asset type supported by Fireblocks.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. + * @summary List assets + * @param {string} [blockchainId] Blockchain id of the assets + * @param {AssetClassBeta} [assetClass] Assets class + * @param {string} [symbol] Assets onchain symbol + * @param {ListAssetsScopeEnum} [scope] Scope of the assets + * @param {boolean} [deprecated] Are assets deprecated + * @param {string} [pageCursor] Next page cursor to fetch + * @param {number} [pageSize] Items per page + * @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} + */ + listAssets: async (blockchainId?: string, assetClass?: AssetClassBeta, symbol?: string, scope?: ListAssetsScopeEnum, deprecated?: boolean, pageCursor?: string, pageSize?: number, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/assets`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (blockchainId !== undefined) { + localVarQueryParameter['blockchainId'] = blockchainId; + } + + if (assetClass !== undefined) { + localVarQueryParameter['assetClass'] = assetClass; + } + + if (symbol !== undefined) { + localVarQueryParameter['symbol'] = symbol; + } + + if (scope !== undefined) { + localVarQueryParameter['scope'] = scope; + } + + if (deprecated !== undefined) { + localVarQueryParameter['deprecated'] = deprecated; + } + + if (pageCursor !== undefined) { + localVarQueryParameter['pageCursor'] = pageCursor; + } + + if (pageSize !== undefined) { + localVarQueryParameter['pageSize'] = pageSize; + } + + if (idempotencyKey != null) { + localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all blockchains supported by Fireblocks.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. + * @summary List blockchains + * @param {string} [protocol] Blockchain protocol + * @param {boolean} [deprecated] Is blockchain deprecated + * @param {boolean} [test] Is test blockchain + * @param {string} [pageCursor] Page cursor to fetch + * @param {number} [pageSize] Items per page (max 500) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listBlockchains: async (protocol?: string, deprecated?: boolean, test?: boolean, pageCursor?: string, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/blockchains`; + // 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; + + if (protocol !== undefined) { + localVarQueryParameter['protocol'] = protocol; + } + + if (deprecated !== undefined) { + localVarQueryParameter['deprecated'] = deprecated; + } + + if (test !== undefined) { + localVarQueryParameter['test'] = test; + } + + if (pageCursor !== undefined) { + localVarQueryParameter['pageCursor'] = pageCursor; + } + + if (pageSize !== undefined) { + localVarQueryParameter['pageSize'] = pageSize; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * BlockchainsAssetsBetaApi - functional programming interface + * @export + */ +export const BlockchainsAssetsBetaApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = BlockchainsAssetsBetaApiAxiosParamCreator(configuration) + return { + /** + * Returns an asset by ID or legacyID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. + * @summary Get an asset + * @param {string} id The ID or legacyId of the asset + * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getAssetById(id: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetById(id, idempotencyKey, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['BlockchainsAssetsBetaApi.getAssetById']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Returns an blockchain by ID or legacyID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. + * @summary Get an blockchain + * @param {string} id The ID or legacyId of the blockchain + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getBlockchainById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getBlockchainById(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['BlockchainsAssetsBetaApi.getBlockchainById']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Returns all asset type supported by Fireblocks.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. + * @summary List assets + * @param {string} [blockchainId] Blockchain id of the assets + * @param {AssetClassBeta} [assetClass] Assets class + * @param {string} [symbol] Assets onchain symbol + * @param {ListAssetsScopeEnum} [scope] Scope of the assets + * @param {boolean} [deprecated] Are assets deprecated + * @param {string} [pageCursor] Next page cursor to fetch + * @param {number} [pageSize] Items per page + * @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 listAssets(blockchainId?: string, assetClass?: AssetClassBeta, symbol?: string, scope?: ListAssetsScopeEnum, deprecated?: boolean, pageCursor?: string, pageSize?: number, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listAssets(blockchainId, assetClass, symbol, scope, deprecated, pageCursor, pageSize, idempotencyKey, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['BlockchainsAssetsBetaApi.listAssets']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Returns all blockchains supported by Fireblocks.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. + * @summary List blockchains + * @param {string} [protocol] Blockchain protocol + * @param {boolean} [deprecated] Is blockchain deprecated + * @param {boolean} [test] Is test blockchain + * @param {string} [pageCursor] Page cursor to fetch + * @param {number} [pageSize] Items per page (max 500) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listBlockchains(protocol?: string, deprecated?: boolean, test?: boolean, pageCursor?: string, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listBlockchains(protocol, deprecated, test, pageCursor, pageSize, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['BlockchainsAssetsBetaApi.listBlockchains']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + } +}; + +/** + * BlockchainsAssetsBetaApi - factory interface + * @export + */ +export const BlockchainsAssetsBetaApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = BlockchainsAssetsBetaApiFp(configuration) + return { + /** + * Returns an asset by ID or legacyID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. + * @summary Get an asset + * @param {BlockchainsAssetsBetaApiGetAssetByIdRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAssetById(requestParameters: BlockchainsAssetsBetaApiGetAssetByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getAssetById(requestParameters.id, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + }, + /** + * Returns an blockchain by ID or legacyID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. + * @summary Get an blockchain + * @param {BlockchainsAssetsBetaApiGetBlockchainByIdRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBlockchainById(requestParameters: BlockchainsAssetsBetaApiGetBlockchainByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getBlockchainById(requestParameters.id, options).then((request) => request(axios, basePath)); + }, + /** + * Returns all asset type supported by Fireblocks.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. + * @summary List assets + * @param {BlockchainsAssetsBetaApiListAssetsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listAssets(requestParameters: BlockchainsAssetsBetaApiListAssetsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listAssets(requestParameters.blockchainId, requestParameters.assetClass, requestParameters.symbol, requestParameters.scope, requestParameters.deprecated, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + }, + /** + * Returns all blockchains supported by Fireblocks.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. + * @summary List blockchains + * @param {BlockchainsAssetsBetaApiListBlockchainsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listBlockchains(requestParameters: BlockchainsAssetsBetaApiListBlockchainsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listBlockchains(requestParameters.protocol, requestParameters.deprecated, requestParameters.test, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for getAssetById operation in BlockchainsAssetsBetaApi. + * @export + * @interface BlockchainsAssetsBetaApiGetAssetByIdRequest + */ +export interface BlockchainsAssetsBetaApiGetAssetByIdRequest { + /** + * The ID or legacyId of the asset + * @type {string} + * @memberof BlockchainsAssetsBetaApiGetAssetById + */ + readonly id: 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 BlockchainsAssetsBetaApiGetAssetById + */ + readonly idempotencyKey?: string +} + +/** + * Request parameters for getBlockchainById operation in BlockchainsAssetsBetaApi. + * @export + * @interface BlockchainsAssetsBetaApiGetBlockchainByIdRequest + */ +export interface BlockchainsAssetsBetaApiGetBlockchainByIdRequest { + /** + * The ID or legacyId of the blockchain + * @type {string} + * @memberof BlockchainsAssetsBetaApiGetBlockchainById + */ + readonly id: string +} + +/** + * Request parameters for listAssets operation in BlockchainsAssetsBetaApi. + * @export + * @interface BlockchainsAssetsBetaApiListAssetsRequest + */ +export interface BlockchainsAssetsBetaApiListAssetsRequest { + /** + * Blockchain id of the assets + * @type {string} + * @memberof BlockchainsAssetsBetaApiListAssets + */ + readonly blockchainId?: string + + /** + * Assets class + * @type {AssetClassBeta} + * @memberof BlockchainsAssetsBetaApiListAssets + */ + readonly assetClass?: AssetClassBeta + + /** + * Assets onchain symbol + * @type {string} + * @memberof BlockchainsAssetsBetaApiListAssets + */ + readonly symbol?: string + + /** + * Scope of the assets + * @type {'Global' | 'Local'} + * @memberof BlockchainsAssetsBetaApiListAssets + */ + readonly scope?: ListAssetsScopeEnum + + /** + * Are assets deprecated + * @type {boolean} + * @memberof BlockchainsAssetsBetaApiListAssets + */ + readonly deprecated?: boolean + + /** + * Next page cursor to fetch + * @type {string} + * @memberof BlockchainsAssetsBetaApiListAssets + */ + readonly pageCursor?: string + + /** + * Items per page + * @type {number} + * @memberof BlockchainsAssetsBetaApiListAssets + */ + readonly pageSize?: number + + /** + * 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 BlockchainsAssetsBetaApiListAssets + */ + readonly idempotencyKey?: string +} + +/** + * Request parameters for listBlockchains operation in BlockchainsAssetsBetaApi. + * @export + * @interface BlockchainsAssetsBetaApiListBlockchainsRequest + */ +export interface BlockchainsAssetsBetaApiListBlockchainsRequest { + /** + * Blockchain protocol + * @type {string} + * @memberof BlockchainsAssetsBetaApiListBlockchains + */ + readonly protocol?: string + + /** + * Is blockchain deprecated + * @type {boolean} + * @memberof BlockchainsAssetsBetaApiListBlockchains + */ + readonly deprecated?: boolean + + /** + * Is test blockchain + * @type {boolean} + * @memberof BlockchainsAssetsBetaApiListBlockchains + */ + readonly test?: boolean + + /** + * Page cursor to fetch + * @type {string} + * @memberof BlockchainsAssetsBetaApiListBlockchains + */ + readonly pageCursor?: string + + /** + * Items per page (max 500) + * @type {number} + * @memberof BlockchainsAssetsBetaApiListBlockchains + */ + readonly pageSize?: number +} + +/** + * BlockchainsAssetsBetaApi - object-oriented interface + * @export + * @class BlockchainsAssetsBetaApi + * @extends {BaseAPI} + */ +export class BlockchainsAssetsBetaApi extends BaseAPI { + /** + * Returns an asset by ID or legacyID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. + * @summary Get an asset + * @param {BlockchainsAssetsBetaApiGetAssetByIdRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BlockchainsAssetsBetaApi + */ + public getAssetById(requestParameters: BlockchainsAssetsBetaApiGetAssetByIdRequest) { + return BlockchainsAssetsBetaApiFp(this.configuration).getAssetById(requestParameters.id, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Returns an blockchain by ID or legacyID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. + * @summary Get an blockchain + * @param {BlockchainsAssetsBetaApiGetBlockchainByIdRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BlockchainsAssetsBetaApi + */ + public getBlockchainById(requestParameters: BlockchainsAssetsBetaApiGetBlockchainByIdRequest) { + return BlockchainsAssetsBetaApiFp(this.configuration).getBlockchainById(requestParameters.id).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Returns all asset type supported by Fireblocks.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. + * @summary List assets + * @param {BlockchainsAssetsBetaApiListAssetsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BlockchainsAssetsBetaApi + */ + public listAssets(requestParameters: BlockchainsAssetsBetaApiListAssetsRequest = {}) { + return BlockchainsAssetsBetaApiFp(this.configuration).listAssets(requestParameters.blockchainId, requestParameters.assetClass, requestParameters.symbol, requestParameters.scope, requestParameters.deprecated, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Returns all blockchains supported by Fireblocks.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. + * @summary List blockchains + * @param {BlockchainsAssetsBetaApiListBlockchainsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BlockchainsAssetsBetaApi + */ + public listBlockchains(requestParameters: BlockchainsAssetsBetaApiListBlockchainsRequest = {}) { + return BlockchainsAssetsBetaApiFp(this.configuration).listBlockchains(requestParameters.protocol, requestParameters.deprecated, requestParameters.test, requestParameters.pageCursor, requestParameters.pageSize).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } +} + +/** + * @export + */ +export const ListAssetsScopeEnum = { + Global: 'Global', + Local: 'Local' +} as const; +export type ListAssetsScopeEnum = typeof ListAssetsScopeEnum[keyof typeof ListAssetsScopeEnum]; diff --git a/api/compliance-api.ts b/api/compliance-api.ts index e05b80f..0259378 100644 --- a/api/compliance-api.ts +++ b/api/compliance-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 { CreateTransactionResponse } from '../models'; +// @ts-ignore +import { ErrorSchema } from '../models'; +// @ts-ignore import { ScreeningConfigurationsRequest } from '../models'; // @ts-ignore import { ScreeningPolicyResponse } from '../models'; @@ -151,6 +155,44 @@ export const ComplianceApiAxiosParamCreator = function (configuration?: Configur + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * This endpoint is restricted to Admin API users and is only applicable to outgoing transactions. + * @summary Calling the \"Bypass Screening Policy\" API endpoint triggers a new transaction, with the API user as the initiator, bypassing the screening policy check + * @param {string} txId The transaction id that was rejected by screening checks + * @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} + */ + retryRejectedTransactionBypassScreeningChecks: async (txId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExistsAndNotEmpty('retryRejectedTransactionBypassScreeningChecks', 'txId', txId) + const localVarPath = `/screening/transaction/{txId}/bypass_screening_policy` + .replace(`{${"txId"}}`, encodeURIComponent(String(txId))); + // 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); + } + + + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -328,6 +370,20 @@ export const ComplianceApiFp = function(configuration?: Configuration) { const operationBasePath = operationServerMap['ComplianceApi.getScreeningPolicy']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, + /** + * This endpoint is restricted to Admin API users and is only applicable to outgoing transactions. + * @summary Calling the \"Bypass Screening Policy\" API endpoint triggers a new transaction, with the API user as the initiator, bypassing the screening policy check + * @param {string} txId The transaction id that was rejected by screening checks + * @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 retryRejectedTransactionBypassScreeningChecks(txId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.retryRejectedTransactionBypassScreeningChecks(txId, idempotencyKey, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ComplianceApi.retryRejectedTransactionBypassScreeningChecks']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, /** * Updates bypass screening, inbound delay, or outbound delay configurations for AML. * @summary Update AML Configuration @@ -414,6 +470,16 @@ export const ComplianceApiFactory = function (configuration?: Configuration, bas getScreeningPolicy(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getScreeningPolicy(options).then((request) => request(axios, basePath)); }, + /** + * This endpoint is restricted to Admin API users and is only applicable to outgoing transactions. + * @summary Calling the \"Bypass Screening Policy\" API endpoint triggers a new transaction, with the API user as the initiator, bypassing the screening policy check + * @param {ComplianceApiRetryRejectedTransactionBypassScreeningChecksRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + retryRejectedTransactionBypassScreeningChecks(requestParameters: ComplianceApiRetryRejectedTransactionBypassScreeningChecksRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.retryRejectedTransactionBypassScreeningChecks(requestParameters.txId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + }, /** * Updates bypass screening, inbound delay, or outbound delay configurations for AML. * @summary Update AML Configuration @@ -447,6 +513,27 @@ export const ComplianceApiFactory = function (configuration?: Configuration, bas }; }; +/** + * Request parameters for retryRejectedTransactionBypassScreeningChecks operation in ComplianceApi. + * @export + * @interface ComplianceApiRetryRejectedTransactionBypassScreeningChecksRequest + */ +export interface ComplianceApiRetryRejectedTransactionBypassScreeningChecksRequest { + /** + * The transaction id that was rejected by screening checks + * @type {string} + * @memberof ComplianceApiRetryRejectedTransactionBypassScreeningChecks + */ + readonly txId: 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 ComplianceApiRetryRejectedTransactionBypassScreeningChecks + */ + readonly idempotencyKey?: string +} + /** * Request parameters for updateAmlScreeningConfiguration operation in ComplianceApi. * @export @@ -547,6 +634,18 @@ export class ComplianceApi extends BaseAPI { return ComplianceApiFp(this.configuration).getScreeningPolicy().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } + /** + * This endpoint is restricted to Admin API users and is only applicable to outgoing transactions. + * @summary Calling the \"Bypass Screening Policy\" API endpoint triggers a new transaction, with the API user as the initiator, bypassing the screening policy check + * @param {ComplianceApiRetryRejectedTransactionBypassScreeningChecksRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ComplianceApi + */ + public retryRejectedTransactionBypassScreeningChecks(requestParameters: ComplianceApiRetryRejectedTransactionBypassScreeningChecksRequest) { + return ComplianceApiFp(this.configuration).retryRejectedTransactionBypassScreeningChecks(requestParameters.txId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + /** * Updates bypass screening, inbound delay, or outbound delay configurations for AML. * @summary Update AML Configuration diff --git a/api/contract-interactions-api.ts b/api/contract-interactions-api.ts index 6acf357..dbef5a6 100644 --- a/api/contract-interactions-api.ts +++ b/api/contract-interactions-api.ts @@ -35,6 +35,8 @@ import { ParameterWithValueList } from '../models'; // @ts-ignore import { ReadCallFunctionDto } from '../models'; // @ts-ignore +import { TransactionReceiptResponse } from '../models'; +// @ts-ignore import { WriteCallFunctionDto } from '../models'; // @ts-ignore import { WriteCallFunctionResponseDto } from '../models'; @@ -76,6 +78,42 @@ export const ContractInteractionsApiAxiosParamCreator = function (configuration? + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Retrieve the transaction receipt by blockchain native asset ID and transaction hash + * @summary Get transaction receipt + * @param {string} baseAssetId The blockchain base assetId + * @param {string} txHash The transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTransactionReceipt: async (baseAssetId: string, txHash: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExistsAndNotEmpty('getTransactionReceipt', 'baseAssetId', baseAssetId) + assertParamExistsAndNotEmpty('getTransactionReceipt', 'txHash', txHash) + const localVarPath = `/contract_interactions/base_asset_id/{baseAssetId}/tx_hash/{txHash}/receipt` + .replace(`{${"baseAssetId"}}`, encodeURIComponent(String(baseAssetId))) + .replace(`{${"txHash"}}`, encodeURIComponent(String(txHash))); + // 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}; @@ -202,6 +240,20 @@ export const ContractInteractionsApiFp = function(configuration?: Configuration) const operationBasePath = operationServerMap['ContractInteractionsApi.getDeployedContractAbi']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, + /** + * Retrieve the transaction receipt by blockchain native asset ID and transaction hash + * @summary Get transaction receipt + * @param {string} baseAssetId The blockchain base assetId + * @param {string} txHash The transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getTransactionReceipt(baseAssetId: string, txHash: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getTransactionReceipt(baseAssetId, txHash, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ContractInteractionsApi.getTransactionReceipt']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, /** * Call a read function on a deployed contract by blockchain native asset id and contract address * @summary Call a read function on a deployed contract @@ -254,6 +306,16 @@ export const ContractInteractionsApiFactory = function (configuration?: Configur getDeployedContractAbi(requestParameters: ContractInteractionsApiGetDeployedContractAbiRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDeployedContractAbi(requestParameters.contractAddress, requestParameters.baseAssetId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, + /** + * Retrieve the transaction receipt by blockchain native asset ID and transaction hash + * @summary Get transaction receipt + * @param {ContractInteractionsApiGetTransactionReceiptRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTransactionReceipt(requestParameters: ContractInteractionsApiGetTransactionReceiptRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getTransactionReceipt(requestParameters.baseAssetId, requestParameters.txHash, options).then((request) => request(axios, basePath)); + }, /** * Call a read function on a deployed contract by blockchain native asset id and contract address * @summary Call a read function on a deployed contract @@ -305,6 +367,27 @@ export interface ContractInteractionsApiGetDeployedContractAbiRequest { readonly idempotencyKey?: string } +/** + * Request parameters for getTransactionReceipt operation in ContractInteractionsApi. + * @export + * @interface ContractInteractionsApiGetTransactionReceiptRequest + */ +export interface ContractInteractionsApiGetTransactionReceiptRequest { + /** + * The blockchain base assetId + * @type {string} + * @memberof ContractInteractionsApiGetTransactionReceipt + */ + readonly baseAssetId: string + + /** + * The transaction hash + * @type {string} + * @memberof ContractInteractionsApiGetTransactionReceipt + */ + readonly txHash: string +} + /** * Request parameters for readCallFunction operation in ContractInteractionsApi. * @export @@ -394,6 +477,18 @@ export class ContractInteractionsApi extends BaseAPI { return ContractInteractionsApiFp(this.configuration).getDeployedContractAbi(requestParameters.contractAddress, requestParameters.baseAssetId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } + /** + * Retrieve the transaction receipt by blockchain native asset ID and transaction hash + * @summary Get transaction receipt + * @param {ContractInteractionsApiGetTransactionReceiptRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContractInteractionsApi + */ + public getTransactionReceipt(requestParameters: ContractInteractionsApiGetTransactionReceiptRequest) { + return ContractInteractionsApiFp(this.configuration).getTransactionReceipt(requestParameters.baseAssetId, requestParameters.txHash).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + /** * Call a read function on a deployed contract by blockchain native asset id and contract address * @summary Call a read function on a deployed contract diff --git a/api/cosigners-beta-api.ts b/api/cosigners-beta-api.ts index bcef8d0..5f53c89 100644 --- a/api/cosigners-beta-api.ts +++ b/api/cosigners-beta-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 { AddCosignerRequest } from '../models'; +// @ts-ignore +import { AddCosignerResponse } from '../models'; +// @ts-ignore import { ApiKey } from '../models'; // @ts-ignore import { ApiKeysPaginatedResponse } from '../models'; @@ -37,13 +41,63 @@ import { CosignersPaginatedResponse } from '../models'; // @ts-ignore import { ErrorSchema } from '../models'; // @ts-ignore +import { PairApiKeyRequest } from '../models'; +// @ts-ignore +import { PairApiKeyResponse } from '../models'; +// @ts-ignore import { RenameCosigner } from '../models'; +// @ts-ignore +import { Status } from '../models'; +// @ts-ignore +import { UpdateCallbackHandlerRequest } from '../models'; +// @ts-ignore +import { UpdateCallbackHandlerResponse } from '../models'; /** * CosignersBetaApi - axios parameter creator * @export */ export const CosignersBetaApiAxiosParamCreator = function (configuration?: Configuration) { return { + /** + * Add a new cosigner. The cosigner will be pending pairing until the API key is manually paired + * @summary Add cosigner + * @param {AddCosignerRequest} addCosignerRequest + * @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} + */ + addCosigner: async (addCosignerRequest: AddCosignerRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExists('addCosigner', 'addCosignerRequest', addCosignerRequest) + const localVarPath = `/cosigners`; + // 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(addCosignerRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * Get an API key by ID **Note:** These endpoints are currently in beta and might be subject to changes. * @summary Get API key @@ -81,7 +135,7 @@ export const CosignersBetaApiAxiosParamCreator = function (configuration?: Confi }; }, /** - * Get all cosigner paired API keys (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + * Get all cosigner paired API keys (paginated) * @summary Get all API keys * @param {string} cosignerId The unique identifier of the cosigner * @param {GetApiKeysOrderEnum} [order] ASC / DESC ordering (default DESC) @@ -206,6 +260,91 @@ export const CosignersBetaApiAxiosParamCreator = function (configuration?: Confi options: localVarRequestOptions, }; }, + /** + * Get the status of an asynchronous request + * @summary Get request status + * @param {string} cosignerId The unique identifier of the cosigner + * @param {string} apiKeyId The unique identifier of the API key + * @param {string} requestId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRequestStatus: async (cosignerId: string, apiKeyId: string, requestId: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExistsAndNotEmpty('getRequestStatus', 'cosignerId', cosignerId) + assertParamExistsAndNotEmpty('getRequestStatus', 'apiKeyId', apiKeyId) + assertParamExistsAndNotEmpty('getRequestStatus', 'requestId', requestId) + const localVarPath = `/cosigners/{cosignerId}/api_keys/{apiKeyId}/{requestId}` + .replace(`{${"cosignerId"}}`, encodeURIComponent(String(cosignerId))) + .replace(`{${"apiKeyId"}}`, encodeURIComponent(String(apiKeyId))) + .replace(`{${"requestId"}}`, encodeURIComponent(String(requestId))); + // 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, + }; + }, + /** + * Pair an API key to a cosigner + * @summary Pair API key + * @param {PairApiKeyRequest} pairApiKeyRequest + * @param {string} cosignerId The unique identifier of the cosigner + * @param {string} apiKeyId The unique identifier of the API key + * @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} + */ + pairApiKey: async (pairApiKeyRequest: PairApiKeyRequest, cosignerId: string, apiKeyId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExists('pairApiKey', 'pairApiKeyRequest', pairApiKeyRequest) + assertParamExistsAndNotEmpty('pairApiKey', 'cosignerId', cosignerId) + assertParamExistsAndNotEmpty('pairApiKey', 'apiKeyId', apiKeyId) + const localVarPath = `/cosigners/{cosignerId}/api_keys/{apiKeyId}` + .replace(`{${"cosignerId"}}`, encodeURIComponent(String(cosignerId))) + .replace(`{${"apiKeyId"}}`, encodeURIComponent(String(apiKeyId))); + // 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(pairApiKeyRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * Rename a cosigner by ID **Note:** These endpoints are currently in beta and might be subject to changes. * @summary Rename cosigner @@ -239,6 +378,83 @@ export const CosignersBetaApiAxiosParamCreator = function (configuration?: Confi localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(renameCosigner, localVarRequestOptions, configuration) + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Unpair an API key from a cosigner + * @summary Unpair API key + * @param {string} cosignerId The unique identifier of the cosigner + * @param {string} apiKeyId The unique identifier of the API key + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + unpairApiKey: async (cosignerId: string, apiKeyId: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExistsAndNotEmpty('unpairApiKey', 'cosignerId', cosignerId) + assertParamExistsAndNotEmpty('unpairApiKey', 'apiKeyId', apiKeyId) + const localVarPath = `/cosigners/{cosignerId}/api_keys/{apiKeyId}` + .replace(`{${"cosignerId"}}`, encodeURIComponent(String(cosignerId))) + .replace(`{${"apiKeyId"}}`, encodeURIComponent(String(apiKeyId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + 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, + }; + }, + /** + * Update the callback handler of an API key + * @summary Update API key callback handler + * @param {UpdateCallbackHandlerRequest} updateCallbackHandlerRequest + * @param {string} cosignerId The unique identifier of the cosigner + * @param {string} apiKeyId The unique identifier of the API key + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateCallbackHandler: async (updateCallbackHandlerRequest: UpdateCallbackHandlerRequest, cosignerId: string, apiKeyId: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExists('updateCallbackHandler', 'updateCallbackHandlerRequest', updateCallbackHandlerRequest) + assertParamExistsAndNotEmpty('updateCallbackHandler', 'cosignerId', cosignerId) + assertParamExistsAndNotEmpty('updateCallbackHandler', 'apiKeyId', apiKeyId) + const localVarPath = `/cosigners/{cosignerId}/api_keys/{apiKeyId}` + .replace(`{${"cosignerId"}}`, encodeURIComponent(String(cosignerId))) + .replace(`{${"apiKeyId"}}`, encodeURIComponent(String(apiKeyId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(updateCallbackHandlerRequest, localVarRequestOptions, configuration) + return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, @@ -254,6 +470,20 @@ export const CosignersBetaApiAxiosParamCreator = function (configuration?: Confi export const CosignersBetaApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = CosignersBetaApiAxiosParamCreator(configuration) return { + /** + * Add a new cosigner. The cosigner will be pending pairing until the API key is manually paired + * @summary Add cosigner + * @param {AddCosignerRequest} addCosignerRequest + * @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 addCosigner(addCosignerRequest: AddCosignerRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addCosigner(addCosignerRequest, idempotencyKey, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CosignersBetaApi.addCosigner']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, /** * Get an API key by ID **Note:** These endpoints are currently in beta and might be subject to changes. * @summary Get API key @@ -269,7 +499,7 @@ export const CosignersBetaApiFp = function(configuration?: Configuration) { return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** - * Get all cosigner paired API keys (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + * Get all cosigner paired API keys (paginated) * @summary Get all API keys * @param {string} cosignerId The unique identifier of the cosigner * @param {GetApiKeysOrderEnum} [order] ASC / DESC ordering (default DESC) @@ -312,6 +542,37 @@ export const CosignersBetaApiFp = function(configuration?: Configuration) { const operationBasePath = operationServerMap['CosignersBetaApi.getCosigners']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, + /** + * Get the status of an asynchronous request + * @summary Get request status + * @param {string} cosignerId The unique identifier of the cosigner + * @param {string} apiKeyId The unique identifier of the API key + * @param {string} requestId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getRequestStatus(cosignerId: string, apiKeyId: string, requestId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getRequestStatus(cosignerId, apiKeyId, requestId, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CosignersBetaApi.getRequestStatus']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Pair an API key to a cosigner + * @summary Pair API key + * @param {PairApiKeyRequest} pairApiKeyRequest + * @param {string} cosignerId The unique identifier of the cosigner + * @param {string} apiKeyId The unique identifier of the API key + * @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 pairApiKey(pairApiKeyRequest: PairApiKeyRequest, cosignerId: string, apiKeyId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.pairApiKey(pairApiKeyRequest, cosignerId, apiKeyId, idempotencyKey, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CosignersBetaApi.pairApiKey']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, /** * Rename a cosigner by ID **Note:** These endpoints are currently in beta and might be subject to changes. * @summary Rename cosigner @@ -326,6 +587,35 @@ export const CosignersBetaApiFp = function(configuration?: Configuration) { const operationBasePath = operationServerMap['CosignersBetaApi.renameCosigner']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, + /** + * Unpair an API key from a cosigner + * @summary Unpair API key + * @param {string} cosignerId The unique identifier of the cosigner + * @param {string} apiKeyId The unique identifier of the API key + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async unpairApiKey(cosignerId: string, apiKeyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.unpairApiKey(cosignerId, apiKeyId, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CosignersBetaApi.unpairApiKey']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Update the callback handler of an API key + * @summary Update API key callback handler + * @param {UpdateCallbackHandlerRequest} updateCallbackHandlerRequest + * @param {string} cosignerId The unique identifier of the cosigner + * @param {string} apiKeyId The unique identifier of the API key + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateCallbackHandler(updateCallbackHandlerRequest: UpdateCallbackHandlerRequest, cosignerId: string, apiKeyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateCallbackHandler(updateCallbackHandlerRequest, cosignerId, apiKeyId, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CosignersBetaApi.updateCallbackHandler']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, } }; @@ -336,6 +626,16 @@ export const CosignersBetaApiFp = function(configuration?: Configuration) { export const CosignersBetaApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = CosignersBetaApiFp(configuration) return { + /** + * Add a new cosigner. The cosigner will be pending pairing until the API key is manually paired + * @summary Add cosigner + * @param {CosignersBetaApiAddCosignerRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addCosigner(requestParameters: CosignersBetaApiAddCosignerRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.addCosigner(requestParameters.addCosignerRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + }, /** * Get an API key by ID **Note:** These endpoints are currently in beta and might be subject to changes. * @summary Get API key @@ -347,7 +647,7 @@ export const CosignersBetaApiFactory = function (configuration?: Configuration, return localVarFp.getApiKey(requestParameters.cosignerId, requestParameters.apiKeyId, options).then((request) => request(axios, basePath)); }, /** - * Get all cosigner paired API keys (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + * Get all cosigner paired API keys (paginated) * @summary Get all API keys * @param {CosignersBetaApiGetApiKeysRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. @@ -376,6 +676,26 @@ export const CosignersBetaApiFactory = function (configuration?: Configuration, getCosigners(requestParameters: CosignersBetaApiGetCosignersRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCosigners(requestParameters.order, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath)); }, + /** + * Get the status of an asynchronous request + * @summary Get request status + * @param {CosignersBetaApiGetRequestStatusRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRequestStatus(requestParameters: CosignersBetaApiGetRequestStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getRequestStatus(requestParameters.cosignerId, requestParameters.apiKeyId, requestParameters.requestId, options).then((request) => request(axios, basePath)); + }, + /** + * Pair an API key to a cosigner + * @summary Pair API key + * @param {CosignersBetaApiPairApiKeyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + pairApiKey(requestParameters: CosignersBetaApiPairApiKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.pairApiKey(requestParameters.pairApiKeyRequest, requestParameters.cosignerId, requestParameters.apiKeyId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + }, /** * Rename a cosigner by ID **Note:** These endpoints are currently in beta and might be subject to changes. * @summary Rename cosigner @@ -386,9 +706,50 @@ export const CosignersBetaApiFactory = function (configuration?: Configuration, renameCosigner(requestParameters: CosignersBetaApiRenameCosignerRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.renameCosigner(requestParameters.renameCosigner, requestParameters.cosignerId, options).then((request) => request(axios, basePath)); }, + /** + * Unpair an API key from a cosigner + * @summary Unpair API key + * @param {CosignersBetaApiUnpairApiKeyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + unpairApiKey(requestParameters: CosignersBetaApiUnpairApiKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.unpairApiKey(requestParameters.cosignerId, requestParameters.apiKeyId, options).then((request) => request(axios, basePath)); + }, + /** + * Update the callback handler of an API key + * @summary Update API key callback handler + * @param {CosignersBetaApiUpdateCallbackHandlerRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateCallbackHandler(requestParameters: CosignersBetaApiUpdateCallbackHandlerRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updateCallbackHandler(requestParameters.updateCallbackHandlerRequest, requestParameters.cosignerId, requestParameters.apiKeyId, options).then((request) => request(axios, basePath)); + }, }; }; +/** + * Request parameters for addCosigner operation in CosignersBetaApi. + * @export + * @interface CosignersBetaApiAddCosignerRequest + */ +export interface CosignersBetaApiAddCosignerRequest { + /** + * + * @type {AddCosignerRequest} + * @memberof CosignersBetaApiAddCosigner + */ + readonly addCosignerRequest: AddCosignerRequest + + /** + * 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 CosignersBetaApiAddCosigner + */ + readonly idempotencyKey?: string +} + /** * Request parameters for getApiKey operation in CosignersBetaApi. * @export @@ -487,6 +848,69 @@ export interface CosignersBetaApiGetCosignersRequest { readonly pageSize?: number } +/** + * Request parameters for getRequestStatus operation in CosignersBetaApi. + * @export + * @interface CosignersBetaApiGetRequestStatusRequest + */ +export interface CosignersBetaApiGetRequestStatusRequest { + /** + * The unique identifier of the cosigner + * @type {string} + * @memberof CosignersBetaApiGetRequestStatus + */ + readonly cosignerId: string + + /** + * The unique identifier of the API key + * @type {string} + * @memberof CosignersBetaApiGetRequestStatus + */ + readonly apiKeyId: string + + /** + * + * @type {string} + * @memberof CosignersBetaApiGetRequestStatus + */ + readonly requestId: string +} + +/** + * Request parameters for pairApiKey operation in CosignersBetaApi. + * @export + * @interface CosignersBetaApiPairApiKeyRequest + */ +export interface CosignersBetaApiPairApiKeyRequest { + /** + * + * @type {PairApiKeyRequest} + * @memberof CosignersBetaApiPairApiKey + */ + readonly pairApiKeyRequest: PairApiKeyRequest + + /** + * The unique identifier of the cosigner + * @type {string} + * @memberof CosignersBetaApiPairApiKey + */ + readonly cosignerId: string + + /** + * The unique identifier of the API key + * @type {string} + * @memberof CosignersBetaApiPairApiKey + */ + readonly apiKeyId: 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 CosignersBetaApiPairApiKey + */ + readonly idempotencyKey?: string +} + /** * Request parameters for renameCosigner operation in CosignersBetaApi. * @export @@ -508,6 +932,55 @@ export interface CosignersBetaApiRenameCosignerRequest { readonly cosignerId: string } +/** + * Request parameters for unpairApiKey operation in CosignersBetaApi. + * @export + * @interface CosignersBetaApiUnpairApiKeyRequest + */ +export interface CosignersBetaApiUnpairApiKeyRequest { + /** + * The unique identifier of the cosigner + * @type {string} + * @memberof CosignersBetaApiUnpairApiKey + */ + readonly cosignerId: string + + /** + * The unique identifier of the API key + * @type {string} + * @memberof CosignersBetaApiUnpairApiKey + */ + readonly apiKeyId: string +} + +/** + * Request parameters for updateCallbackHandler operation in CosignersBetaApi. + * @export + * @interface CosignersBetaApiUpdateCallbackHandlerRequest + */ +export interface CosignersBetaApiUpdateCallbackHandlerRequest { + /** + * + * @type {UpdateCallbackHandlerRequest} + * @memberof CosignersBetaApiUpdateCallbackHandler + */ + readonly updateCallbackHandlerRequest: UpdateCallbackHandlerRequest + + /** + * The unique identifier of the cosigner + * @type {string} + * @memberof CosignersBetaApiUpdateCallbackHandler + */ + readonly cosignerId: string + + /** + * The unique identifier of the API key + * @type {string} + * @memberof CosignersBetaApiUpdateCallbackHandler + */ + readonly apiKeyId: string +} + /** * CosignersBetaApi - object-oriented interface * @export @@ -515,6 +988,18 @@ export interface CosignersBetaApiRenameCosignerRequest { * @extends {BaseAPI} */ export class CosignersBetaApi extends BaseAPI { + /** + * Add a new cosigner. The cosigner will be pending pairing until the API key is manually paired + * @summary Add cosigner + * @param {CosignersBetaApiAddCosignerRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CosignersBetaApi + */ + public addCosigner(requestParameters: CosignersBetaApiAddCosignerRequest) { + return CosignersBetaApiFp(this.configuration).addCosigner(requestParameters.addCosignerRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + /** * Get an API key by ID **Note:** These endpoints are currently in beta and might be subject to changes. * @summary Get API key @@ -528,7 +1013,7 @@ export class CosignersBetaApi extends BaseAPI { } /** - * Get all cosigner paired API keys (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + * Get all cosigner paired API keys (paginated) * @summary Get all API keys * @param {CosignersBetaApiGetApiKeysRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. @@ -563,6 +1048,30 @@ export class CosignersBetaApi extends BaseAPI { return CosignersBetaApiFp(this.configuration).getCosigners(requestParameters.order, requestParameters.pageCursor, requestParameters.pageSize).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } + /** + * Get the status of an asynchronous request + * @summary Get request status + * @param {CosignersBetaApiGetRequestStatusRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CosignersBetaApi + */ + public getRequestStatus(requestParameters: CosignersBetaApiGetRequestStatusRequest) { + return CosignersBetaApiFp(this.configuration).getRequestStatus(requestParameters.cosignerId, requestParameters.apiKeyId, requestParameters.requestId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Pair an API key to a cosigner + * @summary Pair API key + * @param {CosignersBetaApiPairApiKeyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CosignersBetaApi + */ + public pairApiKey(requestParameters: CosignersBetaApiPairApiKeyRequest) { + return CosignersBetaApiFp(this.configuration).pairApiKey(requestParameters.pairApiKeyRequest, requestParameters.cosignerId, requestParameters.apiKeyId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + /** * Rename a cosigner by ID **Note:** These endpoints are currently in beta and might be subject to changes. * @summary Rename cosigner @@ -574,6 +1083,30 @@ export class CosignersBetaApi extends BaseAPI { public renameCosigner(requestParameters: CosignersBetaApiRenameCosignerRequest) { return CosignersBetaApiFp(this.configuration).renameCosigner(requestParameters.renameCosigner, requestParameters.cosignerId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } + + /** + * Unpair an API key from a cosigner + * @summary Unpair API key + * @param {CosignersBetaApiUnpairApiKeyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CosignersBetaApi + */ + public unpairApiKey(requestParameters: CosignersBetaApiUnpairApiKeyRequest) { + return CosignersBetaApiFp(this.configuration).unpairApiKey(requestParameters.cosignerId, requestParameters.apiKeyId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Update the callback handler of an API key + * @summary Update API key callback handler + * @param {CosignersBetaApiUpdateCallbackHandlerRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CosignersBetaApi + */ + public updateCallbackHandler(requestParameters: CosignersBetaApiUpdateCallbackHandlerRequest) { + return CosignersBetaApiFp(this.configuration).updateCallbackHandler(requestParameters.updateCallbackHandlerRequest, requestParameters.cosignerId, requestParameters.apiKeyId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } } /** diff --git a/api/embedded-wallets-api.ts b/api/embedded-wallets-api.ts new file mode 100644 index 0000000..60a7096 --- /dev/null +++ b/api/embedded-wallets-api.ts @@ -0,0 +1,340 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +import { convertToFireblocksResponse } from "../response/fireblocksResponse"; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +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 { PublicKeyInformation } from '../models'; +/** + * EmbeddedWalletsApi - axios parameter creator + * @export + */ +export const EmbeddedWalletsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Gets the public key of an asset associated with a specific account within a Non-Custodial Wallet + * @summary Get the public key of an asset + * @param {string} walletId The ID of the Non-Custodial wallet + * @param {string} accountId The ID of the account + * @param {string} assetId The ID of the asset + * @param {number} change BIP44 derivation path - change value + * @param {number} addressIndex BIP44 derivation path - index value + * @param {boolean} [compressed] Compressed/Uncompressed public key format + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPublicKeyInfoForAddressNcw: async (walletId: string, accountId: string, assetId: string, change: number, addressIndex: number, compressed?: boolean, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExistsAndNotEmpty('getPublicKeyInfoForAddressNcw', 'walletId', walletId) + assertParamExistsAndNotEmpty('getPublicKeyInfoForAddressNcw', 'accountId', accountId) + assertParamExistsAndNotEmpty('getPublicKeyInfoForAddressNcw', 'assetId', assetId) + assertParamExists('getPublicKeyInfoForAddressNcw', 'change', change) + assertParamExists('getPublicKeyInfoForAddressNcw', 'addressIndex', addressIndex) + const localVarPath = `/ncw/{walletId}/accounts/{accountId}/{assetId}/{change}/{addressIndex}/public_key_info` + .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))) + .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) + .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId))) + .replace(`{${"change"}}`, encodeURIComponent(String(change))) + .replace(`{${"addressIndex"}}`, encodeURIComponent(String(addressIndex))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (compressed !== undefined) { + localVarQueryParameter['compressed'] = compressed; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Gets the public key information based on derivation path and signing algorithm within a Non-Custodial Wallet + * @summary Get the public key for a derivation path + * @param {string} walletId The ID of the Non-Custodial wallet + * @param {string} derivationPath An array of integers (passed as JSON stringified array) representing the full BIP44 derivation path of the requested public key. The first element must always be 44. + * @param {GetPublicKeyInfoNcwAlgorithmEnum} algorithm Elliptic Curve + * @param {boolean} [compressed] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPublicKeyInfoNcw: async (walletId: string, derivationPath: string, algorithm: GetPublicKeyInfoNcwAlgorithmEnum, compressed?: boolean, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExistsAndNotEmpty('getPublicKeyInfoNcw', 'walletId', walletId) + assertParamExistsAndNotEmpty('getPublicKeyInfoNcw', 'derivationPath', derivationPath) + assertParamExistsAndNotEmpty('getPublicKeyInfoNcw', 'algorithm', algorithm) + const localVarPath = `/ncw/{walletId}/public_key_info` + .replace(`{${"walletId"}}`, encodeURIComponent(String(walletId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (derivationPath !== undefined) { + localVarQueryParameter['derivationPath'] = derivationPath; + } + + if (algorithm !== undefined) { + localVarQueryParameter['algorithm'] = algorithm; + } + + if (compressed !== undefined) { + localVarQueryParameter['compressed'] = compressed; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * EmbeddedWalletsApi - functional programming interface + * @export + */ +export const EmbeddedWalletsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = EmbeddedWalletsApiAxiosParamCreator(configuration) + return { + /** + * Gets the public key of an asset associated with a specific account within a Non-Custodial Wallet + * @summary Get the public key of an asset + * @param {string} walletId The ID of the Non-Custodial wallet + * @param {string} accountId The ID of the account + * @param {string} assetId The ID of the asset + * @param {number} change BIP44 derivation path - change value + * @param {number} addressIndex BIP44 derivation path - index value + * @param {boolean} [compressed] Compressed/Uncompressed public key format + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getPublicKeyInfoForAddressNcw(walletId: string, accountId: string, assetId: string, change: number, addressIndex: number, compressed?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicKeyInfoForAddressNcw(walletId, accountId, assetId, change, addressIndex, compressed, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['EmbeddedWalletsApi.getPublicKeyInfoForAddressNcw']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Gets the public key information based on derivation path and signing algorithm within a Non-Custodial Wallet + * @summary Get the public key for a derivation path + * @param {string} walletId The ID of the Non-Custodial wallet + * @param {string} derivationPath An array of integers (passed as JSON stringified array) representing the full BIP44 derivation path of the requested public key. The first element must always be 44. + * @param {GetPublicKeyInfoNcwAlgorithmEnum} algorithm Elliptic Curve + * @param {boolean} [compressed] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getPublicKeyInfoNcw(walletId: string, derivationPath: string, algorithm: GetPublicKeyInfoNcwAlgorithmEnum, compressed?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicKeyInfoNcw(walletId, derivationPath, algorithm, compressed, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['EmbeddedWalletsApi.getPublicKeyInfoNcw']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + } +}; + +/** + * EmbeddedWalletsApi - factory interface + * @export + */ +export const EmbeddedWalletsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = EmbeddedWalletsApiFp(configuration) + return { + /** + * Gets the public key of an asset associated with a specific account within a Non-Custodial Wallet + * @summary Get the public key of an asset + * @param {EmbeddedWalletsApiGetPublicKeyInfoForAddressNcwRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPublicKeyInfoForAddressNcw(requestParameters: EmbeddedWalletsApiGetPublicKeyInfoForAddressNcwRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getPublicKeyInfoForAddressNcw(requestParameters.walletId, requestParameters.accountId, requestParameters.assetId, requestParameters.change, requestParameters.addressIndex, requestParameters.compressed, options).then((request) => request(axios, basePath)); + }, + /** + * Gets the public key information based on derivation path and signing algorithm within a Non-Custodial Wallet + * @summary Get the public key for a derivation path + * @param {EmbeddedWalletsApiGetPublicKeyInfoNcwRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPublicKeyInfoNcw(requestParameters: EmbeddedWalletsApiGetPublicKeyInfoNcwRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getPublicKeyInfoNcw(requestParameters.walletId, requestParameters.derivationPath, requestParameters.algorithm, requestParameters.compressed, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for getPublicKeyInfoForAddressNcw operation in EmbeddedWalletsApi. + * @export + * @interface EmbeddedWalletsApiGetPublicKeyInfoForAddressNcwRequest + */ +export interface EmbeddedWalletsApiGetPublicKeyInfoForAddressNcwRequest { + /** + * The ID of the Non-Custodial wallet + * @type {string} + * @memberof EmbeddedWalletsApiGetPublicKeyInfoForAddressNcw + */ + readonly walletId: string + + /** + * The ID of the account + * @type {string} + * @memberof EmbeddedWalletsApiGetPublicKeyInfoForAddressNcw + */ + readonly accountId: string + + /** + * The ID of the asset + * @type {string} + * @memberof EmbeddedWalletsApiGetPublicKeyInfoForAddressNcw + */ + readonly assetId: string + + /** + * BIP44 derivation path - change value + * @type {number} + * @memberof EmbeddedWalletsApiGetPublicKeyInfoForAddressNcw + */ + readonly change: number + + /** + * BIP44 derivation path - index value + * @type {number} + * @memberof EmbeddedWalletsApiGetPublicKeyInfoForAddressNcw + */ + readonly addressIndex: number + + /** + * Compressed/Uncompressed public key format + * @type {boolean} + * @memberof EmbeddedWalletsApiGetPublicKeyInfoForAddressNcw + */ + readonly compressed?: boolean +} + +/** + * Request parameters for getPublicKeyInfoNcw operation in EmbeddedWalletsApi. + * @export + * @interface EmbeddedWalletsApiGetPublicKeyInfoNcwRequest + */ +export interface EmbeddedWalletsApiGetPublicKeyInfoNcwRequest { + /** + * The ID of the Non-Custodial wallet + * @type {string} + * @memberof EmbeddedWalletsApiGetPublicKeyInfoNcw + */ + readonly walletId: string + + /** + * An array of integers (passed as JSON stringified array) representing the full BIP44 derivation path of the requested public key. The first element must always be 44. + * @type {string} + * @memberof EmbeddedWalletsApiGetPublicKeyInfoNcw + */ + readonly derivationPath: string + + /** + * Elliptic Curve + * @type {'MPC_ECDSA_SECP256K1' | 'MPC_ECDSA_SECP256R1' | 'MPC_EDDSA_ED25519'} + * @memberof EmbeddedWalletsApiGetPublicKeyInfoNcw + */ + readonly algorithm: GetPublicKeyInfoNcwAlgorithmEnum + + /** + * + * @type {boolean} + * @memberof EmbeddedWalletsApiGetPublicKeyInfoNcw + */ + readonly compressed?: boolean +} + +/** + * EmbeddedWalletsApi - object-oriented interface + * @export + * @class EmbeddedWalletsApi + * @extends {BaseAPI} + */ +export class EmbeddedWalletsApi extends BaseAPI { + /** + * Gets the public key of an asset associated with a specific account within a Non-Custodial Wallet + * @summary Get the public key of an asset + * @param {EmbeddedWalletsApiGetPublicKeyInfoForAddressNcwRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof EmbeddedWalletsApi + */ + public getPublicKeyInfoForAddressNcw(requestParameters: EmbeddedWalletsApiGetPublicKeyInfoForAddressNcwRequest) { + return EmbeddedWalletsApiFp(this.configuration).getPublicKeyInfoForAddressNcw(requestParameters.walletId, requestParameters.accountId, requestParameters.assetId, requestParameters.change, requestParameters.addressIndex, requestParameters.compressed).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Gets the public key information based on derivation path and signing algorithm within a Non-Custodial Wallet + * @summary Get the public key for a derivation path + * @param {EmbeddedWalletsApiGetPublicKeyInfoNcwRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof EmbeddedWalletsApi + */ + public getPublicKeyInfoNcw(requestParameters: EmbeddedWalletsApiGetPublicKeyInfoNcwRequest) { + return EmbeddedWalletsApiFp(this.configuration).getPublicKeyInfoNcw(requestParameters.walletId, requestParameters.derivationPath, requestParameters.algorithm, requestParameters.compressed).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } +} + +/** + * @export + */ +export const GetPublicKeyInfoNcwAlgorithmEnum = { + EcdsaSecp256K1: 'MPC_ECDSA_SECP256K1', + EcdsaSecp256R1: 'MPC_ECDSA_SECP256R1', + EddsaEd25519: 'MPC_EDDSA_ED25519' +} as const; +export type GetPublicKeyInfoNcwAlgorithmEnum = typeof GetPublicKeyInfoNcwAlgorithmEnum[keyof typeof GetPublicKeyInfoNcwAlgorithmEnum]; diff --git a/api/keys-beta-api.ts b/api/keys-beta-api.ts new file mode 100644 index 0000000..7e690cc --- /dev/null +++ b/api/keys-beta-api.ts @@ -0,0 +1,213 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +import { convertToFireblocksResponse } from "../response/fireblocksResponse"; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +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 { GetMpcKeysResponse } from '../models'; +/** + * KeysBetaApi - axios parameter creator + * @export + */ +export const KeysBetaApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Returns a list of MPC signing keys of the workspace. For each key, the list of players associated with it is attached. **Note:** This endpoint is currently in beta and might be subject to changes. + * @summary Get list of mpc keys + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMpcKeysList: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/keys/mpc/list`; + // 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, + }; + }, + /** + * Returns a list of MPC signing keys of a specific user. For each key, the list of players associated with it is attached. **Note:** This endpoint is currently in beta and might be subject to changes. + * @summary Get list of mpc keys by `userId` + * @param {string} userId The id for the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMpcKeysListByUser: async (userId: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExistsAndNotEmpty('getMpcKeysListByUser', 'userId', userId) + const localVarPath = `/keys/mpc/list/{userId}` + .replace(`{${"userId"}}`, encodeURIComponent(String(userId))); + // 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, + }; + }, + } +}; + +/** + * KeysBetaApi - functional programming interface + * @export + */ +export const KeysBetaApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = KeysBetaApiAxiosParamCreator(configuration) + return { + /** + * Returns a list of MPC signing keys of the workspace. For each key, the list of players associated with it is attached. **Note:** This endpoint is currently in beta and might be subject to changes. + * @summary Get list of mpc keys + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getMpcKeysList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getMpcKeysList(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['KeysBetaApi.getMpcKeysList']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Returns a list of MPC signing keys of a specific user. For each key, the list of players associated with it is attached. **Note:** This endpoint is currently in beta and might be subject to changes. + * @summary Get list of mpc keys by `userId` + * @param {string} userId The id for the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getMpcKeysListByUser(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getMpcKeysListByUser(userId, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['KeysBetaApi.getMpcKeysListByUser']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + } +}; + +/** + * KeysBetaApi - factory interface + * @export + */ +export const KeysBetaApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = KeysBetaApiFp(configuration) + return { + /** + * Returns a list of MPC signing keys of the workspace. For each key, the list of players associated with it is attached. **Note:** This endpoint is currently in beta and might be subject to changes. + * @summary Get list of mpc keys + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMpcKeysList(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getMpcKeysList(options).then((request) => request(axios, basePath)); + }, + /** + * Returns a list of MPC signing keys of a specific user. For each key, the list of players associated with it is attached. **Note:** This endpoint is currently in beta and might be subject to changes. + * @summary Get list of mpc keys by `userId` + * @param {KeysBetaApiGetMpcKeysListByUserRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMpcKeysListByUser(requestParameters: KeysBetaApiGetMpcKeysListByUserRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getMpcKeysListByUser(requestParameters.userId, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for getMpcKeysListByUser operation in KeysBetaApi. + * @export + * @interface KeysBetaApiGetMpcKeysListByUserRequest + */ +export interface KeysBetaApiGetMpcKeysListByUserRequest { + /** + * The id for the user + * @type {string} + * @memberof KeysBetaApiGetMpcKeysListByUser + */ + readonly userId: string +} + +/** + * KeysBetaApi - object-oriented interface + * @export + * @class KeysBetaApi + * @extends {BaseAPI} + */ +export class KeysBetaApi extends BaseAPI { + /** + * Returns a list of MPC signing keys of the workspace. For each key, the list of players associated with it is attached. **Note:** This endpoint is currently in beta and might be subject to changes. + * @summary Get list of mpc keys + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeysBetaApi + */ + public getMpcKeysList() { + return KeysBetaApiFp(this.configuration).getMpcKeysList().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Returns a list of MPC signing keys of a specific user. For each key, the list of players associated with it is attached. **Note:** This endpoint is currently in beta and might be subject to changes. + * @summary Get list of mpc keys by `userId` + * @param {KeysBetaApiGetMpcKeysListByUserRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeysBetaApi + */ + public getMpcKeysListByUser(requestParameters: KeysBetaApiGetMpcKeysListByUserRequest) { + return KeysBetaApiFp(this.configuration).getMpcKeysListByUser(requestParameters.userId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } +} + diff --git a/api/staking-api.ts b/api/staking-api.ts new file mode 100644 index 0000000..058b71b --- /dev/null +++ b/api/staking-api.ts @@ -0,0 +1,1247 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +import { convertToFireblocksResponse } from "../response/fireblocksResponse"; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +import { assertParamExistsAndNotEmpty } from '../utils/validation_utils'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import { ChainDescriptor } from '../models'; +// @ts-ignore +import { ChainInfoResponse } from '../models'; +// @ts-ignore +import { ClaimRewardsRequest } from '../models'; +// @ts-ignore +import { Delegation } from '../models'; +// @ts-ignore +import { DelegationSummary } from '../models'; +// @ts-ignore +import { ErrorSchema } from '../models'; +// @ts-ignore +import { SplitRequest } from '../models'; +// @ts-ignore +import { SplitResponse } from '../models'; +// @ts-ignore +import { StakeRequest } from '../models'; +// @ts-ignore +import { StakeResponse } from '../models'; +// @ts-ignore +import { StakingGetAllDelegationsResponse } from '../models'; +// @ts-ignore +import { StakingGetChainsResponse } from '../models'; +// @ts-ignore +import { StakingGetProvidersResponse } from '../models'; +// @ts-ignore +import { StakingGetSummaryByVaultResponse } from '../models'; +// @ts-ignore +import { StakingProvider } from '../models'; +// @ts-ignore +import { UnstakeRequest } from '../models'; +// @ts-ignore +import { WithdrawRequest } from '../models'; +/** + * StakingApi - axios parameter creator + * @export + */ +export const StakingApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Approve the terms of service of the staking provider. This must be called before performing a staking action for the first time with this provider. + * @summary Approve staking terms of service + * @param {StakingProvider} providerId The unique identifier of the staking provider + * @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} + */ + approveTermsOfServiceByProviderId: async (providerId: StakingProvider, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExists('approveTermsOfServiceByProviderId', 'providerId', providerId) + const localVarPath = `/staking/providers/{providerId}/approveTermsOfService` + .replace(`{${"providerId"}}`, encodeURIComponent(String(providerId))); + // 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); + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Perform a chain-specific Claim Rewards. + * @summary Execute a Claim Rewards operation + * @param {ClaimRewardsRequest} claimRewardsRequest + * @param {ClaimRewardsChainDescriptorEnum} chainDescriptor The protocol identifier (e.g. \"MATIC\"/\"SOL\") to use + * @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} + */ + claimRewards: async (claimRewardsRequest: ClaimRewardsRequest, chainDescriptor: ClaimRewardsChainDescriptorEnum, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExists('claimRewards', 'claimRewardsRequest', claimRewardsRequest) + assertParamExistsAndNotEmpty('claimRewards', 'chainDescriptor', chainDescriptor) + const localVarPath = `/staking/chains/{chainDescriptor}/claim_rewards` + .replace(`{${"chainDescriptor"}}`, encodeURIComponent(String(chainDescriptor))); + // 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(claimRewardsRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Return detailed information on all staking positions, including the staked amount, rewards, status and more. + * @summary List staking positions details + * @param {ChainDescriptor} [chainDescriptor] Use \"ETH\" / \"SOL\" / \"MATIC\" / \"STETH_ETH\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllDelegations: async (chainDescriptor?: ChainDescriptor, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/staking/positions`; + // 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; + + if (chainDescriptor !== undefined) { + localVarQueryParameter['chainDescriptor'] = chainDescriptor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Return chain-specific, staking-related information summary (e.g. epoch details, lockup durations, estimated rewards, etc.) + * @summary Get chain-specific staking summary + * @param {ChainDescriptor} chainDescriptor The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\"/\"STETH_ETH\") to use + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getChainInfo: async (chainDescriptor: ChainDescriptor, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExists('getChainInfo', 'chainDescriptor', chainDescriptor) + const localVarPath = `/staking/chains/{chainDescriptor}/chainInfo` + .replace(`{${"chainDescriptor"}}`, encodeURIComponent(String(chainDescriptor))); + // 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, + }; + }, + /** + * Return an alphabetical list of supported chains. + * @summary List staking supported chains + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getChains: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/staking/chains`; + // 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, + }; + }, + /** + * Return detailed information on a staking position, including the staked amount, rewards, status and more. + * @summary Get staking position details + * @param {string} id The unique identifier of the staking position + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDelegationById: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExistsAndNotEmpty('getDelegationById', 'id', id) + const localVarPath = `/staking/positions/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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, + }; + }, + /** + * Return information on all the available staking providers. + * @summary List staking providers details + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getProviders: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/staking/providers`; + // 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, + }; + }, + /** + * Return a summary of all vaults, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. + * @summary Get staking summary details + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSummary: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/staking/positions/summary`; + // 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, + }; + }, + /** + * Return a summary for each vault, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. + * @summary Get staking summary details by vault + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSummaryByVault: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/staking/positions/summary/vaults`; + // 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, + }; + }, + /** + * Perform a Solana Split stake account. + * @summary Execute a Split operation on SOL/SOL_TEST stake account + * @param {SplitRequest} splitRequest + * @param {SplitChainDescriptorEnum} chainDescriptor The protocol identifier (e.g. \"SOL\"/\"SOL_TEST\") to use + * @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} + */ + split: async (splitRequest: SplitRequest, chainDescriptor: SplitChainDescriptorEnum, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExists('split', 'splitRequest', splitRequest) + assertParamExistsAndNotEmpty('split', 'chainDescriptor', chainDescriptor) + const localVarPath = `/staking/chains/{chainDescriptor}/split` + .replace(`{${"chainDescriptor"}}`, encodeURIComponent(String(chainDescriptor))); + // 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(splitRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Perform a chain-specific Stake. + * @summary Initiate Stake Operation + * @param {StakeRequest} stakeRequest + * @param {ChainDescriptor} chainDescriptor The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\") to use + * @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} + */ + stake: async (stakeRequest: StakeRequest, chainDescriptor: ChainDescriptor, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExists('stake', 'stakeRequest', stakeRequest) + assertParamExists('stake', 'chainDescriptor', chainDescriptor) + const localVarPath = `/staking/chains/{chainDescriptor}/stake` + .replace(`{${"chainDescriptor"}}`, encodeURIComponent(String(chainDescriptor))); + // 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(stakeRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Execute an Unstake operation + * @summary Execute an Unstake operation + * @param {UnstakeRequest} unstakeRequest + * @param {ChainDescriptor} chainDescriptor The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\") to use + * @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} + */ + unstake: async (unstakeRequest: UnstakeRequest, chainDescriptor: ChainDescriptor, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExists('unstake', 'unstakeRequest', unstakeRequest) + assertParamExists('unstake', 'chainDescriptor', chainDescriptor) + const localVarPath = `/staking/chains/{chainDescriptor}/unstake` + .replace(`{${"chainDescriptor"}}`, encodeURIComponent(String(chainDescriptor))); + // 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(unstakeRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Perform a chain-specific Withdraw. + * @summary Execute a Withdraw operation + * @param {WithdrawRequest} withdrawRequest + * @param {ChainDescriptor} chainDescriptor The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\") to use + * @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} + */ + withdraw: async (withdrawRequest: WithdrawRequest, chainDescriptor: ChainDescriptor, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExists('withdraw', 'withdrawRequest', withdrawRequest) + assertParamExists('withdraw', 'chainDescriptor', chainDescriptor) + const localVarPath = `/staking/chains/{chainDescriptor}/withdraw` + .replace(`{${"chainDescriptor"}}`, encodeURIComponent(String(chainDescriptor))); + // 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(withdrawRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * StakingApi - functional programming interface + * @export + */ +export const StakingApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = StakingApiAxiosParamCreator(configuration) + return { + /** + * Approve the terms of service of the staking provider. This must be called before performing a staking action for the first time with this provider. + * @summary Approve staking terms of service + * @param {StakingProvider} providerId The unique identifier of the staking provider + * @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 approveTermsOfServiceByProviderId(providerId: StakingProvider, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.approveTermsOfServiceByProviderId(providerId, idempotencyKey, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['StakingApi.approveTermsOfServiceByProviderId']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Perform a chain-specific Claim Rewards. + * @summary Execute a Claim Rewards operation + * @param {ClaimRewardsRequest} claimRewardsRequest + * @param {ClaimRewardsChainDescriptorEnum} chainDescriptor The protocol identifier (e.g. \"MATIC\"/\"SOL\") to use + * @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 claimRewards(claimRewardsRequest: ClaimRewardsRequest, chainDescriptor: ClaimRewardsChainDescriptorEnum, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.claimRewards(claimRewardsRequest, chainDescriptor, idempotencyKey, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['StakingApi.claimRewards']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Return detailed information on all staking positions, including the staked amount, rewards, status and more. + * @summary List staking positions details + * @param {ChainDescriptor} [chainDescriptor] Use \"ETH\" / \"SOL\" / \"MATIC\" / \"STETH_ETH\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getAllDelegations(chainDescriptor?: ChainDescriptor, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAllDelegations(chainDescriptor, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['StakingApi.getAllDelegations']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Return chain-specific, staking-related information summary (e.g. epoch details, lockup durations, estimated rewards, etc.) + * @summary Get chain-specific staking summary + * @param {ChainDescriptor} chainDescriptor The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\"/\"STETH_ETH\") to use + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getChainInfo(chainDescriptor: ChainDescriptor, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getChainInfo(chainDescriptor, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['StakingApi.getChainInfo']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Return an alphabetical list of supported chains. + * @summary List staking supported chains + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getChains(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getChains(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['StakingApi.getChains']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Return detailed information on a staking position, including the staked amount, rewards, status and more. + * @summary Get staking position details + * @param {string} id The unique identifier of the staking position + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getDelegationById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDelegationById(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['StakingApi.getDelegationById']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Return information on all the available staking providers. + * @summary List staking providers details + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getProviders(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProviders(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['StakingApi.getProviders']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Return a summary of all vaults, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. + * @summary Get staking summary details + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSummary(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getSummary(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['StakingApi.getSummary']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Return a summary for each vault, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. + * @summary Get staking summary details by vault + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSummaryByVault(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getSummaryByVault(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['StakingApi.getSummaryByVault']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Perform a Solana Split stake account. + * @summary Execute a Split operation on SOL/SOL_TEST stake account + * @param {SplitRequest} splitRequest + * @param {SplitChainDescriptorEnum} chainDescriptor The protocol identifier (e.g. \"SOL\"/\"SOL_TEST\") to use + * @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 split(splitRequest: SplitRequest, chainDescriptor: SplitChainDescriptorEnum, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.split(splitRequest, chainDescriptor, idempotencyKey, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['StakingApi.split']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Perform a chain-specific Stake. + * @summary Initiate Stake Operation + * @param {StakeRequest} stakeRequest + * @param {ChainDescriptor} chainDescriptor The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\") to use + * @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 stake(stakeRequest: StakeRequest, chainDescriptor: ChainDescriptor, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.stake(stakeRequest, chainDescriptor, idempotencyKey, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['StakingApi.stake']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Execute an Unstake operation + * @summary Execute an Unstake operation + * @param {UnstakeRequest} unstakeRequest + * @param {ChainDescriptor} chainDescriptor The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\") to use + * @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 unstake(unstakeRequest: UnstakeRequest, chainDescriptor: ChainDescriptor, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.unstake(unstakeRequest, chainDescriptor, idempotencyKey, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['StakingApi.unstake']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Perform a chain-specific Withdraw. + * @summary Execute a Withdraw operation + * @param {WithdrawRequest} withdrawRequest + * @param {ChainDescriptor} chainDescriptor The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\") to use + * @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 withdraw(withdrawRequest: WithdrawRequest, chainDescriptor: ChainDescriptor, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.withdraw(withdrawRequest, chainDescriptor, idempotencyKey, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['StakingApi.withdraw']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + } +}; + +/** + * StakingApi - factory interface + * @export + */ +export const StakingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = StakingApiFp(configuration) + return { + /** + * Approve the terms of service of the staking provider. This must be called before performing a staking action for the first time with this provider. + * @summary Approve staking terms of service + * @param {StakingApiApproveTermsOfServiceByProviderIdRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + approveTermsOfServiceByProviderId(requestParameters: StakingApiApproveTermsOfServiceByProviderIdRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.approveTermsOfServiceByProviderId(requestParameters.providerId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + }, + /** + * Perform a chain-specific Claim Rewards. + * @summary Execute a Claim Rewards operation + * @param {StakingApiClaimRewardsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + claimRewards(requestParameters: StakingApiClaimRewardsRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.claimRewards(requestParameters.claimRewardsRequest, requestParameters.chainDescriptor, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + }, + /** + * Return detailed information on all staking positions, including the staked amount, rewards, status and more. + * @summary List staking positions details + * @param {StakingApiGetAllDelegationsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllDelegations(requestParameters: StakingApiGetAllDelegationsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getAllDelegations(requestParameters.chainDescriptor, options).then((request) => request(axios, basePath)); + }, + /** + * Return chain-specific, staking-related information summary (e.g. epoch details, lockup durations, estimated rewards, etc.) + * @summary Get chain-specific staking summary + * @param {StakingApiGetChainInfoRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getChainInfo(requestParameters: StakingApiGetChainInfoRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getChainInfo(requestParameters.chainDescriptor, options).then((request) => request(axios, basePath)); + }, + /** + * Return an alphabetical list of supported chains. + * @summary List staking supported chains + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getChains(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getChains(options).then((request) => request(axios, basePath)); + }, + /** + * Return detailed information on a staking position, including the staked amount, rewards, status and more. + * @summary Get staking position details + * @param {StakingApiGetDelegationByIdRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDelegationById(requestParameters: StakingApiGetDelegationByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getDelegationById(requestParameters.id, options).then((request) => request(axios, basePath)); + }, + /** + * Return information on all the available staking providers. + * @summary List staking providers details + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getProviders(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getProviders(options).then((request) => request(axios, basePath)); + }, + /** + * Return a summary of all vaults, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. + * @summary Get staking summary details + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSummary(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getSummary(options).then((request) => request(axios, basePath)); + }, + /** + * Return a summary for each vault, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. + * @summary Get staking summary details by vault + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSummaryByVault(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getSummaryByVault(options).then((request) => request(axios, basePath)); + }, + /** + * Perform a Solana Split stake account. + * @summary Execute a Split operation on SOL/SOL_TEST stake account + * @param {StakingApiSplitRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + split(requestParameters: StakingApiSplitRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.split(requestParameters.splitRequest, requestParameters.chainDescriptor, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + }, + /** + * Perform a chain-specific Stake. + * @summary Initiate Stake Operation + * @param {StakingApiStakeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + stake(requestParameters: StakingApiStakeRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.stake(requestParameters.stakeRequest, requestParameters.chainDescriptor, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + }, + /** + * Execute an Unstake operation + * @summary Execute an Unstake operation + * @param {StakingApiUnstakeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + unstake(requestParameters: StakingApiUnstakeRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.unstake(requestParameters.unstakeRequest, requestParameters.chainDescriptor, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + }, + /** + * Perform a chain-specific Withdraw. + * @summary Execute a Withdraw operation + * @param {StakingApiWithdrawRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdraw(requestParameters: StakingApiWithdrawRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.withdraw(requestParameters.withdrawRequest, requestParameters.chainDescriptor, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for approveTermsOfServiceByProviderId operation in StakingApi. + * @export + * @interface StakingApiApproveTermsOfServiceByProviderIdRequest + */ +export interface StakingApiApproveTermsOfServiceByProviderIdRequest { + /** + * The unique identifier of the staking provider + * @type {StakingProvider} + * @memberof StakingApiApproveTermsOfServiceByProviderId + */ + readonly providerId: StakingProvider + + /** + * 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 StakingApiApproveTermsOfServiceByProviderId + */ + readonly idempotencyKey?: string +} + +/** + * Request parameters for claimRewards operation in StakingApi. + * @export + * @interface StakingApiClaimRewardsRequest + */ +export interface StakingApiClaimRewardsRequest { + /** + * + * @type {ClaimRewardsRequest} + * @memberof StakingApiClaimRewards + */ + readonly claimRewardsRequest: ClaimRewardsRequest + + /** + * The protocol identifier (e.g. \"MATIC\"/\"SOL\") to use + * @type {'MATIC' | 'SOL' | 'SOL_TEST'} + * @memberof StakingApiClaimRewards + */ + readonly chainDescriptor: ClaimRewardsChainDescriptorEnum + + /** + * 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 StakingApiClaimRewards + */ + readonly idempotencyKey?: string +} + +/** + * Request parameters for getAllDelegations operation in StakingApi. + * @export + * @interface StakingApiGetAllDelegationsRequest + */ +export interface StakingApiGetAllDelegationsRequest { + /** + * Use \"ETH\" / \"SOL\" / \"MATIC\" / \"STETH_ETH\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument. + * @type {ChainDescriptor} + * @memberof StakingApiGetAllDelegations + */ + readonly chainDescriptor?: ChainDescriptor +} + +/** + * Request parameters for getChainInfo operation in StakingApi. + * @export + * @interface StakingApiGetChainInfoRequest + */ +export interface StakingApiGetChainInfoRequest { + /** + * The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\"/\"STETH_ETH\") to use + * @type {ChainDescriptor} + * @memberof StakingApiGetChainInfo + */ + readonly chainDescriptor: ChainDescriptor +} + +/** + * Request parameters for getDelegationById operation in StakingApi. + * @export + * @interface StakingApiGetDelegationByIdRequest + */ +export interface StakingApiGetDelegationByIdRequest { + /** + * The unique identifier of the staking position + * @type {string} + * @memberof StakingApiGetDelegationById + */ + readonly id: string +} + +/** + * Request parameters for split operation in StakingApi. + * @export + * @interface StakingApiSplitRequest + */ +export interface StakingApiSplitRequest { + /** + * + * @type {SplitRequest} + * @memberof StakingApiSplit + */ + readonly splitRequest: SplitRequest + + /** + * The protocol identifier (e.g. \"SOL\"/\"SOL_TEST\") to use + * @type {'SOL' | 'SOL_TEST'} + * @memberof StakingApiSplit + */ + readonly chainDescriptor: SplitChainDescriptorEnum + + /** + * 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 StakingApiSplit + */ + readonly idempotencyKey?: string +} + +/** + * Request parameters for stake operation in StakingApi. + * @export + * @interface StakingApiStakeRequest + */ +export interface StakingApiStakeRequest { + /** + * + * @type {StakeRequest} + * @memberof StakingApiStake + */ + readonly stakeRequest: StakeRequest + + /** + * The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\") to use + * @type {ChainDescriptor} + * @memberof StakingApiStake + */ + readonly chainDescriptor: ChainDescriptor + + /** + * 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 StakingApiStake + */ + readonly idempotencyKey?: string +} + +/** + * Request parameters for unstake operation in StakingApi. + * @export + * @interface StakingApiUnstakeRequest + */ +export interface StakingApiUnstakeRequest { + /** + * + * @type {UnstakeRequest} + * @memberof StakingApiUnstake + */ + readonly unstakeRequest: UnstakeRequest + + /** + * The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\") to use + * @type {ChainDescriptor} + * @memberof StakingApiUnstake + */ + readonly chainDescriptor: ChainDescriptor + + /** + * 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 StakingApiUnstake + */ + readonly idempotencyKey?: string +} + +/** + * Request parameters for withdraw operation in StakingApi. + * @export + * @interface StakingApiWithdrawRequest + */ +export interface StakingApiWithdrawRequest { + /** + * + * @type {WithdrawRequest} + * @memberof StakingApiWithdraw + */ + readonly withdrawRequest: WithdrawRequest + + /** + * The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\") to use + * @type {ChainDescriptor} + * @memberof StakingApiWithdraw + */ + readonly chainDescriptor: ChainDescriptor + + /** + * 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 StakingApiWithdraw + */ + readonly idempotencyKey?: string +} + +/** + * StakingApi - object-oriented interface + * @export + * @class StakingApi + * @extends {BaseAPI} + */ +export class StakingApi extends BaseAPI { + /** + * Approve the terms of service of the staking provider. This must be called before performing a staking action for the first time with this provider. + * @summary Approve staking terms of service + * @param {StakingApiApproveTermsOfServiceByProviderIdRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + public approveTermsOfServiceByProviderId(requestParameters: StakingApiApproveTermsOfServiceByProviderIdRequest) { + return StakingApiFp(this.configuration).approveTermsOfServiceByProviderId(requestParameters.providerId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Perform a chain-specific Claim Rewards. + * @summary Execute a Claim Rewards operation + * @param {StakingApiClaimRewardsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + public claimRewards(requestParameters: StakingApiClaimRewardsRequest) { + return StakingApiFp(this.configuration).claimRewards(requestParameters.claimRewardsRequest, requestParameters.chainDescriptor, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Return detailed information on all staking positions, including the staked amount, rewards, status and more. + * @summary List staking positions details + * @param {StakingApiGetAllDelegationsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + public getAllDelegations(requestParameters: StakingApiGetAllDelegationsRequest = {}) { + return StakingApiFp(this.configuration).getAllDelegations(requestParameters.chainDescriptor).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Return chain-specific, staking-related information summary (e.g. epoch details, lockup durations, estimated rewards, etc.) + * @summary Get chain-specific staking summary + * @param {StakingApiGetChainInfoRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + public getChainInfo(requestParameters: StakingApiGetChainInfoRequest) { + return StakingApiFp(this.configuration).getChainInfo(requestParameters.chainDescriptor).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Return an alphabetical list of supported chains. + * @summary List staking supported chains + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + public getChains() { + return StakingApiFp(this.configuration).getChains().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Return detailed information on a staking position, including the staked amount, rewards, status and more. + * @summary Get staking position details + * @param {StakingApiGetDelegationByIdRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + public getDelegationById(requestParameters: StakingApiGetDelegationByIdRequest) { + return StakingApiFp(this.configuration).getDelegationById(requestParameters.id).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Return information on all the available staking providers. + * @summary List staking providers details + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + public getProviders() { + return StakingApiFp(this.configuration).getProviders().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Return a summary of all vaults, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. + * @summary Get staking summary details + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + public getSummary() { + return StakingApiFp(this.configuration).getSummary().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Return a summary for each vault, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. + * @summary Get staking summary details by vault + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + public getSummaryByVault() { + return StakingApiFp(this.configuration).getSummaryByVault().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Perform a Solana Split stake account. + * @summary Execute a Split operation on SOL/SOL_TEST stake account + * @param {StakingApiSplitRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + public split(requestParameters: StakingApiSplitRequest) { + return StakingApiFp(this.configuration).split(requestParameters.splitRequest, requestParameters.chainDescriptor, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Perform a chain-specific Stake. + * @summary Initiate Stake Operation + * @param {StakingApiStakeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + public stake(requestParameters: StakingApiStakeRequest) { + return StakingApiFp(this.configuration).stake(requestParameters.stakeRequest, requestParameters.chainDescriptor, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Execute an Unstake operation + * @summary Execute an Unstake operation + * @param {StakingApiUnstakeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + public unstake(requestParameters: StakingApiUnstakeRequest) { + return StakingApiFp(this.configuration).unstake(requestParameters.unstakeRequest, requestParameters.chainDescriptor, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Perform a chain-specific Withdraw. + * @summary Execute a Withdraw operation + * @param {StakingApiWithdrawRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + public withdraw(requestParameters: StakingApiWithdrawRequest) { + return StakingApiFp(this.configuration).withdraw(requestParameters.withdrawRequest, requestParameters.chainDescriptor, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } +} + +/** + * @export + */ +export const ClaimRewardsChainDescriptorEnum = { + Matic: 'MATIC', + Sol: 'SOL', + SolTest: 'SOL_TEST' +} as const; +export type ClaimRewardsChainDescriptorEnum = typeof ClaimRewardsChainDescriptorEnum[keyof typeof ClaimRewardsChainDescriptorEnum]; +/** + * @export + */ +export const SplitChainDescriptorEnum = { + Sol: 'SOL', + SolTest: 'SOL_TEST' +} as const; +export type SplitChainDescriptorEnum = typeof SplitChainDescriptorEnum[keyof typeof SplitChainDescriptorEnum]; diff --git a/api/staking-beta-api.ts b/api/staking-beta-api.ts deleted file mode 100644 index ac067c2..0000000 --- a/api/staking-beta-api.ts +++ /dev/null @@ -1,830 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import type { Configuration } from '../configuration'; -import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; -import globalAxios from 'axios'; -import { convertToFireblocksResponse } from "../response/fireblocksResponse"; -// URLSearchParams not necessarily used -// @ts-ignore -import { URL, URLSearchParams } from 'url'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -import { assertParamExistsAndNotEmpty } from '../utils/validation_utils'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; -// @ts-ignore -import { ChainInfoResponseDto } from '../models'; -// @ts-ignore -import { DelegationDto } from '../models'; -// @ts-ignore -import { DelegationSummaryDto } from '../models'; -// @ts-ignore -import { ExecuteActionRequest } from '../models'; -// @ts-ignore -import { ExecuteActionResponse } from '../models'; -// @ts-ignore -import { StakingGetAllDelegationsResponse } from '../models'; -// @ts-ignore -import { StakingGetChainsResponse } from '../models'; -// @ts-ignore -import { StakingGetProvidersResponse } from '../models'; -// @ts-ignore -import { StakingGetSummaryByVaultResponse } from '../models'; -/** - * StakingBetaApi - axios parameter creator - * @export - */ -export const StakingBetaApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Approve the terms of service of the staking provider. This must be called before performing a staking action for the first time with this provider. - * @summary - * @param {ApproveTermsOfServiceByProviderIdProviderIdEnum} providerId The unique identifier of the staking provider - * @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} - */ - approveTermsOfServiceByProviderId: async (providerId: ApproveTermsOfServiceByProviderIdProviderIdEnum, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { - assertParamExistsAndNotEmpty('approveTermsOfServiceByProviderId', 'providerId', providerId) - const localVarPath = `/staking/providers/{providerId}/approveTermsOfService` - .replace(`{${"providerId"}}`, encodeURIComponent(String(providerId))); - // 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); - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Perform a chain-specific staking action (e.g. stake, unstake, withdraw). - * @summary - * @param {ExecuteActionRequest} executeActionRequest - * @param {ExecuteActionChainDescriptorEnum} chainDescriptor The protocol identifier (e.g. \"ETH\"/\"SOL\") to use - * @param {ExecuteActionActionIdEnum} actionId The operation that can be executed on a vault/position - * @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} - */ - executeAction: async (executeActionRequest: ExecuteActionRequest, chainDescriptor: ExecuteActionChainDescriptorEnum, actionId: ExecuteActionActionIdEnum, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { - assertParamExists('executeAction', 'executeActionRequest', executeActionRequest) - assertParamExistsAndNotEmpty('executeAction', 'chainDescriptor', chainDescriptor) - assertParamExistsAndNotEmpty('executeAction', 'actionId', actionId) - const localVarPath = `/staking/chains/{chainDescriptor}/{actionId}` - .replace(`{${"chainDescriptor"}}`, encodeURIComponent(String(chainDescriptor))) - .replace(`{${"actionId"}}`, encodeURIComponent(String(actionId))); - // 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(executeActionRequest, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Return detailed information on all staking positions, including the staked amount, rewards, status and more. - * @summary - * @param {string} [chainDescriptor] Use \"ETH\" / \"SOL\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getAllDelegations: async (chainDescriptor?: string, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/staking/positions`; - // 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; - - if (chainDescriptor !== undefined) { - localVarQueryParameter['chainDescriptor'] = chainDescriptor; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Return chain-specific, staking-related information summary (e.g. epoch details, lockup durations, estimated rewards, etc.) - * @summary - * @param {GetChainInfoChainDescriptorEnum} chainDescriptor The protocol identifier (e.g. \"ETH\"/\"SOL\") to use - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getChainInfo: async (chainDescriptor: GetChainInfoChainDescriptorEnum, options: RawAxiosRequestConfig = {}): Promise => { - assertParamExistsAndNotEmpty('getChainInfo', 'chainDescriptor', chainDescriptor) - const localVarPath = `/staking/chains/{chainDescriptor}/chainInfo` - .replace(`{${"chainDescriptor"}}`, encodeURIComponent(String(chainDescriptor))); - // 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, - }; - }, - /** - * Return an alphabetical list of supported chains. - * @summary - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getChains: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/staking/chains`; - // 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, - }; - }, - /** - * Return detailed information on a staking position, including the staked amount, rewards, status and more. - * @summary - * @param {string} id The unique identifier of the staking position - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getDelegationById: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - assertParamExistsAndNotEmpty('getDelegationById', 'id', id) - const localVarPath = `/staking/positions/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // 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, - }; - }, - /** - * Return information on all the available staking providers. - * @summary - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getProviders: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/staking/providers`; - // 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, - }; - }, - /** - * Return a summary of all vaults, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. - * @summary - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getSummary: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/staking/positions/summary`; - // 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, - }; - }, - /** - * Return a summary for each vault, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. - * @summary - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getSummaryByVault: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/staking/positions/summary/vaults`; - // 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, - }; - }, - } -}; - -/** - * StakingBetaApi - functional programming interface - * @export - */ -export const StakingBetaApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = StakingBetaApiAxiosParamCreator(configuration) - return { - /** - * Approve the terms of service of the staking provider. This must be called before performing a staking action for the first time with this provider. - * @summary - * @param {ApproveTermsOfServiceByProviderIdProviderIdEnum} providerId The unique identifier of the staking provider - * @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 approveTermsOfServiceByProviderId(providerId: ApproveTermsOfServiceByProviderIdProviderIdEnum, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.approveTermsOfServiceByProviderId(providerId, idempotencyKey, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['StakingBetaApi.approveTermsOfServiceByProviderId']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Perform a chain-specific staking action (e.g. stake, unstake, withdraw). - * @summary - * @param {ExecuteActionRequest} executeActionRequest - * @param {ExecuteActionChainDescriptorEnum} chainDescriptor The protocol identifier (e.g. \"ETH\"/\"SOL\") to use - * @param {ExecuteActionActionIdEnum} actionId The operation that can be executed on a vault/position - * @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 executeAction(executeActionRequest: ExecuteActionRequest, chainDescriptor: ExecuteActionChainDescriptorEnum, actionId: ExecuteActionActionIdEnum, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.executeAction(executeActionRequest, chainDescriptor, actionId, idempotencyKey, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['StakingBetaApi.executeAction']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Return detailed information on all staking positions, including the staked amount, rewards, status and more. - * @summary - * @param {string} [chainDescriptor] Use \"ETH\" / \"SOL\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getAllDelegations(chainDescriptor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAllDelegations(chainDescriptor, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['StakingBetaApi.getAllDelegations']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Return chain-specific, staking-related information summary (e.g. epoch details, lockup durations, estimated rewards, etc.) - * @summary - * @param {GetChainInfoChainDescriptorEnum} chainDescriptor The protocol identifier (e.g. \"ETH\"/\"SOL\") to use - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getChainInfo(chainDescriptor: GetChainInfoChainDescriptorEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getChainInfo(chainDescriptor, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['StakingBetaApi.getChainInfo']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Return an alphabetical list of supported chains. - * @summary - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getChains(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getChains(options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['StakingBetaApi.getChains']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Return detailed information on a staking position, including the staked amount, rewards, status and more. - * @summary - * @param {string} id The unique identifier of the staking position - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getDelegationById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getDelegationById(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['StakingBetaApi.getDelegationById']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Return information on all the available staking providers. - * @summary - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getProviders(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getProviders(options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['StakingBetaApi.getProviders']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Return a summary of all vaults, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. - * @summary - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getSummary(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getSummary(options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['StakingBetaApi.getSummary']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Return a summary for each vault, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. - * @summary - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getSummaryByVault(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getSummaryByVault(options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['StakingBetaApi.getSummaryByVault']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } -}; - -/** - * StakingBetaApi - factory interface - * @export - */ -export const StakingBetaApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = StakingBetaApiFp(configuration) - return { - /** - * Approve the terms of service of the staking provider. This must be called before performing a staking action for the first time with this provider. - * @summary - * @param {StakingBetaApiApproveTermsOfServiceByProviderIdRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - approveTermsOfServiceByProviderId(requestParameters: StakingBetaApiApproveTermsOfServiceByProviderIdRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.approveTermsOfServiceByProviderId(requestParameters.providerId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); - }, - /** - * Perform a chain-specific staking action (e.g. stake, unstake, withdraw). - * @summary - * @param {StakingBetaApiExecuteActionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - executeAction(requestParameters: StakingBetaApiExecuteActionRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.executeAction(requestParameters.executeActionRequest, requestParameters.chainDescriptor, requestParameters.actionId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); - }, - /** - * Return detailed information on all staking positions, including the staked amount, rewards, status and more. - * @summary - * @param {StakingBetaApiGetAllDelegationsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getAllDelegations(requestParameters: StakingBetaApiGetAllDelegationsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getAllDelegations(requestParameters.chainDescriptor, options).then((request) => request(axios, basePath)); - }, - /** - * Return chain-specific, staking-related information summary (e.g. epoch details, lockup durations, estimated rewards, etc.) - * @summary - * @param {StakingBetaApiGetChainInfoRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getChainInfo(requestParameters: StakingBetaApiGetChainInfoRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getChainInfo(requestParameters.chainDescriptor, options).then((request) => request(axios, basePath)); - }, - /** - * Return an alphabetical list of supported chains. - * @summary - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getChains(options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getChains(options).then((request) => request(axios, basePath)); - }, - /** - * Return detailed information on a staking position, including the staked amount, rewards, status and more. - * @summary - * @param {StakingBetaApiGetDelegationByIdRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getDelegationById(requestParameters: StakingBetaApiGetDelegationByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getDelegationById(requestParameters.id, options).then((request) => request(axios, basePath)); - }, - /** - * Return information on all the available staking providers. - * @summary - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getProviders(options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getProviders(options).then((request) => request(axios, basePath)); - }, - /** - * Return a summary of all vaults, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. - * @summary - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getSummary(options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getSummary(options).then((request) => request(axios, basePath)); - }, - /** - * Return a summary for each vault, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. - * @summary - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getSummaryByVault(options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getSummaryByVault(options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * Request parameters for approveTermsOfServiceByProviderId operation in StakingBetaApi. - * @export - * @interface StakingBetaApiApproveTermsOfServiceByProviderIdRequest - */ -export interface StakingBetaApiApproveTermsOfServiceByProviderIdRequest { - /** - * The unique identifier of the staking provider - * @type {'kiln' | 'figment'} - * @memberof StakingBetaApiApproveTermsOfServiceByProviderId - */ - readonly providerId: ApproveTermsOfServiceByProviderIdProviderIdEnum - - /** - * 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 StakingBetaApiApproveTermsOfServiceByProviderId - */ - readonly idempotencyKey?: string -} - -/** - * Request parameters for executeAction operation in StakingBetaApi. - * @export - * @interface StakingBetaApiExecuteActionRequest - */ -export interface StakingBetaApiExecuteActionRequest { - /** - * - * @type {ExecuteActionRequest} - * @memberof StakingBetaApiExecuteAction - */ - readonly executeActionRequest: ExecuteActionRequest - - /** - * The protocol identifier (e.g. \"ETH\"/\"SOL\") to use - * @type {'ETH' | 'SOL' | 'ETH_TEST3' | 'SOL_TEST'} - * @memberof StakingBetaApiExecuteAction - */ - readonly chainDescriptor: ExecuteActionChainDescriptorEnum - - /** - * The operation that can be executed on a vault/position - * @type {'stake' | 'unstake' | 'withdraw'} - * @memberof StakingBetaApiExecuteAction - */ - readonly actionId: ExecuteActionActionIdEnum - - /** - * 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 StakingBetaApiExecuteAction - */ - readonly idempotencyKey?: string -} - -/** - * Request parameters for getAllDelegations operation in StakingBetaApi. - * @export - * @interface StakingBetaApiGetAllDelegationsRequest - */ -export interface StakingBetaApiGetAllDelegationsRequest { - /** - * Use \"ETH\" / \"SOL\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument. - * @type {string} - * @memberof StakingBetaApiGetAllDelegations - */ - readonly chainDescriptor?: string -} - -/** - * Request parameters for getChainInfo operation in StakingBetaApi. - * @export - * @interface StakingBetaApiGetChainInfoRequest - */ -export interface StakingBetaApiGetChainInfoRequest { - /** - * The protocol identifier (e.g. \"ETH\"/\"SOL\") to use - * @type {'ETH' | 'SOL' | 'ETH_TEST3' | 'SOL_TEST'} - * @memberof StakingBetaApiGetChainInfo - */ - readonly chainDescriptor: GetChainInfoChainDescriptorEnum -} - -/** - * Request parameters for getDelegationById operation in StakingBetaApi. - * @export - * @interface StakingBetaApiGetDelegationByIdRequest - */ -export interface StakingBetaApiGetDelegationByIdRequest { - /** - * The unique identifier of the staking position - * @type {string} - * @memberof StakingBetaApiGetDelegationById - */ - readonly id: string -} - -/** - * StakingBetaApi - object-oriented interface - * @export - * @class StakingBetaApi - * @extends {BaseAPI} - */ -export class StakingBetaApi extends BaseAPI { - /** - * Approve the terms of service of the staking provider. This must be called before performing a staking action for the first time with this provider. - * @summary - * @param {StakingBetaApiApproveTermsOfServiceByProviderIdRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StakingBetaApi - */ - public approveTermsOfServiceByProviderId(requestParameters: StakingBetaApiApproveTermsOfServiceByProviderIdRequest) { - return StakingBetaApiFp(this.configuration).approveTermsOfServiceByProviderId(requestParameters.providerId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); - } - - /** - * Perform a chain-specific staking action (e.g. stake, unstake, withdraw). - * @summary - * @param {StakingBetaApiExecuteActionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StakingBetaApi - */ - public executeAction(requestParameters: StakingBetaApiExecuteActionRequest) { - return StakingBetaApiFp(this.configuration).executeAction(requestParameters.executeActionRequest, requestParameters.chainDescriptor, requestParameters.actionId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); - } - - /** - * Return detailed information on all staking positions, including the staked amount, rewards, status and more. - * @summary - * @param {StakingBetaApiGetAllDelegationsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StakingBetaApi - */ - public getAllDelegations(requestParameters: StakingBetaApiGetAllDelegationsRequest = {}) { - return StakingBetaApiFp(this.configuration).getAllDelegations(requestParameters.chainDescriptor).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); - } - - /** - * Return chain-specific, staking-related information summary (e.g. epoch details, lockup durations, estimated rewards, etc.) - * @summary - * @param {StakingBetaApiGetChainInfoRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StakingBetaApi - */ - public getChainInfo(requestParameters: StakingBetaApiGetChainInfoRequest) { - return StakingBetaApiFp(this.configuration).getChainInfo(requestParameters.chainDescriptor).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); - } - - /** - * Return an alphabetical list of supported chains. - * @summary - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StakingBetaApi - */ - public getChains() { - return StakingBetaApiFp(this.configuration).getChains().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); - } - - /** - * Return detailed information on a staking position, including the staked amount, rewards, status and more. - * @summary - * @param {StakingBetaApiGetDelegationByIdRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StakingBetaApi - */ - public getDelegationById(requestParameters: StakingBetaApiGetDelegationByIdRequest) { - return StakingBetaApiFp(this.configuration).getDelegationById(requestParameters.id).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); - } - - /** - * Return information on all the available staking providers. - * @summary - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StakingBetaApi - */ - public getProviders() { - return StakingBetaApiFp(this.configuration).getProviders().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); - } - - /** - * Return a summary of all vaults, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. - * @summary - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StakingBetaApi - */ - public getSummary() { - return StakingBetaApiFp(this.configuration).getSummary().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); - } - - /** - * Return a summary for each vault, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. - * @summary - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StakingBetaApi - */ - public getSummaryByVault() { - return StakingBetaApiFp(this.configuration).getSummaryByVault().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); - } -} - -/** - * @export - */ -export const ApproveTermsOfServiceByProviderIdProviderIdEnum = { - Kiln: 'kiln', - Figment: 'figment' -} as const; -export type ApproveTermsOfServiceByProviderIdProviderIdEnum = typeof ApproveTermsOfServiceByProviderIdProviderIdEnum[keyof typeof ApproveTermsOfServiceByProviderIdProviderIdEnum]; -/** - * @export - */ -export const ExecuteActionChainDescriptorEnum = { - Eth: 'ETH', - Sol: 'SOL', - EthTest3: 'ETH_TEST3', - SolTest: 'SOL_TEST' -} as const; -export type ExecuteActionChainDescriptorEnum = typeof ExecuteActionChainDescriptorEnum[keyof typeof ExecuteActionChainDescriptorEnum]; -/** - * @export - */ -export const ExecuteActionActionIdEnum = { - Stake: 'stake', - Unstake: 'unstake', - Withdraw: 'withdraw' -} as const; -export type ExecuteActionActionIdEnum = typeof ExecuteActionActionIdEnum[keyof typeof ExecuteActionActionIdEnum]; -/** - * @export - */ -export const GetChainInfoChainDescriptorEnum = { - Eth: 'ETH', - Sol: 'SOL', - EthTest3: 'ETH_TEST3', - SolTest: 'SOL_TEST' -} as const; -export type GetChainInfoChainDescriptorEnum = typeof GetChainInfoChainDescriptorEnum[keyof typeof GetChainInfoChainDescriptorEnum]; diff --git a/api/webhooks-v2-beta-api.ts b/api/webhooks-v2-beta-api.ts new file mode 100644 index 0000000..e83f85c --- /dev/null +++ b/api/webhooks-v2-beta-api.ts @@ -0,0 +1,857 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +import { convertToFireblocksResponse } from "../response/fireblocksResponse"; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +import { assertParamExistsAndNotEmpty } from '../utils/validation_utils'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import { CreateWebhookRequest } from '../models'; +// @ts-ignore +import { ErrorSchema } from '../models'; +// @ts-ignore +import { NotificationPaginatedResponse } from '../models'; +// @ts-ignore +import { NotificationStatus } from '../models'; +// @ts-ignore +import { NotificationWithData } from '../models'; +// @ts-ignore +import { UpdateWebhookRequest } from '../models'; +// @ts-ignore +import { Webhook } from '../models'; +// @ts-ignore +import { WebhookEvent } from '../models'; +// @ts-ignore +import { WebhookPaginatedResponse } from '../models'; +/** + * WebhooksV2BetaApi - axios parameter creator + * @export + */ +export const WebhooksV2BetaApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Creates a new webhook, which will be triggered on the specified events **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Create new webhook + * @param {CreateWebhookRequest} createWebhookRequest + * @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} + */ + createWebhook: async (createWebhookRequest: CreateWebhookRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExists('createWebhook', 'createWebhookRequest', createWebhookRequest) + const localVarPath = `/webhooks`; + // 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(createWebhookRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete a webhook by its id **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Delete webhook + * @param {string} webhookId The unique identifier of the webhook + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteWebhook: async (webhookId: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExistsAndNotEmpty('deleteWebhook', 'webhookId', webhookId) + const localVarPath = `/webhooks/{webhookId}` + .replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + 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 notification by id **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Get notification by id + * @param {string} webhookId The ID of the webhook to fetch + * @param {string} notificationId The ID of the notification to fetch + * @param {boolean} [includeData] Include the data of the notification + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getNotification: async (webhookId: string, notificationId: string, includeData?: boolean, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExistsAndNotEmpty('getNotification', 'webhookId', webhookId) + assertParamExistsAndNotEmpty('getNotification', 'notificationId', notificationId) + const localVarPath = `/webhooks/{webhookId}/notifications/{notificationId}` + .replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId))) + .replace(`{${"notificationId"}}`, encodeURIComponent(String(notificationId))); + // 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; + + if (includeData !== undefined) { + localVarQueryParameter['includeData'] = includeData; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get all notifications by webhook id (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Get all notifications by webhook id + * @param {string} webhookId + * @param {GetNotificationsOrderEnum} [order] ASC / DESC ordering (default DESC) + * @param {string} [pageCursor] Cursor of the required page + * @param {number} [pageSize] Maximum number of items in the page + * @param {string} [createdStartDate] sort by start date + * @param {string} [createdEndDate] sort by end date + * @param {Array} [statuses] Filter by Notification statues + * @param {Array} [eventTypes] Filter by Notification eventTypes + * @param {string} [resourceId] Filter by resourceId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getNotifications: async (webhookId: string, order?: GetNotificationsOrderEnum, pageCursor?: string, pageSize?: number, createdStartDate?: string, createdEndDate?: string, statuses?: Array, eventTypes?: Array, resourceId?: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExistsAndNotEmpty('getNotifications', 'webhookId', webhookId) + const localVarPath = `/webhooks/{webhookId}/notifications` + .replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId))); + // 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; + + if (order !== undefined) { + localVarQueryParameter['order'] = order; + } + + if (pageCursor !== undefined) { + localVarQueryParameter['pageCursor'] = pageCursor; + } + + if (pageSize !== undefined) { + localVarQueryParameter['pageSize'] = pageSize; + } + + if (createdStartDate !== undefined) { + localVarQueryParameter['createdStartDate'] = createdStartDate; + } + + if (createdEndDate !== undefined) { + localVarQueryParameter['createdEndDate'] = createdEndDate; + } + + if (statuses) { + localVarQueryParameter['statuses'] = statuses; + } + + if (eventTypes) { + localVarQueryParameter['eventTypes'] = eventTypes; + } + + if (resourceId !== undefined) { + localVarQueryParameter['resourceId'] = resourceId; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Retrieve a webhook by its id **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Get webhook by id + * @param {string} webhookId The unique identifier of the webhook + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWebhook: async (webhookId: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExistsAndNotEmpty('getWebhook', 'webhookId', webhookId) + const localVarPath = `/webhooks/{webhookId}` + .replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId))); + // 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 all webhooks (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Get all webhooks + * @param {GetWebhooksOrderEnum} [order] ASC / DESC ordering (default DESC) + * @param {string} [pageCursor] Cursor of the required page + * @param {number} [pageSize] Maximum number of items in the page + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWebhooks: async (order?: GetWebhooksOrderEnum, pageCursor?: string, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/webhooks`; + // 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; + + if (order !== undefined) { + localVarQueryParameter['order'] = order; + } + + if (pageCursor !== undefined) { + localVarQueryParameter['pageCursor'] = pageCursor; + } + + if (pageSize !== undefined) { + localVarQueryParameter['pageSize'] = pageSize; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update a webhook by its id **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Update webhook + * @param {UpdateWebhookRequest} updateWebhookRequest + * @param {string} webhookId The unique identifier of the webhook + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateWebhook: async (updateWebhookRequest: UpdateWebhookRequest, webhookId: string, options: RawAxiosRequestConfig = {}): Promise => { + assertParamExists('updateWebhook', 'updateWebhookRequest', updateWebhookRequest) + assertParamExistsAndNotEmpty('updateWebhook', 'webhookId', webhookId) + const localVarPath = `/webhooks/{webhookId}` + .replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(updateWebhookRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * WebhooksV2BetaApi - functional programming interface + * @export + */ +export const WebhooksV2BetaApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = WebhooksV2BetaApiAxiosParamCreator(configuration) + return { + /** + * Creates a new webhook, which will be triggered on the specified events **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Create new webhook + * @param {CreateWebhookRequest} createWebhookRequest + * @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 createWebhook(createWebhookRequest: CreateWebhookRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createWebhook(createWebhookRequest, idempotencyKey, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['WebhooksV2BetaApi.createWebhook']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Delete a webhook by its id **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Delete webhook + * @param {string} webhookId The unique identifier of the webhook + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteWebhook(webhookId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteWebhook(webhookId, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['WebhooksV2BetaApi.deleteWebhook']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Get notification by id **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Get notification by id + * @param {string} webhookId The ID of the webhook to fetch + * @param {string} notificationId The ID of the notification to fetch + * @param {boolean} [includeData] Include the data of the notification + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getNotification(webhookId: string, notificationId: string, includeData?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getNotification(webhookId, notificationId, includeData, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['WebhooksV2BetaApi.getNotification']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Get all notifications by webhook id (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Get all notifications by webhook id + * @param {string} webhookId + * @param {GetNotificationsOrderEnum} [order] ASC / DESC ordering (default DESC) + * @param {string} [pageCursor] Cursor of the required page + * @param {number} [pageSize] Maximum number of items in the page + * @param {string} [createdStartDate] sort by start date + * @param {string} [createdEndDate] sort by end date + * @param {Array} [statuses] Filter by Notification statues + * @param {Array} [eventTypes] Filter by Notification eventTypes + * @param {string} [resourceId] Filter by resourceId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getNotifications(webhookId: string, order?: GetNotificationsOrderEnum, pageCursor?: string, pageSize?: number, createdStartDate?: string, createdEndDate?: string, statuses?: Array, eventTypes?: Array, resourceId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getNotifications(webhookId, order, pageCursor, pageSize, createdStartDate, createdEndDate, statuses, eventTypes, resourceId, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['WebhooksV2BetaApi.getNotifications']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Retrieve a webhook by its id **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Get webhook by id + * @param {string} webhookId The unique identifier of the webhook + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getWebhook(webhookId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getWebhook(webhookId, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['WebhooksV2BetaApi.getWebhook']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Get all webhooks (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Get all webhooks + * @param {GetWebhooksOrderEnum} [order] ASC / DESC ordering (default DESC) + * @param {string} [pageCursor] Cursor of the required page + * @param {number} [pageSize] Maximum number of items in the page + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getWebhooks(order?: GetWebhooksOrderEnum, pageCursor?: string, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getWebhooks(order, pageCursor, pageSize, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['WebhooksV2BetaApi.getWebhooks']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Update a webhook by its id **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Update webhook + * @param {UpdateWebhookRequest} updateWebhookRequest + * @param {string} webhookId The unique identifier of the webhook + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateWebhook(updateWebhookRequest: UpdateWebhookRequest, webhookId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateWebhook(updateWebhookRequest, webhookId, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['WebhooksV2BetaApi.updateWebhook']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + } +}; + +/** + * WebhooksV2BetaApi - factory interface + * @export + */ +export const WebhooksV2BetaApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = WebhooksV2BetaApiFp(configuration) + return { + /** + * Creates a new webhook, which will be triggered on the specified events **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Create new webhook + * @param {WebhooksV2BetaApiCreateWebhookRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createWebhook(requestParameters: WebhooksV2BetaApiCreateWebhookRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createWebhook(requestParameters.createWebhookRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + }, + /** + * Delete a webhook by its id **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Delete webhook + * @param {WebhooksV2BetaApiDeleteWebhookRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteWebhook(requestParameters: WebhooksV2BetaApiDeleteWebhookRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deleteWebhook(requestParameters.webhookId, options).then((request) => request(axios, basePath)); + }, + /** + * Get notification by id **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Get notification by id + * @param {WebhooksV2BetaApiGetNotificationRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getNotification(requestParameters: WebhooksV2BetaApiGetNotificationRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getNotification(requestParameters.webhookId, requestParameters.notificationId, requestParameters.includeData, options).then((request) => request(axios, basePath)); + }, + /** + * Get all notifications by webhook id (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Get all notifications by webhook id + * @param {WebhooksV2BetaApiGetNotificationsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getNotifications(requestParameters: WebhooksV2BetaApiGetNotificationsRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getNotifications(requestParameters.webhookId, requestParameters.order, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.createdStartDate, requestParameters.createdEndDate, requestParameters.statuses, requestParameters.eventTypes, requestParameters.resourceId, options).then((request) => request(axios, basePath)); + }, + /** + * Retrieve a webhook by its id **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Get webhook by id + * @param {WebhooksV2BetaApiGetWebhookRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWebhook(requestParameters: WebhooksV2BetaApiGetWebhookRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getWebhook(requestParameters.webhookId, options).then((request) => request(axios, basePath)); + }, + /** + * Get all webhooks (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Get all webhooks + * @param {WebhooksV2BetaApiGetWebhooksRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWebhooks(requestParameters: WebhooksV2BetaApiGetWebhooksRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getWebhooks(requestParameters.order, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath)); + }, + /** + * Update a webhook by its id **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Update webhook + * @param {WebhooksV2BetaApiUpdateWebhookRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateWebhook(requestParameters: WebhooksV2BetaApiUpdateWebhookRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updateWebhook(requestParameters.updateWebhookRequest, requestParameters.webhookId, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for createWebhook operation in WebhooksV2BetaApi. + * @export + * @interface WebhooksV2BetaApiCreateWebhookRequest + */ +export interface WebhooksV2BetaApiCreateWebhookRequest { + /** + * + * @type {CreateWebhookRequest} + * @memberof WebhooksV2BetaApiCreateWebhook + */ + readonly createWebhookRequest: CreateWebhookRequest + + /** + * 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 WebhooksV2BetaApiCreateWebhook + */ + readonly idempotencyKey?: string +} + +/** + * Request parameters for deleteWebhook operation in WebhooksV2BetaApi. + * @export + * @interface WebhooksV2BetaApiDeleteWebhookRequest + */ +export interface WebhooksV2BetaApiDeleteWebhookRequest { + /** + * The unique identifier of the webhook + * @type {string} + * @memberof WebhooksV2BetaApiDeleteWebhook + */ + readonly webhookId: string +} + +/** + * Request parameters for getNotification operation in WebhooksV2BetaApi. + * @export + * @interface WebhooksV2BetaApiGetNotificationRequest + */ +export interface WebhooksV2BetaApiGetNotificationRequest { + /** + * The ID of the webhook to fetch + * @type {string} + * @memberof WebhooksV2BetaApiGetNotification + */ + readonly webhookId: string + + /** + * The ID of the notification to fetch + * @type {string} + * @memberof WebhooksV2BetaApiGetNotification + */ + readonly notificationId: string + + /** + * Include the data of the notification + * @type {boolean} + * @memberof WebhooksV2BetaApiGetNotification + */ + readonly includeData?: boolean +} + +/** + * Request parameters for getNotifications operation in WebhooksV2BetaApi. + * @export + * @interface WebhooksV2BetaApiGetNotificationsRequest + */ +export interface WebhooksV2BetaApiGetNotificationsRequest { + /** + * + * @type {string} + * @memberof WebhooksV2BetaApiGetNotifications + */ + readonly webhookId: string + + /** + * ASC / DESC ordering (default DESC) + * @type {'ASC' | 'DESC'} + * @memberof WebhooksV2BetaApiGetNotifications + */ + readonly order?: GetNotificationsOrderEnum + + /** + * Cursor of the required page + * @type {string} + * @memberof WebhooksV2BetaApiGetNotifications + */ + readonly pageCursor?: string + + /** + * Maximum number of items in the page + * @type {number} + * @memberof WebhooksV2BetaApiGetNotifications + */ + readonly pageSize?: number + + /** + * sort by start date + * @type {string} + * @memberof WebhooksV2BetaApiGetNotifications + */ + readonly createdStartDate?: string + + /** + * sort by end date + * @type {string} + * @memberof WebhooksV2BetaApiGetNotifications + */ + readonly createdEndDate?: string + + /** + * Filter by Notification statues + * @type {Array} + * @memberof WebhooksV2BetaApiGetNotifications + */ + readonly statuses?: Array + + /** + * Filter by Notification eventTypes + * @type {Array} + * @memberof WebhooksV2BetaApiGetNotifications + */ + readonly eventTypes?: Array + + /** + * Filter by resourceId + * @type {string} + * @memberof WebhooksV2BetaApiGetNotifications + */ + readonly resourceId?: string +} + +/** + * Request parameters for getWebhook operation in WebhooksV2BetaApi. + * @export + * @interface WebhooksV2BetaApiGetWebhookRequest + */ +export interface WebhooksV2BetaApiGetWebhookRequest { + /** + * The unique identifier of the webhook + * @type {string} + * @memberof WebhooksV2BetaApiGetWebhook + */ + readonly webhookId: string +} + +/** + * Request parameters for getWebhooks operation in WebhooksV2BetaApi. + * @export + * @interface WebhooksV2BetaApiGetWebhooksRequest + */ +export interface WebhooksV2BetaApiGetWebhooksRequest { + /** + * ASC / DESC ordering (default DESC) + * @type {'ASC' | 'DESC'} + * @memberof WebhooksV2BetaApiGetWebhooks + */ + readonly order?: GetWebhooksOrderEnum + + /** + * Cursor of the required page + * @type {string} + * @memberof WebhooksV2BetaApiGetWebhooks + */ + readonly pageCursor?: string + + /** + * Maximum number of items in the page + * @type {number} + * @memberof WebhooksV2BetaApiGetWebhooks + */ + readonly pageSize?: number +} + +/** + * Request parameters for updateWebhook operation in WebhooksV2BetaApi. + * @export + * @interface WebhooksV2BetaApiUpdateWebhookRequest + */ +export interface WebhooksV2BetaApiUpdateWebhookRequest { + /** + * + * @type {UpdateWebhookRequest} + * @memberof WebhooksV2BetaApiUpdateWebhook + */ + readonly updateWebhookRequest: UpdateWebhookRequest + + /** + * The unique identifier of the webhook + * @type {string} + * @memberof WebhooksV2BetaApiUpdateWebhook + */ + readonly webhookId: string +} + +/** + * WebhooksV2BetaApi - object-oriented interface + * @export + * @class WebhooksV2BetaApi + * @extends {BaseAPI} + */ +export class WebhooksV2BetaApi extends BaseAPI { + /** + * Creates a new webhook, which will be triggered on the specified events **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Create new webhook + * @param {WebhooksV2BetaApiCreateWebhookRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WebhooksV2BetaApi + */ + public createWebhook(requestParameters: WebhooksV2BetaApiCreateWebhookRequest) { + return WebhooksV2BetaApiFp(this.configuration).createWebhook(requestParameters.createWebhookRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Delete a webhook by its id **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Delete webhook + * @param {WebhooksV2BetaApiDeleteWebhookRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WebhooksV2BetaApi + */ + public deleteWebhook(requestParameters: WebhooksV2BetaApiDeleteWebhookRequest) { + return WebhooksV2BetaApiFp(this.configuration).deleteWebhook(requestParameters.webhookId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Get notification by id **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Get notification by id + * @param {WebhooksV2BetaApiGetNotificationRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WebhooksV2BetaApi + */ + public getNotification(requestParameters: WebhooksV2BetaApiGetNotificationRequest) { + return WebhooksV2BetaApiFp(this.configuration).getNotification(requestParameters.webhookId, requestParameters.notificationId, requestParameters.includeData).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Get all notifications by webhook id (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Get all notifications by webhook id + * @param {WebhooksV2BetaApiGetNotificationsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WebhooksV2BetaApi + */ + public getNotifications(requestParameters: WebhooksV2BetaApiGetNotificationsRequest) { + return WebhooksV2BetaApiFp(this.configuration).getNotifications(requestParameters.webhookId, requestParameters.order, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.createdStartDate, requestParameters.createdEndDate, requestParameters.statuses, requestParameters.eventTypes, requestParameters.resourceId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Retrieve a webhook by its id **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Get webhook by id + * @param {WebhooksV2BetaApiGetWebhookRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WebhooksV2BetaApi + */ + public getWebhook(requestParameters: WebhooksV2BetaApiGetWebhookRequest) { + return WebhooksV2BetaApiFp(this.configuration).getWebhook(requestParameters.webhookId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Get all webhooks (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Get all webhooks + * @param {WebhooksV2BetaApiGetWebhooksRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WebhooksV2BetaApi + */ + public getWebhooks(requestParameters: WebhooksV2BetaApiGetWebhooksRequest = {}) { + return WebhooksV2BetaApiFp(this.configuration).getWebhooks(requestParameters.order, requestParameters.pageCursor, requestParameters.pageSize).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Update a webhook by its id **Note:** These endpoints are currently in beta and might be subject to changes. + * @summary Update webhook + * @param {WebhooksV2BetaApiUpdateWebhookRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WebhooksV2BetaApi + */ + public updateWebhook(requestParameters: WebhooksV2BetaApiUpdateWebhookRequest) { + return WebhooksV2BetaApiFp(this.configuration).updateWebhook(requestParameters.updateWebhookRequest, requestParameters.webhookId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } +} + +/** + * @export + */ +export const GetNotificationsOrderEnum = { + Asc: 'ASC', + Desc: 'DESC' +} as const; +export type GetNotificationsOrderEnum = typeof GetNotificationsOrderEnum[keyof typeof GetNotificationsOrderEnum]; +/** + * @export + */ +export const GetWebhooksOrderEnum = { + Asc: 'ASC', + Desc: 'DESC' +} as const; +export type GetWebhooksOrderEnum = typeof GetWebhooksOrderEnum[keyof typeof GetWebhooksOrderEnum]; diff --git a/client/client.ts b/client/client.ts index 022e399..2b1ecc5 100644 --- a/client/client.ts +++ b/client/client.ts @@ -16,6 +16,7 @@ import { ApiUserApi, AssetsApi, AuditLogsApi, BlockchainsAssetsApi, + BlockchainsAssetsBetaApi, ComplianceApi, ComplianceScreeningConfigurationApi, ConsoleUserApi, @@ -24,6 +25,7 @@ import { ApiUserApi, ContractsApi, CosignersBetaApi, DeployedContractsApi, + EmbeddedWalletsApi, ExchangeAccountsApi, ExternalWalletsApi, FiatAccountsApi, @@ -31,6 +33,7 @@ import { ApiUserApi, InternalWalletsApi, JobManagementApi, KeyLinkBetaApi, + KeysBetaApi, NFTsApi, NetworkConnectionsApi, OTABetaApi, @@ -39,7 +42,7 @@ import { ApiUserApi, PolicyEditorBetaApi, ResetDeviceApi, SmartTransferApi, - StakingBetaApi, + StakingApi, TokenizationApi, TransactionsApi, TravelRuleBetaApi, @@ -48,6 +51,7 @@ import { ApiUserApi, VaultsApi, Web3ConnectionsApi, WebhooksApi, + WebhooksV2BetaApi, WhitelistIpAddressesApi, WorkspaceStatusBetaApi } from '../api'; @@ -61,6 +65,7 @@ export class Fireblocks { private _assets?: AssetsApi; private _auditLogs?: AuditLogsApi; private _blockchainsAssets?: BlockchainsAssetsApi; + private _blockchainsAssetsBeta?: BlockchainsAssetsBetaApi; private _compliance?: ComplianceApi; private _complianceScreeningConfiguration?: ComplianceScreeningConfigurationApi; private _consoleUser?: ConsoleUserApi; @@ -69,6 +74,7 @@ export class Fireblocks { private _contracts?: ContractsApi; private _cosignersBeta?: CosignersBetaApi; private _deployedContracts?: DeployedContractsApi; + private _embeddedWallets?: EmbeddedWalletsApi; private _exchangeAccounts?: ExchangeAccountsApi; private _externalWallets?: ExternalWalletsApi; private _fiatAccounts?: FiatAccountsApi; @@ -76,6 +82,7 @@ export class Fireblocks { private _internalWallets?: InternalWalletsApi; private _jobManagement?: JobManagementApi; private _keyLinkBeta?: KeyLinkBetaApi; + private _keysBeta?: KeysBetaApi; private _nfts?: NFTsApi; private _networkConnections?: NetworkConnectionsApi; private _otaBeta?: OTABetaApi; @@ -84,7 +91,7 @@ export class Fireblocks { private _policyEditorBeta?: PolicyEditorBetaApi; private _resetDevice?: ResetDeviceApi; private _smartTransfer?: SmartTransferApi; - private _stakingBeta?: StakingBetaApi; + private _staking?: StakingApi; private _tokenization?: TokenizationApi; private _transactions?: TransactionsApi; private _travelRuleBeta?: TravelRuleBetaApi; @@ -93,6 +100,7 @@ export class Fireblocks { private _vaults?: VaultsApi; private _web3Connections?: Web3ConnectionsApi; private _webhooks?: WebhooksApi; + private _webhooksV2Beta?: WebhooksV2BetaApi; private _whitelistIpAddresses?: WhitelistIpAddressesApi; private _workspaceStatusBeta?: WorkspaceStatusBetaApi; @@ -128,6 +136,9 @@ export class Fireblocks { get blockchainsAssets(): BlockchainsAssetsApi { return this._blockchainsAssets ?? new BlockchainsAssetsApi(this.config, undefined, this.axiosManager.axios); } + get blockchainsAssetsBeta(): BlockchainsAssetsBetaApi { + return this._blockchainsAssetsBeta ?? new BlockchainsAssetsBetaApi(this.config, undefined, this.axiosManager.axios); + } get compliance(): ComplianceApi { return this._compliance ?? new ComplianceApi(this.config, undefined, this.axiosManager.axios); } @@ -152,6 +163,9 @@ export class Fireblocks { get deployedContracts(): DeployedContractsApi { return this._deployedContracts ?? new DeployedContractsApi(this.config, undefined, this.axiosManager.axios); } + get embeddedWallets(): EmbeddedWalletsApi { + return this._embeddedWallets ?? new EmbeddedWalletsApi(this.config, undefined, this.axiosManager.axios); + } get exchangeAccounts(): ExchangeAccountsApi { return this._exchangeAccounts ?? new ExchangeAccountsApi(this.config, undefined, this.axiosManager.axios); } @@ -173,6 +187,9 @@ export class Fireblocks { get keyLinkBeta(): KeyLinkBetaApi { return this._keyLinkBeta ?? new KeyLinkBetaApi(this.config, undefined, this.axiosManager.axios); } + get keysBeta(): KeysBetaApi { + return this._keysBeta ?? new KeysBetaApi(this.config, undefined, this.axiosManager.axios); + } get nfts(): NFTsApi { return this._nfts ?? new NFTsApi(this.config, undefined, this.axiosManager.axios); } @@ -197,8 +214,8 @@ export class Fireblocks { get smartTransfer(): SmartTransferApi { return this._smartTransfer ?? new SmartTransferApi(this.config, undefined, this.axiosManager.axios); } - get stakingBeta(): StakingBetaApi { - return this._stakingBeta ?? new StakingBetaApi(this.config, undefined, this.axiosManager.axios); + get staking(): StakingApi { + return this._staking ?? new StakingApi(this.config, undefined, this.axiosManager.axios); } get tokenization(): TokenizationApi { return this._tokenization ?? new TokenizationApi(this.config, undefined, this.axiosManager.axios); @@ -224,6 +241,9 @@ export class Fireblocks { get webhooks(): WebhooksApi { return this._webhooks ?? new WebhooksApi(this.config, undefined, this.axiosManager.axios); } + get webhooksV2Beta(): WebhooksV2BetaApi { + return this._webhooksV2Beta ?? new WebhooksV2BetaApi(this.config, undefined, this.axiosManager.axios); + } get whitelistIpAddresses(): WhitelistIpAddressesApi { return this._whitelistIpAddresses ?? new WhitelistIpAddressesApi(this.config, undefined, this.axiosManager.axios); } diff --git a/docs/apis/BlockchainsAssetsApi.md b/docs/apis/BlockchainsAssetsApi.md index 16d32b3..137430c 100644 --- a/docs/apis/BlockchainsAssetsApi.md +++ b/docs/apis/BlockchainsAssetsApi.md @@ -127,6 +127,7 @@ No authorization required **404** | - Invalid address, could not get asset information. Error code 1003 | - | **409** | - The asset is already supported globally. Error code: 1001 - The asset has already been added to this workspace. Error code: 1002 | - | **500** | Failed to create asset | - | +**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) diff --git a/docs/apis/BlockchainsAssetsBetaApi.md b/docs/apis/BlockchainsAssetsBetaApi.md new file mode 100644 index 0000000..0e17548 --- /dev/null +++ b/docs/apis/BlockchainsAssetsBetaApi.md @@ -0,0 +1,295 @@ +# BlockchainsAssetsBetaApi + +All URIs are relative to https://developers.fireblocks.com/reference/ + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getAssetById**](#getAssetById) | **GET** /assets/{id} | Get an asset +[**getBlockchainById**](#getBlockchainById) | **GET** /blockchains/{id} | Get an blockchain +[**listAssets**](#listAssets) | **GET** /assets | List assets +[**listBlockchains**](#listBlockchains) | **GET** /blockchains | List blockchains + + +# **getAssetById** +> AssetResponseBeta getAssetById() + +Returns an asset by ID or legacyID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, BlockchainsAssetsBetaApiGetAssetByIdRequest, AssetResponseBeta } 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: BlockchainsAssetsBetaApiGetAssetByIdRequest = { + // string | The ID or legacyId of the asset + id: ETH, + // 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.blockchainsAssetsBeta.getAssetById(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 +------------- | ------------- | ------------- | ------------- + **id** | [**string**] | The ID or legacyId of the asset | defaults to undefined + **idempotencyKey** | [**string**] | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | (optional) defaults to undefined + + +### Return type + +**[AssetResponseBeta](../models/AssetResponseBeta.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Asset with requested identification | * X-Request-ID -
| +**404** | - Asset with specified ID or legacy ID is not found. Error code 1504 | - | +**500** | Error occurred while getting an asset | - | +**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) + +# **getBlockchainById** +> BlockchainResponse getBlockchainById() + +Returns an blockchain by ID or legacyID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, BlockchainsAssetsBetaApiGetBlockchainByIdRequest, BlockchainResponse } 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: BlockchainsAssetsBetaApiGetBlockchainByIdRequest = { + // string | The ID or legacyId of the blockchain + id: ETH, +}; + +fireblocks.blockchainsAssetsBeta.getBlockchainById(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 +------------- | ------------- | ------------- | ------------- + **id** | [**string**] | The ID or legacyId of the blockchain | defaults to undefined + + +### Return type + +**[BlockchainResponse](../models/BlockchainResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Blockchain with requested identification | * X-Request-ID -
| +**404** | - Blockchain with specified ID or legacy ID is not found. Error code 1505 | - | +**500** | Error occurred while getting an blockchain | - | +**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) + +# **listAssets** +> ListAssetsResponse listAssets() + +Returns all asset type supported by Fireblocks.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, BlockchainsAssetsBetaApiListAssetsRequest, ListAssetsResponse } 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: BlockchainsAssetsBetaApiListAssetsRequest = { + // string | Blockchain id of the assets (optional) + blockchainId: 0f672204-a28b-464a-b318-a387abd3d3c7, + // AssetClassBeta | Assets class (optional) + assetClass: param_value, + // string | Assets onchain symbol (optional) + symbol: ETH, + // 'Global' | 'Local' | Scope of the assets (optional) + scope: Global, + // boolean | Are assets deprecated (optional) + deprecated: false, + // string | Next page cursor to fetch (optional) + pageCursor: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA==, + // number | Items per page (optional) + pageSize: 500, + // 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.blockchainsAssetsBeta.listAssets(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 +------------- | ------------- | ------------- | ------------- + **blockchainId** | [**string**] | Blockchain id of the assets | (optional) defaults to undefined + **assetClass** | **AssetClassBeta** | Assets class | (optional) defaults to undefined + **symbol** | [**string**] | Assets onchain symbol | (optional) defaults to undefined + **scope** | [**'Global' | 'Local'**]**Array<'Global' | 'Local'>** | Scope of the assets | (optional) defaults to undefined + **deprecated** | [**boolean**] | Are assets deprecated | (optional) defaults to undefined + **pageCursor** | [**string**] | Next page cursor to fetch | (optional) defaults to undefined + **pageSize** | [**number**] | Items per page | (optional) defaults to 500 + **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 + +**[ListAssetsResponse](../models/ListAssetsResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of assets | - | +**500** | Error occurred while listing assets | - | +**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) + +# **listBlockchains** +> ListBlockchainsResponse listBlockchains() + +Returns all blockchains supported by Fireblocks.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, BlockchainsAssetsBetaApiListBlockchainsRequest, ListBlockchainsResponse } 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: BlockchainsAssetsBetaApiListBlockchainsRequest = { + // string | Blockchain protocol (optional) + protocol: SOL, + // boolean | Is blockchain deprecated (optional) + deprecated: false, + // boolean | Is test blockchain (optional) + test: false, + // string | Page cursor to fetch (optional) + pageCursor: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA==, + // number | Items per page (max 500) (optional) + pageSize: 500, +}; + +fireblocks.blockchainsAssetsBeta.listBlockchains(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 +------------- | ------------- | ------------- | ------------- + **protocol** | [**string**] | Blockchain protocol | (optional) defaults to undefined + **deprecated** | [**boolean**] | Is blockchain deprecated | (optional) defaults to undefined + **test** | [**boolean**] | Is test blockchain | (optional) defaults to undefined + **pageCursor** | [**string**] | Page cursor to fetch | (optional) defaults to undefined + **pageSize** | [**number**] | Items per page (max 500) | (optional) defaults to 500 + + +### Return type + +**[ListBlockchainsResponse](../models/ListBlockchainsResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of supported blockchains | - | +**500** | Error occurred while listing blockchains | - | +**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) + + diff --git a/docs/apis/ComplianceApi.md b/docs/apis/ComplianceApi.md index e147720..7465306 100644 --- a/docs/apis/ComplianceApi.md +++ b/docs/apis/ComplianceApi.md @@ -8,6 +8,7 @@ Method | HTTP request | Description [**getAmlScreeningPolicy**](#getAmlScreeningPolicy) | **GET** /screening/aml/screening_policy | AML - View Screening Policy [**getPostScreeningPolicy**](#getPostScreeningPolicy) | **GET** /screening/travel_rule/post_screening_policy | Travel Rule - View Post-Screening Policy [**getScreeningPolicy**](#getScreeningPolicy) | **GET** /screening/travel_rule/screening_policy | Travel Rule - View Screening Policy +[**retryRejectedTransactionBypassScreeningChecks**](#retryRejectedTransactionBypassScreeningChecks) | **POST** /screening/transaction/{txId}/bypass_screening_policy | Calling the \"Bypass Screening Policy\" API endpoint triggers a new transaction, with the API user as the initiator, bypassing the screening policy check [**updateAmlScreeningConfiguration**](#updateAmlScreeningConfiguration) | **PUT** /screening/aml/policy_configuration | Update AML Configuration [**updateScreeningConfiguration**](#updateScreeningConfiguration) | **PUT** /screening/configurations | Tenant - Screening Configuration [**updateTravelRuleConfig**](#updateTravelRuleConfig) | **PUT** /screening/travel_rule/policy_configuration | Update Travel Rule Configuration @@ -225,6 +226,69 @@ 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) +# **retryRejectedTransactionBypassScreeningChecks** +> CreateTransactionResponse retryRejectedTransactionBypassScreeningChecks() + +This endpoint is restricted to Admin API users and is only applicable to outgoing transactions. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, ComplianceApiRetryRejectedTransactionBypassScreeningChecksRequest, CreateTransactionResponse } 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: ComplianceApiRetryRejectedTransactionBypassScreeningChecksRequest = { + // string | The transaction id that was rejected by screening checks + txId: 550e8400-e29b-41d4-a716-446655440000, + // string | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + idempotencyKey: idempotencyKey_example, +}; + +fireblocks.compliance.retryRejectedTransactionBypassScreeningChecks(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 +------------- | ------------- | ------------- | ------------- + **txId** | [**string**] | The transaction id that was rejected by screening checks | 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 + +**[CreateTransactionResponse](../models/CreateTransactionResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | A transaction object | * 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) + # **updateAmlScreeningConfiguration** > ScreeningConfigurationsRequest updateAmlScreeningConfiguration() diff --git a/docs/apis/ContractInteractionsApi.md b/docs/apis/ContractInteractionsApi.md index db2bc33..b460dfd 100644 --- a/docs/apis/ContractInteractionsApi.md +++ b/docs/apis/ContractInteractionsApi.md @@ -5,6 +5,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ Method | HTTP request | Description ------------- | ------------- | ------------- [**getDeployedContractAbi**](#getDeployedContractAbi) | **GET** /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions | Return deployed contract\'s ABI +[**getTransactionReceipt**](#getTransactionReceipt) | **GET** /contract_interactions/base_asset_id/{baseAssetId}/tx_hash/{txHash}/receipt | Get transaction receipt [**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 @@ -75,6 +76,69 @@ 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) +# **getTransactionReceipt** +> TransactionReceiptResponse getTransactionReceipt() + +Retrieve the transaction receipt by blockchain native asset ID and transaction hash + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, ContractInteractionsApiGetTransactionReceiptRequest, TransactionReceiptResponse } 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: ContractInteractionsApiGetTransactionReceiptRequest = { + // string | The blockchain base assetId + baseAssetId: ETH_TEST6, + // string | The transaction hash + txHash: 0x3b015ca0518c55d7bff4e3f5aa5d0431705771553ba8a95cf20e34cb597f57f6, +}; + +fireblocks.contractInteractions.getTransactionReceipt(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 +------------- | ------------- | ------------- | ------------- + **baseAssetId** | [**string**] | The blockchain base assetId | defaults to undefined + **txHash** | [**string**] | The transaction hash | defaults to undefined + + +### Return type + +**[TransactionReceiptResponse](../models/TransactionReceiptResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Retrieved The Transaction Receipt Successfully | - | +**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) + # **readCallFunction** > ParameterWithValueList readCallFunction(readCallFunctionDto, ) diff --git a/docs/apis/CosignersBetaApi.md b/docs/apis/CosignersBetaApi.md index 5282be4..183c14d 100644 --- a/docs/apis/CosignersBetaApi.md +++ b/docs/apis/CosignersBetaApi.md @@ -4,13 +4,81 @@ All URIs are relative to https://developers.fireblocks.com/reference/ Method | HTTP request | Description ------------- | ------------- | ------------- +[**addCosigner**](#addCosigner) | **POST** /cosigners | Add cosigner [**getApiKey**](#getApiKey) | **GET** /cosigners/{cosignerId}/api_keys/{apiKeyId} | Get API key [**getApiKeys**](#getApiKeys) | **GET** /cosigners/{cosignerId}/api_keys | Get all API keys [**getCosigner**](#getCosigner) | **GET** /cosigners/{cosignerId} | Get cosigner [**getCosigners**](#getCosigners) | **GET** /cosigners | Get all cosigners +[**getRequestStatus**](#getRequestStatus) | **GET** /cosigners/{cosignerId}/api_keys/{apiKeyId}/{requestId} | Get request status +[**pairApiKey**](#pairApiKey) | **PUT** /cosigners/{cosignerId}/api_keys/{apiKeyId} | Pair API key [**renameCosigner**](#renameCosigner) | **PATCH** /cosigners/{cosignerId} | Rename cosigner +[**unpairApiKey**](#unpairApiKey) | **DELETE** /cosigners/{cosignerId}/api_keys/{apiKeyId} | Unpair API key +[**updateCallbackHandler**](#updateCallbackHandler) | **PATCH** /cosigners/{cosignerId}/api_keys/{apiKeyId} | Update API key callback handler +# **addCosigner** +> AddCosignerResponse addCosigner(addCosignerRequest) + +Add a new cosigner. The cosigner will be pending pairing until the API key is manually paired + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, CosignersBetaApiAddCosignerRequest, AddCosignerResponse } 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: CosignersBetaApiAddCosignerRequest = { + // AddCosignerRequest + addCosignerRequest: param_value, + // string | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + idempotencyKey: idempotencyKey_example, +}; + +fireblocks.cosignersBeta.addCosigner(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 +------------- | ------------- | ------------- | ------------- + **addCosignerRequest** | **[AddCosignerRequest](../models/AddCosignerRequest.md)**| | + **idempotencyKey** | [**string**] | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | (optional) defaults to undefined + + +### Return type + +**[AddCosignerResponse](../models/AddCosignerResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Pending cosigner added | * 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) + # **getApiKey** > ApiKey getApiKey() @@ -77,7 +145,7 @@ No authorization required # **getApiKeys** > ApiKeysPaginatedResponse getApiKeys() -Get all cosigner paired API keys (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. +Get all cosigner paired API keys (paginated) ### Example @@ -269,6 +337,141 @@ 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) +# **getRequestStatus** +> Status getRequestStatus() + +Get the status of an asynchronous request + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, CosignersBetaApiGetRequestStatusRequest, Status } 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: CosignersBetaApiGetRequestStatusRequest = { + // string | The unique identifier of the cosigner + cosignerId: 44fcead0-7053-4831-a53a-df7fb90d440f, + // string | The unique identifier of the API key + apiKeyId: 44fcead0-7053-4831-a53a-df7fb90d440f, + // string + requestId: requestId_example, +}; + +fireblocks.cosignersBeta.getRequestStatus(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 +------------- | ------------- | ------------- | ------------- + **cosignerId** | [**string**] | The unique identifier of the cosigner | defaults to undefined + **apiKeyId** | [**string**] | The unique identifier of the API key | defaults to undefined + **requestId** | [**string**] | | defaults to undefined + + +### Return type + +**[Status](../models/Status.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The status of the request | * 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) + +# **pairApiKey** +> PairApiKeyResponse pairApiKey(pairApiKeyRequest, ) + +Pair an API key to a cosigner + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, CosignersBetaApiPairApiKeyRequest, PairApiKeyResponse } 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: CosignersBetaApiPairApiKeyRequest = { + // PairApiKeyRequest + pairApiKeyRequest: param_value, + // string | The unique identifier of the cosigner + cosignerId: 44fcead0-7053-4831-a53a-df7fb90d440f, + // string | The unique identifier of the API key + apiKeyId: 44fcead0-7053-4831-a53a-df7fb90d440f, + // 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.cosignersBeta.pairApiKey(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 +------------- | ------------- | ------------- | ------------- + **pairApiKeyRequest** | **[PairApiKeyRequest](../models/PairApiKeyRequest.md)**| | + **cosignerId** | [**string**] | The unique identifier of the cosigner | defaults to undefined + **apiKeyId** | [**string**] | The unique identifier of the API key | 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 + +**[PairApiKeyResponse](../models/PairApiKeyResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | The API key object to be paired | * X-Request-ID -
* Location -
| +**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) + # **renameCosigner** > Cosigner renameCosigner(renameCosigner, ) @@ -332,4 +535,133 @@ 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) +# **unpairApiKey** +> ApiKey unpairApiKey() + +Unpair an API key from a cosigner + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, CosignersBetaApiUnpairApiKeyRequest, ApiKey } 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: CosignersBetaApiUnpairApiKeyRequest = { + // string | The unique identifier of the cosigner + cosignerId: 44fcead0-7053-4831-a53a-df7fb90d440f, + // string | The unique identifier of the API key + apiKeyId: 44fcead0-7053-4831-a53a-df7fb90d440f, +}; + +fireblocks.cosignersBeta.unpairApiKey(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 +------------- | ------------- | ------------- | ------------- + **cosignerId** | [**string**] | The unique identifier of the cosigner | defaults to undefined + **apiKeyId** | [**string**] | The unique identifier of the API key | defaults to undefined + + +### Return type + +**[ApiKey](../models/ApiKey.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | The API key object to be unpaired | * X-Request-ID -
* Location -
| +**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) + +# **updateCallbackHandler** +> UpdateCallbackHandlerResponse updateCallbackHandler(updateCallbackHandlerRequest, ) + +Update the callback handler of an API key + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, CosignersBetaApiUpdateCallbackHandlerRequest, UpdateCallbackHandlerResponse } 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: CosignersBetaApiUpdateCallbackHandlerRequest = { + // UpdateCallbackHandlerRequest + updateCallbackHandlerRequest: param_value, + // string | The unique identifier of the cosigner + cosignerId: 44fcead0-7053-4831-a53a-df7fb90d440f, + // string | The unique identifier of the API key + apiKeyId: 44fcead0-7053-4831-a53a-df7fb90d440f, +}; + +fireblocks.cosignersBeta.updateCallbackHandler(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 +------------- | ------------- | ------------- | ------------- + **updateCallbackHandlerRequest** | **[UpdateCallbackHandlerRequest](../models/UpdateCallbackHandlerRequest.md)**| | + **cosignerId** | [**string**] | The unique identifier of the cosigner | defaults to undefined + **apiKeyId** | [**string**] | The unique identifier of the API key | defaults to undefined + + +### Return type + +**[UpdateCallbackHandlerResponse](../models/UpdateCallbackHandlerResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | The API key object with the new callback handler | * X-Request-ID -
* Location -
| +**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) + diff --git a/docs/apis/EmbeddedWalletsApi.md b/docs/apis/EmbeddedWalletsApi.md new file mode 100644 index 0000000..bf59a36 --- /dev/null +++ b/docs/apis/EmbeddedWalletsApi.md @@ -0,0 +1,155 @@ +# EmbeddedWalletsApi + +All URIs are relative to https://developers.fireblocks.com/reference/ + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getPublicKeyInfoForAddressNcw**](#getPublicKeyInfoForAddressNcw) | **GET** /ncw/{walletId}/accounts/{accountId}/{assetId}/{change}/{addressIndex}/public_key_info | Get the public key of an asset +[**getPublicKeyInfoNcw**](#getPublicKeyInfoNcw) | **GET** /ncw/{walletId}/public_key_info | Get the public key for a derivation path + + +# **getPublicKeyInfoForAddressNcw** +> PublicKeyInformation getPublicKeyInfoForAddressNcw() + +Gets the public key of an asset associated with a specific account within a Non-Custodial Wallet + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, EmbeddedWalletsApiGetPublicKeyInfoForAddressNcwRequest, PublicKeyInformation } 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: EmbeddedWalletsApiGetPublicKeyInfoForAddressNcwRequest = { + // string | The ID of the Non-Custodial wallet + walletId: 550e8400-e29b-41d4-a716-446655440000, + // string | The ID of the account + accountId: 0, + // string | The ID of the asset + assetId: BTC, + // number | BIP44 derivation path - change value + change: 0, + // number | BIP44 derivation path - index value + addressIndex: 0, + // boolean | Compressed/Uncompressed public key format (optional) + compressed: true, +}; + +fireblocks.embeddedWallets.getPublicKeyInfoForAddressNcw(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 +------------- | ------------- | ------------- | ------------- + **walletId** | [**string**] | The ID of the Non-Custodial wallet | defaults to undefined + **accountId** | [**string**] | The ID of the account | defaults to undefined + **assetId** | [**string**] | The ID of the asset | defaults to undefined + **change** | [**number**] | BIP44 derivation path - change value | defaults to undefined + **addressIndex** | [**number**] | BIP44 derivation path - index value | defaults to undefined + **compressed** | [**boolean**] | Compressed/Uncompressed public key format | (optional) defaults to undefined + + +### Return type + +**[PublicKeyInformation](../models/PublicKeyInformation.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Public Key Information | * 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) + +# **getPublicKeyInfoNcw** +> PublicKeyInformation getPublicKeyInfoNcw() + +Gets the public key information based on derivation path and signing algorithm within a Non-Custodial Wallet + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, EmbeddedWalletsApiGetPublicKeyInfoNcwRequest, PublicKeyInformation } 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: EmbeddedWalletsApiGetPublicKeyInfoNcwRequest = { + // string | The ID of the Non-Custodial wallet + walletId: 550e8400-e29b-41d4-a716-446655440000, + // string | An array of integers (passed as JSON stringified array) representing the full BIP44 derivation path of the requested public key. The first element must always be 44. + derivationPath: [44,0,0,0,0], + // 'MPC_ECDSA_SECP256K1' | 'MPC_ECDSA_SECP256R1' | 'MPC_EDDSA_ED25519' | Elliptic Curve + algorithm: algorithm_example, + // boolean (optional) + compressed: true, +}; + +fireblocks.embeddedWallets.getPublicKeyInfoNcw(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 +------------- | ------------- | ------------- | ------------- + **walletId** | [**string**] | The ID of the Non-Custodial wallet | defaults to undefined + **derivationPath** | [**string**] | An array of integers (passed as JSON stringified array) representing the full BIP44 derivation path of the requested public key. The first element must always be 44. | defaults to undefined + **algorithm** | [**'MPC_ECDSA_SECP256K1' | 'MPC_ECDSA_SECP256R1' | 'MPC_EDDSA_ED25519'**]**Array<'MPC_ECDSA_SECP256K1' | 'MPC_ECDSA_SECP256R1' | 'MPC_EDDSA_ED25519'>** | Elliptic Curve | defaults to undefined + **compressed** | [**boolean**] | | (optional) defaults to undefined + + +### Return type + +**[PublicKeyInformation](../models/PublicKeyInformation.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Public key information | * 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) + + diff --git a/docs/apis/KeysBetaApi.md b/docs/apis/KeysBetaApi.md new file mode 100644 index 0000000..11c8a97 --- /dev/null +++ b/docs/apis/KeysBetaApi.md @@ -0,0 +1,125 @@ +# KeysBetaApi + +All URIs are relative to https://developers.fireblocks.com/reference/ + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getMpcKeysList**](#getMpcKeysList) | **GET** /keys/mpc/list | Get list of mpc keys +[**getMpcKeysListByUser**](#getMpcKeysListByUser) | **GET** /keys/mpc/list/{userId} | Get list of mpc keys by `userId` + + +# **getMpcKeysList** +> GetMpcKeysResponse getMpcKeysList() + +Returns a list of MPC signing keys of the workspace. For each key, the list of players associated with it is attached. **Note:** This endpoint is currently in beta and might be subject to changes. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, GetMpcKeysResponse } 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.keysBeta.getMpcKeysList(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 + +**[GetMpcKeysResponse](../models/GetMpcKeysResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of mpc keys | * 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) + +# **getMpcKeysListByUser** +> GetMpcKeysResponse getMpcKeysListByUser() + +Returns a list of MPC signing keys of a specific user. For each key, the list of players associated with it is attached. **Note:** This endpoint is currently in beta and might be subject to changes. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, KeysBetaApiGetMpcKeysListByUserRequest, GetMpcKeysResponse } 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: KeysBetaApiGetMpcKeysListByUserRequest = { + // string | The id for the user + userId: 46a92767-5f93-4a46-9eed-f012196bb4fc, +}; + +fireblocks.keysBeta.getMpcKeysListByUser(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 +------------- | ------------- | ------------- | ------------- + **userId** | [**string**] | The id for the user | defaults to undefined + + +### Return type + +**[GetMpcKeysResponse](../models/GetMpcKeysResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of mpc keys | * 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) + + diff --git a/docs/apis/StakingApi.md b/docs/apis/StakingApi.md new file mode 100644 index 0000000..ec09ece --- /dev/null +++ b/docs/apis/StakingApi.md @@ -0,0 +1,811 @@ +# StakingApi + +All URIs are relative to https://developers.fireblocks.com/reference/ + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**approveTermsOfServiceByProviderId**](#approveTermsOfServiceByProviderId) | **POST** /staking/providers/{providerId}/approveTermsOfService | Approve staking terms of service +[**claimRewards**](#claimRewards) | **POST** /staking/chains/{chainDescriptor}/claim_rewards | Execute a Claim Rewards operation +[**getAllDelegations**](#getAllDelegations) | **GET** /staking/positions | List staking positions details +[**getChainInfo**](#getChainInfo) | **GET** /staking/chains/{chainDescriptor}/chainInfo | Get chain-specific staking summary +[**getChains**](#getChains) | **GET** /staking/chains | List staking supported chains +[**getDelegationById**](#getDelegationById) | **GET** /staking/positions/{id} | Get staking position details +[**getProviders**](#getProviders) | **GET** /staking/providers | List staking providers details +[**getSummary**](#getSummary) | **GET** /staking/positions/summary | Get staking summary details +[**getSummaryByVault**](#getSummaryByVault) | **GET** /staking/positions/summary/vaults | Get staking summary details by vault +[**split**](#split) | **POST** /staking/chains/{chainDescriptor}/split | Execute a Split operation on SOL/SOL_TEST stake account +[**stake**](#stake) | **POST** /staking/chains/{chainDescriptor}/stake | Initiate Stake Operation +[**unstake**](#unstake) | **POST** /staking/chains/{chainDescriptor}/unstake | Execute an Unstake operation +[**withdraw**](#withdraw) | **POST** /staking/chains/{chainDescriptor}/withdraw | Execute a Withdraw operation + + +# **approveTermsOfServiceByProviderId** +> approveTermsOfServiceByProviderId() + +Approve the terms of service of the staking provider. This must be called before performing a staking action for the first time with this provider. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, StakingApiApproveTermsOfServiceByProviderIdRequest } 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: StakingApiApproveTermsOfServiceByProviderIdRequest = { + // StakingProvider | The unique identifier of the staking provider + providerId: kiln, + // 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.staking.approveTermsOfServiceByProviderId(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 +------------- | ------------- | ------------- | ------------- + **providerId** | **StakingProvider** | The unique identifier of the staking provider | 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 + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | The terms of service have been successfully approved and is associated with 201 status code. | * 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) + +# **claimRewards** +> claimRewards(claimRewardsRequest, ) + +Perform a chain-specific Claim Rewards. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, StakingApiClaimRewardsRequest } 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: StakingApiClaimRewardsRequest = { + // ClaimRewardsRequest + claimRewardsRequest: param_value, + // 'MATIC' | 'SOL' | 'SOL_TEST' | The protocol identifier (e.g. \"MATIC\"/\"SOL\") to use + chainDescriptor: MATIC, + // 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.staking.claimRewards(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 +------------- | ------------- | ------------- | ------------- + **claimRewardsRequest** | **[ClaimRewardsRequest](../models/ClaimRewardsRequest.md)**| | + **chainDescriptor** | [**'MATIC' | 'SOL' | 'SOL_TEST'**]**Array<'MATIC' | 'SOL' | 'SOL_TEST'>** | The protocol identifier (e.g. \"MATIC\"/\"SOL\") to use | defaults to undefined + **idempotencyKey** | [**string**] | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | (optional) defaults to undefined + + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Claim Rewards action has been executed successfully on vault and is associated with 201 status code. | * 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) + +# **getAllDelegations** +> StakingGetAllDelegationsResponse getAllDelegations() + +Return detailed information on all staking positions, including the staked amount, rewards, status and more. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, StakingApiGetAllDelegationsRequest, StakingGetAllDelegationsResponse } 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: StakingApiGetAllDelegationsRequest = { + // ChainDescriptor | Use \"ETH\" / \"SOL\" / \"MATIC\" / \"STETH_ETH\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument. (optional) + chainDescriptor: SOL, +}; + +fireblocks.staking.getAllDelegations(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 +------------- | ------------- | ------------- | ------------- + **chainDescriptor** | **ChainDescriptor** | Use \"ETH\" / \"SOL\" / \"MATIC\" / \"STETH_ETH\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument. | (optional) defaults to undefined + + +### Return type + +**[StakingGetAllDelegationsResponse](../models/StakingGetAllDelegationsResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | An array of position data was returned successfully | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getChainInfo** +> ChainInfoResponse getChainInfo() + +Return chain-specific, staking-related information summary (e.g. epoch details, lockup durations, estimated rewards, etc.) + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, StakingApiGetChainInfoRequest, ChainInfoResponse } 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: StakingApiGetChainInfoRequest = { + // ChainDescriptor | The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\"/\"STETH_ETH\") to use + chainDescriptor: SOL, +}; + +fireblocks.staking.getChainInfo(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 +------------- | ------------- | ------------- | ------------- + **chainDescriptor** | **ChainDescriptor** | The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\"/\"STETH_ETH\") to use | defaults to undefined + + +### Return type + +**[ChainInfoResponse](../models/ChainInfoResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Chain specific info summary was returned successfully | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getChains** +> StakingGetChainsResponse getChains() + +Return an alphabetical list of supported chains. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, StakingGetChainsResponse } 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.staking.getChains(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 + +**[StakingGetChainsResponse](../models/StakingGetChainsResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | An array of supported chains was returned successfully | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getDelegationById** +> Delegation getDelegationById() + +Return detailed information on a staking position, including the staked amount, rewards, status and more. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, StakingApiGetDelegationByIdRequest, Delegation } 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: StakingApiGetDelegationByIdRequest = { + // string | The unique identifier of the staking position + id: 1fe3b61f-7e1f-4a19-aff0-4f0a524d44d7, +}; + +fireblocks.staking.getDelegationById(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 +------------- | ------------- | ------------- | ------------- + **id** | [**string**] | The unique identifier of the staking position | defaults to undefined + + +### Return type + +**[Delegation](../models/Delegation.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Position data was returned successfully | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getProviders** +> StakingGetProvidersResponse getProviders() + +Return information on all the available staking providers. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, StakingGetProvidersResponse } 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.staking.getProviders(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 + +**[StakingGetProvidersResponse](../models/StakingGetProvidersResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | An array of supported providers was returned successfully | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getSummary** +> DelegationSummary getSummary() + +Return a summary of all vaults, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, DelegationSummary } 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.staking.getSummary(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 + +**[DelegationSummary](../models/DelegationSummary.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A summary for all vaults were returned successfully | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getSummaryByVault** +> StakingGetSummaryByVaultResponse getSummaryByVault() + +Return a summary for each vault, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, StakingGetSummaryByVaultResponse } 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.staking.getSummaryByVault(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 + +**[StakingGetSummaryByVaultResponse](../models/StakingGetSummaryByVaultResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A summary for each vault were returned successfully | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **split** +> SplitResponse split(splitRequest, ) + +Perform a Solana Split stake account. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, StakingApiSplitRequest, SplitResponse } 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: StakingApiSplitRequest = { + // SplitRequest + splitRequest: param_value, + // 'SOL' | 'SOL_TEST' | The protocol identifier (e.g. \"SOL\"/\"SOL_TEST\") to use + chainDescriptor: SOL, + // 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.staking.split(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 +------------- | ------------- | ------------- | ------------- + **splitRequest** | **[SplitRequest](../models/SplitRequest.md)**| | + **chainDescriptor** | [**'SOL' | 'SOL_TEST'**]**Array<'SOL' | 'SOL_TEST'>** | The protocol identifier (e.g. \"SOL\"/\"SOL_TEST\") to use | defaults to undefined + **idempotencyKey** | [**string**] | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | (optional) defaults to undefined + + +### Return type + +**[SplitResponse](../models/SplitResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Split action has been executed successfully on vault and is associated with 201 status code. | * 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) + +# **stake** +> StakeResponse stake(stakeRequest, ) + +Perform a chain-specific Stake. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, StakingApiStakeRequest, StakeResponse } 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: StakingApiStakeRequest = { + // StakeRequest + stakeRequest: param_value, + // ChainDescriptor | The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\") to use + chainDescriptor: SOL, + // 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.staking.stake(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 +------------- | ------------- | ------------- | ------------- + **stakeRequest** | **[StakeRequest](../models/StakeRequest.md)**| | + **chainDescriptor** | **ChainDescriptor** | The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\") to use | defaults to undefined + **idempotencyKey** | [**string**] | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | (optional) defaults to undefined + + +### Return type + +**[StakeResponse](../models/StakeResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Stake action has been executed successfully on vault and is associated with 201 status code. | * 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) + +# **unstake** +> unstake(unstakeRequest, ) + +Execute an Unstake operation + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, StakingApiUnstakeRequest } 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: StakingApiUnstakeRequest = { + // UnstakeRequest + unstakeRequest: param_value, + // ChainDescriptor | The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\") to use + chainDescriptor: SOL, + // 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.staking.unstake(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 +------------- | ------------- | ------------- | ------------- + **unstakeRequest** | **[UnstakeRequest](../models/UnstakeRequest.md)**| | + **chainDescriptor** | **ChainDescriptor** | The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\") to use | defaults to undefined + **idempotencyKey** | [**string**] | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | (optional) defaults to undefined + + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Unstake action has been executed successfully on vault and is associated with 201 status code. | * 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) + +# **withdraw** +> withdraw(withdrawRequest, ) + +Perform a chain-specific Withdraw. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, StakingApiWithdrawRequest } 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: StakingApiWithdrawRequest = { + // WithdrawRequest + withdrawRequest: param_value, + // ChainDescriptor | The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\") to use + chainDescriptor: SOL, + // 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.staking.withdraw(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 +------------- | ------------- | ------------- | ------------- + **withdrawRequest** | **[WithdrawRequest](../models/WithdrawRequest.md)**| | + **chainDescriptor** | **ChainDescriptor** | The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\") to use | defaults to undefined + **idempotencyKey** | [**string**] | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | (optional) defaults to undefined + + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Withdraw action has been executed successfully on vault and is associated with 201 status code. | * 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) + + diff --git a/docs/apis/StakingBetaApi.md b/docs/apis/StakingBetaApi.md deleted file mode 100644 index d078d12..0000000 --- a/docs/apis/StakingBetaApi.md +++ /dev/null @@ -1,537 +0,0 @@ -# StakingBetaApi - -All URIs are relative to https://developers.fireblocks.com/reference/ - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**approveTermsOfServiceByProviderId**](#approveTermsOfServiceByProviderId) | **POST** /staking/providers/{providerId}/approveTermsOfService | -[**executeAction**](#executeAction) | **POST** /staking/chains/{chainDescriptor}/{actionId} | -[**getAllDelegations**](#getAllDelegations) | **GET** /staking/positions | -[**getChainInfo**](#getChainInfo) | **GET** /staking/chains/{chainDescriptor}/chainInfo | -[**getChains**](#getChains) | **GET** /staking/chains | -[**getDelegationById**](#getDelegationById) | **GET** /staking/positions/{id} | -[**getProviders**](#getProviders) | **GET** /staking/providers | -[**getSummary**](#getSummary) | **GET** /staking/positions/summary | -[**getSummaryByVault**](#getSummaryByVault) | **GET** /staking/positions/summary/vaults | - - -# **approveTermsOfServiceByProviderId** -> object approveTermsOfServiceByProviderId() - -Approve the terms of service of the staking provider. This must be called before performing a staking action for the first time with this provider. - -### Example - - -```typescript -import { readFileSync } from 'fs'; -import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, StakingBetaApiApproveTermsOfServiceByProviderIdRequest, object } 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: StakingBetaApiApproveTermsOfServiceByProviderIdRequest = { - // 'kiln' | 'figment' | The unique identifier of the staking provider - providerId: providerId_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.stakingBeta.approveTermsOfServiceByProviderId(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 -------------- | ------------- | ------------- | ------------- - **providerId** | [**'kiln' | 'figment'**]**Array<'kiln' | 'figment'>** | The unique identifier of the staking provider | 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 - -**object** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | The terms of service have been successfully approved and is associated with 201 status code. | - | - -[[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) - -# **executeAction** -> ExecuteActionResponse executeAction(executeActionRequest, ) - -Perform a chain-specific staking action (e.g. stake, unstake, withdraw). - -### Example - - -```typescript -import { readFileSync } from 'fs'; -import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, StakingBetaApiExecuteActionRequest, ExecuteActionResponse } from '@fireblocks/ts-sdk'; - -// Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = 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: StakingBetaApiExecuteActionRequest = { - // ExecuteActionRequest - executeActionRequest: {"vaultAccountId":"22","providerId":"kiln","stakeAmount":"32","chainDescriptor":"ETH","txNote":"stake request id CcaHc2L43ZWjwCHART3oZoJvHLAe9hzT2DJNUpBzoTN1 of 32ETH created on 02.04.23","feeLevel":"MEDIUM"}, - // 'ETH' | 'SOL' | 'ETH_TEST3' | 'SOL_TEST' | The protocol identifier (e.g. \"ETH\"/\"SOL\") to use - chainDescriptor: chainDescriptor_example, - // 'stake' | 'unstake' | 'withdraw' | The operation that can be executed on a vault/position - actionId: actionId_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.stakingBeta.executeAction(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 -------------- | ------------- | ------------- | ------------- - **executeActionRequest** | **[ExecuteActionRequest](../models/ExecuteActionRequest.md)**| | - **chainDescriptor** | [**'ETH' | 'SOL' | 'ETH_TEST3' | 'SOL_TEST'**]**Array<'ETH' | 'SOL' | 'ETH_TEST3' | 'SOL_TEST'>** | The protocol identifier (e.g. \"ETH\"/\"SOL\") to use | defaults to undefined - **actionId** | [**'stake' | 'unstake' | 'withdraw'**]**Array<'stake' | 'unstake' | 'withdraw'>** | The operation that can be executed on a vault/position | 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 - -**[ExecuteActionResponse](../models/ExecuteActionResponse.md)** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | A chain-specific action has been executed successfully on vault/position and is associated with 201 status code. | - | - -[[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) - -# **getAllDelegations** -> StakingGetAllDelegationsResponse getAllDelegations() - -Return detailed information on all staking positions, including the staked amount, rewards, status and more. - -### Example - - -```typescript -import { readFileSync } from 'fs'; -import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, StakingBetaApiGetAllDelegationsRequest, StakingGetAllDelegationsResponse } 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: StakingBetaApiGetAllDelegationsRequest = { - // string | Use \"ETH\" / \"SOL\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument. (optional) - chainDescriptor: chainDescriptor_example, -}; - -fireblocks.stakingBeta.getAllDelegations(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 -------------- | ------------- | ------------- | ------------- - **chainDescriptor** | [**string**] | Use \"ETH\" / \"SOL\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument. | (optional) defaults to undefined - - -### Return type - -**[StakingGetAllDelegationsResponse](../models/StakingGetAllDelegationsResponse.md)** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | An array of position data was returned successfully | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - -# **getChainInfo** -> ChainInfoResponseDto getChainInfo() - -Return chain-specific, staking-related information summary (e.g. epoch details, lockup durations, estimated rewards, etc.) - -### Example - - -```typescript -import { readFileSync } from 'fs'; -import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, StakingBetaApiGetChainInfoRequest, ChainInfoResponseDto } from '@fireblocks/ts-sdk'; - -// Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = 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: StakingBetaApiGetChainInfoRequest = { - // 'ETH' | 'SOL' | 'ETH_TEST3' | 'SOL_TEST' | The protocol identifier (e.g. \"ETH\"/\"SOL\") to use - chainDescriptor: chainDescriptor_example, -}; - -fireblocks.stakingBeta.getChainInfo(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 -------------- | ------------- | ------------- | ------------- - **chainDescriptor** | [**'ETH' | 'SOL' | 'ETH_TEST3' | 'SOL_TEST'**]**Array<'ETH' | 'SOL' | 'ETH_TEST3' | 'SOL_TEST'>** | The protocol identifier (e.g. \"ETH\"/\"SOL\") to use | defaults to undefined - - -### Return type - -**[ChainInfoResponseDto](../models/ChainInfoResponseDto.md)** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Chain specific info summary was returned successfully | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - -# **getChains** -> StakingGetChainsResponse getChains() - -Return an alphabetical list of supported chains. - -### Example - - -```typescript -import { readFileSync } from 'fs'; -import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, StakingGetChainsResponse } 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.stakingBeta.getChains(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 - -**[StakingGetChainsResponse](../models/StakingGetChainsResponse.md)** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | | - | - -[[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) - -# **getDelegationById** -> DelegationDto getDelegationById() - -Return detailed information on a staking position, including the staked amount, rewards, status and more. - -### Example - - -```typescript -import { readFileSync } from 'fs'; -import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, StakingBetaApiGetDelegationByIdRequest, DelegationDto } from '@fireblocks/ts-sdk'; - -// Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = 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: StakingBetaApiGetDelegationByIdRequest = { - // string | The unique identifier of the staking position - id: id_example, -}; - -fireblocks.stakingBeta.getDelegationById(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 -------------- | ------------- | ------------- | ------------- - **id** | [**string**] | The unique identifier of the staking position | defaults to undefined - - -### Return type - -**[DelegationDto](../models/DelegationDto.md)** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Position data was returned successfully | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - -# **getProviders** -> StakingGetProvidersResponse getProviders() - -Return information on all the available staking providers. - -### Example - - -```typescript -import { readFileSync } from 'fs'; -import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, StakingGetProvidersResponse } 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.stakingBeta.getProviders(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 - -**[StakingGetProvidersResponse](../models/StakingGetProvidersResponse.md)** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | An array of supported providers was returned successfully | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - -# **getSummary** -> DelegationSummaryDto getSummary() - -Return a summary of all vaults, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. - -### Example - - -```typescript -import { readFileSync } from 'fs'; -import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, DelegationSummaryDto } from '@fireblocks/ts-sdk'; - -// Set the environment variables for authentication -process.env.FIREBLOCKS_BASE_PATH = 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.stakingBeta.getSummary(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 - -**[DelegationSummaryDto](../models/DelegationSummaryDto.md)** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A summary for all vaults were returned successfully | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - -# **getSummaryByVault** -> StakingGetSummaryByVaultResponse getSummaryByVault() - -Return a summary for each vault, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. - -### Example - - -```typescript -import { readFileSync } from 'fs'; -import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; -import type { FireblocksResponse, StakingGetSummaryByVaultResponse } 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.stakingBeta.getSummaryByVault(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 - -**[StakingGetSummaryByVaultResponse](../models/StakingGetSummaryByVaultResponse.md)** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A summary for each vault were returned successfully | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - diff --git a/docs/apis/WebhooksV2BetaApi.md b/docs/apis/WebhooksV2BetaApi.md new file mode 100644 index 0000000..e31d734 --- /dev/null +++ b/docs/apis/WebhooksV2BetaApi.md @@ -0,0 +1,476 @@ +# WebhooksV2BetaApi + +All URIs are relative to https://developers.fireblocks.com/reference/ + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createWebhook**](#createWebhook) | **POST** /webhooks | Create new webhook +[**deleteWebhook**](#deleteWebhook) | **DELETE** /webhooks/{webhookId} | Delete webhook +[**getNotification**](#getNotification) | **GET** /webhooks/{webhookId}/notifications/{notificationId} | Get notification by id +[**getNotifications**](#getNotifications) | **GET** /webhooks/{webhookId}/notifications | Get all notifications by webhook id +[**getWebhook**](#getWebhook) | **GET** /webhooks/{webhookId} | Get webhook by id +[**getWebhooks**](#getWebhooks) | **GET** /webhooks | Get all webhooks +[**updateWebhook**](#updateWebhook) | **PATCH** /webhooks/{webhookId} | Update webhook + + +# **createWebhook** +> Webhook createWebhook(createWebhookRequest) + +Creates a new webhook, which will be triggered on the specified events **Note:** These endpoints are currently in beta and might be subject to changes. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, WebhooksV2BetaApiCreateWebhookRequest, Webhook } 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: WebhooksV2BetaApiCreateWebhookRequest = { + // CreateWebhookRequest + createWebhookRequest: param_value, + // string | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + idempotencyKey: idempotencyKey_example, +}; + +fireblocks.webhooksV2Beta.createWebhook(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 +------------- | ------------- | ------------- | ------------- + **createWebhookRequest** | **[CreateWebhookRequest](../models/CreateWebhookRequest.md)**| | + **idempotencyKey** | [**string**] | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | (optional) defaults to undefined + + +### Return type + +**[Webhook](../models/Webhook.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | created new webhook successfully | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **deleteWebhook** +> Webhook deleteWebhook() + +Delete a webhook by its id **Note:** These endpoints are currently in beta and might be subject to changes. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, WebhooksV2BetaApiDeleteWebhookRequest, Webhook } 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: WebhooksV2BetaApiDeleteWebhookRequest = { + // string | The unique identifier of the webhook + webhookId: 44fcead0-7053-4831-a53a-df7fb90d440f, +}; + +fireblocks.webhooksV2Beta.deleteWebhook(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 +------------- | ------------- | ------------- | ------------- + **webhookId** | [**string**] | The unique identifier of the webhook | defaults to undefined + + +### Return type + +**[Webhook](../models/Webhook.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Deleted webhook object | * 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) + +# **getNotification** +> NotificationWithData getNotification() + +Get notification by id **Note:** These endpoints are currently in beta and might be subject to changes. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, WebhooksV2BetaApiGetNotificationRequest, NotificationWithData } 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: WebhooksV2BetaApiGetNotificationRequest = { + // string | The ID of the webhook to fetch + webhookId: webhookId_example, + // string | The ID of the notification to fetch + notificationId: notificationId_example, + // boolean | Include the data of the notification (optional) + includeData: true, +}; + +fireblocks.webhooksV2Beta.getNotification(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 +------------- | ------------- | ------------- | ------------- + **webhookId** | [**string**] | The ID of the webhook to fetch | defaults to undefined + **notificationId** | [**string**] | The ID of the notification to fetch | defaults to undefined + **includeData** | [**boolean**] | Include the data of the notification | (optional) defaults to undefined + + +### Return type + +**[NotificationWithData](../models/NotificationWithData.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 -
| + +[[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) + +# **getNotifications** +> NotificationPaginatedResponse getNotifications() + +Get all notifications by webhook id (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, WebhooksV2BetaApiGetNotificationsRequest, NotificationPaginatedResponse } 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: WebhooksV2BetaApiGetNotificationsRequest = { + // string + webhookId: 44fcead0-7053-4831-a53a-df7fb90d440f, + // 'ASC' | 'DESC' | ASC / DESC ordering (default DESC) (optional) + order: ASC, + // string | Cursor of the required page (optional) + pageCursor: pageCursor_example, + // number | Maximum number of items in the page (optional) + pageSize: 10, + // string | sort by start date (optional) + createdStartDate: 2024-09-24T09:14:38.356Z, + // string | sort by end date (optional) + createdEndDate: 2024-09-24T09:14:38.356Z, + // Array | Filter by Notification statues (optional) + statuses: COMPLETED, + // Array | Filter by Notification eventTypes (optional) + eventTypes: ["transaction.created","transaction.status.updated"], + // string | Filter by resourceId (optional) + resourceId: resourceId_example, +}; + +fireblocks.webhooksV2Beta.getNotifications(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 +------------- | ------------- | ------------- | ------------- + **webhookId** | [**string**] | | defaults to undefined + **order** | [**'ASC' | 'DESC'**]**Array<'ASC' | 'DESC'>** | ASC / DESC ordering (default DESC) | (optional) defaults to 'DESC' + **pageCursor** | [**string**] | Cursor of the required page | (optional) defaults to undefined + **pageSize** | [**number**] | Maximum number of items in the page | (optional) defaults to 100 + **createdStartDate** | [**string**] | sort by start date | (optional) defaults to undefined + **createdEndDate** | [**string**] | sort by end date | (optional) defaults to undefined + **statuses** | **Array<NotificationStatus>** | Filter by Notification statues | (optional) defaults to undefined + **eventTypes** | **Array<WebhookEvent>** | Filter by Notification eventTypes | (optional) defaults to undefined + **resourceId** | [**string**] | Filter by resourceId | (optional) defaults to undefined + + +### Return type + +**[NotificationPaginatedResponse](../models/NotificationPaginatedResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A paginated response containing NotificationExternalDTO objects | * 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) + +# **getWebhook** +> Webhook getWebhook() + +Retrieve a webhook by its id **Note:** These endpoints are currently in beta and might be subject to changes. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, WebhooksV2BetaApiGetWebhookRequest, Webhook } 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: WebhooksV2BetaApiGetWebhookRequest = { + // string | The unique identifier of the webhook + webhookId: 44fcead0-7053-4831-a53a-df7fb90d440f, +}; + +fireblocks.webhooksV2Beta.getWebhook(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 +------------- | ------------- | ------------- | ------------- + **webhookId** | [**string**] | The unique identifier of the webhook | defaults to undefined + + +### Return type + +**[Webhook](../models/Webhook.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A webhook object | * 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) + +# **getWebhooks** +> WebhookPaginatedResponse getWebhooks() + +Get all webhooks (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, WebhooksV2BetaApiGetWebhooksRequest, WebhookPaginatedResponse } 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: WebhooksV2BetaApiGetWebhooksRequest = { + // 'ASC' | 'DESC' | ASC / DESC ordering (default DESC) (optional) + order: ASC, + // string | Cursor of the required page (optional) + pageCursor: pageCursor_example, + // number | Maximum number of items in the page (optional) + pageSize: 10, +}; + +fireblocks.webhooksV2Beta.getWebhooks(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 +------------- | ------------- | ------------- | ------------- + **order** | [**'ASC' | 'DESC'**]**Array<'ASC' | 'DESC'>** | ASC / DESC ordering (default DESC) | (optional) defaults to 'DESC' + **pageCursor** | [**string**] | Cursor of the required page | (optional) defaults to undefined + **pageSize** | [**number**] | Maximum number of items in the page | (optional) defaults to 10 + + +### Return type + +**[WebhookPaginatedResponse](../models/WebhookPaginatedResponse.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A paginated response containing WebhookDto objects | * 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) + +# **updateWebhook** +> Webhook updateWebhook(updateWebhookRequest, ) + +Update a webhook by its id **Note:** These endpoints are currently in beta and might be subject to changes. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, WebhooksV2BetaApiUpdateWebhookRequest, Webhook } 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: WebhooksV2BetaApiUpdateWebhookRequest = { + // UpdateWebhookRequest + updateWebhookRequest: param_value, + // string | The unique identifier of the webhook + webhookId: 44fcead0-7053-4831-a53a-df7fb90d440f, +}; + +fireblocks.webhooksV2Beta.updateWebhook(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 +------------- | ------------- | ------------- | ------------- + **updateWebhookRequest** | **[UpdateWebhookRequest](../models/UpdateWebhookRequest.md)**| | + **webhookId** | [**string**] | The unique identifier of the webhook | defaults to undefined + + +### Return type + +**[Webhook](../models/Webhook.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Updated webhook object | * 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) + + diff --git a/docs/models/AddCosignerRequest.md b/docs/models/AddCosignerRequest.md new file mode 100644 index 0000000..32c85fe --- /dev/null +++ b/docs/models/AddCosignerRequest.md @@ -0,0 +1,14 @@ +# AddCosignerRequest + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**apiKeyId** | **string** | The id of the API key to be paired with the cosigner | [default to undefined]| +|**name** | **string** | The name of the cosigner | [default to undefined]| +|**existingCosigner** | **boolean** | Whether the cosigner already exists in another workspace | [optional] [default to false]| + + + + +[[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/AddCosignerResponse.md b/docs/models/AddCosignerResponse.md new file mode 100644 index 0000000..d258569 --- /dev/null +++ b/docs/models/AddCosignerResponse.md @@ -0,0 +1,15 @@ +# AddCosignerResponse + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**apiKeyId** | **string** | The id of the API key to be paired with the cosigner | [default to undefined]| +|**name** | **string** | The name of the cosigner | [default to undefined]| +|**pendingCosignerId** | **string** | The unique identifier of a pending cosigner | [default to undefined]| +|**existingCosigner** | **boolean** | Whether the cosigner already exists in another workspace | [optional] [default to false]| + + + + +[[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/AdditionalInfoDto.md b/docs/models/AdditionalInfo.md similarity index 97% rename from docs/models/AdditionalInfoDto.md rename to docs/models/AdditionalInfo.md index ed9aee8..1bf905a 100644 --- a/docs/models/AdditionalInfoDto.md +++ b/docs/models/AdditionalInfo.md @@ -1,4 +1,4 @@ -# AdditionalInfoDto +# AdditionalInfo ## Properties diff --git a/docs/models/ApiKey.md b/docs/models/ApiKey.md index 7efe15f..166788b 100644 --- a/docs/models/ApiKey.md +++ b/docs/models/ApiKey.md @@ -5,7 +5,8 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| |**id** | **string** | The unique identifier of the API key | [default to undefined]| -|**lastSeen** | **string** | The date the API key was last seen | [default to undefined]| +|**lastSeen** | **string** | The date the API key was last seen | [optional] [default to undefined]| +|**callbackHandler** | [**CallbackHandler**](CallbackHandler.md) | | [optional] [default to undefined]| diff --git a/docs/models/AssetBadRequestErrorResponse.md b/docs/models/AssetBadRequestErrorResponse.md index 4e343f7..f1c9f5e 100644 --- a/docs/models/AssetBadRequestErrorResponse.md +++ b/docs/models/AssetBadRequestErrorResponse.md @@ -5,7 +5,7 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| |**message** | **string** | Bad request error code | [default to undefined]| -|**code** | **string** | Error code | [default to undefined]| +|**code** | **number** | Error code | [default to undefined]| diff --git a/docs/models/AssetClassBeta.md b/docs/models/AssetClassBeta.md new file mode 100644 index 0000000..9dad006 --- /dev/null +++ b/docs/models/AssetClassBeta.md @@ -0,0 +1,18 @@ +# AssetClassBeta + +## Enum + + +* `Native` (value: `'NATIVE'`) + +* `Ft` (value: `'FT'`) + +* `Fiat` (value: `'FIAT'`) + +* `Nft` (value: `'NFT'`) + +* `Sft` (value: `'SFT'`) + + + +[[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/AssetConflictErrorResponse.md b/docs/models/AssetConflictErrorResponse.md index 5fb919c..16fe0b2 100644 --- a/docs/models/AssetConflictErrorResponse.md +++ b/docs/models/AssetConflictErrorResponse.md @@ -5,7 +5,7 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| |**message** | **string** | Conflict error code | [default to undefined]| -|**code** | **string** | Error code | [default to undefined]| +|**code** | **number** | Error code | [default to undefined]| diff --git a/docs/models/AssetForbiddenErrorResponse.md b/docs/models/AssetForbiddenErrorResponse.md index b9bba74..ada1ddd 100644 --- a/docs/models/AssetForbiddenErrorResponse.md +++ b/docs/models/AssetForbiddenErrorResponse.md @@ -5,7 +5,7 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| |**message** | **string** | Forbidden error code | [default to undefined]| -|**code** | **string** | Error code | [default to undefined]| +|**code** | **number** | Error code | [default to undefined]| diff --git a/docs/models/AssetInternalServerErrorResponse.md b/docs/models/AssetInternalServerErrorResponse.md index a8dd056..9babc02 100644 --- a/docs/models/AssetInternalServerErrorResponse.md +++ b/docs/models/AssetInternalServerErrorResponse.md @@ -5,7 +5,7 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| |**message** | **string** | Internal server error code | [default to undefined]| -|**code** | **string** | Error code | [default to undefined]| +|**code** | **number** | Error code | [default to undefined]| diff --git a/docs/models/AssetMedia.md b/docs/models/AssetMedia.md new file mode 100644 index 0000000..96c5d7d --- /dev/null +++ b/docs/models/AssetMedia.md @@ -0,0 +1,23 @@ +# AssetMedia + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**url** | **string** | Media URL | [default to undefined]| +|**type** | **string** | Media type | [default to undefined]| +|**attributes** | [**AssetMediaAttributes**](AssetMediaAttributes.md) | | [optional] [default to undefined]| + + +## Enum: AssetMediaTypeEnum + + +* `Svgxml` (value: `'image/svg+xml'`) + +* `Png` (value: `'image/png'`) + + + + + +[[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/ExecuteActionResponse.md b/docs/models/AssetMediaAttributes.md similarity index 72% rename from docs/models/ExecuteActionResponse.md rename to docs/models/AssetMediaAttributes.md index bdf7ff4..1282485 100644 --- a/docs/models/ExecuteActionResponse.md +++ b/docs/models/AssetMediaAttributes.md @@ -1,10 +1,10 @@ -# ExecuteActionResponse +# AssetMediaAttributes ## Properties |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| -|**id** | **string** | The unique identifier of the staking position | [default to undefined]| +|**monochrome** | **boolean** | Monochrome flag | [optional] [default to undefined]| diff --git a/docs/models/AssetResponseMetadata.md b/docs/models/AssetMetadata.md similarity index 89% rename from docs/models/AssetResponseMetadata.md rename to docs/models/AssetMetadata.md index 80535e9..490bc7f 100644 --- a/docs/models/AssetResponseMetadata.md +++ b/docs/models/AssetMetadata.md @@ -1,4 +1,4 @@ -# AssetResponseMetadata +# AssetMetadata ## Properties @@ -8,7 +8,7 @@ |**deprecated** | **boolean** | Is asset deprecated | [default to undefined]| -## Enum: AssetResponseMetadataScopeEnum +## Enum: AssetMetadataScopeEnum * `Global` (value: `'Global'`) diff --git a/docs/models/AssetMetadataBeta.md b/docs/models/AssetMetadataBeta.md new file mode 100644 index 0000000..ce49474 --- /dev/null +++ b/docs/models/AssetMetadataBeta.md @@ -0,0 +1,26 @@ +# AssetMetadataBeta + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**scope** | **string** | The scope of the asset | [default to undefined]| +|**deprecated** | **boolean** | Is asset deprecated | [default to undefined]| +|**verified** | **boolean** | Is asset verified by Fireblocks | [default to undefined]| +|**deprecationReferralId** | **string** | New asset ID replacement | [optional] [default to undefined]| +|**website** | **string** | Vendor’s website | [optional] [default to undefined]| +|**media** | [**Array<AssetMedia>**](AssetMedia.md) | Asset’s media | [optional] [default to undefined]| + + +## Enum: AssetMetadataBetaScopeEnum + + +* `Global` (value: `'Global'`) + +* `Local` (value: `'Local'`) + + + + + +[[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/AssetNotFoundErrorResponse.md b/docs/models/AssetNotFoundErrorResponse.md index 2b1730a..2fe1fc3 100644 --- a/docs/models/AssetNotFoundErrorResponse.md +++ b/docs/models/AssetNotFoundErrorResponse.md @@ -5,7 +5,7 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| |**message** | **string** | Not found error code | [default to undefined]| -|**code** | **string** | Error code | [default to undefined]| +|**code** | **number** | Error code | [default to undefined]| diff --git a/docs/models/AssetResponseOnchain.md b/docs/models/AssetOnchain.md similarity index 96% rename from docs/models/AssetResponseOnchain.md rename to docs/models/AssetOnchain.md index 249df37..5273487 100644 --- a/docs/models/AssetResponseOnchain.md +++ b/docs/models/AssetOnchain.md @@ -1,4 +1,4 @@ -# AssetResponseOnchain +# AssetOnchain ## Properties diff --git a/docs/models/AssetOnchainBeta.md b/docs/models/AssetOnchainBeta.md new file mode 100644 index 0000000..293811c --- /dev/null +++ b/docs/models/AssetOnchainBeta.md @@ -0,0 +1,16 @@ +# AssetOnchainBeta + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**symbol** | **string** | The asset symbol | [default to undefined]| +|**name** | **string** | The asset name | [default to undefined]| +|**decimals** | **number** | Number of decimals | [default to undefined]| +|**address** | **string** | The asset address | [optional] [default to undefined]| +|**standards** | **Array<string>** | Supported standards | [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/AssetPriceForbiddenErrorResponse.md b/docs/models/AssetPriceForbiddenErrorResponse.md index d724b88..d027630 100644 --- a/docs/models/AssetPriceForbiddenErrorResponse.md +++ b/docs/models/AssetPriceForbiddenErrorResponse.md @@ -5,7 +5,7 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| |**message** | **string** | Forbidden error message | [default to undefined]| -|**code** | **string** | Error code | [default to undefined]| +|**code** | **number** | Error code | [default to undefined]| diff --git a/docs/models/AssetPriceNotFoundErrorResponse.md b/docs/models/AssetPriceNotFoundErrorResponse.md index 58589f6..512f9f9 100644 --- a/docs/models/AssetPriceNotFoundErrorResponse.md +++ b/docs/models/AssetPriceNotFoundErrorResponse.md @@ -5,7 +5,7 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| |**message** | **string** | Not found error message | [default to undefined]| -|**code** | **string** | Error code | [default to undefined]| +|**code** | **number** | Error code | [default to undefined]| diff --git a/docs/models/AssetResponse.md b/docs/models/AssetResponse.md index cdb3f25..55ff687 100644 --- a/docs/models/AssetResponse.md +++ b/docs/models/AssetResponse.md @@ -6,8 +6,8 @@ |------------ | ------------- | ------------- | -------------| |**legacyId** | **string** | | [default to undefined]| |**assetClass** | **string** | | [default to undefined]| -|**onchain** | [**AssetResponseOnchain**](AssetResponseOnchain.md) | | [default to undefined]| -|**metadata** | [**AssetResponseMetadata**](AssetResponseMetadata.md) | | [default to undefined]| +|**onchain** | [**AssetOnchain**](AssetOnchain.md) | | [default to undefined]| +|**metadata** | [**AssetMetadata**](AssetMetadata.md) | | [default to undefined]| ## Enum: AssetResponseAssetClassEnum diff --git a/docs/models/AssetResponseBeta.md b/docs/models/AssetResponseBeta.md new file mode 100644 index 0000000..5eb5a59 --- /dev/null +++ b/docs/models/AssetResponseBeta.md @@ -0,0 +1,19 @@ +# AssetResponseBeta + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**id** | **string** | The ID of the asset | [default to undefined]| +|**legacyId** | **string** | The Legacy ID of the asset | [default to undefined]| +|**assetClass** | [**AssetClassBeta**](AssetClassBeta.md) | | [default to undefined]| +|**metadata** | [**AssetMetadataBeta**](AssetMetadataBeta.md) | | [default to undefined]| +|**blockchainId** | **string** | The ID of the asset\'s blockchain | [optional] [default to undefined]| +|**displayName** | **string** | Asset\'s display name | [optional] [default to undefined]| +|**displaySymbol** | **string** | Asset\'s display symbol | [optional] [default to undefined]| +|**onchain** | [**AssetOnchainBeta**](AssetOnchainBeta.md) | | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/AuditLogData.md b/docs/models/AuditLogData.md index 53d5f20..778dd7c 100644 --- a/docs/models/AuditLogData.md +++ b/docs/models/AuditLogData.md @@ -5,8 +5,8 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| |**id** | **string** | The unique identifier of the audit log | [optional] [default to undefined]| -|**timestamp** | **string** | The timestamp of the audit log | [optional] [default to undefined]| -|**createdAt** | **string** | The timestamp of the audit log creation | [optional] [default to undefined]| +|**timestamp** | **number** | The timestamp of the audit log | [optional] [default to undefined]| +|**createdAt** | **number** | The timestamp of the audit log creation | [optional] [default to undefined]| |**user** | **string** | The user who performed the action | [optional] [default to undefined]| |**subject** | **string** | The subject of the action | [optional] [default to undefined]| |**event** | **string** | The event that was performed | [optional] [default to undefined]| diff --git a/docs/models/BlockchainExplorer.md b/docs/models/BlockchainExplorer.md new file mode 100644 index 0000000..09479a0 --- /dev/null +++ b/docs/models/BlockchainExplorer.md @@ -0,0 +1,15 @@ +# BlockchainExplorer + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**base** | **string** | Explorer base url | [default to undefined]| +|**address** | **string** | Explorer address url | [optional] [default to undefined]| +|**tx** | **string** | Explorer transaction url | [optional] [default to undefined]| +|**token** | **string** | Explorer token url | [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/BlockchainMedia.md b/docs/models/BlockchainMedia.md new file mode 100644 index 0000000..78483e5 --- /dev/null +++ b/docs/models/BlockchainMedia.md @@ -0,0 +1,22 @@ +# BlockchainMedia + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**url** | **string** | Media URL | [default to undefined]| +|**type** | **string** | Media type | [default to undefined]| + + +## Enum: BlockchainMediaTypeEnum + + +* `Svgxml` (value: `'image/svg+xml'`) + +* `Png` (value: `'image/png'`) + + + + + +[[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/BlockchainMetadata.md b/docs/models/BlockchainMetadata.md new file mode 100644 index 0000000..e9a3f25 --- /dev/null +++ b/docs/models/BlockchainMetadata.md @@ -0,0 +1,24 @@ +# BlockchainMetadata + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**scope** | **string** | Is blockchain listed on all workspaces? Global or Local | [default to undefined]| +|**deprecated** | **boolean** | Is blockchain deprecated | [default to undefined]| +|**media** | [**Array<BlockchainMedia>**](BlockchainMedia.md) | Blockchain’s media | [optional] [default to undefined]| +|**explorer** | [**BlockchainExplorer**](BlockchainExplorer.md) | | [optional] [default to undefined]| + + +## Enum: BlockchainMetadataScopeEnum + + +* `Global` (value: `'Global'`) + +* `Local` (value: `'Local'`) + + + + + +[[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/BlockchainNotFoundErrorResponse.md b/docs/models/BlockchainNotFoundErrorResponse.md new file mode 100644 index 0000000..6fe48f7 --- /dev/null +++ b/docs/models/BlockchainNotFoundErrorResponse.md @@ -0,0 +1,13 @@ +# BlockchainNotFoundErrorResponse + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**message** | **string** | Not found error code | [default to undefined]| +|**code** | **number** | Error code | [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/BlockchainOnchain.md b/docs/models/BlockchainOnchain.md new file mode 100644 index 0000000..15199f8 --- /dev/null +++ b/docs/models/BlockchainOnchain.md @@ -0,0 +1,24 @@ +# BlockchainOnchain + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**protocol** | **string** | The protocol of the blockchain | [default to undefined]| +|**test** | **boolean** | Is test blockchain | [default to undefined]| +|**signingAlgo** | **string** | Signing alghorithm | [default to undefined]| +|**chainId** | **string** | Network/chain ID | [optional] [default to undefined]| + + +## Enum: BlockchainOnchainSigningAlgoEnum + + +* `EcdsaSecp256K1` (value: `'ECDSA_SECP256K1'`) + +* `EddsaEd25519` (value: `'EDDSA_ED25519'`) + + + + + +[[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/BlockchainResponse.md b/docs/models/BlockchainResponse.md new file mode 100644 index 0000000..e22f255 --- /dev/null +++ b/docs/models/BlockchainResponse.md @@ -0,0 +1,17 @@ +# BlockchainResponse + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**id** | **string** | The ID of the blockchain | [default to undefined]| +|**legacyId** | **string** | The old blockchain ID representation of the blockchain | [default to undefined]| +|**displayName** | **string** | The name of the blockchain | [default to undefined]| +|**nativeAssetId** | **string** | Native asset ID of this blockchain | [default to undefined]| +|**onchain** | [**BlockchainOnchain**](BlockchainOnchain.md) | | [default to undefined]| +|**metadata** | [**BlockchainMetadata**](BlockchainMetadata.md) | | [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/CallbackHandler.md b/docs/models/CallbackHandler.md new file mode 100644 index 0000000..662b96a --- /dev/null +++ b/docs/models/CallbackHandler.md @@ -0,0 +1,14 @@ +# CallbackHandler + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**url** | **string** | The callback handler\'s URL | [default to undefined]| +|**publicKey** | **string** | The callback handler\'s public key | [optional] [default to undefined]| +|**certPublicKeyHash** | **string** | A hashed representation of the public key of the callback handler\'s certificate | [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/CallbackHandlerRequest.md b/docs/models/CallbackHandlerRequest.md new file mode 100644 index 0000000..d56657c --- /dev/null +++ b/docs/models/CallbackHandlerRequest.md @@ -0,0 +1,14 @@ +# CallbackHandlerRequest + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**url** | **string** | The callback handler\'s URL | [default to undefined]| +|**publicKey** | **string** | The callback handler\'s public key | [optional] [default to undefined]| +|**cert** | **string** | The callback handler\'s certificate | [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/ChainDescriptor.md b/docs/models/ChainDescriptor.md new file mode 100644 index 0000000..2fef04b --- /dev/null +++ b/docs/models/ChainDescriptor.md @@ -0,0 +1,18 @@ +# ChainDescriptor + +## Enum + + +* `Eth` (value: `'ETH'`) + +* `Sol` (value: `'SOL'`) + +* `Matic` (value: `'MATIC'`) + +* `EthTest6` (value: `'ETH_TEST6'`) + +* `SolTest` (value: `'SOL_TEST'`) + + + +[[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/ChainInfoResponseDto.md b/docs/models/ChainInfoResponse.md similarity index 78% rename from docs/models/ChainInfoResponseDto.md rename to docs/models/ChainInfoResponse.md index 3caa73d..0e0e509 100644 --- a/docs/models/ChainInfoResponseDto.md +++ b/docs/models/ChainInfoResponse.md @@ -1,4 +1,4 @@ -# ChainInfoResponseDto +# ChainInfoResponse ## Properties @@ -8,7 +8,7 @@ |**currentEpoch** | **number** | The current epoch number of the blockchain network. | [default to undefined]| |**epochElapsed** | **number** | The percentage of time that has elapsed within the current epoch, represented as a decimal value between 0 and 1. | [default to undefined]| |**epochDuration** | **number** | The total duration in milliseconds of a single epoch. | [default to undefined]| -|**additionalInfo** | [**AdditionalInfoDto**](AdditionalInfoDto.md) | Additional information related to the blockchain. This may include extra details about the blockchain network. | [default to undefined]| +|**additionalInfo** | [**AdditionalInfo**](AdditionalInfo.md) | | [default to undefined]| diff --git a/docs/models/ClaimRewardsRequest.md b/docs/models/ClaimRewardsRequest.md new file mode 100644 index 0000000..e3a85c6 --- /dev/null +++ b/docs/models/ClaimRewardsRequest.md @@ -0,0 +1,15 @@ +# ClaimRewardsRequest + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**id** | **string** | id of position to withdraw rewards from | [default to undefined]| +|**fee** | **string** | Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required. | [optional] [default to undefined]| +|**feeLevel** | [**FeeLevel**](FeeLevel.md) | | [optional] [default to undefined]| +|**txNote** | **string** | The note to associate with the transactions. | [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/Cosigner.md b/docs/models/Cosigner.md index f71ad80..d75c154 100644 --- a/docs/models/Cosigner.md +++ b/docs/models/Cosigner.md @@ -7,6 +7,23 @@ |**archived** | **boolean** | Whether the cosigner is archived | [default to undefined]| |**id** | **string** | The unique identifier of the cosigner | [default to undefined]| |**name** | **string** | The name of the cosigner | [optional] [default to undefined]| +|**type** | **string** | The type of the cosigner | [optional] [default to undefined]| +|**version** | [**Version**](Version.md) | | [optional] [default to undefined]| + + +## Enum: CosignerTypeEnum + + +* `Sandbox` (value: `'SANDBOX'`) + +* `Sgx` (value: `'SGX'`) + +* `GcpConfspace` (value: `'GCP-CONFSPACE'`) + +* `AwsNitro` (value: `'AWS-NITRO'`) + +* `Plain` (value: `'PLAIN'`) + diff --git a/docs/models/CreateWebhookRequest.md b/docs/models/CreateWebhookRequest.md new file mode 100644 index 0000000..3f1b6a1 --- /dev/null +++ b/docs/models/CreateWebhookRequest.md @@ -0,0 +1,15 @@ +# CreateWebhookRequest + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**url** | **string** | The url of the webhook where notifications will be sent. URL must be valid, unique and https. | [default to undefined]| +|**description** | **string** | description of the webhook. should not contain special characters. | [default to undefined]| +|**events** | [**Array<WebhookEvent>**](WebhookEvent.md) | event types the webhook will subscribe to | [default to undefined]| +|**enabled** | **boolean** | The status of the webhook. If false, the webhook will not receive notifications. | [optional] [default to true]| + + + + +[[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/DelegationDto.md b/docs/models/Delegation.md similarity index 56% rename from docs/models/DelegationDto.md rename to docs/models/Delegation.md index 0a2d188..b6f6cd6 100644 --- a/docs/models/DelegationDto.md +++ b/docs/models/Delegation.md @@ -1,4 +1,4 @@ -# DelegationDto +# Delegation ## Properties @@ -12,16 +12,16 @@ |**amount** | **string** | Amount of tokens to stake, measured in the staked asset unit. | [default to undefined]| |**rewardsAmount** | **string** | The amount staked in the position, measured in the staked asset unit. | [default to undefined]| |**dateCreated** | **string** | When was the request made (ISO Date). | [default to undefined]| +|**dateUpdated** | **string** | When has the position last changed (ISO Date). | [default to undefined]| |**status** | **string** | The current status. | [default to undefined]| -|**relatedTransactions** | [**Array<RelatedTransactionDto>**](RelatedTransactionDto.md) | An array of transaction objects related to this position. Each object includes a \'txId\' representing the transaction ID and a \'completed\' boolean indicating if the transaction was completed. | [default to undefined]| +|**relatedTransactions** | [**Array<RelatedTransaction>**](RelatedTransaction.md) | An array of transaction objects related to this position. Each object includes a \'txId\' representing the transaction ID and a \'completed\' boolean indicating if the transaction was completed. | [default to undefined]| |**validatorAddress** | **string** | The destination address of the staking transaction. | [default to undefined]| -|**providerId** | **string** | The unique identifier of the staking provider | [default to undefined]| +|**providerId** | [**StakingProvider**](StakingProvider.md) | | [default to undefined]| |**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]| +|**blockchainPositionInfo** | [**SolanaBlockchainData**](SolanaBlockchainData.md) | | [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]| +|**relatedRequests** | [**Array<RelatedRequest>**](RelatedRequest.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/DelegationSummaryDto.md b/docs/models/DelegationSummary.md similarity index 98% rename from docs/models/DelegationSummaryDto.md rename to docs/models/DelegationSummary.md index df2394f..10dae09 100644 --- a/docs/models/DelegationSummaryDto.md +++ b/docs/models/DelegationSummary.md @@ -1,4 +1,4 @@ -# DelegationSummaryDto +# DelegationSummary ## Properties diff --git a/docs/models/ExecuteActionRequest.md b/docs/models/ExecuteActionRequest.md deleted file mode 100644 index 6286514..0000000 --- a/docs/models/ExecuteActionRequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# ExecuteActionRequest - -## Properties - -|Name | Type | Description | Notes| -|------------ | ------------- | ------------- | -------------| -|**vaultAccountId** | **string** | The source vault account to stake from | [default to undefined]| -|**providerId** | **string** | The ID of the provider | [default to undefined]| -|**stakeAmount** | **string** | Amount of tokens to stake | [default to undefined]| -|**id** | **string** | id of position to withdraw | [default to undefined]| -|**txNote** | **string** | The note to associate with the transactions. | [optional] [default to undefined]| -|**fee** | **string** | Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required. | [optional] [default to undefined]| -|**feeLevel** | **string** | Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only one of fee/feeLevel is required. | [optional] [default to undefined]| -|**amount** | **string** | The number of tokens to unstake. This optional field is applicable only for liquid staking and allows for a partial unstake of the position. If not provided, the entire position will be unstaked by default. | [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/FeeLevel.md b/docs/models/FeeLevel.md new file mode 100644 index 0000000..023d7fb --- /dev/null +++ b/docs/models/FeeLevel.md @@ -0,0 +1,14 @@ +# FeeLevel + +## Enum + + +* `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/GetMpcKeysResponse.md b/docs/models/GetMpcKeysResponse.md new file mode 100644 index 0000000..a531d4b --- /dev/null +++ b/docs/models/GetMpcKeysResponse.md @@ -0,0 +1,13 @@ +# GetMpcKeysResponse + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**tenantId** | **string** | The workspace id of the keys | [default to undefined]| +|**keys** | [**Array<MpcKey>**](MpcKey.md) | The keys that are associated with the workspace | [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/ListAssetsResponse.md b/docs/models/ListAssetsResponse.md new file mode 100644 index 0000000..82c843e --- /dev/null +++ b/docs/models/ListAssetsResponse.md @@ -0,0 +1,13 @@ +# ListAssetsResponse + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**data** | [**Array<AssetResponseBeta>**](AssetResponseBeta.md) | The data of the current page | [default to undefined]| +|**next** | **string** | Cursor to the next page | [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/ListBlockchainsResponse.md b/docs/models/ListBlockchainsResponse.md new file mode 100644 index 0000000..1ed9385 --- /dev/null +++ b/docs/models/ListBlockchainsResponse.md @@ -0,0 +1,13 @@ +# ListBlockchainsResponse + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**data** | [**Array<BlockchainResponse>**](BlockchainResponse.md) | The data of the current page | [default to undefined]| +|**next** | **string** | Cursor to the next page | [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/MpcKey.md b/docs/models/MpcKey.md new file mode 100644 index 0000000..aee9871 --- /dev/null +++ b/docs/models/MpcKey.md @@ -0,0 +1,16 @@ +# MpcKey + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**keyId** | **string** | | [default to undefined]| +|**userId** | **string** | The user id that owns the key | [default to undefined]| +|**algorithm** | **number** | The algorithm of the key | [default to undefined]| +|**players** | [**Array<Players>**](Players.md) | The players that are associated with the key | [default to undefined]| +|**lastPreprocessedIndex** | **number** | The last index used on this key | [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/Notification.md b/docs/models/Notification.md new file mode 100644 index 0000000..867fdd3 --- /dev/null +++ b/docs/models/Notification.md @@ -0,0 +1,19 @@ +# Notification + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**id** | **string** | The id of the Notification | [default to undefined]| +|**createdAt** | **string** | The creation date of the notification | [default to undefined]| +|**updatedAt** | **string** | The date when the notification was updated | [default to undefined]| +|**status** | [**NotificationStatus**](NotificationStatus.md) | | [default to undefined]| +|**eventType** | [**WebhookEvent**](WebhookEvent.md) | | [default to undefined]| +|**eventVersion** | **number** | The event version of the Notification | [default to undefined]| +|**resourceId** | **string** | The resource id of the event which the Notification is listen to | [optional] [default to undefined]| +|**attempts** | **Array<string>** | The attempts related to Notification | [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/NotificationPaginatedResponse.md b/docs/models/NotificationPaginatedResponse.md new file mode 100644 index 0000000..c0b7cf5 --- /dev/null +++ b/docs/models/NotificationPaginatedResponse.md @@ -0,0 +1,13 @@ +# NotificationPaginatedResponse + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**data** | [**Array<Notification>**](Notification.md) | The data of the current page | [default to undefined]| +|**next** | **string** | The ID of the next page | [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/NotificationStatus.md b/docs/models/NotificationStatus.md new file mode 100644 index 0000000..7b0c78f --- /dev/null +++ b/docs/models/NotificationStatus.md @@ -0,0 +1,14 @@ +# NotificationStatus + +## Enum + + +* `Completed` (value: `'COMPLETED'`) + +* `Failed` (value: `'FAILED'`) + +* `InProgress` (value: `'IN_PROGRESS'`) + + + +[[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/NotificationWithData.md b/docs/models/NotificationWithData.md new file mode 100644 index 0000000..a47765e --- /dev/null +++ b/docs/models/NotificationWithData.md @@ -0,0 +1,20 @@ +# NotificationWithData + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**id** | **string** | | [default to undefined]| +|**createdAt** | **string** | The creation date of the notification | [default to undefined]| +|**updatedAt** | **string** | The date when the notification was updated | [default to undefined]| +|**status** | [**NotificationStatus**](NotificationStatus.md) | | [default to undefined]| +|**eventType** | [**WebhookEvent**](WebhookEvent.md) | | [default to undefined]| +|**eventVersion** | **number** | The event version which the Notification is listen to | [default to undefined]| +|**attempts** | **Array<string>** | The attempts related to Notification | [default to undefined]| +|**resourceId** | **string** | The resource id of the event which the Notification is listen to | [optional] [default to undefined]| +|**data** | **object** | notification data | [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/PairApiKeyRequest.md b/docs/models/PairApiKeyRequest.md new file mode 100644 index 0000000..f3fd739 --- /dev/null +++ b/docs/models/PairApiKeyRequest.md @@ -0,0 +1,12 @@ +# PairApiKeyRequest + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**callbackHandler** | [**CallbackHandlerRequest**](CallbackHandlerRequest.md) | | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/PairApiKeyResponse.md b/docs/models/PairApiKeyResponse.md new file mode 100644 index 0000000..6c2cbf5 --- /dev/null +++ b/docs/models/PairApiKeyResponse.md @@ -0,0 +1,13 @@ +# PairApiKeyResponse + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**id** | **string** | The unique identifier of the API key | [default to undefined]| +|**callbackHandler** | [**CallbackHandlerRequest**](CallbackHandlerRequest.md) | | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/Players.md b/docs/models/Players.md new file mode 100644 index 0000000..87f29bf --- /dev/null +++ b/docs/models/Players.md @@ -0,0 +1,22 @@ +# Players + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**id** | **string** | id of the player | [default to undefined]| +|**type** | **string** | Type of the player | [default to undefined]| + + +## Enum: PlayersTypeEnum + + +* `Mobile` (value: `'MOBILE'`) + +* `Cloud` (value: `'CLOUD'`) + + + + + +[[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/ProviderDto.md b/docs/models/Provider.md similarity index 57% rename from docs/models/ProviderDto.md rename to docs/models/Provider.md index 9874614..33266b8 100644 --- a/docs/models/ProviderDto.md +++ b/docs/models/Provider.md @@ -1,4 +1,4 @@ -# ProviderDto +# Provider ## Properties @@ -6,10 +6,12 @@ |------------ | ------------- | ------------- | -------------| |**id** | **string** | The ID of the provider | [default to undefined]| |**providerName** | **string** | Name of the provider | [default to undefined]| -|**validators** | [**Array<ValidatorDto>**](ValidatorDto.md) | An array of objects that includes chain descriptors and the corresponding fee percentages for validators supported by the provider | [default to undefined]| -|**iconUrl** | **string** | URL to the validator\'s icon | [default to undefined]| -|**termsOfServiceUrl** | **string** | URL to the terms of service | [default to undefined]| +|**validators** | [**Array<Validator>**](Validator.md) | An array of objects that includes chain descriptors and the corresponding fee percentages for validators supported by the provider | [default to undefined]| |**isTermsOfServiceApproved** | **boolean** | Indicates whether the terms of service are approved | [default to undefined]| +|**isLiquidStaking** | **boolean** | Is the provider a liquid staking provider | [default to undefined]| +|**iconUrl** | **string** | URL to the validator\'s icon | [optional] [default to undefined]| +|**termsOfServiceUrl** | **string** | URL to the terms of service | [optional] [default to undefined]| +|**isPrivate** | **boolean** | Is the provider private, i.e created by the user | [optional] [default to undefined]| diff --git a/docs/models/PublicKeyInformation.md b/docs/models/PublicKeyInformation.md index 9515963..21a787a 100644 --- a/docs/models/PublicKeyInformation.md +++ b/docs/models/PublicKeyInformation.md @@ -4,9 +4,20 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| -|**algorithm** | **string** | | [optional] [default to undefined]| -|**derivationPath** | **Array<number>** | | [optional] [default to undefined]| -|**publicKey** | **string** | | [optional] [default to undefined]| +|**algorithm** | **string** | Elliptic Curve | [optional] [default to undefined]| +|**derivationPath** | **Array<number>** | BIP44 derivation path | [optional] [default to undefined]| +|**publicKey** | **string** | Compressed/Uncompressed public key value in hex representation | [optional] [default to undefined]| + + +## Enum: PublicKeyInformationAlgorithmEnum + + +* `EcdsaSecp256K1` (value: `'MPC_ECDSA_SECP256K1'`) + +* `EcdsaSecp256R1` (value: `'MPC_ECDSA_SECP256R1'`) + +* `EddsaEd25519` (value: `'MPC_EDDSA_ED25519'`) + diff --git a/docs/models/RelatedRequestDto.md b/docs/models/RelatedRequest.md similarity index 93% rename from docs/models/RelatedRequestDto.md rename to docs/models/RelatedRequest.md index e7dc2e1..bdfb654 100644 --- a/docs/models/RelatedRequestDto.md +++ b/docs/models/RelatedRequest.md @@ -1,4 +1,4 @@ -# RelatedRequestDto +# RelatedRequest ## Properties @@ -10,7 +10,7 @@ |**txId** | **string** | The transaction ID of the ongoing request | [optional] [default to undefined]| -## Enum: RelatedRequestDtoStatusEnum +## Enum: RelatedRequestStatusEnum * `Deactivating` (value: `'deactivating'`) diff --git a/docs/models/RelatedTransactionDto.md b/docs/models/RelatedTransaction.md similarity index 95% rename from docs/models/RelatedTransactionDto.md rename to docs/models/RelatedTransaction.md index e929e2f..6608421 100644 --- a/docs/models/RelatedTransactionDto.md +++ b/docs/models/RelatedTransaction.md @@ -1,4 +1,4 @@ -# RelatedTransactionDto +# RelatedTransaction ## Properties diff --git a/docs/models/SolanaBlockchainDataDto.md b/docs/models/SolanaBlockchainData.md similarity index 68% rename from docs/models/SolanaBlockchainDataDto.md rename to docs/models/SolanaBlockchainData.md index 2c49c38..3065847 100644 --- a/docs/models/SolanaBlockchainDataDto.md +++ b/docs/models/SolanaBlockchainData.md @@ -1,10 +1,11 @@ -# SolanaBlockchainDataDto +# SolanaBlockchainData ## Properties |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| |**stakeAccountAddress** | **string** | The stake account address matching the stakeAccountId. | [default to undefined]| +|**stakeAccountDerivationChangeValue** | **number** | The value of the change level in the BIP44 path which was used to derive the stake account address | [default to undefined]| diff --git a/docs/models/SplitRequest.md b/docs/models/SplitRequest.md new file mode 100644 index 0000000..03162e5 --- /dev/null +++ b/docs/models/SplitRequest.md @@ -0,0 +1,16 @@ +# SplitRequest + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**id** | **string** | id of position to split | [default to undefined]| +|**amount** | **string** | Amount of tokens to be transferred to the new stake account. | [default to undefined]| +|**fee** | **string** | Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required. | [optional] [default to undefined]| +|**feeLevel** | [**FeeLevel**](FeeLevel.md) | | [optional] [default to undefined]| +|**txNote** | **string** | The note to associate with the transactions. | [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/SplitResponse.md b/docs/models/SplitResponse.md new file mode 100644 index 0000000..47d78e1 --- /dev/null +++ b/docs/models/SplitResponse.md @@ -0,0 +1,12 @@ +# SplitResponse + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**id** | **string** | The unique identifier of the new staking position | [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/StakeRequestDto.md b/docs/models/StakeRequest.md similarity index 73% rename from docs/models/StakeRequestDto.md rename to docs/models/StakeRequest.md index 6698764..8b8f3e0 100644 --- a/docs/models/StakeRequestDto.md +++ b/docs/models/StakeRequest.md @@ -1,15 +1,15 @@ -# StakeRequestDto +# StakeRequest ## Properties |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| |**vaultAccountId** | **string** | The source vault account to stake from | [default to undefined]| -|**providerId** | **string** | The ID of the provider | [default to undefined]| +|**providerId** | [**StakingProvider**](StakingProvider.md) | | [default to undefined]| |**stakeAmount** | **string** | Amount of tokens to stake | [default to undefined]| |**txNote** | **string** | The note to associate with the stake transactions. | [optional] [default to undefined]| |**fee** | **string** | Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required. | [optional] [default to undefined]| -|**feeLevel** | **string** | Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only one of fee/feeLevel is required. | [optional] [default to undefined]| +|**feeLevel** | [**FeeLevel**](FeeLevel.md) | | [optional] [default to undefined]| diff --git a/docs/models/StakeResponseDto.md b/docs/models/StakeResponse.md similarity index 95% rename from docs/models/StakeResponseDto.md rename to docs/models/StakeResponse.md index 9a1a5b1..7b77607 100644 --- a/docs/models/StakeResponseDto.md +++ b/docs/models/StakeResponse.md @@ -1,4 +1,4 @@ -# StakeResponseDto +# StakeResponse ## Properties diff --git a/docs/models/StakingProvider.md b/docs/models/StakingProvider.md new file mode 100644 index 0000000..a034c5a --- /dev/null +++ b/docs/models/StakingProvider.md @@ -0,0 +1,14 @@ +# StakingProvider + +## Enum + + +* `Kiln` (value: `'kiln'`) + +* `Figment` (value: `'figment'`) + +* `Lido` (value: `'lido'`) + + + +[[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/Status.md b/docs/models/Status.md new file mode 100644 index 0000000..2257bf1 --- /dev/null +++ b/docs/models/Status.md @@ -0,0 +1,39 @@ +# Status + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**status** | **string** | The status of the command | [default to undefined]| +|**type** | **string** | The type of the command | [default to undefined]| + + +## Enum: StatusStatusEnum + + +* `WaitingForApproval` (value: `'WAITING_FOR_APPROVAL'`) + +* `Approved` (value: `'APPROVED'`) + +* `Cancelled` (value: `'CANCELLED'`) + +* `Rejected` (value: `'REJECTED'`) + +* `Completed` (value: `'COMPLETED'`) + + + +## Enum: StatusTypeEnum + + +* `PairApiKey` (value: `'PAIR_API_KEY'`) + +* `UpdateCallbackHandler` (value: `'UPDATE_CALLBACK_HANDLER'`) + +* `UnpairApiKey` (value: `'UNPAIR_API_KEY'`) + + + + + +[[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/TokenInfoNotFoundErrorResponse.md b/docs/models/TokenInfoNotFoundErrorResponse.md new file mode 100644 index 0000000..1e22365 --- /dev/null +++ b/docs/models/TokenInfoNotFoundErrorResponse.md @@ -0,0 +1,13 @@ +# TokenInfoNotFoundErrorResponse + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**message** | **string** | Not found error code | [default to undefined]| +|**code** | **number** | Error code | [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/TransactionOperation.md b/docs/models/TransactionOperation.md index 4e56dfd..6c1829f 100644 --- a/docs/models/TransactionOperation.md +++ b/docs/models/TransactionOperation.md @@ -9,6 +9,8 @@ * `ContractCall` (value: `'CONTRACT_CALL'`) +* `ProgramCall` (value: `'PROGRAM_CALL'`) + * `Mint` (value: `'MINT'`) * `Raw` (value: `'RAW'`) diff --git a/docs/models/TransactionReceiptResponse.md b/docs/models/TransactionReceiptResponse.md new file mode 100644 index 0000000..024974d --- /dev/null +++ b/docs/models/TransactionReceiptResponse.md @@ -0,0 +1,25 @@ +# TransactionReceiptResponse + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**blockHash** | **string** | The block hash | [default to undefined]| +|**blockNumber** | **number** | The block number | [default to undefined]| +|**cumulativeGasUsed** | **number** | The cumulative gas used in the transaction | [default to undefined]| +|**effectiveGasPrice** | **number** | The effective gas price | [default to undefined]| +|**from** | **string** | Sender address | [default to undefined]| +|**gasUsed** | **number** | Gas used by the transaction | [default to undefined]| +|**logs** | [**Array<TxLog>**](TxLog.md) | Array of transaction logs | [default to undefined]| +|**logsBloom** | **string** | Logs bloom filter | [default to undefined]| +|**status** | **number** | Transaction status (1 for success, 0 for failure) | [default to undefined]| +|**transactionHash** | **string** | The transaction hash | [default to undefined]| +|**transactionIndex** | **number** | Transaction index in the block | [default to undefined]| +|**type** | **string** | Type of transaction | [default to undefined]| +|**contractAddress** | **string** | The address of deployed contract | [optional] [default to undefined]| +|**to** | **string** | Recipient address | [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/TransferPeerPathType.md b/docs/models/TransferPeerPathType.md index d210563..3a16b77 100644 --- a/docs/models/TransferPeerPathType.md +++ b/docs/models/TransferPeerPathType.md @@ -27,6 +27,8 @@ * `EndUserWallet` (value: `'END_USER_WALLET'`) +* `ProgramCall` (value: `'PROGRAM_CALL'`) + [[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/TxLog.md b/docs/models/TxLog.md new file mode 100644 index 0000000..dfdb326 --- /dev/null +++ b/docs/models/TxLog.md @@ -0,0 +1,20 @@ +# TxLog + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**address** | **string** | The log address | [default to undefined]| +|**topics** | **Array<string>** | Array of log topics | [default to undefined]| +|**data** | **string** | The log data | [default to undefined]| +|**blockNumber** | **number** | Block number where the log occurred | [default to undefined]| +|**transactionHash** | **string** | Transaction hash associated with the log | [default to undefined]| +|**transactionIndex** | **number** | Transaction index in the block | [default to undefined]| +|**blockHash** | **string** | The hash of the block | [default to undefined]| +|**logIndex** | **number** | Log index in the block | [default to undefined]| +|**removed** | **boolean** | Indicates if the log was removed | [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/UnstakeRequestDto.md b/docs/models/UnstakeRequest.md similarity index 81% rename from docs/models/UnstakeRequestDto.md rename to docs/models/UnstakeRequest.md index 30a4755..b874af0 100644 --- a/docs/models/UnstakeRequestDto.md +++ b/docs/models/UnstakeRequest.md @@ -1,4 +1,4 @@ -# UnstakeRequestDto +# UnstakeRequest ## Properties @@ -6,7 +6,7 @@ |------------ | ------------- | ------------- | -------------| |**id** | **string** | id of position to unstake | [default to undefined]| |**fee** | **string** | Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required. | [optional] [default to undefined]| -|**feeLevel** | **string** | Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only one of fee/feeLevel is required. | [optional] [default to undefined]| +|**feeLevel** | [**FeeLevel**](FeeLevel.md) | | [optional] [default to undefined]| |**txNote** | **string** | The note to associate with the transactions. | [optional] [default to undefined]| |**amount** | **string** | The number of tokens to unstake. This optional field is applicable only for liquid staking and allows for a partial unstake of the position. If not provided, the entire position will be unstaked by default. | [optional] [default to undefined]| diff --git a/docs/models/UpdateCallbackHandlerRequest.md b/docs/models/UpdateCallbackHandlerRequest.md new file mode 100644 index 0000000..981ed4e --- /dev/null +++ b/docs/models/UpdateCallbackHandlerRequest.md @@ -0,0 +1,12 @@ +# UpdateCallbackHandlerRequest + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**callbackHandler** | [**CallbackHandlerRequest**](CallbackHandlerRequest.md) | | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/UpdateCallbackHandlerResponse.md b/docs/models/UpdateCallbackHandlerResponse.md new file mode 100644 index 0000000..ab7f4db --- /dev/null +++ b/docs/models/UpdateCallbackHandlerResponse.md @@ -0,0 +1,13 @@ +# UpdateCallbackHandlerResponse + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**id** | **string** | The unique identifier of the API key | [default to undefined]| +|**callbackHandler** | [**CallbackHandlerRequest**](CallbackHandlerRequest.md) | | [optional] [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/models/UpdateWebhookRequest.md b/docs/models/UpdateWebhookRequest.md new file mode 100644 index 0000000..a3c466f --- /dev/null +++ b/docs/models/UpdateWebhookRequest.md @@ -0,0 +1,15 @@ +# UpdateWebhookRequest + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**url** | **string** | The url of the webhook where notifications will be sent. URL must be valid, unique and https. | [optional] [default to undefined]| +|**description** | **string** | description of the webhook of what it is used for.should not contain special characters. | [optional] [default to undefined]| +|**events** | [**Array<WebhookEvent>**](WebhookEvent.md) | The events that the webhook will be subscribed to | [optional] [default to undefined]| +|**enabled** | **boolean** | The status of the webhook | [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/ValidatorDto.md b/docs/models/Validator.md similarity index 81% rename from docs/models/ValidatorDto.md rename to docs/models/Validator.md index b203930..8567d18 100644 --- a/docs/models/ValidatorDto.md +++ b/docs/models/Validator.md @@ -1,4 +1,4 @@ -# ValidatorDto +# Validator ## Properties @@ -6,6 +6,7 @@ |------------ | ------------- | ------------- | -------------| |**chainDescriptor** | **string** | The protocol identifier (e.g. \"ETH\"/\"SOL\") of the validator | [default to undefined]| |**feePercent** | **number** | The service fee as a percentage out of the earned rewards | [default to undefined]| +|**isPrivate** | **boolean** | Is the validator private, i.e created by the user | [optional] [default to undefined]| diff --git a/docs/models/Version.md b/docs/models/Version.md new file mode 100644 index 0000000..220a34f --- /dev/null +++ b/docs/models/Version.md @@ -0,0 +1,12 @@ +# Version + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**hash** | **string** | The version hash of the cosigner | [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/Webhook.md b/docs/models/Webhook.md new file mode 100644 index 0000000..30fdae9 --- /dev/null +++ b/docs/models/Webhook.md @@ -0,0 +1,27 @@ +# Webhook + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**id** | **string** | The id of the webhook | [optional] [default to undefined]| +|**url** | **string** | The url of the webhook where notifications will be sent. Must be a valid URL and https. | [optional] [default to undefined]| +|**description** | **string** | description of the webhook of what it is used for | [optional] [default to undefined]| +|**events** | [**Array<WebhookEvent>**](WebhookEvent.md) | The events that the webhook will be subscribed to | [optional] [default to undefined]| +|**status** | **string** | The status of the webhook | [optional] [default to undefined]| +|**createdAt** | **string** | The date and time the webhook was created | [optional] [default to undefined]| +|**updatedAt** | **string** | The date and time the webhook was last updated | [optional] [default to undefined]| + + +## Enum: WebhookStatusEnum + + +* `Disabled` (value: `'DISABLED'`) + +* `Enabled` (value: `'ENABLED'`) + + + + + +[[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/WebhookEvent.md b/docs/models/WebhookEvent.md new file mode 100644 index 0000000..13c4a6e --- /dev/null +++ b/docs/models/WebhookEvent.md @@ -0,0 +1,78 @@ +# WebhookEvent + +## Enum + + +* `TransactionCreated` (value: `'transaction.created'`) + +* `TransactionStatusUpdated` (value: `'transaction.status.updated'`) + +* `TransactionApprovalStatusUpdated` (value: `'transaction.approval_status.updated'`) + +* `ExternalWalletAssetAdded` (value: `'external_wallet.asset.added'`) + +* `InternalWalletAssetAdded` (value: `'internal_wallet.asset.added'`) + +* `InternalWalletAssetRemoved` (value: `'internal_wallet.asset.removed'`) + +* `ContractWalletAssetAdded` (value: `'contract_wallet.asset.added'`) + +* `ContractWalletAssetRemoved` (value: `'contract_wallet.asset.removed'`) + +* `VaultAccountCreated` (value: `'vault_account.created'`) + +* `VaultAccountAssetAdded` (value: `'vault_account.asset.added'`) + +* `VaultAccountAssetBalanceUpdated` (value: `'vault_account.asset.balance_updated'`) + +* `VaultAccountNftBalanceUpdated` (value: `'vault_account.nft.balance_updated'`) + +* `EmbeddedWalletAssetAdded` (value: `'embedded_wallet.asset.added'`) + +* `EmbeddedWalletAssetBalanceUpdated` (value: `'embedded_wallet.asset.balance_updated'`) + +* `ExchangeAccountAdded` (value: `'exchange_account.added'`) + +* `FiatAccountAdded` (value: `'fiat_account.added'`) + +* `TicketCreated` (value: `'ticket.created'`) + +* `TicketSubmitted` (value: `'ticket.submitted'`) + +* `TicketExpired` (value: `'ticket.expired'`) + +* `TicketCanceled` (value: `'ticket.canceled'`) + +* `TicketFulfilled` (value: `'ticket.fulfilled'`) + +* `TicketCounterpartyAdded` (value: `'ticket.counterparty.added'`) + +* `TicketCounterpartyExternalIdSet` (value: `'ticket.counterparty_external_id.set'`) + +* `TicketNoteAdded` (value: `'ticket.note.added'`) + +* `TicketExpiredInSet` (value: `'ticket.expired_in.set'`) + +* `TicketExpiredAtSet` (value: `'ticket.expired_at.set'`) + +* `TicketTermAdded` (value: `'ticket.term.added'`) + +* `TicketTermUpdated` (value: `'ticket.term.updated'`) + +* `TicketTermDeleted` (value: `'ticket.term.deleted'`) + +* `TicketTermFunded` (value: `'ticket.term.funded'`) + +* `TicketTermManuallyFunded` (value: `'ticket.term.manually_funded'`) + +* `TicketTermFundingCanceled` (value: `'ticket.term.funding_canceled'`) + +* `TicketTermFundingFailed` (value: `'ticket.term.funding_failed'`) + +* `TicketTermFundingCompleted` (value: `'ticket.term.funding_completed'`) + +* `TicketTermTransactionStatusChanged` (value: `'ticket.term.transaction_status_changed'`) + + + +[[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/WebhookPaginatedResponse.md b/docs/models/WebhookPaginatedResponse.md new file mode 100644 index 0000000..f0e1c98 --- /dev/null +++ b/docs/models/WebhookPaginatedResponse.md @@ -0,0 +1,13 @@ +# WebhookPaginatedResponse + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**data** | [**Array<Webhook>**](Webhook.md) | The data of the current page | [default to undefined]| +|**next** | **string** | The ID of the next page | [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/WithdrawRequestDto.md b/docs/models/WithdrawRequest.md similarity index 76% rename from docs/models/WithdrawRequestDto.md rename to docs/models/WithdrawRequest.md index 4324e78..583d310 100644 --- a/docs/models/WithdrawRequestDto.md +++ b/docs/models/WithdrawRequest.md @@ -1,4 +1,4 @@ -# WithdrawRequestDto +# WithdrawRequest ## Properties @@ -6,7 +6,7 @@ |------------ | ------------- | ------------- | -------------| |**id** | **string** | id of position to withdraw | [default to undefined]| |**fee** | **string** | Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required. | [optional] [default to undefined]| -|**feeLevel** | **string** | Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only one of fee/feeLevel is required. | [optional] [default to undefined]| +|**feeLevel** | [**FeeLevel**](FeeLevel.md) | | [optional] [default to undefined]| |**txNote** | **string** | The note to associate with the transactions. | [optional] [default to undefined]| diff --git a/models/add-cosigner-request.ts b/models/add-cosigner-request.ts new file mode 100644 index 0000000..b38a750 --- /dev/null +++ b/models/add-cosigner-request.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface AddCosignerRequest + */ +export interface AddCosignerRequest { + /** + * The id of the API key to be paired with the cosigner + * @type {string} + * @memberof AddCosignerRequest + */ + 'apiKeyId': string; + /** + * The name of the cosigner + * @type {string} + * @memberof AddCosignerRequest + */ + 'name': string; + /** + * Whether the cosigner already exists in another workspace + * @type {boolean} + * @memberof AddCosignerRequest + */ + 'existingCosigner'?: boolean; +} + diff --git a/models/add-cosigner-response.ts b/models/add-cosigner-response.ts new file mode 100644 index 0000000..8b9e62b --- /dev/null +++ b/models/add-cosigner-response.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface AddCosignerResponse + */ +export interface AddCosignerResponse { + /** + * The id of the API key to be paired with the cosigner + * @type {string} + * @memberof AddCosignerResponse + */ + 'apiKeyId': string; + /** + * The name of the cosigner + * @type {string} + * @memberof AddCosignerResponse + */ + 'name': string; + /** + * The unique identifier of a pending cosigner + * @type {string} + * @memberof AddCosignerResponse + */ + 'pendingCosignerId': string; + /** + * Whether the cosigner already exists in another workspace + * @type {boolean} + * @memberof AddCosignerResponse + */ + 'existingCosigner'?: boolean; +} + diff --git a/models/additional-info-dto.ts b/models/additional-info.ts similarity index 78% rename from models/additional-info-dto.ts rename to models/additional-info.ts index 9c6d33a..a6950a1 100644 --- a/models/additional-info-dto.ts +++ b/models/additional-info.ts @@ -15,27 +15,27 @@ /** - * + * Additional information related to the blockchain. This may include extra details about the blockchain network. * @export - * @interface AdditionalInfoDto + * @interface AdditionalInfo */ -export interface AdditionalInfoDto { +export interface AdditionalInfo { /** * The estimated annual reward rate for the blockchain, represented as a decimal percentage value. * @type {number} - * @memberof AdditionalInfoDto + * @memberof AdditionalInfo */ 'estimatedAnnualReward': number; /** * The duration of the lockup period for certain actions on the blockchain, measured in milliseconds. * @type {number} - * @memberof AdditionalInfoDto + * @memberof AdditionalInfo */ 'lockupPeriod': number; /** * The duration of the activation period for certain actions on the blockchain, measured in milliseconds. * @type {number} - * @memberof AdditionalInfoDto + * @memberof AdditionalInfo */ 'activationPeriod': number; } diff --git a/models/api-key.ts b/models/api-key.ts index 97ef947..8b387b3 100644 --- a/models/api-key.ts +++ b/models/api-key.ts @@ -13,6 +13,9 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { CallbackHandler } from './callback-handler'; /** * @@ -31,6 +34,12 @@ export interface ApiKey { * @type {string} * @memberof ApiKey */ - 'lastSeen': string; + 'lastSeen'?: string; + /** + * + * @type {CallbackHandler} + * @memberof ApiKey + */ + 'callbackHandler'?: CallbackHandler; } diff --git a/models/asset-bad-request-error-response.ts b/models/asset-bad-request-error-response.ts index dd0b22b..f771dac 100644 --- a/models/asset-bad-request-error-response.ts +++ b/models/asset-bad-request-error-response.ts @@ -28,9 +28,9 @@ export interface AssetBadRequestErrorResponse { 'message': string; /** * Error code - * @type {string} + * @type {number} * @memberof AssetBadRequestErrorResponse */ - 'code': string; + 'code': number; } diff --git a/models/asset-class-beta.ts b/models/asset-class-beta.ts new file mode 100644 index 0000000..4a9c1cb --- /dev/null +++ b/models/asset-class-beta.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const AssetClassBeta = { + Native: 'NATIVE', + Ft: 'FT', + Fiat: 'FIAT', + Nft: 'NFT', + Sft: 'SFT' +} as const; + +export type AssetClassBeta = typeof AssetClassBeta[keyof typeof AssetClassBeta]; + + + diff --git a/models/asset-conflict-error-response.ts b/models/asset-conflict-error-response.ts index c0b287a..2551268 100644 --- a/models/asset-conflict-error-response.ts +++ b/models/asset-conflict-error-response.ts @@ -28,9 +28,9 @@ export interface AssetConflictErrorResponse { 'message': string; /** * Error code - * @type {string} + * @type {number} * @memberof AssetConflictErrorResponse */ - 'code': string; + 'code': number; } diff --git a/models/asset-forbidden-error-response.ts b/models/asset-forbidden-error-response.ts index e658edf..b1a8a5b 100644 --- a/models/asset-forbidden-error-response.ts +++ b/models/asset-forbidden-error-response.ts @@ -28,9 +28,9 @@ export interface AssetForbiddenErrorResponse { 'message': string; /** * Error code - * @type {string} + * @type {number} * @memberof AssetForbiddenErrorResponse */ - 'code': string; + 'code': number; } diff --git a/models/asset-internal-server-error-response.ts b/models/asset-internal-server-error-response.ts index 4b0ef60..882aa64 100644 --- a/models/asset-internal-server-error-response.ts +++ b/models/asset-internal-server-error-response.ts @@ -28,9 +28,9 @@ export interface AssetInternalServerErrorResponse { 'message': string; /** * Error code - * @type {string} + * @type {number} * @memberof AssetInternalServerErrorResponse */ - 'code': string; + 'code': number; } diff --git a/models/asset-media-attributes.ts b/models/asset-media-attributes.ts new file mode 100644 index 0000000..4f3e4ec --- /dev/null +++ b/models/asset-media-attributes.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. + */ + + + +/** + * Media attributes + * @export + * @interface AssetMediaAttributes + */ +export interface AssetMediaAttributes { + /** + * Monochrome flag + * @type {boolean} + * @memberof AssetMediaAttributes + */ + 'monochrome'?: boolean; +} + diff --git a/models/asset-media.ts b/models/asset-media.ts new file mode 100644 index 0000000..5e6631a --- /dev/null +++ b/models/asset-media.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 { AssetMediaAttributes } from './asset-media-attributes'; + +/** + * + * @export + * @interface AssetMedia + */ +export interface AssetMedia { + /** + * Media URL + * @type {string} + * @memberof AssetMedia + */ + 'url': string; + /** + * Media type + * @type {string} + * @memberof AssetMedia + */ + 'type': AssetMediaTypeEnum; + /** + * + * @type {AssetMediaAttributes} + * @memberof AssetMedia + */ + 'attributes'?: AssetMediaAttributes; +} + +export const AssetMediaTypeEnum = { + Svgxml: 'image/svg+xml', + Png: 'image/png' +} as const; + +export type AssetMediaTypeEnum = typeof AssetMediaTypeEnum[keyof typeof AssetMediaTypeEnum]; + + diff --git a/models/asset-metadata-beta.ts b/models/asset-metadata-beta.ts new file mode 100644 index 0000000..7931382 --- /dev/null +++ b/models/asset-metadata-beta.ts @@ -0,0 +1,71 @@ +/* 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 { AssetMedia } from './asset-media'; + +/** + * + * @export + * @interface AssetMetadataBeta + */ +export interface AssetMetadataBeta { + /** + * The scope of the asset + * @type {string} + * @memberof AssetMetadataBeta + */ + 'scope': AssetMetadataBetaScopeEnum; + /** + * Is asset deprecated + * @type {boolean} + * @memberof AssetMetadataBeta + */ + 'deprecated': boolean; + /** + * Is asset verified by Fireblocks + * @type {boolean} + * @memberof AssetMetadataBeta + */ + 'verified': boolean; + /** + * New asset ID replacement + * @type {string} + * @memberof AssetMetadataBeta + */ + 'deprecationReferralId'?: string; + /** + * Vendor’s website + * @type {string} + * @memberof AssetMetadataBeta + */ + 'website'?: string; + /** + * Asset’s media + * @type {Array} + * @memberof AssetMetadataBeta + */ + 'media'?: Array; +} + +export const AssetMetadataBetaScopeEnum = { + Global: 'Global', + Local: 'Local' +} as const; + +export type AssetMetadataBetaScopeEnum = typeof AssetMetadataBetaScopeEnum[keyof typeof AssetMetadataBetaScopeEnum]; + + diff --git a/models/asset-response-metadata.ts b/models/asset-metadata.ts similarity index 64% rename from models/asset-response-metadata.ts rename to models/asset-metadata.ts index 4d8204b..f3cd340 100644 --- a/models/asset-response-metadata.ts +++ b/models/asset-metadata.ts @@ -17,28 +17,28 @@ /** * * @export - * @interface AssetResponseMetadata + * @interface AssetMetadata */ -export interface AssetResponseMetadata { +export interface AssetMetadata { /** * The scope of the asset * @type {string} - * @memberof AssetResponseMetadata + * @memberof AssetMetadata */ - 'scope': AssetResponseMetadataScopeEnum; + 'scope': AssetMetadataScopeEnum; /** * Is asset deprecated * @type {boolean} - * @memberof AssetResponseMetadata + * @memberof AssetMetadata */ 'deprecated': boolean; } -export const AssetResponseMetadataScopeEnum = { +export const AssetMetadataScopeEnum = { Global: 'Global', Local: 'Local' } as const; -export type AssetResponseMetadataScopeEnum = typeof AssetResponseMetadataScopeEnum[keyof typeof AssetResponseMetadataScopeEnum]; +export type AssetMetadataScopeEnum = typeof AssetMetadataScopeEnum[keyof typeof AssetMetadataScopeEnum]; diff --git a/models/asset-not-found-error-response.ts b/models/asset-not-found-error-response.ts index 32b3091..55661a0 100644 --- a/models/asset-not-found-error-response.ts +++ b/models/asset-not-found-error-response.ts @@ -28,9 +28,9 @@ export interface AssetNotFoundErrorResponse { 'message': string; /** * Error code - * @type {string} + * @type {number} * @memberof AssetNotFoundErrorResponse */ - 'code': string; + 'code': number; } diff --git a/models/asset-onchain-beta.ts b/models/asset-onchain-beta.ts new file mode 100644 index 0000000..caaeb15 --- /dev/null +++ b/models/asset-onchain-beta.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. + */ + + + +/** + * + * @export + * @interface AssetOnchainBeta + */ +export interface AssetOnchainBeta { + /** + * The asset symbol + * @type {string} + * @memberof AssetOnchainBeta + */ + 'symbol': string; + /** + * The asset name + * @type {string} + * @memberof AssetOnchainBeta + */ + 'name': string; + /** + * Number of decimals + * @type {number} + * @memberof AssetOnchainBeta + */ + 'decimals': number; + /** + * The asset address + * @type {string} + * @memberof AssetOnchainBeta + */ + 'address'?: string; + /** + * Supported standards + * @type {Array} + * @memberof AssetOnchainBeta + */ + 'standards'?: Array; +} + diff --git a/models/asset-response-onchain.ts b/models/asset-onchain.ts similarity index 76% rename from models/asset-response-onchain.ts rename to models/asset-onchain.ts index ff1725c..c4e34d3 100644 --- a/models/asset-response-onchain.ts +++ b/models/asset-onchain.ts @@ -17,37 +17,37 @@ /** * * @export - * @interface AssetResponseOnchain + * @interface AssetOnchain */ -export interface AssetResponseOnchain { +export interface AssetOnchain { /** * The asset symbol * @type {string} - * @memberof AssetResponseOnchain + * @memberof AssetOnchain */ 'symbol': string; /** * The asset name * @type {string} - * @memberof AssetResponseOnchain + * @memberof AssetOnchain */ 'name': string; /** * Number of decimals * @type {number} - * @memberof AssetResponseOnchain + * @memberof AssetOnchain */ 'decimals': number; /** * The asset address * @type {string} - * @memberof AssetResponseOnchain + * @memberof AssetOnchain */ 'address'?: string; /** * The asset standard * @type {string} - * @memberof AssetResponseOnchain + * @memberof AssetOnchain */ 'standard'?: string; } diff --git a/models/asset-price-forbidden-error-response.ts b/models/asset-price-forbidden-error-response.ts index 178df9e..f42e11c 100644 --- a/models/asset-price-forbidden-error-response.ts +++ b/models/asset-price-forbidden-error-response.ts @@ -28,9 +28,9 @@ export interface AssetPriceForbiddenErrorResponse { 'message': string; /** * Error code - * @type {string} + * @type {number} * @memberof AssetPriceForbiddenErrorResponse */ - 'code': string; + 'code': number; } diff --git a/models/asset-price-not-found-error-response.ts b/models/asset-price-not-found-error-response.ts index d0e070e..05674c5 100644 --- a/models/asset-price-not-found-error-response.ts +++ b/models/asset-price-not-found-error-response.ts @@ -28,9 +28,9 @@ export interface AssetPriceNotFoundErrorResponse { 'message': string; /** * Error code - * @type {string} + * @type {number} * @memberof AssetPriceNotFoundErrorResponse */ - 'code': string; + 'code': number; } diff --git a/models/asset-response-beta.ts b/models/asset-response-beta.ts new file mode 100644 index 0000000..71e88d4 --- /dev/null +++ b/models/asset-response-beta.ts @@ -0,0 +1,83 @@ +/* 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 { AssetClassBeta } from './asset-class-beta'; +// May contain unused imports in some cases +// @ts-ignore +import { AssetMetadataBeta } from './asset-metadata-beta'; +// May contain unused imports in some cases +// @ts-ignore +import { AssetOnchainBeta } from './asset-onchain-beta'; + +/** + * + * @export + * @interface AssetResponseBeta + */ +export interface AssetResponseBeta { + /** + * The ID of the asset + * @type {string} + * @memberof AssetResponseBeta + */ + 'id': string; + /** + * The Legacy ID of the asset + * @type {string} + * @memberof AssetResponseBeta + */ + 'legacyId': string; + /** + * + * @type {AssetClassBeta} + * @memberof AssetResponseBeta + */ + 'assetClass': AssetClassBeta; + /** + * + * @type {AssetMetadataBeta} + * @memberof AssetResponseBeta + */ + 'metadata': AssetMetadataBeta; + /** + * The ID of the asset\'s blockchain + * @type {string} + * @memberof AssetResponseBeta + */ + 'blockchainId'?: string; + /** + * Asset\'s display name + * @type {string} + * @memberof AssetResponseBeta + */ + 'displayName'?: string; + /** + * Asset\'s display symbol + * @type {string} + * @memberof AssetResponseBeta + */ + 'displaySymbol'?: string; + /** + * + * @type {AssetOnchainBeta} + * @memberof AssetResponseBeta + */ + 'onchain'?: AssetOnchainBeta; +} + + + diff --git a/models/asset-response.ts b/models/asset-response.ts index 8166887..0d3019a 100644 --- a/models/asset-response.ts +++ b/models/asset-response.ts @@ -15,10 +15,10 @@ // May contain unused imports in some cases // @ts-ignore -import { AssetResponseMetadata } from './asset-response-metadata'; +import { AssetMetadata } from './asset-metadata'; // May contain unused imports in some cases // @ts-ignore -import { AssetResponseOnchain } from './asset-response-onchain'; +import { AssetOnchain } from './asset-onchain'; /** * @@ -40,16 +40,16 @@ export interface AssetResponse { 'assetClass': AssetResponseAssetClassEnum; /** * - * @type {AssetResponseOnchain} + * @type {AssetOnchain} * @memberof AssetResponse */ - 'onchain': AssetResponseOnchain; + 'onchain': AssetOnchain; /** * - * @type {AssetResponseMetadata} + * @type {AssetMetadata} * @memberof AssetResponse */ - 'metadata': AssetResponseMetadata; + 'metadata': AssetMetadata; } export const AssetResponseAssetClassEnum = { diff --git a/models/audit-log-data.ts b/models/audit-log-data.ts index c1089b5..1f9b7f4 100644 --- a/models/audit-log-data.ts +++ b/models/audit-log-data.ts @@ -28,16 +28,16 @@ export interface AuditLogData { 'id'?: string; /** * The timestamp of the audit log - * @type {string} + * @type {number} * @memberof AuditLogData */ - 'timestamp'?: string; + 'timestamp'?: number; /** * The timestamp of the audit log creation - * @type {string} + * @type {number} * @memberof AuditLogData */ - 'createdAt'?: string; + 'createdAt'?: number; /** * The user who performed the action * @type {string} diff --git a/models/blockchain-explorer.ts b/models/blockchain-explorer.ts new file mode 100644 index 0000000..9307ed5 --- /dev/null +++ b/models/blockchain-explorer.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface BlockchainExplorer + */ +export interface BlockchainExplorer { + /** + * Explorer base url + * @type {string} + * @memberof BlockchainExplorer + */ + 'base': string; + /** + * Explorer address url + * @type {string} + * @memberof BlockchainExplorer + */ + 'address'?: string; + /** + * Explorer transaction url + * @type {string} + * @memberof BlockchainExplorer + */ + 'tx'?: string; + /** + * Explorer token url + * @type {string} + * @memberof BlockchainExplorer + */ + 'token'?: string; +} + diff --git a/models/blockchain-media.ts b/models/blockchain-media.ts new file mode 100644 index 0000000..7ad398b --- /dev/null +++ b/models/blockchain-media.ts @@ -0,0 +1,44 @@ +/* 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 BlockchainMedia + */ +export interface BlockchainMedia { + /** + * Media URL + * @type {string} + * @memberof BlockchainMedia + */ + 'url': string; + /** + * Media type + * @type {string} + * @memberof BlockchainMedia + */ + 'type': BlockchainMediaTypeEnum; +} + +export const BlockchainMediaTypeEnum = { + Svgxml: 'image/svg+xml', + Png: 'image/png' +} as const; + +export type BlockchainMediaTypeEnum = typeof BlockchainMediaTypeEnum[keyof typeof BlockchainMediaTypeEnum]; + + diff --git a/models/blockchain-metadata.ts b/models/blockchain-metadata.ts new file mode 100644 index 0000000..b676c9c --- /dev/null +++ b/models/blockchain-metadata.ts @@ -0,0 +1,62 @@ +/* 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 { BlockchainExplorer } from './blockchain-explorer'; +// May contain unused imports in some cases +// @ts-ignore +import { BlockchainMedia } from './blockchain-media'; + +/** + * + * @export + * @interface BlockchainMetadata + */ +export interface BlockchainMetadata { + /** + * Is blockchain listed on all workspaces? Global or Local + * @type {string} + * @memberof BlockchainMetadata + */ + 'scope': BlockchainMetadataScopeEnum; + /** + * Is blockchain deprecated + * @type {boolean} + * @memberof BlockchainMetadata + */ + 'deprecated': boolean; + /** + * Blockchain’s media + * @type {Array} + * @memberof BlockchainMetadata + */ + 'media'?: Array; + /** + * + * @type {BlockchainExplorer} + * @memberof BlockchainMetadata + */ + 'explorer'?: BlockchainExplorer; +} + +export const BlockchainMetadataScopeEnum = { + Global: 'Global', + Local: 'Local' +} as const; + +export type BlockchainMetadataScopeEnum = typeof BlockchainMetadataScopeEnum[keyof typeof BlockchainMetadataScopeEnum]; + + diff --git a/models/blockchain-not-found-error-response.ts b/models/blockchain-not-found-error-response.ts new file mode 100644 index 0000000..376ddfc --- /dev/null +++ b/models/blockchain-not-found-error-response.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface BlockchainNotFoundErrorResponse + */ +export interface BlockchainNotFoundErrorResponse { + /** + * Not found error code + * @type {string} + * @memberof BlockchainNotFoundErrorResponse + */ + 'message': string; + /** + * Error code + * @type {number} + * @memberof BlockchainNotFoundErrorResponse + */ + 'code': number; +} + diff --git a/models/blockchain-onchain.ts b/models/blockchain-onchain.ts new file mode 100644 index 0000000..260c560 --- /dev/null +++ b/models/blockchain-onchain.ts @@ -0,0 +1,56 @@ +/* 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 BlockchainOnchain + */ +export interface BlockchainOnchain { + /** + * The protocol of the blockchain + * @type {string} + * @memberof BlockchainOnchain + */ + 'protocol': string; + /** + * Is test blockchain + * @type {boolean} + * @memberof BlockchainOnchain + */ + 'test': boolean; + /** + * Signing alghorithm + * @type {string} + * @memberof BlockchainOnchain + */ + 'signingAlgo': BlockchainOnchainSigningAlgoEnum; + /** + * Network/chain ID + * @type {string} + * @memberof BlockchainOnchain + */ + 'chainId'?: string; +} + +export const BlockchainOnchainSigningAlgoEnum = { + EcdsaSecp256K1: 'ECDSA_SECP256K1', + EddsaEd25519: 'EDDSA_ED25519' +} as const; + +export type BlockchainOnchainSigningAlgoEnum = typeof BlockchainOnchainSigningAlgoEnum[keyof typeof BlockchainOnchainSigningAlgoEnum]; + + diff --git a/models/blockchain-response.ts b/models/blockchain-response.ts new file mode 100644 index 0000000..cefede0 --- /dev/null +++ b/models/blockchain-response.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BlockchainMetadata } from './blockchain-metadata'; +// May contain unused imports in some cases +// @ts-ignore +import { BlockchainOnchain } from './blockchain-onchain'; + +/** + * + * @export + * @interface BlockchainResponse + */ +export interface BlockchainResponse { + /** + * The ID of the blockchain + * @type {string} + * @memberof BlockchainResponse + */ + 'id': string; + /** + * The old blockchain ID representation of the blockchain + * @type {string} + * @memberof BlockchainResponse + */ + 'legacyId': string; + /** + * The name of the blockchain + * @type {string} + * @memberof BlockchainResponse + */ + 'displayName': string; + /** + * Native asset ID of this blockchain + * @type {string} + * @memberof BlockchainResponse + */ + 'nativeAssetId': string; + /** + * + * @type {BlockchainOnchain} + * @memberof BlockchainResponse + */ + 'onchain': BlockchainOnchain; + /** + * + * @type {BlockchainMetadata} + * @memberof BlockchainResponse + */ + 'metadata': BlockchainMetadata; +} + diff --git a/models/callback-handler-request.ts b/models/callback-handler-request.ts new file mode 100644 index 0000000..f83a537 --- /dev/null +++ b/models/callback-handler-request.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CallbackHandlerRequest + */ +export interface CallbackHandlerRequest { + /** + * The callback handler\'s URL + * @type {string} + * @memberof CallbackHandlerRequest + */ + 'url': string; + /** + * The callback handler\'s public key + * @type {string} + * @memberof CallbackHandlerRequest + */ + 'publicKey'?: string; + /** + * The callback handler\'s certificate + * @type {string} + * @memberof CallbackHandlerRequest + */ + 'cert'?: string; +} + diff --git a/models/callback-handler.ts b/models/callback-handler.ts new file mode 100644 index 0000000..741596c --- /dev/null +++ b/models/callback-handler.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CallbackHandler + */ +export interface CallbackHandler { + /** + * The callback handler\'s URL + * @type {string} + * @memberof CallbackHandler + */ + 'url': string; + /** + * The callback handler\'s public key + * @type {string} + * @memberof CallbackHandler + */ + 'publicKey'?: string; + /** + * A hashed representation of the public key of the callback handler\'s certificate + * @type {string} + * @memberof CallbackHandler + */ + 'certPublicKeyHash'?: string; +} + diff --git a/models/chain-descriptor.ts b/models/chain-descriptor.ts new file mode 100644 index 0000000..79f90c9 --- /dev/null +++ b/models/chain-descriptor.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const ChainDescriptor = { + Eth: 'ETH', + Sol: 'SOL', + Matic: 'MATIC', + EthTest6: 'ETH_TEST6', + SolTest: 'SOL_TEST' +} as const; + +export type ChainDescriptor = typeof ChainDescriptor[keyof typeof ChainDescriptor]; + + + diff --git a/models/chain-info-response-dto.ts b/models/chain-info-response.ts similarity index 67% rename from models/chain-info-response-dto.ts rename to models/chain-info-response.ts index 5023ad5..b0b5fb1 100644 --- a/models/chain-info-response-dto.ts +++ b/models/chain-info-response.ts @@ -15,43 +15,43 @@ // May contain unused imports in some cases // @ts-ignore -import { AdditionalInfoDto } from './additional-info-dto'; +import { AdditionalInfo } from './additional-info'; /** * * @export - * @interface ChainInfoResponseDto + * @interface ChainInfoResponse */ -export interface ChainInfoResponseDto { +export interface ChainInfoResponse { /** * The protocol identifier (e.g. \"ETH\"/\"SOL\"). * @type {string} - * @memberof ChainInfoResponseDto + * @memberof ChainInfoResponse */ 'chainDescriptor': string; /** * The current epoch number of the blockchain network. * @type {number} - * @memberof ChainInfoResponseDto + * @memberof ChainInfoResponse */ 'currentEpoch': number; /** * The percentage of time that has elapsed within the current epoch, represented as a decimal value between 0 and 1. * @type {number} - * @memberof ChainInfoResponseDto + * @memberof ChainInfoResponse */ 'epochElapsed': number; /** * The total duration in milliseconds of a single epoch. * @type {number} - * @memberof ChainInfoResponseDto + * @memberof ChainInfoResponse */ 'epochDuration': number; /** - * Additional information related to the blockchain. This may include extra details about the blockchain network. - * @type {AdditionalInfoDto} - * @memberof ChainInfoResponseDto + * + * @type {AdditionalInfo} + * @memberof ChainInfoResponse */ - 'additionalInfo': AdditionalInfoDto; + 'additionalInfo': AdditionalInfo; } diff --git a/models/claim-rewards-request.ts b/models/claim-rewards-request.ts new file mode 100644 index 0000000..d58ee51 --- /dev/null +++ b/models/claim-rewards-request.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 { FeeLevel } from './fee-level'; + +/** + * + * @export + * @interface ClaimRewardsRequest + */ +export interface ClaimRewardsRequest { + /** + * id of position to withdraw rewards from + * @type {string} + * @memberof ClaimRewardsRequest + */ + 'id': string; + /** + * Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required. + * @type {string} + * @memberof ClaimRewardsRequest + */ + 'fee'?: string; + /** + * + * @type {FeeLevel} + * @memberof ClaimRewardsRequest + */ + 'feeLevel'?: FeeLevel; + /** + * The note to associate with the transactions. + * @type {string} + * @memberof ClaimRewardsRequest + */ + 'txNote'?: string; +} + + + diff --git a/models/cosigner.ts b/models/cosigner.ts index 5b98376..efcf3cb 100644 --- a/models/cosigner.ts +++ b/models/cosigner.ts @@ -13,6 +13,9 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { Version } from './version'; /** * @@ -37,6 +40,29 @@ export interface Cosigner { * @type {string} * @memberof Cosigner */ - 'name'?: string | null; + 'name'?: string; + /** + * The type of the cosigner + * @type {string} + * @memberof Cosigner + */ + 'type'?: CosignerTypeEnum; + /** + * + * @type {Version} + * @memberof Cosigner + */ + 'version'?: Version; } +export const CosignerTypeEnum = { + Sandbox: 'SANDBOX', + Sgx: 'SGX', + GcpConfspace: 'GCP-CONFSPACE', + AwsNitro: 'AWS-NITRO', + Plain: 'PLAIN' +} as const; + +export type CosignerTypeEnum = typeof CosignerTypeEnum[keyof typeof CosignerTypeEnum]; + + diff --git a/models/create-webhook-request.ts b/models/create-webhook-request.ts new file mode 100644 index 0000000..aac2963 --- /dev/null +++ b/models/create-webhook-request.ts @@ -0,0 +1,51 @@ +/* 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 { WebhookEvent } from './webhook-event'; + +/** + * + * @export + * @interface CreateWebhookRequest + */ +export interface CreateWebhookRequest { + /** + * The url of the webhook where notifications will be sent. URL must be valid, unique and https. + * @type {string} + * @memberof CreateWebhookRequest + */ + 'url': string; + /** + * description of the webhook. should not contain special characters. + * @type {string} + * @memberof CreateWebhookRequest + */ + 'description': string; + /** + * event types the webhook will subscribe to + * @type {Array} + * @memberof CreateWebhookRequest + */ + 'events': Array; + /** + * The status of the webhook. If false, the webhook will not receive notifications. + * @type {boolean} + * @memberof CreateWebhookRequest + */ + 'enabled'?: boolean; +} + diff --git a/models/delegation-summary-dto.ts b/models/delegation-summary.ts similarity index 87% rename from models/delegation-summary-dto.ts rename to models/delegation-summary.ts index 1efb0ac..0a50644 100644 --- a/models/delegation-summary-dto.ts +++ b/models/delegation-summary.ts @@ -20,31 +20,31 @@ import { AmountAndChainDescriptor } from './amount-and-chain-descriptor'; /** * * @export - * @interface DelegationSummaryDto + * @interface DelegationSummary */ -export interface DelegationSummaryDto { +export interface DelegationSummary { /** * An array of objects containing chain descriptors and associated amounts, representing active positions. * @type {Array} - * @memberof DelegationSummaryDto + * @memberof DelegationSummary */ 'active': Array; /** * An array of objects containing chain descriptors and associated amounts, representing inactive positions. * @type {Array} - * @memberof DelegationSummaryDto + * @memberof DelegationSummary */ 'inactive': Array; /** * An array of objects containing chain descriptors and associated amounts, representing rewards positions. * @type {Array} - * @memberof DelegationSummaryDto + * @memberof DelegationSummary */ 'rewardsAmount': Array; /** * An array of objects with chain descriptors and total staked amounts, representing the combined staked totals of active and inactive positions. * @type {Array} - * @memberof DelegationSummaryDto + * @memberof DelegationSummary */ 'totalStaked': Array; } diff --git a/models/delegation-dto.ts b/models/delegation.ts similarity index 67% rename from models/delegation-dto.ts rename to models/delegation.ts index 1d03857..36b91b2 100644 --- a/models/delegation-dto.ts +++ b/models/delegation.ts @@ -15,127 +15,132 @@ // May contain unused imports in some cases // @ts-ignore -import { RelatedRequestDto } from './related-request-dto'; +import { RelatedRequest } from './related-request'; // May contain unused imports in some cases // @ts-ignore -import { RelatedTransactionDto } from './related-transaction-dto'; +import { RelatedTransaction } from './related-transaction'; // May contain unused imports in some cases // @ts-ignore -import { SolanaBlockchainDataDto } from './solana-blockchain-data-dto'; +import { SolanaBlockchainData } from './solana-blockchain-data'; +// May contain unused imports in some cases +// @ts-ignore +import { StakingProvider } from './staking-provider'; /** * * @export - * @interface DelegationDto + * @interface Delegation */ -export interface DelegationDto { +export interface Delegation { /** * The unique identifier of the staking position * @type {string} - * @memberof DelegationDto + * @memberof Delegation */ 'id': string; /** * The source vault account to stake from * @type {string} - * @memberof DelegationDto + * @memberof Delegation */ 'vaultAccountId': string; /** * The destination validator address name * @type {string} - * @memberof DelegationDto + * @memberof Delegation */ 'validatorName': string; /** * The destination validator provider name * @type {string} - * @memberof DelegationDto + * @memberof Delegation */ 'providerName': string; /** * The protocol identifier (e.g. \"ETH\"/ \"SOL\") to use * @type {string} - * @memberof DelegationDto + * @memberof Delegation */ 'chainDescriptor': string; /** * Amount of tokens to stake, measured in the staked asset unit. * @type {string} - * @memberof DelegationDto + * @memberof Delegation */ 'amount': string; /** * The amount staked in the position, measured in the staked asset unit. * @type {string} - * @memberof DelegationDto + * @memberof Delegation */ 'rewardsAmount': string; /** * When was the request made (ISO Date). * @type {string} - * @memberof DelegationDto + * @memberof Delegation */ 'dateCreated': string; + /** + * When has the position last changed (ISO Date). + * @type {string} + * @memberof Delegation + */ + 'dateUpdated': string; /** * The current status. * @type {string} - * @memberof DelegationDto + * @memberof Delegation */ 'status': string; /** * An array of transaction objects related to this position. Each object includes a \'txId\' representing the transaction ID and a \'completed\' boolean indicating if the transaction was completed. - * @type {Array} - * @memberof DelegationDto + * @type {Array} + * @memberof Delegation */ - 'relatedTransactions': Array; + 'relatedTransactions': Array; /** * The destination address of the staking transaction. * @type {string} - * @memberof DelegationDto + * @memberof Delegation */ 'validatorAddress': string; /** - * The unique identifier of the staking provider - * @type {string} - * @memberof DelegationDto + * + * @type {StakingProvider} + * @memberof Delegation */ - 'providerId': string; + 'providerId': StakingProvider; /** * An array of available actions that can be performed. for example, actions like \"unstake\" or \"withdraw\". * @type {Array} - * @memberof DelegationDto + * @memberof Delegation */ 'availableActions': Array; /** * Indicates whether there is an ongoing action for this position (true if ongoing, false if not). * @type {boolean} - * @memberof DelegationDto + * @memberof Delegation */ 'inProgress': boolean; /** - * 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. - * @type {SolanaBlockchainDataDto} - * @memberof DelegationDto + * + * @type {SolanaBlockchainData} + * @memberof Delegation */ - 'blockchainPositionInfo': SolanaBlockchainDataDto; - /** - * When has the position last changed (ISO Date). - * @type {string} - * @memberof DelegationDto - */ - 'dateUpdated'?: string; + 'blockchainPositionInfo': SolanaBlockchainData; /** * The transaction ID of the ongoing request * @type {string} - * @memberof DelegationDto + * @memberof Delegation */ '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 + * @type {Array} + * @memberof Delegation */ - 'relatedRequests'?: Array; + 'relatedRequests'?: Array; } + + diff --git a/models/fee-level.ts b/models/fee-level.ts new file mode 100644 index 0000000..2e298d3 --- /dev/null +++ b/models/fee-level.ts @@ -0,0 +1,32 @@ +/* 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. + */ + + + +/** + * Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only one of fee/feeLevel is required. + * @export + * @enum {string} + */ + +export const FeeLevel = { + Low: 'LOW', + Medium: 'MEDIUM', + High: 'HIGH' +} as const; + +export type FeeLevel = typeof FeeLevel[keyof typeof FeeLevel]; + + + diff --git a/models/execute-action-request.ts b/models/get-mpc-keys-response.ts similarity index 55% rename from models/execute-action-request.ts rename to models/get-mpc-keys-response.ts index 739fb65..36e85bb 100644 --- a/models/execute-action-request.ts +++ b/models/get-mpc-keys-response.ts @@ -15,18 +15,25 @@ // May contain unused imports in some cases // @ts-ignore -import { StakeRequestDto } from './stake-request-dto'; -// May contain unused imports in some cases -// @ts-ignore -import { UnstakeRequestDto } from './unstake-request-dto'; -// May contain unused imports in some cases -// @ts-ignore -import { WithdrawRequestDto } from './withdraw-request-dto'; +import { MpcKey } from './mpc-key'; /** - * @type ExecuteActionRequest + * * @export + * @interface GetMpcKeysResponse */ -export type ExecuteActionRequest = StakeRequestDto | UnstakeRequestDto | WithdrawRequestDto; - +export interface GetMpcKeysResponse { + /** + * The workspace id of the keys + * @type {string} + * @memberof GetMpcKeysResponse + */ + 'tenantId': string; + /** + * The keys that are associated with the workspace + * @type {Array} + * @memberof GetMpcKeysResponse + */ + 'keys': Array; +} diff --git a/models/index.ts b/models/index.ts index 0725b64..ac5b373 100644 --- a/models/index.ts +++ b/models/index.ts @@ -13,7 +13,9 @@ export * from './add-asset-to-external-wallet-request-one-of1-additional-info-on export * from './add-asset-to-external-wallet-request-one-of1-additional-info-one-of2'; export * from './add-collateral-request-body'; export * from './add-contract-asset-request'; -export * from './additional-info-dto'; +export * from './add-cosigner-request'; +export * from './add-cosigner-response'; +export * from './additional-info'; export * from './aml-registration-result'; export * from './aml-screening-result'; export * from './amount-aggregation-time-period-method'; @@ -24,17 +26,23 @@ export * from './api-keys-paginated-response'; export * from './asset-already-exist-http-error'; export * from './asset-amount'; export * from './asset-bad-request-error-response'; +export * from './asset-class-beta'; export * from './asset-conflict-error-response'; export * from './asset-forbidden-error-response'; export * from './asset-internal-server-error-response'; +export * from './asset-media'; +export * from './asset-media-attributes'; +export * from './asset-metadata'; +export * from './asset-metadata-beta'; export * from './asset-metadata-dto'; export * from './asset-not-found-error-response'; +export * from './asset-onchain'; +export * from './asset-onchain-beta'; export * from './asset-price-forbidden-error-response'; export * from './asset-price-not-found-error-response'; export * from './asset-price-response'; export * from './asset-response'; -export * from './asset-response-metadata'; -export * from './asset-response-onchain'; +export * from './asset-response-beta'; export * from './asset-type-response'; export * from './asset-wallet'; export * from './audit-log-data'; @@ -43,8 +51,18 @@ export * from './auditor-data'; export * from './authorization-groups'; export * from './authorization-info'; export * from './block-info'; +export * from './blockchain-explorer'; +export * from './blockchain-media'; +export * from './blockchain-metadata'; +export * from './blockchain-not-found-error-response'; +export * from './blockchain-onchain'; +export * from './blockchain-response'; +export * from './callback-handler'; +export * from './callback-handler-request'; export * from './cancel-transaction-response'; -export * from './chain-info-response-dto'; +export * from './chain-descriptor'; +export * from './chain-info-response'; +export * from './claim-rewards-request'; export * from './collection-burn-request-dto'; export * from './collection-burn-response-dto'; export * from './collection-deploy-request-dto'; @@ -122,11 +140,12 @@ export * from './create-vault-account-connection-request'; export * from './create-vault-account-request'; export * from './create-vault-asset-response'; export * from './create-wallet-request'; +export * from './create-webhook-request'; export * from './create-workflow-execution-request-params-inner'; export * from './custom-routing-dest'; export * from './default-network-routing-dest'; -export * from './delegation-dto'; -export * from './delegation-summary-dto'; +export * from './delegation'; +export * from './delegation-summary'; export * from './delete-network-connection-response'; export * from './delete-network-id-response'; export * from './deployed-contract-response-dto'; @@ -170,8 +189,6 @@ export * from './exchange-asset'; export * from './exchange-settlement-transactions-response'; export * from './exchange-trading-account'; export * from './exchange-type'; -export * from './execute-action-request'; -export * from './execute-action-response'; export * from './execution-conversion-operation'; export * from './execution-disbursement-operation'; export * from './execution-operation-status'; @@ -179,6 +196,7 @@ export * from './execution-screening-operation'; export * from './execution-transfer-operation'; export * from './external-wallet-asset'; export * from './fee-info'; +export * from './fee-level'; export * from './fetch-abi-request-dto'; export * from './fiat-account'; export * from './fiat-account-type'; @@ -202,6 +220,7 @@ export * from './get-filter-parameter'; export * from './get-internal-wallets-response'; export * from './get-linked-collections-paginated-response'; export * from './get-max-spendable-amount-response'; +export * from './get-mpc-keys-response'; export * from './get-nfts-response'; export * from './get-network-connections-response'; export * from './get-network-ids-response'; @@ -230,12 +249,15 @@ export * from './jobs'; export * from './lean-abi-function'; export * from './lean-contract-dto'; export * from './lean-deployed-contract-response-dto'; +export * from './list-assets-response'; +export * from './list-blockchains-response'; export * from './list-owned-collections-response'; export * from './list-owned-tokens-response'; export * from './media-entity-response'; export * from './modify-signing-key-agent-id-dto'; export * from './modify-signing-key-dto'; export * from './modify-validation-key-dto'; +export * from './mpc-key'; export * from './network-channel'; export * from './network-connection'; export * from './network-connection-response'; @@ -250,6 +272,10 @@ export * from './network-id-routing-policy-value'; export * from './network-record'; export * from './none-network-routing-dest'; export * from './not-found-exception'; +export * from './notification'; +export * from './notification-paginated-response'; +export * from './notification-status'; +export * from './notification-with-data'; export * from './one-time-address'; export * from './one-time-address-account'; export * from './operation-execution-failure'; @@ -258,6 +284,8 @@ export * from './paginated-address-response-paging'; export * from './paginated-asset-wallet-response'; export * from './paginated-asset-wallet-response-paging'; export * from './paging'; +export * from './pair-api-key-request'; +export * from './pair-api-key-response'; export * from './parameter'; export * from './parameter-with-value'; export * from './parameter-with-value-list'; @@ -274,6 +302,7 @@ export * from './payout-instruction-state'; export * from './payout-response'; export * from './payout-state'; export * from './payout-status'; +export * from './players'; export * from './policy-and-validation-response'; export * from './policy-check-result'; export * from './policy-metadata'; @@ -297,7 +326,7 @@ export * from './policy-src-or-dest-type'; export * from './policy-status'; export * from './policy-validation'; export * from './pre-screening'; -export * from './provider-dto'; +export * from './provider'; export * from './public-key-information'; export * from './publish-draft-request'; export * from './publish-result'; @@ -305,8 +334,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-transaction-dto'; +export * from './related-request'; +export * from './related-transaction'; export * from './remove-collateral-request-body'; export * from './rename-cosigner'; export * from './rename-vault-account-response'; @@ -380,19 +409,23 @@ export * from './smart-transfer-ticket-term-response'; export * from './smart-transfer-update-ticket-term'; export * from './smart-transfer-user-groups'; export * from './smart-transfer-user-groups-response'; -export * from './solana-blockchain-data-dto'; +export * from './solana-blockchain-data'; export * from './source-transfer-peer-path'; export * from './source-transfer-peer-path-response'; export * from './spam-ownership-response'; export * from './spam-token-response'; +export * from './split-request'; +export * from './split-response'; export * from './src-or-dest-attributes'; export * from './src-or-dest-attributes-inner'; -export * from './stake-request-dto'; -export * from './stake-response-dto'; +export * from './stake-request'; +export * from './stake-response'; export * from './staking-get-all-delegations-response'; export * from './staking-get-chains-response'; export * from './staking-get-providers-response'; export * from './staking-get-summary-by-vault-response'; +export * from './staking-provider'; +export * from './status'; export * from './stellar-ripple-create-params-dto'; export * from './system-message-info'; export * from './task'; @@ -402,6 +435,7 @@ export * from './third-party-routing'; export * from './to-collateral-transaction'; export * from './to-exchange-transaction'; export * from './token-collection-response'; +export * from './token-info-not-found-error-response'; export * from './token-link-dto'; export * from './token-link-dto-token-metadata'; export * from './token-link-exists-http-error'; @@ -415,6 +449,7 @@ export * from './trading-account-type'; export * from './transaction'; export * from './transaction-fee'; export * from './transaction-operation'; +export * from './transaction-receipt-response'; export * from './transaction-request'; export * from './transaction-request-amount'; export * from './transaction-request-destination'; @@ -456,16 +491,20 @@ 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 './tx-log'; export * from './unfreeze-transaction-response'; export * from './unmanaged-wallet'; export * from './unspent-input'; export * from './unspent-inputs-response'; -export * from './unstake-request-dto'; +export * from './unstake-request'; +export * from './update-callback-handler-request'; +export * from './update-callback-handler-response'; export * from './update-token-ownership-status-dto'; export * from './update-tokens-ownership-spam-request'; export * from './update-tokens-ownership-status-request'; export * from './update-vault-account-asset-address-request'; export * from './update-vault-account-request'; +export * from './update-webhook-request'; export * from './user-group-create-request'; export * from './user-group-create-response'; export * from './user-group-response'; @@ -479,7 +518,7 @@ export * from './validate-address-response'; export * from './validated-transactions-for-rescan'; export * from './validated-transactions-for-rescan-response'; export * from './validation-key-dto'; -export * from './validator-dto'; +export * from './validator'; export * from './vault-account'; export * from './vault-accounts-paged-response'; export * from './vault-accounts-paged-response-paging'; @@ -487,9 +526,13 @@ export * from './vault-action-status'; export * from './vault-asset'; export * from './vault-wallet-address'; export * from './vendor-dto'; +export * from './version'; export * from './wallet-asset'; export * from './wallet-asset-additional-info'; -export * from './withdraw-request-dto'; +export * from './webhook'; +export * from './webhook-event'; +export * from './webhook-paginated-response'; +export * from './withdraw-request'; export * from './workflow-config-status'; export * from './workflow-configuration-id'; export * from './workflow-execution-operation'; diff --git a/models/list-assets-response.ts b/models/list-assets-response.ts new file mode 100644 index 0000000..7d5672a --- /dev/null +++ b/models/list-assets-response.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AssetResponseBeta } from './asset-response-beta'; + +/** + * + * @export + * @interface ListAssetsResponse + */ +export interface ListAssetsResponse { + /** + * The data of the current page + * @type {Array} + * @memberof ListAssetsResponse + */ + 'data': Array; + /** + * Cursor to the next page + * @type {string} + * @memberof ListAssetsResponse + */ + 'next': string | null; +} + diff --git a/models/list-blockchains-response.ts b/models/list-blockchains-response.ts new file mode 100644 index 0000000..3b19142 --- /dev/null +++ b/models/list-blockchains-response.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BlockchainResponse } from './blockchain-response'; + +/** + * + * @export + * @interface ListBlockchainsResponse + */ +export interface ListBlockchainsResponse { + /** + * The data of the current page + * @type {Array} + * @memberof ListBlockchainsResponse + */ + 'data': Array; + /** + * Cursor to the next page + * @type {string} + * @memberof ListBlockchainsResponse + */ + 'next': string | null; +} + diff --git a/models/mpc-key.ts b/models/mpc-key.ts new file mode 100644 index 0000000..f2d7a5c --- /dev/null +++ b/models/mpc-key.ts @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Players } from './players'; + +/** + * + * @export + * @interface MpcKey + */ +export interface MpcKey { + /** + * + * @type {string} + * @memberof MpcKey + */ + 'keyId': string; + /** + * The user id that owns the key + * @type {string} + * @memberof MpcKey + */ + 'userId': string; + /** + * The algorithm of the key + * @type {number} + * @memberof MpcKey + */ + 'algorithm': number; + /** + * The players that are associated with the key + * @type {Array} + * @memberof MpcKey + */ + 'players': Array; + /** + * The last index used on this key + * @type {number} + * @memberof MpcKey + */ + 'lastPreprocessedIndex'?: number; +} + diff --git a/models/notification-paginated-response.ts b/models/notification-paginated-response.ts new file mode 100644 index 0000000..fc5127d --- /dev/null +++ b/models/notification-paginated-response.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Notification } from './notification'; + +/** + * + * @export + * @interface NotificationPaginatedResponse + */ +export interface NotificationPaginatedResponse { + /** + * The data of the current page + * @type {Array} + * @memberof NotificationPaginatedResponse + */ + 'data': Array; + /** + * The ID of the next page + * @type {string} + * @memberof NotificationPaginatedResponse + */ + 'next'?: string | null; +} + diff --git a/models/notification-status.ts b/models/notification-status.ts new file mode 100644 index 0000000..808e319 --- /dev/null +++ b/models/notification-status.ts @@ -0,0 +1,32 @@ +/* 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 Notification + * @export + * @enum {string} + */ + +export const NotificationStatus = { + Completed: 'COMPLETED', + Failed: 'FAILED', + InProgress: 'IN_PROGRESS' +} as const; + +export type NotificationStatus = typeof NotificationStatus[keyof typeof NotificationStatus]; + + + diff --git a/models/notification-with-data.ts b/models/notification-with-data.ts new file mode 100644 index 0000000..6ef705c --- /dev/null +++ b/models/notification-with-data.ts @@ -0,0 +1,86 @@ +/* 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 { NotificationStatus } from './notification-status'; +// May contain unused imports in some cases +// @ts-ignore +import { WebhookEvent } from './webhook-event'; + +/** + * + * @export + * @interface NotificationWithData + */ +export interface NotificationWithData { + /** + * + * @type {string} + * @memberof NotificationWithData + */ + 'id': string; + /** + * The creation date of the notification + * @type {string} + * @memberof NotificationWithData + */ + 'createdAt': string; + /** + * The date when the notification was updated + * @type {string} + * @memberof NotificationWithData + */ + 'updatedAt': string; + /** + * + * @type {NotificationStatus} + * @memberof NotificationWithData + */ + 'status': NotificationStatus; + /** + * + * @type {WebhookEvent} + * @memberof NotificationWithData + */ + 'eventType': WebhookEvent; + /** + * The event version which the Notification is listen to + * @type {number} + * @memberof NotificationWithData + */ + 'eventVersion': number; + /** + * The attempts related to Notification + * @type {Array} + * @memberof NotificationWithData + */ + 'attempts': Array; + /** + * The resource id of the event which the Notification is listen to + * @type {string} + * @memberof NotificationWithData + */ + 'resourceId'?: string | null; + /** + * notification data + * @type {object} + * @memberof NotificationWithData + */ + 'data'?: object; +} + + + diff --git a/models/notification.ts b/models/notification.ts new file mode 100644 index 0000000..6e43c7a --- /dev/null +++ b/models/notification.ts @@ -0,0 +1,80 @@ +/* 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 { NotificationStatus } from './notification-status'; +// May contain unused imports in some cases +// @ts-ignore +import { WebhookEvent } from './webhook-event'; + +/** + * + * @export + * @interface Notification + */ +export interface Notification { + /** + * The id of the Notification + * @type {string} + * @memberof Notification + */ + 'id': string; + /** + * The creation date of the notification + * @type {string} + * @memberof Notification + */ + 'createdAt': string; + /** + * The date when the notification was updated + * @type {string} + * @memberof Notification + */ + 'updatedAt': string; + /** + * + * @type {NotificationStatus} + * @memberof Notification + */ + 'status': NotificationStatus; + /** + * + * @type {WebhookEvent} + * @memberof Notification + */ + 'eventType': WebhookEvent; + /** + * The event version of the Notification + * @type {number} + * @memberof Notification + */ + 'eventVersion': number; + /** + * The resource id of the event which the Notification is listen to + * @type {string} + * @memberof Notification + */ + 'resourceId'?: string | null; + /** + * The attempts related to Notification + * @type {Array} + * @memberof Notification + */ + 'attempts'?: Array; +} + + + diff --git a/models/pair-api-key-request.ts b/models/pair-api-key-request.ts new file mode 100644 index 0000000..71bf875 --- /dev/null +++ b/models/pair-api-key-request.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { CallbackHandlerRequest } from './callback-handler-request'; + +/** + * + * @export + * @interface PairApiKeyRequest + */ +export interface PairApiKeyRequest { + /** + * + * @type {CallbackHandlerRequest} + * @memberof PairApiKeyRequest + */ + 'callbackHandler'?: CallbackHandlerRequest; +} + diff --git a/models/pair-api-key-response.ts b/models/pair-api-key-response.ts new file mode 100644 index 0000000..32dd141 --- /dev/null +++ b/models/pair-api-key-response.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { CallbackHandlerRequest } from './callback-handler-request'; + +/** + * + * @export + * @interface PairApiKeyResponse + */ +export interface PairApiKeyResponse { + /** + * The unique identifier of the API key + * @type {string} + * @memberof PairApiKeyResponse + */ + 'id': string; + /** + * + * @type {CallbackHandlerRequest} + * @memberof PairApiKeyResponse + */ + 'callbackHandler'?: CallbackHandlerRequest; +} + diff --git a/models/players.ts b/models/players.ts new file mode 100644 index 0000000..180f215 --- /dev/null +++ b/models/players.ts @@ -0,0 +1,44 @@ +/* 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 Players + */ +export interface Players { + /** + * id of the player + * @type {string} + * @memberof Players + */ + 'id': string; + /** + * Type of the player + * @type {string} + * @memberof Players + */ + 'type': PlayersTypeEnum; +} + +export const PlayersTypeEnum = { + Mobile: 'MOBILE', + Cloud: 'CLOUD' +} as const; + +export type PlayersTypeEnum = typeof PlayersTypeEnum[keyof typeof PlayersTypeEnum]; + + diff --git a/models/provider-dto.ts b/models/provider.ts similarity index 62% rename from models/provider-dto.ts rename to models/provider.ts index 38b0269..38bc7ba 100644 --- a/models/provider-dto.ts +++ b/models/provider.ts @@ -15,49 +15,61 @@ // May contain unused imports in some cases // @ts-ignore -import { ValidatorDto } from './validator-dto'; +import { Validator } from './validator'; /** * * @export - * @interface ProviderDto + * @interface Provider */ -export interface ProviderDto { +export interface Provider { /** * The ID of the provider * @type {string} - * @memberof ProviderDto + * @memberof Provider */ 'id': string; /** * Name of the provider * @type {string} - * @memberof ProviderDto + * @memberof Provider */ 'providerName': string; /** * An array of objects that includes chain descriptors and the corresponding fee percentages for validators supported by the provider - * @type {Array} - * @memberof ProviderDto + * @type {Array} + * @memberof Provider */ - 'validators': Array; + 'validators': Array; + /** + * Indicates whether the terms of service are approved + * @type {boolean} + * @memberof Provider + */ + 'isTermsOfServiceApproved': boolean; + /** + * Is the provider a liquid staking provider + * @type {boolean} + * @memberof Provider + */ + 'isLiquidStaking': boolean; /** * URL to the validator\'s icon * @type {string} - * @memberof ProviderDto + * @memberof Provider */ - 'iconUrl': string; + 'iconUrl'?: string; /** * URL to the terms of service * @type {string} - * @memberof ProviderDto + * @memberof Provider */ - 'termsOfServiceUrl': string; + 'termsOfServiceUrl'?: string; /** - * Indicates whether the terms of service are approved + * Is the provider private, i.e created by the user * @type {boolean} - * @memberof ProviderDto + * @memberof Provider */ - 'isTermsOfServiceApproved': boolean; + 'isPrivate'?: boolean; } diff --git a/models/public-key-information.ts b/models/public-key-information.ts index f285b94..c7454b3 100644 --- a/models/public-key-information.ts +++ b/models/public-key-information.ts @@ -21,22 +21,31 @@ */ export interface PublicKeyInformation { /** - * + * Elliptic Curve * @type {string} * @memberof PublicKeyInformation */ - 'algorithm'?: string; + 'algorithm'?: PublicKeyInformationAlgorithmEnum; /** - * + * BIP44 derivation path * @type {Array} * @memberof PublicKeyInformation */ 'derivationPath'?: Array; /** - * + * Compressed/Uncompressed public key value in hex representation * @type {string} * @memberof PublicKeyInformation */ 'publicKey'?: string; } +export const PublicKeyInformationAlgorithmEnum = { + EcdsaSecp256K1: 'MPC_ECDSA_SECP256K1', + EcdsaSecp256R1: 'MPC_ECDSA_SECP256R1', + EddsaEd25519: 'MPC_EDDSA_ED25519' +} as const; + +export type PublicKeyInformationAlgorithmEnum = typeof PublicKeyInformationAlgorithmEnum[keyof typeof PublicKeyInformationAlgorithmEnum]; + + diff --git a/models/related-request-dto.ts b/models/related-request.ts similarity index 69% rename from models/related-request-dto.ts rename to models/related-request.ts index 672ebe5..397143b 100644 --- a/models/related-request-dto.ts +++ b/models/related-request.ts @@ -17,39 +17,39 @@ /** * * @export - * @interface RelatedRequestDto + * @interface RelatedRequest */ -export interface RelatedRequestDto { +export interface RelatedRequest { /** * The status of the request * @type {string} - * @memberof RelatedRequestDto + * @memberof RelatedRequest */ - 'status': RelatedRequestDtoStatusEnum; + 'status': RelatedRequestStatusEnum; /** * Indicates whether there is an ongoing action for this position related to this request * @type {boolean} - * @memberof RelatedRequestDto + * @memberof RelatedRequest */ 'inProgress': boolean; /** * Amount of tokens to Unstake * @type {string} - * @memberof RelatedRequestDto + * @memberof RelatedRequest */ 'amount': string; /** * The transaction ID of the ongoing request * @type {string} - * @memberof RelatedRequestDto + * @memberof RelatedRequest */ 'txId'?: string; } -export const RelatedRequestDtoStatusEnum = { +export const RelatedRequestStatusEnum = { Deactivating: 'deactivating' } as const; -export type RelatedRequestDtoStatusEnum = typeof RelatedRequestDtoStatusEnum[keyof typeof RelatedRequestDtoStatusEnum]; +export type RelatedRequestStatusEnum = typeof RelatedRequestStatusEnum[keyof typeof RelatedRequestStatusEnum]; diff --git a/models/related-transaction-dto.ts b/models/related-transaction.ts similarity index 80% rename from models/related-transaction-dto.ts rename to models/related-transaction.ts index becb34f..519bf91 100644 --- a/models/related-transaction-dto.ts +++ b/models/related-transaction.ts @@ -17,19 +17,19 @@ /** * * @export - * @interface RelatedTransactionDto + * @interface RelatedTransaction */ -export interface RelatedTransactionDto { +export interface RelatedTransaction { /** * The transaction ID * @type {string} - * @memberof RelatedTransactionDto + * @memberof RelatedTransaction */ 'txId': string; /** * Is the transaction completed or not * @type {boolean} - * @memberof RelatedTransactionDto + * @memberof RelatedTransaction */ 'completed': boolean; } diff --git a/models/rename-cosigner.ts b/models/rename-cosigner.ts index 2b0167c..eb9426d 100644 --- a/models/rename-cosigner.ts +++ b/models/rename-cosigner.ts @@ -25,6 +25,6 @@ export interface RenameCosigner { * @type {string} * @memberof RenameCosigner */ - 'name'?: string | null; + 'name'?: string; } diff --git a/models/solana-blockchain-data.ts b/models/solana-blockchain-data.ts new file mode 100644 index 0000000..4a53ac0 --- /dev/null +++ b/models/solana-blockchain-data.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. + */ + + + +/** + * 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. + * @export + * @interface SolanaBlockchainData + */ +export interface SolanaBlockchainData { + /** + * The stake account address matching the stakeAccountId. + * @type {string} + * @memberof SolanaBlockchainData + */ + 'stakeAccountAddress': string; + /** + * The value of the change level in the BIP44 path which was used to derive the stake account address + * @type {number} + * @memberof SolanaBlockchainData + */ + 'stakeAccountDerivationChangeValue': number; +} + diff --git a/models/split-request.ts b/models/split-request.ts new file mode 100644 index 0000000..e2629cc --- /dev/null +++ b/models/split-request.ts @@ -0,0 +1,59 @@ +/* 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 { FeeLevel } from './fee-level'; + +/** + * + * @export + * @interface SplitRequest + */ +export interface SplitRequest { + /** + * id of position to split + * @type {string} + * @memberof SplitRequest + */ + 'id': string; + /** + * Amount of tokens to be transferred to the new stake account. + * @type {string} + * @memberof SplitRequest + */ + 'amount': string; + /** + * Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required. + * @type {string} + * @memberof SplitRequest + */ + 'fee'?: string; + /** + * + * @type {FeeLevel} + * @memberof SplitRequest + */ + 'feeLevel'?: FeeLevel; + /** + * The note to associate with the transactions. + * @type {string} + * @memberof SplitRequest + */ + 'txNote'?: string; +} + + + diff --git a/models/solana-blockchain-data-dto.ts b/models/split-response.ts similarity index 69% rename from models/solana-blockchain-data-dto.ts rename to models/split-response.ts index 933d33e..84aa6de 100644 --- a/models/solana-blockchain-data-dto.ts +++ b/models/split-response.ts @@ -17,14 +17,14 @@ /** * * @export - * @interface SolanaBlockchainDataDto + * @interface SplitResponse */ -export interface SolanaBlockchainDataDto { +export interface SplitResponse { /** - * The stake account address matching the stakeAccountId. + * The unique identifier of the new staking position * @type {string} - * @memberof SolanaBlockchainDataDto + * @memberof SplitResponse */ - 'stakeAccountAddress': string; + 'id': string; } diff --git a/models/stake-request-dto.ts b/models/stake-request.ts similarity index 63% rename from models/stake-request-dto.ts rename to models/stake-request.ts index b9d5bde..9739826 100644 --- a/models/stake-request-dto.ts +++ b/models/stake-request.ts @@ -13,48 +13,56 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { FeeLevel } from './fee-level'; +// May contain unused imports in some cases +// @ts-ignore +import { StakingProvider } from './staking-provider'; /** * * @export - * @interface StakeRequestDto + * @interface StakeRequest */ -export interface StakeRequestDto { +export interface StakeRequest { /** * The source vault account to stake from * @type {string} - * @memberof StakeRequestDto + * @memberof StakeRequest */ 'vaultAccountId': string; /** - * The ID of the provider - * @type {string} - * @memberof StakeRequestDto + * + * @type {StakingProvider} + * @memberof StakeRequest */ - 'providerId': string; + 'providerId': StakingProvider; /** * Amount of tokens to stake * @type {string} - * @memberof StakeRequestDto + * @memberof StakeRequest */ 'stakeAmount': string; /** * The note to associate with the stake transactions. * @type {string} - * @memberof StakeRequestDto + * @memberof StakeRequest */ 'txNote'?: string; /** * Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required. * @type {string} - * @memberof StakeRequestDto + * @memberof StakeRequest */ 'fee'?: string; /** - * Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only one of fee/feeLevel is required. - * @type {string} - * @memberof StakeRequestDto + * + * @type {FeeLevel} + * @memberof StakeRequest */ - 'feeLevel'?: string; + 'feeLevel'?: FeeLevel; } + + diff --git a/models/stake-response-dto.ts b/models/stake-response.ts similarity index 84% rename from models/stake-response-dto.ts rename to models/stake-response.ts index ef59f3e..d5b0ac6 100644 --- a/models/stake-response-dto.ts +++ b/models/stake-response.ts @@ -17,13 +17,13 @@ /** * * @export - * @interface StakeResponseDto + * @interface StakeResponse */ -export interface StakeResponseDto { +export interface StakeResponse { /** * The unique identifier of the staking position * @type {string} - * @memberof StakeResponseDto + * @memberof StakeResponse */ 'id': string; } diff --git a/models/staking-get-all-delegations-response.ts b/models/staking-get-all-delegations-response.ts index 972a0be..b5cfe5c 100644 --- a/models/staking-get-all-delegations-response.ts +++ b/models/staking-get-all-delegations-response.ts @@ -15,13 +15,13 @@ // May contain unused imports in some cases // @ts-ignore -import { DelegationDto } from './delegation-dto'; +import { Delegation } from './delegation'; /** * * @export * @interface StakingGetAllDelegationsResponse */ -export interface StakingGetAllDelegationsResponse extends Array { +export interface StakingGetAllDelegationsResponse extends Array { } diff --git a/models/staking-get-chains-response.ts b/models/staking-get-chains-response.ts index 2ecf788..2cc7bec 100644 --- a/models/staking-get-chains-response.ts +++ b/models/staking-get-chains-response.ts @@ -13,12 +13,15 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { ChainDescriptor } from './chain-descriptor'; /** * * @export * @interface StakingGetChainsResponse */ -export interface StakingGetChainsResponse extends Array { +export interface StakingGetChainsResponse extends Array { } diff --git a/models/staking-get-providers-response.ts b/models/staking-get-providers-response.ts index 101c0fc..7aeaf13 100644 --- a/models/staking-get-providers-response.ts +++ b/models/staking-get-providers-response.ts @@ -15,13 +15,13 @@ // May contain unused imports in some cases // @ts-ignore -import { ProviderDto } from './provider-dto'; +import { Provider } from './provider'; /** * * @export * @interface StakingGetProvidersResponse */ -export interface StakingGetProvidersResponse extends Array { +export interface StakingGetProvidersResponse extends Array { } diff --git a/models/staking-get-summary-by-vault-response.ts b/models/staking-get-summary-by-vault-response.ts index 80bca35..8387d98 100644 --- a/models/staking-get-summary-by-vault-response.ts +++ b/models/staking-get-summary-by-vault-response.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { DelegationSummaryDto } from './delegation-summary-dto'; +import { DelegationSummary } from './delegation-summary'; /** * @@ -23,7 +23,7 @@ import { DelegationSummaryDto } from './delegation-summary-dto'; * @interface StakingGetSummaryByVaultResponse */ export interface StakingGetSummaryByVaultResponse { - [key: string]: DelegationSummaryDto; + [key: string]: DelegationSummary; } diff --git a/models/staking-provider.ts b/models/staking-provider.ts new file mode 100644 index 0000000..181e5f1 --- /dev/null +++ b/models/staking-provider.ts @@ -0,0 +1,32 @@ +/* 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 unique identifier of the staking provider + * @export + * @enum {string} + */ + +export const StakingProvider = { + Kiln: 'kiln', + Figment: 'figment', + Lido: 'lido' +} as const; + +export type StakingProvider = typeof StakingProvider[keyof typeof StakingProvider]; + + + diff --git a/models/status.ts b/models/status.ts new file mode 100644 index 0000000..e8cc79c --- /dev/null +++ b/models/status.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. + */ + + + +/** + * + * @export + * @interface Status + */ +export interface Status { + /** + * The status of the command + * @type {string} + * @memberof Status + */ + 'status': StatusStatusEnum; + /** + * The type of the command + * @type {string} + * @memberof Status + */ + 'type': StatusTypeEnum; +} + +export const StatusStatusEnum = { + WaitingForApproval: 'WAITING_FOR_APPROVAL', + Approved: 'APPROVED', + Cancelled: 'CANCELLED', + Rejected: 'REJECTED', + Completed: 'COMPLETED' +} as const; + +export type StatusStatusEnum = typeof StatusStatusEnum[keyof typeof StatusStatusEnum]; +export const StatusTypeEnum = { + PairApiKey: 'PAIR_API_KEY', + UpdateCallbackHandler: 'UPDATE_CALLBACK_HANDLER', + UnpairApiKey: 'UNPAIR_API_KEY' +} as const; + +export type StatusTypeEnum = typeof StatusTypeEnum[keyof typeof StatusTypeEnum]; + + diff --git a/models/token-info-not-found-error-response.ts b/models/token-info-not-found-error-response.ts new file mode 100644 index 0000000..bc07184 --- /dev/null +++ b/models/token-info-not-found-error-response.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface TokenInfoNotFoundErrorResponse + */ +export interface TokenInfoNotFoundErrorResponse { + /** + * Not found error code + * @type {string} + * @memberof TokenInfoNotFoundErrorResponse + */ + 'message': string; + /** + * Error code + * @type {number} + * @memberof TokenInfoNotFoundErrorResponse + */ + 'code': number; +} + diff --git a/models/transaction-operation.ts b/models/transaction-operation.ts index 82f394e..2aeee90 100644 --- a/models/transaction-operation.ts +++ b/models/transaction-operation.ts @@ -15,7 +15,7 @@ /** - * * `TRANSFER` - The default value for an operation. Transfers funds from one account to another. UTXO blockchains allow multi-input and multi-output transfers. All other blockchains allow transfers with one source address and one destination address. * `MINT` - Mints new tokens. Supported for Stellar, Ripple and EVM-based blockchains. * `BURN` - Burns tokens. Supported for Stellar, Ripple and EVM-based blockchains. * `CONTRACT_CALL` - Calls a smart contract method for web3 operations on any EVM blockchain. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. * `TYPED_MESSAGE` - An off-chain message in either Ethereum Personal Message or EIP712 format. Use it to sign specific readable messages that are not actual transactions. [Learn more about typed messages](https://developers.fireblocks.com/docs/typed-message-signing). * `RAW` - An off-chain message with no predefined format. Use it to sign any message with your private key, including protocols such as blockchains and custom transaction types that are not natively supported by Fireblocks. [Learn more about raw signing transactions.](https://developers.fireblocks.com/docs/raw-message-signing) + * * `TRANSFER` - The default value for an operation. Transfers funds from one account to another. UTXO blockchains allow multi-input and multi-output transfers. All other blockchains allow transfers with one source address and one destination address. * `MINT` - Mints new tokens. Supported for Stellar, Ripple and EVM-based blockchains. * `BURN` - Burns tokens. Supported for Stellar, Ripple and EVM-based blockchains. * `CONTRACT_CALL` - Calls a smart contract method for web3 operations on any EVM blockchain. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. * `PROGRAM_CALL` - Execute multiple instructions on Solana blockchain. The @solana/web3.js library is recommended for building program call transactions. Currently in beta and disabled * `TYPED_MESSAGE` - An off-chain message in either Ethereum Personal Message or EIP712 format. Use it to sign specific readable messages that are not actual transactions. [Learn more about typed messages](https://developers.fireblocks.com/docs/typed-message-signing). * `RAW` - An off-chain message with no predefined format. Use it to sign any message with your private key, including protocols such as blockchains and custom transaction types that are not natively supported by Fireblocks. [Learn more about raw signing transactions.](https://developers.fireblocks.com/docs/raw-message-signing) * @export * @enum {string} */ @@ -24,6 +24,7 @@ export const TransactionOperation = { Transfer: 'TRANSFER', Burn: 'BURN', ContractCall: 'CONTRACT_CALL', + ProgramCall: 'PROGRAM_CALL', Mint: 'MINT', Raw: 'RAW', TypedMessage: 'TYPED_MESSAGE' diff --git a/models/transaction-receipt-response.ts b/models/transaction-receipt-response.ts new file mode 100644 index 0000000..9bb3841 --- /dev/null +++ b/models/transaction-receipt-response.ts @@ -0,0 +1,111 @@ +/* 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 { TxLog } from './tx-log'; + +/** + * + * @export + * @interface TransactionReceiptResponse + */ +export interface TransactionReceiptResponse { + /** + * The block hash + * @type {string} + * @memberof TransactionReceiptResponse + */ + 'blockHash': string; + /** + * The block number + * @type {number} + * @memberof TransactionReceiptResponse + */ + 'blockNumber': number; + /** + * The cumulative gas used in the transaction + * @type {number} + * @memberof TransactionReceiptResponse + */ + 'cumulativeGasUsed': number; + /** + * The effective gas price + * @type {number} + * @memberof TransactionReceiptResponse + */ + 'effectiveGasPrice': number; + /** + * Sender address + * @type {string} + * @memberof TransactionReceiptResponse + */ + 'from': string; + /** + * Gas used by the transaction + * @type {number} + * @memberof TransactionReceiptResponse + */ + 'gasUsed': number; + /** + * Array of transaction logs + * @type {Array} + * @memberof TransactionReceiptResponse + */ + 'logs': Array; + /** + * Logs bloom filter + * @type {string} + * @memberof TransactionReceiptResponse + */ + 'logsBloom': string; + /** + * Transaction status (1 for success, 0 for failure) + * @type {number} + * @memberof TransactionReceiptResponse + */ + 'status': number; + /** + * The transaction hash + * @type {string} + * @memberof TransactionReceiptResponse + */ + 'transactionHash': string; + /** + * Transaction index in the block + * @type {number} + * @memberof TransactionReceiptResponse + */ + 'transactionIndex': number; + /** + * Type of transaction + * @type {string} + * @memberof TransactionReceiptResponse + */ + 'type': string; + /** + * The address of deployed contract + * @type {string} + * @memberof TransactionReceiptResponse + */ + 'contractAddress'?: string | null; + /** + * Recipient address + * @type {string} + * @memberof TransactionReceiptResponse + */ + 'to'?: string | null; +} + diff --git a/models/transfer-peer-path-type.ts b/models/transfer-peer-path-type.ts index 7f83a23..1718a69 100644 --- a/models/transfer-peer-path-type.ts +++ b/models/transfer-peer-path-type.ts @@ -32,7 +32,8 @@ export const TransferPeerPathType = { GasStation: 'GAS_STATION', OneTimeAddress: 'ONE_TIME_ADDRESS', Unknown: 'UNKNOWN', - EndUserWallet: 'END_USER_WALLET' + EndUserWallet: 'END_USER_WALLET', + ProgramCall: 'PROGRAM_CALL' } as const; export type TransferPeerPathType = typeof TransferPeerPathType[keyof typeof TransferPeerPathType]; diff --git a/models/tx-log.ts b/models/tx-log.ts new file mode 100644 index 0000000..07ec19f --- /dev/null +++ b/models/tx-log.ts @@ -0,0 +1,78 @@ +/* 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 TxLog + */ +export interface TxLog { + /** + * The log address + * @type {string} + * @memberof TxLog + */ + 'address': string; + /** + * Array of log topics + * @type {Array} + * @memberof TxLog + */ + 'topics': Array; + /** + * The log data + * @type {string} + * @memberof TxLog + */ + 'data': string; + /** + * Block number where the log occurred + * @type {number} + * @memberof TxLog + */ + 'blockNumber': number; + /** + * Transaction hash associated with the log + * @type {string} + * @memberof TxLog + */ + 'transactionHash': string; + /** + * Transaction index in the block + * @type {number} + * @memberof TxLog + */ + 'transactionIndex': number; + /** + * The hash of the block + * @type {string} + * @memberof TxLog + */ + 'blockHash': string; + /** + * Log index in the block + * @type {number} + * @memberof TxLog + */ + 'logIndex': number; + /** + * Indicates if the log was removed + * @type {boolean} + * @memberof TxLog + */ + 'removed': boolean; +} + diff --git a/models/unstake-request-dto.ts b/models/unstake-request.ts similarity index 72% rename from models/unstake-request-dto.ts rename to models/unstake-request.ts index 763fa6d..fe400d6 100644 --- a/models/unstake-request-dto.ts +++ b/models/unstake-request.ts @@ -13,42 +13,47 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { FeeLevel } from './fee-level'; /** * * @export - * @interface UnstakeRequestDto + * @interface UnstakeRequest */ -export interface UnstakeRequestDto { +export interface UnstakeRequest { /** * id of position to unstake * @type {string} - * @memberof UnstakeRequestDto + * @memberof UnstakeRequest */ 'id': string; /** * Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required. * @type {string} - * @memberof UnstakeRequestDto + * @memberof UnstakeRequest */ 'fee'?: string; /** - * Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only one of fee/feeLevel is required. - * @type {string} - * @memberof UnstakeRequestDto + * + * @type {FeeLevel} + * @memberof UnstakeRequest */ - 'feeLevel'?: string; + 'feeLevel'?: FeeLevel; /** * The note to associate with the transactions. * @type {string} - * @memberof UnstakeRequestDto + * @memberof UnstakeRequest */ 'txNote'?: string; /** * The number of tokens to unstake. This optional field is applicable only for liquid staking and allows for a partial unstake of the position. If not provided, the entire position will be unstaked by default. * @type {string} - * @memberof UnstakeRequestDto + * @memberof UnstakeRequest */ 'amount'?: string; } + + diff --git a/models/update-callback-handler-request.ts b/models/update-callback-handler-request.ts new file mode 100644 index 0000000..6c59048 --- /dev/null +++ b/models/update-callback-handler-request.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { CallbackHandlerRequest } from './callback-handler-request'; + +/** + * + * @export + * @interface UpdateCallbackHandlerRequest + */ +export interface UpdateCallbackHandlerRequest { + /** + * + * @type {CallbackHandlerRequest} + * @memberof UpdateCallbackHandlerRequest + */ + 'callbackHandler'?: CallbackHandlerRequest; +} + diff --git a/models/update-callback-handler-response.ts b/models/update-callback-handler-response.ts new file mode 100644 index 0000000..2e0956a --- /dev/null +++ b/models/update-callback-handler-response.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { CallbackHandlerRequest } from './callback-handler-request'; + +/** + * + * @export + * @interface UpdateCallbackHandlerResponse + */ +export interface UpdateCallbackHandlerResponse { + /** + * The unique identifier of the API key + * @type {string} + * @memberof UpdateCallbackHandlerResponse + */ + 'id': string; + /** + * + * @type {CallbackHandlerRequest} + * @memberof UpdateCallbackHandlerResponse + */ + 'callbackHandler'?: CallbackHandlerRequest; +} + diff --git a/models/update-webhook-request.ts b/models/update-webhook-request.ts new file mode 100644 index 0000000..cf519d5 --- /dev/null +++ b/models/update-webhook-request.ts @@ -0,0 +1,51 @@ +/* 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 { WebhookEvent } from './webhook-event'; + +/** + * + * @export + * @interface UpdateWebhookRequest + */ +export interface UpdateWebhookRequest { + /** + * The url of the webhook where notifications will be sent. URL must be valid, unique and https. + * @type {string} + * @memberof UpdateWebhookRequest + */ + 'url'?: string; + /** + * description of the webhook of what it is used for.should not contain special characters. + * @type {string} + * @memberof UpdateWebhookRequest + */ + 'description'?: string; + /** + * The events that the webhook will be subscribed to + * @type {Array} + * @memberof UpdateWebhookRequest + */ + 'events'?: Array; + /** + * The status of the webhook + * @type {boolean} + * @memberof UpdateWebhookRequest + */ + 'enabled'?: boolean; +} + diff --git a/models/validator-dto.ts b/models/validator.ts similarity index 73% rename from models/validator-dto.ts rename to models/validator.ts index 3a798e2..875d7bf 100644 --- a/models/validator-dto.ts +++ b/models/validator.ts @@ -17,20 +17,26 @@ /** * * @export - * @interface ValidatorDto + * @interface Validator */ -export interface ValidatorDto { +export interface Validator { /** * The protocol identifier (e.g. \"ETH\"/\"SOL\") of the validator * @type {string} - * @memberof ValidatorDto + * @memberof Validator */ 'chainDescriptor': string; /** * The service fee as a percentage out of the earned rewards * @type {number} - * @memberof ValidatorDto + * @memberof Validator */ 'feePercent': number; + /** + * Is the validator private, i.e created by the user + * @type {boolean} + * @memberof Validator + */ + 'isPrivate'?: boolean; } diff --git a/models/execute-action-response.ts b/models/version.ts similarity index 68% rename from models/execute-action-response.ts rename to models/version.ts index 5460228..c8949f5 100644 --- a/models/execute-action-response.ts +++ b/models/version.ts @@ -13,14 +13,18 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { StakeResponseDto } from './stake-response-dto'; /** - * @type ExecuteActionResponse + * * @export + * @interface Version */ -export type ExecuteActionResponse = StakeResponseDto | object; - +export interface Version { + /** + * The version hash of the cosigner + * @type {string} + * @memberof Version + */ + 'hash': string; +} diff --git a/models/webhook-event.ts b/models/webhook-event.ts new file mode 100644 index 0000000..8add5cf --- /dev/null +++ b/models/webhook-event.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const WebhookEvent = { + TransactionCreated: 'transaction.created', + TransactionStatusUpdated: 'transaction.status.updated', + TransactionApprovalStatusUpdated: 'transaction.approval_status.updated', + ExternalWalletAssetAdded: 'external_wallet.asset.added', + InternalWalletAssetAdded: 'internal_wallet.asset.added', + InternalWalletAssetRemoved: 'internal_wallet.asset.removed', + ContractWalletAssetAdded: 'contract_wallet.asset.added', + ContractWalletAssetRemoved: 'contract_wallet.asset.removed', + VaultAccountCreated: 'vault_account.created', + VaultAccountAssetAdded: 'vault_account.asset.added', + VaultAccountAssetBalanceUpdated: 'vault_account.asset.balance_updated', + VaultAccountNftBalanceUpdated: 'vault_account.nft.balance_updated', + EmbeddedWalletAssetAdded: 'embedded_wallet.asset.added', + EmbeddedWalletAssetBalanceUpdated: 'embedded_wallet.asset.balance_updated', + ExchangeAccountAdded: 'exchange_account.added', + FiatAccountAdded: 'fiat_account.added', + TicketCreated: 'ticket.created', + TicketSubmitted: 'ticket.submitted', + TicketExpired: 'ticket.expired', + TicketCanceled: 'ticket.canceled', + TicketFulfilled: 'ticket.fulfilled', + TicketCounterpartyAdded: 'ticket.counterparty.added', + TicketCounterpartyExternalIdSet: 'ticket.counterparty_external_id.set', + TicketNoteAdded: 'ticket.note.added', + TicketExpiredInSet: 'ticket.expired_in.set', + TicketExpiredAtSet: 'ticket.expired_at.set', + TicketTermAdded: 'ticket.term.added', + TicketTermUpdated: 'ticket.term.updated', + TicketTermDeleted: 'ticket.term.deleted', + TicketTermFunded: 'ticket.term.funded', + TicketTermManuallyFunded: 'ticket.term.manually_funded', + TicketTermFundingCanceled: 'ticket.term.funding_canceled', + TicketTermFundingFailed: 'ticket.term.funding_failed', + TicketTermFundingCompleted: 'ticket.term.funding_completed', + TicketTermTransactionStatusChanged: 'ticket.term.transaction_status_changed' +} as const; + +export type WebhookEvent = typeof WebhookEvent[keyof typeof WebhookEvent]; + + + diff --git a/models/webhook-paginated-response.ts b/models/webhook-paginated-response.ts new file mode 100644 index 0000000..61779ea --- /dev/null +++ b/models/webhook-paginated-response.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Webhook } from './webhook'; + +/** + * + * @export + * @interface WebhookPaginatedResponse + */ +export interface WebhookPaginatedResponse { + /** + * The data of the current page + * @type {Array} + * @memberof WebhookPaginatedResponse + */ + 'data': Array; + /** + * The ID of the next page + * @type {string} + * @memberof WebhookPaginatedResponse + */ + 'next'?: string | null; +} + diff --git a/models/webhook.ts b/models/webhook.ts new file mode 100644 index 0000000..b48bdbb --- /dev/null +++ b/models/webhook.ts @@ -0,0 +1,77 @@ +/* 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 { WebhookEvent } from './webhook-event'; + +/** + * + * @export + * @interface Webhook + */ +export interface Webhook { + /** + * The id of the webhook + * @type {string} + * @memberof Webhook + */ + 'id'?: string; + /** + * The url of the webhook where notifications will be sent. Must be a valid URL and https. + * @type {string} + * @memberof Webhook + */ + 'url'?: string; + /** + * description of the webhook of what it is used for + * @type {string} + * @memberof Webhook + */ + 'description'?: string; + /** + * The events that the webhook will be subscribed to + * @type {Array} + * @memberof Webhook + */ + 'events'?: Array; + /** + * The status of the webhook + * @type {string} + * @memberof Webhook + */ + 'status'?: WebhookStatusEnum; + /** + * The date and time the webhook was created + * @type {string} + * @memberof Webhook + */ + 'createdAt'?: string; + /** + * The date and time the webhook was last updated + * @type {string} + * @memberof Webhook + */ + 'updatedAt'?: string; +} + +export const WebhookStatusEnum = { + Disabled: 'DISABLED', + Enabled: 'ENABLED' +} as const; + +export type WebhookStatusEnum = typeof WebhookStatusEnum[keyof typeof WebhookStatusEnum]; + + diff --git a/models/withdraw-request-dto.ts b/models/withdraw-request.ts similarity index 68% rename from models/withdraw-request-dto.ts rename to models/withdraw-request.ts index 0070729..5ff1ccf 100644 --- a/models/withdraw-request-dto.ts +++ b/models/withdraw-request.ts @@ -13,36 +13,41 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { FeeLevel } from './fee-level'; /** * * @export - * @interface WithdrawRequestDto + * @interface WithdrawRequest */ -export interface WithdrawRequestDto { +export interface WithdrawRequest { /** * id of position to withdraw * @type {string} - * @memberof WithdrawRequestDto + * @memberof WithdrawRequest */ 'id': string; /** * Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required. * @type {string} - * @memberof WithdrawRequestDto + * @memberof WithdrawRequest */ 'fee'?: string; /** - * Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only one of fee/feeLevel is required. - * @type {string} - * @memberof WithdrawRequestDto + * + * @type {FeeLevel} + * @memberof WithdrawRequest */ - 'feeLevel'?: string; + 'feeLevel'?: FeeLevel; /** * The note to associate with the transactions. * @type {string} - * @memberof WithdrawRequestDto + * @memberof WithdrawRequest */ 'txNote'?: string; } + + diff --git a/package-lock.json b/package-lock.json index 3e4f4fe..0392ca1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,22 +1,22 @@ { "name": "@fireblocks/ts-sdk", - "version": "6.0.0", + "version": "0.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@fireblocks/ts-sdk", - "version": "6.0.0", + "version": "0.0.0", "license": "MIT License", "dependencies": { "axios": "^1.6.7", - "jsonwebtoken": "8.5.1", + "jsonwebtoken": "^9.0.2", "platform": "1.3.6", "uuid": "8.3.2" }, "devDependencies": { "@types/jest": "29.4.0", - "@types/jsonwebtoken": "^8.5.1", + "@types/jsonwebtoken": "^9.0.2", "@types/node": "^12.11.5", "@types/platform": "^1.3.6", "@types/uuid": "^8.3.2", @@ -31,6 +31,7 @@ "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", "dev": true, + "license": "Apache-2.0", "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" @@ -44,6 +45,7 @@ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz", "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-validator-identifier": "^7.25.9", "js-tokens": "^4.0.0", @@ -58,6 +60,7 @@ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.26.3.tgz", "integrity": "sha512-nHIxvKPniQXpmQLb0vhY3VaFb3S0YrTAwpOWJZh1wn3oJPjJk9Asva204PsBdmAE8vpzfHudT8DB0scYvy9q0g==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -67,6 +70,7 @@ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.26.0.tgz", "integrity": "sha512-i1SLeK+DzNnQ3LL/CswPCa/E5u4lh1k6IAEphON8F+cXt0t9euTshDru0q7/IqMa1PMPz5RnHuHscF8/ZJsStg==", "dev": true, + "license": "MIT", "dependencies": { "@ampproject/remapping": "^2.2.0", "@babel/code-frame": "^7.26.0", @@ -97,6 +101,7 @@ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.26.3.tgz", "integrity": "sha512-6FF/urZvD0sTeO7k6/B15pMLC4CHUv1426lzr3N01aHJTl046uCAh9LXW/fzeXXjPNCJ6iABW5XaWOsIZB93aQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/parser": "^7.26.3", "@babel/types": "^7.26.3", @@ -113,6 +118,7 @@ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.9.tgz", "integrity": "sha512-j9Db8Suy6yV/VHa4qzrj9yZfZxhLWQdVnRlXxmKLYlhWUVB1sB2G5sxuWYXk/whHD9iW76PmNzxZ4UCnTQTVEQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/compat-data": "^7.25.9", "@babel/helper-validator-option": "^7.25.9", @@ -129,6 +135,7 @@ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz", "integrity": "sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/traverse": "^7.25.9", "@babel/types": "^7.25.9" @@ -142,6 +149,7 @@ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz", "integrity": "sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-module-imports": "^7.25.9", "@babel/helper-validator-identifier": "^7.25.9", @@ -159,6 +167,7 @@ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.9.tgz", "integrity": "sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -168,6 +177,7 @@ "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, + "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -177,6 +187,7 @@ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -186,6 +197,7 @@ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz", "integrity": "sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -195,6 +207,7 @@ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.26.0.tgz", "integrity": "sha512-tbhNuIxNcVb21pInl3ZSjksLCvgdZy9KwJ8brv993QtIVKJBBkYXz4q4ZbAv31GdnC+R90np23L5FbEBlthAEw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/template": "^7.25.9", "@babel/types": "^7.26.0" @@ -208,6 +221,7 @@ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.3.tgz", "integrity": "sha512-WJ/CvmY8Mea8iDXo6a7RK2wbmJITT5fN3BEkRuFlxVyNx8jOKIIhmC4fSkTcPcf8JyavbBwIe6OpiCOBXt/IcA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/types": "^7.26.3" }, @@ -223,6 +237,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -235,6 +250,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -247,6 +263,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.12.13" }, @@ -259,6 +276,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -274,6 +292,7 @@ "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, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.25.9" }, @@ -289,6 +308,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -301,6 +321,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -313,6 +334,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.25.9.tgz", "integrity": "sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.25.9" }, @@ -328,6 +350,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -340,6 +363,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -352,6 +376,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -364,6 +389,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -376,6 +402,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -388,6 +415,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -400,6 +428,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -415,6 +444,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -430,6 +460,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.9.tgz", "integrity": "sha512-hjMgRy5hb8uJJjUcdWunWVcoi9bGpJp8p5Ol1229PoN6aytsLwNMgmdftO23wnCLMfVmTwZDWMPNq/D1SY60JQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.25.9" }, @@ -445,6 +476,7 @@ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.9.tgz", "integrity": "sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/code-frame": "^7.25.9", "@babel/parser": "^7.25.9", @@ -455,10 +487,11 @@ } }, "node_modules/@babel/traverse": { - "version": "7.26.3", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.26.3.tgz", - "integrity": "sha512-yTmc8J+Sj8yLzwr4PD5Xb/WF3bOYu2C2OoSZPzbuqRm4n98XirsbzaX+GloeO376UnSYIYJ4NCanwV5/ugZkwA==", + "version": "7.26.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.26.4.tgz", + "integrity": "sha512-fH+b7Y4p3yqvApJALCPJcwb0/XaOSgtK4pzV6WVjPR5GLFQBRI7pfoX2V2iM48NXvX07NUxxm1Vw98YjqTcU5w==", "dev": true, + "license": "MIT", "dependencies": { "@babel/code-frame": "^7.26.2", "@babel/generator": "^7.26.3", @@ -477,6 +510,7 @@ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.3.tgz", "integrity": "sha512-vN5p+1kl59GVKMvTHt55NzzmYVxprfJD+ql7U9NFIfKCBkYE55LYtS+WtPlaYOyzydrKI8Nezd+aZextrd+FMA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.25.9", "@babel/helper-validator-identifier": "^7.25.9" @@ -489,13 +523,15 @@ "version": "0.2.3", "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", "dev": true, + "license": "ISC", "dependencies": { "camelcase": "^5.3.1", "find-up": "^4.1.0", @@ -512,6 +548,7 @@ "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -521,6 +558,7 @@ "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@types/node": "*", @@ -538,6 +576,7 @@ "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/console": "^29.7.0", "@jest/reporters": "^29.7.0", @@ -585,6 +624,7 @@ "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/fake-timers": "^29.7.0", "@jest/types": "^29.6.3", @@ -600,6 +640,7 @@ "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", "dev": true, + "license": "MIT", "dependencies": { "expect": "^29.7.0", "jest-snapshot": "^29.7.0" @@ -613,6 +654,7 @@ "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", "dev": true, + "license": "MIT", "dependencies": { "jest-get-type": "^29.6.3" }, @@ -625,6 +667,7 @@ "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@sinonjs/fake-timers": "^10.0.2", @@ -642,6 +685,7 @@ "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", "@jest/expect": "^29.7.0", @@ -657,6 +701,7 @@ "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", "dev": true, + "license": "MIT", "dependencies": { "@bcoe/v8-coverage": "^0.2.3", "@jest/console": "^29.7.0", @@ -700,6 +745,7 @@ "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", "dev": true, + "license": "MIT", "dependencies": { "@sinclair/typebox": "^0.27.8" }, @@ -712,6 +758,7 @@ "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/trace-mapping": "^0.3.18", "callsites": "^3.0.0", @@ -726,6 +773,7 @@ "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", "dev": true, + "license": "MIT", "dependencies": { "@jest/console": "^29.7.0", "@jest/types": "^29.6.3", @@ -741,6 +789,7 @@ "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/test-result": "^29.7.0", "graceful-fs": "^4.2.9", @@ -756,6 +805,7 @@ "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@jest/types": "^29.6.3", @@ -782,6 +832,7 @@ "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/schemas": "^29.6.3", "@types/istanbul-lib-coverage": "^2.0.0", @@ -795,10 +846,11 @@ } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", - "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", + "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", @@ -813,6 +865,7 @@ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.0.0" } @@ -822,6 +875,7 @@ "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.0.0" } @@ -830,13 +884,15 @@ "version": "1.5.0", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.25", "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" @@ -846,13 +902,15 @@ "version": "0.27.8", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@sinonjs/commons": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "type-detect": "4.0.8" } @@ -862,6 +920,7 @@ "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "@sinonjs/commons": "^3.0.0" } @@ -871,6 +930,7 @@ "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/parser": "^7.20.7", "@babel/types": "^7.20.7", @@ -884,6 +944,7 @@ "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/types": "^7.0.0" } @@ -893,6 +954,7 @@ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", "dev": true, + "license": "MIT", "dependencies": { "@babel/parser": "^7.1.0", "@babel/types": "^7.0.0" @@ -903,6 +965,7 @@ "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.6.tgz", "integrity": "sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/types": "^7.20.7" } @@ -912,6 +975,7 @@ "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*" } @@ -920,13 +984,15 @@ "version": "2.0.6", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/istanbul-lib-report": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", "dev": true, + "license": "MIT", "dependencies": { "@types/istanbul-lib-coverage": "*" } @@ -936,6 +1002,7 @@ "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", "dev": true, + "license": "MIT", "dependencies": { "@types/istanbul-lib-report": "*" } @@ -945,16 +1012,18 @@ "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.4.0.tgz", "integrity": "sha512-VaywcGQ9tPorCX/Jkkni7RWGFfI11whqzs8dvxF41P17Z+z872thvEvlIbznjPJ02kl1HMX3LmLOonsj2n7HeQ==", "dev": true, + "license": "MIT", "dependencies": { "expect": "^29.0.0", "pretty-format": "^29.0.0" } }, "node_modules/@types/jsonwebtoken": { - "version": "8.5.9", - "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-8.5.9.tgz", - "integrity": "sha512-272FMnFGzAVMGtu9tkr29hRL6bZj4Zs1KZNeHLnKqAvp06tAIcarTMwOh8/8bz4FmKRcMxZhZNeUAQsNLoiPhg==", + "version": "9.0.7", + "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-9.0.7.tgz", + "integrity": "sha512-ugo316mmTYBl2g81zDFnZ7cfxlut3o+/EQdaP7J8QN2kY6lJ22hmQYCK5EHcJHbrW+dkCGSCPgbG8JtYj6qSrg==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*" } @@ -963,31 +1032,36 @@ "version": "12.20.55", "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/platform": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/@types/platform/-/platform-1.3.6.tgz", "integrity": "sha512-ZmSaqHuvzv+jC232cFoz2QqPUkaj6EvMmCrWcx3WRr7xTPVFCMUOTcOq8m2d+Zw1iKRc1kDiaA+jtNrV0hkVew==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/stack-utils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/uuid": { "version": "8.3.4", "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.4.tgz", "integrity": "sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/yargs": { "version": "17.0.33", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", "dev": true, + "license": "MIT", "dependencies": { "@types/yargs-parser": "*" } @@ -996,13 +1070,15 @@ "version": "21.0.3", "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, + "license": "MIT", "dependencies": { "type-fest": "^0.21.3" }, @@ -1018,6 +1094,7 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -1027,6 +1104,7 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -1042,6 +1120,7 @@ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, + "license": "ISC", "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -1055,6 +1134,7 @@ "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, + "license": "MIT", "dependencies": { "sprintf-js": "~1.0.2" } @@ -1062,12 +1142,14 @@ "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" }, "node_modules/axios": { "version": "1.7.9", "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.9.tgz", "integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==", + "license": "MIT", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", @@ -1079,6 +1161,7 @@ "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/transform": "^29.7.0", "@types/babel__core": "^7.1.14", @@ -1100,6 +1183,7 @@ "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", "@istanbuljs/load-nyc-config": "^1.0.0", @@ -1116,6 +1200,7 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "@babel/core": "^7.12.3", "@babel/parser": "^7.14.7", @@ -1132,6 +1217,7 @@ "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/template": "^7.3.3", "@babel/types": "^7.3.3", @@ -1147,6 +1233,7 @@ "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.1.0.tgz", "integrity": "sha512-ldYss8SbBlWva1bs28q78Ju5Zq1F+8BrqBZZ0VFhLBvhh6lCpC2o3gDJi/5DRLs9FgYZCnmPYIVFU4lRXCkyUw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/plugin-syntax-async-generators": "^7.8.4", "@babel/plugin-syntax-bigint": "^7.8.3", @@ -1173,6 +1260,7 @@ "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", "dev": true, + "license": "MIT", "dependencies": { "babel-plugin-jest-hoist": "^29.6.3", "babel-preset-current-node-syntax": "^1.0.0" @@ -1188,13 +1276,15 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, + "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -1205,6 +1295,7 @@ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, + "license": "MIT", "dependencies": { "fill-range": "^7.1.1" }, @@ -1213,9 +1304,9 @@ } }, "node_modules/browserslist": { - "version": "4.24.2", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.2.tgz", - "integrity": "sha512-ZIc+Q62revdMcqC6aChtW4jz3My3klmCO1fEmINZY/8J3EpBg5/A/D0AKmBveUh6pgoeycoMkVMko84tuYS+Gg==", + "version": "4.24.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz", + "integrity": "sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==", "dev": true, "funding": [ { @@ -1231,10 +1322,11 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { - "caniuse-lite": "^1.0.30001669", - "electron-to-chromium": "^1.5.41", - "node-releases": "^2.0.18", + "caniuse-lite": "^1.0.30001688", + "electron-to-chromium": "^1.5.73", + "node-releases": "^2.0.19", "update-browserslist-db": "^1.1.1" }, "bin": { @@ -1249,6 +1341,7 @@ "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", "dev": true, + "license": "MIT", "dependencies": { "fast-json-stable-stringify": "2.x" }, @@ -1261,6 +1354,7 @@ "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", "dev": true, + "license": "Apache-2.0", "dependencies": { "node-int64": "^0.4.0" } @@ -1268,19 +1362,22 @@ "node_modules/buffer-equal-constant-time": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", - "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "license": "BSD-3-Clause" }, "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -1290,14 +1387,15 @@ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/caniuse-lite": { - "version": "1.0.30001686", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001686.tgz", - "integrity": "sha512-Y7deg0Aergpa24M3qLC5xjNklnKnhsmSyR/V89dLZ1n0ucJIFNs7PgR2Yfa/Zf6W79SbBicgtGxZr2juHkEUIA==", + "version": "1.0.30001690", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001690.tgz", + "integrity": "sha512-5ExiE3qQN6oF8Clf8ifIDcMRCRE/dMGcETG/XGMD8/XiXm6HXQgQTh1yZYLXXpSOsEUlJm1Xr7kGULZTuGtP/w==", "dev": true, "funding": [ { @@ -1312,13 +1410,15 @@ "type": "github", "url": "https://github.com/sponsors/ai" } - ] + ], + "license": "CC-BY-4.0" }, "node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -1335,6 +1435,7 @@ "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" } @@ -1350,6 +1451,7 @@ "url": "https://github.com/sponsors/sibiraj-s" } ], + "license": "MIT", "engines": { "node": ">=8" } @@ -1358,13 +1460,15 @@ "version": "1.4.1", "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.1.tgz", "integrity": "sha512-cuSVIHi9/9E/+821Qjdvngor+xpnlwnuwIyZOaLmHBVdXL+gP+I6QQB9VkO7RI77YIcTV+S1W9AreJ5eN63JBA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/cliui": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, + "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", @@ -1379,6 +1483,7 @@ "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", "dev": true, + "license": "MIT", "engines": { "iojs": ">= 1.0.0", "node": ">= 0.12.0" @@ -1388,13 +1493,15 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -1406,12 +1513,14 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", "dependencies": { "delayed-stream": "~1.0.0" }, @@ -1423,19 +1532,22 @@ "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/create-jest": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "chalk": "^4.0.0", @@ -1457,6 +1569,7 @@ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, + "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -1467,10 +1580,11 @@ } }, "node_modules/debug": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", - "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", "dev": true, + "license": "MIT", "dependencies": { "ms": "^2.1.3" }, @@ -1488,6 +1602,7 @@ "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.3.tgz", "integrity": "sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ==", "dev": true, + "license": "MIT", "peerDependencies": { "babel-plugin-macros": "^3.1.0" }, @@ -1502,6 +1617,7 @@ "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -1510,6 +1626,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", "engines": { "node": ">=0.4.0" } @@ -1519,6 +1636,7 @@ "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -1528,6 +1646,7 @@ "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } @@ -1536,21 +1655,24 @@ "version": "1.0.11", "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "license": "Apache-2.0", "dependencies": { "safe-buffer": "^5.0.1" } }, "node_modules/electron-to-chromium": { - "version": "1.5.70", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.70.tgz", - "integrity": "sha512-P6FPqAWIZrC3sHDAwBitJBs7N7IF58m39XVny7DFseQXK2eiMn7nNQizFf63mWDDUnFvaqsM8FI0+ZZfLkdUGA==", - "dev": true + "version": "1.5.79", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.79.tgz", + "integrity": "sha512-nYOxJNxQ9Om4EC88BE4pPoNI8xwSFf8pU/BAeOl4Hh/b/i6V4biTAzwV7pXi3ARKeoYO5JZKMIXTryXSVer5RA==", + "dev": true, + "license": "ISC" }, "node_modules/emittery": { "version": "0.13.1", "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=12" }, @@ -1562,13 +1684,15 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", "dev": true, + "license": "MIT", "dependencies": { "is-arrayish": "^0.2.1" } @@ -1578,6 +1702,7 @@ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -1587,6 +1712,7 @@ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -1596,6 +1722,7 @@ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "dev": true, + "license": "BSD-2-Clause", "bin": { "esparse": "bin/esparse.js", "esvalidate": "bin/esvalidate.js" @@ -1609,6 +1736,7 @@ "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", "dev": true, + "license": "MIT", "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", @@ -1641,6 +1769,7 @@ "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/expect-utils": "^29.7.0", "jest-get-type": "^29.6.3", @@ -1656,13 +1785,15 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/fb-watchman": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", "dev": true, + "license": "Apache-2.0", "dependencies": { "bser": "2.1.1" } @@ -1672,6 +1803,7 @@ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, + "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -1684,6 +1816,7 @@ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, + "license": "MIT", "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" @@ -1702,6 +1835,7 @@ "url": "https://github.com/sponsors/RubenVerborgh" } ], + "license": "MIT", "engines": { "node": ">=4.0" }, @@ -1715,6 +1849,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", + "license": "MIT", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", @@ -1728,7 +1863,8 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/fsevents": { "version": "2.3.3", @@ -1736,6 +1872,7 @@ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, "hasInstallScript": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -1749,6 +1886,7 @@ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true, + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -1758,6 +1896,7 @@ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -1767,6 +1906,7 @@ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true, + "license": "ISC", "engines": { "node": "6.* || 8.* || >= 10.*" } @@ -1776,6 +1916,7 @@ "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=8.0.0" } @@ -1785,6 +1926,7 @@ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -1798,6 +1940,7 @@ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, + "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -1818,6 +1961,7 @@ "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -1826,13 +1970,15 @@ "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -1842,6 +1988,7 @@ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", "dev": true, + "license": "MIT", "dependencies": { "function-bind": "^1.1.2" }, @@ -1853,13 +2000,15 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/human-signals": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true, + "license": "Apache-2.0", "engines": { "node": ">=10.17.0" } @@ -1869,6 +2018,7 @@ "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", "dev": true, + "license": "MIT", "dependencies": { "pkg-dir": "^4.2.0", "resolve-cwd": "^3.0.0" @@ -1888,6 +2038,7 @@ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.8.19" } @@ -1898,6 +2049,7 @@ "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", "dev": true, + "license": "ISC", "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -1907,19 +2059,22 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/is-core-module": { - "version": "2.15.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.1.tgz", - "integrity": "sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==", + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", "dev": true, + "license": "MIT", "dependencies": { "hasown": "^2.0.2" }, @@ -1935,6 +2090,7 @@ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -1944,6 +2100,7 @@ "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -1953,6 +2110,7 @@ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.12.0" } @@ -1962,6 +2120,7 @@ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" }, @@ -1973,13 +2132,15 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/istanbul-lib-coverage": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=8" } @@ -1989,6 +2150,7 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "@babel/core": "^7.23.9", "@babel/parser": "^7.23.9", @@ -2005,6 +2167,7 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -2017,6 +2180,7 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "istanbul-lib-coverage": "^3.0.0", "make-dir": "^4.0.0", @@ -2031,6 +2195,7 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "debug": "^4.1.1", "istanbul-lib-coverage": "^3.0.0", @@ -2045,6 +2210,7 @@ "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "html-escaper": "^2.0.0", "istanbul-lib-report": "^3.0.0" @@ -2058,6 +2224,7 @@ "resolved": "https://registry.npmjs.org/jest/-/jest-29.4.2.tgz", "integrity": "sha512-+5hLd260vNIHu+7ZgMIooSpKl7Jp5pHKb51e73AJU3owd5dEo/RfVwHbA/na3C/eozrt3hJOLGf96c7EWwIAzg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/core": "^29.4.2", "@jest/types": "^29.4.2", @@ -2084,6 +2251,7 @@ "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", "dev": true, + "license": "MIT", "dependencies": { "execa": "^5.0.0", "jest-util": "^29.7.0", @@ -2098,6 +2266,7 @@ "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", "@jest/expect": "^29.7.0", @@ -2129,6 +2298,7 @@ "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/core": "^29.7.0", "@jest/test-result": "^29.7.0", @@ -2162,6 +2332,7 @@ "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@jest/test-sequencer": "^29.7.0", @@ -2207,6 +2378,7 @@ "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^4.0.0", "diff-sequences": "^29.6.3", @@ -2222,6 +2394,7 @@ "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", "dev": true, + "license": "MIT", "dependencies": { "detect-newline": "^3.0.0" }, @@ -2234,6 +2407,7 @@ "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "chalk": "^4.0.0", @@ -2250,6 +2424,7 @@ "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", "@jest/fake-timers": "^29.7.0", @@ -2267,6 +2442,7 @@ "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } @@ -2276,6 +2452,7 @@ "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@types/graceful-fs": "^4.1.3", @@ -2301,6 +2478,7 @@ "resolved": "https://registry.npmjs.org/jest-junit/-/jest-junit-14.0.1.tgz", "integrity": "sha512-h7/wwzPbllgpQhhVcRzRC76/cc89GlazThoV1fDxcALkf26IIlRsu/AcTG64f4nR2WPE3Cbd+i/sVf+NCUHrWQ==", "dev": true, + "license": "Apache-2.0", "dependencies": { "mkdirp": "^1.0.4", "strip-ansi": "^6.0.1", @@ -2316,6 +2494,7 @@ "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", "dev": true, + "license": "MIT", "dependencies": { "jest-get-type": "^29.6.3", "pretty-format": "^29.7.0" @@ -2329,6 +2508,7 @@ "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^4.0.0", "jest-diff": "^29.7.0", @@ -2344,6 +2524,7 @@ "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", "dev": true, + "license": "MIT", "dependencies": { "@babel/code-frame": "^7.12.13", "@jest/types": "^29.6.3", @@ -2364,6 +2545,7 @@ "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@types/node": "*", @@ -2378,6 +2560,7 @@ "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" }, @@ -2395,6 +2578,7 @@ "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } @@ -2404,6 +2588,7 @@ "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^4.0.0", "graceful-fs": "^4.2.9", @@ -2424,6 +2609,7 @@ "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", "dev": true, + "license": "MIT", "dependencies": { "jest-regex-util": "^29.6.3", "jest-snapshot": "^29.7.0" @@ -2437,6 +2623,7 @@ "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/console": "^29.7.0", "@jest/environment": "^29.7.0", @@ -2469,6 +2656,7 @@ "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", "@jest/fake-timers": "^29.7.0", @@ -2502,6 +2690,7 @@ "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@babel/generator": "^7.7.2", @@ -2533,6 +2722,7 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -2545,6 +2735,7 @@ "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@types/node": "*", @@ -2562,6 +2753,7 @@ "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "camelcase": "^6.2.0", @@ -2579,6 +2771,7 @@ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -2591,6 +2784,7 @@ "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", "dev": true, + "license": "MIT", "dependencies": { "@jest/test-result": "^29.7.0", "@jest/types": "^29.6.3", @@ -2610,6 +2804,7 @@ "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*", "jest-util": "^29.7.0", @@ -2625,6 +2820,7 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -2639,13 +2835,15 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/js-yaml": { "version": "3.14.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dev": true, + "license": "MIT", "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -2655,10 +2853,11 @@ } }, "node_modules/jsesc": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz", - "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", "dev": true, + "license": "MIT", "bin": { "jsesc": "bin/jsesc" }, @@ -2670,13 +2869,15 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, + "license": "MIT", "bin": { "json5": "lib/cli.js" }, @@ -2685,9 +2886,10 @@ } }, "node_modules/jsonwebtoken": { - "version": "8.5.1", - "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz", - "integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==", + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz", + "integrity": "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==", + "license": "MIT", "dependencies": { "jws": "^3.2.2", "lodash.includes": "^4.3.0", @@ -2698,25 +2900,30 @@ "lodash.isstring": "^4.0.1", "lodash.once": "^4.0.0", "ms": "^2.1.1", - "semver": "^5.6.0" + "semver": "^7.5.4" }, "engines": { - "node": ">=4", - "npm": ">=1.4.28" + "node": ">=12", + "npm": ">=6" } }, "node_modules/jsonwebtoken/node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "license": "ISC", "bin": { - "semver": "bin/semver" + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, "node_modules/jwa": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", + "license": "MIT", "dependencies": { "buffer-equal-constant-time": "1.0.1", "ecdsa-sig-formatter": "1.0.11", @@ -2727,6 +2934,7 @@ "version": "3.2.2", "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "license": "MIT", "dependencies": { "jwa": "^1.4.1", "safe-buffer": "^5.0.1" @@ -2737,6 +2945,7 @@ "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -2746,6 +2955,7 @@ "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -2754,13 +2964,15 @@ "version": "1.2.4", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/locate-path": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, + "license": "MIT", "dependencies": { "p-locate": "^4.1.0" }, @@ -2771,49 +2983,58 @@ "node_modules/lodash.includes": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", - "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==" + "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==", + "license": "MIT" }, "node_modules/lodash.isboolean": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", - "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==" + "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==", + "license": "MIT" }, "node_modules/lodash.isinteger": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", - "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==" + "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==", + "license": "MIT" }, "node_modules/lodash.isnumber": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", - "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==" + "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==", + "license": "MIT" }, "node_modules/lodash.isplainobject": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==" + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", + "license": "MIT" }, "node_modules/lodash.isstring": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", - "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==" + "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==", + "license": "MIT" }, "node_modules/lodash.memoize": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.once": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", - "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==" + "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", + "license": "MIT" }, "node_modules/lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, + "license": "ISC", "dependencies": { "yallist": "^3.0.2" } @@ -2823,6 +3044,7 @@ "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", "dev": true, + "license": "MIT", "dependencies": { "semver": "^7.5.3" }, @@ -2838,6 +3060,7 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -2849,13 +3072,15 @@ "version": "1.3.6", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/makeerror": { "version": "1.0.12", "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "tmpl": "1.0.5" } @@ -2864,13 +3089,15 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/micromatch": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, + "license": "MIT", "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" @@ -2883,6 +3110,7 @@ "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -2891,6 +3119,7 @@ "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", "dependencies": { "mime-db": "1.52.0" }, @@ -2903,6 +3132,7 @@ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -2912,6 +3142,7 @@ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, + "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -2924,6 +3155,7 @@ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", "dev": true, + "license": "MIT", "bin": { "mkdirp": "bin/cmd.js" }, @@ -2934,31 +3166,36 @@ "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/node-int64": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/node-releases": { - "version": "2.0.18", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz", - "integrity": "sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==", - "dev": true + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", + "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", + "dev": true, + "license": "MIT" }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -2968,6 +3205,7 @@ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, + "license": "MIT", "dependencies": { "path-key": "^3.0.0" }, @@ -2980,6 +3218,7 @@ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dev": true, + "license": "ISC", "dependencies": { "wrappy": "1" } @@ -2989,6 +3228,7 @@ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, + "license": "MIT", "dependencies": { "mimic-fn": "^2.1.0" }, @@ -3004,6 +3244,7 @@ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, + "license": "MIT", "dependencies": { "yocto-queue": "^0.1.0" }, @@ -3019,6 +3260,7 @@ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, + "license": "MIT", "dependencies": { "p-limit": "^2.2.0" }, @@ -3031,6 +3273,7 @@ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, + "license": "MIT", "dependencies": { "p-try": "^2.0.0" }, @@ -3046,6 +3289,7 @@ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -3055,6 +3299,7 @@ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/code-frame": "^7.0.0", "error-ex": "^1.3.1", @@ -3073,6 +3318,7 @@ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -3082,6 +3328,7 @@ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -3091,6 +3338,7 @@ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -3099,19 +3347,22 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8.6" }, @@ -3124,6 +3375,7 @@ "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 6" } @@ -3133,6 +3385,7 @@ "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, + "license": "MIT", "dependencies": { "find-up": "^4.0.0" }, @@ -3143,13 +3396,15 @@ "node_modules/platform": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/platform/-/platform-1.3.6.tgz", - "integrity": "sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg==" + "integrity": "sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg==", + "license": "MIT" }, "node_modules/pretty-format": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/schemas": "^29.6.3", "ansi-styles": "^5.0.0", @@ -3164,6 +3419,7 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -3176,6 +3432,7 @@ "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", "dev": true, + "license": "MIT", "dependencies": { "kleur": "^3.0.3", "sisteransi": "^1.0.5" @@ -3187,7 +3444,8 @@ "node_modules/proxy-from-env": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "license": "MIT" }, "node_modules/pure-rand": { "version": "6.1.0", @@ -3203,36 +3461,43 @@ "type": "opencollective", "url": "https://opencollective.com/fast-check" } - ] + ], + "license": "MIT" }, "node_modules/react-is": { "version": "18.3.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/resolve": { - "version": "1.22.8", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", - "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", "dev": true, + "license": "MIT", "dependencies": { - "is-core-module": "^2.13.0", + "is-core-module": "^2.16.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" }, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -3242,6 +3507,7 @@ "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "dev": true, + "license": "MIT", "dependencies": { "resolve-from": "^5.0.0" }, @@ -3254,6 +3520,7 @@ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -3263,6 +3530,7 @@ "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" } @@ -3284,13 +3552,15 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" }, "node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" } @@ -3300,6 +3570,7 @@ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, + "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" }, @@ -3312,6 +3583,7 @@ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -3320,19 +3592,22 @@ "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/sisteransi": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -3342,6 +3617,7 @@ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } @@ -3351,6 +3627,7 @@ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", "dev": true, + "license": "MIT", "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -3360,13 +3637,15 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true + "dev": true, + "license": "BSD-3-Clause" }, "node_modules/stack-utils": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", "dev": true, + "license": "MIT", "dependencies": { "escape-string-regexp": "^2.0.0" }, @@ -3379,6 +3658,7 @@ "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", "dev": true, + "license": "MIT", "dependencies": { "char-regex": "^1.0.2", "strip-ansi": "^6.0.0" @@ -3392,6 +3672,7 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, + "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -3406,6 +3687,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -3418,6 +3700,7 @@ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -3427,6 +3710,7 @@ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -3436,6 +3720,7 @@ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" }, @@ -3448,6 +3733,7 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -3460,6 +3746,7 @@ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -3472,6 +3759,7 @@ "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", "dev": true, + "license": "ISC", "dependencies": { "@istanbuljs/schema": "^0.1.2", "glob": "^7.1.4", @@ -3485,13 +3773,15 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", - "dev": true + "dev": true, + "license": "BSD-3-Clause" }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, + "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, @@ -3504,6 +3794,7 @@ "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.0.5.tgz", "integrity": "sha512-PL3UciSgIpQ7f6XjVOmbi96vmDHUqAyqDr8YxzopDqX3kfgYtX1cuNeBjP+L9sFXi6nzsGGA6R3fP3DDDJyrxA==", "dev": true, + "license": "MIT", "dependencies": { "bs-logger": "0.x", "fast-json-stable-stringify": "2.x", @@ -3547,6 +3838,7 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -3559,6 +3851,7 @@ "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -3568,6 +3861,7 @@ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true, + "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -3580,6 +3874,7 @@ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", "dev": true, + "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -3589,9 +3884,9 @@ } }, "node_modules/update-browserslist-db": { - "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==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.2.tgz", + "integrity": "sha512-PPypAm5qvlD7XMZC3BujecnaOxwhrtoFR+Dqkk5Aa/6DssiH0ibKoketaj9w8LP7Bont1rYeoV5plxD7RTEPRg==", "dev": true, "funding": [ { @@ -3607,9 +3902,10 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { "escalade": "^3.2.0", - "picocolors": "^1.1.0" + "picocolors": "^1.1.1" }, "bin": { "update-browserslist-db": "cli.js" @@ -3622,6 +3918,7 @@ "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "license": "MIT", "bin": { "uuid": "dist/bin/uuid" } @@ -3631,6 +3928,7 @@ "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", "dev": true, + "license": "ISC", "dependencies": { "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", @@ -3645,6 +3943,7 @@ "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", "dev": true, + "license": "Apache-2.0", "dependencies": { "makeerror": "1.0.12" } @@ -3654,6 +3953,7 @@ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, + "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -3669,6 +3969,7 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -3685,13 +3986,15 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/write-file-atomic": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, + "license": "ISC", "dependencies": { "imurmurhash": "^0.1.4", "signal-exit": "^3.0.7" @@ -3704,13 +4007,15 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/xml/-/xml-1.0.1.tgz", "integrity": "sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true, + "license": "ISC", "engines": { "node": ">=10" } @@ -3719,13 +4024,15 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/yargs": { "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "dev": true, + "license": "MIT", "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", @@ -3744,6 +4051,7 @@ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", "dev": true, + "license": "ISC", "engines": { "node": ">=12" } @@ -3753,6 +4061,7 @@ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, diff --git a/package.json b/package.json index 77ad8ea..985015d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fireblocks/ts-sdk", - "version": "6.0.0", + "version": "0.0.0", "description": "OpenAPI client for @fireblocks/ts-sdk", "author": "Fireblocks SDK Generator", "repository": { @@ -27,13 +27,13 @@ "test:cov": "jest --coverage" }, "dependencies": { - "jsonwebtoken": "8.5.1", + "jsonwebtoken": "^9.0.2", "uuid": "8.3.2", "platform": "1.3.6", "axios": "^1.6.7" }, "devDependencies": { - "@types/jsonwebtoken": "^8.5.1", + "@types/jsonwebtoken": "^9.0.2", "@types/uuid": "^8.3.2", "@types/platform": "^1.3.6", "@types/node": "^12.11.5", diff --git a/tests/client.spec.ts b/tests/client.spec.ts index 720767b..3cdb157 100644 --- a/tests/client.spec.ts +++ b/tests/client.spec.ts @@ -15,6 +15,7 @@ import { ApiUserApi, AssetsApi, AuditLogsApi, BlockchainsAssetsApi, +BlockchainsAssetsBetaApi, ComplianceApi, ComplianceScreeningConfigurationApi, ConsoleUserApi, @@ -23,6 +24,7 @@ ContractTemplatesApi, ContractsApi, CosignersBetaApi, DeployedContractsApi, +EmbeddedWalletsApi, ExchangeAccountsApi, ExternalWalletsApi, FiatAccountsApi, @@ -30,6 +32,7 @@ GasStationsApi, InternalWalletsApi, JobManagementApi, KeyLinkBetaApi, +KeysBetaApi, NFTsApi, NetworkConnectionsApi, OTABetaApi, @@ -38,7 +41,7 @@ PaymentsPayoutApi, PolicyEditorBetaApi, ResetDeviceApi, SmartTransferApi, -StakingBetaApi, +StakingApi, TokenizationApi, TransactionsApi, TravelRuleBetaApi, @@ -47,6 +50,7 @@ UsersApi, VaultsApi, Web3ConnectionsApi, WebhooksApi, +WebhooksV2BetaApi, WhitelistIpAddressesApi, WorkspaceStatusBetaApi } from '../api'; @@ -58,6 +62,7 @@ let mockApiUserApi: jest.Mock; let mockAssetsApi: jest.Mock; let mockAuditLogsApi: jest.Mock; let mockBlockchainsAssetsApi: jest.Mock; +let mockBlockchainsAssetsBetaApi: jest.Mock; let mockComplianceApi: jest.Mock; let mockComplianceScreeningConfigurationApi: jest.Mock; let mockConsoleUserApi: jest.Mock; @@ -66,6 +71,7 @@ let mockContractTemplatesApi: jest.Mock; let mockContractsApi: jest.Mock; let mockCosignersBetaApi: jest.Mock; let mockDeployedContractsApi: jest.Mock; +let mockEmbeddedWalletsApi: jest.Mock; let mockExchangeAccountsApi: jest.Mock; let mockExternalWalletsApi: jest.Mock; let mockFiatAccountsApi: jest.Mock; @@ -73,6 +79,7 @@ let mockGasStationsApi: jest.Mock; let mockInternalWalletsApi: jest.Mock; let mockJobManagementApi: jest.Mock; let mockKeyLinkBetaApi: jest.Mock; +let mockKeysBetaApi: jest.Mock; let mockNFTsApi: jest.Mock; let mockNetworkConnectionsApi: jest.Mock; let mockOTABetaApi: jest.Mock; @@ -81,7 +88,7 @@ let mockPaymentsPayoutApi: jest.Mock; let mockPolicyEditorBetaApi: jest.Mock; let mockResetDeviceApi: jest.Mock; let mockSmartTransferApi: jest.Mock; -let mockStakingBetaApi: jest.Mock; +let mockStakingApi: jest.Mock; let mockTokenizationApi: jest.Mock; let mockTransactionsApi: jest.Mock; let mockTravelRuleBetaApi: jest.Mock; @@ -90,6 +97,7 @@ let mockUsersApi: jest.Mock; let mockVaultsApi: jest.Mock; let mockWeb3ConnectionsApi: jest.Mock; let mockWebhooksApi: jest.Mock; +let mockWebhooksV2BetaApi: jest.Mock; let mockWhitelistIpAddressesApi: jest.Mock; let mockWorkspaceStatusBetaApi: jest.Mock; @@ -98,6 +106,7 @@ jest.mock('../api', () => { mockAssetsApi = jest.fn(); mockAuditLogsApi = jest.fn(); mockBlockchainsAssetsApi = jest.fn(); + mockBlockchainsAssetsBetaApi = jest.fn(); mockComplianceApi = jest.fn(); mockComplianceScreeningConfigurationApi = jest.fn(); mockConsoleUserApi = jest.fn(); @@ -106,6 +115,7 @@ jest.mock('../api', () => { mockContractsApi = jest.fn(); mockCosignersBetaApi = jest.fn(); mockDeployedContractsApi = jest.fn(); + mockEmbeddedWalletsApi = jest.fn(); mockExchangeAccountsApi = jest.fn(); mockExternalWalletsApi = jest.fn(); mockFiatAccountsApi = jest.fn(); @@ -113,6 +123,7 @@ jest.mock('../api', () => { mockInternalWalletsApi = jest.fn(); mockJobManagementApi = jest.fn(); mockKeyLinkBetaApi = jest.fn(); + mockKeysBetaApi = jest.fn(); mockNFTsApi = jest.fn(); mockNetworkConnectionsApi = jest.fn(); mockOTABetaApi = jest.fn(); @@ -121,7 +132,7 @@ jest.mock('../api', () => { mockPolicyEditorBetaApi = jest.fn(); mockResetDeviceApi = jest.fn(); mockSmartTransferApi = jest.fn(); - mockStakingBetaApi = jest.fn(); + mockStakingApi = jest.fn(); mockTokenizationApi = jest.fn(); mockTransactionsApi = jest.fn(); mockTravelRuleBetaApi = jest.fn(); @@ -130,6 +141,7 @@ jest.mock('../api', () => { mockVaultsApi = jest.fn(); mockWeb3ConnectionsApi = jest.fn(); mockWebhooksApi = jest.fn(); + mockWebhooksV2BetaApi = jest.fn(); mockWhitelistIpAddressesApi = jest.fn(); mockWorkspaceStatusBetaApi = jest.fn(); const actual = jest.requireActual('../api'); @@ -139,6 +151,7 @@ jest.mock('../api', () => { AssetsApi: mockAssetsApi, AuditLogsApi: mockAuditLogsApi, BlockchainsAssetsApi: mockBlockchainsAssetsApi, + BlockchainsAssetsBetaApi: mockBlockchainsAssetsBetaApi, ComplianceApi: mockComplianceApi, ComplianceScreeningConfigurationApi: mockComplianceScreeningConfigurationApi, ConsoleUserApi: mockConsoleUserApi, @@ -147,6 +160,7 @@ jest.mock('../api', () => { ContractsApi: mockContractsApi, CosignersBetaApi: mockCosignersBetaApi, DeployedContractsApi: mockDeployedContractsApi, + EmbeddedWalletsApi: mockEmbeddedWalletsApi, ExchangeAccountsApi: mockExchangeAccountsApi, ExternalWalletsApi: mockExternalWalletsApi, FiatAccountsApi: mockFiatAccountsApi, @@ -154,6 +168,7 @@ jest.mock('../api', () => { InternalWalletsApi: mockInternalWalletsApi, JobManagementApi: mockJobManagementApi, KeyLinkBetaApi: mockKeyLinkBetaApi, + KeysBetaApi: mockKeysBetaApi, NFTsApi: mockNFTsApi, NetworkConnectionsApi: mockNetworkConnectionsApi, OTABetaApi: mockOTABetaApi, @@ -162,7 +177,7 @@ jest.mock('../api', () => { PolicyEditorBetaApi: mockPolicyEditorBetaApi, ResetDeviceApi: mockResetDeviceApi, SmartTransferApi: mockSmartTransferApi, - StakingBetaApi: mockStakingBetaApi, + StakingApi: mockStakingApi, TokenizationApi: mockTokenizationApi, TransactionsApi: mockTransactionsApi, TravelRuleBetaApi: mockTravelRuleBetaApi, @@ -171,6 +186,7 @@ jest.mock('../api', () => { VaultsApi: mockVaultsApi, Web3ConnectionsApi: mockWeb3ConnectionsApi, WebhooksApi: mockWebhooksApi, + WebhooksV2BetaApi: mockWebhooksV2BetaApi, WhitelistIpAddressesApi: mockWhitelistIpAddressesApi, WorkspaceStatusBetaApi: mockWorkspaceStatusBetaApi, }; @@ -268,6 +284,10 @@ describe("Fireblocks Client Tests", () => { expect(fireblocks.blockchainsAssets).toBeInstanceOf(BlockchainsAssetsApi); expect(mockBlockchainsAssetsApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); }); + it('Should return BlockchainsAssetsBetaApi', async () => { + expect(fireblocks.blockchainsAssetsBeta).toBeInstanceOf(BlockchainsAssetsBetaApi); + expect(mockBlockchainsAssetsBetaApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); it('Should return ComplianceApi', async () => { expect(fireblocks.compliance).toBeInstanceOf(ComplianceApi); expect(mockComplianceApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); @@ -300,6 +320,10 @@ describe("Fireblocks Client Tests", () => { expect(fireblocks.deployedContracts).toBeInstanceOf(DeployedContractsApi); expect(mockDeployedContractsApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); }); + it('Should return EmbeddedWalletsApi', async () => { + expect(fireblocks.embeddedWallets).toBeInstanceOf(EmbeddedWalletsApi); + expect(mockEmbeddedWalletsApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); it('Should return ExchangeAccountsApi', async () => { expect(fireblocks.exchangeAccounts).toBeInstanceOf(ExchangeAccountsApi); expect(mockExchangeAccountsApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); @@ -328,6 +352,10 @@ describe("Fireblocks Client Tests", () => { expect(fireblocks.keyLinkBeta).toBeInstanceOf(KeyLinkBetaApi); expect(mockKeyLinkBetaApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); }); + it('Should return KeysBetaApi', async () => { + expect(fireblocks.keysBeta).toBeInstanceOf(KeysBetaApi); + expect(mockKeysBetaApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); it('Should return NFTsApi', async () => { expect(fireblocks.nfts).toBeInstanceOf(NFTsApi); expect(mockNFTsApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); @@ -360,9 +388,9 @@ describe("Fireblocks Client Tests", () => { expect(fireblocks.smartTransfer).toBeInstanceOf(SmartTransferApi); expect(mockSmartTransferApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); }); - it('Should return StakingBetaApi', async () => { - expect(fireblocks.stakingBeta).toBeInstanceOf(StakingBetaApi); - expect(mockStakingBetaApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + it('Should return StakingApi', async () => { + expect(fireblocks.staking).toBeInstanceOf(StakingApi); + expect(mockStakingApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); }); it('Should return TokenizationApi', async () => { expect(fireblocks.tokenization).toBeInstanceOf(TokenizationApi); @@ -396,6 +424,10 @@ describe("Fireblocks Client Tests", () => { expect(fireblocks.webhooks).toBeInstanceOf(WebhooksApi); expect(mockWebhooksApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); }); + it('Should return WebhooksV2BetaApi', async () => { + expect(fireblocks.webhooksV2Beta).toBeInstanceOf(WebhooksV2BetaApi); + expect(mockWebhooksV2BetaApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); it('Should return WhitelistIpAddressesApi', async () => { expect(fireblocks.whitelistIpAddresses).toBeInstanceOf(WhitelistIpAddressesApi); expect(mockWhitelistIpAddressesApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios);