diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 95513a8..778a077 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,123 +1,809 @@ .gitignore .npmignore .openapi-generator-ignore +APIUser.md +APIUsers.md +AbiFunction.md +Account.md +AccountType.md +AddAssetToExternalWalletRequest.md +AddAssetToExternalWalletRequestOneOf.md +AddAssetToExternalWalletRequestOneOf1.md +AddAssetToExternalWalletRequestOneOf1AdditionalInfo.md +AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.md +AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.md +AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.md +AddCollateralRequestBody.md +AddContractAssetRequest.md +AdditionalInfoDto.md +AmlRegistrationResult.md +AmlScreeningResult.md +AmountAggregationTimePeriodMethod.md +AmountAndChainDescriptor.md +AmountInfo.md +ApiKey.md +ApiKeysPaginatedResponse.md +ApiUserApi.md +AssetAlreadyExistHttpError.md +AssetAmount.md +AssetBadRequestErrorResponse.md +AssetConflictErrorResponse.md +AssetDoesNotExistHttpError.md +AssetForbiddenErrorResponse.md +AssetInternalServerErrorResponse.md +AssetMetadataDto.md +AssetNotFoundErrorResponse.md +AssetResponse.md +AssetResponseMetadata.md +AssetResponseOnchain.md +AssetTypeResponse.md +AssetWallet.md +AssetsApi.md +AuditLogData.md +AuditLogsApi.md +AuditLogsData.md +AuditorData.md +AuthorizationGroups.md +AuthorizationInfo.md +BlockInfo.md +BlockchainsAssetsApi.md +CancelTransactionResponse.md +ChainInfoResponseDto.md +CollectionMetadataDto.md +CollectionOwnershipResponse.md +ComplianceApi.md +ComplianceResult.md +ComplianceScreeningConfigurationApi.md +ComplianceScreeningResult.md +ConfigChangeRequestStatus.md +ConfigConversionOperationSnapshot.md +ConfigDisbursementOperationSnapshot.md +ConfigOperation.md +ConfigOperationSnapshot.md +ConfigOperationStatus.md +ConfigTransferOperationSnapshot.md +ConsoleUser.md +ConsoleUserApi.md +ConsoleUsers.md +ContractAbiResponseDto.md +ContractAttributes.md +ContractDeployRequest.md +ContractDeployResponse.md +ContractDoc.md +ContractInteractionsApi.md +ContractMetadataDto.md +ContractTemplateDto.md +ContractTemplatesApi.md +ContractUploadRequest.md +ContractsApi.md +ConversionConfigOperation.md +ConversionOperationConfigParams.md +ConversionOperationExecution.md +ConversionOperationExecutionOutput.md +ConversionOperationExecutionParams.md +ConversionOperationExecutionParamsExecutionParams.md +ConversionOperationFailure.md +ConversionOperationPreview.md +ConversionOperationPreviewOutput.md +ConversionOperationType.md +ConversionValidationFailure.md +ConvertAssetsRequest.md +ConvertAssetsResponse.md +Cosigner.md +CosignersBetaApi.md +CosignersPaginatedResponse.md +CreateAPIUser.md +CreateAddressRequest.md +CreateAddressResponse.md +CreateAssetsBulkRequest.md +CreateAssetsRequest.md +CreateConfigOperationRequest.md +CreateConnectionRequest.md +CreateConnectionResponse.md +CreateConsoleUser.md +CreateContractRequest.md +CreateConversionConfigOperationRequest.md +CreateDisbursementConfigOperationRequest.md +CreateInternalTransferRequest.md +CreateInternalWalletAssetRequest.md +CreateMultipleAccountsRequest.md +CreateNcwConnectionRequest.md +CreateNetworkIdRequest.md +CreatePayoutRequest.md +CreateSigningKeyDto.md +CreateTokenRequestDto.md +CreateTokenRequestDtoCreateParams.md +CreateTransactionResponse.md +CreateTransferConfigOperationRequest.md +CreateUserGroupResponse.md +CreateValidationKeyDto.md +CreateValidationKeyResponseDto.md +CreateVaultAccountConnectionRequest.md +CreateVaultAccountRequest.md +CreateVaultAssetResponse.md +CreateWalletRequest.md +CreateWorkflowExecutionRequestParamsInner.md +CustomRoutingDest.md +DefaultNetworkRoutingDest.md +DelegationDto.md +DelegationSummaryDto.md +DeleteNetworkConnectionResponse.md +DeleteNetworkIdResponse.md +DeployedContractResponseDto.md +DeployedContractsApi.md +DeployedContractsPaginatedResponse.md +DepositFundsFromLinkedDDAResponse.md +Destination.md +DestinationTransferPeerPath.md +DestinationTransferPeerPathResponse.md +DisbursementAmountInstruction.md +DisbursementConfigOperation.md +DisbursementInstruction.md +DisbursementInstructionOutput.md +DisbursementOperationConfigParams.md +DisbursementOperationExecution.md +DisbursementOperationExecutionOutput.md +DisbursementOperationExecutionParams.md +DisbursementOperationExecutionParamsExecutionParams.md +DisbursementOperationInput.md +DisbursementOperationPreview.md +DisbursementOperationPreviewOutput.md +DisbursementOperationPreviewOutputInstructionSetInner.md +DisbursementOperationType.md +DisbursementPercentageInstruction.md +DisbursementValidationFailure.md +DispatchPayoutResponse.md +DraftResponse.md +DraftReviewAndValidationResponse.md +DropTransactionRequest.md +DropTransactionResponse.md +EVMTokenCreateParamsDto.md +EditGasStationConfigurationResponse.md +ErrorResponse.md +ErrorResponseError.md +ErrorSchema.md +EstimatedNetworkFeeResponse.md +EstimatedTransactionFeeResponse.md +ExchangeAccount.md +ExchangeAccountsApi.md +ExchangeAccountsPaged.md +ExchangeAccountsPagedPaging.md +ExchangeAsset.md +ExchangeSettlementTransactionsResponse.md +ExchangeTradingAccount.md +ExchangeType.md +ExecuteActionRequest.md +ExecuteActionResponse.md +ExecutionConversionOperation.md +ExecutionDisbursementOperation.md +ExecutionOperationStatus.md +ExecutionScreeningOperation.md +ExecutionTransferOperation.md +ExternalWalletAsset.md +ExternalWalletsApi.md +FeeInfo.md +FiatAccount.md +FiatAccountType.md +FiatAccountsApi.md +FiatAsset.md +FreezeTransactionResponse.md +FunctionDoc.md +Funds.md +GasStationConfiguration.md +GasStationConfigurationResponse.md +GasStationPropertiesResponse.md +GasStationsApi.md +GetAPIUsersResponse.md +GetAuditLogsResponse.md +GetAuditLogsResponseDTO.md +GetConnectionsResponse.md +GetConsoleUsersResponse.md +GetContractsResponse.md +GetExchangeAccountsResponse.md +GetExternalWalletsResponse.md +GetFiatAccountsResponse.md +GetFilterParameter.md +GetInternalWalletsResponse.md +GetMaxSpendableAmountResponse.md +GetNFTsResponse.md +GetNetworkConnectionsResponse.md +GetNetworkIdsResponse.md +GetOtaStatusResponse.md +GetOwnershipTokensResponse.md +GetPagedExchangeAccountsResponse.md +GetRoutingPolicyAssetGroupsResponse.md +GetSigningKeyResponseDto.md +GetSupportedAssetsResponse.md +GetTransactionOperation.md +GetTransactionsResponse.md +GetUnspentInputsResponse.md +GetUsersResponse.md +GetValidationKeyResponseDto.md +GetVaultAccountAssetAddressesResponse.md +GetVaultAccountsResponse.md +GetVaultAssetsResponse.md +GetWhitelistIpAddressesResponse.md +GetWorkspaceStatusResponse.md +HttpContractDoesNotExistError.md +InstructionAmount.md +InternalTransferResponse.md +InternalWalletsApi.md +Job.md +JobCreated.md +JobManagementApi.md +Jobs.md +KeyLinkBetaApi.md +LICENSE +LeanAbiFunction.md +LeanContractDto.md +LeanDeployedContractResponseDto.md +ListOwnedCollectionsResponse.md +ListOwnedTokensResponse.md +MediaEntityResponse.md +ModifySigningKeyAgentIdDto.md +ModifySigningKeyDto.md +ModifyValidationKeyDto.md +NFTsApi.md +NetworkChannel.md +NetworkConnection.md +NetworkConnectionResponse.md +NetworkConnectionRoutingPolicy.md +NetworkConnectionRoutingPolicyValue.md +NetworkConnectionStatus.md +NetworkConnectionsApi.md +NetworkFee.md +NetworkId.md +NetworkIdResponse.md +NetworkIdRoutingPolicy.md +NetworkIdRoutingPolicyValue.md +NetworkRecord.md +NoneNetworkRoutingDest.md +NotFoundException.md +OTABetaApi.md +OffExchangesApi.md +OneTimeAddress.md +OneTimeAddressAccount.md +OperationExecutionFailure.md +PaginatedAddressResponse.md +PaginatedAddressResponsePaging.md +PaginatedAssetWalletResponse.md +PaginatedAssetWalletResponsePaging.md +Paging.md +Parameter.md +ParameterWithValue.md +ParameterWithValueList.md +PayeeAccount.md +PayeeAccountResponse.md +PayeeAccountType.md +PaymentAccount.md +PaymentAccountResponse.md +PaymentAccountType.md +PaymentsPayoutApi.md +PayoutInitMethod.md +PayoutInstruction.md +PayoutInstructionResponse.md +PayoutInstructionState.md +PayoutResponse.md +PayoutState.md +PayoutStatus.md +PolicyAndValidationResponse.md +PolicyCheckResult.md +PolicyEditorBetaApi.md +PolicyMetadata.md +PolicyResponse.md +PolicyRule.md +PolicyRuleAmount.md +PolicyRuleAmountAggregation.md +PolicyRuleAuthorizationGroups.md +PolicyRuleAuthorizationGroupsGroupsInner.md +PolicyRuleCheckResult.md +PolicyRuleDesignatedSigners.md +PolicyRuleDst.md +PolicyRuleError.md +PolicyRuleOperators.md +PolicyRuleRawMessageSigning.md +PolicyRuleRawMessageSigningDerivationPath.md +PolicyRuleSrc.md +PolicyRules.md +PolicySrcOrDestSubType.md +PolicySrcOrDestType.md +PolicyStatus.md +PolicyValidation.md +PreScreening.md +ProviderDto.md +PublicKeyInformation.md +PublishDraftRequest.md +PublishResult.md README.md +ReadAbiFunction.md +ReadCallFunctionDto.md +RedeemFundsToLinkedDDAResponse.md +RegisterNewAssetRequest.md +RelatedTransactionDto.md +RemoveCollateralRequestBody.md +RenameCosigner.md +RenameVaultAccountResponse.md +ResendTransactionWebhooksRequest.md +ResendWebhooksByTransactionIdResponse.md +ResendWebhooksResponse.md +ResetDeviceApi.md +RespondToConnectionRequest.md +RewardInfo.md +RewardsInfo.md +ScreeningConfigurationsRequest.md +ScreeningOperationExecution.md +ScreeningOperationExecutionOutput.md +ScreeningOperationFailure.md +ScreeningOperationType.md +ScreeningPolicyResponse.md +ScreeningProviderRulesConfigurationResponse.md +ScreeningUpdateConfigurationsRequest.md +ScreeningValidationFailure.md +ScreeningVerdict.md +ScreeningVerdictMatchedRule.md +SessionDTO.md +SessionMetadata.md +SetAdminQuorumThresholdRequest.md +SetAdminQuorumThresholdResponse.md +SetAutoFuelRequest.md +SetConfirmationsThresholdRequest.md +SetConfirmationsThresholdResponse.md +SetCustomerRefIdForAddressRequest.md +SetCustomerRefIdRequest.md +SetNetworkIdDiscoverabilityRequest.md +SetNetworkIdNameRequest.md +SetNetworkIdResponse.md +SetNetworkIdRoutingPolicyRequest.md +SetOtaStatusRequest.md +SetOtaStatusResponse.md +SetOtaStatusResponseOneOf.md +SetRoutingPolicyRequest.md +SetRoutingPolicyResponse.md +SettlementRequestBody.md +SettlementResponse.md +SignedMessage.md +SignedMessageSignature.md +SignedMessages.md +SigningKeyDto.md +SmartTransferApi.md +SmartTransferBadRequestResponse.md +SmartTransferCreateTicket.md +SmartTransferCreateTicketTerm.md +SmartTransferForbiddenResponse.md +SmartTransferFundTerm.md +SmartTransferManuallyFundTerm.md +SmartTransferNotFoundResponse.md +SmartTransferSetTicketExpiration.md +SmartTransferSetTicketExternalId.md +SmartTransferSetUserGroups.md +SmartTransferSubmitTicket.md +SmartTransferTicket.md +SmartTransferTicketFilteredResponse.md +SmartTransferTicketResponse.md +SmartTransferTicketTerm.md +SmartTransferTicketTermResponse.md +SmartTransferUpdateTicketTerm.md +SmartTransferUserGroups.md +SmartTransferUserGroupsResponse.md +SolanaBlockchainDataDto.md +SourceTransferPeerPath.md +SourceTransferPeerPathResponse.md +SpamOwnershipResponse.md +SpamTokenResponse.md +SrcOrDestAttributes.md +SrcOrDestAttributesInner.md +StakeRequestDto.md +StakeResponseDto.md +StakingBetaApi.md +StakingGetAllDelegationsResponse.md +StakingGetChainsResponse.md +StakingGetProvidersResponse.md +StakingGetSummaryByVaultResponse.md +StellarRippleCreateParamsDto.md +SystemMessageInfo.md +Task.md +Tasks.md +TemplatesPaginatedResponse.md +ThirdPartyRouting.md +ToCollateralTransaction.md +ToExchangeTransaction.md +TokenCollectionResponse.md +TokenLinkDto.md +TokenLinkDtoTokenMetadata.md +TokenLinkExistsHttpError.md +TokenLinkRequestDto.md +TokenOwnershipResponse.md +TokenOwnershipSpamUpdatePayload.md +TokenOwnershipStatusUpdatePayload.md +TokenResponse.md +TokenizationApi.md +TokensPaginatedResponse.md +TradingAccountType.md +Transaction.md +TransactionFee.md +TransactionOperation.md +TransactionRequest.md +TransactionRequestAmount.md +TransactionRequestDestination.md +TransactionRequestFee.md +TransactionRequestGasLimit.md +TransactionRequestGasPrice.md +TransactionRequestNetworkFee.md +TransactionRequestNetworkStaking.md +TransactionRequestPriorityFee.md +TransactionResponse.md +TransactionResponseContractCallDecodedData.md +TransactionResponseDestination.md +TransactionsApi.md +TransferConfigOperation.md +TransferOperationConfigParams.md +TransferOperationExecution.md +TransferOperationExecutionOutput.md +TransferOperationExecutionParams.md +TransferOperationExecutionParamsExecutionParams.md +TransferOperationFailure.md +TransferOperationFailureData.md +TransferOperationPreview.md +TransferOperationPreviewOutput.md +TransferOperationType.md +TransferPeerPathSubType.md +TransferPeerPathType.md +TransferValidationFailure.md +TravelRuleAddress.md +TravelRuleBetaApi.md +TravelRuleCreateTransactionRequest.md +TravelRuleGetAllVASPsResponse.md +TravelRuleIssuer.md +TravelRuleIssuers.md +TravelRuleOwnershipProof.md +TravelRulePiiIVMS.md +TravelRulePolicyRuleResponse.md +TravelRuleTransactionBlockchainInfo.md +TravelRuleUpdateVASPDetails.md +TravelRuleVASP.md +TravelRuleValidateFullTransactionRequest.md +TravelRuleValidateTransactionRequest.md +TravelRuleValidateTransactionResponse.md +UnfreezeTransactionResponse.md +UnmanagedWallet.md +UnspentInput.md +UnspentInputsResponse.md +UnstakeRequestDto.md +UpdateTokenOwnershipStatusDto.md +UpdateTokensOwnershipSpamRequest.md +UpdateTokensOwnershipStatusRequest.md +UpdateVaultAccountAssetAddressRequest.md +UpdateVaultAccountRequest.md +UserGroupCreateRequest.md +UserGroupCreateResponse.md +UserGroupResponse.md +UserGroupUpdateRequest.md +UserGroupsBetaApi.md +UserGroupsResponse.md +UserResponse.md +UserRole.md +UserStatus.md +UserType.md +UsersApi.md +ValidateAddressResponse.md +ValidationKeyDto.md +ValidatorDto.md +VaultAccount.md +VaultAccountsPagedResponse.md +VaultAccountsPagedResponsePaging.md +VaultActionStatus.md +VaultAsset.md +VaultWalletAddress.md +VaultsApi.md +VendorDto.md +WalletAsset.md +WalletAssetAdditionalInfo.md +Web3ConnectionsApi.md +WebhooksApi.md +WhitelistIpAddressesApi.md +WithdrawRequestDto.md +WorkflowConfigStatus.md +WorkflowConfigurationId.md +WorkflowExecutionOperation.md +WorkspaceStatusBetaApi.md +WriteAbiFunction.md +WriteCallFunctionDto.md +WriteCallFunctionResponseDto.md api.ts +api/api-user-api.ts +api/assets-api.ts api/audit-logs-api.ts +api/blockchains-assets-api.ts +api/compliance-api.ts +api/compliance-screening-configuration-api.ts +api/console-user-api.ts +api/contract-interactions-api.ts +api/contract-templates-api.ts api/contracts-api.ts +api/cosigners-beta-api.ts +api/deployed-contracts-api.ts api/exchange-accounts-api.ts api/external-wallets-api.ts api/fiat-accounts-api.ts api/gas-stations-api.ts api/internal-wallets-api.ts +api/job-management-api.ts +api/key-link-beta-api.ts api/network-connections-api.ts -api/nfts-beta-api.ts +api/nfts-api.ts api/off-exchanges-api.ts -api/payments-cross-border-settlement-api.ts +api/otabeta-api.ts api/payments-payout-api.ts -api/supported-assets-api.ts +api/policy-editor-beta-api.ts +api/reset-device-api.ts +api/smart-transfer-api.ts +api/staking-beta-api.ts +api/tokenization-api.ts api/transactions-api.ts api/travel-rule-beta-api.ts +api/user-groups-beta-api.ts api/users-api.ts api/vaults-api.ts api/web3-connections-api.ts api/webhooks-api.ts +api/whitelist-ip-addresses-api.ts +api/workspace-status-beta-api.ts base.ts +client/client.ts +client/clientConfiguration.ts common.ts configuration.ts +error/fireblocksError.ts git_push.sh index.ts -models/add-asset-to-contract-request.ts +models/abi-function.ts +models/account-type.ts +models/account.ts +models/add-asset-to-external-wallet-request-one-of.ts +models/add-asset-to-external-wallet-request-one-of1-additional-info-one-of.ts +models/add-asset-to-external-wallet-request-one-of1-additional-info-one-of1.ts +models/add-asset-to-external-wallet-request-one-of1-additional-info-one-of2.ts +models/add-asset-to-external-wallet-request-one-of1-additional-info.ts +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/aml-registration-result.ts models/aml-screening-result.ts +models/amount-aggregation-time-period-method.ts +models/amount-and-chain-descriptor.ts models/amount-info.ts +models/api-key.ts +models/api-keys-paginated-response.ts +models/apiuser.ts +models/apiusers.ts +models/asset-already-exist-http-error.ts +models/asset-amount.ts +models/asset-bad-request-error-response.ts +models/asset-conflict-error-response.ts +models/asset-does-not-exist-http-error.ts +models/asset-forbidden-error-response.ts +models/asset-internal-server-error-response.ts +models/asset-metadata-dto.ts +models/asset-not-found-error-response.ts +models/asset-response-metadata.ts +models/asset-response-onchain.ts +models/asset-response.ts models/asset-type-response.ts models/asset-wallet.ts +models/audit-log-data.ts +models/audit-logs-data.ts +models/auditor-data.ts models/authorization-groups.ts models/authorization-info.ts models/block-info.ts models/cancel-transaction-response.ts -models/check-third-party-routing-for-network-connection200-response.ts +models/chain-info-response-dto.ts +models/collection-metadata-dto.ts +models/collection-ownership-response.ts +models/compliance-result.ts +models/compliance-screening-result.ts models/config-change-request-status.ts -models/convert-exchange-account-request.ts +models/config-conversion-operation-snapshot.ts +models/config-disbursement-operation-snapshot.ts +models/config-operation-snapshot.ts +models/config-operation-status.ts +models/config-operation.ts +models/config-transfer-operation-snapshot.ts +models/console-user.ts +models/console-users.ts +models/contract-abi-response-dto.ts +models/contract-attributes.ts +models/contract-deploy-request.ts +models/contract-deploy-response.ts +models/contract-doc.ts +models/contract-metadata-dto.ts +models/contract-template-dto.ts +models/contract-upload-request.ts +models/conversion-config-operation.ts +models/conversion-operation-config-params.ts +models/conversion-operation-execution-output.ts +models/conversion-operation-execution-params-execution-params.ts +models/conversion-operation-execution-params.ts +models/conversion-operation-execution.ts +models/conversion-operation-failure.ts +models/conversion-operation-preview-output.ts +models/conversion-operation-preview.ts +models/conversion-operation-type.ts +models/conversion-validation-failure.ts +models/convert-assets-request.ts +models/convert-assets-response.ts +models/cosigner.ts +models/cosigners-paginated-response.ts +models/create-address-request.ts models/create-address-response.ts +models/create-apiuser.ts +models/create-assets-bulk-request.ts +models/create-assets-request.ts +models/create-config-operation-request.ts models/create-connection-request.ts -models/create-connection-response-session-metadata.ts models/create-connection-response.ts +models/create-console-user.ts models/create-contract-request.ts +models/create-conversion-config-operation-request.ts +models/create-disbursement-config-operation-request.ts models/create-internal-transfer-request.ts models/create-internal-wallet-asset-request.ts -models/create-internal-wallet-request.ts +models/create-multiple-accounts-request.ts +models/create-ncw-connection-request.ts models/create-network-id-request.ts models/create-payout-request.ts +models/create-signing-key-dto.ts +models/create-token-request-dto-create-params.ts +models/create-token-request-dto.ts models/create-transaction-response.ts -models/create-vault-account-asset-address-request.ts -models/create-vault-account-asset-request.ts +models/create-transfer-config-operation-request.ts +models/create-user-group-response.ts +models/create-validation-key-dto.ts +models/create-validation-key-response-dto.ts +models/create-vault-account-connection-request.ts models/create-vault-account-request.ts models/create-vault-asset-response.ts -models/custom-crypto-routing-dest.ts -models/custom-fiat-routing-dest.ts +models/create-wallet-request.ts +models/create-workflow-execution-request-params-inner.ts +models/custom-routing-dest.ts models/default-network-routing-dest.ts -models/destination-transfer-peer-path-all-of.ts -models/destination-transfer-peer-path-response-all-of.ts +models/delegation-dto.ts +models/delegation-summary-dto.ts +models/delete-network-connection-response.ts +models/delete-network-id-response.ts +models/deployed-contract-response-dto.ts +models/deployed-contracts-paginated-response.ts +models/deposit-funds-from-linked-ddaresponse.ts models/destination-transfer-peer-path-response.ts models/destination-transfer-peer-path.ts +models/destination.ts +models/disbursement-amount-instruction.ts +models/disbursement-config-operation.ts +models/disbursement-instruction-output.ts +models/disbursement-instruction.ts +models/disbursement-operation-config-params.ts +models/disbursement-operation-execution-output.ts +models/disbursement-operation-execution-params-execution-params.ts +models/disbursement-operation-execution-params.ts +models/disbursement-operation-execution.ts +models/disbursement-operation-input.ts +models/disbursement-operation-preview-output-instruction-set-inner.ts +models/disbursement-operation-preview-output.ts +models/disbursement-operation-preview.ts +models/disbursement-operation-type.ts +models/disbursement-percentage-instruction.ts +models/disbursement-validation-failure.ts models/dispatch-payout-response.ts +models/draft-response.ts +models/draft-review-and-validation-response.ts models/drop-transaction-request.ts models/drop-transaction-response.ts +models/edit-gas-station-configuration-response.ts models/error-response-error.ts models/error-response.ts +models/error-schema.ts models/estimated-network-fee-response.ts models/estimated-transaction-fee-response.ts +models/evmtoken-create-params-dto.ts models/exchange-account.ts +models/exchange-accounts-paged-paging.ts +models/exchange-accounts-paged.ts 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 +models/execution-screening-operation.ts +models/execution-transfer-operation.ts models/external-wallet-asset.ts models/fee-info.ts models/fiat-account-type.ts models/fiat-account.ts models/fiat-asset.ts models/freeze-transaction-response.ts +models/function-doc.ts +models/funds.ts +models/gas-station-configuration-response.ts models/gas-station-configuration.ts models/gas-station-properties-response.ts -models/get-connections-filter-parameter.ts +models/get-apiusers-response.ts +models/get-audit-logs-response-dto.ts +models/get-audit-logs-response.ts models/get-connections-response.ts -models/get-network-ids200-response-inner.ts -models/get-nfttokens200-response.ts -models/get-ownership-tokens200-response.ts +models/get-console-users-response.ts +models/get-contracts-response.ts +models/get-exchange-accounts-response.ts +models/get-external-wallets-response.ts +models/get-fiat-accounts-response.ts +models/get-filter-parameter.ts +models/get-internal-wallets-response.ts +models/get-max-spendable-amount-response.ts +models/get-network-connections-response.ts +models/get-network-ids-response.ts +models/get-nfts-response.ts +models/get-ota-status-response.ts +models/get-ownership-tokens-response.ts +models/get-paged-exchange-accounts-response.ts +models/get-routing-policy-asset-groups-response.ts +models/get-signing-key-response-dto.ts +models/get-supported-assets-response.ts models/get-transaction-operation.ts +models/get-transactions-response.ts +models/get-unspent-inputs-response.ts models/get-users-response.ts +models/get-validation-key-response-dto.ts +models/get-vault-account-asset-addresses-response.ts +models/get-vault-accounts-response.ts +models/get-vault-assets-response.ts +models/get-whitelist-ip-addresses-response.ts +models/get-workspace-status-response.ts +models/http-contract-does-not-exist-error.ts models/index.ts models/instruction-amount.ts +models/internal-transfer-response.ts +models/job-created.ts +models/job.ts +models/jobs.ts +models/lean-abi-function.ts +models/lean-contract-dto.ts +models/lean-deployed-contract-response-dto.ts +models/list-owned-collections-response.ts +models/list-owned-tokens-response.ts models/media-entity-response.ts -models/model-error.ts +models/modify-signing-key-agent-id-dto.ts +models/modify-signing-key-dto.ts +models/modify-validation-key-dto.ts models/network-channel.ts -models/network-connection-response-local-channel.ts -models/network-connection-response-remote-channel.ts models/network-connection-response.ts -models/network-connection-routing-policy-crypto.ts -models/network-connection-routing-policy-sen-test.ts -models/network-connection-routing-policy-sen.ts -models/network-connection-routing-policy-signet-test.ts -models/network-connection-routing-policy-signet.ts +models/network-connection-routing-policy-value.ts models/network-connection-routing-policy.ts +models/network-connection-status.ts models/network-connection.ts models/network-fee.ts -models/network-id-response-all-of.ts models/network-id-response.ts -models/network-id-routing-policy-crypto.ts -models/network-id-routing-policy-sen-test.ts -models/network-id-routing-policy-sen.ts +models/network-id-routing-policy-value.ts models/network-id-routing-policy.ts models/network-id.ts models/network-record.ts models/none-network-routing-dest.ts +models/not-found-exception.ts +models/one-time-address-account.ts models/one-time-address.ts +models/operation-execution-failure.ts +models/paginated-address-response-paging.ts +models/paginated-address-response.ts models/paginated-asset-wallet-response-paging.ts models/paginated-asset-wallet-response.ts models/paging.ts +models/parameter-with-value-list.ts +models/parameter-with-value.ts +models/parameter.ts models/payee-account-response.ts models/payee-account-type.ts models/payee-account.ts @@ -131,40 +817,132 @@ models/payout-instruction.ts models/payout-response.ts models/payout-state.ts models/payout-status.ts +models/policy-and-validation-response.ts +models/policy-check-result.ts +models/policy-metadata.ts +models/policy-response.ts +models/policy-rule-amount-aggregation.ts +models/policy-rule-amount.ts +models/policy-rule-authorization-groups-groups-inner.ts +models/policy-rule-authorization-groups.ts +models/policy-rule-check-result.ts +models/policy-rule-designated-signers.ts +models/policy-rule-dst.ts +models/policy-rule-error.ts +models/policy-rule-operators.ts +models/policy-rule-raw-message-signing-derivation-path.ts +models/policy-rule-raw-message-signing.ts +models/policy-rule-src.ts +models/policy-rule.ts +models/policy-rules.ts +models/policy-src-or-dest-sub-type.ts +models/policy-src-or-dest-type.ts +models/policy-status.ts +models/policy-validation.ts +models/pre-screening.ts +models/provider-dto.ts models/public-key-information.ts -models/redeem-funds-to-linked-ddarequest.ts +models/publish-draft-request.ts +models/publish-result.ts +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-transaction-dto.ts models/remove-collateral-request-body.ts -models/resend-webhooks-for-transaction-request.ts +models/rename-cosigner.ts +models/rename-vault-account-response.ts +models/resend-transaction-webhooks-request.ts +models/resend-webhooks-by-transaction-id-response.ts models/resend-webhooks-response.ts models/respond-to-connection-request.ts models/reward-info.ts models/rewards-info.ts +models/screening-configurations-request.ts +models/screening-operation-execution-output.ts +models/screening-operation-execution.ts +models/screening-operation-failure.ts +models/screening-operation-type.ts +models/screening-policy-response.ts +models/screening-provider-rules-configuration-response.ts +models/screening-update-configurations-request.ts +models/screening-validation-failure.ts +models/screening-verdict-matched-rule.ts +models/screening-verdict.ts models/session-dto.ts -models/session-dtosession-metadata.ts models/session-metadata.ts -models/set-auto-fuel-for-vault-account-request.ts +models/set-admin-quorum-threshold-request.ts +models/set-admin-quorum-threshold-response.ts +models/set-auto-fuel-request.ts models/set-confirmations-threshold-request.ts models/set-confirmations-threshold-response.ts -models/set-customer-ref-id-for-vault-account-request.ts -models/set-discoverability-for-network-id-request.ts +models/set-customer-ref-id-for-address-request.ts +models/set-customer-ref-id-request.ts +models/set-network-id-discoverability-request.ts models/set-network-id-name-request.ts -models/set-routing-policy-for-network-connection-request.ts -models/set-routing-policy-for-network-connection200-response.ts -models/set-routing-policy-for-network-id-request.ts +models/set-network-id-response.ts +models/set-network-id-routing-policy-request.ts +models/set-ota-status-request.ts +models/set-ota-status-response-one-of.ts +models/set-ota-status-response.ts +models/set-routing-policy-request.ts +models/set-routing-policy-response.ts models/settlement-request-body.ts models/settlement-response.ts models/signed-message-signature.ts models/signed-message.ts -models/source-transfer-peer-path-response-all-of.ts +models/signed-messages.ts +models/signing-key-dto.ts +models/smart-transfer-bad-request-response.ts +models/smart-transfer-create-ticket-term.ts +models/smart-transfer-create-ticket.ts +models/smart-transfer-forbidden-response.ts +models/smart-transfer-fund-term.ts +models/smart-transfer-manually-fund-term.ts +models/smart-transfer-not-found-response.ts +models/smart-transfer-set-ticket-expiration.ts +models/smart-transfer-set-ticket-external-id.ts +models/smart-transfer-set-user-groups.ts +models/smart-transfer-submit-ticket.ts +models/smart-transfer-ticket-filtered-response.ts +models/smart-transfer-ticket-response.ts +models/smart-transfer-ticket-term-response.ts +models/smart-transfer-ticket-term.ts +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/source-transfer-peer-path-response.ts +models/source-transfer-peer-path.ts +models/spam-ownership-response.ts +models/spam-token-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/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/stellar-ripple-create-params-dto.ts models/system-message-info.ts -models/term.ts +models/task.ts +models/tasks.ts +models/templates-paginated-response.ts +models/third-party-routing.ts models/to-collateral-transaction.ts models/to-exchange-transaction.ts models/token-collection-response.ts +models/token-link-dto-token-metadata.ts +models/token-link-dto.ts +models/token-link-exists-http-error.ts +models/token-link-request-dto.ts models/token-ownership-response.ts -models/token-response-collection.ts +models/token-ownership-spam-update-payload.ts +models/token-ownership-status-update-payload.ts models/token-response.ts +models/tokens-paginated-response.ts models/trading-account-type.ts models/transaction-fee.ts models/transaction-operation.ts @@ -181,67 +959,80 @@ models/transaction-response-contract-call-decoded-data.ts models/transaction-response-destination.ts models/transaction-response.ts models/transaction.ts -models/transfer-peer-path.ts +models/transfer-config-operation.ts +models/transfer-operation-config-params.ts +models/transfer-operation-execution-output.ts +models/transfer-operation-execution-params-execution-params.ts +models/transfer-operation-execution-params.ts +models/transfer-operation-execution.ts +models/transfer-operation-failure-data.ts +models/transfer-operation-failure.ts +models/transfer-operation-preview-output.ts +models/transfer-operation-preview.ts +models/transfer-operation-type.ts +models/transfer-peer-path-sub-type.ts +models/transfer-peer-path-type.ts +models/transfer-validation-failure.ts models/travel-rule-address.ts +models/travel-rule-create-transaction-request.ts models/travel-rule-get-all-vasps-response.ts models/travel-rule-issuer.ts models/travel-rule-issuers.ts models/travel-rule-ownership-proof.ts models/travel-rule-pii-ivms.ts +models/travel-rule-policy-rule-response.ts models/travel-rule-transaction-blockchain-info.ts models/travel-rule-update-vaspdetails.ts -models/travel-rule-validate-full-transaction-request-beneficiary-proof.ts -models/travel-rule-validate-full-transaction-request-beneficiary.ts -models/travel-rule-validate-full-transaction-request-originator-proof.ts -models/travel-rule-validate-full-transaction-request-originator.ts -models/travel-rule-validate-full-transaction-request-pii.ts -models/travel-rule-validate-full-transaction-request-transaction-blockchain-info.ts models/travel-rule-validate-full-transaction-request.ts -models/travel-rule-validate-transaction-request-beneficiary-address.ts models/travel-rule-validate-transaction-request.ts models/travel-rule-validate-transaction-response.ts models/travel-rule-vasp.ts models/unfreeze-transaction-response.ts models/unmanaged-wallet.ts -models/unsigned-message.ts models/unspent-input.ts models/unspent-inputs-response.ts +models/unstake-request-dto.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/user-group-create-request.ts +models/user-group-create-response.ts +models/user-group-response.ts +models/user-group-update-request.ts +models/user-groups-response.ts models/user-response.ts +models/user-role.ts +models/user-status.ts +models/user-type.ts models/validate-address-response.ts +models/validation-key-dto.ts +models/validator-dto.ts models/vault-account.ts models/vault-accounts-paged-response-paging.ts models/vault-accounts-paged-response.ts +models/vault-action-status.ts models/vault-asset.ts models/vault-wallet-address.ts +models/vendor-dto.ts +models/wallet-asset-additional-info.ts models/wallet-asset.ts -models/xbsettlement-asset-id.ts -models/xbsettlement-asset.ts -models/xbsettlement-config-creation-request-body.ts -models/xbsettlement-config-edit-request-body.ts -models/xbsettlement-config-model.ts -models/xbsettlement-config-step.ts -models/xbsettlement-config-steps-record-value.ts -models/xbsettlement-config-steps-record.ts -models/xbsettlement-corridor-id.ts -models/xbsettlement-create-flow-request-body.ts -models/xbsettlement-crypto-asset.ts -models/xbsettlement-fiat-asset.ts -models/xbsettlement-flow-execution-model-selected-conversion-slippage.ts -models/xbsettlement-flow-execution-model.ts -models/xbsettlement-flow-execution-request-body.ts -models/xbsettlement-flow-execution-status.ts -models/xbsettlement-flow-execution-step-status.ts -models/xbsettlement-flow-execution-step.ts -models/xbsettlement-flow-preview-model.ts -models/xbsettlement-flow-selected-conversion-slippage-reason.ts -models/xbsettlement-flow-setup-step.ts -models/xbsettlement-flow-steps-execution-record.ts -models/xbsettlement-flow-steps-record.ts -models/xbsettlement-get-all-configs-response.ts -models/xbsettlement-get-flow-response.ts -models/xbsettlement-step-type.ts +models/withdraw-request-dto.ts +models/workflow-config-status.ts +models/workflow-configuration-id.ts +models/workflow-execution-operation.ts +models/write-abi-function.ts +models/write-call-function-dto.ts +models/write-call-function-response-dto.ts +network/axiosManager.ts +network/bearerTokenProvider.ts package.json +response/fireblocksResponse.ts +tests/api.spec.ts +tests/axiosManager.spec.ts +tests/bearerTokenProvider.spec.ts +tests/client.spec.ts +tests/fireblocksError.spec.ts +tests/fireblocksResponse.spec.ts tsconfig.json diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index cd802a1..8b23b8d 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -6.6.0 \ No newline at end of file +7.3.0 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 0684371..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,9 +0,0 @@ -### Changelog - -All notable changes to this project will be documented in this file. Dates are displayed in UTC. - -#### v2.0.0 - -> 8 May 2024 - -- feat: add tokenization api [`#35`](https://github.com/fireblocks/ts-sdk/pull/35) diff --git a/README.md b/README.md index dbe30df..baa3c4b 100644 --- a/README.md +++ b/README.md @@ -204,6 +204,15 @@ Class | Method | HTTP request | Description *JobManagementApi* | [**getJobTasks**](docs/apis/JobManagementApi.md#getJobTasks) | **GET** /batch/{jobId}/tasks | Return a list of tasks for given job *JobManagementApi* | [**getJobs**](docs/apis/JobManagementApi.md#getJobs) | **GET** /batch/jobs | Return a list of jobs belonging to tenant *JobManagementApi* | [**pauseJob**](docs/apis/JobManagementApi.md#pauseJob) | **POST** /batch/{jobId}/pause | Pause a job +*KeyLinkBetaApi* | [**createSigningKey**](docs/apis/KeyLinkBetaApi.md#createSigningKey) | **POST** /key_link/signing_keys | Add a new signing key +*KeyLinkBetaApi* | [**createValidationKey**](docs/apis/KeyLinkBetaApi.md#createValidationKey) | **POST** /key_link/validation_keys | Add a new validation key +*KeyLinkBetaApi* | [**disableValidationKey**](docs/apis/KeyLinkBetaApi.md#disableValidationKey) | **PATCH** /key_link/validation_keys/{keyId} | Disables a validation key +*KeyLinkBetaApi* | [**getSigningKey**](docs/apis/KeyLinkBetaApi.md#getSigningKey) | **GET** /key_link/signing_keys/{keyId} | Get a signing key by `keyId` +*KeyLinkBetaApi* | [**getSigningKeysList**](docs/apis/KeyLinkBetaApi.md#getSigningKeysList) | **GET** /key_link/signing_keys | Get list of signing keys +*KeyLinkBetaApi* | [**getValidationKey**](docs/apis/KeyLinkBetaApi.md#getValidationKey) | **GET** /key_link/validation_keys/{keyId} | Get a validation key by `keyId` +*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` *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) @@ -433,11 +442,14 @@ Class | Method | HTTP request | Description - [CreateNcwConnectionRequest](docs/models/CreateNcwConnectionRequest.md) - [CreateNetworkIdRequest](docs/models/CreateNetworkIdRequest.md) - [CreatePayoutRequest](docs/models/CreatePayoutRequest.md) + - [CreateSigningKeyDto](docs/models/CreateSigningKeyDto.md) - [CreateTokenRequestDto](docs/models/CreateTokenRequestDto.md) - [CreateTokenRequestDtoCreateParams](docs/models/CreateTokenRequestDtoCreateParams.md) - [CreateTransactionResponse](docs/models/CreateTransactionResponse.md) - [CreateTransferConfigOperationRequest](docs/models/CreateTransferConfigOperationRequest.md) - [CreateUserGroupResponse](docs/models/CreateUserGroupResponse.md) + - [CreateValidationKeyDto](docs/models/CreateValidationKeyDto.md) + - [CreateValidationKeyResponseDto](docs/models/CreateValidationKeyResponseDto.md) - [CreateVaultAccountConnectionRequest](docs/models/CreateVaultAccountConnectionRequest.md) - [CreateVaultAccountRequest](docs/models/CreateVaultAccountRequest.md) - [CreateVaultAssetResponse](docs/models/CreateVaultAssetResponse.md) @@ -527,11 +539,13 @@ Class | Method | HTTP request | Description - [GetOwnershipTokensResponse](docs/models/GetOwnershipTokensResponse.md) - [GetPagedExchangeAccountsResponse](docs/models/GetPagedExchangeAccountsResponse.md) - [GetRoutingPolicyAssetGroupsResponse](docs/models/GetRoutingPolicyAssetGroupsResponse.md) + - [GetSigningKeyResponseDto](docs/models/GetSigningKeyResponseDto.md) - [GetSupportedAssetsResponse](docs/models/GetSupportedAssetsResponse.md) - [GetTransactionOperation](docs/models/GetTransactionOperation.md) - [GetTransactionsResponse](docs/models/GetTransactionsResponse.md) - [GetUnspentInputsResponse](docs/models/GetUnspentInputsResponse.md) - [GetUsersResponse](docs/models/GetUsersResponse.md) + - [GetValidationKeyResponseDto](docs/models/GetValidationKeyResponseDto.md) - [GetVaultAccountAssetAddressesResponse](docs/models/GetVaultAccountAssetAddressesResponse.md) - [GetVaultAccountsResponse](docs/models/GetVaultAccountsResponse.md) - [GetVaultAssetsResponse](docs/models/GetVaultAssetsResponse.md) @@ -549,6 +563,9 @@ Class | Method | HTTP request | Description - [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) - [NetworkChannel](docs/models/NetworkChannel.md) - [NetworkConnection](docs/models/NetworkConnection.md) - [NetworkConnectionResponse](docs/models/NetworkConnectionResponse.md) @@ -662,6 +679,7 @@ Class | Method | HTTP request | Description - [SignedMessage](docs/models/SignedMessage.md) - [SignedMessageSignature](docs/models/SignedMessageSignature.md) - [SignedMessages](docs/models/SignedMessages.md) + - [SigningKeyDto](docs/models/SigningKeyDto.md) - [SmartTransferBadRequestResponse](docs/models/SmartTransferBadRequestResponse.md) - [SmartTransferCreateTicket](docs/models/SmartTransferCreateTicket.md) - [SmartTransferCreateTicketTerm](docs/models/SmartTransferCreateTicketTerm.md) @@ -776,6 +794,7 @@ Class | Method | HTTP request | Description - [UserStatus](docs/models/UserStatus.md) - [UserType](docs/models/UserType.md) - [ValidateAddressResponse](docs/models/ValidateAddressResponse.md) + - [ValidationKeyDto](docs/models/ValidationKeyDto.md) - [ValidatorDto](docs/models/ValidatorDto.md) - [VaultAccount](docs/models/VaultAccount.md) - [VaultAccountsPagedResponse](docs/models/VaultAccountsPagedResponse.md) diff --git a/api.ts b/api.ts index 65dfeba..f9279b7 100644 --- a/api.ts +++ b/api.ts @@ -32,6 +32,7 @@ export * from './api/fiat-accounts-api'; 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/nfts-api'; export * from './api/network-connections-api'; export * from './api/otabeta-api'; diff --git a/api/blockchains-assets-api.ts b/api/blockchains-assets-api.ts index fd74ef5..63d283b 100644 --- a/api/blockchains-assets-api.ts +++ b/api/blockchains-assets-api.ts @@ -80,7 +80,7 @@ export const BlockchainsAssetsApiAxiosParamCreator = function (configuration?: C }; }, /** - * Register a new asset to a workspace and return the newly created asset\'s details. Currently supported for EVM based chains only. + * Register a new asset to a workspace and return the newly created asset\'s details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR * @summary Register an asset * @param {RegisterNewAssetRequest} [registerNewAssetRequest] * @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. @@ -141,7 +141,7 @@ export const BlockchainsAssetsApiFp = function(configuration?: Configuration) { return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** - * Register a new asset to a workspace and return the newly created asset\'s details. Currently supported for EVM based chains only. + * Register a new asset to a workspace and return the newly created asset\'s details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR * @summary Register an asset * @param {RegisterNewAssetRequest} [registerNewAssetRequest] * @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. @@ -174,7 +174,7 @@ export const BlockchainsAssetsApiFactory = function (configuration?: Configurati return localVarFp.getSupportedAssets(options).then((request) => request(axios, basePath)); }, /** - * Register a new asset to a workspace and return the newly created asset\'s details. Currently supported for EVM based chains only. + * Register a new asset to a workspace and return the newly created asset\'s details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR * @summary Register an asset * @param {BlockchainsAssetsApiRegisterNewAssetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. @@ -226,7 +226,7 @@ export class BlockchainsAssetsApi extends BaseAPI { } /** - * Register a new asset to a workspace and return the newly created asset\'s details. Currently supported for EVM based chains only. + * Register a new asset to a workspace and return the newly created asset\'s details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR * @summary Register an asset * @param {BlockchainsAssetsApiRegisterNewAssetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. diff --git a/api/key-link-beta-api.ts b/api/key-link-beta-api.ts new file mode 100644 index 0000000..64835f7 --- /dev/null +++ b/api/key-link-beta-api.ts @@ -0,0 +1,1015 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +import { convertToFireblocksResponse } from "../response/fireblocksResponse"; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import { CreateSigningKeyDto } from '../models'; +// @ts-ignore +import { CreateValidationKeyDto } from '../models'; +// @ts-ignore +import { CreateValidationKeyResponseDto } from '../models'; +// @ts-ignore +import { ErrorSchema } from '../models'; +// @ts-ignore +import { GetSigningKeyResponseDto } from '../models'; +// @ts-ignore +import { GetValidationKeyResponseDto } from '../models'; +// @ts-ignore +import { ModifySigningKeyAgentIdDto } from '../models'; +// @ts-ignore +import { ModifySigningKeyDto } from '../models'; +// @ts-ignore +import { ModifyValidationKeyDto } from '../models'; +// @ts-ignore +import { SigningKeyDto } from '../models'; +// @ts-ignore +import { ValidationKeyDto } from '../models'; +/** + * KeyLinkBetaApi - axios parameter creator + * @export + */ +export const KeyLinkBetaApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new signing key to the workspace. The added key will be linked to the specific Fireblocks agent user ID. The same user will receive the proof of ownership message to be signed, and upon successful proof, the key will become enabled. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Add a new signing key + * @param {CreateSigningKeyDto} createSigningKeyDto + * @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} + */ + createSigningKey: async (createSigningKeyDto: CreateSigningKeyDto, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'createSigningKeyDto' is not null or undefined + assertParamExists('createSigningKey', 'createSigningKeyDto', createSigningKeyDto) + const localVarPath = `/key_link/signing_keys`; + // 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(createSigningKeyDto, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds a new validation key used to validate signing keys. The new validation key will undergo an approval process by the workspace quorum. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Add a new validation key + * @param {CreateValidationKeyDto} createValidationKeyDto + * @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} + */ + createValidationKey: async (createValidationKeyDto: CreateValidationKeyDto, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'createValidationKeyDto' is not null or undefined + assertParamExists('createValidationKey', 'createValidationKeyDto', createValidationKeyDto) + const localVarPath = `/key_link/validation_keys`; + // 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(createValidationKeyDto, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Allows disabling validation key even if it has not expired yet. It is not allowed to enable the validation key back. Another key has to be used for future validations. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Disables a validation key + * @param {ModifyValidationKeyDto} modifyValidationKeyDto + * @param {string} keyId The unique identifier for the validation key provided by Fireblocks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + disableValidationKey: async (modifyValidationKeyDto: ModifyValidationKeyDto, keyId: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'modifyValidationKeyDto' is not null or undefined + assertParamExists('disableValidationKey', 'modifyValidationKeyDto', modifyValidationKeyDto) + // verify required parameter 'keyId' is not null or undefined + assertParamExists('disableValidationKey', 'keyId', keyId) + const localVarPath = `/key_link/validation_keys/{keyId}` + .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); + // 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(modifyValidationKeyDto, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns a signing key if it exists, identified by the specified Fireblocks provided `keyId`. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Get a signing key by `keyId` + * @param {string} keyId The unique identifier for the signing key provided by Fireblocks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSigningKey: async (keyId: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'keyId' is not null or undefined + assertParamExists('getSigningKey', 'keyId', keyId) + const localVarPath = `/key_link/signing_keys/{keyId}` + .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); + // 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 the list of signing keys in the workspace Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Get list of signing keys + * @param {string} [pageCursor] Cursor to the next page + * @param {number} [pageSize] Amount of results to return in the next page + * @param {GetSigningKeysListSortByEnum} [sortBy] Field(s) to use for sorting + * @param {GetSigningKeysListOrderEnum} [order] Is the order ascending or descending + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSigningKeysList: async (pageCursor?: string, pageSize?: number, sortBy?: GetSigningKeysListSortByEnum, order?: GetSigningKeysListOrderEnum, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/key_link/signing_keys`; + // 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 (pageCursor !== undefined) { + localVarQueryParameter['pageCursor'] = pageCursor; + } + + if (pageSize !== undefined) { + localVarQueryParameter['pageSize'] = pageSize; + } + + if (sortBy !== undefined) { + localVarQueryParameter['sortBy'] = sortBy; + } + + if (order !== undefined) { + localVarQueryParameter['order'] = order; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns a validation key if it exists, identified by the specified `keyId`. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Get a validation key by `keyId` + * @param {string} keyId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getValidationKey: async (keyId: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'keyId' is not null or undefined + assertParamExists('getValidationKey', 'keyId', keyId) + const localVarPath = `/key_link/validation_keys/{keyId}` + .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); + // 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 the list of validation keys in the workspace Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Get list of registered validation keys + * @param {string} [pageCursor] Cursor to the next page + * @param {number} [pageSize] Amount of results to return in the next page + * @param {GetValidationKeysListSortByEnum} [sortBy] Field(s) to use for sorting + * @param {GetValidationKeysListOrderEnum} [order] Is the order ascending or descending + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getValidationKeysList: async (pageCursor?: string, pageSize?: number, sortBy?: GetValidationKeysListSortByEnum, order?: GetValidationKeysListOrderEnum, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/key_link/validation_keys`; + // 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 (pageCursor !== undefined) { + localVarQueryParameter['pageCursor'] = pageCursor; + } + + if (pageSize !== undefined) { + localVarQueryParameter['pageSize'] = pageSize; + } + + if (sortBy !== undefined) { + localVarQueryParameter['sortBy'] = sortBy; + } + + if (order !== undefined) { + localVarQueryParameter['order'] = order; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Can modify existing signing key id if the key is not enabled. The change done in background and will be visible once applied. If key is already enabled (after proof of ownership) the user cannot be changed. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Set agent user id that can sign with the signing key identified by the Fireblocks provided `keyId` + * @param {ModifySigningKeyAgentIdDto} modifySigningKeyAgentIdDto + * @param {string} keyId The unique identifier for the signing key provided by Fireblocks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setAgentId: async (modifySigningKeyAgentIdDto: ModifySigningKeyAgentIdDto, keyId: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'modifySigningKeyAgentIdDto' is not null or undefined + assertParamExists('setAgentId', 'modifySigningKeyAgentIdDto', modifySigningKeyAgentIdDto) + // verify required parameter 'keyId' is not null or undefined + assertParamExists('setAgentId', 'keyId', keyId) + const localVarPath = `/key_link/signing_keys/{keyId}/agent_user_id` + .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); + // 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(modifySigningKeyAgentIdDto, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Allows assigning the signing key to a vault account, if it hasn\'t been assigned to any other vault accounts yet. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Modify the signing by Fireblocks provided `keyId` + * @param {ModifySigningKeyDto} modifySigningKeyDto + * @param {string} keyId The unique identifier for the signing key provided by Fireblocks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateSigningKey: async (modifySigningKeyDto: ModifySigningKeyDto, keyId: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'modifySigningKeyDto' is not null or undefined + assertParamExists('updateSigningKey', 'modifySigningKeyDto', modifySigningKeyDto) + // verify required parameter 'keyId' is not null or undefined + assertParamExists('updateSigningKey', 'keyId', keyId) + const localVarPath = `/key_link/signing_keys/{keyId}` + .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); + // 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(modifySigningKeyDto, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * KeyLinkBetaApi - functional programming interface + * @export + */ +export const KeyLinkBetaApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = KeyLinkBetaApiAxiosParamCreator(configuration) + return { + /** + * Adds a new signing key to the workspace. The added key will be linked to the specific Fireblocks agent user ID. The same user will receive the proof of ownership message to be signed, and upon successful proof, the key will become enabled. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Add a new signing key + * @param {CreateSigningKeyDto} createSigningKeyDto + * @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 createSigningKey(createSigningKeyDto: CreateSigningKeyDto, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createSigningKey(createSigningKeyDto, idempotencyKey, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['KeyLinkBetaApi.createSigningKey']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Adds a new validation key used to validate signing keys. The new validation key will undergo an approval process by the workspace quorum. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Add a new validation key + * @param {CreateValidationKeyDto} createValidationKeyDto + * @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 createValidationKey(createValidationKeyDto: CreateValidationKeyDto, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createValidationKey(createValidationKeyDto, idempotencyKey, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['KeyLinkBetaApi.createValidationKey']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Allows disabling validation key even if it has not expired yet. It is not allowed to enable the validation key back. Another key has to be used for future validations. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Disables a validation key + * @param {ModifyValidationKeyDto} modifyValidationKeyDto + * @param {string} keyId The unique identifier for the validation key provided by Fireblocks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async disableValidationKey(modifyValidationKeyDto: ModifyValidationKeyDto, keyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.disableValidationKey(modifyValidationKeyDto, keyId, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['KeyLinkBetaApi.disableValidationKey']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Returns a signing key if it exists, identified by the specified Fireblocks provided `keyId`. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Get a signing key by `keyId` + * @param {string} keyId The unique identifier for the signing key provided by Fireblocks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSigningKey(keyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getSigningKey(keyId, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['KeyLinkBetaApi.getSigningKey']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Returns the list of signing keys in the workspace Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Get list of signing keys + * @param {string} [pageCursor] Cursor to the next page + * @param {number} [pageSize] Amount of results to return in the next page + * @param {GetSigningKeysListSortByEnum} [sortBy] Field(s) to use for sorting + * @param {GetSigningKeysListOrderEnum} [order] Is the order ascending or descending + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSigningKeysList(pageCursor?: string, pageSize?: number, sortBy?: GetSigningKeysListSortByEnum, order?: GetSigningKeysListOrderEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getSigningKeysList(pageCursor, pageSize, sortBy, order, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['KeyLinkBetaApi.getSigningKeysList']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Returns a validation key if it exists, identified by the specified `keyId`. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Get a validation key by `keyId` + * @param {string} keyId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getValidationKey(keyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getValidationKey(keyId, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['KeyLinkBetaApi.getValidationKey']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Returns the list of validation keys in the workspace Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Get list of registered validation keys + * @param {string} [pageCursor] Cursor to the next page + * @param {number} [pageSize] Amount of results to return in the next page + * @param {GetValidationKeysListSortByEnum} [sortBy] Field(s) to use for sorting + * @param {GetValidationKeysListOrderEnum} [order] Is the order ascending or descending + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getValidationKeysList(pageCursor?: string, pageSize?: number, sortBy?: GetValidationKeysListSortByEnum, order?: GetValidationKeysListOrderEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getValidationKeysList(pageCursor, pageSize, sortBy, order, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['KeyLinkBetaApi.getValidationKeysList']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Can modify existing signing key id if the key is not enabled. The change done in background and will be visible once applied. If key is already enabled (after proof of ownership) the user cannot be changed. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Set agent user id that can sign with the signing key identified by the Fireblocks provided `keyId` + * @param {ModifySigningKeyAgentIdDto} modifySigningKeyAgentIdDto + * @param {string} keyId The unique identifier for the signing key provided by Fireblocks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async setAgentId(modifySigningKeyAgentIdDto: ModifySigningKeyAgentIdDto, keyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.setAgentId(modifySigningKeyAgentIdDto, keyId, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['KeyLinkBetaApi.setAgentId']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Allows assigning the signing key to a vault account, if it hasn\'t been assigned to any other vault accounts yet. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Modify the signing by Fireblocks provided `keyId` + * @param {ModifySigningKeyDto} modifySigningKeyDto + * @param {string} keyId The unique identifier for the signing key provided by Fireblocks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateSigningKey(modifySigningKeyDto: ModifySigningKeyDto, keyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateSigningKey(modifySigningKeyDto, keyId, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['KeyLinkBetaApi.updateSigningKey']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + } +}; + +/** + * KeyLinkBetaApi - factory interface + * @export + */ +export const KeyLinkBetaApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = KeyLinkBetaApiFp(configuration) + return { + /** + * Adds a new signing key to the workspace. The added key will be linked to the specific Fireblocks agent user ID. The same user will receive the proof of ownership message to be signed, and upon successful proof, the key will become enabled. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Add a new signing key + * @param {KeyLinkBetaApiCreateSigningKeyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createSigningKey(requestParameters: KeyLinkBetaApiCreateSigningKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createSigningKey(requestParameters.createSigningKeyDto, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + }, + /** + * Adds a new validation key used to validate signing keys. The new validation key will undergo an approval process by the workspace quorum. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Add a new validation key + * @param {KeyLinkBetaApiCreateValidationKeyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createValidationKey(requestParameters: KeyLinkBetaApiCreateValidationKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createValidationKey(requestParameters.createValidationKeyDto, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); + }, + /** + * Allows disabling validation key even if it has not expired yet. It is not allowed to enable the validation key back. Another key has to be used for future validations. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Disables a validation key + * @param {KeyLinkBetaApiDisableValidationKeyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + disableValidationKey(requestParameters: KeyLinkBetaApiDisableValidationKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.disableValidationKey(requestParameters.modifyValidationKeyDto, requestParameters.keyId, options).then((request) => request(axios, basePath)); + }, + /** + * Returns a signing key if it exists, identified by the specified Fireblocks provided `keyId`. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Get a signing key by `keyId` + * @param {KeyLinkBetaApiGetSigningKeyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSigningKey(requestParameters: KeyLinkBetaApiGetSigningKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getSigningKey(requestParameters.keyId, options).then((request) => request(axios, basePath)); + }, + /** + * Returns the list of signing keys in the workspace Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Get list of signing keys + * @param {KeyLinkBetaApiGetSigningKeysListRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSigningKeysList(requestParameters: KeyLinkBetaApiGetSigningKeysListRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getSigningKeysList(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sortBy, requestParameters.order, options).then((request) => request(axios, basePath)); + }, + /** + * Returns a validation key if it exists, identified by the specified `keyId`. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Get a validation key by `keyId` + * @param {KeyLinkBetaApiGetValidationKeyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getValidationKey(requestParameters: KeyLinkBetaApiGetValidationKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getValidationKey(requestParameters.keyId, options).then((request) => request(axios, basePath)); + }, + /** + * Returns the list of validation keys in the workspace Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Get list of registered validation keys + * @param {KeyLinkBetaApiGetValidationKeysListRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getValidationKeysList(requestParameters: KeyLinkBetaApiGetValidationKeysListRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getValidationKeysList(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sortBy, requestParameters.order, options).then((request) => request(axios, basePath)); + }, + /** + * Can modify existing signing key id if the key is not enabled. The change done in background and will be visible once applied. If key is already enabled (after proof of ownership) the user cannot be changed. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Set agent user id that can sign with the signing key identified by the Fireblocks provided `keyId` + * @param {KeyLinkBetaApiSetAgentIdRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setAgentId(requestParameters: KeyLinkBetaApiSetAgentIdRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.setAgentId(requestParameters.modifySigningKeyAgentIdDto, requestParameters.keyId, options).then((request) => request(axios, basePath)); + }, + /** + * Allows assigning the signing key to a vault account, if it hasn\'t been assigned to any other vault accounts yet. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Modify the signing by Fireblocks provided `keyId` + * @param {KeyLinkBetaApiUpdateSigningKeyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateSigningKey(requestParameters: KeyLinkBetaApiUpdateSigningKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updateSigningKey(requestParameters.modifySigningKeyDto, requestParameters.keyId, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for createSigningKey operation in KeyLinkBetaApi. + * @export + * @interface KeyLinkBetaApiCreateSigningKeyRequest + */ +export interface KeyLinkBetaApiCreateSigningKeyRequest { + /** + * + * @type {CreateSigningKeyDto} + * @memberof KeyLinkBetaApiCreateSigningKey + */ + readonly createSigningKeyDto: CreateSigningKeyDto + + /** + * 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 KeyLinkBetaApiCreateSigningKey + */ + readonly idempotencyKey?: string +} + +/** + * Request parameters for createValidationKey operation in KeyLinkBetaApi. + * @export + * @interface KeyLinkBetaApiCreateValidationKeyRequest + */ +export interface KeyLinkBetaApiCreateValidationKeyRequest { + /** + * + * @type {CreateValidationKeyDto} + * @memberof KeyLinkBetaApiCreateValidationKey + */ + readonly createValidationKeyDto: CreateValidationKeyDto + + /** + * 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 KeyLinkBetaApiCreateValidationKey + */ + readonly idempotencyKey?: string +} + +/** + * Request parameters for disableValidationKey operation in KeyLinkBetaApi. + * @export + * @interface KeyLinkBetaApiDisableValidationKeyRequest + */ +export interface KeyLinkBetaApiDisableValidationKeyRequest { + /** + * + * @type {ModifyValidationKeyDto} + * @memberof KeyLinkBetaApiDisableValidationKey + */ + readonly modifyValidationKeyDto: ModifyValidationKeyDto + + /** + * The unique identifier for the validation key provided by Fireblocks + * @type {string} + * @memberof KeyLinkBetaApiDisableValidationKey + */ + readonly keyId: string +} + +/** + * Request parameters for getSigningKey operation in KeyLinkBetaApi. + * @export + * @interface KeyLinkBetaApiGetSigningKeyRequest + */ +export interface KeyLinkBetaApiGetSigningKeyRequest { + /** + * The unique identifier for the signing key provided by Fireblocks + * @type {string} + * @memberof KeyLinkBetaApiGetSigningKey + */ + readonly keyId: string +} + +/** + * Request parameters for getSigningKeysList operation in KeyLinkBetaApi. + * @export + * @interface KeyLinkBetaApiGetSigningKeysListRequest + */ +export interface KeyLinkBetaApiGetSigningKeysListRequest { + /** + * Cursor to the next page + * @type {string} + * @memberof KeyLinkBetaApiGetSigningKeysList + */ + readonly pageCursor?: string + + /** + * Amount of results to return in the next page + * @type {number} + * @memberof KeyLinkBetaApiGetSigningKeysList + */ + readonly pageSize?: number + + /** + * Field(s) to use for sorting + * @type {'createdAt'} + * @memberof KeyLinkBetaApiGetSigningKeysList + */ + readonly sortBy?: GetSigningKeysListSortByEnum + + /** + * Is the order ascending or descending + * @type {'ASC' | 'DESC'} + * @memberof KeyLinkBetaApiGetSigningKeysList + */ + readonly order?: GetSigningKeysListOrderEnum +} + +/** + * Request parameters for getValidationKey operation in KeyLinkBetaApi. + * @export + * @interface KeyLinkBetaApiGetValidationKeyRequest + */ +export interface KeyLinkBetaApiGetValidationKeyRequest { + /** + * + * @type {string} + * @memberof KeyLinkBetaApiGetValidationKey + */ + readonly keyId: string +} + +/** + * Request parameters for getValidationKeysList operation in KeyLinkBetaApi. + * @export + * @interface KeyLinkBetaApiGetValidationKeysListRequest + */ +export interface KeyLinkBetaApiGetValidationKeysListRequest { + /** + * Cursor to the next page + * @type {string} + * @memberof KeyLinkBetaApiGetValidationKeysList + */ + readonly pageCursor?: string + + /** + * Amount of results to return in the next page + * @type {number} + * @memberof KeyLinkBetaApiGetValidationKeysList + */ + readonly pageSize?: number + + /** + * Field(s) to use for sorting + * @type {'createdAt'} + * @memberof KeyLinkBetaApiGetValidationKeysList + */ + readonly sortBy?: GetValidationKeysListSortByEnum + + /** + * Is the order ascending or descending + * @type {'ASC' | 'DESC'} + * @memberof KeyLinkBetaApiGetValidationKeysList + */ + readonly order?: GetValidationKeysListOrderEnum +} + +/** + * Request parameters for setAgentId operation in KeyLinkBetaApi. + * @export + * @interface KeyLinkBetaApiSetAgentIdRequest + */ +export interface KeyLinkBetaApiSetAgentIdRequest { + /** + * + * @type {ModifySigningKeyAgentIdDto} + * @memberof KeyLinkBetaApiSetAgentId + */ + readonly modifySigningKeyAgentIdDto: ModifySigningKeyAgentIdDto + + /** + * The unique identifier for the signing key provided by Fireblocks + * @type {string} + * @memberof KeyLinkBetaApiSetAgentId + */ + readonly keyId: string +} + +/** + * Request parameters for updateSigningKey operation in KeyLinkBetaApi. + * @export + * @interface KeyLinkBetaApiUpdateSigningKeyRequest + */ +export interface KeyLinkBetaApiUpdateSigningKeyRequest { + /** + * + * @type {ModifySigningKeyDto} + * @memberof KeyLinkBetaApiUpdateSigningKey + */ + readonly modifySigningKeyDto: ModifySigningKeyDto + + /** + * The unique identifier for the signing key provided by Fireblocks + * @type {string} + * @memberof KeyLinkBetaApiUpdateSigningKey + */ + readonly keyId: string +} + +/** + * KeyLinkBetaApi - object-oriented interface + * @export + * @class KeyLinkBetaApi + * @extends {BaseAPI} + */ +export class KeyLinkBetaApi extends BaseAPI { + /** + * Adds a new signing key to the workspace. The added key will be linked to the specific Fireblocks agent user ID. The same user will receive the proof of ownership message to be signed, and upon successful proof, the key will become enabled. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Add a new signing key + * @param {KeyLinkBetaApiCreateSigningKeyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeyLinkBetaApi + */ + public createSigningKey(requestParameters: KeyLinkBetaApiCreateSigningKeyRequest) { + return KeyLinkBetaApiFp(this.configuration).createSigningKey(requestParameters.createSigningKeyDto, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Adds a new validation key used to validate signing keys. The new validation key will undergo an approval process by the workspace quorum. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Add a new validation key + * @param {KeyLinkBetaApiCreateValidationKeyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeyLinkBetaApi + */ + public createValidationKey(requestParameters: KeyLinkBetaApiCreateValidationKeyRequest) { + return KeyLinkBetaApiFp(this.configuration).createValidationKey(requestParameters.createValidationKeyDto, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Allows disabling validation key even if it has not expired yet. It is not allowed to enable the validation key back. Another key has to be used for future validations. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Disables a validation key + * @param {KeyLinkBetaApiDisableValidationKeyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeyLinkBetaApi + */ + public disableValidationKey(requestParameters: KeyLinkBetaApiDisableValidationKeyRequest) { + return KeyLinkBetaApiFp(this.configuration).disableValidationKey(requestParameters.modifyValidationKeyDto, requestParameters.keyId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Returns a signing key if it exists, identified by the specified Fireblocks provided `keyId`. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Get a signing key by `keyId` + * @param {KeyLinkBetaApiGetSigningKeyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeyLinkBetaApi + */ + public getSigningKey(requestParameters: KeyLinkBetaApiGetSigningKeyRequest) { + return KeyLinkBetaApiFp(this.configuration).getSigningKey(requestParameters.keyId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Returns the list of signing keys in the workspace Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Get list of signing keys + * @param {KeyLinkBetaApiGetSigningKeysListRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeyLinkBetaApi + */ + public getSigningKeysList(requestParameters: KeyLinkBetaApiGetSigningKeysListRequest = {}) { + return KeyLinkBetaApiFp(this.configuration).getSigningKeysList(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sortBy, requestParameters.order).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Returns a validation key if it exists, identified by the specified `keyId`. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Get a validation key by `keyId` + * @param {KeyLinkBetaApiGetValidationKeyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeyLinkBetaApi + */ + public getValidationKey(requestParameters: KeyLinkBetaApiGetValidationKeyRequest) { + return KeyLinkBetaApiFp(this.configuration).getValidationKey(requestParameters.keyId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Returns the list of validation keys in the workspace Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Get list of registered validation keys + * @param {KeyLinkBetaApiGetValidationKeysListRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeyLinkBetaApi + */ + public getValidationKeysList(requestParameters: KeyLinkBetaApiGetValidationKeysListRequest = {}) { + return KeyLinkBetaApiFp(this.configuration).getValidationKeysList(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sortBy, requestParameters.order).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Can modify existing signing key id if the key is not enabled. The change done in background and will be visible once applied. If key is already enabled (after proof of ownership) the user cannot be changed. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Set agent user id that can sign with the signing key identified by the Fireblocks provided `keyId` + * @param {KeyLinkBetaApiSetAgentIdRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeyLinkBetaApi + */ + public setAgentId(requestParameters: KeyLinkBetaApiSetAgentIdRequest) { + return KeyLinkBetaApiFp(this.configuration).setAgentId(requestParameters.modifySigningKeyAgentIdDto, requestParameters.keyId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } + + /** + * Allows assigning the signing key to a vault account, if it hasn\'t been assigned to any other vault accounts yet. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + * @summary Modify the signing by Fireblocks provided `keyId` + * @param {KeyLinkBetaApiUpdateSigningKeyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeyLinkBetaApi + */ + public updateSigningKey(requestParameters: KeyLinkBetaApiUpdateSigningKeyRequest) { + return KeyLinkBetaApiFp(this.configuration).updateSigningKey(requestParameters.modifySigningKeyDto, requestParameters.keyId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); + } +} + +/** + * @export + */ +export const GetSigningKeysListSortByEnum = { + CreatedAt: 'createdAt' +} as const; +export type GetSigningKeysListSortByEnum = typeof GetSigningKeysListSortByEnum[keyof typeof GetSigningKeysListSortByEnum]; +/** + * @export + */ +export const GetSigningKeysListOrderEnum = { + Asc: 'ASC', + Desc: 'DESC' +} as const; +export type GetSigningKeysListOrderEnum = typeof GetSigningKeysListOrderEnum[keyof typeof GetSigningKeysListOrderEnum]; +/** + * @export + */ +export const GetValidationKeysListSortByEnum = { + CreatedAt: 'createdAt' +} as const; +export type GetValidationKeysListSortByEnum = typeof GetValidationKeysListSortByEnum[keyof typeof GetValidationKeysListSortByEnum]; +/** + * @export + */ +export const GetValidationKeysListOrderEnum = { + Asc: 'ASC', + Desc: 'DESC' +} as const; +export type GetValidationKeysListOrderEnum = typeof GetValidationKeysListOrderEnum[keyof typeof GetValidationKeysListOrderEnum]; diff --git a/client/client.ts b/client/client.ts index 064453c..022e399 100644 --- a/client/client.ts +++ b/client/client.ts @@ -30,6 +30,7 @@ import { ApiUserApi, GasStationsApi, InternalWalletsApi, JobManagementApi, + KeyLinkBetaApi, NFTsApi, NetworkConnectionsApi, OTABetaApi, @@ -74,6 +75,7 @@ export class Fireblocks { private _gasStations?: GasStationsApi; private _internalWallets?: InternalWalletsApi; private _jobManagement?: JobManagementApi; + private _keyLinkBeta?: KeyLinkBetaApi; private _nfts?: NFTsApi; private _networkConnections?: NetworkConnectionsApi; private _otaBeta?: OTABetaApi; @@ -168,6 +170,9 @@ export class Fireblocks { get jobManagement(): JobManagementApi { return this._jobManagement ?? new JobManagementApi(this.config, undefined, this.axiosManager.axios); } + get keyLinkBeta(): KeyLinkBetaApi { + return this._keyLinkBeta ?? new KeyLinkBetaApi(this.config, undefined, this.axiosManager.axios); + } get nfts(): NFTsApi { return this._nfts ?? new NFTsApi(this.config, undefined, this.axiosManager.axios); } diff --git a/docs/apis/BlockchainsAssetsApi.md b/docs/apis/BlockchainsAssetsApi.md index afb8058..ffcedfa 100644 --- a/docs/apis/BlockchainsAssetsApi.md +++ b/docs/apis/BlockchainsAssetsApi.md @@ -65,7 +65,7 @@ No authorization required # **registerNewAsset** > AssetResponse registerNewAsset() -Register a new asset to a workspace and return the newly created asset\'s details. Currently supported for EVM based chains only. +Register a new asset to a workspace and return the newly created asset\'s details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR ### Example diff --git a/docs/apis/KeyLinkBetaApi.md b/docs/apis/KeyLinkBetaApi.md new file mode 100644 index 0000000..0b1e8cc --- /dev/null +++ b/docs/apis/KeyLinkBetaApi.md @@ -0,0 +1,591 @@ +# KeyLinkBetaApi + +All URIs are relative to https://developers.fireblocks.com/reference/ + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createSigningKey**](#createSigningKey) | **POST** /key_link/signing_keys | Add a new signing key +[**createValidationKey**](#createValidationKey) | **POST** /key_link/validation_keys | Add a new validation key +[**disableValidationKey**](#disableValidationKey) | **PATCH** /key_link/validation_keys/{keyId} | Disables a validation key +[**getSigningKey**](#getSigningKey) | **GET** /key_link/signing_keys/{keyId} | Get a signing key by `keyId` +[**getSigningKeysList**](#getSigningKeysList) | **GET** /key_link/signing_keys | Get list of signing keys +[**getValidationKey**](#getValidationKey) | **GET** /key_link/validation_keys/{keyId} | Get a validation key by `keyId` +[**getValidationKeysList**](#getValidationKeysList) | **GET** /key_link/validation_keys | Get list of registered validation keys +[**setAgentId**](#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` +[**updateSigningKey**](#updateSigningKey) | **PATCH** /key_link/signing_keys/{keyId} | Modify the signing by Fireblocks provided `keyId` + + +# **createSigningKey** +> SigningKeyDto createSigningKey(createSigningKeyDto) + +Adds a new signing key to the workspace. The added key will be linked to the specific Fireblocks agent user ID. The same user will receive the proof of ownership message to be signed, and upon successful proof, the key will become enabled. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, KeyLinkBetaApiCreateSigningKeyRequest, SigningKeyDto } 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: KeyLinkBetaApiCreateSigningKeyRequest = { + // CreateSigningKeyDto + createSigningKeyDto: 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.keyLinkBeta.createSigningKey(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 +------------- | ------------- | ------------- | ------------- + **createSigningKeyDto** | **[CreateSigningKeyDto](../models/CreateSigningKeyDto.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 + +**[SigningKeyDto](../models/SigningKeyDto.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Newly created signing key | * 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) + +# **createValidationKey** +> CreateValidationKeyResponseDto createValidationKey(createValidationKeyDto) + +Adds a new validation key used to validate signing keys. The new validation key will undergo an approval process by the workspace quorum. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, KeyLinkBetaApiCreateValidationKeyRequest, CreateValidationKeyResponseDto } 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: KeyLinkBetaApiCreateValidationKeyRequest = { + // CreateValidationKeyDto + createValidationKeyDto: 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.keyLinkBeta.createValidationKey(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 +------------- | ------------- | ------------- | ------------- + **createValidationKeyDto** | **[CreateValidationKeyDto](../models/CreateValidationKeyDto.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 + +**[CreateValidationKeyResponseDto](../models/CreateValidationKeyResponseDto.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | The validation key that was added and is pending approval. | * 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) + +# **disableValidationKey** +> ValidationKeyDto disableValidationKey(modifyValidationKeyDto, ) + +Allows disabling validation key even if it has not expired yet. It is not allowed to enable the validation key back. Another key has to be used for future validations. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, KeyLinkBetaApiDisableValidationKeyRequest, ValidationKeyDto } 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: KeyLinkBetaApiDisableValidationKeyRequest = { + // ModifyValidationKeyDto + modifyValidationKeyDto: param_value, + // string | The unique identifier for the validation key provided by Fireblocks + keyId: 46a92767-5f93-4a46-9eed-f012196bb4fc, +}; + +fireblocks.keyLinkBeta.disableValidationKey(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 +------------- | ------------- | ------------- | ------------- + **modifyValidationKeyDto** | **[ModifyValidationKeyDto](../models/ModifyValidationKeyDto.md)**| | + **keyId** | [**string**] | The unique identifier for the validation key provided by Fireblocks | defaults to undefined + + +### Return type + +**[ValidationKeyDto](../models/ValidationKeyDto.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Modified validation key data | * 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) + +# **getSigningKey** +> SigningKeyDto getSigningKey() + +Returns a signing key if it exists, identified by the specified Fireblocks provided `keyId`. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, KeyLinkBetaApiGetSigningKeyRequest, SigningKeyDto } 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: KeyLinkBetaApiGetSigningKeyRequest = { + // string | The unique identifier for the signing key provided by Fireblocks + keyId: 46a92767-5f93-4a46-9eed-f012196bb4fc, +}; + +fireblocks.keyLinkBeta.getSigningKey(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 +------------- | ------------- | ------------- | ------------- + **keyId** | [**string**] | The unique identifier for the signing key provided by Fireblocks | defaults to undefined + + +### Return type + +**[SigningKeyDto](../models/SigningKeyDto.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Requested signing key data | * 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) + +# **getSigningKeysList** +> GetSigningKeyResponseDto getSigningKeysList() + +Returns the list of signing keys in the workspace Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, KeyLinkBetaApiGetSigningKeysListRequest, GetSigningKeyResponseDto } 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: KeyLinkBetaApiGetSigningKeysListRequest = { + // string | Cursor to the next page (optional) + pageCursor: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA==, + // number | Amount of results to return in the next page (optional) + pageSize: 8.14, + // 'createdAt' | Field(s) to use for sorting (optional) + sortBy: sortBy_example, + // 'ASC' | 'DESC' | Is the order ascending or descending (optional) + order: order_example, +}; + +fireblocks.keyLinkBeta.getSigningKeysList(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 +------------- | ------------- | ------------- | ------------- + **pageCursor** | [**string**] | Cursor to the next page | (optional) defaults to undefined + **pageSize** | [**number**] | Amount of results to return in the next page | (optional) defaults to 10 + **sortBy** | [**'createdAt'**]**Array<'createdAt'>** | Field(s) to use for sorting | (optional) defaults to 'createdAt' + **order** | [**'ASC' | 'DESC'**]**Array<'ASC' | 'DESC'>** | Is the order ascending or descending | (optional) defaults to 'ASC' + + +### Return type + +**[GetSigningKeyResponseDto](../models/GetSigningKeyResponseDto.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 signing keys and a data that allows requesting the next page if applicable | * 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) + +# **getValidationKey** +> ValidationKeyDto getValidationKey() + +Returns a validation key if it exists, identified by the specified `keyId`. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, KeyLinkBetaApiGetValidationKeyRequest, ValidationKeyDto } 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: KeyLinkBetaApiGetValidationKeyRequest = { + // string + keyId: keyId_example, +}; + +fireblocks.keyLinkBeta.getValidationKey(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 +------------- | ------------- | ------------- | ------------- + **keyId** | [**string**] | | defaults to undefined + + +### Return type + +**[ValidationKeyDto](../models/ValidationKeyDto.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 requested validation key data | * 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) + +# **getValidationKeysList** +> GetValidationKeyResponseDto getValidationKeysList() + +Returns the list of validation keys in the workspace Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, KeyLinkBetaApiGetValidationKeysListRequest, GetValidationKeyResponseDto } 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: KeyLinkBetaApiGetValidationKeysListRequest = { + // string | Cursor to the next page (optional) + pageCursor: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA==, + // number | Amount of results to return in the next page (optional) + pageSize: 8.14, + // 'createdAt' | Field(s) to use for sorting (optional) + sortBy: sortBy_example, + // 'ASC' | 'DESC' | Is the order ascending or descending (optional) + order: order_example, +}; + +fireblocks.keyLinkBeta.getValidationKeysList(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 +------------- | ------------- | ------------- | ------------- + **pageCursor** | [**string**] | Cursor to the next page | (optional) defaults to undefined + **pageSize** | [**number**] | Amount of results to return in the next page | (optional) defaults to 10 + **sortBy** | [**'createdAt'**]**Array<'createdAt'>** | Field(s) to use for sorting | (optional) defaults to 'createdAt' + **order** | [**'ASC' | 'DESC'**]**Array<'ASC' | 'DESC'>** | Is the order ascending or descending | (optional) defaults to 'ASC' + + +### Return type + +**[GetValidationKeyResponseDto](../models/GetValidationKeyResponseDto.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Validation keys list along with data required to request the next page if applicable | * 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) + +# **setAgentId** +> setAgentId(modifySigningKeyAgentIdDto, ) + +Can modify existing signing key id if the key is not enabled. The change done in background and will be visible once applied. If key is already enabled (after proof of ownership) the user cannot be changed. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, KeyLinkBetaApiSetAgentIdRequest } 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: KeyLinkBetaApiSetAgentIdRequest = { + // ModifySigningKeyAgentIdDto + modifySigningKeyAgentIdDto: param_value, + // string | The unique identifier for the signing key provided by Fireblocks + keyId: 46a92767-5f93-4a46-9eed-f012196bb4fc, +}; + +fireblocks.keyLinkBeta.setAgentId(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 +------------- | ------------- | ------------- | ------------- + **modifySigningKeyAgentIdDto** | **[ModifySigningKeyAgentIdDto](../models/ModifySigningKeyAgentIdDto.md)**| | + **keyId** | [**string**] | The unique identifier for the signing key provided by Fireblocks | 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 | +|-------------|-------------|------------------| +**204** | Agent user id modification process has started in background. | * 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) + +# **updateSigningKey** +> SigningKeyDto updateSigningKey(modifySigningKeyDto, ) + +Allows assigning the signing key to a vault account, if it hasn\'t been assigned to any other vault accounts yet. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + +### Example + + +```typescript +import { readFileSync } from 'fs'; +import { Fireblocks, BasePath } from '@fireblocks/ts-sdk'; +import type { FireblocksResponse, KeyLinkBetaApiUpdateSigningKeyRequest, SigningKeyDto } 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: KeyLinkBetaApiUpdateSigningKeyRequest = { + // ModifySigningKeyDto + modifySigningKeyDto: param_value, + // string | The unique identifier for the signing key provided by Fireblocks + keyId: 46a92767-5f93-4a46-9eed-f012196bb4fc, +}; + +fireblocks.keyLinkBeta.updateSigningKey(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 +------------- | ------------- | ------------- | ------------- + **modifySigningKeyDto** | **[ModifySigningKeyDto](../models/ModifySigningKeyDto.md)**| | + **keyId** | [**string**] | The unique identifier for the signing key provided by Fireblocks | defaults to undefined + + +### Return type + +**[SigningKeyDto](../models/SigningKeyDto.md)** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Modified signing key data | * 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/CreateSigningKeyDto.md b/docs/models/CreateSigningKeyDto.md new file mode 100644 index 0000000..f5b7a27 --- /dev/null +++ b/docs/models/CreateSigningKeyDto.md @@ -0,0 +1,14 @@ +# CreateSigningKeyDto + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**signingDeviceKeyId** | **string** | The ID, name or label of the key specified on the customer\'s signing device. | [default to undefined]| +|**signedCertPem** | **string** | The signed certificate that includes the public key PEM of the signing key, signed by a validation key. | [default to undefined]| +|**agentUserId** | **string** | Id of user to which this key belongs | [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/CreateValidationKeyDto.md b/docs/models/CreateValidationKeyDto.md new file mode 100644 index 0000000..8fde1bb --- /dev/null +++ b/docs/models/CreateValidationKeyDto.md @@ -0,0 +1,13 @@ +# CreateValidationKeyDto + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**publicKeyPem** | **string** | The PEM encoded public key of the validation key being added | [default to undefined]| +|**daysTillExpired** | **number** | The number of days from the date the validation key was added until it expires | [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/CreateValidationKeyResponseDto.md b/docs/models/CreateValidationKeyResponseDto.md new file mode 100644 index 0000000..ad07a69 --- /dev/null +++ b/docs/models/CreateValidationKeyResponseDto.md @@ -0,0 +1,15 @@ +# CreateValidationKeyResponseDto + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**validationKey** | [**ValidationKeyDto**](ValidationKeyDto.md) | Created validation key | [default to undefined]| +|**admins** | **Array<string>** | Admins who have to approve the validation key addition | [default to undefined]| +|**approvalThreshold** | **number** | Minimal number of approvers required. 0 for all | [default to undefined]| +|**requestId** | **number** | Approval request id. Can be cancelled | [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/GetSigningKeyResponseDto.md b/docs/models/GetSigningKeyResponseDto.md new file mode 100644 index 0000000..4828d33 --- /dev/null +++ b/docs/models/GetSigningKeyResponseDto.md @@ -0,0 +1,13 @@ +# GetSigningKeyResponseDto + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**data** | [**Array<SigningKeyDto>**](SigningKeyDto.md) | Response object for getting external signing keys. | [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/GetValidationKeyResponseDto.md b/docs/models/GetValidationKeyResponseDto.md new file mode 100644 index 0000000..89d584e --- /dev/null +++ b/docs/models/GetValidationKeyResponseDto.md @@ -0,0 +1,13 @@ +# GetValidationKeyResponseDto + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**data** | [**Array<ValidationKeyDto>**](ValidationKeyDto.md) | Response object for getting external validation keys. | [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/ModifySigningKeyAgentIdDto.md b/docs/models/ModifySigningKeyAgentIdDto.md new file mode 100644 index 0000000..525b268 --- /dev/null +++ b/docs/models/ModifySigningKeyAgentIdDto.md @@ -0,0 +1,12 @@ +# ModifySigningKeyAgentIdDto + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**agentUserId** | **string** | Id of user that represent agent servers which signs with the key | [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/ModifySigningKeyDto.md b/docs/models/ModifySigningKeyDto.md new file mode 100644 index 0000000..1163256 --- /dev/null +++ b/docs/models/ModifySigningKeyDto.md @@ -0,0 +1,12 @@ +# ModifySigningKeyDto + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**vaultAccountId** | **number** | | [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/ModifyValidationKeyDto.md b/docs/models/ModifyValidationKeyDto.md new file mode 100644 index 0000000..46b0e6a --- /dev/null +++ b/docs/models/ModifyValidationKeyDto.md @@ -0,0 +1,12 @@ +# ModifyValidationKeyDto + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**enabled** | **boolean** | Disable validation key | [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/PolicyCheckResult.md b/docs/models/PolicyCheckResult.md index bef34fc..45b8471 100644 --- a/docs/models/PolicyCheckResult.md +++ b/docs/models/PolicyCheckResult.md @@ -5,7 +5,7 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| |**errors** | **number** | Number of errors | [default to undefined]| -|**result** | [**Array<PolicyRuleCheckResult>**](PolicyRuleCheckResult.md) | A set of validation results | [default to undefined]| +|**results** | [**Array<PolicyRuleCheckResult>**](PolicyRuleCheckResult.md) | A set of validation results | [default to undefined]| diff --git a/docs/models/RegisterNewAssetRequest.md b/docs/models/RegisterNewAssetRequest.md index 192b636..fa5c4c7 100644 --- a/docs/models/RegisterNewAssetRequest.md +++ b/docs/models/RegisterNewAssetRequest.md @@ -4,9 +4,9 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| -|**blockchainId** | **string** | Native asset of blockchain | [default to undefined]| -|**address** | **string** | Asset address | [default to undefined]| -|**symbol** | **string** | Asset symbol | [optional] [default to undefined]| +|**blockchainId** | **string** | Native asset ID of the blockchain | [default to undefined]| +|**address** | **string** | Asset address. - For EVM based chains this should be the token contract address. - For Stellar (XLM) this should be the issuer address. - For Algorand (ALGO) this should be the asset ID. - For TRON (TRX) this should be the token contract address. - For NEAR this will be the token address. | [default to undefined]| +|**symbol** | **string** | Required for Stellar only, asset code is expected. | [optional] [default to undefined]| diff --git a/docs/models/SigningKeyDto.md b/docs/models/SigningKeyDto.md new file mode 100644 index 0000000..ba28782 --- /dev/null +++ b/docs/models/SigningKeyDto.md @@ -0,0 +1,19 @@ +# SigningKeyDto + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**keyId** | **string** | External signing key id set by Fireblocks. | [default to undefined]| +|**signingDeviceKeyId** | **string** | The ID, name or label of the key specified on the customer\'s signing device. | [default to undefined]| +|**publicKeyPem** | **string** | PEM encoded public key | [default to undefined]| +|**algorithm** | **string** | Algorithm and curve used for the signature. Can be: ECDSA_SECP256K1 or EDDSA_ED25519 | [default to undefined]| +|**enabled** | **boolean** | True if the signing key is enabled | [default to undefined]| +|**vaultAccountId** | **number** | Id of the vault account which this key is linked to | [default to undefined]| +|**agentUserId** | **string** | Id of user that represent agent servers that can sign with the key | [default to undefined]| +|**createdAt** | **number** | Creation date (timestamp) in milliseconds. | [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/SmartTransferCreateTicketTerm.md b/docs/models/SmartTransferCreateTicketTerm.md index 58f4e68..39ec14d 100644 --- a/docs/models/SmartTransferCreateTicketTerm.md +++ b/docs/models/SmartTransferCreateTicketTerm.md @@ -5,7 +5,7 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| |**asset** | **string** | Asset name | [default to undefined]| -|**amount** | **number** | Amount | [default to undefined]| +|**amount** | **string** | Amount | [default to undefined]| |**fromNetworkId** | **string** | Identifier of the origination Network Profile | [default to undefined]| |**toNetworkId** | **string** | Identifier of the destination Network Profile | [default to undefined]| diff --git a/docs/models/SmartTransferUpdateTicketTerm.md b/docs/models/SmartTransferUpdateTicketTerm.md index e3d6dc0..6e519b0 100644 --- a/docs/models/SmartTransferUpdateTicketTerm.md +++ b/docs/models/SmartTransferUpdateTicketTerm.md @@ -5,7 +5,7 @@ |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| |**asset** | **string** | Asset name | [default to undefined]| -|**amount** | **number** | Amount | [default to undefined]| +|**amount** | **string** | Amount | [default to undefined]| |**fromNetworkId** | **string** | Identifier of the origination Network Profile | [default to undefined]| |**toNetworkId** | **string** | Identifier of the destination Network Profile | [default to undefined]| diff --git a/docs/models/ValidationKeyDto.md b/docs/models/ValidationKeyDto.md new file mode 100644 index 0000000..0a82875 --- /dev/null +++ b/docs/models/ValidationKeyDto.md @@ -0,0 +1,16 @@ +# ValidationKeyDto + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**keyId** | **string** | External validation key id set by Fireblocks. | [default to undefined]| +|**publicKeyPem** | **string** | PEM encoded public key used for the validation. | [default to undefined]| +|**daysTillExpired** | **number** | | [default to undefined]| +|**enabled** | **boolean** | True if the validation key is enabled. | [default to undefined]| +|**createdAt** | **number** | Creation date (timestamp) in milliseconds. | [default to undefined]| + + + + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/models/create-signing-key-dto.ts b/models/create-signing-key-dto.ts new file mode 100644 index 0000000..804073b --- /dev/null +++ b/models/create-signing-key-dto.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 CreateSigningKeyDto + */ +export interface CreateSigningKeyDto { + /** + * The ID, name or label of the key specified on the customer\'s signing device. + * @type {string} + * @memberof CreateSigningKeyDto + */ + 'signingDeviceKeyId': string; + /** + * The signed certificate that includes the public key PEM of the signing key, signed by a validation key. + * @type {string} + * @memberof CreateSigningKeyDto + */ + 'signedCertPem': string; + /** + * Id of user to which this key belongs + * @type {string} + * @memberof CreateSigningKeyDto + */ + 'agentUserId': string; +} + diff --git a/models/create-validation-key-dto.ts b/models/create-validation-key-dto.ts new file mode 100644 index 0000000..44fbfec --- /dev/null +++ b/models/create-validation-key-dto.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 CreateValidationKeyDto + */ +export interface CreateValidationKeyDto { + /** + * The PEM encoded public key of the validation key being added + * @type {string} + * @memberof CreateValidationKeyDto + */ + 'publicKeyPem': string; + /** + * The number of days from the date the validation key was added until it expires + * @type {number} + * @memberof CreateValidationKeyDto + */ + 'daysTillExpired': number; +} + diff --git a/models/create-validation-key-response-dto.ts b/models/create-validation-key-response-dto.ts new file mode 100644 index 0000000..eda8852 --- /dev/null +++ b/models/create-validation-key-response-dto.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 { ValidationKeyDto } from './validation-key-dto'; + +/** + * + * @export + * @interface CreateValidationKeyResponseDto + */ +export interface CreateValidationKeyResponseDto { + /** + * Created validation key + * @type {ValidationKeyDto} + * @memberof CreateValidationKeyResponseDto + */ + 'validationKey': ValidationKeyDto; + /** + * Admins who have to approve the validation key addition + * @type {Array} + * @memberof CreateValidationKeyResponseDto + */ + 'admins': Array; + /** + * Minimal number of approvers required. 0 for all + * @type {number} + * @memberof CreateValidationKeyResponseDto + */ + 'approvalThreshold': number; + /** + * Approval request id. Can be cancelled + * @type {number} + * @memberof CreateValidationKeyResponseDto + */ + 'requestId': number; +} + diff --git a/models/get-signing-key-response-dto.ts b/models/get-signing-key-response-dto.ts new file mode 100644 index 0000000..d0f8993 --- /dev/null +++ b/models/get-signing-key-response-dto.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 { SigningKeyDto } from './signing-key-dto'; + +/** + * + * @export + * @interface GetSigningKeyResponseDto + */ +export interface GetSigningKeyResponseDto { + /** + * Response object for getting external signing keys. + * @type {Array} + * @memberof GetSigningKeyResponseDto + */ + 'data': Array; + /** + * The ID of the next page + * @type {string} + * @memberof GetSigningKeyResponseDto + */ + 'next'?: string; +} + diff --git a/models/get-validation-key-response-dto.ts b/models/get-validation-key-response-dto.ts new file mode 100644 index 0000000..493921a --- /dev/null +++ b/models/get-validation-key-response-dto.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 { ValidationKeyDto } from './validation-key-dto'; + +/** + * + * @export + * @interface GetValidationKeyResponseDto + */ +export interface GetValidationKeyResponseDto { + /** + * Response object for getting external validation keys. + * @type {Array} + * @memberof GetValidationKeyResponseDto + */ + 'data': Array; + /** + * The ID of the next page + * @type {string} + * @memberof GetValidationKeyResponseDto + */ + 'next'?: string; +} + diff --git a/models/index.ts b/models/index.ts index 05622e2..995dd05 100644 --- a/models/index.ts +++ b/models/index.ts @@ -96,11 +96,14 @@ export * from './create-multiple-accounts-request'; export * from './create-ncw-connection-request'; export * from './create-network-id-request'; export * from './create-payout-request'; +export * from './create-signing-key-dto'; export * from './create-token-request-dto'; export * from './create-token-request-dto-create-params'; export * from './create-transaction-response'; export * from './create-transfer-config-operation-request'; export * from './create-user-group-response'; +export * from './create-validation-key-dto'; +export * from './create-validation-key-response-dto'; export * from './create-vault-account-connection-request'; export * from './create-vault-account-request'; export * from './create-vault-asset-response'; @@ -190,11 +193,13 @@ export * from './get-ota-status-response'; export * from './get-ownership-tokens-response'; export * from './get-paged-exchange-accounts-response'; export * from './get-routing-policy-asset-groups-response'; +export * from './get-signing-key-response-dto'; export * from './get-supported-assets-response'; export * from './get-transaction-operation'; export * from './get-transactions-response'; export * from './get-unspent-inputs-response'; export * from './get-users-response'; +export * from './get-validation-key-response-dto'; export * from './get-vault-account-asset-addresses-response'; export * from './get-vault-accounts-response'; export * from './get-vault-assets-response'; @@ -212,6 +217,9 @@ export * from './lean-deployed-contract-response-dto'; 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 './network-channel'; export * from './network-connection'; export * from './network-connection-response'; @@ -325,6 +333,7 @@ export * from './settlement-response'; export * from './signed-message'; export * from './signed-message-signature'; export * from './signed-messages'; +export * from './signing-key-dto'; export * from './smart-transfer-bad-request-response'; export * from './smart-transfer-create-ticket'; export * from './smart-transfer-create-ticket-term'; @@ -439,6 +448,7 @@ export * from './user-role'; export * from './user-status'; export * from './user-type'; export * from './validate-address-response'; +export * from './validation-key-dto'; export * from './validator-dto'; export * from './vault-account'; export * from './vault-accounts-paged-response'; diff --git a/models/modify-signing-key-agent-id-dto.ts b/models/modify-signing-key-agent-id-dto.ts new file mode 100644 index 0000000..0626216 --- /dev/null +++ b/models/modify-signing-key-agent-id-dto.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ModifySigningKeyAgentIdDto + */ +export interface ModifySigningKeyAgentIdDto { + /** + * Id of user that represent agent servers which signs with the key + * @type {string} + * @memberof ModifySigningKeyAgentIdDto + */ + 'agentUserId': string; +} + diff --git a/models/modify-signing-key-dto.ts b/models/modify-signing-key-dto.ts new file mode 100644 index 0000000..c2d1592 --- /dev/null +++ b/models/modify-signing-key-dto.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ModifySigningKeyDto + */ +export interface ModifySigningKeyDto { + /** + * + * @type {number} + * @memberof ModifySigningKeyDto + */ + 'vaultAccountId': number; +} + diff --git a/models/modify-validation-key-dto.ts b/models/modify-validation-key-dto.ts new file mode 100644 index 0000000..a694df5 --- /dev/null +++ b/models/modify-validation-key-dto.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ModifyValidationKeyDto + */ +export interface ModifyValidationKeyDto { + /** + * Disable validation key + * @type {boolean} + * @memberof ModifyValidationKeyDto + */ + 'enabled': boolean; +} + diff --git a/models/policy-check-result.ts b/models/policy-check-result.ts index 640e7af..005daa1 100644 --- a/models/policy-check-result.ts +++ b/models/policy-check-result.ts @@ -34,6 +34,6 @@ export interface PolicyCheckResult { * @type {Array} * @memberof PolicyCheckResult */ - 'result': Array; + 'results': Array; } diff --git a/models/register-new-asset-request.ts b/models/register-new-asset-request.ts index 623d7df..10ab026 100644 --- a/models/register-new-asset-request.ts +++ b/models/register-new-asset-request.ts @@ -21,19 +21,19 @@ */ export interface RegisterNewAssetRequest { /** - * Native asset of blockchain + * Native asset ID of the blockchain * @type {string} * @memberof RegisterNewAssetRequest */ 'blockchainId': string; /** - * Asset address + * Asset address. - For EVM based chains this should be the token contract address. - For Stellar (XLM) this should be the issuer address. - For Algorand (ALGO) this should be the asset ID. - For TRON (TRX) this should be the token contract address. - For NEAR this will be the token address. * @type {string} * @memberof RegisterNewAssetRequest */ 'address': string; /** - * Asset symbol + * Required for Stellar only, asset code is expected. * @type {string} * @memberof RegisterNewAssetRequest */ diff --git a/models/signing-key-dto.ts b/models/signing-key-dto.ts new file mode 100644 index 0000000..3435050 --- /dev/null +++ b/models/signing-key-dto.ts @@ -0,0 +1,72 @@ +/* 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 SigningKeyDto + */ +export interface SigningKeyDto { + /** + * External signing key id set by Fireblocks. + * @type {string} + * @memberof SigningKeyDto + */ + 'keyId': string; + /** + * The ID, name or label of the key specified on the customer\'s signing device. + * @type {string} + * @memberof SigningKeyDto + */ + 'signingDeviceKeyId': string; + /** + * PEM encoded public key + * @type {string} + * @memberof SigningKeyDto + */ + 'publicKeyPem': string; + /** + * Algorithm and curve used for the signature. Can be: ECDSA_SECP256K1 or EDDSA_ED25519 + * @type {string} + * @memberof SigningKeyDto + */ + 'algorithm': string; + /** + * True if the signing key is enabled + * @type {boolean} + * @memberof SigningKeyDto + */ + 'enabled': boolean; + /** + * Id of the vault account which this key is linked to + * @type {number} + * @memberof SigningKeyDto + */ + 'vaultAccountId': number | null; + /** + * Id of user that represent agent servers that can sign with the key + * @type {string} + * @memberof SigningKeyDto + */ + 'agentUserId': string; + /** + * Creation date (timestamp) in milliseconds. + * @type {number} + * @memberof SigningKeyDto + */ + 'createdAt': number; +} + diff --git a/models/smart-transfer-create-ticket-term.ts b/models/smart-transfer-create-ticket-term.ts index 3591cc5..2fa234e 100644 --- a/models/smart-transfer-create-ticket-term.ts +++ b/models/smart-transfer-create-ticket-term.ts @@ -28,10 +28,10 @@ export interface SmartTransferCreateTicketTerm { 'asset': string; /** * Amount - * @type {number} + * @type {string} * @memberof SmartTransferCreateTicketTerm */ - 'amount': number; + 'amount': string; /** * Identifier of the origination Network Profile * @type {string} diff --git a/models/smart-transfer-update-ticket-term.ts b/models/smart-transfer-update-ticket-term.ts index 3212bf9..2354092 100644 --- a/models/smart-transfer-update-ticket-term.ts +++ b/models/smart-transfer-update-ticket-term.ts @@ -28,10 +28,10 @@ export interface SmartTransferUpdateTicketTerm { 'asset': string; /** * Amount - * @type {number} + * @type {string} * @memberof SmartTransferUpdateTicketTerm */ - 'amount': number; + 'amount': string; /** * Identifier of the origination Network Profile * @type {string} diff --git a/models/validation-key-dto.ts b/models/validation-key-dto.ts new file mode 100644 index 0000000..da283e9 --- /dev/null +++ b/models/validation-key-dto.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 ValidationKeyDto + */ +export interface ValidationKeyDto { + /** + * External validation key id set by Fireblocks. + * @type {string} + * @memberof ValidationKeyDto + */ + 'keyId': string; + /** + * PEM encoded public key used for the validation. + * @type {string} + * @memberof ValidationKeyDto + */ + 'publicKeyPem': string; + /** + * + * @type {number} + * @memberof ValidationKeyDto + */ + 'daysTillExpired': number; + /** + * True if the validation key is enabled. + * @type {boolean} + * @memberof ValidationKeyDto + */ + 'enabled': boolean; + /** + * Creation date (timestamp) in milliseconds. + * @type {number} + * @memberof ValidationKeyDto + */ + 'createdAt': number; +} + diff --git a/package-lock.json b/package-lock.json index c8aff1b..26f21b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@fireblocks/ts-sdk", - "version": "2.0.0", + "version": "2.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@fireblocks/ts-sdk", - "version": "2.0.0", + "version": "2.1.0", "license": "MIT License", "dependencies": { "axios": "^1.6.7", @@ -40,12 +40,12 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.24.2", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.2.tgz", - "integrity": "sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.6.tgz", + "integrity": "sha512-ZJhac6FkEd1yhG2AHOmfcXG4ceoLltoCVJjN5XsWN9BifBQr+cHJbWi0h68HZuSORq+3WtJ2z0hwF2NG1b5kcA==", "dev": true, "dependencies": { - "@babel/highlight": "^7.24.2", + "@babel/highlight": "^7.24.6", "picocolors": "^1.0.0" }, "engines": { @@ -53,30 +53,30 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.24.4.tgz", - "integrity": "sha512-vg8Gih2MLK+kOkHJp4gBEIkyaIi00jgWot2D9QOmmfLC8jINSOzmCLta6Bvz/JSBCqnegV0L80jhxkol5GWNfQ==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.24.6.tgz", + "integrity": "sha512-aC2DGhBq5eEdyXWqrDInSqQjO0k8xtPRf5YylULqx8MCd6jBtzqfta/3ETMRpuKIc5hyswfO80ObyA1MvkCcUQ==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.5.tgz", - "integrity": "sha512-tVQRucExLQ02Boi4vdPp49svNGcfL2GhdTCT9aldhXgCJVAI21EtRfBettiuLUwce/7r6bFdgs6JFkcdTiFttA==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.6.tgz", + "integrity": "sha512-qAHSfAdVyFmIvl0VHELib8xar7ONuSHrE2hLnsaWkYNTI68dmi1x8GYDhJjMI/e7XWal9QBlZkwbOnkcw7Z8gQ==", "dev": true, "dependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.24.2", - "@babel/generator": "^7.24.5", - "@babel/helper-compilation-targets": "^7.23.6", - "@babel/helper-module-transforms": "^7.24.5", - "@babel/helpers": "^7.24.5", - "@babel/parser": "^7.24.5", - "@babel/template": "^7.24.0", - "@babel/traverse": "^7.24.5", - "@babel/types": "^7.24.5", + "@babel/code-frame": "^7.24.6", + "@babel/generator": "^7.24.6", + "@babel/helper-compilation-targets": "^7.24.6", + "@babel/helper-module-transforms": "^7.24.6", + "@babel/helpers": "^7.24.6", + "@babel/parser": "^7.24.6", + "@babel/template": "^7.24.6", + "@babel/traverse": "^7.24.6", + "@babel/types": "^7.24.6", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -92,12 +92,12 @@ } }, "node_modules/@babel/generator": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.5.tgz", - "integrity": "sha512-x32i4hEXvr+iI0NEoEfDKzlemF8AmtOP8CcrRaEcpzysWuoEb1KknpcvMsHKPONoKZiDuItklgWhB18xEhr9PA==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.6.tgz", + "integrity": "sha512-S7m4eNa6YAPJRHmKsLHIDJhNAGNKoWNiWefz1MBbpnt8g9lvMDl1hir4P9bo/57bQEmuwEhnRU/AMWsD0G/Fbg==", "dev": true, "dependencies": { - "@babel/types": "^7.24.5", + "@babel/types": "^7.24.6", "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25", "jsesc": "^2.5.1" @@ -107,13 +107,13 @@ } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", - "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.6.tgz", + "integrity": "sha512-VZQ57UsDGlX/5fFA7GkVPplZhHsVc+vuErWgdOiysI9Ksnw0Pbbd6pnPiR/mmJyKHgyIW0c7KT32gmhiF+cirg==", "dev": true, "dependencies": { - "@babel/compat-data": "^7.23.5", - "@babel/helper-validator-option": "^7.23.5", + "@babel/compat-data": "^7.24.6", + "@babel/helper-validator-option": "^7.24.6", "browserslist": "^4.22.2", "lru-cache": "^5.1.1", "semver": "^6.3.1" @@ -123,62 +123,62 @@ } }, "node_modules/@babel/helper-environment-visitor": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", - "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.24.6.tgz", + "integrity": "sha512-Y50Cg3k0LKLMjxdPjIl40SdJgMB85iXn27Vk/qbHZCFx/o5XO3PSnpi675h1KEmmDb6OFArfd5SCQEQ5Q4H88g==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-function-name": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", - "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.24.6.tgz", + "integrity": "sha512-xpeLqeeRkbxhnYimfr2PC+iA0Q7ljX/d1eZ9/inYbmfG2jpl8Lu3DyXvpOAnrS5kxkfOWJjioIMQsaMBXFI05w==", "dev": true, "dependencies": { - "@babel/template": "^7.22.15", - "@babel/types": "^7.23.0" + "@babel/template": "^7.24.6", + "@babel/types": "^7.24.6" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-hoist-variables": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", - "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.24.6.tgz", + "integrity": "sha512-SF/EMrC3OD7dSta1bLJIlrsVxwtd0UpjRJqLno6125epQMJ/kyFmpTT4pbvPbdQHzCHg+biQ7Syo8lnDtbR+uA==", "dev": true, "dependencies": { - "@babel/types": "^7.22.5" + "@babel/types": "^7.24.6" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-imports": { - "version": "7.24.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.3.tgz", - "integrity": "sha512-viKb0F9f2s0BCS22QSF308z/+1YWKV/76mwt61NBzS5izMzDPwdq1pTrzf+Li3npBWX9KdQbkeCt1jSAM7lZqg==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.6.tgz", + "integrity": "sha512-a26dmxFJBF62rRO9mmpgrfTLsAuyHk4e1hKTUkD/fcMfynt8gvEKwQPQDVxWhca8dHoDck+55DFt42zV0QMw5g==", "dev": true, "dependencies": { - "@babel/types": "^7.24.0" + "@babel/types": "^7.24.6" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.24.5.tgz", - "integrity": "sha512-9GxeY8c2d2mdQUP1Dye0ks3VDyIMS98kt/llQ2nUId8IsWqTF0l1LkSX0/uP7l7MCDrzXS009Hyhe2gzTiGW8A==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.24.6.tgz", + "integrity": "sha512-Y/YMPm83mV2HJTbX1Qh2sjgjqcacvOlhbzdCCsSlblOKjSYmQqEbO6rUniWQyRo9ncyfjT8hnUjlG06RXDEmcA==", "dev": true, "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-module-imports": "^7.24.3", - "@babel/helper-simple-access": "^7.24.5", - "@babel/helper-split-export-declaration": "^7.24.5", - "@babel/helper-validator-identifier": "^7.24.5" + "@babel/helper-environment-visitor": "^7.24.6", + "@babel/helper-module-imports": "^7.24.6", + "@babel/helper-simple-access": "^7.24.6", + "@babel/helper-split-export-declaration": "^7.24.6", + "@babel/helper-validator-identifier": "^7.24.6" }, "engines": { "node": ">=6.9.0" @@ -188,86 +188,85 @@ } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.5.tgz", - "integrity": "sha512-xjNLDopRzW2o6ba0gKbkZq5YWEBaK3PCyTOY1K2P/O07LGMhMqlMXPxwN4S5/RhWuCobT8z0jrlKGlYmeR1OhQ==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.6.tgz", + "integrity": "sha512-MZG/JcWfxybKwsA9N9PmtF2lOSFSEMVCpIRrbxccZFLJPrJciJdG/UhSh5W96GEteJI2ARqm5UAHxISwRDLSNg==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-simple-access": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.5.tgz", - "integrity": "sha512-uH3Hmf5q5n7n8mz7arjUlDOCbttY/DW4DYhE6FUsjKJ/oYC1kQQUvwEQWxRwUpX9qQKRXeqLwWxrqilMrf32sQ==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.6.tgz", + "integrity": "sha512-nZzcMMD4ZhmB35MOOzQuiGO5RzL6tJbsT37Zx8M5L/i9KSrukGXWTjLe1knIbb/RmxoJE9GON9soq0c0VEMM5g==", "dev": true, "dependencies": { - "@babel/types": "^7.24.5" + "@babel/types": "^7.24.6" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-split-export-declaration": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.5.tgz", - "integrity": "sha512-5CHncttXohrHk8GWOFCcCl4oRD9fKosWlIRgWm4ql9VYioKm52Mk2xsmoohvm7f3JoiLSM5ZgJuRaf5QZZYd3Q==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.6.tgz", + "integrity": "sha512-CvLSkwXGWnYlF9+J3iZUvwgAxKiYzK3BWuo+mLzD/MDGOZDj7Gq8+hqaOkMxmJwmlv0iu86uH5fdADd9Hxkymw==", "dev": true, "dependencies": { - "@babel/types": "^7.24.5" + "@babel/types": "^7.24.6" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-string-parser": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz", - "integrity": "sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.6.tgz", + "integrity": "sha512-WdJjwMEkmBicq5T9fm/cHND3+UlFa2Yj8ALLgmoSQAJZysYbBjw+azChSGPN4DSPLXOcooGRvDwZWMcF/mLO2Q==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.5.tgz", - "integrity": "sha512-3q93SSKX2TWCG30M2G2kwaKeTYgEUp5Snjuj8qm729SObL6nbtUldAi37qbxkD5gg3xnBio+f9nqpSepGZMvxA==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.6.tgz", + "integrity": "sha512-4yA7s865JHaqUdRbnaxarZREuPTHrjpDT+pXoAZ1yhyo6uFnIEpS8VMu16siFOHDpZNKYv5BObhsB//ycbICyw==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", - "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.24.6.tgz", + "integrity": "sha512-Jktc8KkF3zIkePb48QO+IapbXlSapOW9S+ogZZkcO6bABgYAxtZcjZ/O005111YLf+j4M84uEgwYoidDkXbCkQ==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.5.tgz", - "integrity": "sha512-CiQmBMMpMQHwM5m01YnrM6imUG1ebgYJ+fAIW4FZe6m4qHTPaRHti+R8cggAwkdz4oXhtO4/K9JWlh+8hIfR2Q==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.6.tgz", + "integrity": "sha512-V2PI+NqnyFu1i0GyTd/O/cTpxzQCYioSkUIRmgo7gFEHKKCg5w46+r/A6WeUR1+P3TeQ49dspGPNd/E3n9AnnA==", "dev": true, "dependencies": { - "@babel/template": "^7.24.0", - "@babel/traverse": "^7.24.5", - "@babel/types": "^7.24.5" + "@babel/template": "^7.24.6", + "@babel/types": "^7.24.6" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/highlight": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.5.tgz", - "integrity": "sha512-8lLmua6AVh/8SLJRRVD6V8p73Hir9w5mJrhE+IPpILG31KKlI9iz5zmBYKcWPS59qSfgP9RaSBQSHHE81WKuEw==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.6.tgz", + "integrity": "sha512-2YnuOp4HAk2BsBrJJvYCbItHx0zWscI1C3zgWkz+wDyD9I7GIVrfnLyrR4Y1VR+7p+chAEcrgRQYZAGIKMV7vQ==", "dev": true, "dependencies": { - "@babel/helper-validator-identifier": "^7.24.5", + "@babel/helper-validator-identifier": "^7.24.6", "chalk": "^2.4.2", "js-tokens": "^4.0.0", "picocolors": "^1.0.0" @@ -348,9 +347,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.5.tgz", - "integrity": "sha512-EOv5IK8arwh3LI47dz1b0tKUb/1uhHAnHJOrjgtQMIpu1uXd9mlFrJg9IUgGUgZ41Ch0K8REPTYpO7B76b4vJg==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.6.tgz", + "integrity": "sha512-eNZXdfU35nJC2h24RznROuOpO94h6x8sg9ju0tT9biNtLZ2vuP8SduLqqV+/8+cebSLV9SJEAN5Z3zQbJG/M+Q==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -420,12 +419,12 @@ } }, "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.1.tgz", - "integrity": "sha512-2eCtxZXf+kbkMIsXS4poTvT4Yu5rXiRa+9xGVT56raghjmBTKMpFNc9R4IDiB4emao9eO22Ox7CxuJG7BgExqA==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.6.tgz", + "integrity": "sha512-lWfvAIFNWMlCsU0DRUun2GpFwZdGTukLaHJqRh1JRb80NdAP5Sb1HDHB5X9P9OtgZHQl089UzQkpYlBq2VTPRw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" + "@babel/helper-plugin-utils": "^7.24.6" }, "engines": { "node": ">=6.9.0" @@ -522,12 +521,12 @@ } }, "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.1.tgz", - "integrity": "sha512-Yhnmvy5HZEnHUty6i++gcfH1/l68AHnItFHnaCv6hn9dNh0hQvvQJsxpi4BMBFN5DLeHBuucT/0DgzXif/OyRw==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.6.tgz", + "integrity": "sha512-TzCtxGgVTEJWWwcYwQhCIQ6WaKlo80/B+Onsk4RRCcYqpYGFcG9etPW94VToGte5AAcxRrhjPUFvUS3Y2qKi4A==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" + "@babel/helper-plugin-utils": "^7.24.6" }, "engines": { "node": ">=6.9.0" @@ -537,33 +536,33 @@ } }, "node_modules/@babel/template": { - "version": "7.24.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.24.0.tgz", - "integrity": "sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.24.6.tgz", + "integrity": "sha512-3vgazJlLwNXi9jhrR1ef8qiB65L1RK90+lEQwv4OxveHnqC3BfmnHdgySwRLzf6akhlOYenT+b7AfWq+a//AHw==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.23.5", - "@babel/parser": "^7.24.0", - "@babel/types": "^7.24.0" + "@babel/code-frame": "^7.24.6", + "@babel/parser": "^7.24.6", + "@babel/types": "^7.24.6" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.5.tgz", - "integrity": "sha512-7aaBLeDQ4zYcUFDUD41lJc1fG8+5IU9DaNSJAgal866FGvmD5EbWQgnEC6kO1gGLsX0esNkfnJSndbTXA3r7UA==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.24.2", - "@babel/generator": "^7.24.5", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.24.5", - "@babel/parser": "^7.24.5", - "@babel/types": "^7.24.5", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.6.tgz", + "integrity": "sha512-OsNjaJwT9Zn8ozxcfoBc+RaHdj3gFmCmYoQLUII1o6ZrUwku0BMg80FoOTPx+Gi6XhcQxAYE4xyjPTo4SxEQqw==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.24.6", + "@babel/generator": "^7.24.6", + "@babel/helper-environment-visitor": "^7.24.6", + "@babel/helper-function-name": "^7.24.6", + "@babel/helper-hoist-variables": "^7.24.6", + "@babel/helper-split-export-declaration": "^7.24.6", + "@babel/parser": "^7.24.6", + "@babel/types": "^7.24.6", "debug": "^4.3.1", "globals": "^11.1.0" }, @@ -572,13 +571,13 @@ } }, "node_modules/@babel/types": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.5.tgz", - "integrity": "sha512-6mQNsaLeXTw0nxYUYu+NSa4Hx4BlF1x1x8/PMFbiR+GBSr+2DkECc69b8hgy2frEodNcvPffeH8YfWd3LI6jhQ==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.6.tgz", + "integrity": "sha512-WaMsgi6Q8zMgMth93GvWPXkhAIEobfsIkLTacoVZoK1J0CevIPGYY2Vo5YvJGqyHqXM6P4ppOYGsIRU8MM9pFQ==", "dev": true, "dependencies": { - "@babel/helper-string-parser": "^7.24.1", - "@babel/helper-validator-identifier": "^7.24.5", + "@babel/helper-string-parser": "^7.24.6", + "@babel/helper-validator-identifier": "^7.24.6", "to-fast-properties": "^2.0.0" }, "engines": { @@ -999,9 +998,9 @@ } }, "node_modules/@types/babel__traverse": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.5.tgz", - "integrity": "sha512-WXCyOcRtH37HAUkpXhUduaxdm82b4GSlyTqajXviN4EfiuPgNYR109xMCKvpl6zPIpua0DGlMEDCq+g8EdoheQ==", + "version": "7.20.6", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.6.tgz", + "integrity": "sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==", "dev": true, "dependencies": { "@babel/types": "^7.20.7" @@ -1165,9 +1164,9 @@ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "node_modules/axios": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz", - "integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==", + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.2.tgz", + "integrity": "sha512-2A8QhOMrbomlDuiLeK9XibIBzuHeRcqqNOHp0Cyp5EoJ1IFDh+XZH3A6BkXtv0K4gFGCI0Y4BM7B1wOEi0Rmgw==", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", @@ -1298,12 +1297,12 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -1392,9 +1391,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001616", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001616.tgz", - "integrity": "sha512-RHVYKov7IcdNjVHJFNY/78RdG4oGVjbayxv8u5IO74Wv7Hlq4PnJE6mo/OjFijjVFNy5ijnCt6H3IIo4t+wfEw==", + "version": "1.0.30001627", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001627.tgz", + "integrity": "sha512-4zgNiB8nTyV/tHhwZrFs88ryjls/lHiqFhrxCW4qSTeuRByBVnPYpDInchOIySWknznucaf31Z4KYqjfbrecVw==", "dev": true, "funding": [ { @@ -1564,9 +1563,9 @@ } }, "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz", + "integrity": "sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==", "dev": true, "dependencies": { "ms": "2.1.2" @@ -1638,9 +1637,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.4.758", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.758.tgz", - "integrity": "sha512-/o9x6TCdrYZBMdGeTifAP3wlF/gVT+TtWJe3BSmtNh92Mw81U9hrYwW9OAGUh+sEOX/yz5e34sksqRruZbjYrw==", + "version": "1.4.788", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.788.tgz", + "integrity": "sha512-ubp5+Ev/VV8KuRoWnfP2QF2Bg+O2ZFdb49DiiNbz2VmgkIqrnyYaqIOqj8A6K/3p1xV0QcU5hBQ1+BmB6ot1OA==", "dev": true }, "node_modules/emittery": { @@ -1765,9 +1764,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "dependencies": { "to-regex-range": "^5.0.1" @@ -1893,6 +1892,7 @@ "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, "dependencies": { "fs.realpath": "^1.0.0", @@ -1992,6 +1992,7 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "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, "dependencies": { "once": "^1.3.0", @@ -2093,9 +2094,9 @@ } }, "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "7.6.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.1.tgz", - "integrity": "sha512-f/vbBsu+fOiYt+lmwZV0rVwJScl46HppnOA1ZvIuBWKOTlllpyJ3bfVax76/OrhCH38dyxoDIA8K7uB963IYgA==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "dev": true, "bin": { "semver": "bin/semver.js" @@ -2621,9 +2622,9 @@ } }, "node_modules/jest-snapshot/node_modules/semver": { - "version": "7.6.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.1.tgz", - "integrity": "sha512-f/vbBsu+fOiYt+lmwZV0rVwJScl46HppnOA1ZvIuBWKOTlllpyJ3bfVax76/OrhCH38dyxoDIA8K7uB963IYgA==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "dev": true, "bin": { "semver": "bin/semver.js" @@ -2926,9 +2927,9 @@ } }, "node_modules/make-dir/node_modules/semver": { - "version": "7.6.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.1.tgz", - "integrity": "sha512-f/vbBsu+fOiYt+lmwZV0rVwJScl46HppnOA1ZvIuBWKOTlllpyJ3bfVax76/OrhCH38dyxoDIA8K7uB963IYgA==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "dev": true, "bin": { "semver": "bin/semver.js" @@ -2959,12 +2960,12 @@ "dev": true }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", + "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", "dev": true, "dependencies": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { @@ -3194,9 +3195,9 @@ "dev": true }, "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==", "dev": true }, "node_modules/picomatch": { @@ -3644,9 +3645,9 @@ } }, "node_modules/ts-jest/node_modules/semver": { - "version": "7.6.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.1.tgz", - "integrity": "sha512-f/vbBsu+fOiYt+lmwZV0rVwJScl46HppnOA1ZvIuBWKOTlllpyJ3bfVax76/OrhCH38dyxoDIA8K7uB963IYgA==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "dev": true, "bin": { "semver": "bin/semver.js" @@ -3690,9 +3691,9 @@ } }, "node_modules/update-browserslist-db": { - "version": "1.0.15", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.15.tgz", - "integrity": "sha512-K9HWH62x3/EalU1U6sjSZiylm9C8tgq2mSvshZpqc7QE69RaA2qjhkW2HlNA0tFpEbtyFz7HTqbSdN4MSwUodA==", + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz", + "integrity": "sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==", "dev": true, "funding": [ { @@ -3710,7 +3711,7 @@ ], "dependencies": { "escalade": "^3.1.2", - "picocolors": "^1.0.0" + "picocolors": "^1.0.1" }, "bin": { "update-browserslist-db": "cli.js" diff --git a/package.json b/package.json index 7fb54aa..f419eb0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fireblocks/ts-sdk", - "version": "2.0.0", + "version": "2.1.0", "description": "OpenAPI client for @fireblocks/ts-sdk", "author": "Fireblocks SDK Generator", "repository": { diff --git a/tests/client.spec.ts b/tests/client.spec.ts index 976c6e0..720767b 100644 --- a/tests/client.spec.ts +++ b/tests/client.spec.ts @@ -29,6 +29,7 @@ FiatAccountsApi, GasStationsApi, InternalWalletsApi, JobManagementApi, +KeyLinkBetaApi, NFTsApi, NetworkConnectionsApi, OTABetaApi, @@ -71,6 +72,7 @@ let mockFiatAccountsApi: jest.Mock; let mockGasStationsApi: jest.Mock; let mockInternalWalletsApi: jest.Mock; let mockJobManagementApi: jest.Mock; +let mockKeyLinkBetaApi: jest.Mock; let mockNFTsApi: jest.Mock; let mockNetworkConnectionsApi: jest.Mock; let mockOTABetaApi: jest.Mock; @@ -110,6 +112,7 @@ jest.mock('../api', () => { mockGasStationsApi = jest.fn(); mockInternalWalletsApi = jest.fn(); mockJobManagementApi = jest.fn(); + mockKeyLinkBetaApi = jest.fn(); mockNFTsApi = jest.fn(); mockNetworkConnectionsApi = jest.fn(); mockOTABetaApi = jest.fn(); @@ -150,6 +153,7 @@ jest.mock('../api', () => { GasStationsApi: mockGasStationsApi, InternalWalletsApi: mockInternalWalletsApi, JobManagementApi: mockJobManagementApi, + KeyLinkBetaApi: mockKeyLinkBetaApi, NFTsApi: mockNFTsApi, NetworkConnectionsApi: mockNetworkConnectionsApi, OTABetaApi: mockOTABetaApi, @@ -320,6 +324,10 @@ describe("Fireblocks Client Tests", () => { expect(fireblocks.jobManagement).toBeInstanceOf(JobManagementApi); expect(mockJobManagementApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); }); + it('Should return KeyLinkBetaApi', async () => { + expect(fireblocks.keyLinkBeta).toBeInstanceOf(KeyLinkBetaApi); + expect(mockKeyLinkBetaApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios); + }); it('Should return NFTsApi', async () => { expect(fireblocks.nfts).toBeInstanceOf(NFTsApi); expect(mockNFTsApi).toHaveBeenCalledWith(expectedConfig, undefined, mockAxios);