diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index d2891603..84fb1b11 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -106,7 +106,7 @@ docs/ApprovalApiKey.md docs/ApprovalApiPublicKey.md docs/ApprovalRequest.md docs/ApprovalRequestItem.md -docs/ApprovalsBetaApi.md +docs/ApprovalsApi.md docs/ApproveApprovalRequest.md docs/ApproversConfig.md docs/ApproversConfigApprovalGroupsInner.md @@ -139,7 +139,6 @@ docs/AssetPriceResponse.md docs/AssetResponse.md docs/AssetScope.md docs/AssetTypeResponse.md -docs/AssetTypesConfigInner.md docs/AssetWallet.md docs/AssignVaultsToLegalEntityRequest.md docs/AssignVaultsToLegalEntityResponse.md @@ -167,7 +166,7 @@ docs/BlockchainDeclaredProperties.md docs/BlockchainDestination.md docs/BlockchainEnvironment.md docs/BlockchainExplorer.md -docs/BlockchainLinkBetaApi.md +docs/BlockchainLinkApi.md docs/BlockchainMedia.md docs/BlockchainMetadata.md docs/BlockchainNotFoundErrorResponse.md @@ -197,7 +196,7 @@ docs/CallAccepted.md docs/CallbackHandler.md docs/CallbackHandlerRequest.md docs/CancelTransactionResponse.md -docs/CantonBetaApi.md +docs/CantonApi.md docs/CantonCall.md docs/CantonCallAllowListAdd.md docs/CantonCallAllowListRemove.md @@ -233,7 +232,7 @@ docs/CollectionTokenMetadataAttributeDto.md docs/CollectionTokenMetadataDto.md docs/CollectionType.md docs/ComplianceApi.md -docs/ComplianceOrchestratorBetaApi.md +docs/ComplianceOrchestratorApi.md docs/ComplianceRequirement.md docs/ComplianceResultFullPayload.md docs/ComplianceResultStatusesEnum.md @@ -255,6 +254,7 @@ docs/ConnectedAccountAssetType.md docs/ConnectedAccountBalances.md docs/ConnectedAccountBalancesResponse.md docs/ConnectedAccountCapability.md +docs/ConnectedAccountCredit.md docs/ConnectedAccountErrorResponse.md docs/ConnectedAccountManifest.md docs/ConnectedAccountRateResponse.md @@ -348,6 +348,8 @@ docs/CreateMultipleVaultAccountsJobStatus.md docs/CreateNcwConnectionRequest.md docs/CreateNetworkIdRequest.md docs/CreateOffersRequest.md +docs/CreateOmnibusAddressesRequest.md +docs/CreateOmnibusAddressesResponse.md docs/CreateOrderRequest.md docs/CreatePayoutRequest.md docs/CreateQuote.md @@ -369,6 +371,7 @@ docs/CreateVaultAccountConnectionRequest.md docs/CreateVaultAccountRequest.md docs/CreateVaultAssetResponse.md docs/CreateWalletRequest.md +docs/CreateWebhookCustomHeadersRequest.md docs/CreateWebhookMtlsConfigRequest.md docs/CreateWebhookOauthRequest.md docs/CreateWebhookRequest.md @@ -385,6 +388,7 @@ docs/DelegationSummary.md docs/DeleteApprovalApiKeyResponse.md docs/DeleteNetworkConnectionResponse.md docs/DeleteNetworkIdResponse.md +docs/DeleteWebhookCustomHeadersResponse.md docs/DeleteWebhookMtlsConfigResponse.md docs/DeleteWebhookOauthResponse.md docs/DeployLayerZeroAdaptersRequest.md @@ -536,7 +540,7 @@ docs/GasStationsApi.md docs/GaslessInfo.md docs/GasslessStandardConfigurations.md docs/GasslessStandardConfigurationsGaslessStandardConfigurationsValue.md -docs/GenieBetaApi.md +docs/GenieApi.md docs/GenieChatMessage.md docs/GenieCreateSessionResponse.md docs/GenieSendMessageRequest.md @@ -625,6 +629,7 @@ docs/ListAssetsResponse.md docs/ListBlockchainsResponse.md docs/ListBlockchainsResponse2.md docs/ListLegalEntitiesResponse.md +docs/ListOmnibusAddressesResponse.md docs/ListOwnedCollectionsResponse.md docs/ListOwnedTokensResponse.md docs/ListUtxosResponse.md @@ -693,6 +698,7 @@ docs/OfferResponseTransferAccept.md docs/OfferResponseTransferReject.md docs/OfferResponseTransferWithdraw.md docs/OffersResponse.md +docs/OmnibusAddress.md docs/OnchainDataApi.md docs/OnchainTransaction.md docs/OnchainTransactionsPagedResponse.md @@ -713,7 +719,7 @@ docs/OrderRequirementFile.md docs/OrderSide.md docs/OrderStatus.md docs/OrderSummary.md -docs/OtaBetaApi.md +docs/OtaApi.md docs/PaginatedAddressResponse.md docs/PaginatedAddressResponsePaging.md docs/PaginatedAssetWalletResponse.md @@ -768,7 +774,6 @@ docs/PolicyAndValidationResponse.md docs/PolicyCheckResult.md docs/PolicyCurrency.md docs/PolicyEditorV2Api.md -docs/PolicyEditorV2BetaApi.md docs/PolicyMetadataEntry.md docs/PolicyOperator.md docs/PolicyResponse.md @@ -828,6 +833,8 @@ docs/ReQuoteDetailsReQuote.md docs/ReadAbiFunction.md docs/ReadCallFunctionDto.md docs/ReadCallFunctionDtoAbiFunction.md +docs/ReadOnlyDraftResponse.md +docs/ReadOnlyDraftReviewAndValidationResponse.md docs/ReasonForPaymentEnum.md docs/RecipientHandle.md docs/RedeemFundsToLinkedDDAResponse.md @@ -835,6 +842,7 @@ docs/RegisterApprovalApiKeyRequest.md docs/RegisterApprovalApiKeyResponse.md docs/RegisterLegalEntityRequest.md docs/RegisterNewAssetRequest.md +docs/RegisterTempoOmnibusResponse.md docs/ReissueMultichainTokenRequest.md docs/RelatedRequest.md docs/RelatedTransaction.md @@ -857,7 +865,7 @@ docs/ReportListResponse.md docs/ReportOutputFormat.md docs/ReportStatus.md docs/ReportType.md -docs/ReportsBetaApi.md +docs/ReportsApi.md docs/RescreenTransactionRequest.md docs/RescreenTransactionResponse.md docs/ResendByQueryRequest.md @@ -873,6 +881,8 @@ docs/ResetDeviceApi.md docs/RespondToConnectionRequest.md docs/RetryRequoteRequestDetails.md docs/RetryRequoteTypeEnum.md +docs/RevokeWebhookOauthKeyRequest.md +docs/RevokeWebhookOauthKeyResponse.md docs/RewardInfo.md docs/RewardsInfo.md docs/RiskLevelEnum.md @@ -880,6 +890,7 @@ docs/RoleDetails.md docs/RoleDetails2.md docs/RoleFeeInfo.md docs/RoleGrantee.md +docs/RotateWebhookOauthKeyResponse.md docs/Rule.md docs/RuleActionEnum.md docs/RuleCondition.md @@ -1126,7 +1137,7 @@ docs/TagType.md docs/TagsApi.md docs/TagsPagedResponse.md docs/TemplatesPaginatedResponse.md -docs/TempoBetaApi.md +docs/TempoApi.md docs/TempoTransferDestination.md docs/TempoTransferDestinationItem.md docs/TempoTransferSource.md @@ -1282,6 +1293,7 @@ docs/UpdateTagRequest.md docs/UpdateTokenOwnershipStatusDto.md docs/UpdateVaultAccountAssetAddressRequest.md docs/UpdateVaultAccountRequest.md +docs/UpdateWebhookCustomHeadersRequest.md docs/UpdateWebhookMtlsConfigRequest.md docs/UpdateWebhookOauthRequest.md docs/UpdateWebhookRequest.md @@ -1296,7 +1308,7 @@ docs/UserGroupCreateRequest.md docs/UserGroupCreateResponse.md docs/UserGroupResponse.md docs/UserGroupUpdateRequest.md -docs/UserGroupsBetaApi.md +docs/UserGroupsApi.md docs/UserResponse.md docs/UserRole.md docs/UserStatus.md @@ -1339,12 +1351,14 @@ docs/WalletAsset.md docs/WalletAssetAdditionalInfo.md docs/Web3ConnectionsApi.md docs/Webhook.md +docs/WebhookCustomHeadersSet.md docs/WebhookEvent.md docs/WebhookMetric.md docs/WebhookMtlsConfig.md docs/WebhookMtlsCsrResponse.md docs/WebhookMtlsKeyAlgorithm.md docs/WebhookOauthCredentials.md +docs/WebhookOauthSigningAlg.md docs/WebhookPaginatedResponse.md docs/WebhooksApi.md docs/WebhooksV2Api.md @@ -1356,7 +1370,7 @@ docs/WorkflowExecutionOperation.md docs/WorkflowStatusEnum.md docs/Workspace.md docs/WorkspaceApi.md -docs/WorkspaceStatusBetaApi.md +docs/WorkspaceStatusApi.md docs/WriteAbiFunction.md docs/WriteCallFunctionDto.md docs/WriteCallFunctionDtoAbiFunction.md @@ -1391,13 +1405,13 @@ src/main/java/com/fireblocks/sdk/SystemWrapper.java src/main/java/com/fireblocks/sdk/UserAgentUtil.java src/main/java/com/fireblocks/sdk/ValidationUtils.java src/main/java/com/fireblocks/sdk/api/ApiUserApi.java -src/main/java/com/fireblocks/sdk/api/ApprovalsBetaApi.java +src/main/java/com/fireblocks/sdk/api/ApprovalsApi.java src/main/java/com/fireblocks/sdk/api/AuditLogsApi.java -src/main/java/com/fireblocks/sdk/api/BlockchainLinkBetaApi.java +src/main/java/com/fireblocks/sdk/api/BlockchainLinkApi.java src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java -src/main/java/com/fireblocks/sdk/api/CantonBetaApi.java +src/main/java/com/fireblocks/sdk/api/CantonApi.java src/main/java/com/fireblocks/sdk/api/ComplianceApi.java -src/main/java/com/fireblocks/sdk/api/ComplianceOrchestratorBetaApi.java +src/main/java/com/fireblocks/sdk/api/ComplianceOrchestratorApi.java src/main/java/com/fireblocks/sdk/api/ComplianceScreeningConfigurationApi.java src/main/java/com/fireblocks/sdk/api/ConnectedAccountsApi.java src/main/java/com/fireblocks/sdk/api/ConsoleUserApi.java @@ -1413,7 +1427,7 @@ src/main/java/com/fireblocks/sdk/api/ExchangeAccountsApi.java src/main/java/com/fireblocks/sdk/api/ExternalWalletsApi.java src/main/java/com/fireblocks/sdk/api/FiatAccountsApi.java src/main/java/com/fireblocks/sdk/api/GasStationsApi.java -src/main/java/com/fireblocks/sdk/api/GenieBetaApi.java +src/main/java/com/fireblocks/sdk/api/GenieApi.java src/main/java/com/fireblocks/sdk/api/InternalWalletsApi.java src/main/java/com/fireblocks/sdk/api/KeyLinkApi.java src/main/java/com/fireblocks/sdk/api/KeysApi.java @@ -1421,23 +1435,22 @@ src/main/java/com/fireblocks/sdk/api/NetworkConnectionsApi.java src/main/java/com/fireblocks/sdk/api/NftsApi.java src/main/java/com/fireblocks/sdk/api/OffExchangesApi.java src/main/java/com/fireblocks/sdk/api/OnchainDataApi.java -src/main/java/com/fireblocks/sdk/api/OtaBetaApi.java +src/main/java/com/fireblocks/sdk/api/OtaApi.java src/main/java/com/fireblocks/sdk/api/PaymentsPayoutApi.java src/main/java/com/fireblocks/sdk/api/PolicyEditorV2Api.java -src/main/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApi.java -src/main/java/com/fireblocks/sdk/api/ReportsBetaApi.java +src/main/java/com/fireblocks/sdk/api/ReportsApi.java src/main/java/com/fireblocks/sdk/api/ResetDeviceApi.java src/main/java/com/fireblocks/sdk/api/SecurityPostureManagementApi.java src/main/java/com/fireblocks/sdk/api/SmartTransferApi.java src/main/java/com/fireblocks/sdk/api/StakingApi.java src/main/java/com/fireblocks/sdk/api/TagsApi.java -src/main/java/com/fireblocks/sdk/api/TempoBetaApi.java +src/main/java/com/fireblocks/sdk/api/TempoApi.java src/main/java/com/fireblocks/sdk/api/TokenizationApi.java src/main/java/com/fireblocks/sdk/api/TrLinkApi.java src/main/java/com/fireblocks/sdk/api/TradingApi.java src/main/java/com/fireblocks/sdk/api/TransactionsApi.java src/main/java/com/fireblocks/sdk/api/TravelRuleApi.java -src/main/java/com/fireblocks/sdk/api/UserGroupsBetaApi.java +src/main/java/com/fireblocks/sdk/api/UserGroupsApi.java src/main/java/com/fireblocks/sdk/api/UsersApi.java src/main/java/com/fireblocks/sdk/api/UtxoManagementApi.java src/main/java/com/fireblocks/sdk/api/VaultsApi.java @@ -1446,7 +1459,7 @@ src/main/java/com/fireblocks/sdk/api/WebhooksApi.java src/main/java/com/fireblocks/sdk/api/WebhooksV2Api.java src/main/java/com/fireblocks/sdk/api/WhitelistIpAddressesApi.java src/main/java/com/fireblocks/sdk/api/WorkspaceApi.java -src/main/java/com/fireblocks/sdk/api/WorkspaceStatusBetaApi.java +src/main/java/com/fireblocks/sdk/api/WorkspaceStatusApi.java src/main/java/com/fireblocks/sdk/model/APIUser.java src/main/java/com/fireblocks/sdk/model/AbaPaymentInfo.java src/main/java/com/fireblocks/sdk/model/AbiFunction.java @@ -1577,7 +1590,6 @@ src/main/java/com/fireblocks/sdk/model/AssetPriceResponse.java src/main/java/com/fireblocks/sdk/model/AssetResponse.java src/main/java/com/fireblocks/sdk/model/AssetScope.java src/main/java/com/fireblocks/sdk/model/AssetTypeResponse.java -src/main/java/com/fireblocks/sdk/model/AssetTypesConfigInner.java src/main/java/com/fireblocks/sdk/model/AssetWallet.java src/main/java/com/fireblocks/sdk/model/AssignVaultsToLegalEntityRequest.java src/main/java/com/fireblocks/sdk/model/AssignVaultsToLegalEntityResponse.java @@ -1686,6 +1698,7 @@ src/main/java/com/fireblocks/sdk/model/ConnectedAccountAssetType.java src/main/java/com/fireblocks/sdk/model/ConnectedAccountBalances.java src/main/java/com/fireblocks/sdk/model/ConnectedAccountBalancesResponse.java src/main/java/com/fireblocks/sdk/model/ConnectedAccountCapability.java +src/main/java/com/fireblocks/sdk/model/ConnectedAccountCredit.java src/main/java/com/fireblocks/sdk/model/ConnectedAccountErrorResponse.java src/main/java/com/fireblocks/sdk/model/ConnectedAccountManifest.java src/main/java/com/fireblocks/sdk/model/ConnectedAccountRateResponse.java @@ -1772,6 +1785,8 @@ src/main/java/com/fireblocks/sdk/model/CreateMultipleVaultAccountsJobStatus.java src/main/java/com/fireblocks/sdk/model/CreateNcwConnectionRequest.java src/main/java/com/fireblocks/sdk/model/CreateNetworkIdRequest.java src/main/java/com/fireblocks/sdk/model/CreateOffersRequest.java +src/main/java/com/fireblocks/sdk/model/CreateOmnibusAddressesRequest.java +src/main/java/com/fireblocks/sdk/model/CreateOmnibusAddressesResponse.java src/main/java/com/fireblocks/sdk/model/CreateOrderRequest.java src/main/java/com/fireblocks/sdk/model/CreatePayoutRequest.java src/main/java/com/fireblocks/sdk/model/CreateQuote.java @@ -1793,6 +1808,7 @@ src/main/java/com/fireblocks/sdk/model/CreateVaultAccountConnectionRequest.java src/main/java/com/fireblocks/sdk/model/CreateVaultAccountRequest.java src/main/java/com/fireblocks/sdk/model/CreateVaultAssetResponse.java src/main/java/com/fireblocks/sdk/model/CreateWalletRequest.java +src/main/java/com/fireblocks/sdk/model/CreateWebhookCustomHeadersRequest.java src/main/java/com/fireblocks/sdk/model/CreateWebhookMtlsConfigRequest.java src/main/java/com/fireblocks/sdk/model/CreateWebhookOauthRequest.java src/main/java/com/fireblocks/sdk/model/CreateWebhookRequest.java @@ -1809,6 +1825,7 @@ src/main/java/com/fireblocks/sdk/model/DelegationSummary.java src/main/java/com/fireblocks/sdk/model/DeleteApprovalApiKeyResponse.java src/main/java/com/fireblocks/sdk/model/DeleteNetworkConnectionResponse.java src/main/java/com/fireblocks/sdk/model/DeleteNetworkIdResponse.java +src/main/java/com/fireblocks/sdk/model/DeleteWebhookCustomHeadersResponse.java src/main/java/com/fireblocks/sdk/model/DeleteWebhookMtlsConfigResponse.java src/main/java/com/fireblocks/sdk/model/DeleteWebhookOauthResponse.java src/main/java/com/fireblocks/sdk/model/DeployLayerZeroAdaptersRequest.java @@ -2038,6 +2055,7 @@ src/main/java/com/fireblocks/sdk/model/ListAssetsResponse.java src/main/java/com/fireblocks/sdk/model/ListBlockchainsResponse.java src/main/java/com/fireblocks/sdk/model/ListBlockchainsResponse2.java src/main/java/com/fireblocks/sdk/model/ListLegalEntitiesResponse.java +src/main/java/com/fireblocks/sdk/model/ListOmnibusAddressesResponse.java src/main/java/com/fireblocks/sdk/model/ListOwnedCollectionsResponse.java src/main/java/com/fireblocks/sdk/model/ListOwnedTokensResponse.java src/main/java/com/fireblocks/sdk/model/ListUtxosResponse.java @@ -2103,6 +2121,7 @@ src/main/java/com/fireblocks/sdk/model/OfferResponseTransferAccept.java src/main/java/com/fireblocks/sdk/model/OfferResponseTransferReject.java src/main/java/com/fireblocks/sdk/model/OfferResponseTransferWithdraw.java src/main/java/com/fireblocks/sdk/model/OffersResponse.java +src/main/java/com/fireblocks/sdk/model/OmnibusAddress.java src/main/java/com/fireblocks/sdk/model/OnchainTransaction.java src/main/java/com/fireblocks/sdk/model/OnchainTransactionsPagedResponse.java src/main/java/com/fireblocks/sdk/model/OnchainTransactionsPagedResponse2.java @@ -2233,6 +2252,8 @@ src/main/java/com/fireblocks/sdk/model/ReQuoteDetailsReQuote.java src/main/java/com/fireblocks/sdk/model/ReadAbiFunction.java src/main/java/com/fireblocks/sdk/model/ReadCallFunctionDto.java src/main/java/com/fireblocks/sdk/model/ReadCallFunctionDtoAbiFunction.java +src/main/java/com/fireblocks/sdk/model/ReadOnlyDraftResponse.java +src/main/java/com/fireblocks/sdk/model/ReadOnlyDraftReviewAndValidationResponse.java src/main/java/com/fireblocks/sdk/model/ReasonForPaymentEnum.java src/main/java/com/fireblocks/sdk/model/RecipientHandle.java src/main/java/com/fireblocks/sdk/model/RedeemFundsToLinkedDDAResponse.java @@ -2240,6 +2261,7 @@ src/main/java/com/fireblocks/sdk/model/RegisterApprovalApiKeyRequest.java src/main/java/com/fireblocks/sdk/model/RegisterApprovalApiKeyResponse.java src/main/java/com/fireblocks/sdk/model/RegisterLegalEntityRequest.java src/main/java/com/fireblocks/sdk/model/RegisterNewAssetRequest.java +src/main/java/com/fireblocks/sdk/model/RegisterTempoOmnibusResponse.java src/main/java/com/fireblocks/sdk/model/ReissueMultichainTokenRequest.java src/main/java/com/fireblocks/sdk/model/RelatedRequest.java src/main/java/com/fireblocks/sdk/model/RelatedTransaction.java @@ -2276,6 +2298,8 @@ src/main/java/com/fireblocks/sdk/model/ResendWebhooksResponse.java src/main/java/com/fireblocks/sdk/model/RespondToConnectionRequest.java src/main/java/com/fireblocks/sdk/model/RetryRequoteRequestDetails.java src/main/java/com/fireblocks/sdk/model/RetryRequoteTypeEnum.java +src/main/java/com/fireblocks/sdk/model/RevokeWebhookOauthKeyRequest.java +src/main/java/com/fireblocks/sdk/model/RevokeWebhookOauthKeyResponse.java src/main/java/com/fireblocks/sdk/model/RewardInfo.java src/main/java/com/fireblocks/sdk/model/RewardsInfo.java src/main/java/com/fireblocks/sdk/model/RiskLevelEnum.java @@ -2283,6 +2307,7 @@ src/main/java/com/fireblocks/sdk/model/RoleDetails.java src/main/java/com/fireblocks/sdk/model/RoleDetails2.java src/main/java/com/fireblocks/sdk/model/RoleFeeInfo.java src/main/java/com/fireblocks/sdk/model/RoleGrantee.java +src/main/java/com/fireblocks/sdk/model/RotateWebhookOauthKeyResponse.java src/main/java/com/fireblocks/sdk/model/Rule.java src/main/java/com/fireblocks/sdk/model/RuleActionEnum.java src/main/java/com/fireblocks/sdk/model/RuleCondition.java @@ -2675,6 +2700,7 @@ src/main/java/com/fireblocks/sdk/model/UpdateTagRequest.java src/main/java/com/fireblocks/sdk/model/UpdateTokenOwnershipStatusDto.java src/main/java/com/fireblocks/sdk/model/UpdateVaultAccountAssetAddressRequest.java src/main/java/com/fireblocks/sdk/model/UpdateVaultAccountRequest.java +src/main/java/com/fireblocks/sdk/model/UpdateWebhookCustomHeadersRequest.java src/main/java/com/fireblocks/sdk/model/UpdateWebhookMtlsConfigRequest.java src/main/java/com/fireblocks/sdk/model/UpdateWebhookOauthRequest.java src/main/java/com/fireblocks/sdk/model/UpdateWebhookRequest.java @@ -2727,12 +2753,14 @@ src/main/java/com/fireblocks/sdk/model/VersionSummary.java src/main/java/com/fireblocks/sdk/model/WalletAsset.java src/main/java/com/fireblocks/sdk/model/WalletAssetAdditionalInfo.java src/main/java/com/fireblocks/sdk/model/Webhook.java +src/main/java/com/fireblocks/sdk/model/WebhookCustomHeadersSet.java src/main/java/com/fireblocks/sdk/model/WebhookEvent.java src/main/java/com/fireblocks/sdk/model/WebhookMetric.java src/main/java/com/fireblocks/sdk/model/WebhookMtlsConfig.java src/main/java/com/fireblocks/sdk/model/WebhookMtlsCsrResponse.java src/main/java/com/fireblocks/sdk/model/WebhookMtlsKeyAlgorithm.java src/main/java/com/fireblocks/sdk/model/WebhookOauthCredentials.java +src/main/java/com/fireblocks/sdk/model/WebhookOauthSigningAlg.java src/main/java/com/fireblocks/sdk/model/WebhookPaginatedResponse.java src/main/java/com/fireblocks/sdk/model/WithdrawRequest.java src/main/java/com/fireblocks/sdk/model/WorkflowConfigStatus.java @@ -2753,13 +2781,13 @@ src/test/java/com/fireblocks/sdk/LifecycleWarningTest.java src/test/java/com/fireblocks/sdk/UserAgentUtilTest.java src/test/java/com/fireblocks/sdk/ValidationUtilsTest.java src/test/java/com/fireblocks/sdk/api/ApiUserApiTest.java -src/test/java/com/fireblocks/sdk/api/ApprovalsBetaApiTest.java +src/test/java/com/fireblocks/sdk/api/ApprovalsApiTest.java src/test/java/com/fireblocks/sdk/api/AuditLogsApiTest.java -src/test/java/com/fireblocks/sdk/api/BlockchainLinkBetaApiTest.java +src/test/java/com/fireblocks/sdk/api/BlockchainLinkApiTest.java src/test/java/com/fireblocks/sdk/api/BlockchainsAssetsApiTest.java -src/test/java/com/fireblocks/sdk/api/CantonBetaApiTest.java +src/test/java/com/fireblocks/sdk/api/CantonApiTest.java src/test/java/com/fireblocks/sdk/api/ComplianceApiTest.java -src/test/java/com/fireblocks/sdk/api/ComplianceOrchestratorBetaApiTest.java +src/test/java/com/fireblocks/sdk/api/ComplianceOrchestratorApiTest.java src/test/java/com/fireblocks/sdk/api/ComplianceScreeningConfigurationApiTest.java src/test/java/com/fireblocks/sdk/api/ConnectedAccountsApiTest.java src/test/java/com/fireblocks/sdk/api/ConsoleUserApiTest.java @@ -2775,7 +2803,7 @@ src/test/java/com/fireblocks/sdk/api/ExchangeAccountsApiTest.java src/test/java/com/fireblocks/sdk/api/ExternalWalletsApiTest.java src/test/java/com/fireblocks/sdk/api/FiatAccountsApiTest.java src/test/java/com/fireblocks/sdk/api/GasStationsApiTest.java -src/test/java/com/fireblocks/sdk/api/GenieBetaApiTest.java +src/test/java/com/fireblocks/sdk/api/GenieApiTest.java src/test/java/com/fireblocks/sdk/api/InternalWalletsApiTest.java src/test/java/com/fireblocks/sdk/api/KeyLinkApiTest.java src/test/java/com/fireblocks/sdk/api/KeysApiTest.java @@ -2783,23 +2811,22 @@ src/test/java/com/fireblocks/sdk/api/NetworkConnectionsApiTest.java src/test/java/com/fireblocks/sdk/api/NftsApiTest.java src/test/java/com/fireblocks/sdk/api/OffExchangesApiTest.java src/test/java/com/fireblocks/sdk/api/OnchainDataApiTest.java -src/test/java/com/fireblocks/sdk/api/OtaBetaApiTest.java +src/test/java/com/fireblocks/sdk/api/OtaApiTest.java src/test/java/com/fireblocks/sdk/api/PaymentsPayoutApiTest.java src/test/java/com/fireblocks/sdk/api/PolicyEditorV2ApiTest.java -src/test/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApiTest.java -src/test/java/com/fireblocks/sdk/api/ReportsBetaApiTest.java +src/test/java/com/fireblocks/sdk/api/ReportsApiTest.java src/test/java/com/fireblocks/sdk/api/ResetDeviceApiTest.java src/test/java/com/fireblocks/sdk/api/SecurityPostureManagementApiTest.java src/test/java/com/fireblocks/sdk/api/SmartTransferApiTest.java src/test/java/com/fireblocks/sdk/api/StakingApiTest.java src/test/java/com/fireblocks/sdk/api/TagsApiTest.java -src/test/java/com/fireblocks/sdk/api/TempoBetaApiTest.java +src/test/java/com/fireblocks/sdk/api/TempoApiTest.java src/test/java/com/fireblocks/sdk/api/TokenizationApiTest.java src/test/java/com/fireblocks/sdk/api/TrLinkApiTest.java src/test/java/com/fireblocks/sdk/api/TradingApiTest.java src/test/java/com/fireblocks/sdk/api/TransactionsApiTest.java src/test/java/com/fireblocks/sdk/api/TravelRuleApiTest.java -src/test/java/com/fireblocks/sdk/api/UserGroupsBetaApiTest.java +src/test/java/com/fireblocks/sdk/api/UserGroupsApiTest.java src/test/java/com/fireblocks/sdk/api/UsersApiTest.java src/test/java/com/fireblocks/sdk/api/UtxoManagementApiTest.java src/test/java/com/fireblocks/sdk/api/VaultsApiTest.java @@ -2808,7 +2835,7 @@ src/test/java/com/fireblocks/sdk/api/WebhooksApiTest.java src/test/java/com/fireblocks/sdk/api/WebhooksV2ApiTest.java src/test/java/com/fireblocks/sdk/api/WhitelistIpAddressesApiTest.java src/test/java/com/fireblocks/sdk/api/WorkspaceApiTest.java -src/test/java/com/fireblocks/sdk/api/WorkspaceStatusBetaApiTest.java +src/test/java/com/fireblocks/sdk/api/WorkspaceStatusApiTest.java src/test/java/com/fireblocks/sdk/model/APIUserTest.java src/test/java/com/fireblocks/sdk/model/AbaPaymentInfoTest.java src/test/java/com/fireblocks/sdk/model/AbiFunctionTest.java @@ -2938,7 +2965,6 @@ src/test/java/com/fireblocks/sdk/model/AssetResponseTest.java src/test/java/com/fireblocks/sdk/model/AssetScopeTest.java src/test/java/com/fireblocks/sdk/model/AssetTest.java src/test/java/com/fireblocks/sdk/model/AssetTypeResponseTest.java -src/test/java/com/fireblocks/sdk/model/AssetTypesConfigInnerTest.java src/test/java/com/fireblocks/sdk/model/AssetWalletTest.java src/test/java/com/fireblocks/sdk/model/AssignVaultsToLegalEntityRequestTest.java src/test/java/com/fireblocks/sdk/model/AssignVaultsToLegalEntityResponseTest.java @@ -3046,6 +3072,7 @@ src/test/java/com/fireblocks/sdk/model/ConnectedAccountAssetTypeTest.java src/test/java/com/fireblocks/sdk/model/ConnectedAccountBalancesResponseTest.java src/test/java/com/fireblocks/sdk/model/ConnectedAccountBalancesTest.java src/test/java/com/fireblocks/sdk/model/ConnectedAccountCapabilityTest.java +src/test/java/com/fireblocks/sdk/model/ConnectedAccountCreditTest.java src/test/java/com/fireblocks/sdk/model/ConnectedAccountErrorResponseTest.java src/test/java/com/fireblocks/sdk/model/ConnectedAccountManifestTest.java src/test/java/com/fireblocks/sdk/model/ConnectedAccountRateResponseTest.java @@ -3133,6 +3160,8 @@ src/test/java/com/fireblocks/sdk/model/CreateMultipleVaultAccountsJobStatusTest. src/test/java/com/fireblocks/sdk/model/CreateNcwConnectionRequestTest.java src/test/java/com/fireblocks/sdk/model/CreateNetworkIdRequestTest.java src/test/java/com/fireblocks/sdk/model/CreateOffersRequestTest.java +src/test/java/com/fireblocks/sdk/model/CreateOmnibusAddressesRequestTest.java +src/test/java/com/fireblocks/sdk/model/CreateOmnibusAddressesResponseTest.java src/test/java/com/fireblocks/sdk/model/CreateOrderRequestTest.java src/test/java/com/fireblocks/sdk/model/CreatePayoutRequestTest.java src/test/java/com/fireblocks/sdk/model/CreateQuoteScopeInnerTest.java @@ -3154,6 +3183,7 @@ src/test/java/com/fireblocks/sdk/model/CreateVaultAccountConnectionRequestTest.j src/test/java/com/fireblocks/sdk/model/CreateVaultAccountRequestTest.java src/test/java/com/fireblocks/sdk/model/CreateVaultAssetResponseTest.java src/test/java/com/fireblocks/sdk/model/CreateWalletRequestTest.java +src/test/java/com/fireblocks/sdk/model/CreateWebhookCustomHeadersRequestTest.java src/test/java/com/fireblocks/sdk/model/CreateWebhookMtlsConfigRequestTest.java src/test/java/com/fireblocks/sdk/model/CreateWebhookOauthRequestTest.java src/test/java/com/fireblocks/sdk/model/CreateWebhookRequestTest.java @@ -3170,6 +3200,7 @@ src/test/java/com/fireblocks/sdk/model/DelegationTest.java src/test/java/com/fireblocks/sdk/model/DeleteApprovalApiKeyResponseTest.java src/test/java/com/fireblocks/sdk/model/DeleteNetworkConnectionResponseTest.java src/test/java/com/fireblocks/sdk/model/DeleteNetworkIdResponseTest.java +src/test/java/com/fireblocks/sdk/model/DeleteWebhookCustomHeadersResponseTest.java src/test/java/com/fireblocks/sdk/model/DeleteWebhookMtlsConfigResponseTest.java src/test/java/com/fireblocks/sdk/model/DeleteWebhookOauthResponseTest.java src/test/java/com/fireblocks/sdk/model/DeployLayerZeroAdaptersRequestTest.java @@ -3399,6 +3430,7 @@ src/test/java/com/fireblocks/sdk/model/ListAssetsResponseTest.java src/test/java/com/fireblocks/sdk/model/ListBlockchainsResponse2Test.java src/test/java/com/fireblocks/sdk/model/ListBlockchainsResponseTest.java src/test/java/com/fireblocks/sdk/model/ListLegalEntitiesResponseTest.java +src/test/java/com/fireblocks/sdk/model/ListOmnibusAddressesResponseTest.java src/test/java/com/fireblocks/sdk/model/ListOwnedCollectionsResponseTest.java src/test/java/com/fireblocks/sdk/model/ListOwnedTokensResponseTest.java src/test/java/com/fireblocks/sdk/model/ListUtxosResponseTest.java @@ -3464,6 +3496,7 @@ src/test/java/com/fireblocks/sdk/model/OfferResponseTransferRejectTest.java src/test/java/com/fireblocks/sdk/model/OfferResponseTransferWithdrawTest.java src/test/java/com/fireblocks/sdk/model/OfferTest.java src/test/java/com/fireblocks/sdk/model/OffersResponseTest.java +src/test/java/com/fireblocks/sdk/model/OmnibusAddressTest.java src/test/java/com/fireblocks/sdk/model/OnchainTransactionTest.java src/test/java/com/fireblocks/sdk/model/OnchainTransactionsPagedResponse2Test.java src/test/java/com/fireblocks/sdk/model/OnchainTransactionsPagedResponseTest.java @@ -3594,6 +3627,8 @@ src/test/java/com/fireblocks/sdk/model/ReQuoteDetailsTest.java src/test/java/com/fireblocks/sdk/model/ReadAbiFunctionTest.java src/test/java/com/fireblocks/sdk/model/ReadCallFunctionDtoAbiFunctionTest.java src/test/java/com/fireblocks/sdk/model/ReadCallFunctionDtoTest.java +src/test/java/com/fireblocks/sdk/model/ReadOnlyDraftResponseTest.java +src/test/java/com/fireblocks/sdk/model/ReadOnlyDraftReviewAndValidationResponseTest.java src/test/java/com/fireblocks/sdk/model/ReasonForPaymentEnumTest.java src/test/java/com/fireblocks/sdk/model/RecipientHandleTest.java src/test/java/com/fireblocks/sdk/model/RedeemFundsToLinkedDDAResponseTest.java @@ -3601,6 +3636,7 @@ src/test/java/com/fireblocks/sdk/model/RegisterApprovalApiKeyRequestTest.java src/test/java/com/fireblocks/sdk/model/RegisterApprovalApiKeyResponseTest.java src/test/java/com/fireblocks/sdk/model/RegisterLegalEntityRequestTest.java src/test/java/com/fireblocks/sdk/model/RegisterNewAssetRequestTest.java +src/test/java/com/fireblocks/sdk/model/RegisterTempoOmnibusResponseTest.java src/test/java/com/fireblocks/sdk/model/ReissueMultichainTokenRequestTest.java src/test/java/com/fireblocks/sdk/model/RelatedRequestTest.java src/test/java/com/fireblocks/sdk/model/RelatedTransactionTest.java @@ -3637,6 +3673,8 @@ src/test/java/com/fireblocks/sdk/model/ResendWebhooksResponseTest.java src/test/java/com/fireblocks/sdk/model/RespondToConnectionRequestTest.java src/test/java/com/fireblocks/sdk/model/RetryRequoteRequestDetailsTest.java src/test/java/com/fireblocks/sdk/model/RetryRequoteTypeEnumTest.java +src/test/java/com/fireblocks/sdk/model/RevokeWebhookOauthKeyRequestTest.java +src/test/java/com/fireblocks/sdk/model/RevokeWebhookOauthKeyResponseTest.java src/test/java/com/fireblocks/sdk/model/RewardInfoTest.java src/test/java/com/fireblocks/sdk/model/RewardsInfoTest.java src/test/java/com/fireblocks/sdk/model/RiskLevelEnumTest.java @@ -3644,6 +3682,7 @@ src/test/java/com/fireblocks/sdk/model/RoleDetails2Test.java src/test/java/com/fireblocks/sdk/model/RoleDetailsTest.java src/test/java/com/fireblocks/sdk/model/RoleFeeInfoTest.java src/test/java/com/fireblocks/sdk/model/RoleGranteeTest.java +src/test/java/com/fireblocks/sdk/model/RotateWebhookOauthKeyResponseTest.java src/test/java/com/fireblocks/sdk/model/RuleActionEnumTest.java src/test/java/com/fireblocks/sdk/model/RuleConditionOperatorEnumTest.java src/test/java/com/fireblocks/sdk/model/RuleConditionTest.java @@ -4036,6 +4075,7 @@ src/test/java/com/fireblocks/sdk/model/UpdateTagRequestTest.java src/test/java/com/fireblocks/sdk/model/UpdateTokenOwnershipStatusDtoTest.java src/test/java/com/fireblocks/sdk/model/UpdateVaultAccountAssetAddressRequestTest.java src/test/java/com/fireblocks/sdk/model/UpdateVaultAccountRequestTest.java +src/test/java/com/fireblocks/sdk/model/UpdateWebhookCustomHeadersRequestTest.java src/test/java/com/fireblocks/sdk/model/UpdateWebhookMtlsConfigRequestTest.java src/test/java/com/fireblocks/sdk/model/UpdateWebhookOauthRequestTest.java src/test/java/com/fireblocks/sdk/model/UpdateWebhookRequestTest.java @@ -4087,12 +4127,14 @@ src/test/java/com/fireblocks/sdk/model/VerdictConfigTest.java src/test/java/com/fireblocks/sdk/model/VersionSummaryTest.java src/test/java/com/fireblocks/sdk/model/WalletAssetAdditionalInfoTest.java src/test/java/com/fireblocks/sdk/model/WalletAssetTest.java +src/test/java/com/fireblocks/sdk/model/WebhookCustomHeadersSetTest.java src/test/java/com/fireblocks/sdk/model/WebhookEventTest.java src/test/java/com/fireblocks/sdk/model/WebhookMetricTest.java src/test/java/com/fireblocks/sdk/model/WebhookMtlsConfigTest.java src/test/java/com/fireblocks/sdk/model/WebhookMtlsCsrResponseTest.java src/test/java/com/fireblocks/sdk/model/WebhookMtlsKeyAlgorithmTest.java src/test/java/com/fireblocks/sdk/model/WebhookOauthCredentialsTest.java +src/test/java/com/fireblocks/sdk/model/WebhookOauthSigningAlgTest.java src/test/java/com/fireblocks/sdk/model/WebhookPaginatedResponseTest.java src/test/java/com/fireblocks/sdk/model/WebhookTest.java src/test/java/com/fireblocks/sdk/model/WithdrawRequestTest.java diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index d29aba79..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,239 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [v36.2.0](https://github.com/fireblocks/java-sdk/compare/v15.0.0...v36.2.0) - 2026-11-17 - -### Merged - -- Generated SDK #3078637372 [`#166`](https://github.com/fireblocks/java-sdk/pull/166) - -## [v15.0.0](https://github.com/fireblocks/java-sdk/compare/v14.1.0...v15.0.0) - 2026-03-15 - -### Merged - -- Generated SDK #3733 (major) [`#128`](https://github.com/fireblocks/java-sdk/pull/128) - -## [v14.1.0](https://github.com/fireblocks/java-sdk/compare/v14.0.0...v14.1.0) - 2026-02-26 - -### Merged - -- Generated SDK #2167 [`#126`](https://github.com/fireblocks/java-sdk/pull/126) - -## [v14.0.0](https://github.com/fireblocks/java-sdk/compare/v13.0.0...v14.0.0) - 2026-02-03 - -### Merged - -- Generated SDK #4746 [`#121`](https://github.com/fireblocks/java-sdk/pull/121) - -## [v13.0.0](https://github.com/fireblocks/java-sdk/compare/v12.1.3...v13.0.0) - 2025-11-13 - -### Merged - -- Generated SDK #5834 [`#116`](https://github.com/fireblocks/java-sdk/pull/116) - -## [v12.1.3](https://github.com/fireblocks/java-sdk/compare/v12.1.2...v12.1.3) - 2025-10-22 - -### Merged - -- Generated SDK #8293 [`#115`](https://github.com/fireblocks/java-sdk/pull/115) - -## [v12.1.2](https://github.com/fireblocks/java-sdk/compare/v12.1.1...v12.1.2) - 2025-09-29 - -### Merged - -- Generated SDK #6061 [`#113`](https://github.com/fireblocks/java-sdk/pull/113) - -## [v12.1.1](https://github.com/fireblocks/java-sdk/compare/v12.1.0...v12.1.1) - 2025-09-10 - -### Merged - -- Generated SDK #1410 [`#111`](https://github.com/fireblocks/java-sdk/pull/111) - -## [v12.1.0](https://github.com/fireblocks/java-sdk/compare/v12.0.0...v12.1.0) - 2025-09-09 - -### Merged - -- Generated SDK #4521 [`#109`](https://github.com/fireblocks/java-sdk/pull/109) - -## [v12.0.0](https://github.com/fireblocks/java-sdk/compare/v11.2.0...v12.0.0) - 2025-09-01 - -### Merged - -- Generated SDK #7741 [`#108`](https://github.com/fireblocks/java-sdk/pull/108) - -## [v11.2.0](https://github.com/fireblocks/java-sdk/compare/v11.1.0...v11.2.0) - 2025-08-21 - -### Merged - -- Generated SDK #3302 [`#107`](https://github.com/fireblocks/java-sdk/pull/107) - -## [v11.1.0](https://github.com/fireblocks/java-sdk/compare/v11.0.0...v11.1.0) - 2025-08-11 - -### Merged - -- Generated SDK #1782 [`#105`](https://github.com/fireblocks/java-sdk/pull/105) - -## [v11.0.0](https://github.com/fireblocks/java-sdk/compare/v10.4.0...v11.0.0) - 2025-07-15 - -### Merged - -- Generated SDK #5610 [`#103`](https://github.com/fireblocks/java-sdk/pull/103) - -## [v10.4.0](https://github.com/fireblocks/java-sdk/compare/v10.3.0...v10.4.0) - 2025-06-29 - -### Merged - -- Generated SDK #1492 [`#101`](https://github.com/fireblocks/java-sdk/pull/101) - -## [v10.3.0](https://github.com/fireblocks/java-sdk/compare/v10.2.0...v10.3.0) - 2025-06-18 - -### Merged - -- Generated SDK #4009 [`#99`](https://github.com/fireblocks/java-sdk/pull/99) - -## [v10.2.0](https://github.com/fireblocks/java-sdk/compare/v10.1.1...v10.2.0) - 2025-06-04 - -### Merged - -- Generated SDK #8912 [`#98`](https://github.com/fireblocks/java-sdk/pull/98) - -## [v10.1.1](https://github.com/fireblocks/java-sdk/compare/v10.1.0...v10.1.1) - 2025-05-18 - -### Merged - -- Generated SDK #5019 [`#97`](https://github.com/fireblocks/java-sdk/pull/97) - -## [v10.1.0](https://github.com/fireblocks/java-sdk/compare/v10.0.2...v10.1.0) - 2025-05-07 - -### Merged - -- Generated SDK #7076 [`#95`](https://github.com/fireblocks/java-sdk/pull/95) - -## [v10.0.2](https://github.com/fireblocks/java-sdk/compare/v10.0.1...v10.0.2) - 2025-04-20 - -### Merged - -- Generated SDK #4794 [`#94`](https://github.com/fireblocks/java-sdk/pull/94) - -## [v10.0.1](https://github.com/fireblocks/java-sdk/compare/v10.0.0...v10.0.1) - 2025-04-07 - -### Merged - -- Generated SDK #3065 [`#93`](https://github.com/fireblocks/java-sdk/pull/93) - -## [v10.0.0](https://github.com/fireblocks/java-sdk/compare/v9.0.0...v10.0.0) - 2025-03-30 - -### Merged - -- Generated SDK #619 [`#90`](https://github.com/fireblocks/java-sdk/pull/90) - -## [v9.0.0](https://github.com/fireblocks/java-sdk/compare/v8.1.0...v9.0.0) - 2025-03-17 - -### Merged - -- Generated SDK #645 [`#89`](https://github.com/fireblocks/java-sdk/pull/89) - -## [v8.1.0](https://github.com/fireblocks/java-sdk/compare/v8.0.1...v8.1.0) - 2025-02-24 - -### Merged - -- Generated SDK #9833 [`#84`](https://github.com/fireblocks/java-sdk/pull/84) - -## [v8.0.1](https://github.com/fireblocks/java-sdk/compare/v8.0.0...v8.0.1) - 2025-02-12 - -### Merged - -- Generated SDK #4262 [`#82`](https://github.com/fireblocks/java-sdk/pull/82) - -## [v8.0.0](https://github.com/fireblocks/java-sdk/compare/v7.0.0...v8.0.0) - 2025-02-02 - -### Merged - -- Generated SDK #538 [`#80`](https://github.com/fireblocks/java-sdk/pull/80) - -## [v7.0.0](https://github.com/fireblocks/java-sdk/compare/v6.0.0...v7.0.0) - 2025-01-08 - -### Merged - -- Generated SDK #8699 [`#77`](https://github.com/fireblocks/java-sdk/pull/77) - -## [v6.0.0](https://github.com/fireblocks/java-sdk/compare/v5.0.0...v6.0.0) - 2024-12-05 - -### Merged - -- Generated SDK #1430 [`#73`](https://github.com/fireblocks/java-sdk/pull/73) - -## [v5.0.0](https://github.com/fireblocks/java-sdk/compare/v4.0.0...v5.0.0) - 2024-10-31 - -### Merged - -- Generated SDK #5184 [`#71`](https://github.com/fireblocks/java-sdk/pull/71) - -## [v4.0.0](https://github.com/fireblocks/java-sdk/compare/v3.1.0...v4.0.0) - 2024-09-17 - -### Merged - -- Generated SDK #237 [`#70`](https://github.com/fireblocks/java-sdk/pull/70) - -## [v3.1.0](https://github.com/fireblocks/java-sdk/compare/v3.0.0...v3.1.0) - 2024-07-25 - -### Merged - -- Generated SDK #6749 [`#67`](https://github.com/fireblocks/java-sdk/pull/67) - -## [v3.0.0](https://github.com/fireblocks/java-sdk/compare/v2.1.0...v3.0.0) - 2024-07-17 - -### Merged - -- Generated SDK #6152 [`#65`](https://github.com/fireblocks/java-sdk/pull/65) -- Generated SDK #7984 [`#62`](https://github.com/fireblocks/java-sdk/pull/62) -- Generated SDK #2873 [`#61`](https://github.com/fireblocks/java-sdk/pull/61) - -## [v2.1.0](https://github.com/fireblocks/java-sdk/compare/v2.0.1...v2.1.0) - 2024-06-04 - -### Merged - -- Generated SDK for version COR-46191/fix_pipelines [`#24`](https://github.com/fireblocks/java-sdk/pull/24) -- Generated SDK for version COR-46191/fix_pipelines [`#23`](https://github.com/fireblocks/java-sdk/pull/23) -- Generated SDK for version COR-46191/fix_pipelines [`#22`](https://github.com/fireblocks/java-sdk/pull/22) -- Generated SDK for version COR-46191/fix_pipelines [`#21`](https://github.com/fireblocks/java-sdk/pull/21) - -## [v2.0.1](https://github.com/fireblocks/java-sdk/compare/v2.0.0...v2.0.1) - 2024-06-04 - -### Merged - -- Generated SDK for version COR-46191/fix_pipelines [`#20`](https://github.com/fireblocks/java-sdk/pull/20) - -## [v2.0.0](https://github.com/fireblocks/java-sdk/compare/v1.1.0...v2.0.0) - 2024-05-08 - -### Merged - -- feat: add tokenization api [`#12`](https://github.com/fireblocks/java-sdk/pull/12) - -## [v1.1.0](https://github.com/fireblocks/java-sdk/compare/v1.0.1...v1.1.0) - 2024-04-17 - -### Merged - -- feat: add cosigners beta api [`#11`](https://github.com/fireblocks/java-sdk/pull/11) -- fix: fix readme doc headline [`#10`](https://github.com/fireblocks/java-sdk/pull/10) - -## [v1.0.1](https://github.com/fireblocks/java-sdk/compare/v1.0.0...v1.0.1) - 2024-04-07 - -### Merged - -- Generated SDK for version v1.0.1 [`#9`](https://github.com/fireblocks/java-sdk/pull/9) - -## v1.0.0 - 2024-04-07 - -### Merged - -- Generated SDK for version v1.0.0 GA [`#8`](https://github.com/fireblocks/java-sdk/pull/8) -- v0.0.1-beta [`#6`](https://github.com/fireblocks/java-sdk/pull/6) -- Update GitHub Actions workflows [`#5`](https://github.com/fireblocks/java-sdk/pull/5) -- Generated #1189972817 [`#3`](https://github.com/fireblocks/java-sdk/pull/3) -- Add installation instructions [`#2`](https://github.com/fireblocks/java-sdk/pull/2) -- Added Idempotency & NCW headers support #6 [`#1`](https://github.com/fireblocks/java-sdk/pull/1) diff --git a/README.md b/README.md index 8b627fcc..89fb0d94 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Add this dependency to your project's POM: com.fireblocks.sdk fireblocks-sdk - 36.2.0 + 0.0.0 compile ``` @@ -42,7 +42,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.fireblocks.sdk:fireblocks-sdk:36.2.0" +compile "com.fireblocks.sdk:fireblocks-sdk:0.0.0" ``` ### Others @@ -55,7 +55,7 @@ mvn clean package Then manually install the following JARs: -- `target/fireblocks-sdk-36.2.0.jar` +- `target/fireblocks-sdk-0.0.0.jar` - `target/lib/*.jar` ## Versioning @@ -188,23 +188,23 @@ Class | Method | HTTP request | Description *ApiUserApi* | [**createApiUser**](docs/ApiUserApi.md#createApiUser) | **POST** /management/api_users | Create API Key *ApiUserApi* | [**getApiUsers**](docs/ApiUserApi.md#getApiUsers) | **GET** /management/api_users | Get API Keys *ApiUserApi* | [**issueApiUserPairingToken**](docs/ApiUserApi.md#issueApiUserPairingToken) | **POST** /management/api_users/{userId}/pairing_token | Issue API user pairing token -*ApprovalsBetaApi* | [**approveApproval**](docs/ApprovalsBetaApi.md#approveApproval) | **POST** /approvals/{requestId}/approve | Approve an approval request -*ApprovalsBetaApi* | [**createApprovalKey**](docs/ApprovalsBetaApi.md#createApprovalKey) | **POST** /management/api_users/{userId}/approval_keys | Register an approval key -*ApprovalsBetaApi* | [**deleteApprovalKey**](docs/ApprovalsBetaApi.md#deleteApprovalKey) | **DELETE** /management/api_users/{userId}/approval_keys/{keyId} | Delete an approval key -*ApprovalsBetaApi* | [**getApprovalById**](docs/ApprovalsBetaApi.md#getApprovalById) | **GET** /approvals/{requestId} | Get a single approval request -*ApprovalsBetaApi* | [**getApprovalKeys**](docs/ApprovalsBetaApi.md#getApprovalKeys) | **GET** /management/api_users/{userId}/approval_keys | List approval keys -*ApprovalsBetaApi* | [**getApprovals**](docs/ApprovalsBetaApi.md#getApprovals) | **GET** /approvals | List approval requests -*ApprovalsBetaApi* | [**rejectApproval**](docs/ApprovalsBetaApi.md#rejectApproval) | **POST** /approvals/{requestId}/reject | Reject an approval request +*ApprovalsApi* | [**approveApproval**](docs/ApprovalsApi.md#approveApproval) | **POST** /approvals/{requestId}/approve | Approve an approval request +*ApprovalsApi* | [**createApprovalKey**](docs/ApprovalsApi.md#createApprovalKey) | **POST** /management/api_users/{userId}/approval_keys | Register an approval key +*ApprovalsApi* | [**deleteApprovalKey**](docs/ApprovalsApi.md#deleteApprovalKey) | **DELETE** /management/api_users/{userId}/approval_keys/{keyId} | Delete an approval key +*ApprovalsApi* | [**getApprovalById**](docs/ApprovalsApi.md#getApprovalById) | **GET** /approvals/{requestId} | Get a single approval request +*ApprovalsApi* | [**getApprovalKeys**](docs/ApprovalsApi.md#getApprovalKeys) | **GET** /management/api_users/{userId}/approval_keys | List approval keys +*ApprovalsApi* | [**getApprovals**](docs/ApprovalsApi.md#getApprovals) | **GET** /approvals | List approval requests +*ApprovalsApi* | [**rejectApproval**](docs/ApprovalsApi.md#rejectApproval) | **POST** /approvals/{requestId}/reject | Reject an approval request *AuditLogsApi* | [**getAuditLogs**](docs/AuditLogsApi.md#getAuditLogs) | **GET** /management/audit_logs | Get audit logs -*BlockchainLinkBetaApi* | [**activateBlockchainLinkChain**](docs/BlockchainLinkBetaApi.md#activateBlockchainLinkChain) | **POST** /blockchain_link/blockchains/{blockchainId}/activate | Activate a blockchain (triggers activation workflow) -*BlockchainLinkBetaApi* | [**createBlockchainLinkChain**](docs/BlockchainLinkBetaApi.md#createBlockchainLinkChain) | **POST** /blockchain_link/blockchains | Create a new blockchain -*BlockchainLinkBetaApi* | [**deleteBlockchainLinkChain**](docs/BlockchainLinkBetaApi.md#deleteBlockchainLinkChain) | **DELETE** /blockchain_link/blockchains/{blockchainId} | Delete a blockchain -*BlockchainLinkBetaApi* | [**getBlockchainLinkBillingInfo**](docs/BlockchainLinkBetaApi.md#getBlockchainLinkBillingInfo) | **GET** /blockchain_link/blockchains/billing_info | Get tenant billing info -*BlockchainLinkBetaApi* | [**getBlockchainLinkChain**](docs/BlockchainLinkBetaApi.md#getBlockchainLinkChain) | **GET** /blockchain_link/blockchains/{blockchainId} | Get a blockchain by ID -*BlockchainLinkBetaApi* | [**getBlockchainLinkTestWalletAddress**](docs/BlockchainLinkBetaApi.md#getBlockchainLinkTestWalletAddress) | **GET** /blockchain_link/blockchains/test_wallet_address | Get the test wallet address -*BlockchainLinkBetaApi* | [**listBlockchainLinkChains**](docs/BlockchainLinkBetaApi.md#listBlockchainLinkChains) | **GET** /blockchain_link/blockchains | List blockchains with pagination and filtering -*BlockchainLinkBetaApi* | [**triggerBlockchainLinkValidation**](docs/BlockchainLinkBetaApi.md#triggerBlockchainLinkValidation) | **POST** /blockchain_link/blockchains/{blockchainId}/validate | Trigger validation workflow -*BlockchainLinkBetaApi* | [**updateBlockchainLinkChain**](docs/BlockchainLinkBetaApi.md#updateBlockchainLinkChain) | **PUT** /blockchain_link/blockchains/{blockchainId} | Update a blockchain +*BlockchainLinkApi* | [**activateBlockchainLinkChain**](docs/BlockchainLinkApi.md#activateBlockchainLinkChain) | **POST** /blockchain_link/blockchains/{blockchainId}/activate | Activate a blockchain (triggers activation workflow) +*BlockchainLinkApi* | [**createBlockchainLinkChain**](docs/BlockchainLinkApi.md#createBlockchainLinkChain) | **POST** /blockchain_link/blockchains | Create a new blockchain +*BlockchainLinkApi* | [**deleteBlockchainLinkChain**](docs/BlockchainLinkApi.md#deleteBlockchainLinkChain) | **DELETE** /blockchain_link/blockchains/{blockchainId} | Delete a blockchain +*BlockchainLinkApi* | [**getBlockchainLinkBillingInfo**](docs/BlockchainLinkApi.md#getBlockchainLinkBillingInfo) | **GET** /blockchain_link/blockchains/billing_info | Get tenant billing info +*BlockchainLinkApi* | [**getBlockchainLinkChain**](docs/BlockchainLinkApi.md#getBlockchainLinkChain) | **GET** /blockchain_link/blockchains/{blockchainId} | Get a blockchain by ID +*BlockchainLinkApi* | [**getBlockchainLinkTestWalletAddress**](docs/BlockchainLinkApi.md#getBlockchainLinkTestWalletAddress) | **GET** /blockchain_link/blockchains/test_wallet_address | Get the test wallet address +*BlockchainLinkApi* | [**listBlockchainLinkChains**](docs/BlockchainLinkApi.md#listBlockchainLinkChains) | **GET** /blockchain_link/blockchains | List blockchains with pagination and filtering +*BlockchainLinkApi* | [**triggerBlockchainLinkValidation**](docs/BlockchainLinkApi.md#triggerBlockchainLinkValidation) | **POST** /blockchain_link/blockchains/{blockchainId}/validate | Trigger validation workflow +*BlockchainLinkApi* | [**updateBlockchainLinkChain**](docs/BlockchainLinkApi.md#updateBlockchainLinkChain) | **PUT** /blockchain_link/blockchains/{blockchainId} | Update a blockchain *BlockchainsAssetsApi* | [**getAsset**](docs/BlockchainsAssetsApi.md#getAsset) | **GET** /assets/{id} | Get an asset *BlockchainsAssetsApi* | [**getBlockchain**](docs/BlockchainsAssetsApi.md#getBlockchain) | **GET** /blockchains/{id} | Get a Blockchain by ID *BlockchainsAssetsApi* | [**getSupportedAssets**](docs/BlockchainsAssetsApi.md#getSupportedAssets) | **GET** /supported_assets | List assets (Legacy) @@ -213,8 +213,8 @@ Class | Method | HTTP request | Description *BlockchainsAssetsApi* | [**registerNewAsset**](docs/BlockchainsAssetsApi.md#registerNewAsset) | **POST** /assets | Register an asset *BlockchainsAssetsApi* | [**setAssetPrice**](docs/BlockchainsAssetsApi.md#setAssetPrice) | **POST** /assets/prices/{id} | Set asset price *BlockchainsAssetsApi* | [**updateAssetUserMetadata**](docs/BlockchainsAssetsApi.md#updateAssetUserMetadata) | **PATCH** /assets/{id} | Update the user’s metadata for an asset -*CantonBetaApi* | [**createCantonCall**](docs/CantonBetaApi.md#createCantonCall) | **POST** /operations/canton/calls | Make a Canton call -*CantonBetaApi* | [**respondToCantonOffer**](docs/CantonBetaApi.md#respondToCantonOffer) | **POST** /operations/canton/offers/{offerId}/responses | Answer an offer +*CantonApi* | [**createCantonCall**](docs/CantonApi.md#createCantonCall) | **POST** /operations/canton/calls | Make a Canton call +*CantonApi* | [**respondToCantonOffer**](docs/CantonApi.md#respondToCantonOffer) | **POST** /operations/canton/offers/{offerId}/responses | Answer an offer *ComplianceApi* | [**activateArsConfig**](docs/ComplianceApi.md#activateArsConfig) | **POST** /screening/ars/config/activate | Activate ARS (Address Registry Screening) *ComplianceApi* | [**activateByorkConfig**](docs/ComplianceApi.md#activateByorkConfig) | **POST** /screening/byork/config/activate | Activate BYORK Light *ComplianceApi* | [**addAddressRegistryVaultOptOuts**](docs/ComplianceApi.md#addAddressRegistryVaultOptOuts) | **POST** /address_registry/vaults | Add vault accounts to the address registry opt-out list @@ -260,10 +260,10 @@ Class | Method | HTTP request | Description *ComplianceApi* | [**updateScreeningConfiguration**](docs/ComplianceApi.md#updateScreeningConfiguration) | **PUT** /screening/configurations | Tenant - Screening Configuration *ComplianceApi* | [**updateTravelRuleConfig**](docs/ComplianceApi.md#updateTravelRuleConfig) | **PUT** /screening/travel_rule/policy_configuration | Update Travel Rule Configuration *ComplianceApi* | [**verifyAddressRegistryProofOfOwnership**](docs/ComplianceApi.md#verifyAddressRegistryProofOfOwnership) | **POST** /address_registry/proof_of_ownership_exports/verify | Verify a Proof of Ownership export -*ComplianceOrchestratorBetaApi* | [**getScreeningResult**](docs/ComplianceOrchestratorBetaApi.md#getScreeningResult) | **GET** /compliance/orchestrator/screenings/{screeningId} | Get a Compliance Orchestrator screening's result -*ComplianceOrchestratorBetaApi* | [**getWorkflow**](docs/ComplianceOrchestratorBetaApi.md#getWorkflow) | **GET** /compliance/orchestrator/workflows/{workflowId} | Get a Compliance Orchestrator workflow -*ComplianceOrchestratorBetaApi* | [**triggerScreening**](docs/ComplianceOrchestratorBetaApi.md#triggerScreening) | **POST** /compliance/orchestrator/screenings | Trigger a Compliance Orchestrator screening -*ComplianceOrchestratorBetaApi* | [**updateWorkflowStatus**](docs/ComplianceOrchestratorBetaApi.md#updateWorkflowStatus) | **PATCH** /compliance/orchestrator/workflows/{workflowId}/status | Update a Compliance Orchestrator workflow's status +*ComplianceOrchestratorApi* | [**getScreeningResult**](docs/ComplianceOrchestratorApi.md#getScreeningResult) | **GET** /compliance/orchestrator/screenings/{screeningId} | Get a Compliance Orchestrator screening's result +*ComplianceOrchestratorApi* | [**getWorkflow**](docs/ComplianceOrchestratorApi.md#getWorkflow) | **GET** /compliance/orchestrator/workflows/{workflowId} | Get a Compliance Orchestrator workflow +*ComplianceOrchestratorApi* | [**triggerScreening**](docs/ComplianceOrchestratorApi.md#triggerScreening) | **POST** /compliance/orchestrator/screenings | Trigger a Compliance Orchestrator screening +*ComplianceOrchestratorApi* | [**updateWorkflowStatus**](docs/ComplianceOrchestratorApi.md#updateWorkflowStatus) | **PATCH** /compliance/orchestrator/workflows/{workflowId}/status | Update a Compliance Orchestrator workflow's status *ComplianceScreeningConfigurationApi* | [**getAmlScreeningConfiguration**](docs/ComplianceScreeningConfigurationApi.md#getAmlScreeningConfiguration) | **GET** /screening/aml/policy_configuration | Get AML Screening Policy Configuration *ComplianceScreeningConfigurationApi* | [**getScreeningConfiguration**](docs/ComplianceScreeningConfigurationApi.md#getScreeningConfiguration) | **GET** /screening/travel_rule/policy_configuration | Get Travel Rule Screening Policy Configuration *ConnectedAccountsApi* | [**addConnectedAccount**](docs/ConnectedAccountsApi.md#addConnectedAccount) | **POST** /connected_accounts | Add a connected account @@ -344,6 +344,7 @@ Class | Method | HTTP request | Description *EmbeddedWalletsApi* | [**getEmbeddedWalletSetupStatus**](docs/EmbeddedWalletsApi.md#getEmbeddedWalletSetupStatus) | **GET** /ncw/wallets/{walletId}/setup_status | Get wallet key setup state *EmbeddedWalletsApi* | [**getEmbeddedWalletSupportedAssets**](docs/EmbeddedWalletsApi.md#getEmbeddedWalletSupportedAssets) | **GET** /ncw/wallets/supported_assets | Retrieve supported assets *EmbeddedWalletsApi* | [**getEmbeddedWallets**](docs/EmbeddedWalletsApi.md#getEmbeddedWallets) | **GET** /ncw/wallets | List wallets +*EmbeddedWalletsApi* | [**getPublicKeyInfoForAddressNcw**](docs/EmbeddedWalletsApi.md#getPublicKeyInfoForAddressNcw) | **GET** /ncw/{walletId}/accounts/{accountId}/{assetId}/{change}/{addressIndex}/public_key_info | Get the public key of an asset *EmbeddedWalletsApi* | [**getPublicKeyInfoNcw**](docs/EmbeddedWalletsApi.md#getPublicKeyInfoNcw) | **GET** /ncw/wallets/{walletId}/public_key_info | Get the public key for a derivation path *EmbeddedWalletsApi* | [**refreshEmbeddedWalletAssetBalance**](docs/EmbeddedWalletsApi.md#refreshEmbeddedWalletAssetBalance) | **PUT** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/balance | Refresh asset balance *EmbeddedWalletsApi* | [**updateEmbeddedWalletDeviceStatus**](docs/EmbeddedWalletsApi.md#updateEmbeddedWalletDeviceStatus) | **PATCH** /ncw/wallets/{walletId}/devices/{deviceId}/status | Update device status @@ -371,8 +372,8 @@ Class | Method | HTTP request | Description *GasStationsApi* | [**getGasStationInfo**](docs/GasStationsApi.md#getGasStationInfo) | **GET** /gas_station | Get gas station settings *GasStationsApi* | [**updateGasStationConfiguration**](docs/GasStationsApi.md#updateGasStationConfiguration) | **PUT** /gas_station/configuration | Edit gas station settings *GasStationsApi* | [**updateGasStationConfigurationByAssetId**](docs/GasStationsApi.md#updateGasStationConfigurationByAssetId) | **PUT** /gas_station/configuration/{assetId} | Edit gas station settings for an asset -*GenieBetaApi* | [**createGenieSession**](docs/GenieBetaApi.md#createGenieSession) | **POST** /genie/sessions | Create a Genie session -*GenieBetaApi* | [**sendGenieMessage**](docs/GenieBetaApi.md#sendGenieMessage) | **POST** /genie/sessions/{sessionId}/messages | Send a message to a Genie session +*GenieApi* | [**createGenieSession**](docs/GenieApi.md#createGenieSession) | **POST** /genie/sessions | Create a Genie session +*GenieApi* | [**sendGenieMessage**](docs/GenieApi.md#sendGenieMessage) | **POST** /genie/sessions/{sessionId}/messages | Send a message to a Genie session *InternalWalletsApi* | [**createInternalWallet**](docs/InternalWalletsApi.md#createInternalWallet) | **POST** /internal_wallets | Create an internal wallet *InternalWalletsApi* | [**createInternalWalletAsset**](docs/InternalWalletsApi.md#createInternalWalletAsset) | **POST** /internal_wallets/{walletId}/{assetId} | Add an asset to an internal wallet *InternalWalletsApi* | [**deleteInternalWallet**](docs/InternalWalletsApi.md#deleteInternalWallet) | **DELETE** /internal_wallets/{walletId} | Delete an internal wallet @@ -435,19 +436,20 @@ Class | Method | HTTP request | Description *OnchainDataApi* | [**getContractTotalSupply**](docs/OnchainDataApi.md#getContractTotalSupply) | **GET** /onchain_data/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/total_supply | Get historical total supply data for a contract *OnchainDataApi* | [**getLatestBalancesForContract**](docs/OnchainDataApi.md#getLatestBalancesForContract) | **GET** /onchain_data/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/balances | Get latest balances for all addresses holding tokens from a contract *OnchainDataApi* | [**getOnchainTransactions**](docs/OnchainDataApi.md#getOnchainTransactions) | **GET** /onchain_data/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/transactions | Fetch onchain transactions for a contract -*OtaBetaApi* | [**getOtaStatus**](docs/OtaBetaApi.md#getOtaStatus) | **GET** /management/ota | Returns current OTA status -*OtaBetaApi* | [**setOtaStatus**](docs/OtaBetaApi.md#setOtaStatus) | **PUT** /management/ota | Enable or disable transactions to OTA +*OtaApi* | [**getOtaStatus**](docs/OtaApi.md#getOtaStatus) | **GET** /management/ota | Returns current OTA status +*OtaApi* | [**setOtaStatus**](docs/OtaApi.md#setOtaStatus) | **PUT** /management/ota | Enable or disable transactions to OTA *PaymentsPayoutApi* | [**createPayout**](docs/PaymentsPayoutApi.md#createPayout) | **POST** /payments/payout | Create a payout instruction set *PaymentsPayoutApi* | [**executePayoutAction**](docs/PaymentsPayoutApi.md#executePayoutAction) | **POST** /payments/payout/{payoutId}/actions/execute | Execute a payout instruction set *PaymentsPayoutApi* | [**getPayout**](docs/PaymentsPayoutApi.md#getPayout) | **GET** /payments/payout/{payoutId} | Get the status of a payout instruction set *PolicyEditorV2Api* | [**getActivePolicy**](docs/PolicyEditorV2Api.md#getActivePolicy) | **GET** /policy/active_policy | Get the active policy and its validation by policy type *PolicyEditorV2Api* | [**getDraft**](docs/PolicyEditorV2Api.md#getDraft) | **GET** /policy/draft | Get the active draft by policy type +*PolicyEditorV2Api* | [**getDraftReadOnly**](docs/PolicyEditorV2Api.md#getDraftReadOnly) | **GET** /policy/draft/read_only | Get the current draft without starting an edit session +*PolicyEditorV2Api* | [**getPolicyRuleQuota**](docs/PolicyEditorV2Api.md#getPolicyRuleQuota) | **POST** /policy/rules/quota | Calculate the AOT quota for a policy rule *PolicyEditorV2Api* | [**publishDraft**](docs/PolicyEditorV2Api.md#publishDraft) | **POST** /policy/draft | Send publish request for a certain draft id *PolicyEditorV2Api* | [**updateDraft**](docs/PolicyEditorV2Api.md#updateDraft) | **PUT** /policy/draft | Update the draft with a new set of rules by policy types -*PolicyEditorV2BetaApi* | [**getPolicyRuleQuota**](docs/PolicyEditorV2BetaApi.md#getPolicyRuleQuota) | **POST** /policy/rules/quota | Calculate the AOT quota for a policy rule -*ReportsBetaApi* | [**createReport**](docs/ReportsBetaApi.md#createReport) | **POST** /reports | Create a report -*ReportsBetaApi* | [**getReport**](docs/ReportsBetaApi.md#getReport) | **GET** /reports/{reportId} | Get report status -*ReportsBetaApi* | [**listReports**](docs/ReportsBetaApi.md#listReports) | **GET** /reports | List reports +*ReportsApi* | [**createReport**](docs/ReportsApi.md#createReport) | **POST** /reports | Create a report +*ReportsApi* | [**getReport**](docs/ReportsApi.md#getReport) | **GET** /reports/{reportId} | Get report status +*ReportsApi* | [**listReports**](docs/ReportsApi.md#listReports) | **GET** /reports | List reports *ResetDeviceApi* | [**resetDevice**](docs/ResetDeviceApi.md#resetDevice) | **POST** /management/users/{id}/reset_device | Resets device *SecurityPostureManagementApi* | [**getSecurityFindingById**](docs/SecurityPostureManagementApi.md#getSecurityFindingById) | **GET** /security/fspm/findings/{id} | Get a FSPM security finding by ID *SecurityPostureManagementApi* | [**getSecurityFindings**](docs/SecurityPostureManagementApi.md#getSecurityFindings) | **GET** /security/fspm/findings | Get FSPM security findings @@ -494,7 +496,7 @@ Class | Method | HTTP request | Description *TagsApi* | [**getTag**](docs/TagsApi.md#getTag) | **GET** /tags/{tagId} | Get a tag *TagsApi* | [**getTags**](docs/TagsApi.md#getTags) | **GET** /tags | Get list of tags *TagsApi* | [**updateTag**](docs/TagsApi.md#updateTag) | **PATCH** /tags/{tagId} | Update a tag -*TempoBetaApi* | [**createTempoTransfer**](docs/TempoBetaApi.md#createTempoTransfer) | **POST** /operations/tempo/transfer | Create a Tempo transfer transaction +*TempoApi* | [**createTempoTransfer**](docs/TempoApi.md#createTempoTransfer) | **POST** /operations/tempo/transfer | Create a Tempo transfer transaction *TokenizationApi* | [**burnCollectionToken**](docs/TokenizationApi.md#burnCollectionToken) | **POST** /tokenization/collections/{id}/tokens/burn | Burn tokens *TokenizationApi* | [**createNewCollection**](docs/TokenizationApi.md#createNewCollection) | **POST** /tokenization/collections | Create a new collection *TokenizationApi* | [**deactivateAndUnlinkAdapters**](docs/TokenizationApi.md#deactivateAndUnlinkAdapters) | **DELETE** /tokenization/multichain/bridge/layerzero | Remove LayerZero adapters @@ -591,11 +593,12 @@ Class | Method | HTTP request | Description *TravelRuleApi* | [**setVaspForVault**](docs/TravelRuleApi.md#setVaspForVault) | **POST** /screening/travel_rule/vault/{vaultAccountId}/vasp | Assign VASP to vault *TravelRuleApi* | [**updateVasp**](docs/TravelRuleApi.md#updateVasp) | **PUT** /screening/travel_rule/vasp/update | Add jsonDidKey to VASP details *TravelRuleApi* | [**validateFullTravelRuleTransaction**](docs/TravelRuleApi.md#validateFullTravelRuleTransaction) | **POST** /screening/travel_rule/transaction/validate/full | Validate Full Travel Rule Transaction -*UserGroupsBetaApi* | [**createUserGroup**](docs/UserGroupsBetaApi.md#createUserGroup) | **POST** /management/user_groups | Create user group -*UserGroupsBetaApi* | [**deleteUserGroup**](docs/UserGroupsBetaApi.md#deleteUserGroup) | **DELETE** /management/user_groups/{groupId} | Delete user group -*UserGroupsBetaApi* | [**getUserGroup**](docs/UserGroupsBetaApi.md#getUserGroup) | **GET** /management/user_groups/{groupId} | Get user group -*UserGroupsBetaApi* | [**getUserGroups**](docs/UserGroupsBetaApi.md#getUserGroups) | **GET** /management/user_groups | List user groups -*UserGroupsBetaApi* | [**updateUserGroup**](docs/UserGroupsBetaApi.md#updateUserGroup) | **PUT** /management/user_groups/{groupId} | Update user group +*TravelRuleApi* | [**validateTravelRuleTransaction**](docs/TravelRuleApi.md#validateTravelRuleTransaction) | **POST** /screening/travel_rule/transaction/validate | Validate Travel Rule Transaction +*UserGroupsApi* | [**createUserGroup**](docs/UserGroupsApi.md#createUserGroup) | **POST** /management/user_groups | Create user group +*UserGroupsApi* | [**deleteUserGroup**](docs/UserGroupsApi.md#deleteUserGroup) | **DELETE** /management/user_groups/{groupId} | Delete user group +*UserGroupsApi* | [**getUserGroup**](docs/UserGroupsApi.md#getUserGroup) | **GET** /management/user_groups/{groupId} | Get user group +*UserGroupsApi* | [**getUserGroups**](docs/UserGroupsApi.md#getUserGroups) | **GET** /management/user_groups | List user groups +*UserGroupsApi* | [**updateUserGroup**](docs/UserGroupsApi.md#updateUserGroup) | **PUT** /management/user_groups/{groupId} | Update user group *UsersApi* | [**getUsers**](docs/UsersApi.md#getUsers) | **GET** /users | List users *UtxoManagementApi* | [**getUtxoSelectionConfig**](docs/UtxoManagementApi.md#getUtxoSelectionConfig) | **GET** /utxo_management/selection_config | Get UTXO selection config *UtxoManagementApi* | [**getUtxos**](docs/UtxoManagementApi.md#getUtxos) | **GET** /utxo_management/{vaultAccountId}/{assetId}/unspent_outputs | List unspent outputs (UTXOs) @@ -609,6 +612,7 @@ Class | Method | HTTP request | Description *VaultsApi* | [**createLegacyAddress**](docs/VaultsApi.md#createLegacyAddress) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/create_legacy | Convert a segwit address to legacy format *VaultsApi* | [**createMultipleAccounts**](docs/VaultsApi.md#createMultipleAccounts) | **POST** /vault/accounts/bulk | Bulk creation of new vault accounts *VaultsApi* | [**createMultipleDepositAddresses**](docs/VaultsApi.md#createMultipleDepositAddresses) | **POST** /vault/accounts/addresses/bulk | Bulk creation of new deposit addresses +*VaultsApi* | [**createOmnibusAddresses**](docs/VaultsApi.md#createOmnibusAddresses) | **POST** /vault/accounts/{vaultAccountId}/omnibus/{protocol}/{assetId}/addresses/bulk | Create omnibus deposit addresses *VaultsApi* | [**createVaultAccount**](docs/VaultsApi.md#createVaultAccount) | **POST** /vault/accounts | Create a new vault account *VaultsApi* | [**createVaultAccountAsset**](docs/VaultsApi.md#createVaultAccountAsset) | **POST** /vault/accounts/{vaultAccountId}/{assetId} | Create a new vault wallet *VaultsApi* | [**createVaultAccountAssetAddress**](docs/VaultsApi.md#createVaultAccountAssetAddress) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/addresses | Create new asset deposit address @@ -619,6 +623,7 @@ Class | Method | HTTP request | Description *VaultsApi* | [**getCreateMultipleVaultAccountsJobStatus**](docs/VaultsApi.md#getCreateMultipleVaultAccountsJobStatus) | **GET** /vault/accounts/bulk/{jobId} | Get job status of bulk creation of new vault accounts *VaultsApi* | [**getMaxBipIndexUsed**](docs/VaultsApi.md#getMaxBipIndexUsed) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/max_bip44_index_used | Get maximum BIP44 index used *VaultsApi* | [**getMaxSpendableAmount**](docs/VaultsApi.md#getMaxSpendableAmount) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/max_spendable_amount | Get max spendable amount in a transaction +*VaultsApi* | [**getOmnibusAddresses**](docs/VaultsApi.md#getOmnibusAddresses) | **GET** /vault/accounts/{vaultAccountId}/omnibus/{protocol}/{assetId}/addresses | List omnibus deposit addresses *VaultsApi* | [**getPagedVaultAccounts**](docs/VaultsApi.md#getPagedVaultAccounts) | **GET** /vault/accounts_paged | Get vault accounts (Paginated) *VaultsApi* | [**getPublicKeyInfo**](docs/VaultsApi.md#getPublicKeyInfo) | **GET** /vault/public_key_info | Get the public key for a derivation path *VaultsApi* | [**getPublicKeyInfoForAddress**](docs/VaultsApi.md#getPublicKeyInfoForAddress) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/{change}/{addressIndex}/public_key_info | Get an asset's public key @@ -627,11 +632,14 @@ Class | Method | HTTP request | Description *VaultsApi* | [**getUsdcGatewayWalletInfoBeta**](docs/VaultsApi.md#getUsdcGatewayWalletInfoBeta) | **GET** /vault/accounts/{vaultAccountId}/usdc_gateway | Get USDC Gateway wallet info *VaultsApi* | [**getVaultAccount**](docs/VaultsApi.md#getVaultAccount) | **GET** /vault/accounts/{vaultAccountId} | Get a vault account by ID *VaultsApi* | [**getVaultAccountAsset**](docs/VaultsApi.md#getVaultAccountAsset) | **GET** /vault/accounts/{vaultAccountId}/{assetId} | Get the asset balance for a vault account +*VaultsApi* | [**getVaultAccountAssetAddresses**](docs/VaultsApi.md#getVaultAccountAssetAddresses) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/addresses | Get asset addresses *VaultsApi* | [**getVaultAccountAssetAddressesPaginated**](docs/VaultsApi.md#getVaultAccountAssetAddressesPaginated) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/addresses_paginated | Get addresses (Paginated) +*VaultsApi* | [**getVaultAccounts**](docs/VaultsApi.md#getVaultAccounts) | **GET** /vault/accounts | Get vault accounts *VaultsApi* | [**getVaultAssets**](docs/VaultsApi.md#getVaultAssets) | **GET** /vault/assets | Get asset balance for chosen assets *VaultsApi* | [**getVaultBalanceByAsset**](docs/VaultsApi.md#getVaultBalanceByAsset) | **GET** /vault/assets/{assetId} | Get vault balance by an asset *VaultsApi* | [**hideVaultAccount**](docs/VaultsApi.md#hideVaultAccount) | **POST** /vault/accounts/{vaultAccountId}/hide | Hide a vault account in the console *VaultsApi* | [**lookupVaultByAddress**](docs/VaultsApi.md#lookupVaultByAddress) | **GET** /vault/lookup_by_address | Look up a vault account by blockchain address +*VaultsApi* | [**registerTempoOmnibusWallet**](docs/VaultsApi.md#registerTempoOmnibusWallet) | **POST** /vault/accounts/{vaultAccountId}/omnibus/TEMPO/{assetId}/register | Register a Tempo omnibus wallet *VaultsApi* | [**setCustomerRefIdForAddress**](docs/VaultsApi.md#setCustomerRefIdForAddress) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/set_customer_ref_id | Assign AML customer reference ID *VaultsApi* | [**setUsdcGatewayDepositAutomationBeta**](docs/VaultsApi.md#setUsdcGatewayDepositAutomationBeta) | **POST** /vault/accounts/{vaultAccountId}/virtual_asset_wallet/usdc_gateway/deposit_automation | Set up a USDC Gateway deposit automation for a vault account *VaultsApi* | [**setVaultAccountAutoFuel**](docs/VaultsApi.md#setVaultAccountAutoFuel) | **POST** /vault/accounts/{vaultAccountId}/set_auto_fuel | Set auto fueling to on or off @@ -648,9 +656,11 @@ Class | Method | HTTP request | Description *WebhooksApi* | [**resendTransactionWebhooks**](docs/WebhooksApi.md#resendTransactionWebhooks) | **POST** /webhooks/resend/{txId} | Resend webhooks for a transaction by ID *WebhooksApi* | [**resendWebhooks**](docs/WebhooksApi.md#resendWebhooks) | **POST** /webhooks/resend | Resend failed webhooks *WebhooksV2Api* | [**createWebhook**](docs/WebhooksV2Api.md#createWebhook) | **POST** /webhooks | Create a new webhook +*WebhooksV2Api* | [**createWebhookCustomHeaders**](docs/WebhooksV2Api.md#createWebhookCustomHeaders) | **POST** /webhooks_settings/custom_headers | Create a custom headers set *WebhooksV2Api* | [**createWebhookMtlsConfig**](docs/WebhooksV2Api.md#createWebhookMtlsConfig) | **POST** /webhooks_settings/mtls | Create an mTLS configuration *WebhooksV2Api* | [**createWebhookOauth**](docs/WebhooksV2Api.md#createWebhookOauth) | **POST** /webhooks_settings/oauth | Create OAuth credentials *WebhooksV2Api* | [**deleteWebhook**](docs/WebhooksV2Api.md#deleteWebhook) | **DELETE** /webhooks/{webhookId} | Delete webhook +*WebhooksV2Api* | [**deleteWebhookCustomHeaders**](docs/WebhooksV2Api.md#deleteWebhookCustomHeaders) | **DELETE** /webhooks_settings/custom_headers/{webhookCustomHeadersId} | Delete a custom headers set *WebhooksV2Api* | [**deleteWebhookMtlsConfig**](docs/WebhooksV2Api.md#deleteWebhookMtlsConfig) | **DELETE** /webhooks_settings/mtls/{webhookMtlsId} | Delete an mTLS configuration *WebhooksV2Api* | [**deleteWebhookOauth**](docs/WebhooksV2Api.md#deleteWebhookOauth) | **DELETE** /webhooks_settings/oauth/{webhookOauthId} | Delete OAuth credentials *WebhooksV2Api* | [**getMetrics**](docs/WebhooksV2Api.md#getMetrics) | **GET** /webhooks/{webhookId}/metrics/{metricName} | Get webhook metrics @@ -661,6 +671,8 @@ Class | Method | HTTP request | Description *WebhooksV2Api* | [**getResendByQueryJobStatus**](docs/WebhooksV2Api.md#getResendByQueryJobStatus) | **GET** /webhooks/{webhookId}/notifications/resend_by_query/jobs/{jobId} | Get resend by query job status *WebhooksV2Api* | [**getResendJobStatus**](docs/WebhooksV2Api.md#getResendJobStatus) | **GET** /webhooks/{webhookId}/notifications/resend_failed/jobs/{jobId} | Get resend job status *WebhooksV2Api* | [**getWebhook**](docs/WebhooksV2Api.md#getWebhook) | **GET** /webhooks/{webhookId} | Get webhook by id +*WebhooksV2Api* | [**getWebhookCustomHeaders**](docs/WebhooksV2Api.md#getWebhookCustomHeaders) | **GET** /webhooks_settings/custom_headers/{webhookCustomHeadersId} | Get a custom headers set by id +*WebhooksV2Api* | [**getWebhookCustomHeadersList**](docs/WebhooksV2Api.md#getWebhookCustomHeadersList) | **GET** /webhooks_settings/custom_headers | Get all custom headers sets *WebhooksV2Api* | [**getWebhookMtlsConfig**](docs/WebhooksV2Api.md#getWebhookMtlsConfig) | **GET** /webhooks_settings/mtls/{webhookMtlsId} | Get an mTLS configuration by id *WebhooksV2Api* | [**getWebhookMtlsConfigs**](docs/WebhooksV2Api.md#getWebhookMtlsConfigs) | **GET** /webhooks_settings/mtls | List the uploaded mTLS configurations *WebhooksV2Api* | [**getWebhookOauth**](docs/WebhooksV2Api.md#getWebhookOauth) | **GET** /webhooks_settings/oauth/{webhookOauthId} | Get OAuth credentials by id @@ -670,12 +682,16 @@ Class | Method | HTTP request | Description *WebhooksV2Api* | [**resendNotificationById**](docs/WebhooksV2Api.md#resendNotificationById) | **POST** /webhooks/{webhookId}/notifications/{notificationId}/resend | Resend notification by id *WebhooksV2Api* | [**resendNotificationsByQuery**](docs/WebhooksV2Api.md#resendNotificationsByQuery) | **POST** /webhooks/{webhookId}/notifications/resend_by_query | Resend notifications by query *WebhooksV2Api* | [**resendNotificationsByResourceId**](docs/WebhooksV2Api.md#resendNotificationsByResourceId) | **POST** /webhooks/{webhookId}/notifications/resend_by_resource | Resend notifications by resource Id +*WebhooksV2Api* | [**revokeWebhookOauthKey**](docs/WebhooksV2Api.md#revokeWebhookOauthKey) | **POST** /webhooks_settings/oauth/{webhookOauthId}/revoke_key | Revoke a signing key of OAuth credentials +*WebhooksV2Api* | [**rotateWebhookOauthKey**](docs/WebhooksV2Api.md#rotateWebhookOauthKey) | **POST** /webhooks_settings/oauth/{webhookOauthId}/rotate_key | Rotate the signing key of OAuth credentials *WebhooksV2Api* | [**updateWebhook**](docs/WebhooksV2Api.md#updateWebhook) | **PATCH** /webhooks/{webhookId} | Update webhook +*WebhooksV2Api* | [**updateWebhookCustomHeaders**](docs/WebhooksV2Api.md#updateWebhookCustomHeaders) | **PATCH** /webhooks_settings/custom_headers/{webhookCustomHeadersId} | Update a custom headers set *WebhooksV2Api* | [**updateWebhookMtlsConfig**](docs/WebhooksV2Api.md#updateWebhookMtlsConfig) | **PATCH** /webhooks_settings/mtls/{webhookMtlsId} | Update an mTLS configuration *WebhooksV2Api* | [**updateWebhookOauth**](docs/WebhooksV2Api.md#updateWebhookOauth) | **PATCH** /webhooks_settings/oauth/{webhookOauthId} | Update OAuth credentials *WhitelistIpAddressesApi* | [**getWhitelistIpAddresses**](docs/WhitelistIpAddressesApi.md#getWhitelistIpAddresses) | **GET** /management/api_users/{userId}/whitelist_ip_addresses | Get whitelisted ip addresses for an API Key +*WorkspaceApi* | [**freezeWorkspace**](docs/WorkspaceApi.md#freezeWorkspace) | **POST** /workspace/freeze | Freeze *WorkspaceApi* | [**getWorkspace**](docs/WorkspaceApi.md#getWorkspace) | **GET** /workspace | Get workspace -*WorkspaceStatusBetaApi* | [**getWorkspaceStatus**](docs/WorkspaceStatusBetaApi.md#getWorkspaceStatus) | **GET** /management/workspace_status | Returns current workspace status +*WorkspaceStatusApi* | [**getWorkspaceStatus**](docs/WorkspaceStatusApi.md#getWorkspaceStatus) | **GET** /management/workspace_status | Returns current workspace status ## Documentation for Models @@ -809,7 +825,6 @@ Class | Method | HTTP request | Description - [AssetResponse](docs/AssetResponse.md) - [AssetScope](docs/AssetScope.md) - [AssetTypeResponse](docs/AssetTypeResponse.md) - - [AssetTypesConfigInner](docs/AssetTypesConfigInner.md) - [AssetWallet](docs/AssetWallet.md) - [AssignVaultsToLegalEntityRequest](docs/AssignVaultsToLegalEntityRequest.md) - [AssignVaultsToLegalEntityResponse](docs/AssignVaultsToLegalEntityResponse.md) @@ -918,6 +933,7 @@ Class | Method | HTTP request | Description - [ConnectedAccountBalances](docs/ConnectedAccountBalances.md) - [ConnectedAccountBalancesResponse](docs/ConnectedAccountBalancesResponse.md) - [ConnectedAccountCapability](docs/ConnectedAccountCapability.md) + - [ConnectedAccountCredit](docs/ConnectedAccountCredit.md) - [ConnectedAccountErrorResponse](docs/ConnectedAccountErrorResponse.md) - [ConnectedAccountManifest](docs/ConnectedAccountManifest.md) - [ConnectedAccountRateResponse](docs/ConnectedAccountRateResponse.md) @@ -1004,6 +1020,8 @@ Class | Method | HTTP request | Description - [CreateNcwConnectionRequest](docs/CreateNcwConnectionRequest.md) - [CreateNetworkIdRequest](docs/CreateNetworkIdRequest.md) - [CreateOffersRequest](docs/CreateOffersRequest.md) + - [CreateOmnibusAddressesRequest](docs/CreateOmnibusAddressesRequest.md) + - [CreateOmnibusAddressesResponse](docs/CreateOmnibusAddressesResponse.md) - [CreateOrderRequest](docs/CreateOrderRequest.md) - [CreatePayoutRequest](docs/CreatePayoutRequest.md) - [CreateQuote](docs/CreateQuote.md) @@ -1025,6 +1043,7 @@ Class | Method | HTTP request | Description - [CreateVaultAccountRequest](docs/CreateVaultAccountRequest.md) - [CreateVaultAssetResponse](docs/CreateVaultAssetResponse.md) - [CreateWalletRequest](docs/CreateWalletRequest.md) + - [CreateWebhookCustomHeadersRequest](docs/CreateWebhookCustomHeadersRequest.md) - [CreateWebhookMtlsConfigRequest](docs/CreateWebhookMtlsConfigRequest.md) - [CreateWebhookOauthRequest](docs/CreateWebhookOauthRequest.md) - [CreateWebhookRequest](docs/CreateWebhookRequest.md) @@ -1041,6 +1060,7 @@ Class | Method | HTTP request | Description - [DeleteApprovalApiKeyResponse](docs/DeleteApprovalApiKeyResponse.md) - [DeleteNetworkConnectionResponse](docs/DeleteNetworkConnectionResponse.md) - [DeleteNetworkIdResponse](docs/DeleteNetworkIdResponse.md) + - [DeleteWebhookCustomHeadersResponse](docs/DeleteWebhookCustomHeadersResponse.md) - [DeleteWebhookMtlsConfigResponse](docs/DeleteWebhookMtlsConfigResponse.md) - [DeleteWebhookOauthResponse](docs/DeleteWebhookOauthResponse.md) - [DeployLayerZeroAdaptersRequest](docs/DeployLayerZeroAdaptersRequest.md) @@ -1270,6 +1290,7 @@ Class | Method | HTTP request | Description - [ListBlockchainsResponse](docs/ListBlockchainsResponse.md) - [ListBlockchainsResponse2](docs/ListBlockchainsResponse2.md) - [ListLegalEntitiesResponse](docs/ListLegalEntitiesResponse.md) + - [ListOmnibusAddressesResponse](docs/ListOmnibusAddressesResponse.md) - [ListOwnedCollectionsResponse](docs/ListOwnedCollectionsResponse.md) - [ListOwnedTokensResponse](docs/ListOwnedTokensResponse.md) - [ListUtxosResponse](docs/ListUtxosResponse.md) @@ -1335,6 +1356,7 @@ Class | Method | HTTP request | Description - [OfferResponseTransferReject](docs/OfferResponseTransferReject.md) - [OfferResponseTransferWithdraw](docs/OfferResponseTransferWithdraw.md) - [OffersResponse](docs/OffersResponse.md) + - [OmnibusAddress](docs/OmnibusAddress.md) - [OnchainTransaction](docs/OnchainTransaction.md) - [OnchainTransactionsPagedResponse](docs/OnchainTransactionsPagedResponse.md) - [OnchainTransactionsPagedResponse2](docs/OnchainTransactionsPagedResponse2.md) @@ -1465,6 +1487,8 @@ Class | Method | HTTP request | Description - [ReadAbiFunction](docs/ReadAbiFunction.md) - [ReadCallFunctionDto](docs/ReadCallFunctionDto.md) - [ReadCallFunctionDtoAbiFunction](docs/ReadCallFunctionDtoAbiFunction.md) + - [ReadOnlyDraftResponse](docs/ReadOnlyDraftResponse.md) + - [ReadOnlyDraftReviewAndValidationResponse](docs/ReadOnlyDraftReviewAndValidationResponse.md) - [ReasonForPaymentEnum](docs/ReasonForPaymentEnum.md) - [RecipientHandle](docs/RecipientHandle.md) - [RedeemFundsToLinkedDDAResponse](docs/RedeemFundsToLinkedDDAResponse.md) @@ -1472,6 +1496,7 @@ Class | Method | HTTP request | Description - [RegisterApprovalApiKeyResponse](docs/RegisterApprovalApiKeyResponse.md) - [RegisterLegalEntityRequest](docs/RegisterLegalEntityRequest.md) - [RegisterNewAssetRequest](docs/RegisterNewAssetRequest.md) + - [RegisterTempoOmnibusResponse](docs/RegisterTempoOmnibusResponse.md) - [ReissueMultichainTokenRequest](docs/ReissueMultichainTokenRequest.md) - [RelatedRequest](docs/RelatedRequest.md) - [RelatedTransaction](docs/RelatedTransaction.md) @@ -1508,6 +1533,8 @@ Class | Method | HTTP request | Description - [RespondToConnectionRequest](docs/RespondToConnectionRequest.md) - [RetryRequoteRequestDetails](docs/RetryRequoteRequestDetails.md) - [RetryRequoteTypeEnum](docs/RetryRequoteTypeEnum.md) + - [RevokeWebhookOauthKeyRequest](docs/RevokeWebhookOauthKeyRequest.md) + - [RevokeWebhookOauthKeyResponse](docs/RevokeWebhookOauthKeyResponse.md) - [RewardInfo](docs/RewardInfo.md) - [RewardsInfo](docs/RewardsInfo.md) - [RiskLevelEnum](docs/RiskLevelEnum.md) @@ -1515,6 +1542,7 @@ Class | Method | HTTP request | Description - [RoleDetails2](docs/RoleDetails2.md) - [RoleFeeInfo](docs/RoleFeeInfo.md) - [RoleGrantee](docs/RoleGrantee.md) + - [RotateWebhookOauthKeyResponse](docs/RotateWebhookOauthKeyResponse.md) - [Rule](docs/Rule.md) - [RuleActionEnum](docs/RuleActionEnum.md) - [RuleCondition](docs/RuleCondition.md) @@ -1907,6 +1935,7 @@ Class | Method | HTTP request | Description - [UpdateTokenOwnershipStatusDto](docs/UpdateTokenOwnershipStatusDto.md) - [UpdateVaultAccountAssetAddressRequest](docs/UpdateVaultAccountAssetAddressRequest.md) - [UpdateVaultAccountRequest](docs/UpdateVaultAccountRequest.md) + - [UpdateWebhookCustomHeadersRequest](docs/UpdateWebhookCustomHeadersRequest.md) - [UpdateWebhookMtlsConfigRequest](docs/UpdateWebhookMtlsConfigRequest.md) - [UpdateWebhookOauthRequest](docs/UpdateWebhookOauthRequest.md) - [UpdateWebhookRequest](docs/UpdateWebhookRequest.md) @@ -1959,12 +1988,14 @@ Class | Method | HTTP request | Description - [WalletAsset](docs/WalletAsset.md) - [WalletAssetAdditionalInfo](docs/WalletAssetAdditionalInfo.md) - [Webhook](docs/Webhook.md) + - [WebhookCustomHeadersSet](docs/WebhookCustomHeadersSet.md) - [WebhookEvent](docs/WebhookEvent.md) - [WebhookMetric](docs/WebhookMetric.md) - [WebhookMtlsConfig](docs/WebhookMtlsConfig.md) - [WebhookMtlsCsrResponse](docs/WebhookMtlsCsrResponse.md) - [WebhookMtlsKeyAlgorithm](docs/WebhookMtlsKeyAlgorithm.md) - [WebhookOauthCredentials](docs/WebhookOauthCredentials.md) + - [WebhookOauthSigningAlg](docs/WebhookOauthSigningAlg.md) - [WebhookPaginatedResponse](docs/WebhookPaginatedResponse.md) - [WithdrawRequest](docs/WithdrawRequest.md) - [WorkflowConfigStatus](docs/WorkflowConfigStatus.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 60821cf3..444ab783 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -418,7 +418,7 @@ paths: $ref: "#/components/responses/Error" summary: List approval requests tags: - - Approvals (Beta) + - Approvals x-rate-limit-category: query x-lifecycle: state: ea @@ -426,27 +426,27 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.approvalsBeta.getApprovals(approvalsBetaApiGetApprovalsRequest);" + \ = fireblocks.approvals.getApprovals(approvalsApiGetApprovalsRequest);" name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response =\ - \ fireblocks.approvalsBeta().getApprovals(includeUserApproved, userId,\ - \ includeAllUsers, quorumStatusMode, pageSize, pageCursor);" + \ fireblocks.approvals().getApprovals(includeUserApproved, userId, includeAllUsers,\ + \ quorumStatusMode, pageSize, pageCursor);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.approvals_beta.get_approvals(include_user_approved,\ + code: "response = fireblocks.approvals.get_approvals(include_user_approved,\ \ user_id, include_all_users, quorum_status_mode, page_size, page_cursor);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.approvalsBeta.getApprovals(approvalsBetaApiGetApprovalsRequest);" + \ = fireblocks.approvals.getApprovals(approvalsApiGetApprovalsRequest);" - lang: Java source: "CompletableFuture> response =\ - \ fireblocks.approvalsBeta().getApprovals(includeUserApproved, userId, includeAllUsers,\ + \ fireblocks.approvals().getApprovals(includeUserApproved, userId, includeAllUsers,\ \ quorumStatusMode, pageSize, pageCursor);" - lang: Python - source: "response = fireblocks.approvals_beta.get_approvals(include_user_approved,\ + source: "response = fireblocks.approvals.get_approvals(include_user_approved,\ \ user_id, include_all_users, quorum_status_mode, page_size, page_cursor);" x-accepts: - application/json @@ -513,7 +513,7 @@ paths: $ref: "#/components/responses/Error" summary: Get a single approval request tags: - - Approvals (Beta) + - Approvals x-rate-limit-category: query x-lifecycle: state: ea @@ -521,26 +521,26 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.approvalsBeta.getApprovalById(approvalsBetaApiGetApprovalByIdRequest);" + \ = fireblocks.approvals.getApprovalById(approvalsApiGetApprovalByIdRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.approvalsBeta().getApprovalById(requestId,\ + code: "CompletableFuture> response = fireblocks.approvals().getApprovalById(requestId,\ \ userId, quorumStatusMode);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.approvals_beta.get_approval_by_id(request_id,\ - \ user_id, quorum_status_mode);" + code: "response = fireblocks.approvals.get_approval_by_id(request_id, user_id,\ + \ quorum_status_mode);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.approvalsBeta.getApprovalById(approvalsBetaApiGetApprovalByIdRequest);" + \ = fireblocks.approvals.getApprovalById(approvalsApiGetApprovalByIdRequest);" - lang: Java - source: "CompletableFuture> response = fireblocks.approvalsBeta().getApprovalById(requestId,\ + source: "CompletableFuture> response = fireblocks.approvals().getApprovalById(requestId,\ \ userId, quorumStatusMode);" - lang: Python - source: "response = fireblocks.approvals_beta.get_approval_by_id(request_id,\ - \ user_id, quorum_status_mode);" + source: "response = fireblocks.approvals.get_approval_by_id(request_id, user_id,\ + \ quorum_status_mode);" x-accepts: - application/json /approvals/{requestId}/approve: @@ -587,31 +587,31 @@ paths: $ref: "#/components/responses/Error" summary: Approve an approval request tags: - - Approvals (Beta) + - Approvals x-rate-limit-category: write x-lifecycle: state: ea x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.approvalsBeta.approveApproval(approvalsBetaApiApproveApprovalRequest);" + code: "const response: Promise> = fireblocks.approvals.approveApproval(approvalsApiApproveApprovalRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.approvalsBeta().approveApproval(approveApprovalRequest,\ + code: "CompletableFuture> response = fireblocks.approvals().approveApproval(approveApprovalRequest,\ \ requestId, idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.approvals_beta.approve_approval(approve_approval_request,\ + code: "response = fireblocks.approvals.approve_approval(approve_approval_request,\ \ request_id, idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript - source: "const response: Promise> = fireblocks.approvalsBeta.approveApproval(approvalsBetaApiApproveApprovalRequest);" + source: "const response: Promise> = fireblocks.approvals.approveApproval(approvalsApiApproveApprovalRequest);" - lang: Java - source: "CompletableFuture> response = fireblocks.approvalsBeta().approveApproval(approveApprovalRequest,\ + source: "CompletableFuture> response = fireblocks.approvals().approveApproval(approveApprovalRequest,\ \ requestId, idempotencyKey);" - lang: Python - source: "response = fireblocks.approvals_beta.approve_approval(approve_approval_request,\ + source: "response = fireblocks.approvals.approve_approval(approve_approval_request,\ \ request_id, idempotency_key);" x-content-type: application/json x-accepts: @@ -654,32 +654,30 @@ paths: $ref: "#/components/responses/Error" summary: Reject an approval request tags: - - Approvals (Beta) + - Approvals x-rate-limit-category: write x-lifecycle: state: ea x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.approvalsBeta.rejectApproval(approvalsBetaApiRejectApprovalRequest);" + code: "const response: Promise> = fireblocks.approvals.rejectApproval(approvalsApiRejectApprovalRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.approvalsBeta().rejectApproval(requestId,\ + code: "CompletableFuture> response = fireblocks.approvals().rejectApproval(requestId,\ \ idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.approvals_beta.reject_approval(request_id,\ - \ idempotency_key);" + code: "response = fireblocks.approvals.reject_approval(request_id, idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript - source: "const response: Promise> = fireblocks.approvalsBeta.rejectApproval(approvalsBetaApiRejectApprovalRequest);" + source: "const response: Promise> = fireblocks.approvals.rejectApproval(approvalsApiRejectApprovalRequest);" - lang: Java - source: "CompletableFuture> response = fireblocks.approvalsBeta().rejectApproval(requestId,\ + source: "CompletableFuture> response = fireblocks.approvals().rejectApproval(requestId,\ \ idempotencyKey);" - lang: Python - source: "response = fireblocks.approvals_beta.reject_approval(request_id,\ - \ idempotency_key);" + source: "response = fireblocks.approvals.reject_approval(request_id, idempotency_key);" x-accepts: - application/json /management/api_users/{userId}/approval_keys: @@ -733,7 +731,7 @@ paths: $ref: "#/components/responses/Error" summary: List approval keys tags: - - Approvals (Beta) + - Approvals x-rate-limit-category: query x-lifecycle: state: ea @@ -741,25 +739,25 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.approvalsBeta.getApprovalKeys(approvalsBetaApiGetApprovalKeysRequest);" + \ = fireblocks.approvals.getApprovalKeys(approvalsApiGetApprovalKeysRequest);" name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response\ - \ = fireblocks.approvalsBeta().getApprovalKeys(userId, pageSize, pageCursor);" + \ = fireblocks.approvals().getApprovalKeys(userId, pageSize, pageCursor);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.approvals_beta.get_approval_keys(user_id, page_size,\ + code: "response = fireblocks.approvals.get_approval_keys(user_id, page_size,\ \ page_cursor);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.approvalsBeta.getApprovalKeys(approvalsBetaApiGetApprovalKeysRequest);" + \ = fireblocks.approvals.getApprovalKeys(approvalsApiGetApprovalKeysRequest);" - lang: Java source: "CompletableFuture> response\ - \ = fireblocks.approvalsBeta().getApprovalKeys(userId, pageSize, pageCursor);" + \ = fireblocks.approvals().getApprovalKeys(userId, pageSize, pageCursor);" - lang: Python - source: "response = fireblocks.approvals_beta.get_approval_keys(user_id, page_size,\ + source: "response = fireblocks.approvals.get_approval_keys(user_id, page_size,\ \ page_cursor);" x-accepts: - application/json @@ -824,7 +822,7 @@ paths: $ref: "#/components/responses/Error" summary: Register an approval key tags: - - Approvals (Beta) + - Approvals x-rate-limit-category: write x-lifecycle: state: ea @@ -832,27 +830,27 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.approvalsBeta.createApprovalKey(approvalsBetaApiCreateApprovalKeyRequest);" + \ = fireblocks.approvals.createApprovalKey(approvalsApiCreateApprovalKeyRequest);" name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response\ - \ = fireblocks.approvalsBeta().createApprovalKey(registerApprovalApiKeyRequest,\ + \ = fireblocks.approvals().createApprovalKey(registerApprovalApiKeyRequest,\ \ userId, idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.approvals_beta.create_approval_key(register_approval_api_key_request,\ + code: "response = fireblocks.approvals.create_approval_key(register_approval_api_key_request,\ \ user_id, idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.approvalsBeta.createApprovalKey(approvalsBetaApiCreateApprovalKeyRequest);" + \ = fireblocks.approvals.createApprovalKey(approvalsApiCreateApprovalKeyRequest);" - lang: Java source: "CompletableFuture> response\ - \ = fireblocks.approvalsBeta().createApprovalKey(registerApprovalApiKeyRequest,\ + \ = fireblocks.approvals().createApprovalKey(registerApprovalApiKeyRequest,\ \ userId, idempotencyKey);" - lang: Python - source: "response = fireblocks.approvals_beta.create_approval_key(register_approval_api_key_request,\ + source: "response = fireblocks.approvals.create_approval_key(register_approval_api_key_request,\ \ user_id, idempotency_key);" x-content-type: application/json x-accepts: @@ -918,7 +916,7 @@ paths: $ref: "#/components/responses/Error" summary: Delete an approval key tags: - - Approvals (Beta) + - Approvals x-rate-limit-category: write x-lifecycle: state: ea @@ -926,26 +924,26 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.approvalsBeta.deleteApprovalKey(approvalsBetaApiDeleteApprovalKeyRequest);" + \ = fireblocks.approvals.deleteApprovalKey(approvalsApiDeleteApprovalKeyRequest);" name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response\ - \ = fireblocks.approvalsBeta().deleteApprovalKey(userId, keyId, idempotencyKey);" + \ = fireblocks.approvals().deleteApprovalKey(userId, keyId, idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.approvals_beta.delete_approval_key(user_id,\ - \ key_id, idempotency_key);" + code: "response = fireblocks.approvals.delete_approval_key(user_id, key_id,\ + \ idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.approvalsBeta.deleteApprovalKey(approvalsBetaApiDeleteApprovalKeyRequest);" + \ = fireblocks.approvals.deleteApprovalKey(approvalsApiDeleteApprovalKeyRequest);" - lang: Java source: "CompletableFuture> response\ - \ = fireblocks.approvalsBeta().deleteApprovalKey(userId, keyId, idempotencyKey);" + \ = fireblocks.approvals().deleteApprovalKey(userId, keyId, idempotencyKey);" - lang: Python - source: "response = fireblocks.approvals_beta.delete_approval_key(user_id,\ - \ key_id, idempotency_key);" + source: "response = fireblocks.approvals.delete_approval_key(user_id, key_id,\ + \ idempotency_key);" x-accepts: - application/json /management/audit_logs: @@ -1243,7 +1241,7 @@ paths: $ref: "#/components/responses/Error" summary: List blockchains with pagination and filtering tags: - - Blockchain link (Beta) + - Blockchain link x-rate-limit-category: query x-lifecycle: state: ea @@ -1251,27 +1249,27 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.blockchainLinkBeta.listBlockchainLinkChains(blockchainLinkBetaApiListBlockchainLinkChainsRequest);" + \ = fireblocks.blockchainLink.listBlockchainLinkChains(blockchainLinkApiListBlockchainLinkChainsRequest);" name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response\ - \ = fireblocks.blockchainLinkBeta().listBlockchainLinkChains(pageCursor,\ - \ pageSize, search, status, blockchainEnv, sortBy, order, statusExclude);" + \ = fireblocks.blockchainLink().listBlockchainLinkChains(pageCursor, pageSize,\ + \ search, status, blockchainEnv, sortBy, order, statusExclude);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.blockchain_link_beta.list_blockchain_link_chains(page_cursor,\ + code: "response = fireblocks.blockchain_link.list_blockchain_link_chains(page_cursor,\ \ page_size, search, status, blockchain_env, sort_by, order, status_exclude);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.blockchainLinkBeta.listBlockchainLinkChains(blockchainLinkBetaApiListBlockchainLinkChainsRequest);" + \ = fireblocks.blockchainLink.listBlockchainLinkChains(blockchainLinkApiListBlockchainLinkChainsRequest);" - lang: Java source: "CompletableFuture> response\ - \ = fireblocks.blockchainLinkBeta().listBlockchainLinkChains(pageCursor,\ - \ pageSize, search, status, blockchainEnv, sortBy, order, statusExclude);" + \ = fireblocks.blockchainLink().listBlockchainLinkChains(pageCursor, pageSize,\ + \ search, status, blockchainEnv, sortBy, order, statusExclude);" - lang: Python - source: "response = fireblocks.blockchain_link_beta.list_blockchain_link_chains(page_cursor,\ + source: "response = fireblocks.blockchain_link.list_blockchain_link_chains(page_cursor,\ \ page_size, search, status, blockchain_env, sort_by, order, status_exclude);" x-accepts: - application/json @@ -1312,7 +1310,7 @@ paths: $ref: "#/components/responses/Error" summary: Create a new blockchain tags: - - Blockchain link (Beta) + - Blockchain link x-rate-limit-category: write x-lifecycle: state: ea @@ -1320,27 +1318,27 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.blockchainLinkBeta.createBlockchainLinkChain(blockchainLinkBetaApiCreateBlockchainLinkChainRequest);" + \ = fireblocks.blockchainLink.createBlockchainLinkChain(blockchainLinkApiCreateBlockchainLinkChainRequest);" name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response\ - \ = fireblocks.blockchainLinkBeta().createBlockchainLinkChain(createBlockchainRequest,\ + \ = fireblocks.blockchainLink().createBlockchainLinkChain(createBlockchainRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.blockchain_link_beta.create_blockchain_link_chain(create_blockchain_request,\ + code: "response = fireblocks.blockchain_link.create_blockchain_link_chain(create_blockchain_request,\ \ idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.blockchainLinkBeta.createBlockchainLinkChain(blockchainLinkBetaApiCreateBlockchainLinkChainRequest);" + \ = fireblocks.blockchainLink.createBlockchainLinkChain(blockchainLinkApiCreateBlockchainLinkChainRequest);" - lang: Java source: "CompletableFuture> response\ - \ = fireblocks.blockchainLinkBeta().createBlockchainLinkChain(createBlockchainRequest,\ + \ = fireblocks.blockchainLink().createBlockchainLinkChain(createBlockchainRequest,\ \ idempotencyKey);" - lang: Python - source: "response = fireblocks.blockchain_link_beta.create_blockchain_link_chain(create_blockchain_request,\ + source: "response = fireblocks.blockchain_link.create_blockchain_link_chain(create_blockchain_request,\ \ idempotency_key);" x-content-type: application/json x-accepts: @@ -1369,28 +1367,28 @@ paths: $ref: "#/components/responses/Error" summary: Delete a blockchain tags: - - Blockchain link (Beta) + - Blockchain link x-rate-limit-category: write x-lifecycle: state: ea x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.blockchainLinkBeta.deleteBlockchainLinkChain(blockchainLinkBetaApiDeleteBlockchainLinkChainRequest);" + code: "const response: Promise> = fireblocks.blockchainLink.deleteBlockchainLinkChain(blockchainLinkApiDeleteBlockchainLinkChainRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.blockchainLinkBeta().deleteBlockchainLinkChain(blockchainId); + code: CompletableFuture> response = fireblocks.blockchainLink().deleteBlockchainLinkChain(blockchainId); name: Fireblocks SDK Java example - language: python - code: response = fireblocks.blockchain_link_beta.delete_blockchain_link_chain(blockchain_id); + code: response = fireblocks.blockchain_link.delete_blockchain_link_chain(blockchain_id); name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript - source: "const response: Promise> = fireblocks.blockchainLinkBeta.deleteBlockchainLinkChain(blockchainLinkBetaApiDeleteBlockchainLinkChainRequest);" + source: "const response: Promise> = fireblocks.blockchainLink.deleteBlockchainLinkChain(blockchainLinkApiDeleteBlockchainLinkChainRequest);" - lang: Java - source: CompletableFuture> response = fireblocks.blockchainLinkBeta().deleteBlockchainLinkChain(blockchainId); + source: CompletableFuture> response = fireblocks.blockchainLink().deleteBlockchainLinkChain(blockchainId); - lang: Python - source: response = fireblocks.blockchain_link_beta.delete_blockchain_link_chain(blockchain_id); + source: response = fireblocks.blockchain_link.delete_blockchain_link_chain(blockchain_id); x-accepts: - application/json get: @@ -1421,7 +1419,7 @@ paths: $ref: "#/components/responses/Error" summary: Get a blockchain by ID tags: - - Blockchain link (Beta) + - Blockchain link x-rate-limit-category: read x-lifecycle: state: ea @@ -1429,24 +1427,24 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.blockchainLinkBeta.getBlockchainLinkChain(blockchainLinkBetaApiGetBlockchainLinkChainRequest);" + \ = fireblocks.blockchainLink.getBlockchainLinkChain(blockchainLinkApiGetBlockchainLinkChainRequest);" name: Fireblocks SDK TypeScript example - language: java code: CompletableFuture> response - = fireblocks.blockchainLinkBeta().getBlockchainLinkChain(blockchainId); + = fireblocks.blockchainLink().getBlockchainLinkChain(blockchainId); name: Fireblocks SDK Java example - language: python - code: response = fireblocks.blockchain_link_beta.get_blockchain_link_chain(blockchain_id); + code: response = fireblocks.blockchain_link.get_blockchain_link_chain(blockchain_id); name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.blockchainLinkBeta.getBlockchainLinkChain(blockchainLinkBetaApiGetBlockchainLinkChainRequest);" + \ = fireblocks.blockchainLink.getBlockchainLinkChain(blockchainLinkApiGetBlockchainLinkChainRequest);" - lang: Java source: CompletableFuture> response - = fireblocks.blockchainLinkBeta().getBlockchainLinkChain(blockchainId); + = fireblocks.blockchainLink().getBlockchainLinkChain(blockchainId); - lang: Python - source: response = fireblocks.blockchain_link_beta.get_blockchain_link_chain(blockchain_id); + source: response = fireblocks.blockchain_link.get_blockchain_link_chain(blockchain_id); x-accepts: - application/json put: @@ -1494,7 +1492,7 @@ paths: $ref: "#/components/responses/Error" summary: Update a blockchain tags: - - Blockchain link (Beta) + - Blockchain link x-rate-limit-category: write x-lifecycle: state: ea @@ -1502,27 +1500,27 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.blockchainLinkBeta.updateBlockchainLinkChain(blockchainLinkBetaApiUpdateBlockchainLinkChainRequest);" + \ = fireblocks.blockchainLink.updateBlockchainLinkChain(blockchainLinkApiUpdateBlockchainLinkChainRequest);" name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response\ - \ = fireblocks.blockchainLinkBeta().updateBlockchainLinkChain(blockchainDeclaredProperties,\ + \ = fireblocks.blockchainLink().updateBlockchainLinkChain(blockchainDeclaredProperties,\ \ blockchainId, idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.blockchain_link_beta.update_blockchain_link_chain(blockchain_declared_properties,\ + code: "response = fireblocks.blockchain_link.update_blockchain_link_chain(blockchain_declared_properties,\ \ blockchain_id, idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.blockchainLinkBeta.updateBlockchainLinkChain(blockchainLinkBetaApiUpdateBlockchainLinkChainRequest);" + \ = fireblocks.blockchainLink.updateBlockchainLinkChain(blockchainLinkApiUpdateBlockchainLinkChainRequest);" - lang: Java source: "CompletableFuture> response\ - \ = fireblocks.blockchainLinkBeta().updateBlockchainLinkChain(blockchainDeclaredProperties,\ + \ = fireblocks.blockchainLink().updateBlockchainLinkChain(blockchainDeclaredProperties,\ \ blockchainId, idempotencyKey);" - lang: Python - source: "response = fireblocks.blockchain_link_beta.update_blockchain_link_chain(blockchain_declared_properties,\ + source: "response = fireblocks.blockchain_link.update_blockchain_link_chain(blockchain_declared_properties,\ \ blockchain_id, idempotency_key);" x-content-type: application/json x-accepts: @@ -1566,7 +1564,7 @@ paths: $ref: "#/components/responses/Error" summary: Activate a blockchain (triggers activation workflow) tags: - - Blockchain link (Beta) + - Blockchain link x-rate-limit-category: async x-lifecycle: state: ea @@ -1574,27 +1572,27 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.blockchainLinkBeta.activateBlockchainLinkChain(blockchainLinkBetaApiActivateBlockchainLinkChainRequest);" + \ = fireblocks.blockchainLink.activateBlockchainLinkChain(blockchainLinkApiActivateBlockchainLinkChainRequest);" name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response\ - \ = fireblocks.blockchainLinkBeta().activateBlockchainLinkChain(blockchainId,\ + \ = fireblocks.blockchainLink().activateBlockchainLinkChain(blockchainId,\ \ idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.blockchain_link_beta.activate_blockchain_link_chain(blockchain_id,\ + code: "response = fireblocks.blockchain_link.activate_blockchain_link_chain(blockchain_id,\ \ idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.blockchainLinkBeta.activateBlockchainLinkChain(blockchainLinkBetaApiActivateBlockchainLinkChainRequest);" + \ = fireblocks.blockchainLink.activateBlockchainLinkChain(blockchainLinkApiActivateBlockchainLinkChainRequest);" - lang: Java source: "CompletableFuture> response\ - \ = fireblocks.blockchainLinkBeta().activateBlockchainLinkChain(blockchainId,\ + \ = fireblocks.blockchainLink().activateBlockchainLinkChain(blockchainId,\ \ idempotencyKey);" - lang: Python - source: "response = fireblocks.blockchain_link_beta.activate_blockchain_link_chain(blockchain_id,\ + source: "response = fireblocks.blockchain_link.activate_blockchain_link_chain(blockchain_id,\ \ idempotency_key);" x-accepts: - application/json @@ -1639,7 +1637,7 @@ paths: $ref: "#/components/responses/Error" summary: Trigger validation workflow tags: - - Blockchain link (Beta) + - Blockchain link x-rate-limit-category: async x-lifecycle: state: ea @@ -1647,27 +1645,27 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.blockchainLinkBeta.triggerBlockchainLinkValidation(blockchainLinkBetaApiTriggerBlockchainLinkValidationRequest);" + \ = fireblocks.blockchainLink.triggerBlockchainLinkValidation(blockchainLinkApiTriggerBlockchainLinkValidationRequest);" name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response\ - \ = fireblocks.blockchainLinkBeta().triggerBlockchainLinkValidation(blockchainId,\ + \ = fireblocks.blockchainLink().triggerBlockchainLinkValidation(blockchainId,\ \ idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.blockchain_link_beta.trigger_blockchain_link_validation(blockchain_id,\ + code: "response = fireblocks.blockchain_link.trigger_blockchain_link_validation(blockchain_id,\ \ idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.blockchainLinkBeta.triggerBlockchainLinkValidation(blockchainLinkBetaApiTriggerBlockchainLinkValidationRequest);" + \ = fireblocks.blockchainLink.triggerBlockchainLinkValidation(blockchainLinkApiTriggerBlockchainLinkValidationRequest);" - lang: Java source: "CompletableFuture> response\ - \ = fireblocks.blockchainLinkBeta().triggerBlockchainLinkValidation(blockchainId,\ + \ = fireblocks.blockchainLink().triggerBlockchainLinkValidation(blockchainId,\ \ idempotencyKey);" - lang: Python - source: "response = fireblocks.blockchain_link_beta.trigger_blockchain_link_validation(blockchain_id,\ + source: "response = fireblocks.blockchain_link.trigger_blockchain_link_validation(blockchain_id,\ \ idempotency_key);" x-accepts: - application/json @@ -1690,7 +1688,7 @@ paths: $ref: "#/components/responses/Error" summary: Get tenant billing info tags: - - Blockchain link (Beta) + - Blockchain link x-rate-limit-category: read x-lifecycle: state: ea @@ -1698,24 +1696,24 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.blockchainLinkBeta.getBlockchainLinkBillingInfo();" + \ = fireblocks.blockchainLink.getBlockchainLinkBillingInfo();" name: Fireblocks SDK TypeScript example - language: java code: CompletableFuture> response = - fireblocks.blockchainLinkBeta().getBlockchainLinkBillingInfo(); + fireblocks.blockchainLink().getBlockchainLinkBillingInfo(); name: Fireblocks SDK Java example - language: python - code: response = fireblocks.blockchain_link_beta.get_blockchain_link_billing_info(); + code: response = fireblocks.blockchain_link.get_blockchain_link_billing_info(); name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.blockchainLinkBeta.getBlockchainLinkBillingInfo();" + \ = fireblocks.blockchainLink.getBlockchainLinkBillingInfo();" - lang: Java source: CompletableFuture> response = - fireblocks.blockchainLinkBeta().getBlockchainLinkBillingInfo(); + fireblocks.blockchainLink().getBlockchainLinkBillingInfo(); - lang: Python - source: response = fireblocks.blockchain_link_beta.get_blockchain_link_billing_info(); + source: response = fireblocks.blockchain_link.get_blockchain_link_billing_info(); x-accepts: - application/json /blockchain_link/blockchains/test_wallet_address: @@ -1738,7 +1736,7 @@ paths: $ref: "#/components/responses/Error" summary: Get the test wallet address tags: - - Blockchain link (Beta) + - Blockchain link x-rate-limit-category: read x-lifecycle: state: ea @@ -1746,24 +1744,24 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.blockchainLinkBeta.getBlockchainLinkTestWalletAddress();" + \ = fireblocks.blockchainLink.getBlockchainLinkTestWalletAddress();" name: Fireblocks SDK TypeScript example - language: java code: CompletableFuture> response - = fireblocks.blockchainLinkBeta().getBlockchainLinkTestWalletAddress(); + = fireblocks.blockchainLink().getBlockchainLinkTestWalletAddress(); name: Fireblocks SDK Java example - language: python - code: response = fireblocks.blockchain_link_beta.get_blockchain_link_test_wallet_address(); + code: response = fireblocks.blockchain_link.get_blockchain_link_test_wallet_address(); name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.blockchainLinkBeta.getBlockchainLinkTestWalletAddress();" + \ = fireblocks.blockchainLink.getBlockchainLinkTestWalletAddress();" - lang: Java source: CompletableFuture> response - = fireblocks.blockchainLinkBeta().getBlockchainLinkTestWalletAddress(); + = fireblocks.blockchainLink().getBlockchainLinkTestWalletAddress(); - lang: Python - source: response = fireblocks.blockchain_link_beta.get_blockchain_link_test_wallet_address(); + source: response = fireblocks.blockchain_link.get_blockchain_link_test_wallet_address(); x-accepts: - application/json /assets: @@ -2655,32 +2653,30 @@ paths: $ref: "#/components/responses/Error" summary: Make a Canton call tags: - - Canton (Beta) + - Canton x-rate-limit-category: write x-lifecycle: state: ea x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.cantonBeta.createCantonCall(cantonBetaApiCreateCantonCallRequest);" + code: "const response: Promise> = fireblocks.canton.createCantonCall(cantonApiCreateCantonCallRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.cantonBeta().createCantonCall(cantonCall,\ + code: "CompletableFuture> response = fireblocks.canton().createCantonCall(cantonCall,\ \ idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.canton_beta.create_canton_call(canton_call,\ - \ idempotency_key);" + code: "response = fireblocks.canton.create_canton_call(canton_call, idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript - source: "const response: Promise> = fireblocks.cantonBeta.createCantonCall(cantonBetaApiCreateCantonCallRequest);" + source: "const response: Promise> = fireblocks.canton.createCantonCall(cantonApiCreateCantonCallRequest);" - lang: Java - source: "CompletableFuture> response = fireblocks.cantonBeta().createCantonCall(cantonCall,\ + source: "CompletableFuture> response = fireblocks.canton().createCantonCall(cantonCall,\ \ idempotencyKey);" - lang: Python - source: "response = fireblocks.canton_beta.create_canton_call(canton_call,\ - \ idempotency_key);" + source: "response = fireblocks.canton.create_canton_call(canton_call, idempotency_key);" x-content-type: application/json x-accepts: - application/json @@ -2774,7 +2770,7 @@ paths: $ref: "#/components/responses/Error" summary: Answer an offer tags: - - Canton (Beta) + - Canton x-rate-limit-category: write x-lifecycle: state: ea @@ -2782,26 +2778,25 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.cantonBeta.respondToCantonOffer(cantonBetaApiRespondToCantonOfferRequest);" + \ = fireblocks.canton.respondToCantonOffer(cantonApiRespondToCantonOfferRequest);" name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response =\ - \ fireblocks.cantonBeta().respondToCantonOffer(offerResponse, offerId,\ - \ idempotencyKey);" + \ fireblocks.canton().respondToCantonOffer(offerResponse, offerId, idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.canton_beta.respond_to_canton_offer(offer_response,\ + code: "response = fireblocks.canton.respond_to_canton_offer(offer_response,\ \ offer_id, idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.cantonBeta.respondToCantonOffer(cantonBetaApiRespondToCantonOfferRequest);" + \ = fireblocks.canton.respondToCantonOffer(cantonApiRespondToCantonOfferRequest);" - lang: Java source: "CompletableFuture> response =\ - \ fireblocks.cantonBeta().respondToCantonOffer(offerResponse, offerId, idempotencyKey);" + \ fireblocks.canton().respondToCantonOffer(offerResponse, offerId, idempotencyKey);" - lang: Python - source: "response = fireblocks.canton_beta.respond_to_canton_offer(offer_response,\ + source: "response = fireblocks.canton.respond_to_canton_offer(offer_response,\ \ offer_id, idempotency_key);" x-content-type: application/json x-accepts: @@ -6164,7 +6159,7 @@ paths: $ref: "#/components/responses/Error" summary: Trigger a Compliance Orchestrator screening tags: - - Compliance Orchestrator (Beta) + - Compliance Orchestrator x-rate-limit-category: write x-lifecycle: state: ea @@ -6172,27 +6167,27 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.complianceOrchestratorBeta.triggerScreening(complianceOrchestratorBetaApiTriggerScreeningRequest);" + \ = fireblocks.complianceOrchestrator.triggerScreening(complianceOrchestratorApiTriggerScreeningRequest);" name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response\ - \ = fireblocks.complianceOrchestratorBeta().triggerScreening(triggerScreeningRequest,\ + \ = fireblocks.complianceOrchestrator().triggerScreening(triggerScreeningRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.compliance_orchestrator_beta.trigger_screening(trigger_screening_request,\ + code: "response = fireblocks.compliance_orchestrator.trigger_screening(trigger_screening_request,\ \ idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.complianceOrchestratorBeta.triggerScreening(complianceOrchestratorBetaApiTriggerScreeningRequest);" + \ = fireblocks.complianceOrchestrator.triggerScreening(complianceOrchestratorApiTriggerScreeningRequest);" - lang: Java source: "CompletableFuture> response\ - \ = fireblocks.complianceOrchestratorBeta().triggerScreening(triggerScreeningRequest,\ + \ = fireblocks.complianceOrchestrator().triggerScreening(triggerScreeningRequest,\ \ idempotencyKey);" - lang: Python - source: "response = fireblocks.compliance_orchestrator_beta.trigger_screening(trigger_screening_request,\ + source: "response = fireblocks.compliance_orchestrator.trigger_screening(trigger_screening_request,\ \ idempotency_key);" x-content-type: application/json x-accepts: @@ -6246,7 +6241,7 @@ paths: $ref: "#/components/responses/Error" summary: Get a Compliance Orchestrator screening's result tags: - - Compliance Orchestrator (Beta) + - Compliance Orchestrator x-rate-limit-category: read x-lifecycle: state: ea @@ -6254,24 +6249,24 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.complianceOrchestratorBeta.getScreeningResult(complianceOrchestratorBetaApiGetScreeningResultRequest);" + \ = fireblocks.complianceOrchestrator.getScreeningResult(complianceOrchestratorApiGetScreeningResultRequest);" name: Fireblocks SDK TypeScript example - language: java code: CompletableFuture> response - = fireblocks.complianceOrchestratorBeta().getScreeningResult(screeningId); + = fireblocks.complianceOrchestrator().getScreeningResult(screeningId); name: Fireblocks SDK Java example - language: python - code: response = fireblocks.compliance_orchestrator_beta.get_screening_result(screening_id); + code: response = fireblocks.compliance_orchestrator.get_screening_result(screening_id); name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.complianceOrchestratorBeta.getScreeningResult(complianceOrchestratorBetaApiGetScreeningResultRequest);" + \ = fireblocks.complianceOrchestrator.getScreeningResult(complianceOrchestratorApiGetScreeningResultRequest);" - lang: Java source: CompletableFuture> response - = fireblocks.complianceOrchestratorBeta().getScreeningResult(screeningId); + = fireblocks.complianceOrchestrator().getScreeningResult(screeningId); - lang: Python - source: response = fireblocks.compliance_orchestrator_beta.get_screening_result(screening_id); + source: response = fireblocks.compliance_orchestrator.get_screening_result(screening_id); x-accepts: - application/json /compliance/orchestrator/workflows/{workflowId}: @@ -6322,7 +6317,7 @@ paths: $ref: "#/components/responses/Error" summary: Get a Compliance Orchestrator workflow tags: - - Compliance Orchestrator (Beta) + - Compliance Orchestrator x-rate-limit-category: read x-lifecycle: state: ea @@ -6330,22 +6325,22 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.complianceOrchestratorBeta.getWorkflow(complianceOrchestratorBetaApiGetWorkflowRequest);" + \ = fireblocks.complianceOrchestrator.getWorkflow(complianceOrchestratorApiGetWorkflowRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.complianceOrchestratorBeta().getWorkflow(workflowId); + code: CompletableFuture> response = fireblocks.complianceOrchestrator().getWorkflow(workflowId); name: Fireblocks SDK Java example - language: python - code: response = fireblocks.compliance_orchestrator_beta.get_workflow(workflow_id); + code: response = fireblocks.compliance_orchestrator.get_workflow(workflow_id); name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.complianceOrchestratorBeta.getWorkflow(complianceOrchestratorBetaApiGetWorkflowRequest);" + \ = fireblocks.complianceOrchestrator.getWorkflow(complianceOrchestratorApiGetWorkflowRequest);" - lang: Java - source: CompletableFuture> response = fireblocks.complianceOrchestratorBeta().getWorkflow(workflowId); + source: CompletableFuture> response = fireblocks.complianceOrchestrator().getWorkflow(workflowId); - lang: Python - source: response = fireblocks.compliance_orchestrator_beta.get_workflow(workflow_id); + source: response = fireblocks.compliance_orchestrator.get_workflow(workflow_id); x-accepts: - application/json /compliance/orchestrator/workflows/{workflowId}/status: @@ -6414,7 +6409,7 @@ paths: $ref: "#/components/responses/Error" summary: Update a Compliance Orchestrator workflow's status tags: - - Compliance Orchestrator (Beta) + - Compliance Orchestrator x-rate-limit-category: write x-lifecycle: state: ea @@ -6422,27 +6417,27 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.complianceOrchestratorBeta.updateWorkflowStatus(complianceOrchestratorBetaApiUpdateWorkflowStatusRequest);" + \ = fireblocks.complianceOrchestrator.updateWorkflowStatus(complianceOrchestratorApiUpdateWorkflowStatusRequest);" name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response\ - \ = fireblocks.complianceOrchestratorBeta().updateWorkflowStatus(updateWorkflowStatusRequest,\ + \ = fireblocks.complianceOrchestrator().updateWorkflowStatus(updateWorkflowStatusRequest,\ \ workflowId, idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.compliance_orchestrator_beta.update_workflow_status(update_workflow_status_request,\ + code: "response = fireblocks.compliance_orchestrator.update_workflow_status(update_workflow_status_request,\ \ workflow_id, idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.complianceOrchestratorBeta.updateWorkflowStatus(complianceOrchestratorBetaApiUpdateWorkflowStatusRequest);" + \ = fireblocks.complianceOrchestrator.updateWorkflowStatus(complianceOrchestratorApiUpdateWorkflowStatusRequest);" - lang: Java source: "CompletableFuture> response\ - \ = fireblocks.complianceOrchestratorBeta().updateWorkflowStatus(updateWorkflowStatusRequest,\ + \ = fireblocks.complianceOrchestrator().updateWorkflowStatus(updateWorkflowStatusRequest,\ \ workflowId, idempotencyKey);" - lang: Python - source: "response = fireblocks.compliance_orchestrator_beta.update_workflow_status(update_workflow_status_request,\ + source: "response = fireblocks.compliance_orchestrator.update_workflow_status(update_workflow_status_request,\ \ workflow_id, idempotency_key);" x-content-type: application/json x-accepts: @@ -11716,7 +11711,6 @@ paths: summary: Get the public key of an asset tags: - Embedded Wallets - x-internal: true x-rate-limit-category: read x-lifecycle: state: deprecated @@ -11724,16 +11718,34 @@ paths: sunset_at: 2026-12-31T00:00:00Z x-readme: code-samples: - - language: python - code: "pubKey = fireblocks.NCW.get_public_key_info_by_account_asset(wallet_id,\ - \ asset_id, account_id, change, address_index, compressed)" - name: Fireblocks SDK Python example - language: javascript code: "const publicKeyInfoByAccountAssetArgs = {\n assetId: 'ETH',\n accountId:\ \ 0,\n change: 0,\n addressIndex: 0,\n compressed: true\n}; \ \ \nconst pubKey = await fireblocks.NCW.getPublicKeyInfoByAccountAsset(walletId,\ \ publicKeyInfoByAccountAssetArgs);\n" name: Fireblocks SDK Javascript example + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.embeddedWallets.getPublicKeyInfoForAddressNcw(embeddedWalletsApiGetPublicKeyInfoForAddressNcwRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response = fireblocks.embeddedWallets().getPublicKeyInfoForAddressNcw(walletId,\ + \ accountId, assetId, change, addressIndex, xEndUserWalletId, compressed);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.embedded_wallets.get_public_key_info_for_address_ncw(wallet_id,\ + \ account_id, asset_id, change, address_index, x_end_user_wallet_id, compressed);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.embeddedWallets.getPublicKeyInfoForAddressNcw(embeddedWalletsApiGetPublicKeyInfoForAddressNcwRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.embeddedWallets().getPublicKeyInfoForAddressNcw(walletId,\ + \ accountId, assetId, change, addressIndex, xEndUserWalletId, compressed);" + - lang: Python + source: "response = fireblocks.embedded_wallets.get_public_key_info_for_address_ncw(wallet_id,\ + \ account_id, asset_id, change, address_index, x_end_user_wallet_id, compressed);" x-accepts: - application/json /ncw/wallets: @@ -15172,7 +15184,7 @@ paths: description: | Starts a new conversation with Genie, the Fireblocks AI assistant. Returns a `sessionId` — pass it when sending messages, and reuse it across calls to keep one continuous conversation. - **Note:** This endpoint is currently in beta and might be subject to changes. + **Note:** This endpoint is currently in early availability and might be subject to changes. operationId: createGenieSession parameters: - description: "A unique identifier for the request. If the request is sent\ @@ -15200,7 +15212,7 @@ paths: $ref: "#/components/responses/Error" summary: Create a Genie session tags: - - Genie (Beta) + - Genie x-rate-limit-category: write x-lifecycle: state: ea @@ -15208,24 +15220,24 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.genieBeta.createGenieSession(genieBetaApiCreateGenieSessionRequest);" + \ = fireblocks.genie.createGenieSession(genieApiCreateGenieSessionRequest);" name: Fireblocks SDK TypeScript example - language: java code: CompletableFuture> response - = fireblocks.genieBeta().createGenieSession(idempotencyKey); + = fireblocks.genie().createGenieSession(idempotencyKey); name: Fireblocks SDK Java example - language: python - code: response = fireblocks.genie_beta.create_genie_session(idempotency_key); + code: response = fireblocks.genie.create_genie_session(idempotency_key); name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.genieBeta.createGenieSession(genieBetaApiCreateGenieSessionRequest);" + \ = fireblocks.genie.createGenieSession(genieApiCreateGenieSessionRequest);" - lang: Java source: CompletableFuture> response - = fireblocks.genieBeta().createGenieSession(idempotencyKey); + = fireblocks.genie().createGenieSession(idempotencyKey); - lang: Python - source: response = fireblocks.genie_beta.create_genie_session(idempotency_key); + source: response = fireblocks.genie.create_genie_session(idempotency_key); x-accepts: - application/json /genie/sessions/{sessionId}/messages: @@ -15233,7 +15245,7 @@ paths: description: | Sends a question to Genie and returns a single answer. Reuse the `sessionId` from the original session on follow-up messages to continue the conversation with prior context. - **Note:** This endpoint is currently in beta and might be subject to changes. + **Note:** This endpoint is currently in early availability and might be subject to changes. operationId: sendGenieMessage parameters: - description: The Genie session ID returned from `POST /genie/sessions`. @@ -15276,7 +15288,7 @@ paths: $ref: "#/components/responses/Error" summary: Send a message to a Genie session tags: - - Genie (Beta) + - Genie x-rate-limit-category: write x-lifecycle: state: ea @@ -15284,27 +15296,27 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.genieBeta.sendGenieMessage(genieBetaApiSendGenieMessageRequest);" + \ = fireblocks.genie.sendGenieMessage(genieApiSendGenieMessageRequest);" name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response\ - \ = fireblocks.genieBeta().sendGenieMessage(genieSendMessageRequest, sessionId,\ + \ = fireblocks.genie().sendGenieMessage(genieSendMessageRequest, sessionId,\ \ idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.genie_beta.send_genie_message(genie_send_message_request,\ + code: "response = fireblocks.genie.send_genie_message(genie_send_message_request,\ \ session_id, idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.genieBeta.sendGenieMessage(genieBetaApiSendGenieMessageRequest);" + \ = fireblocks.genie.sendGenieMessage(genieApiSendGenieMessageRequest);" - lang: Java source: "CompletableFuture> response\ - \ = fireblocks.genieBeta().sendGenieMessage(genieSendMessageRequest, sessionId,\ + \ = fireblocks.genie().sendGenieMessage(genieSendMessageRequest, sessionId,\ \ idempotencyKey);" - lang: Python - source: "response = fireblocks.genie_beta.send_genie_message(genie_send_message_request,\ + source: "response = fireblocks.genie.send_genie_message(genie_send_message_request,\ \ session_id, idempotency_key);" x-content-type: application/json x-accepts: @@ -16803,7 +16815,6 @@ paths: state: deprecated deprecated_at: 2026-11-01T00:00:00Z sunset_at: 2027-05-01T00:00:00Z - migration_guide: https://developers.fireblocks.com/reference/revokevalidationkey replacement_endpoint: "/v1/key_link/validation_keys/{keyId}/revoke" x-readme: code-samples: @@ -20218,7 +20229,7 @@ paths: description: Configuration not found for tenant summary: Returns current OTA status tags: - - OTA (Beta) + - OTA x-rate-limit-category: write x-lifecycle: state: ga @@ -20226,22 +20237,22 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.oTABeta.getOtaStatus();" + \ = fireblocks.oTA.getOtaStatus();" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.oTABeta().getOtaStatus(); + code: CompletableFuture> response = fireblocks.oTA().getOtaStatus(); name: Fireblocks SDK Java example - language: python - code: response = fireblocks.o_t_a_beta.get_ota_status(); + code: response = fireblocks.o_t_a.get_ota_status(); name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.oTABeta.getOtaStatus();" + \ = fireblocks.oTA.getOtaStatus();" - lang: Java - source: CompletableFuture> response = fireblocks.oTABeta().getOtaStatus(); + source: CompletableFuture> response = fireblocks.oTA().getOtaStatus(); - lang: Python - source: response = fireblocks.o_t_a_beta.get_ota_status(); + source: response = fireblocks.o_t_a.get_ota_status(); x-accepts: - application/json put: @@ -20285,7 +20296,7 @@ paths: description: Internal server error summary: Enable or disable transactions to OTA tags: - - OTA (Beta) + - OTA x-rate-limit-category: query x-lifecycle: state: ga @@ -20293,25 +20304,25 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.oTABeta.setOtaStatus(oTABetaApiSetOtaStatusRequest);" + \ = fireblocks.oTA.setOtaStatus(oTAApiSetOtaStatusRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.oTABeta().setOtaStatus(setOtaStatusRequest,\ + code: "CompletableFuture> response = fireblocks.oTA().setOtaStatus(setOtaStatusRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.o_t_a_beta.set_ota_status(set_ota_status_request,\ + code: "response = fireblocks.o_t_a.set_ota_status(set_ota_status_request,\ \ idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.oTABeta.setOtaStatus(oTABetaApiSetOtaStatusRequest);" + \ = fireblocks.oTA.setOtaStatus(oTAApiSetOtaStatusRequest);" - lang: Java - source: "CompletableFuture> response = fireblocks.oTABeta().setOtaStatus(setOtaStatusRequest,\ + source: "CompletableFuture> response = fireblocks.oTA().setOtaStatus(setOtaStatusRequest,\ \ idempotencyKey);" - lang: Python - source: "response = fireblocks.o_t_a_beta.set_ota_status(set_ota_status_request,\ + source: "response = fireblocks.o_t_a.set_ota_status(set_ota_status_request,\ \ idempotency_key);" x-content-type: application/json x-accepts: @@ -20371,6 +20382,32 @@ paths: state: deprecated deprecated_at: 2026-01-11T00:00:00Z sunset_at: 2027-01-11T00:00:00Z + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.paymentsFlows.createFlowConfiguration(paymentsFlowsApiCreateFlowConfigurationRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response =\ + \ fireblocks.paymentsFlows().createFlowConfiguration(createWorkflowConfigurationRequest,\ + \ idempotencyKey);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.payments_flows.create_flow_configuration(create_workflow_configuration_request,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.paymentsFlows.createFlowConfiguration(paymentsFlowsApiCreateFlowConfigurationRequest);" + - lang: Java + source: "CompletableFuture> response =\ + \ fireblocks.paymentsFlows().createFlowConfiguration(createWorkflowConfigurationRequest,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.payments_flows.create_flow_configuration(create_workflow_configuration_request,\ + \ idempotency_key);" x-content-type: application/json x-accepts: - application/json @@ -20416,6 +20453,28 @@ paths: state: deprecated deprecated_at: 2026-01-11T00:00:00Z sunset_at: 2027-01-11T00:00:00Z + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.paymentsFlows.deleteFlowConfiguration(paymentsFlowsApiDeleteFlowConfigurationRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response = + fireblocks.paymentsFlows().deleteFlowConfiguration(configId); + name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.payments_flows.delete_flow_configuration(config_id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.paymentsFlows.deleteFlowConfiguration(paymentsFlowsApiDeleteFlowConfigurationRequest);" + - lang: Java + source: CompletableFuture> response = + fireblocks.paymentsFlows().deleteFlowConfiguration(configId); + - lang: Python + source: response = fireblocks.payments_flows.delete_flow_configuration(config_id); x-accepts: - application/json get: @@ -20460,6 +20519,26 @@ paths: state: deprecated deprecated_at: 2026-01-11T00:00:00Z sunset_at: 2027-01-11T00:00:00Z + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.paymentsFlows.getFlowConfiguration(paymentsFlowsApiGetFlowConfigurationRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response = fireblocks.paymentsFlows().getFlowConfiguration(configId); + name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.payments_flows.get_flow_configuration(config_id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.paymentsFlows.getFlowConfiguration(paymentsFlowsApiGetFlowConfigurationRequest);" + - lang: Java + source: CompletableFuture> response = fireblocks.paymentsFlows().getFlowConfiguration(configId); + - lang: Python + source: response = fireblocks.payments_flows.get_flow_configuration(config_id); x-accepts: - application/json /payments/workflow_execution: @@ -20520,6 +20599,30 @@ paths: state: deprecated deprecated_at: 2026-01-11T00:00:00Z sunset_at: 2027-01-11T00:00:00Z + x-readme: + code-samples: + - language: typescript + code: "const response: Promise> =\ + \ fireblocks.paymentsFlows.createFlowExecution(paymentsFlowsApiCreateFlowExecutionRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response = fireblocks.paymentsFlows().createFlowExecution(createWorkflowExecutionRequest,\ + \ idempotencyKey);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.payments_flows.create_flow_execution(create_workflow_execution_request,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> =\ + \ fireblocks.paymentsFlows.createFlowExecution(paymentsFlowsApiCreateFlowExecutionRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.paymentsFlows().createFlowExecution(createWorkflowExecutionRequest,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.payments_flows.create_flow_execution(create_workflow_execution_request,\ + \ idempotency_key);" x-content-type: application/json x-accepts: - application/json @@ -20566,6 +20669,26 @@ paths: state: deprecated deprecated_at: 2026-01-11T00:00:00Z sunset_at: 2027-01-11T00:00:00Z + x-readme: + code-samples: + - language: typescript + code: "const response: Promise> =\ + \ fireblocks.paymentsFlows.getFlowExecution(paymentsFlowsApiGetFlowExecutionRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response = fireblocks.paymentsFlows().getFlowExecution(workflowExecutionId); + name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.payments_flows.get_flow_execution(workflow_execution_id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> =\ + \ fireblocks.paymentsFlows.getFlowExecution(paymentsFlowsApiGetFlowExecutionRequest);" + - lang: Java + source: CompletableFuture> response = fireblocks.paymentsFlows().getFlowExecution(workflowExecutionId); + - lang: Python + source: response = fireblocks.payments_flows.get_flow_execution(workflow_execution_id); x-accepts: - application/json /payments/workflow_execution/{workflowExecutionId}/actions/execute: @@ -20625,6 +20748,30 @@ paths: state: deprecated deprecated_at: 2026-01-11T00:00:00Z sunset_at: 2027-01-11T00:00:00Z + x-readme: + code-samples: + - language: typescript + code: "const response: Promise> =\ + \ fireblocks.paymentsFlows.launchFlowExecution(paymentsFlowsApiLaunchFlowExecutionRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response = fireblocks.paymentsFlows().launchFlowExecution(workflowExecutionId,\ + \ idempotencyKey);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.payments_flows.launch_flow_execution(workflow_execution_id,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> =\ + \ fireblocks.paymentsFlows.launchFlowExecution(paymentsFlowsApiLaunchFlowExecutionRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.paymentsFlows().launchFlowExecution(workflowExecutionId,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.payments_flows.launch_flow_execution(workflow_execution_id,\ + \ idempotency_key);" x-accepts: - application/json /payments/payout: @@ -20635,9 +20782,6 @@ paths: Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts. - These endpoints are currently in beta and might be subject to - changes. - If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com. @@ -20789,11 +20933,10 @@ paths: deprecated: true description: "**Note:** The reference content in this section documents the\ \ Payments Engine endpoint. The Payments Engine endpoints include APIs available\ - \ only for customers with Payments Engine enabled on their accounts. \nThese\ - \ endpoints are currently in beta and might be subject to changes.\nIf you\ - \ want to learn more about Fireblocks Payments Engine, please contact your\ - \ Fireblocks Customer Success Manager or email CSM@fireblocks.com. \nEndpoint\ - \ Permission: Admin, Non-Signing Admin.\n" + \ only for customers with Payments Engine enabled on their accounts. \nIf\ + \ you want to learn more about Fireblocks Payments Engine, please contact\ + \ your Fireblocks Customer Success Manager or email CSM@fireblocks.com. \n\ + Endpoint Permission: Admin, Non-Signing Admin.\n" operationId: getPayout parameters: - description: the payout id received from the creation of the payout instruction @@ -20907,9 +21050,6 @@ paths: Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts. - These endpoints are currently in beta and might be subject to - changes. - If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com. @@ -21292,6 +21432,71 @@ paths: x-content-type: application/json x-accepts: - application/json + /policy/draft/read_only: + get: + description: "Returns the active draft and its validation for a specific policy\ + \ type, without taking the edit lock. If no draft exists, the active policy\ + \ is returned with a null draftId." + operationId: getDraftReadOnly + parameters: + - description: "The policy type(s) to retrieve. Can be a single type or multiple\ + \ types by repeating the parameter (e.g., ?policyType=TRANSFER&policyType=MINT)." + explode: true + in: query + name: policyType + required: true + schema: + $ref: "#/components/schemas/PolicyType" + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ReadOnlyDraftReviewAndValidationResponse" + description: A draft validation response object + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Get the current draft without starting an edit session + tags: + - Policy Editor V2 + x-rate-limit-category: read + x-lifecycle: + state: ea + x-readme: + code-samples: + - language: javascript + code: | + // Single policy type + const draft = await fireblocks.getDraftReadOnly({policyType: "TRANSFER"}); + // Multiple policy types + const draft = await fireblocks.getDraftReadOnly({policyType: ["TRANSFER", "MINT"]}); + name: Fireblocks SDK Javascript example + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.policyEditorV2.getDraftReadOnly(policyEditorV2ApiGetDraftReadOnlyRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> + response = fireblocks.policyEditorV2().getDraftReadOnly(policyType); + name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.policy_editor_v2.get_draft_read_only(policy_type); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.policyEditorV2.getDraftReadOnly(policyEditorV2ApiGetDraftReadOnlyRequest);" + - lang: Java + source: CompletableFuture> + response = fireblocks.policyEditorV2().getDraftReadOnly(policyType); + - lang: Python + source: response = fireblocks.policy_editor_v2.get_draft_read_only(policy_type); + x-accepts: + - application/json /policy/rules/quota: post: description: | @@ -21377,7 +21582,7 @@ paths: $ref: "#/components/responses/Error" summary: Calculate the AOT quota for a policy rule tags: - - Policy Editor V2 (Beta) + - Policy Editor V2 x-rate-limit-category: query x-lifecycle: state: ea @@ -21385,27 +21590,27 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.policyEditorV2Beta.getPolicyRuleQuota(policyEditorV2BetaApiGetPolicyRuleQuotaRequest);" + \ = fireblocks.policyEditorV2.getPolicyRuleQuota(policyEditorV2ApiGetPolicyRuleQuotaRequest);" name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response\ - \ = fireblocks.policyEditorV2Beta().getPolicyRuleQuota(policyRuleQuotaRequest,\ + \ = fireblocks.policyEditorV2().getPolicyRuleQuota(policyRuleQuotaRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.policy_editor_v2_beta.get_policy_rule_quota(policy_rule_quota_request,\ + code: "response = fireblocks.policy_editor_v2.get_policy_rule_quota(policy_rule_quota_request,\ \ idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.policyEditorV2Beta.getPolicyRuleQuota(policyEditorV2BetaApiGetPolicyRuleQuotaRequest);" + \ = fireblocks.policyEditorV2.getPolicyRuleQuota(policyEditorV2ApiGetPolicyRuleQuotaRequest);" - lang: Java source: "CompletableFuture> response\ - \ = fireblocks.policyEditorV2Beta().getPolicyRuleQuota(policyRuleQuotaRequest,\ + \ = fireblocks.policyEditorV2().getPolicyRuleQuota(policyRuleQuotaRequest,\ \ idempotencyKey);" - lang: Python - source: "response = fireblocks.policy_editor_v2_beta.get_policy_rule_quota(policy_rule_quota_request,\ + source: "response = fireblocks.policy_editor_v2.get_policy_rule_quota(policy_rule_quota_request,\ \ idempotency_key);" x-content-type: application/json x-accepts: @@ -21418,8 +21623,6 @@ paths: **Note:** Download URLs are not included in list responses. Call `GET /v1/reports/{reportId}` to obtain a fresh signed download URL for a specific completed report. - **Note:** These endpoints are currently in beta and might be subject to changes. - Endpoint Permission: Viewer and above. operationId: listReports parameters: @@ -21502,7 +21705,7 @@ paths: $ref: "#/components/responses/Error" summary: List reports tags: - - Reports (Beta) + - Reports x-rate-limit-category: query x-lifecycle: state: ga @@ -21510,25 +21713,25 @@ paths: code-samples: - language: typescript code: "const response: Promise> =\ - \ fireblocks.reportsBeta.listReports(reportsBetaApiListReportsRequest);" + \ fireblocks.reports.listReports(reportsApiListReportsRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.reportsBeta().listReports(pageCursor,\ + code: "CompletableFuture> response = fireblocks.reports().listReports(pageCursor,\ \ pageSize, sortBy, order, status, reportType);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.reports_beta.list_reports(page_cursor, page_size,\ + code: "response = fireblocks.reports.list_reports(page_cursor, page_size,\ \ sort_by, order, status, report_type);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise> =\ - \ fireblocks.reportsBeta.listReports(reportsBetaApiListReportsRequest);" + \ fireblocks.reports.listReports(reportsApiListReportsRequest);" - lang: Java - source: "CompletableFuture> response = fireblocks.reportsBeta().listReports(pageCursor,\ + source: "CompletableFuture> response = fireblocks.reports().listReports(pageCursor,\ \ pageSize, sortBy, order, status, reportType);" - lang: Python - source: "response = fireblocks.reports_beta.list_reports(page_cursor, page_size,\ + source: "response = fireblocks.reports.list_reports(page_cursor, page_size,\ \ sort_by, order, status, report_type);" x-accepts: - application/json @@ -21538,8 +21741,6 @@ paths: Poll `GET /v1/reports/{reportId}` to check status. When `status` is `COMPLETED`, the poll response includes a fresh pre-signed download URL in `links.downloadUrl`. - **Note:** These endpoints are currently in beta and might be subject to changes. - Endpoint Permission: Viewer and above. operationId: createReport parameters: @@ -21583,7 +21784,7 @@ paths: $ref: "#/components/responses/Error" summary: Create a report tags: - - Reports (Beta) + - Reports x-rate-limit-category: report x-lifecycle: state: ga @@ -21591,25 +21792,25 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.reportsBeta.createReport(reportsBetaApiCreateReportRequest);" + \ = fireblocks.reports.createReport(reportsApiCreateReportRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.reportsBeta().createReport(createReportRequest,\ + code: "CompletableFuture> response = fireblocks.reports().createReport(createReportRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.reports_beta.create_report(create_report_request,\ + code: "response = fireblocks.reports.create_report(create_report_request,\ \ idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.reportsBeta.createReport(reportsBetaApiCreateReportRequest);" + \ = fireblocks.reports.createReport(reportsApiCreateReportRequest);" - lang: Java - source: "CompletableFuture> response = fireblocks.reportsBeta().createReport(createReportRequest,\ + source: "CompletableFuture> response = fireblocks.reports().createReport(createReportRequest,\ \ idempotencyKey);" - lang: Python - source: "response = fireblocks.reports_beta.create_report(create_report_request,\ + source: "response = fireblocks.reports.create_report(create_report_request,\ \ idempotency_key);" x-content-type: application/json x-accepts: @@ -21624,8 +21825,6 @@ paths: When `status` is `FAILED`, the `failedAt` timestamp indicates when the failure occurred. - **Note:** These endpoints are currently in beta and might be subject to changes. - Endpoint Permission: Viewer and above. operationId: getReport parameters: @@ -21652,7 +21851,7 @@ paths: $ref: "#/components/responses/Error" summary: Get report status tags: - - Reports (Beta) + - Reports x-rate-limit-category: read x-lifecycle: state: ga @@ -21660,22 +21859,22 @@ paths: code-samples: - language: typescript code: "const response: Promise> =\ - \ fireblocks.reportsBeta.getReport(reportsBetaApiGetReportRequest);" + \ fireblocks.reports.getReport(reportsApiGetReportRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.reportsBeta().getReport(reportId); + code: CompletableFuture> response = fireblocks.reports().getReport(reportId); name: Fireblocks SDK Java example - language: python - code: response = fireblocks.reports_beta.get_report(report_id); + code: response = fireblocks.reports.get_report(report_id); name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise> =\ - \ fireblocks.reportsBeta.getReport(reportsBetaApiGetReportRequest);" + \ fireblocks.reports.getReport(reportsApiGetReportRequest);" - lang: Java - source: CompletableFuture> response = fireblocks.reportsBeta().getReport(reportId); + source: CompletableFuture> response = fireblocks.reports().getReport(reportId); - lang: Python - source: response = fireblocks.reports_beta.get_report(report_id); + source: response = fireblocks.reports.get_report(report_id); x-accepts: - application/json /management/users/{id}/reset_device: @@ -23910,12 +24109,12 @@ paths: /staking/chains/{chainDescriptor}/claim_rewards: post: description: "Claims available staking rewards for the specified chain and vault.\ - \ Supported chains: Solana and Polygon (POL/Matic). Behavior depends on protocol\ - \ reward distribution." + \ Supported chains: Solana, Polygon (POL/Matic) and Celestia. Behavior depends\ + \ on protocol reward distribution." operationId: claimRewards parameters: - description: "Protocol identifier for the claim rewards staking operation\ - \ (e.g., POL/MATIC/SOL)." + \ (e.g., POL/MATIC/SOL/CELESTIA)." example: SOL explode: false in: path @@ -23928,6 +24127,7 @@ paths: - MATIC - POL - POL_TEST + - CELESTIA type: string style: simple - description: "A unique identifier for the request. If the request is sent\ @@ -24039,7 +24239,6 @@ paths: description: |- Consolidates the source staking position into the destination, merging the balance into the destination and closing the source position once complete. Both positions must be from the same vault account (i.e. same withdrawal credentials). On chain, this translates into a consolidation transaction, where the source validator is consolidated into the destination validator. Supported chains: Ethereum (ETH) only. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor. - **Note:** This endpoint is currently in beta and might be subject to changes. operationId: consolidate parameters: - description: "Protocol identifier for the staking operation (e.g., ETH)." @@ -26202,7 +26401,7 @@ paths: $ref: "#/components/responses/Error" summary: Create a Tempo transfer transaction tags: - - Tempo (Beta) + - Tempo x-rate-limit-category: async x-lifecycle: state: ea @@ -26210,27 +26409,26 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.tempoBeta.createTempoTransfer(tempoBetaApiCreateTempoTransferRequest);" + \ = fireblocks.tempo.createTempoTransfer(tempoApiCreateTempoTransferRequest);" name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response\ - \ = fireblocks.tempoBeta().createTempoTransfer(createTempoTransferRequest,\ + \ = fireblocks.tempo().createTempoTransfer(createTempoTransferRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.tempo_beta.create_tempo_transfer(create_tempo_transfer_request,\ + code: "response = fireblocks.tempo.create_tempo_transfer(create_tempo_transfer_request,\ \ idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.tempoBeta.createTempoTransfer(tempoBetaApiCreateTempoTransferRequest);" + \ = fireblocks.tempo.createTempoTransfer(tempoApiCreateTempoTransferRequest);" - lang: Java source: "CompletableFuture> response\ - \ = fireblocks.tempoBeta().createTempoTransfer(createTempoTransferRequest,\ - \ idempotencyKey);" + \ = fireblocks.tempo().createTempoTransfer(createTempoTransferRequest, idempotencyKey);" - lang: Python - source: "response = fireblocks.tempo_beta.create_tempo_transfer(create_tempo_transfer_request,\ + source: "response = fireblocks.tempo.create_tempo_transfer(create_tempo_transfer_request,\ \ idempotency_key);" x-content-type: application/json x-accepts: @@ -32114,13 +32312,38 @@ paths: summary: Validate Travel Rule Transaction tags: - Travel Rule - x-internal: true x-rate-limit-category: write x-lifecycle: state: deprecated deprecated_at: 2026-11-01T00:00:00Z sunset_at: 2027-05-01T00:00:00Z replacement_endpoint: /v1/screening/travel_rule/transaction/validate/full + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.travelRule.validateTravelRuleTransaction(travelRuleApiValidateTravelRuleTransactionRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture>\ + \ response = fireblocks.travelRule().validateTravelRuleTransaction(travelRuleValidateTransactionRequest,\ + \ notation, idempotencyKey);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.travel_rule.validate_travel_rule_transaction(travel_rule_validate_transaction_request,\ + \ notation, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.travelRule.validateTravelRuleTransaction(travelRuleApiValidateTravelRuleTransactionRequest);" + - lang: Java + source: "CompletableFuture>\ + \ response = fireblocks.travelRule().validateTravelRuleTransaction(travelRuleValidateTransactionRequest,\ + \ notation, idempotencyKey);" + - lang: Python + source: "response = fireblocks.travel_rule.validate_travel_rule_transaction(travel_rule_validate_transaction_request,\ + \ notation, idempotency_key);" x-content-type: application/json x-accepts: - application/json @@ -34714,7 +34937,7 @@ paths: $ref: "#/components/responses/Error" summary: List user groups tags: - - User groups (Beta) + - User groups x-rate-limit-category: query x-lifecycle: state: ga @@ -34722,24 +34945,24 @@ paths: code-samples: - language: typescript code: "const response: Promise> =\ - \ fireblocks.userGroupsBeta.getUserGroups();" + \ fireblocks.userGroups.getUserGroups();" name: Fireblocks SDK TypeScript example - language: java code: CompletableFuture>> response = - fireblocks.userGroupsBeta().getUserGroups(); + fireblocks.userGroups().getUserGroups(); name: Fireblocks SDK Java example - language: python - code: response = fireblocks.user_groups_beta.get_user_groups(); + code: response = fireblocks.user_groups.get_user_groups(); name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise> =\ - \ fireblocks.userGroupsBeta.getUserGroups();" + \ fireblocks.userGroups.getUserGroups();" - lang: Java source: CompletableFuture>> response = - fireblocks.userGroupsBeta().getUserGroups(); + fireblocks.userGroups().getUserGroups(); - lang: Python - source: response = fireblocks.user_groups_beta.get_user_groups(); + source: response = fireblocks.user_groups.get_user_groups(); x-accepts: - application/json post: @@ -34779,7 +35002,7 @@ paths: $ref: "#/components/responses/Error" summary: Create user group tags: - - User groups (Beta) + - User groups x-rate-limit-category: write x-lifecycle: state: ga @@ -34787,27 +35010,25 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.userGroupsBeta.createUserGroup(userGroupsBetaApiCreateUserGroupRequest);" + \ = fireblocks.userGroups.createUserGroup(userGroupsApiCreateUserGroupRequest);" name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response\ - \ = fireblocks.userGroupsBeta().createUserGroup(userGroupCreateRequest,\ - \ idempotencyKey);" + \ = fireblocks.userGroups().createUserGroup(userGroupCreateRequest, idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.user_groups_beta.create_user_group(user_group_create_request,\ + code: "response = fireblocks.user_groups.create_user_group(user_group_create_request,\ \ idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.userGroupsBeta.createUserGroup(userGroupsBetaApiCreateUserGroupRequest);" + \ = fireblocks.userGroups.createUserGroup(userGroupsApiCreateUserGroupRequest);" - lang: Java source: "CompletableFuture> response\ - \ = fireblocks.userGroupsBeta().createUserGroup(userGroupCreateRequest,\ - \ idempotencyKey);" + \ = fireblocks.userGroups().createUserGroup(userGroupCreateRequest, idempotencyKey);" - lang: Python - source: "response = fireblocks.user_groups_beta.create_user_group(user_group_create_request,\ + source: "response = fireblocks.user_groups.create_user_group(user_group_create_request,\ \ idempotency_key);" x-content-type: application/json x-accepts: @@ -34818,7 +35039,6 @@ paths: Delete a user group by ID. **Note**: - - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. operationId: deleteUserGroup parameters: @@ -34840,28 +35060,28 @@ paths: $ref: "#/components/responses/Error" summary: Delete user group tags: - - User groups (Beta) + - User groups x-rate-limit-category: write x-lifecycle: state: ga x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.userGroupsBeta.deleteUserGroup(userGroupsBetaApiDeleteUserGroupRequest);" + code: "const response: Promise> = fireblocks.userGroups.deleteUserGroup(userGroupsApiDeleteUserGroupRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.userGroupsBeta().deleteUserGroup(groupId); + code: CompletableFuture> response = fireblocks.userGroups().deleteUserGroup(groupId); name: Fireblocks SDK Java example - language: python - code: response = fireblocks.user_groups_beta.delete_user_group(group_id); + code: response = fireblocks.user_groups.delete_user_group(group_id); name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript - source: "const response: Promise> = fireblocks.userGroupsBeta.deleteUserGroup(userGroupsBetaApiDeleteUserGroupRequest);" + source: "const response: Promise> = fireblocks.userGroups.deleteUserGroup(userGroupsApiDeleteUserGroupRequest);" - lang: Java - source: CompletableFuture> response = fireblocks.userGroupsBeta().deleteUserGroup(groupId); + source: CompletableFuture> response = fireblocks.userGroups().deleteUserGroup(groupId); - lang: Python - source: response = fireblocks.user_groups_beta.delete_user_group(group_id); + source: response = fireblocks.user_groups.delete_user_group(group_id); x-accepts: - application/json get: @@ -34869,7 +35089,6 @@ paths: Get a user group by ID. **Note**: - - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. operationId: getUserGroup parameters: @@ -34895,7 +35114,7 @@ paths: $ref: "#/components/responses/Error" summary: Get user group tags: - - User groups (Beta) + - User groups x-rate-limit-category: read x-lifecycle: state: ga @@ -34903,22 +35122,22 @@ paths: code-samples: - language: typescript code: "const response: Promise> =\ - \ fireblocks.userGroupsBeta.getUserGroup(userGroupsBetaApiGetUserGroupRequest);" + \ fireblocks.userGroups.getUserGroup(userGroupsApiGetUserGroupRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.userGroupsBeta().getUserGroup(groupId); + code: CompletableFuture> response = fireblocks.userGroups().getUserGroup(groupId); name: Fireblocks SDK Java example - language: python - code: response = fireblocks.user_groups_beta.get_user_group(group_id); + code: response = fireblocks.user_groups.get_user_group(group_id); name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise> =\ - \ fireblocks.userGroupsBeta.getUserGroup(userGroupsBetaApiGetUserGroupRequest);" + \ fireblocks.userGroups.getUserGroup(userGroupsApiGetUserGroupRequest);" - lang: Java - source: CompletableFuture> response = fireblocks.userGroupsBeta().getUserGroup(groupId); + source: CompletableFuture> response = fireblocks.userGroups().getUserGroup(groupId); - lang: Python - source: response = fireblocks.user_groups_beta.get_user_group(group_id); + source: response = fireblocks.user_groups.get_user_group(group_id); x-accepts: - application/json put: @@ -34926,7 +35145,6 @@ paths: Update a user group by ID. **Note**: - - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. operationId: updateUserGroup parameters: @@ -34969,7 +35187,7 @@ paths: $ref: "#/components/responses/Error" summary: Update user group tags: - - User groups (Beta) + - User groups x-rate-limit-category: write x-lifecycle: state: ga @@ -34977,27 +35195,27 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.userGroupsBeta.updateUserGroup(userGroupsBetaApiUpdateUserGroupRequest);" + \ = fireblocks.userGroups.updateUserGroup(userGroupsApiUpdateUserGroupRequest);" name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response\ - \ = fireblocks.userGroupsBeta().updateUserGroup(userGroupUpdateRequest,\ - \ groupId, idempotencyKey);" + \ = fireblocks.userGroups().updateUserGroup(userGroupUpdateRequest, groupId,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.user_groups_beta.update_user_group(user_group_update_request,\ + code: "response = fireblocks.user_groups.update_user_group(user_group_update_request,\ \ group_id, idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.userGroupsBeta.updateUserGroup(userGroupsBetaApiUpdateUserGroupRequest);" + \ = fireblocks.userGroups.updateUserGroup(userGroupsApiUpdateUserGroupRequest);" - lang: Java source: "CompletableFuture> response\ - \ = fireblocks.userGroupsBeta().updateUserGroup(userGroupUpdateRequest,\ - \ groupId, idempotencyKey);" + \ = fireblocks.userGroups().updateUserGroup(userGroupUpdateRequest, groupId,\ + \ idempotencyKey);" - lang: Python - source: "response = fireblocks.user_groups_beta.update_user_group(user_group_update_request,\ + source: "response = fireblocks.user_groups.update_user_group(user_group_update_request,\ \ group_id, idempotency_key);" x-content-type: application/json x-accepts: @@ -35718,7 +35936,6 @@ paths: summary: Get vault accounts tags: - Vaults - x-internal: true x-rate-limit-category: high_compute x-lifecycle: state: deprecated @@ -35734,6 +35951,28 @@ paths: - language: javascript code: const vaultAccounts = await fireblocks.getVaultAccounts(); name: Fireblocks SDK Javascript example + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.vaults.getVaultAccounts(vaultsApiGetVaultAccountsRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture>> response = fireblocks.vaults().getVaultAccounts(namePrefix,\ + \ nameSuffix, minAmountThreshold, assetId);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.vaults.get_vault_accounts(name_prefix, name_suffix,\ + \ min_amount_threshold, asset_id);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.vaults.getVaultAccounts(vaultsApiGetVaultAccountsRequest);" + - lang: Java + source: "CompletableFuture>> response = fireblocks.vaults().getVaultAccounts(namePrefix,\ + \ nameSuffix, minAmountThreshold, assetId);" + - lang: Python + source: "response = fireblocks.vaults.get_vault_accounts(name_prefix, name_suffix,\ + \ min_amount_threshold, asset_id);" x-accepts: - application/json post: @@ -36546,7 +36785,6 @@ paths: summary: Get asset addresses tags: - Vaults - x-internal: true x-rate-limit-category: query x-lifecycle: state: deprecated @@ -36563,115 +36801,138 @@ paths: code: "const depositAddresses = await fireblocks.getDepositAddresses(vaultAccountId,\ \ assetId);" name: Fireblocks SDK Javascript example - x-accepts: - - application/json - post: - description: |- - Creates a new deposit address for an asset of a vault account. - Should be used for UTXO or Tag/Memo based assets ONLY. - - Requests with account based assets will fail. - - Endpoint Permission: Admin, Non-Signing Admin. - operationId: createVaultAccountAssetAddress - parameters: - - description: The ID of the vault account to return - explode: false - in: path - name: vaultAccountId - required: true - schema: - format: numeric - type: string - x-fb-entity: vault_account - style: simple - - description: The ID of the asset - explode: false - in: path - name: assetId - required: true - schema: - type: string - x-fb-entity: asset - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateAddressRequest" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/CreateAddressResponse" - description: The created address - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Create new asset deposit address - tags: - - Vaults - x-rate-limit-category: write - x-lifecycle: - state: ga - x-readme: - code-samples: - - language: python - code: "address = fireblocks.generate_new_address(vault_account_id, asset_id,\ - \ description, customer_ref_id)" - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: "const address = await fireblocks.generateNewAddress(vaultAccountId,\ - \ assetId, description, customerRefId);" - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.vaults.createVaultAccountAssetAddress(vaultsApiCreateVaultAccountAssetAddressRequest);" + code: "const response: Promise>\ + \ = fireblocks.vaults.getVaultAccountAssetAddresses(vaultsApiGetVaultAccountAssetAddressesRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response =\ - \ fireblocks.vaults().createVaultAccountAssetAddress(vaultAccountId, assetId,\ - \ createAddressRequest, idempotencyKey);" + code: "CompletableFuture>> response\ + \ = fireblocks.vaults().getVaultAccountAssetAddresses(vaultAccountId,\ + \ assetId);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.vaults.create_vault_account_asset_address(vault_account_id,\ - \ asset_id, create_address_request, idempotency_key);" + code: "response = fireblocks.vaults.get_vault_account_asset_addresses(vault_account_id,\ + \ asset_id);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.vaults.createVaultAccountAssetAddress(vaultsApiCreateVaultAccountAssetAddressRequest);" + source: "const response: Promise>\ + \ = fireblocks.vaults.getVaultAccountAssetAddresses(vaultsApiGetVaultAccountAssetAddressesRequest);" - lang: Java - source: "CompletableFuture> response =\ - \ fireblocks.vaults().createVaultAccountAssetAddress(vaultAccountId, assetId,\ - \ createAddressRequest, idempotencyKey);" + source: "CompletableFuture>> response\ + \ = fireblocks.vaults().getVaultAccountAssetAddresses(vaultAccountId, assetId);" - lang: Python - source: "response = fireblocks.vaults.create_vault_account_asset_address(vault_account_id,\ - \ asset_id, create_address_request, idempotency_key);" - x-content-type: application/json + source: "response = fireblocks.vaults.get_vault_account_asset_addresses(vault_account_id,\ + \ asset_id);" x-accepts: - application/json - /vault/accounts/{vaultAccountId}/{assetId}/addresses_paginated: - get: + post: description: |- - Returns a paginated response of the addresses for a given vault account and asset. - Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - operationId: getVaultAccountAssetAddressesPaginated + Creates a new deposit address for an asset of a vault account. + Should be used for UTXO or Tag/Memo based assets ONLY. + + Requests with account based assets will fail. + + Endpoint Permission: Admin, Non-Signing Admin. + operationId: createVaultAccountAssetAddress + parameters: + - description: The ID of the vault account to return + explode: false + in: path + name: vaultAccountId + required: true + schema: + format: numeric + type: string + x-fb-entity: vault_account + style: simple + - description: The ID of the asset + explode: false + in: path + name: assetId + required: true + schema: + type: string + x-fb-entity: asset + style: simple + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateAddressRequest" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CreateAddressResponse" + description: The created address + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Create new asset deposit address + tags: + - Vaults + x-rate-limit-category: write + x-lifecycle: + state: ga + x-readme: + code-samples: + - language: python + code: "address = fireblocks.generate_new_address(vault_account_id, asset_id,\ + \ description, customer_ref_id)" + name: Fireblocks SDK Python example (Legacy) + - language: javascript + code: "const address = await fireblocks.generateNewAddress(vaultAccountId,\ + \ assetId, description, customerRefId);" + name: Fireblocks SDK Javascript example + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.vaults.createVaultAccountAssetAddress(vaultsApiCreateVaultAccountAssetAddressRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response =\ + \ fireblocks.vaults().createVaultAccountAssetAddress(vaultAccountId, assetId,\ + \ createAddressRequest, idempotencyKey);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.vaults.create_vault_account_asset_address(vault_account_id,\ + \ asset_id, create_address_request, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.vaults.createVaultAccountAssetAddress(vaultsApiCreateVaultAccountAssetAddressRequest);" + - lang: Java + source: "CompletableFuture> response =\ + \ fireblocks.vaults().createVaultAccountAssetAddress(vaultAccountId, assetId,\ + \ createAddressRequest, idempotencyKey);" + - lang: Python + source: "response = fireblocks.vaults.create_vault_account_asset_address(vault_account_id,\ + \ asset_id, create_address_request, idempotency_key);" + x-content-type: application/json + x-accepts: + - application/json + /vault/accounts/{vaultAccountId}/{assetId}/addresses_paginated: + get: + description: |- + Returns a paginated response of the addresses for a given vault account and asset. + Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + operationId: getVaultAccountAssetAddressesPaginated parameters: - description: The ID of the vault account to return explode: false @@ -37545,6 +37806,327 @@ paths: \ idempotency_key);" x-accepts: - application/json + /vault/accounts/{vaultAccountId}/omnibus/{protocol}/{assetId}/addresses: + get: + description: |- + Returns a page of the deposit addresses of the omnibus account of the given vault account, protocol and asset, ordered by index, highest first. + **Note:** This endpoint is currently in beta and might be subject to changes. + Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + operationId: getOmnibusAddresses + parameters: + - description: The ID of the omnibus vault account + explode: false + in: path + name: vaultAccountId + required: true + schema: + format: numeric + type: string + x-fb-entity: vault_account + style: simple + - description: The omnibus protocol + explode: false + in: path + name: protocol + required: true + schema: + enum: + - EVM + - TEMPO + type: string + style: simple + - description: The ID of the asset + explode: false + in: path + name: assetId + required: true + schema: + type: string + x-fb-entity: asset + style: simple + - description: Return only addresses with an index greater than or equal to + this value. + explode: true + in: query + name: fromIndex + required: false + schema: + format: int32 + minimum: 1 + type: integer + style: form + - description: Return only addresses that start with this value (case-insensitive). + Surrounding whitespace is ignored. + explode: true + in: query + name: search + required: false + schema: + maxLength: 255 + type: string + style: form + - description: The cursor returned in `next` of the previous page. Omit for + the first page. + explode: true + in: query + name: pageCursor + required: false + schema: + type: string + style: form + - description: The number of addresses per page. + explode: true + in: query + name: pageSize + required: false + schema: + default: 100 + format: int32 + maximum: 1000 + minimum: 1 + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListOmnibusAddressesResponse" + description: A page of deposit addresses + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: List omnibus deposit addresses + tags: + - Vaults + x-rate-limit-category: read + x-lifecycle: + state: ea + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.vaults.getOmnibusAddresses(vaultsApiGetOmnibusAddressesRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response\ + \ = fireblocks.vaults().getOmnibusAddresses(vaultAccountId, protocol,\ + \ assetId, fromIndex, search, pageCursor, pageSize);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.vaults.get_omnibus_addresses(vault_account_id,\ + \ protocol, asset_id, from_index, search, page_cursor, page_size);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.vaults.getOmnibusAddresses(vaultsApiGetOmnibusAddressesRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.vaults().getOmnibusAddresses(vaultAccountId, protocol, assetId,\ + \ fromIndex, search, pageCursor, pageSize);" + - lang: Python + source: "response = fireblocks.vaults.get_omnibus_addresses(vault_account_id,\ + \ protocol, asset_id, from_index, search, page_cursor, page_size);" + x-accepts: + - application/json + /vault/accounts/{vaultAccountId}/omnibus/{protocol}/{assetId}/addresses/bulk: + post: + description: |- + Creates a batch of deposit addresses for the omnibus account of the given vault account, protocol and asset. + **Note:** This endpoint is currently in beta and might be subject to changes. + Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. + operationId: createOmnibusAddresses + parameters: + - description: The ID of the omnibus vault account + explode: false + in: path + name: vaultAccountId + required: true + schema: + format: numeric + type: string + x-fb-entity: vault_account + style: simple + - description: The omnibus protocol + explode: false + in: path + name: protocol + required: true + schema: + enum: + - EVM + - TEMPO + type: string + style: simple + - description: The ID of the asset + explode: false + in: path + name: assetId + required: true + schema: + type: string + x-fb-entity: asset + style: simple + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateOmnibusAddressesRequest" + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/CreateOmnibusAddressesResponse" + description: The created deposit addresses + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Create omnibus deposit addresses + tags: + - Vaults + x-rate-limit-category: write + x-lifecycle: + state: ea + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.vaults.createOmnibusAddresses(vaultsApiCreateOmnibusAddressesRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response\ + \ = fireblocks.vaults().createOmnibusAddresses(createOmnibusAddressesRequest,\ + \ vaultAccountId, protocol, assetId, idempotencyKey);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.vaults.create_omnibus_addresses(create_omnibus_addresses_request,\ + \ vault_account_id, protocol, asset_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.vaults.createOmnibusAddresses(vaultsApiCreateOmnibusAddressesRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.vaults().createOmnibusAddresses(createOmnibusAddressesRequest,\ + \ vaultAccountId, protocol, assetId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.vaults.create_omnibus_addresses(create_omnibus_addresses_request,\ + \ vault_account_id, protocol, asset_id, idempotency_key);" + x-content-type: application/json + x-accepts: + - application/json + /vault/accounts/{vaultAccountId}/omnibus/TEMPO/{assetId}/register: + post: + description: |- + Registers a Tempo omnibus wallet for the given vault account and asset. + Triggering this flow requires the vault account to hold PATH_USD with a balance sufficient to cover the gas fee. + Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. + operationId: registerTempoOmnibusWallet + parameters: + - description: The ID of the omnibus vault account + explode: false + in: path + name: vaultAccountId + required: true + schema: + format: numeric + type: string + x-fb-entity: vault_account + style: simple + - description: The Tempo network asset to register for the vault account. + explode: false + in: path + name: assetId + required: true + schema: + type: string + x-fb-entity: asset + style: simple + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/RegisterTempoOmnibusResponse" + description: The wallet is already active + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/RegisterTempoOmnibusResponse" + description: The wallet activation transaction was submitted + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Register a Tempo omnibus wallet + tags: + - Vaults + x-rate-limit-category: async + x-lifecycle: + state: ea + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.vaults.registerTempoOmnibusWallet(vaultsApiRegisterTempoOmnibusWalletRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response\ + \ = fireblocks.vaults().registerTempoOmnibusWallet(vaultAccountId, assetId,\ + \ idempotencyKey);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.vaults.register_tempo_omnibus_wallet(vault_account_id,\ + \ asset_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.vaults.registerTempoOmnibusWallet(vaultsApiRegisterTempoOmnibusWalletRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.vaults().registerTempoOmnibusWallet(vaultAccountId, assetId,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.vaults.register_tempo_omnibus_wallet(vault_account_id,\ + \ asset_id, idempotency_key);" + x-accepts: + - application/json /vault/accounts/{vaultAccountId}/set_auto_fuel: post: description: |- @@ -37795,7 +38377,6 @@ paths: get: description: |- Returns the USDC Gateway wallet information associated with the given vault account. - **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. operationId: getUsdcGatewayWalletInfoBeta parameters: @@ -37855,7 +38436,6 @@ paths: post: description: |- Activates the USDC Gateway wallet associated with the given vault account. If the wallet does not yet exist it is created in an activated state. - **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. operationId: activateUsdcGatewayWalletBeta parameters: @@ -37929,7 +38509,6 @@ paths: post: description: |- Deactivates the USDC Gateway wallet associated with the given vault account. - **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. operationId: deactivateUsdcGatewayWalletBeta parameters: @@ -38004,7 +38583,6 @@ paths: get: description: |- Returns the USDC Gateway deposit automations configured for the given vault account. - **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. operationId: getUsdcGatewayDepositAutomationBeta parameters: @@ -38063,7 +38641,6 @@ paths: post: description: |- Turns on automatic deposits into the USDC Gateway wallet for the given vault account, on the schedule you choose. Returns an error if an automation already exists for this vault account and asset. Use PATCH to change it instead. - **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. operationId: setUsdcGatewayDepositAutomationBeta parameters: @@ -38145,7 +38722,6 @@ paths: delete: description: |- Stops the schedule for an existing deposit automation. The automation itself stays configured, only its schedule stops. Turn it back on later with PATCH, without setting up the automation again from scratch. - **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. operationId: disableUsdcGatewayDepositAutomationScheduleBeta parameters: @@ -38210,7 +38786,6 @@ paths: patch: description: |- Changes an existing USDC Gateway deposit automation for a vault account. - **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. operationId: updateUsdcGatewayDepositAutomationBeta parameters: @@ -38525,7 +39100,6 @@ paths: post: description: "Create multiple vault accounts by running an async job. \n\ - The HBAR, TON, SUI, TERRA, ALGO, and DOT blockchains are not supported.\n\ - - These endpoints are currently in beta and might be subject to changes.\n\ - Limited to a maximum of 10,000 accounts per operation.\n- With `vaultType:\ \ KEY_LINK`, creates Key Link vault accounts; set `autoAssign: true` to bind\ \ them to the workspace's signing keys (see `vaultType` and `autoAssign`).\n\ @@ -38908,7 +39482,6 @@ paths: get: description: | Resolves a blockchain address to the vault account that owns it. Returns the vault account ID and the blockchains associated with the address. - **Note:** This endpoint is currently in beta and might be subject to changes. operationId: lookupVaultByAddress parameters: - description: The blockchain address to resolve. @@ -39765,6 +40338,360 @@ paths: x-content-type: application/json x-accepts: - application/json + /webhooks_settings/custom_headers: + get: + description: | + Lists every custom headers set for the workspace. Header values are never returned, only the header names. + operationId: getWebhookCustomHeadersList + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/WebhookCustomHeadersSetList" + description: The workspace's custom headers sets + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Get all custom headers sets + tags: + - Webhooks V2 + x-rate-limit-category: read + x-lifecycle: + state: ea + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.webhooksV2.getWebhookCustomHeadersList();" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture>> response + = fireblocks.webhooksV2().getWebhookCustomHeadersList(); + name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.webhooks_v2.get_webhook_custom_headers_list(); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.webhooksV2.getWebhookCustomHeadersList();" + - lang: Java + source: CompletableFuture>> response + = fireblocks.webhooksV2().getWebhookCustomHeadersList(); + - lang: Python + source: response = fireblocks.webhooks_v2.get_webhook_custom_headers_list(); + x-accepts: + - application/json + post: + description: | + Creates a reusable set of custom HTTP headers. Attach it to a webhook by passing the returned id as that webhook's `webhookCustomHeadersId`, to send the headers with that webhook's notifications, or to OAuth credentials as their `webhookCustomHeadersId`, to send them on the token request to your authorization server. Several webhooks and OAuth credentials may share one set, so changing it covers all of them at once. Header values are write-only and are never returned. + + One set of rules applies to every use of a set, whether a webhook or OAuth credentials attach it: a value is a string or an array of strings (one header line per element), except `Cookie` and `Authorization`, which take a single string. Where Fireblocks sends its own `Authorization` header (an OAuth bearer token on a delivery, `client_secret_basic` on a token request), a custom `Authorization` header is not sent. Attaching a set checks only that it exists in your workspace. + + **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. + operationId: createWebhookCustomHeaders + parameters: + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateWebhookCustomHeadersRequest" + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/WebhookCustomHeadersSet" + description: created the custom headers set successfully + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Create a custom headers set + tags: + - Webhooks V2 + x-rate-limit-category: write + x-lifecycle: + state: ea + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.webhooksV2.createWebhookCustomHeaders(webhooksV2ApiCreateWebhookCustomHeadersRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response\ + \ = fireblocks.webhooksV2().createWebhookCustomHeaders(createWebhookCustomHeadersRequest,\ + \ idempotencyKey);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.webhooks_v2.create_webhook_custom_headers(create_webhook_custom_headers_request,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.webhooksV2.createWebhookCustomHeaders(webhooksV2ApiCreateWebhookCustomHeadersRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.webhooksV2().createWebhookCustomHeaders(createWebhookCustomHeadersRequest,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.webhooks_v2.create_webhook_custom_headers(create_webhook_custom_headers_request,\ + \ idempotency_key);" + x-content-type: application/json + x-accepts: + - application/json + /webhooks_settings/custom_headers/{webhookCustomHeadersId}: + delete: + description: | + Deletes a custom headers set. By default the delete is refused while the set is still in use: if any webhook or OAuth credentials use it, nothing is deleted and the request fails with `409 Conflict`, naming the reason and listing the ids of the webhooks and OAuth credentials using it. This protects a shared set from being removed out from under the things that depend on it. + + Pass `forceDelete=true` to delete anyway. That detaches everything using the set — it clears each webhook's and each OAuth credential set's `webhookCustomHeadersId`, it does **not** delete the webhook or the credentials — then deletes the set and returns the deleted resource together with `detachedWebhookIds` and `detachedWebhookOauthIds`. A detached webhook stops sending these headers with its notifications, and detached OAuth credentials stop sending them on the token request. + + When nothing uses the set the delete succeeds either way, and both lists come back empty. + + **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. + operationId: deleteWebhookCustomHeaders + parameters: + - description: The unique identifier of the custom headers set + explode: false + in: path + name: webhookCustomHeadersId + required: true + schema: + example: 44fcead0-7053-4831-a53a-df7fb90d440f + format: uuid + type: string + style: simple + - description: "Delete the set even while webhooks or OAuth credentials still\ + \ use it, detaching them instead of refusing. Leave it unset, or `false`,\ + \ to get a `409 Conflict` whenever anything still uses the set." + example: true + explode: true + in: query + name: forceDelete + required: false + schema: + default: false + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/DeleteWebhookCustomHeadersResponse" + description: "The deleted custom headers set, plus the ids of any webhooks\ + \ and OAuth credentials that were detached from it" + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "409": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorSchema" + description: "Webhooks or OAuth credentials still use this set and `forceDelete`\ + \ was not set. Nothing was deleted. The error message names the reason\ + \ and the ids of the webhooks and OAuth credentials using it — detach\ + \ them, or retry with `forceDelete=true`." + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Delete a custom headers set + tags: + - Webhooks V2 + x-rate-limit-category: write + x-lifecycle: + state: ea + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.webhooksV2.deleteWebhookCustomHeaders(webhooksV2ApiDeleteWebhookCustomHeadersRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture>\ + \ response = fireblocks.webhooksV2().deleteWebhookCustomHeaders(webhookCustomHeadersId,\ + \ forceDelete);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.webhooks_v2.delete_webhook_custom_headers(webhook_custom_headers_id,\ + \ force_delete);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.webhooksV2.deleteWebhookCustomHeaders(webhooksV2ApiDeleteWebhookCustomHeadersRequest);" + - lang: Java + source: "CompletableFuture>\ + \ response = fireblocks.webhooksV2().deleteWebhookCustomHeaders(webhookCustomHeadersId,\ + \ forceDelete);" + - lang: Python + source: "response = fireblocks.webhooks_v2.delete_webhook_custom_headers(webhook_custom_headers_id,\ + \ force_delete);" + x-accepts: + - application/json + get: + description: | + Retrieve a custom headers set by its id. Header values are never returned, only the header names. + operationId: getWebhookCustomHeaders + parameters: + - description: The unique identifier of the custom headers set + explode: false + in: path + name: webhookCustomHeadersId + required: true + schema: + example: 44fcead0-7053-4831-a53a-df7fb90d440f + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/WebhookCustomHeadersSet" + description: A custom headers set + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Get a custom headers set by id + tags: + - Webhooks V2 + x-rate-limit-category: read + x-lifecycle: + state: ea + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.webhooksV2.getWebhookCustomHeaders(webhooksV2ApiGetWebhookCustomHeadersRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response = + fireblocks.webhooksV2().getWebhookCustomHeaders(webhookCustomHeadersId); + name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.webhooks_v2.get_webhook_custom_headers(webhook_custom_headers_id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.webhooksV2.getWebhookCustomHeaders(webhooksV2ApiGetWebhookCustomHeadersRequest);" + - lang: Java + source: CompletableFuture> response = + fireblocks.webhooksV2().getWebhookCustomHeaders(webhookCustomHeadersId); + - lang: Python + source: response = fireblocks.webhooks_v2.get_webhook_custom_headers(webhook_custom_headers_id); + x-accepts: + - application/json + patch: + description: | + Updates only the fields present in the request; anything omitted is left as it is. `headers` is merged name by name rather than replaced: a header sent with a value is added or overwritten, a header sent as `null` is deleted, and a header you omit is left alone. The change applies to every webhook and OAuth credential set that uses the set. + + A change that would leave the set with no headers is refused with a `400` — delete the set instead. Where Fireblocks sends its own `Authorization` header, a custom `Authorization` header is not sent: on a webhook that has OAuth credentials attached (the OAuth bearer token), and on the token request of OAuth credentials that use `client_secret_basic`. + + **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. + operationId: updateWebhookCustomHeaders + parameters: + - description: The unique identifier of the custom headers set + explode: false + in: path + name: webhookCustomHeadersId + required: true + schema: + example: 44fcead0-7053-4831-a53a-df7fb90d440f + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateWebhookCustomHeadersRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/WebhookCustomHeadersSet" + description: Updated custom headers set + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorSchema" + description: "Neither `name` nor `headers` was provided, so there is nothing\ + \ to change, or the change was refused: it would leave the set with no\ + \ headers, or a header breaks the rules for header names and values. Nothing\ + \ was changed." + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Update a custom headers set + tags: + - Webhooks V2 + x-rate-limit-category: write + x-lifecycle: + state: ea + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.webhooksV2.updateWebhookCustomHeaders(webhooksV2ApiUpdateWebhookCustomHeadersRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response\ + \ = fireblocks.webhooksV2().updateWebhookCustomHeaders(updateWebhookCustomHeadersRequest,\ + \ webhookCustomHeadersId);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.webhooks_v2.update_webhook_custom_headers(update_webhook_custom_headers_request,\ + \ webhook_custom_headers_id);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.webhooksV2.updateWebhookCustomHeaders(webhooksV2ApiUpdateWebhookCustomHeadersRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.webhooksV2().updateWebhookCustomHeaders(updateWebhookCustomHeadersRequest,\ + \ webhookCustomHeadersId);" + - lang: Python + source: "response = fireblocks.webhooks_v2.update_webhook_custom_headers(update_webhook_custom_headers_request,\ + \ webhook_custom_headers_id);" + x-content-type: application/json + x-accepts: + - application/json /webhooks_settings/mtls: get: description: | @@ -40255,6 +41182,8 @@ paths: description: | Creates a reusable OAuth client credential set. Attach it to a webhook by passing the returned id as that webhook's `webhookOauthId`. Several webhooks may share one credential set, so rotating its client secret covers all of them at once. The client secret is write-only and is never returned. + With `authMethod` `private_key_jwt` no client secret is sent: Fireblocks generates two key pairs for the credentials, the signing key and its successor, and keeps the private halves. The public halves are published at the `jwksUri` returned with the credentials; register that URL as the client's `jwks_uri` on your authorization server. + **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. operationId: createWebhookOauth parameters: @@ -40474,7 +41403,7 @@ paths: description: | Updates only the fields present in the request; anything omitted is left as it is. Sending `clientSecret` on its own rotates the secret for every webhook using these credentials. - `customJwtClaims`, `customBodyParams` and `customHeaders` are all merged key by key rather than replaced, the same way a webhook's own `customHeaders` behaves: a key sent with a value is added or overwritten, a key sent with a `null` value is deleted, and a key you omit is left alone. Setting one of the three to `null` as a whole clears that map, which is the quick way to empty it without naming every key. There is no ambiguity between the two uses of `null` — one names an entry to delete, the other names the field. A claim cannot be set to JSON `null`, though, on this endpoint or on create, because `null` is spent on deletion. `webhookMtlsId` is a scalar rather than a map, so `null` there does remove it. + `customJwtClaims` and `customBodyParams` are merged key by key rather than replaced: a key sent with a value is added or overwritten, a key sent with a `null` value is deleted, and a key you omit is left alone. Setting one of the two to `null` as a whole clears that map, which is the quick way to empty it without naming every key. There is no ambiguity between the two uses of `null` — one names an entry to delete, the other names the field. A claim cannot be set to JSON `null`, though, on this endpoint or on create, because `null` is spent on deletion. `webhookMtlsId` and `webhookCustomHeadersId` are scalars rather than maps, so `null` there does remove them. `webhookCustomHeadersId` points the credentials at a set of extra token request headers from `/v1/webhooks_settings/custom_headers`; under `client_secret_basic` Fireblocks sends its own `Authorization` header with the credentials, so a custom `Authorization` header in the set is not sent. **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. operationId: updateWebhookOauth @@ -40542,6 +41471,215 @@ paths: x-content-type: application/json x-accepts: - application/json + /webhooks_settings/oauth/{webhookOauthId}/revoke_key: + post: + description: | + Deletes a key of OAuth credentials at once, for when a key may have leaked: it drops out of the published set immediately rather than being kept for 30 days. Revoking never causes an outage. + + Without a `kid`, revokes the key Fireblocks is signing with: signing switches to the successor, which your authorization server already holds, and a new successor is generated. A cached access token is discarded, so the next delivery fetches a new one. + + With the successor's `kid`, deletes the successor and generates a new one; signing is unchanged. With the `kid` of a key rotated out by `rotate_key` and still published, deletes that key, and a cached access token is discarded as well. Keys left behind by a `signingAlg` change drop out of the published set after 5 minutes but are kept for 30 days, and can be revoked by `kid` until then. Credentials using `private_key_jwt` always keep a key to sign with. + + On credentials that no longer use `private_key_jwt`, whose keys stay published for 30 days after the switch, a `kid` is required: that key is deleted and nothing is generated. The last key they hold can be revoked too, leaving an empty set. + + Returns the `kid` of the key revoked, which without a `kid` in the request is the key Fireblocks was signing with. The public keys are at the `jwksUri` of the credentials: fetch them again, or register the new successor with your authorization server. Use `rotate_key` for a routine rotation, which keeps the replaced key published for 30 days. + + **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. + operationId: revokeWebhookOauthKey + parameters: + - description: The unique identifier of the OAuth credentials + explode: false + in: path + name: webhookOauthId + required: true + schema: + example: 44fcead0-7053-4831-a53a-df7fb90d440f + format: uuid + type: string + style: simple + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/RevokeWebhookOauthKeyRequest" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/RevokeWebhookOauthKeyResponse" + description: The key was revoked; the `kid` of the key revoked + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorSchema" + description: "The request cannot be applied: `kid` is `null`, empty or longer\ + \ than 64 characters, or no `kid` was sent for credentials that no longer\ + \ use `private_key_jwt`." + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorSchema" + description: "No such OAuth credentials in this workspace, or they hold\ + \ no key with this `kid`. A key already deleted, by a revoke or at the\ + \ end of its 30 days, is not found." + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Revoke a signing key of OAuth credentials + tags: + - Webhooks V2 + x-rate-limit-category: write + x-lifecycle: + state: ea + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.webhooksV2.revokeWebhookOauthKey(webhooksV2ApiRevokeWebhookOauthKeyRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response\ + \ = fireblocks.webhooksV2().revokeWebhookOauthKey(webhookOauthId, revokeWebhookOauthKeyRequest,\ + \ idempotencyKey);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.webhooks_v2.revoke_webhook_oauth_key(webhook_oauth_id,\ + \ revoke_webhook_oauth_key_request, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.webhooksV2.revokeWebhookOauthKey(webhooksV2ApiRevokeWebhookOauthKeyRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.webhooksV2().revokeWebhookOauthKey(webhookOauthId, revokeWebhookOauthKeyRequest,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.webhooks_v2.revoke_webhook_oauth_key(webhook_oauth_id,\ + \ revoke_webhook_oauth_key_request, idempotency_key);" + x-content-type: application/json + x-accepts: + - application/json + /webhooks_settings/oauth/{webhookOauthId}/rotate_key: + post: + description: | + Switches the OAuth credentials to their successor key and generates a new successor, for credentials using `private_key_jwt`. Takes no body. The new signing key is one your authorization server already holds, since the successor is published from the start, so the switch causes no outage. + + The key replaced is no longer used to sign, but stays in the published set for 30 days and is then deleted. Rotating again within those 30 days is allowed: each key rotated out keeps its own 30 days, and any of them can be revoked by `kid`. The credentials can hold at most 5 keys in their signing algorithm at once, counting the active key, its successor and those rotated out; at that limit, revoke a rotated-out key (the error names the oldest) and rotate again. To stop trusting a key at once — after a leak — use `revoke_key` instead. + + Returns the `kid` of the key rotated out. The public keys are at the `jwksUri` of the credentials: fetch them again, or register the new successor with your authorization server, before the next rotation. + + **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. + operationId: rotateWebhookOauthKey + parameters: + - description: The unique identifier of the OAuth credentials + explode: false + in: path + name: webhookOauthId + required: true + schema: + example: 44fcead0-7053-4831-a53a-df7fb90d440f + format: uuid + type: string + style: simple + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/RotateWebhookOauthKeyResponse" + description: The key was rotated; the `kid` of the key rotated out + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorSchema" + description: "The credentials do not use `private_key_jwt`, so they have\ + \ no signing key to rotate, or they already hold 5 keys in their signing\ + \ algorithm and a rotated-out key must be revoked first." + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorSchema" + description: No such OAuth credentials in this workspace. + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Rotate the signing key of OAuth credentials + tags: + - Webhooks V2 + x-rate-limit-category: write + x-lifecycle: + state: ea + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.webhooksV2.rotateWebhookOauthKey(webhooksV2ApiRotateWebhookOauthKeyRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response\ + \ = fireblocks.webhooksV2().rotateWebhookOauthKey(webhookOauthId, idempotencyKey);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.webhooks_v2.rotate_webhook_oauth_key(webhook_oauth_id,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.webhooksV2.rotateWebhookOauthKey(webhooksV2ApiRotateWebhookOauthKeyRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.webhooksV2().rotateWebhookOauthKey(webhookOauthId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.webhooks_v2.rotate_webhook_oauth_key(webhook_oauth_id,\ + \ idempotency_key);" + x-accepts: + - application/json /webhooks/{webhookId}: delete: description: | @@ -41738,18 +42876,34 @@ paths: summary: Freeze tags: - Workspace - x-internal: true x-rate-limit-category: write x-lifecycle: state: ga + x-readme: + code-samples: + - language: typescript + code: "const response: Promise> = fireblocks.workspace.freezeWorkspace(workspaceApiFreezeWorkspaceRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response = fireblocks.workspace().freezeWorkspace(idempotencyKey); + name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.workspace.freeze_workspace(idempotency_key); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.workspace.freezeWorkspace(workspaceApiFreezeWorkspaceRequest);" + - lang: Java + source: CompletableFuture> response = fireblocks.workspace().freezeWorkspace(idempotencyKey); + - lang: Python + source: response = fireblocks.workspace.freeze_workspace(idempotency_key); x-accepts: - application/json /management/workspace_status: get: description: |- - Returns current workspace status (Beta). + Returns current workspace status. **Note**: - - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin/Non Signing Admin permissions. Endpoint Permission: Admin, Non-Signing Admin. @@ -41765,7 +42919,7 @@ paths: description: Workspace not found summary: Returns current workspace status tags: - - Workspace Status (Beta) + - Workspace Status x-rate-limit-category: query x-lifecycle: state: ga @@ -41773,24 +42927,24 @@ paths: code-samples: - language: typescript code: "const response: Promise>\ - \ = fireblocks.workspaceStatusBeta.getWorkspaceStatus();" + \ = fireblocks.workspaceStatus.getWorkspaceStatus();" name: Fireblocks SDK TypeScript example - language: java code: CompletableFuture> response - = fireblocks.workspaceStatusBeta().getWorkspaceStatus(); + = fireblocks.workspaceStatus().getWorkspaceStatus(); name: Fireblocks SDK Java example - language: python - code: response = fireblocks.workspace_status_beta.get_workspace_status(); + code: response = fireblocks.workspace_status.get_workspace_status(); name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.workspaceStatusBeta.getWorkspaceStatus();" + \ = fireblocks.workspaceStatus.getWorkspaceStatus();" - lang: Java source: CompletableFuture> response - = fireblocks.workspaceStatusBeta().getWorkspaceStatus(); + = fireblocks.workspaceStatus().getWorkspaceStatus(); - lang: Python - source: response = fireblocks.workspace_status_beta.get_workspace_status(); + source: response = fireblocks.workspace_status.get_workspace_status(); x-accepts: - application/json components: @@ -42855,6 +44009,138 @@ components: activationTxId: type: string type: object + CreateOmnibusAddressesRequest: + example: + count: 10 + descriptions: + - customer-1234 + - customer-1235 + properties: + count: + description: The number of deposit addresses to create + example: 10 + format: int32 + maximum: 10000 + minimum: 1 + type: integer + descriptions: + description: "Descriptions of the newly created addresses, in order. Must\ + \ match `count` when provided. Each entry is trimmed; an empty string\ + \ leaves that address without a description." + example: + - customer-1234 + - customer-1235 + items: + maxLength: 255 + type: string + maxItems: 10000 + type: array + required: + - count + type: object + OmnibusAddress: + properties: + index: + description: The index of the deposit address within the omnibus account + example: 1 + format: int32 + type: integer + address: + description: The deposit address + example: 0x2f1a9b6e3c4d5e6f708192a3b4c5d6e7f8091a2b + type: string + description: + description: The caller-supplied label of the address. Absent when no label + was set. + example: customer-1234 + type: string + createdAt: + description: "The time the address was created, in epoch milliseconds" + example: "1759838400000" + type: string + required: + - address + - createdAt + - index + type: object + CreateOmnibusAddressesResponse: + example: + data: + - index: 1 + address: 0x2f1a9b6e3c4d5e6f708192a3b4c5d6e7f8091a2b + description: customer-1234 + createdAt: "1759838400000" + properties: + data: + description: The created deposit addresses + example: + - index: 1 + address: 0x2f1a9b6e3c4d5e6f708192a3b4c5d6e7f8091a2b + description: customer-1234 + createdAt: "1759838400000" + items: + $ref: "#/components/schemas/OmnibusAddress" + type: array + required: + - data + type: object + ListOmnibusAddressesResponse: + example: + next: MTAw + total: 250 + data: + - index: 1 + address: 0x2f1a9b6e3c4d5e6f708192a3b4c5d6e7f8091a2b + description: customer-1234 + createdAt: "1759838400000" + properties: + total: + description: "The total number of addresses matching the request (respecting\ + \ `fromIndex` and `search`, ignoring pagination). Returned only on the\ + \ first page." + example: 250 + format: int32 + type: integer + data: + description: "A page of deposit addresses, ordered by index, highest first" + example: + - index: 1 + address: 0x2f1a9b6e3c4d5e6f708192a3b4c5d6e7f8091a2b + description: customer-1234 + createdAt: "1759838400000" + items: + $ref: "#/components/schemas/OmnibusAddress" + type: array + next: + description: The cursor for the next page. Absent on the last page. + example: MTAw + type: string + required: + - data + type: object + RegisterTempoOmnibusResponse: + example: + txId: b68a9e08-b59c-4ff9-893f-52d4f78c21e6 + status: PENDING_ACTIVATION + properties: + txId: + description: The ID of the wallet activation transaction. Absent when no + activation transaction was submitted. + example: b68a9e08-b59c-4ff9-893f-52d4f78c21e6 + type: string + status: + description: The status of the Tempo omnibus wallet. `READY` is returned + with 200; `PROCESSING` and `PENDING_ACTIVATION` are returned with 202. + A failed activation is returned as an error. + enum: + - PROCESSING + - PENDING_ACTIVATION + - READY + example: PENDING_ACTIVATION + type: string + required: + - status + type: object SetCustomerRefIdRequest: example: customerRefId: customerRefId @@ -45550,6 +46836,24 @@ components: required: - publicKey type: object + ConnectedAccountCredit: + properties: + amount: + description: "The credit amount, as a decimal number string." + example: "500.00" + maxLength: 64 + pattern: ^-?\d+(\.\d+)?$ + type: string + denominatedAssetId: + description: "The asset ID the credit amount is denominated in. Omitted\ + \ when the denomination asset ID is unavailable; the amount is still returned,\ + \ but its denomination is unknown. Do not assume it matches the asset\ + \ used for totalBalance." + example: ea6c3cb7-355a-4ee3-82ff-267c69970214 + type: string + required: + - amount + type: object ConnectedSingleAccount: properties: subAccountsIds: @@ -45560,30 +46864,58 @@ components: items: type: string type: array + totalCredit: + allOf: + - $ref: "#/components/schemas/ConnectedAccountCredit" + description: Total credit line available on the account. Returned only by + the single-account endpoint (Get connected account); the list endpoint + does not retrieve balances and never populates it. Omitted when total + credit data is unavailable or balance retrieval is skipped. Absence does + not imply zero credit. + example: + amount: "500.00" + denominatedAssetId: ea6c3cb7-355a-4ee3-82ff-267c69970214 + availableCredit: + allOf: + - $ref: "#/components/schemas/ConnectedAccountCredit" + description: Remaining unused credit available on the account. Returned + only by the single-account endpoint (Get connected account); the list + endpoint does not retrieve balances and never populates it. Omitted when + available credit data is unavailable or balance retrieval is skipped. + Absence does not imply zero credit. + example: + amount: "300.00" + denominatedAssetId: ea6c3cb7-355a-4ee3-82ff-267c69970214 type: object ConnectedSingleAccountResponse: allOf: - $ref: "#/components/schemas/ConnectedAccount" - $ref: "#/components/schemas/ConnectedSingleAccount" example: + availableCredit: + amount: "300.00" + denominatedAssetId: ea6c3cb7-355a-4ee3-82ff-267c69970214 apiKey: rk_live_abc123 totalBalance: amount: "1201.15" denominatedAssetId: ea6c3cb7-355a-4ee3-82ff-267c69970214 hasFullAssetCoverage: true - providerId: BRIDGE + totalCredit: + amount: "500.00" + denominatedAssetId: ea6c3cb7-355a-4ee3-82ff-267c69970214 manifest: assetTypes: [] capabilities: - WITHDRAWALS accountType: CONNECTED_ACCOUNT - name: Main Venue Account - id: acc-123456 - providerAccountName: Main Account parentId: acc-parent-001 subAccountsIds: - acc-sub-001 - acc-sub-002 + providerId: BRIDGE + name: Main Venue Account + id: acc-123456 + providerAccountName: Main Account status: WAITING_FOR_APPROVAL RenameConnectedAccountRequest: example: @@ -58096,7 +59428,7 @@ components: description: "For Tempo-based transactions only, the asset used to pay the\ \ transaction's network fee, as an asset ID ([see supported assets](https://developers.fireblocks.com/api-reference/blockchains-&-assets/list-assets)).\ \ For any other blockchain, this value is ignored. This feature is currently\ - \ in beta and might be subject to changes." + \ in early availability and might be subject to changes." example: PATHUSD_TEMPO_54V8 type: string x-fb-entity: asset @@ -58516,8 +59848,8 @@ components: destination: $ref: "#/components/schemas/TempoTransferDestination" travelRuleMessageId: - description: "Beta. An identifier of a TravelRule message, already sent\ - \ to the TravelRule provider." + description: "Early availability. An identifier of a TravelRule message,\ + \ already sent to the TravelRule provider." example: trm_12345678-1234-1234-1234-123456789012 type: string customerRefId: @@ -58579,12 +59911,12 @@ components: example: MEDIUM type: string travelRuleMessage: - description: Beta. An opaque travel-rule payload. + description: Early availability. An opaque travel-rule payload. example: "{}" type: string travelRuleMessageId: - description: "Beta. An identifier of a TravelRule message, already sent\ - \ to the TravelRule provider." + description: "Early availability. An identifier of a TravelRule message,\ + \ already sent to the TravelRule provider." example: trm_12345678-1234-1234-1234-123456789012 type: string useGasless: @@ -58624,8 +59956,8 @@ components: $ref: "#/components/schemas/TempoTransferDestinationItem" type: array failOnLowFee: - description: "Beta. If true, fail the transaction rather than sending\ - \ it with a low fee." + description: "Early availability. If true, fail the transaction rather\ + \ than sending it with a low fee." example: false type: boolean gasLimit: @@ -58633,7 +59965,8 @@ components: example: "21000" type: string replaceTxByHash: - description: Beta. The hash of the EVM transaction to replace (RBF). + description: Early availability. The hash of the EVM transaction to + replace (RBF). example: 0x9fc76417374aa880d4449a1f7f31ec597f00b1f6f3dd2d66f4c9c6c445836d8 type: string feePayerAccountId: @@ -63550,29 +64883,18 @@ components: - order.updated - automation_execution.update type: string - WebhookCustomHeadersResponse: - description: Names of the custom headers configured for this webhook. Header - values are never returned. - example: - - x-gateway-key - - x-region-tag - items: - type: string - type: array Webhook: example: createdAt: 1625126400000 webhookMtlsId: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f webhookOauthId: 123e4567-e89b-12d3-a456-426614174000 + webhookCustomHeadersId: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f description: This webhook is used for transactions notifications id: 123e4567-e89b-12d3-a456-426614174000 url: https://example.com/webhook events: - transaction.created - transaction.status.updated - customHeaders: - - x-gateway-key - - x-region-tag status: ENABLED updatedAt: 1625126400000 properties: @@ -63632,15 +64954,13 @@ components: example: 123e4567-e89b-12d3-a456-426614174000 format: uuid type: string - customHeaders: - description: Names of the custom headers configured for this webhook. Header - values are never returned. - example: - - x-gateway-key - - x-region-tag - items: - type: string - type: array + webhookCustomHeadersId: + description: "The id of the set of custom headers sent with this webhook's\ + \ notifications. Absent when the webhook sends none. Read the set itself\ + \ from `/v1/webhooks_settings/custom_headers/{webhookCustomHeadersId}`." + example: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f + format: uuid + type: string required: - createdAt - events @@ -63656,29 +64976,25 @@ components: - createdAt: 1625126400000 webhookMtlsId: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f webhookOauthId: 123e4567-e89b-12d3-a456-426614174000 + webhookCustomHeadersId: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f description: This webhook is used for transactions notifications id: 123e4567-e89b-12d3-a456-426614174000 url: https://example.com/webhook events: - transaction.created - transaction.status.updated - customHeaders: - - x-gateway-key - - x-region-tag status: ENABLED updatedAt: 1625126400000 - createdAt: 1625126400000 webhookMtlsId: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f webhookOauthId: 123e4567-e89b-12d3-a456-426614174000 + webhookCustomHeadersId: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f description: This webhook is used for transactions notifications id: 123e4567-e89b-12d3-a456-426614174000 url: https://example.com/webhook events: - transaction.created - transaction.status.updated - customHeaders: - - x-gateway-key - - x-region-tag status: ENABLED updatedAt: 1625126400000 properties: @@ -63695,44 +65011,17 @@ components: required: - data type: object - WebhookCustomHeaders: - additionalProperties: - description: "A string, sent as one header line, or an array of strings, sent\ - \ as one header line per element. A string may be empty: RFC 9110 §5.5 permits\ - \ an empty field value, and it reaches your endpoint as an empty value rather\ - \ than being dropped. A value has no length limit of its own and must not\ - \ contain control characters. An array must not be empty and is not accepted\ - \ for `Cookie` or `Authorization`." - example: abc123 - description: |- - Custom HTTP headers attached to every notification delivered by this webhook. - A value is a string, sent as one header line, or an array of strings, sent as one header line per element under the same name. `Cookie` and `Authorization` accept only a string. An empty array is rejected — leave the name out instead. - At most 10 headers, counted by name — an array value counts once, however many lines it sends. Names must be valid HTTP header tokens, are case-insensitive, and are at most 128 characters. A value may be empty and has no length limit of its own; the whole object must be under 16 KB when serialized as UTF-8. A value that large may still be refused by your own endpoint, since web servers commonly cap the whole request header block at around 8 KB. - Reserved names: `Host`, `Content-Type`, `Content-Length`, `Transfer-Encoding`, `Connection`, `User-Agent`, `Accept`, `Accept-Encoding`, `Fireblocks-Signature`, `Fireblocks-Webhook-Signature`. `Authorization` may be set, but not together with `webhookOauthId`; a request that would leave both set is rejected. - Values are write-only; responses return only the header names. - example: - X-Gateway-Key: abc123 - X-Region-Tag: eu - X-Forwarded-For: - - 203.0.113.7 - - 198.51.100.4 - type: object CreateWebhookRequest: example: webhookMtlsId: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f webhookOauthId: 123e4567-e89b-12d3-a456-426614174000 + webhookCustomHeadersId: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f description: This webhook is used for transactions notifications url: https://example.com/webhook events: - transaction.created - transaction.status.updated enabled: false - customHeaders: - X-Gateway-Key: abc123 - X-Region-Tag: eu - X-Forwarded-For: - - 203.0.113.7 - - 198.51.100.4 properties: url: description: "The url of the webhook where notifications will be sent. URL\ @@ -63763,7 +65052,8 @@ components: description: "The id of the mTLS configuration this webhook presents when\ \ delivering, from `/v1/webhooks_settings/mtls`. Several webhooks may\ \ share one configuration, so replacing its certificate covers all of\ - \ them at once. Send `null` to stop using mTLS for this webhook." + \ them at once. Send `null` to stop using mTLS for this webhook. Requires\ + \ advanced webhook controls to be enabled for the workspace (`403` otherwise)." example: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f format: uuid nullable: true @@ -63772,35 +65062,29 @@ components: description: "The id of the OAuth credentials this webhook authenticates\ \ with, from `/v1/webhooks_settings/oauth`. Several webhooks may share\ \ one credential set, so rotating its client secret covers all of them\ - \ at once. Send `null` to stop using OAuth for this webhook. Cannot be\ - \ combined with an `authorization` custom header on the same webhook;\ - \ a request that would leave both set is rejected." + \ at once. Send `null` to stop using OAuth for this webhook. When the\ + \ webhook has OAuth credentials, Fireblocks sends its own `Authorization`\ + \ header (the bearer token), and a custom `Authorization` header from\ + \ the attached set is not sent. Requires advanced webhook controls to\ + \ be enabled for the workspace (`403` otherwise)." example: 123e4567-e89b-12d3-a456-426614174000 format: uuid nullable: true type: string - customHeaders: - additionalProperties: - description: "A string, sent as one header line, or an array of strings,\ - \ sent as one header line per element. A string may be empty: RFC 9110\ - \ §5.5 permits an empty field value, and it reaches your endpoint as\ - \ an empty value rather than being dropped. A value has no length limit\ - \ of its own and must not contain control characters. An array must\ - \ not be empty and is not accepted for `Cookie` or `Authorization`." - example: abc123 - description: |- - Custom HTTP headers attached to every notification delivered by this webhook. - A value is a string, sent as one header line, or an array of strings, sent as one header line per element under the same name. `Cookie` and `Authorization` accept only a string. An empty array is rejected — leave the name out instead. - At most 10 headers, counted by name — an array value counts once, however many lines it sends. Names must be valid HTTP header tokens, are case-insensitive, and are at most 128 characters. A value may be empty and has no length limit of its own; the whole object must be under 16 KB when serialized as UTF-8. A value that large may still be refused by your own endpoint, since web servers commonly cap the whole request header block at around 8 KB. - Reserved names: `Host`, `Content-Type`, `Content-Length`, `Transfer-Encoding`, `Connection`, `User-Agent`, `Accept`, `Accept-Encoding`, `Fireblocks-Signature`, `Fireblocks-Webhook-Signature`. `Authorization` may be set, but not together with `webhookOauthId`; a request that would leave both set is rejected. - Values are write-only; responses return only the header names. - example: - X-Gateway-Key: abc123 - X-Region-Tag: eu - X-Forwarded-For: - - 203.0.113.7 - - 198.51.100.4 - type: object + webhookCustomHeadersId: + description: "The id of the set of custom HTTP headers sent with this webhook's\ + \ notifications, from `/v1/webhooks_settings/custom_headers`. Several\ + \ webhooks, and OAuth credentials, may share one set, so changing it covers\ + \ all of them at once. Validated when the set is created or changed; attaching\ + \ checks only that it exists in your workspace. Replaces the inline `customHeaders`\ + \ field, which is now refused with a `400`, so use `webhookCustomHeadersId`.\ + \ Requires advanced webhook controls to be enabled for the workspace (`403`\ + \ otherwise). An unknown id, or one belonging to another workspace, is\ + \ a `404`." + example: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f + format: uuid + nullable: true + type: string required: - events - url @@ -64003,30 +65287,268 @@ components: -----END CERTIFICATE----- type: string type: object + WebhookCustomHeadersSet: + description: "A stored set of custom HTTP headers, referenced by webhooks and\ + \ by OAuth credentials through their `webhookCustomHeadersId`. On a webhook\ + \ the headers go out with every notification; on OAuth credentials they go\ + \ out on the token request to your authorization server. Header values are\ + \ write-only: only the names are returned." + example: + createdAt: 1625097600000 + headerNames: + - x-gateway-key + - x-region-tag + name: Production gateway key + id: 123e4567-e89b-12d3-a456-426614174000 + updatedAt: 1625097600000 + properties: + id: + description: "The id of the custom headers set. Pass this as a webhook's,\ + \ or OAuth credentials', `webhookCustomHeadersId` to attach it." + example: 123e4567-e89b-12d3-a456-426614174000 + format: uuid + type: string + name: + description: The label given to this set. + example: Production gateway key + type: string + headerNames: + description: "Names of the headers in the set, lowercased. Header values\ + \ are never returned." + example: + - x-gateway-key + - x-region-tag + items: + type: string + type: array + createdAt: + description: "The date and time the set was created, in milliseconds." + example: 1625097600000 + format: int64 + type: integer + updatedAt: + description: "The date and time the set was last updated, in milliseconds." + example: 1625097600000 + format: int64 + type: integer + required: + - createdAt + - headerNames + - id + - name + - updatedAt + type: object + WebhookCustomHeadersSetList: + description: Every custom headers set belonging to the workspace. Header values + are never returned. + items: + $ref: "#/components/schemas/WebhookCustomHeadersSet" + type: array + WebhookCustomHeadersMap: + additionalProperties: + description: "A string, sent as one header line, or an array of strings, sent\ + \ as one header line per element. A string may be empty. A value must not\ + \ contain control characters. An array must not be empty and is not accepted\ + \ for `Cookie` or `Authorization`." + example: abc123 + description: |- + The headers, as a map of header name to value. At least one header is required. Values are write-only; responses return only the header names, lowercased. + A value is a string, sent as one header line, or an array of strings, sent as one header line per element under the same name. `Cookie` and `Authorization` accept only a string. An empty array is rejected — leave the name out instead. Arrays are accepted whether the set is sent with a webhook's notifications or on an OAuth token request, which sends one header line per element in the same way. + At most 10 headers, counted by name — an array value counts once, however many lines it sends. Names must be valid HTTP header tokens, are case-insensitive, and are at most 128 characters. A value may be empty and has no length limit of its own; the whole object must be under 16 KB when serialized as UTF-8. A value that large may still be refused by your own endpoint, since web servers commonly cap the whole request header block at around 8 KB. + Reserved names: `Host`, `Content-Type`, `Content-Length`, `Transfer-Encoding`, `Connection`, `User-Agent`, `Accept`, `Accept-Encoding`, `Fireblocks-Signature` and `Fireblocks-Webhook-Signature` are set by Fireblocks and can never be used. The same list applies whether the set is sent with a webhook's notifications or on an OAuth token request. + `Authorization` may be set. When Fireblocks sends its own `Authorization` header, a custom one is not sent: an OAuth bearer token on a webhook that has `webhookOauthId` set, and the client credentials on the token request of OAuth credentials that use `client_secret_basic`. With no OAuth credentials on a webhook, or with `client_secret_post`, `client_secret_jwt` or `private_key_jwt` on the token request, it is sent as configured. + example: + X-Gateway-Key: abc123 + X-Forwarded-For: + - 203.0.113.7 + - 198.51.100.4 + minProperties: 1 + type: object + CreateWebhookCustomHeadersRequest: + description: "A new reusable set of custom HTTP headers. Attach it to a webhook\ + \ by passing the returned id as that webhook's `webhookCustomHeadersId`, or\ + \ to OAuth credentials as theirs. Several webhooks and OAuth credentials may\ + \ share one set, so changing it covers all of them at once." + example: + headers: + X-Gateway-Key: abc123 + X-Forwarded-For: + - 203.0.113.7 + - 198.51.100.4 + name: Production gateway key + properties: + name: + description: "A label for this set, shown when listing them." + example: Production gateway key + maxLength: 128 + minLength: 1 + type: string + headers: + additionalProperties: + description: "A string, sent as one header line, or an array of strings,\ + \ sent as one header line per element. A string may be empty. A value\ + \ must not contain control characters. An array must not be empty and\ + \ is not accepted for `Cookie` or `Authorization`." + example: abc123 + description: |- + The headers, as a map of header name to value. At least one header is required. Values are write-only; responses return only the header names, lowercased. + A value is a string, sent as one header line, or an array of strings, sent as one header line per element under the same name. `Cookie` and `Authorization` accept only a string. An empty array is rejected — leave the name out instead. Arrays are accepted whether the set is sent with a webhook's notifications or on an OAuth token request, which sends one header line per element in the same way. + At most 10 headers, counted by name — an array value counts once, however many lines it sends. Names must be valid HTTP header tokens, are case-insensitive, and are at most 128 characters. A value may be empty and has no length limit of its own; the whole object must be under 16 KB when serialized as UTF-8. A value that large may still be refused by your own endpoint, since web servers commonly cap the whole request header block at around 8 KB. + Reserved names: `Host`, `Content-Type`, `Content-Length`, `Transfer-Encoding`, `Connection`, `User-Agent`, `Accept`, `Accept-Encoding`, `Fireblocks-Signature` and `Fireblocks-Webhook-Signature` are set by Fireblocks and can never be used. The same list applies whether the set is sent with a webhook's notifications or on an OAuth token request. + `Authorization` may be set. When Fireblocks sends its own `Authorization` header, a custom one is not sent: an OAuth bearer token on a webhook that has `webhookOauthId` set, and the client credentials on the token request of OAuth credentials that use `client_secret_basic`. With no OAuth credentials on a webhook, or with `client_secret_post`, `client_secret_jwt` or `private_key_jwt` on the token request, it is sent as configured. + example: + X-Gateway-Key: abc123 + X-Forwarded-For: + - 203.0.113.7 + - 198.51.100.4 + minProperties: 1 + type: object + required: + - headers + - name + type: object + DeleteWebhookCustomHeadersResponse: + allOf: + - $ref: "#/components/schemas/WebhookCustomHeadersSet" + - properties: + detachedWebhookIds: + description: "Webhooks whose `webhookCustomHeadersId` was cleared. The\ + \ webhooks themselves are not deleted and keep delivering, just without\ + \ these headers. Empty unless `forceDelete=true` detached something." + example: + - 44fcead0-7053-4831-a53a-df7fb90d440f + items: + format: uuid + type: string + type: array + detachedWebhookOauthIds: + description: OAuth credentials whose `webhookCustomHeadersId` was cleared. + The credentials themselves are not deleted; their token requests just + no longer carry these headers. Empty unless `forceDelete=true` detached + something. + example: + - 55fcead0-7053-4831-a53a-df7fb90d440f + items: + format: uuid + type: string + type: array + required: + - detachedWebhookIds + - detachedWebhookOauthIds + type: object + description: "The deleted custom headers set, plus the ids of any webhooks and\ + \ OAuth credentials the delete detached from it. Things are only detached\ + \ by `forceDelete=true`; without it a delete is refused with `409` while anything\ + \ still uses the set." + example: + createdAt: 1625097600000 + detachedWebhookIds: + - 44fcead0-7053-4831-a53a-df7fb90d440f + headerNames: + - x-gateway-key + - x-region-tag + name: Production gateway key + detachedWebhookOauthIds: + - 55fcead0-7053-4831-a53a-df7fb90d440f + id: 123e4567-e89b-12d3-a456-426614174000 + updatedAt: 1625097600000 + WebhookCustomHeadersMapUpdate: + additionalProperties: + description: "A string, sent as one header line, or an array of strings, sent\ + \ as one header line per element, or `null` to delete the header. A string\ + \ may be empty. A value must not contain control characters. An array must\ + \ not be empty and is not accepted for `Cookie` or `Authorization`." + example: abc123 + description: |- + A delta applied to the headers. A header with a value is added or replaced, a header with `null` is deleted, and one you leave out is untouched. A value replaces what is stored under that name rather than adding to it, so an array is the complete new set of lines for that header. Names are case-insensitive, so a `null` under one casing deletes a header stored under another, and names are stored and returned lowercased. + The set cannot be emptied: a change that would leave no headers is refused with a `400`. To remove the set, delete it. The whole field cannot be `null`. + Same rules as on create: a string or a non-empty array, `Cookie` and `Authorization` string-only, 10 headers and under 16 KB in the resulting set, the same reserved names (see the create request) never allowed, and values write-only. Entries set to `null` do not count towards the limit. + The change applies to everything already using the set. Where Fireblocks sends its own `Authorization` header, a custom `Authorization` header is not sent: on a webhook that has `webhookOauthId` set (an OAuth bearer token), and on the token request of OAuth credentials that use `client_secret_basic`. + example: + X-Gateway-Key: abc123 + X-Forwarded-For: + - 203.0.113.7 + - 198.51.100.4 + X-Region-Tag: null + type: object + UpdateWebhookCustomHeadersRequest: + description: A partial update. Every field is optional and an omitted field + is left as it is. A change to `headers` applies to every webhook and OAuth + credential set using the set. + example: + headers: + X-Gateway-Key: abc123 + X-Forwarded-For: + - 203.0.113.7 + - 198.51.100.4 + X-Region-Tag: null + name: Production gateway key + properties: + name: + description: A label for this set. Omit to leave it unchanged. + example: Production gateway key + maxLength: 128 + minLength: 1 + type: string + headers: + additionalProperties: + description: "A string, sent as one header line, or an array of strings,\ + \ sent as one header line per element, or `null` to delete the header.\ + \ A string may be empty. A value must not contain control characters.\ + \ An array must not be empty and is not accepted for `Cookie` or `Authorization`." + example: abc123 + description: |- + A delta applied to the headers. A header with a value is added or replaced, a header with `null` is deleted, and one you leave out is untouched. A value replaces what is stored under that name rather than adding to it, so an array is the complete new set of lines for that header. Names are case-insensitive, so a `null` under one casing deletes a header stored under another, and names are stored and returned lowercased. + The set cannot be emptied: a change that would leave no headers is refused with a `400`. To remove the set, delete it. The whole field cannot be `null`. + Same rules as on create: a string or a non-empty array, `Cookie` and `Authorization` string-only, 10 headers and under 16 KB in the resulting set, the same reserved names (see the create request) never allowed, and values write-only. Entries set to `null` do not count towards the limit. + The change applies to everything already using the set. Where Fireblocks sends its own `Authorization` header, a custom `Authorization` header is not sent: on a webhook that has `webhookOauthId` set (an OAuth bearer token), and on the token request of OAuth credentials that use `client_secret_basic`. + example: + X-Gateway-Key: abc123 + X-Forwarded-For: + - 203.0.113.7 + - 198.51.100.4 + X-Region-Tag: null + type: object + type: object + WebhookOauthSigningAlg: + description: "Algorithm of the key pairs Fireblocks holds for OAuth credentials\ + \ using `private_key_jwt`, and so of the JWT assertions signed with them.\ + \ `RS256` and `PS256` use RSA 2048-bit keys, `ES256` uses EC P-256 keys. `RS256`\ + \ is what most authorization servers expect; `PS256` and `ES256` suit servers\ + \ on a stricter profile, such as FAPI." + enum: + - RS256 + - PS256 + - ES256 + example: RS256 + type: string WebhookOauthCredentials: description: "A stored OAuth 2.0 client credential set, referenced by webhooks\ \ through their `webhookOauthId`. Deliveries for a webhook that references\ \ one carry `Authorization: Bearer {token}`, using a token fetched from `url`\ \ and cached until it expires, so your authorization server sees far fewer\ \ token requests than deliveries. Secret material is never returned: `clientSecret`\ - \ is absent from this schema entirely, and the `customJwtClaims`, `customBodyParams`\ - \ and `customHeaders` fields are reduced to their names, without the configured\ - \ values." + \ is absent from this schema entirely, and the `customJwtClaims` and `customBodyParams`\ + \ fields are reduced to their names, without the configured values. Extra\ + \ token request headers are a separate resource, referenced by `webhookCustomHeadersId`.\ + \ The key pairs of `private_key_jwt` credentials are never returned here either;\ + \ their public halves are published at the URL in `jwksUri`." example: - createdAt: 1625097600000 clientId: my-client-id + webhookCustomHeadersId: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f + webhookMtlsId: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f + jwksUri: https://keys.fireblocks.io/webhooks-oauth/123e4567-e89b-12d3-a456-426614174000/.well-known/jwks.json + url: https://auth.example.com/oauth/token + createdAt: 1625097600000 customBodyParams: - scope - webhookMtlsId: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f customJwtClaims: - aud - resource + signingAlg: RS256 name: Production treasury gateway id: 123e4567-e89b-12d3-a456-426614174000 authMethod: client_secret_basic - url: https://auth.example.com/oauth/token - customHeaders: - - X-Api-Key updatedAt: 1625097600000 properties: id: @@ -64050,11 +65572,19 @@ components: authMethod: default: client_secret_basic description: "How the client credentials are presented to the token endpoint:\ - \ `client_secret_basic`, `client_secret_post` or `client_secret_jwt`.\ - \ Credentials created without this field report `client_secret_basic`,\ + \ `client_secret_basic`, `client_secret_post`, `client_secret_jwt` or\ + \ `private_key_jwt`. Credentials created without this field report `client_secret_basic`,\ \ which is what they use." example: client_secret_basic type: string + signingAlg: + allOf: + - $ref: "#/components/schemas/WebhookOauthSigningAlg" + description: "Algorithm of the key pairs, and of the assertions signed with\ + \ them. Present only when `authMethod` is `private_key_jwt`. Which key\ + \ is signing is never returned; each assertion names it in its `kid` header.\ + \ Defaults to `RS256` on create only." + example: RS256 customJwtClaims: description: Names of the additional claims placed in the JWT assertion. Claim values are write-only and are never returned. Absent when no custom @@ -64074,16 +65604,14 @@ components: items: type: string type: array - customHeaders: - description: "Names of the additional HTTP headers added to **the token\ - \ request sent to the authorization server** — not to the webhook delivery,\ - \ which has its own separate `customHeaders`. Header values are write-only\ - \ and are never returned. Absent when no custom headers are configured." - example: - - X-Api-Key - items: - type: string - type: array + webhookCustomHeadersId: + description: "The id of the set of custom headers added to **the token request\ + \ sent to the authorization server** — not to the webhook delivery. Absent\ + \ when the token request adds none. Header values are write-only and are\ + \ never returned; read the header names from `/v1/webhooks_settings/custom_headers/{webhookCustomHeadersId}`." + example: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f + format: uuid + type: string webhookMtlsId: description: "The id of the mTLS configuration presented to the token endpoint.\ \ Absent when the token request does not use mTLS. Read the certificate\ @@ -64102,6 +65630,14 @@ components: example: 1625097600000 format: int64 type: integer + jwksUri: + description: The public URL of these credentials' JWKS. Register it as the + client's jwks_uri on your authorization server. Present for private_key_jwt + only. + example: https://keys.fireblocks.io/webhooks-oauth/123e4567-e89b-12d3-a456-426614174000/.well-known/jwks.json + format: uri + readOnly: true + type: string required: - authMethod - clientId @@ -64121,7 +65657,7 @@ components: additionalProperties: description: Claim value. May be any JSON type except `null`. description: |- - Extra claims for the JWT assertion. Used only when `authMethod` is `client_secret_jwt`. The usual one to set is `aud`, which defaults to the token endpoint URL; some authorization servers expect their own identifier instead. + Extra claims for the JWT assertion. Used only when `authMethod` is `client_secret_jwt` or `private_key_jwt`. The usual one to set is `aud`, which defaults to the token endpoint URL; some authorization servers expect their own identifier instead. A value may be any JSON type except `null` — `null` is reserved for deleting a claim on update. `iss`, `sub`, `jti`, `iat` and `exp` are set by Fireblocks and cannot be overridden. Names are case-sensitive. The whole object must be under 16 KB. Values are write-only; responses return only the claim names. On update this merges claim by claim rather than replacing — see `WebhookOauthCustomJwtClaimsUpdate`. example: @@ -64140,36 +65676,27 @@ components: scope: payments.read payments.write nullable: true type: object - WebhookOauthCustomHeaders: - additionalProperties: - type: string - description: |- - Extra HTTP headers for **the token request to your authorization server** — not for the webhook delivery, which has its own separate `customHeaders`. A gateway API key is the usual case. - Values must be strings; an empty string is allowed. Names are matched case-insensitively, so two names differing only in case are a duplicate. Names are stored and returned lowercased, so `X-Api-Key` comes back as `x-api-key`. `Content-Type`, `Content-Length` and `Host` are set by Fireblocks and cannot be overridden. `Authorization` can be set with `client_secret_post` or `client_secret_jwt`, which send the credentials in the body — useful when your token endpoint sits behind a gateway. It is rejected with `client_secret_basic`, which sends the credentials in that header. Values have no length limit of their own; the whole object must be under 16 KB when serialized as UTF-8. - Values are write-only; responses return only the header names. On update this merges name by name rather than replacing — see `WebhookOauthCustomHeadersUpdate`. - example: - x-api-key: gateway-key - nullable: true - type: object CreateWebhookOauthRequest: description: "A new reusable OAuth 2.0 client credential set. Attach it to a\ \ webhook by passing the returned id as that webhook's `webhookOauthId`. Several\ \ webhooks may share one credential set, so rotating its client secret covers\ - \ all of them at once." + \ all of them at once. With `private_key_jwt` there is no client secret: Fireblocks\ + \ generates the key pairs itself and publishes their public halves at the\ + \ `jwksUri` it returns." example: clientId: my-client-id customBodyParams: scope: payments.read payments.write + webhookCustomHeadersId: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f webhookMtlsId: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f customJwtClaims: aud: https://auth.example.com email_verified: true + signingAlg: RS256 name: Production treasury gateway clientSecret: my-client-secret authMethod: client_secret_basic url: https://auth.example.com/oauth/token - customHeaders: - x-api-key: gateway-key properties: name: description: "A label for this credential set, shown when listing them." @@ -64184,9 +65711,11 @@ components: minLength: 1 type: string clientSecret: - description: OAuth client secret. Write-only — never returned. Limited to - 480 bytes UTF-8 encoded. With `client_secret_jwt` it signs the assertion - rather than being sent. + description: "OAuth client secret. Write-only — never returned. Limited\ + \ to 480 bytes UTF-8 encoded. With `client_secret_jwt` it signs the assertion\ + \ rather than being sent. Required with `client_secret_basic`, `client_secret_post`\ + \ and `client_secret_jwt` (`400` if missing). Must not be sent with `private_key_jwt`,\ + \ which uses a Fireblocks-held key instead (`400` otherwise)." example: my-client-secret maxLength: 480 minLength: 1 @@ -64204,14 +65733,31 @@ components: description: "How the client credentials reach the token endpoint. `client_secret_basic`\ \ uses an HTTP Basic header, `client_secret_post` uses form fields in\ \ the body, and `client_secret_jwt` sends a JWT assertion signed with\ - \ the secret, so the secret itself is never transmitted. Defaults to `client_secret_basic`." + \ the secret, so the secret itself is never transmitted. `private_key_jwt`\ + \ sends a JWT assertion signed with a private key Fireblocks generates\ + \ and holds for these credentials, so there is no shared secret at all;\ + \ your authorization server verifies it with the public keys at the `jwksUri`\ + \ returned with the credentials. Creating credentials with `private_key_jwt`\ + \ generates two key pairs, the signing key and its successor. Defaults\ + \ to `client_secret_basic`." example: client_secret_basic type: string + signingAlg: + allOf: + - $ref: "#/components/schemas/WebhookOauthSigningAlg" + description: "Algorithm of the key pairs generated for `private_key_jwt`,\ + \ and of the assertions signed with them. Defaults to `RS256` when `authMethod`\ + \ is `private_key_jwt`, where `null` is refused (`400`); omit it instead.\ + \ Only valid with `private_key_jwt`: with any other method a value is\ + \ a `400`, and `null`, meaning no algorithm, is accepted." + example: RS256 + nullable: true + type: string customJwtClaims: additionalProperties: description: Claim value. May be any JSON type except `null`. description: |- - Extra claims for the JWT assertion. Used only when `authMethod` is `client_secret_jwt`. The usual one to set is `aud`, which defaults to the token endpoint URL; some authorization servers expect their own identifier instead. + Extra claims for the JWT assertion. Used only when `authMethod` is `client_secret_jwt` or `private_key_jwt`. The usual one to set is `aud`, which defaults to the token endpoint URL; some authorization servers expect their own identifier instead. A value may be any JSON type except `null` — `null` is reserved for deleting a claim on update. `iss`, `sub`, `jti`, `iat` and `exp` are set by Fireblocks and cannot be overridden. Names are case-sensitive. The whole object must be under 16 KB. Values are write-only; responses return only the claim names. On update this merges claim by claim rather than replacing — see `WebhookOauthCustomJwtClaimsUpdate`. example: @@ -64230,32 +65776,41 @@ components: scope: payments.read payments.write nullable: true type: object - customHeaders: - additionalProperties: - type: string - description: |- - Extra HTTP headers for **the token request to your authorization server** — not for the webhook delivery, which has its own separate `customHeaders`. A gateway API key is the usual case. - Values must be strings; an empty string is allowed. Names are matched case-insensitively, so two names differing only in case are a duplicate. Names are stored and returned lowercased, so `X-Api-Key` comes back as `x-api-key`. `Content-Type`, `Content-Length` and `Host` are set by Fireblocks and cannot be overridden. `Authorization` can be set with `client_secret_post` or `client_secret_jwt`, which send the credentials in the body — useful when your token endpoint sits behind a gateway. It is rejected with `client_secret_basic`, which sends the credentials in that header. Values have no length limit of their own; the whole object must be under 16 KB when serialized as UTF-8. - Values are write-only; responses return only the header names. On update this merges name by name rather than replacing — see `WebhookOauthCustomHeadersUpdate`. - example: - x-api-key: gateway-key + webhookCustomHeadersId: + description: "The id of the set of custom HTTP headers added to **the token\ + \ request to your authorization server** — not to the webhook delivery\ + \ — from `/v1/webhooks_settings/custom_headers`. A gateway API key is\ + \ the usual case. The set can be shared with webhooks and with other credentials,\ + \ and the same rules apply as for a webhook delivery. A value is a string,\ + \ or an array of strings sent as one header line per element (`Cookie`\ + \ and `Authorization` accept only a string), the reserved header names\ + \ — the same as for a webhook delivery, including `Host`, `Content-Type`\ + \ and `Content-Length` — are set by Fireblocks and cannot be overridden,\ + \ and `Authorization` is sent with `client_secret_post` or `client_secret_jwt`,\ + \ which send the credentials in the body — useful when your token endpoint\ + \ sits behind a gateway — but is not sent with `client_secret_basic`,\ + \ where Fireblocks sends its own `Authorization` header with the credentials.\ + \ Replaces the inline `customHeaders` field, which is now refused with\ + \ a `400`, so use `webhookCustomHeadersId`. Omit, or send `null`, for\ + \ a token request with no extra headers. An unknown id, or one belonging\ + \ to another workspace, is a `404`." + example: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f + format: uuid nullable: true - type: object + type: string webhookMtlsId: description: "The id of the mTLS configuration presented to the token endpoint,\ \ from `/v1/webhooks_settings/mtls`. It can be the same configuration\ \ a webhook uses, so one certificate, signed from `GET /v1/webhooks_settings/mtls_csr`,\ \ serves both the token endpoint and the receiver. Omit, or send `null`,\ - \ for a token request without mTLS. Requires the mTLS feature to be enabled\ - \ for the workspace (`403` otherwise), a configuration of this workspace\ - \ (`404` otherwise), and one linked to a private key (`400` otherwise)." + \ for a token request without mTLS. Requires a configuration of this workspace\ + \ (`404` otherwise) that is linked to a private key (`400` otherwise)." example: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f format: uuid nullable: true type: string required: - clientId - - clientSecret - name - url type: object @@ -64281,22 +65836,23 @@ components: \ without it a delete is refused with `409` while anything still references\ \ the credentials." example: - createdAt: 1625097600000 clientId: my-client-id - customBodyParams: - - scope detachedWebhookIds: - 44fcead0-7053-4831-a53a-df7fb90d440f + webhookCustomHeadersId: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f webhookMtlsId: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f + jwksUri: https://keys.fireblocks.io/webhooks-oauth/123e4567-e89b-12d3-a456-426614174000/.well-known/jwks.json + url: https://auth.example.com/oauth/token + createdAt: 1625097600000 + customBodyParams: + - scope customJwtClaims: - aud - resource + signingAlg: RS256 name: Production treasury gateway id: 123e4567-e89b-12d3-a456-426614174000 authMethod: client_secret_basic - url: https://auth.example.com/oauth/token - customHeaders: - - X-Api-Key updatedAt: 1625097600000 WebhookOauthCustomJwtClaimsUpdate: additionalProperties: @@ -64323,40 +65879,28 @@ components: audience: null nullable: true type: object - WebhookOauthCustomHeadersUpdate: - additionalProperties: - nullable: true - type: string - description: |- - A delta applied to the token request headers — not the webhook delivery headers. A header with a value is added or replaced, a header with `null` is deleted, and one you leave out is untouched. So `{ "X-Api-Key": "new-key", "X-Tenant": null }` rotates `X-Api-Key`, drops `X-Tenant`, and changes nothing else. - Send `customHeaders: null` to clear every header in one call. That does not collide with a `null` value on a name: one names the header to delete, the other names the whole field. Names are case-insensitive, so a `null` under one casing deletes a header stored under another, and names are stored and returned lowercased. - Same rules as on create: string values only, `Content-Type`, `Content-Length` and `Host` reserved, `Authorization` only with `client_secret_post` or `client_secret_jwt`, resulting set under 16 KB, values write-only. - example: - x-api-key: gateway-key - x-tenant: null - nullable: true - type: object UpdateWebhookOauthRequest: description: |- A partial update. Every field is optional and an omitted field is left as it is, so `{ "clientSecret": "new-secret" }` rotates the secret and changes nothing else. A rotation applies to every webhook referencing these credentials. - The three custom maps merge. A key with a value is upserted, a key with `null` is deleted, a key you leave out is untouched, and the whole field set to `null` clears the map. There is no ambiguity between the two uses of `null` — one names an entry, the other names the field. `webhookMtlsId` is a scalar, so `null` there removes it. + The result is checked against the resulting `authMethod`, not just the fields sent: the secret methods must end up with a `clientSecret`, and a `signingAlg` value is only valid when the resulting method is `private_key_jwt`. + + The two custom maps merge. A key with a value is upserted, a key with `null` is deleted, a key you leave out is untouched, and the whole field set to `null` clears the map. There is no ambiguity between the two uses of `null` — one names an entry, the other names the field. `webhookMtlsId` and `webhookCustomHeadersId` are scalars, so `null` there removes them. example: clientId: my-client-id customBodyParams: scope: payments.read payments.write audience: null + webhookCustomHeadersId: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f webhookMtlsId: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f customJwtClaims: aud: https://auth.example.com resource: null + signingAlg: ES256 name: Production treasury gateway clientSecret: my-new-client-secret authMethod: client_secret_jwt url: https://auth.example.com/oauth/token - customHeaders: - x-api-key: gateway-key - x-tenant: null properties: name: description: A label for this credential set. Omit to leave it unchanged. @@ -64375,10 +65919,16 @@ components: \ encoded, so a secret using non-ASCII characters fits fewer than 480\ \ of them. Write-only — never returned in any response. Send this on its\ \ own to rotate the secret without changing anything else. Omit to leave\ - \ it unchanged." + \ it unchanged. Must not be sent with a value when the resulting `authMethod`\ + \ is `private_key_jwt` (`400` otherwise). A secret already stored from\ + \ before a switch to `private_key_jwt` is kept, unused, so switching back\ + \ needs no new one; send `null` to clear it. A secret method must still\ + \ end up with a secret, so `null` is refused unless the resulting method\ + \ is `private_key_jwt`." example: my-new-client-secret maxLength: 480 minLength: 1 + nullable: true type: string url: description: "Token endpoint URL. HTTPS on port 443 only, and the host must\ @@ -64388,10 +65938,22 @@ components: pattern: ^https:// type: string authMethod: - description: "`client_secret_basic`, `client_secret_post` or `client_secret_jwt`.\ - \ Omit to leave it unchanged — it does not revert to the default." + description: |- + `client_secret_basic`, `client_secret_post`, `client_secret_jwt` or `private_key_jwt`. Omit to leave it unchanged — it does not revert to the default. + + Switching to `private_key_jwt` brings back the key pairs these credentials held before, if they are still kept, and otherwise generates a signing key and its successor. Either way the first assertion names a `kid` your authorization server may not hold yet, so it fetches the JWKS again. Switching away from `private_key_jwt` empties `signingAlg`, and keeps the key pairs published for 30 days before deleting them, so switching back within that time restores them; it needs a `clientSecret`, either sent here or still stored. example: client_secret_jwt type: string + signingAlg: + allOf: + - $ref: "#/components/schemas/WebhookOauthSigningAlg" + description: |- + A new algorithm for the key pairs of `private_key_jwt` credentials. Omit to leave it unchanged. A value is only valid when the resulting `authMethod` is `private_key_jwt` (`400` otherwise); a switch to `private_key_jwt` that omits it uses `RS256`, or the algorithm of the key pairs it brings back. `null` means no algorithm, and is accepted only when the resulting method is `client_secret_basic`, `client_secret_post` or `client_secret_jwt`; with `private_key_jwt` it is a `400`. + + A change generates a new signing key and successor in the new algorithm, and signing switches to them at once. The previous keys stay published for 5 minutes and are kept for 30 days: changing back within that time restores them, with their original expiry, instead of generating new ones, and `revoke_key` can delete them by `kid` until then. + example: ES256 + nullable: true + type: string customJwtClaims: additionalProperties: description: "Claim value. May be any JSON type, or `null` to delete the\ @@ -64418,68 +65980,90 @@ components: audience: null nullable: true type: object - customHeaders: - additionalProperties: - nullable: true - type: string - description: |- - A delta applied to the token request headers — not the webhook delivery headers. A header with a value is added or replaced, a header with `null` is deleted, and one you leave out is untouched. So `{ "X-Api-Key": "new-key", "X-Tenant": null }` rotates `X-Api-Key`, drops `X-Tenant`, and changes nothing else. - Send `customHeaders: null` to clear every header in one call. That does not collide with a `null` value on a name: one names the header to delete, the other names the whole field. Names are case-insensitive, so a `null` under one casing deletes a header stored under another, and names are stored and returned lowercased. - Same rules as on create: string values only, `Content-Type`, `Content-Length` and `Host` reserved, `Authorization` only with `client_secret_post` or `client_secret_jwt`, resulting set under 16 KB, values write-only. - example: - x-api-key: gateway-key - x-tenant: null + webhookCustomHeadersId: + description: "The id of the set of custom HTTP headers added to the token\ + \ request, from `/v1/webhooks_settings/custom_headers`. Omit to leave\ + \ it unchanged, or send `null` to stop sending extra headers. The same\ + \ rules apply as for a webhook delivery, including the reserved header\ + \ names. Under `client_secret_basic` Fireblocks sends its own `Authorization`\ + \ header with the credentials, and a custom `Authorization` header is\ + \ not sent. Replaces the inline `customHeaders` field, which is now refused\ + \ with a `400`: use `webhookCustomHeadersId`. An unknown id, or one belonging\ + \ to another workspace, is a `404`." + example: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f + format: uuid nullable: true - type: object + type: string webhookMtlsId: description: "The id of the mTLS configuration presented to the token endpoint,\ \ from `/v1/webhooks_settings/mtls`. Omit to leave it unchanged, or send\ - \ `null` to stop using mTLS for the token request. Requires the mTLS feature\ - \ to be enabled for the workspace (`403` otherwise), a configuration of\ - \ this workspace (`404` otherwise), and one linked to a private key (`400`\ - \ otherwise)." + \ `null` to stop using mTLS for the token request. Requires a configuration\ + \ of this workspace (`404` otherwise) that is linked to a private key\ + \ (`400` otherwise)." example: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f format: uuid nullable: true type: string type: object - WebhookCustomHeadersUpdate: - additionalProperties: - description: "A string, sent as one header line, or an array of strings, sent\ - \ as one header line per element, or `null` to delete the header. A string\ - \ may be empty. A value has no length limit of its own and must not contain\ - \ control characters. An array must not be empty and is not accepted for\ - \ `Cookie` or `Authorization`." - example: abc123 - description: |- - A delta applied to the delivery headers. A header with a value is added or replaced, a header with `null` is deleted, and one you leave out is untouched. A value replaces what is stored under that name rather than adding to it, so an array is the complete new set of lines for that header. - Send `customHeaders: null` to clear every header in one call. That does not collide with a `null` value on a name: one names the header to delete, the other names the whole field. - Names are case-insensitive, so a `null` under one casing deletes a header stored under another. - Same rules as on create: string or non-empty array, `Cookie` and `Authorization` string-only, 10 headers and under 16 KB in the resulting set, the same reserved names, and values write-only. Entries set to `null` do not count towards the limit. `Authorization` cannot be combined with `webhookOauthId`, though one request may add it and detach the credentials together. + RotateWebhookOauthKeyResponse: + description: The key that was rotated out. It stays published at the `jwksUri` + of the credentials for 30 days. Fetch the JWKS from there for the current + public keys. example: - X-Gateway-Key: abc123 - X-Forwarded-For: - - 203.0.113.7 - - 198.51.100.4 - X-Region-Tag: null - nullable: true + kid: a1b2c3d4e5f60718... + properties: + kid: + description: "The `kid` of the key rotated out, the one Fireblocks was signing\ + \ with until now. It is the SHA-256 fingerprint of the public key's DER\ + \ (SPKI) encoding, in lowercase hex." + example: a1b2c3d4e5f60718... + type: string + required: + - kid + type: object + RevokeWebhookOauthKeyRequest: + description: "Which key to revoke. Omit `kid`, or send an empty body, to revoke\ + \ the key Fireblocks is signing with." + example: + kid: a1b2c3d4e5f60718... + properties: + kid: + description: "The `kid` of the key to revoke, as the JWKS at `jwksUri` lists\ + \ it: the signing key, its successor, a key rotated out and still published,\ + \ or a key left behind by a `signingAlg` change within its 30 days. Omit\ + \ to revoke the signing key; `null` is refused rather than read as omitted.\ + \ Required on credentials that no longer use `private_key_jwt`." + example: a1b2c3d4e5f60718... + maxLength: 64 + minLength: 1 + type: string + type: object + RevokeWebhookOauthKeyResponse: + description: The key that was revoked. It is no longer published at the `jwksUri` + of the credentials. Fetch the JWKS from there for the current public keys. + example: + kid: a1b2c3d4e5f60718... + properties: + kid: + description: "The `kid` of the key revoked. When the request carried no\ + \ `kid`, this is the key Fireblocks was signing with. It is the SHA-256\ + \ fingerprint of the public key's DER (SPKI) encoding, in lowercase hex." + example: a1b2c3d4e5f60718... + type: string + required: + - kid type: object UpdateWebhookRequest: example: webhookMtlsId: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f webhookOauthId: 123e4567-e89b-12d3-a456-426614174000 + webhookCustomHeadersId: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f description: This webhook is used for transactions notifications url: https://example.com/webhook events: - transaction.created - transaction.status.updated enabled: false - customHeaders: - X-Gateway-Key: abc123 - X-Forwarded-For: - - 203.0.113.7 - - 198.51.100.4 - X-Region-Tag: null properties: url: description: "The url of the webhook where notifications will be sent. URL\ @@ -64509,7 +66093,9 @@ components: description: "The id of the mTLS configuration this webhook presents when\ \ delivering, from `/v1/webhooks_settings/mtls`. Several webhooks may\ \ share one configuration, so replacing its certificate covers all of\ - \ them at once. Send `null` to stop using mTLS for this webhook." + \ them at once. Send `null` to stop using mTLS for this webhook. Requires\ + \ advanced webhook controls to be enabled for the workspace (`403` otherwise),\ + \ except to detach." example: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f format: uuid nullable: true @@ -64518,34 +66104,30 @@ components: description: "The id of the OAuth credentials this webhook authenticates\ \ with, from `/v1/webhooks_settings/oauth`. Several webhooks may share\ \ one credential set, so rotating its client secret covers all of them\ - \ at once. Send `null` to stop using OAuth for this webhook. Cannot be\ - \ combined with an `authorization` custom header on the same webhook;\ - \ a request that would leave both set is rejected." + \ at once. Send `null` to stop using OAuth for this webhook. When the\ + \ webhook has OAuth credentials, Fireblocks sends its own `Authorization`\ + \ header (the bearer token), and a custom `Authorization` header from\ + \ the attached set is not sent. Requires advanced webhook controls to\ + \ be enabled for the workspace (`403` otherwise), except to detach." example: 123e4567-e89b-12d3-a456-426614174000 format: uuid nullable: true type: string - customHeaders: - additionalProperties: - description: "A string, sent as one header line, or an array of strings,\ - \ sent as one header line per element, or `null` to delete the header.\ - \ A string may be empty. A value has no length limit of its own and\ - \ must not contain control characters. An array must not be empty and\ - \ is not accepted for `Cookie` or `Authorization`." - example: abc123 - description: |- - A delta applied to the delivery headers. A header with a value is added or replaced, a header with `null` is deleted, and one you leave out is untouched. A value replaces what is stored under that name rather than adding to it, so an array is the complete new set of lines for that header. - Send `customHeaders: null` to clear every header in one call. That does not collide with a `null` value on a name: one names the header to delete, the other names the whole field. - Names are case-insensitive, so a `null` under one casing deletes a header stored under another. - Same rules as on create: string or non-empty array, `Cookie` and `Authorization` string-only, 10 headers and under 16 KB in the resulting set, the same reserved names, and values write-only. Entries set to `null` do not count towards the limit. `Authorization` cannot be combined with `webhookOauthId`, though one request may add it and detach the credentials together. - example: - X-Gateway-Key: abc123 - X-Forwarded-For: - - 203.0.113.7 - - 198.51.100.4 - X-Region-Tag: null + webhookCustomHeadersId: + description: "The id of the set of custom HTTP headers sent with this webhook's\ + \ notifications, from `/v1/webhooks_settings/custom_headers`. Several\ + \ webhooks, and OAuth credentials, may share one set, so changing it covers\ + \ all of them at once. Validated when the set is created or changed; attaching\ + \ checks only that it exists in your workspace. Send `null` to stop sending\ + \ custom headers with this webhook. Replaces the inline `customHeaders`\ + \ field, which is now refused with a `400`, so use `webhookCustomHeadersId`.\ + \ Requires advanced webhook controls to be enabled for the workspace (`403`\ + \ otherwise), except to detach. An unknown id, or one belonging to another\ + \ workspace, is a `404`." + example: 6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f + format: uuid nullable: true - type: object + type: string type: object WebhookMetric: example: @@ -70167,7 +71749,9 @@ components: example: inflation: "0.000856038" mev: "0.000123456" - lastRewardSyncedAt: 2023-07-13T15:55:34.256Z + lastRewardSyncedAt: 2026-11-12T08:30:00.000Z + latestInflationRewardDate: 2026-11-10 + latestMevRewardDate: 2026-11-10 properties: inflation: description: "The inflation reward amount earned by the position, measured\ @@ -70180,10 +71764,29 @@ components: example: "0.000123456" type: string lastRewardSyncedAt: - description: The last time the rewards were synced (ISO Date). - example: 2023-07-13T15:55:34.256Z + description: "The time (UTC) of the last sync that fetched this position's\ + \ rewards from the rewards provider. It is updated on every sync, including\ + \ when nothing new was found, so it is not the date of the newest reward\ + \ (see latestInflationRewardDate and latestMevRewardDate)." + example: 2026-11-12T08:30:00Z format: date-time type: string + latestInflationRewardDate: + description: "The date (UTC, YYYY-MM-DD) of the newest inflation reward\ + \ the rewards provider has returned for this stake account. Null until\ + \ the provider returns one." + example: 2026-11-10 + format: date + nullable: true + type: string + latestMevRewardDate: + description: "The date (UTC, YYYY-MM-DD) of the newest MEV reward the rewards\ + \ provider has returned for this stake account. Null until the provider\ + \ returns one, and for validators without MEV rewards." + example: 2026-11-10 + format: date + nullable: true + type: string required: - inflation - lastRewardSyncedAt @@ -77315,6 +78918,11 @@ components: type: string type: array TravelRuleAddress: + example: + city: New York + street: 1234 Example St + postalCode: "10001" + state: NY properties: street: description: Street address @@ -77334,6 +78942,23 @@ components: type: string type: object TravelRuleValidateTransactionRequest: + example: + beneficiaryVASPname: HelloCrypto + transactionAsset: BTC + originatorEqualsBeneficiary: false + beneficiaryAccountNumber: 1234-1234-1234-12234 + beneficiaryName: John Doe + transactionAmount: "10" + transactionAssetDecimals: 8 + travelRuleBehavior: true + destination: bc1qxy2kgdygjrsqtzq2n0yrf1234p83kkfjhx0wlh + beneficiaryAddress: + city: New York + street: 1234 Example St + postalCode: "10001" + state: NY + originatorVASPdid: did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2 + beneficiaryVASPdid: did:ethr:0x46a7ed5813ce735387df2bfb245bd7722e0de992 properties: transactionAsset: description: "Transaction asset symbol (BTC,ETH)" @@ -88388,21 +90013,20 @@ components: type: string - $ref: "#/components/schemas/InitiatorConfig" AssetTypesConfig: - description: List of asset types + description: List of asset IDs the rule applies to example: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH items: - $ref: "#/components/schemas/AssetTypesConfig_inner" + description: "Asset ID (e.g. BTC, ETH, USDC_ETH), or \"*\" to match all assets." + type: string type: array AssetConfig: description: Policy asset configuration example: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES properties: @@ -88411,13 +90035,14 @@ components: example: false type: boolean assetTypes: - description: List of asset types + description: List of asset IDs the rule applies to example: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH items: - $ref: "#/components/schemas/AssetTypesConfig_inner" + description: "Asset ID (e.g. BTC, ETH, USDC_ETH), or \"*\" to match all\ + \ assets." + type: string type: array operator: $ref: "#/components/schemas/PolicyOperator" @@ -89153,9 +90778,8 @@ components: - id: tag_001 baseAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES type: TRANSFER @@ -89167,9 +90791,8 @@ components: isGlobalPolicy: false quoteAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES side: BUY @@ -89256,9 +90879,8 @@ components: subType: TRANSFER asset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES account: @@ -89441,9 +91063,8 @@ components: - id: tag_001 baseAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES type: TRANSFER @@ -89455,9 +91076,8 @@ components: isGlobalPolicy: false quoteAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES side: BUY @@ -89544,9 +91164,8 @@ components: subType: TRANSFER asset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES account: @@ -89612,9 +91231,8 @@ components: - id: tag_001 baseAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES type: TRANSFER @@ -89626,9 +91244,8 @@ components: isGlobalPolicy: false quoteAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES side: BUY @@ -89715,9 +91332,8 @@ components: subType: TRANSFER asset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES account: @@ -90001,9 +91617,8 @@ components: - id: tag_001 baseAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES type: TRANSFER @@ -90015,9 +91630,8 @@ components: isGlobalPolicy: false quoteAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES side: BUY @@ -90104,9 +91718,8 @@ components: subType: TRANSFER asset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES account: @@ -90172,9 +91785,8 @@ components: - id: tag_001 baseAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES type: TRANSFER @@ -90186,9 +91798,8 @@ components: isGlobalPolicy: false quoteAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES side: BUY @@ -90275,9 +91886,8 @@ components: subType: TRANSFER asset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES account: @@ -90363,9 +91973,8 @@ components: - id: tag_001 baseAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES type: TRANSFER @@ -90377,9 +91986,8 @@ components: isGlobalPolicy: false quoteAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES side: BUY @@ -90466,9 +92074,8 @@ components: subType: TRANSFER asset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES account: @@ -90534,9 +92141,8 @@ components: - id: tag_001 baseAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES type: TRANSFER @@ -90548,9 +92154,8 @@ components: isGlobalPolicy: false quoteAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES side: BUY @@ -90637,9 +92242,8 @@ components: subType: TRANSFER asset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES account: @@ -90747,9 +92351,8 @@ components: - id: tag_001 baseAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES type: TRANSFER @@ -90761,9 +92364,8 @@ components: isGlobalPolicy: false quoteAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES side: BUY @@ -90850,9 +92452,8 @@ components: subType: TRANSFER asset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES account: @@ -90918,9 +92519,8 @@ components: - id: tag_001 baseAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES type: TRANSFER @@ -90932,9 +92532,8 @@ components: isGlobalPolicy: false quoteAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES side: BUY @@ -91021,9 +92620,8 @@ components: subType: TRANSFER asset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES account: @@ -91130,9 +92728,8 @@ components: - id: tag_001 baseAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES type: TRANSFER @@ -91144,9 +92741,8 @@ components: isGlobalPolicy: false quoteAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES side: BUY @@ -91233,9 +92829,8 @@ components: subType: TRANSFER asset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES account: @@ -91301,9 +92896,8 @@ components: - id: tag_001 baseAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES type: TRANSFER @@ -91315,9 +92909,8 @@ components: isGlobalPolicy: false quoteAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES side: BUY @@ -91404,9 +92997,8 @@ components: subType: TRANSFER asset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES account: @@ -91538,180 +93130,8 @@ components: - id: tag_001 baseAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - type: TRANSFER - quoteAmount: - range: - min: "100" - max: "10000" - id: policy_rule_001 - isGlobalPolicy: false - quoteAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - side: BUY - amount: - range: - min: "100" - max: "10000" - currency: USD - method: '*' - screeningMetadata: - sourceAddress: 0x123... - provider: CHAINALYSIS - exposureType: DIRECT - destAddress: 0x456... - name: - - name - - name - riskScore: "0.8" - category: - - category - - category - riskRating: MEDIUM - categoryId: - - categoryId - - categoryId - direction: OUTBOUND - status: COMPLETED - derivationPath: - path: - - 44 - - 0 - - 0 - - 0 - - 0 - partial: false - dAppAddress: - urls: - - '*' - tenantWhitelisted: - - uniswap.com - - opensea.io - globalWhitelisted: - - rabby.io - - jup.ag - operator: INCLUDES - index: 1 - amountOverTime: - timePeriod: - seconds: "86400" - initiator: PER_SINGLE_MATCH - destination: PER_SINGLE_MATCH - source: PER_SINGLE_MATCH - range: - min: "100" - max: "10000" - currency: USD - baseAmount: - range: - min: "100" - max: "10000" - externalDescriptor: High value transfer policy for institutional clients - programCall: - allowedSolanaProgramCalls: WHITELISTED - verdict: - designatedSigners: - groups: - - group1 - - group2 - type: SINGLE - users: - - user1 - - user2 - action: ALLOW - approvers: - canInitiatorApprove: false - approvalGroups: - - threshold: 2 - users: - - user1 - - user2 - allowOperatorAsAuthorizer: false - operator: AND - name: High Value Transfer Policy - subType: TRANSFER - asset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - account: - ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: - - VAULT - - VAULT - matchFrom: ACCOUNT - operator: INCLUDES - tags: - - id: tag_001 - - id: tag_001 - - initiator: '*' - destination: - type: - - EXTERNAL - operator: INCLUDES - addressType: WHITELISTED - policyEngineVersion: v2 - source: - ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: - - VAULT - - UNMANAGED - matchFrom: ACCOUNT - operator: INCLUDES - tags: - - id: tag_001 - - id: tag_001 - baseAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES type: TRANSFER @@ -91723,9 +93143,8 @@ components: isGlobalPolicy: false quoteAsset: assetTypes: - - FUNGIBLE - - NFT - - '*' + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES side: BUY @@ -91812,9 +93231,176 @@ components: subType: TRANSFER asset: assetTypes: - - FUNGIBLE - - NFT + - BTC + - USDC_ETH + nftTransfer: false + operator: INCLUDES + account: + ids: + - address: 0x123... + subType: INTERNAL + id: account123 + type: VAULT + - address: 0x123... + subType: INTERNAL + id: account123 + type: VAULT + subType: + - address: 0x123... + subType: INTERNAL + id: account123 + type: VAULT + - address: 0x123... + subType: INTERNAL + id: account123 + type: VAULT + type: + - VAULT + - VAULT + matchFrom: ACCOUNT + operator: INCLUDES + tags: + - id: tag_001 + - id: tag_001 + - initiator: '*' + destination: + type: + - EXTERNAL + operator: INCLUDES + addressType: WHITELISTED + policyEngineVersion: v2 + source: + ids: + - address: 0x123... + subType: INTERNAL + id: account123 + type: VAULT + - address: 0x123... + subType: INTERNAL + id: account123 + type: VAULT + subType: + - address: 0x123... + subType: INTERNAL + id: account123 + type: VAULT + - address: 0x123... + subType: INTERNAL + id: account123 + type: VAULT + type: + - VAULT + - UNMANAGED + matchFrom: ACCOUNT + operator: INCLUDES + tags: + - id: tag_001 + - id: tag_001 + baseAsset: + assetTypes: + - BTC + - USDC_ETH + nftTransfer: false + operator: INCLUDES + type: TRANSFER + quoteAmount: + range: + min: "100" + max: "10000" + id: policy_rule_001 + isGlobalPolicy: false + quoteAsset: + assetTypes: + - BTC + - USDC_ETH + nftTransfer: false + operator: INCLUDES + side: BUY + amount: + range: + min: "100" + max: "10000" + currency: USD + method: '*' + screeningMetadata: + sourceAddress: 0x123... + provider: CHAINALYSIS + exposureType: DIRECT + destAddress: 0x456... + name: + - name + - name + riskScore: "0.8" + category: + - category + - category + riskRating: MEDIUM + categoryId: + - categoryId + - categoryId + direction: OUTBOUND + status: COMPLETED + derivationPath: + path: + - 44 + - 0 + - 0 + - 0 + - 0 + partial: false + dAppAddress: + urls: - '*' + tenantWhitelisted: + - uniswap.com + - opensea.io + globalWhitelisted: + - rabby.io + - jup.ag + operator: INCLUDES + index: 1 + amountOverTime: + timePeriod: + seconds: "86400" + initiator: PER_SINGLE_MATCH + destination: PER_SINGLE_MATCH + source: PER_SINGLE_MATCH + range: + min: "100" + max: "10000" + currency: USD + baseAmount: + range: + min: "100" + max: "10000" + externalDescriptor: High value transfer policy for institutional clients + programCall: + allowedSolanaProgramCalls: WHITELISTED + verdict: + designatedSigners: + groups: + - group1 + - group2 + type: SINGLE + users: + - user1 + - user2 + action: ALLOW + approvers: + canInitiatorApprove: false + approvalGroups: + - threshold: 2 + users: + - user1 + - user2 + allowOperatorAsAuthorizer: false + operator: AND + name: High Value Transfer Policy + subType: TRANSFER + asset: + assetTypes: + - BTC + - USDC_ETH nftTransfer: false operator: INCLUDES account: @@ -91896,6 +93482,101 @@ components: - rules - status type: object + ReadOnlyDraftResponse: + description: Response object for the read-only draft operation + example: + draftId: draft-123 + metadata: + TRANSFER: + editedBy: user123 + editedAt: 2024-01-15T10:30:00Z + publishedBy: user456 + publishedAt: 2024-01-15T11:00:00Z + rules: [] + status: SUCCESS + properties: + status: + description: Operation status + example: SUCCESS + type: string + rules: + description: Draft rules + example: [] + items: + $ref: "#/components/schemas/PolicyRule" + type: array + draftId: + description: Draft unique id. null when no draft is stored; the active policy + is returned + example: draft-123 + nullable: true + type: string + metadata: + additionalProperties: + $ref: "#/components/schemas/PolicyMetadataEntry" + description: Policy metadata keyed by policy type + example: + TRANSFER: + editedBy: user123 + editedAt: 2024-01-15T10:30:00Z + publishedBy: user456 + publishedAt: 2024-01-15T11:00:00Z + type: object + required: + - draftId + - metadata + - rules + - status + type: object + ReadOnlyDraftReviewAndValidationResponse: + description: Read-only draft validation + example: + draftResponse: + draftId: draft-123 + metadata: + TRANSFER: + editedBy: user123 + editedAt: 2024-01-15T10:30:00Z + publishedBy: user456 + publishedAt: 2024-01-15T11:00:00Z + rules: [] + status: SUCCESS + validation: + checkResult: + results: + - index: 6.027456183070403 + errors: + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + status: ok + - index: 6.027456183070403 + errors: + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + status: ok + errors: 0.8008281904610115 + status: status + properties: + draftResponse: + $ref: "#/components/schemas/ReadOnlyDraftResponse" + validation: + $ref: "#/components/schemas/PolicyValidation" + required: + - draftResponse + - validation + type: object PolicyRuleQuotaParticipant: description: Participant identifier for AOT quota calculation example: @@ -92240,7 +93921,9 @@ components: description: The ID of the user type: string whitelistedIps: - description: List of whitelisted ip addresses + description: "Allowlist entries. Each item is an IPv4 address (10.0.0.1),\ + \ an IPv4 CIDR (10.0.0.0/24), an IPv4 range (10.0.0.1-10.0.0.50), or an\ + \ IPv6 address (2001:db8::1)." items: type: string nullable: true @@ -96943,12 +98626,6 @@ components: example: No change needed. The current status is false type: string type: object - AssetTypesConfig_inner: - oneOf: - - type: string - - enum: - - '*' - type: string ApproversConfig_approvalGroups_inner: properties: threshold: diff --git a/build.gradle b/build.gradle index 350efc73..d43e483e 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'eclipse' apply plugin: 'com.diffplug.spotless' group = 'com.fireblocks.sdk' -version = '36.2.0' +version = '0.0.0' buildscript { repositories { diff --git a/docs/ApprovalsBetaApi.md b/docs/ApprovalsApi.md similarity index 93% rename from docs/ApprovalsBetaApi.md rename to docs/ApprovalsApi.md index fcd13bd9..2e63d4a3 100644 --- a/docs/ApprovalsBetaApi.md +++ b/docs/ApprovalsApi.md @@ -1,16 +1,16 @@ -# ApprovalsBetaApi +# ApprovalsApi All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**approveApproval**](ApprovalsBetaApi.md#approveApproval) | **POST** /approvals/{requestId}/approve | Approve an approval request | -| [**createApprovalKey**](ApprovalsBetaApi.md#createApprovalKey) | **POST** /management/api_users/{userId}/approval_keys | Register an approval key | -| [**deleteApprovalKey**](ApprovalsBetaApi.md#deleteApprovalKey) | **DELETE** /management/api_users/{userId}/approval_keys/{keyId} | Delete an approval key | -| [**getApprovalById**](ApprovalsBetaApi.md#getApprovalById) | **GET** /approvals/{requestId} | Get a single approval request | -| [**getApprovalKeys**](ApprovalsBetaApi.md#getApprovalKeys) | **GET** /management/api_users/{userId}/approval_keys | List approval keys | -| [**getApprovals**](ApprovalsBetaApi.md#getApprovals) | **GET** /approvals | List approval requests | -| [**rejectApproval**](ApprovalsBetaApi.md#rejectApproval) | **POST** /approvals/{requestId}/reject | Reject an approval request | +| [**approveApproval**](ApprovalsApi.md#approveApproval) | **POST** /approvals/{requestId}/approve | Approve an approval request | +| [**createApprovalKey**](ApprovalsApi.md#createApprovalKey) | **POST** /management/api_users/{userId}/approval_keys | Register an approval key | +| [**deleteApprovalKey**](ApprovalsApi.md#deleteApprovalKey) | **DELETE** /management/api_users/{userId}/approval_keys/{keyId} | Delete an approval key | +| [**getApprovalById**](ApprovalsApi.md#getApprovalById) | **GET** /approvals/{requestId} | Get a single approval request | +| [**getApprovalKeys**](ApprovalsApi.md#getApprovalKeys) | **GET** /management/api_users/{userId}/approval_keys | List approval keys | +| [**getApprovals**](ApprovalsApi.md#getApprovals) | **GET** /approvals | List approval requests | +| [**rejectApproval**](ApprovalsApi.md#rejectApproval) | **POST** /approvals/{requestId}/reject | Reject an approval request | @@ -33,7 +33,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ApprovalsBetaApi; +import com.fireblocks.sdk.api.ApprovalsApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -49,12 +49,12 @@ public class Example { String requestId = "18055"; // String | The approval request ID. String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. try { - CompletableFuture> response = fireblocks.approvalsBeta().approveApproval(approveApprovalRequest, requestId, idempotencyKey); + CompletableFuture> response = fireblocks.approvals().approveApproval(approveApprovalRequest, requestId, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ApprovalsBetaApi#approveApproval"); + System.err.println("Exception when calling ApprovalsApi#approveApproval"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -113,7 +113,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ApprovalsBetaApi; +import com.fireblocks.sdk.api.ApprovalsApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -129,13 +129,13 @@ public class Example { String userId = "8f3c1a2e-4b7d-4c91-a0e5-2d6f8b1c3a94"; // String | The ID of the API user to register the approval key for. String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. try { - CompletableFuture> response = fireblocks.approvalsBeta().createApprovalKey(registerApprovalApiKeyRequest, userId, idempotencyKey); + CompletableFuture> response = fireblocks.approvals().createApprovalKey(registerApprovalApiKeyRequest, userId, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ApprovalsBetaApi#createApprovalKey"); + System.err.println("Exception when calling ApprovalsApi#createApprovalKey"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -195,7 +195,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ApprovalsBetaApi; +import com.fireblocks.sdk.api.ApprovalsApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -211,13 +211,13 @@ public class Example { String keyId = "fab543c0-d6be-414c-aa05-5c6c84269d7a"; // String | The ID of the approval key to delete. String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. try { - CompletableFuture> response = fireblocks.approvalsBeta().deleteApprovalKey(userId, keyId, idempotencyKey); + CompletableFuture> response = fireblocks.approvals().deleteApprovalKey(userId, keyId, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ApprovalsBetaApi#deleteApprovalKey"); + System.err.println("Exception when calling ApprovalsApi#deleteApprovalKey"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -277,7 +277,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ApprovalsBetaApi; +import com.fireblocks.sdk.api.ApprovalsApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -293,13 +293,13 @@ public class Example { String userId = "8f3c1a2e-4b7d-4c91-a0e5-2d6f8b1c3a94"; // String | Report `userStatus` for this user instead of the authenticated user. This selects whose approval state is returned; it does not change which requests can be fetched. Requires an Admin, Non-Signing Admin, Security Admin or Security Auditor role; other roles are rejected with 403. String quorumStatusMode = "NONE"; // String | How much quorum detail to include in `quorumStatus`. `NONE` (the default) returns it as `null`. `SUMMARY` returns the approval thresholds, current counts and status. `FULL` adds `users` and the per-group `members` indexes identifying who may approve and who already has. Any other value is rejected with 400; the parameter is case-sensitive. try { - CompletableFuture> response = fireblocks.approvalsBeta().getApprovalById(requestId, userId, quorumStatusMode); + CompletableFuture> response = fireblocks.approvals().getApprovalById(requestId, userId, quorumStatusMode); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ApprovalsBetaApi#getApprovalById"); + System.err.println("Exception when calling ApprovalsApi#getApprovalById"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -358,7 +358,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ApprovalsBetaApi; +import com.fireblocks.sdk.api.ApprovalsApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -374,13 +374,13 @@ public class Example { Integer pageSize = 10; // Integer | Number of results per page. Maximum 15. Defaults to 10. String pageCursor = "pageCursor_example"; // String | Cursor returned from the previous response (the `next` field) to fetch the next page. try { - CompletableFuture> response = fireblocks.approvalsBeta().getApprovalKeys(userId, pageSize, pageCursor); + CompletableFuture> response = fireblocks.approvals().getApprovalKeys(userId, pageSize, pageCursor); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ApprovalsBetaApi#getApprovalKeys"); + System.err.println("Exception when calling ApprovalsApi#getApprovalKeys"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -439,7 +439,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ApprovalsBetaApi; +import com.fireblocks.sdk.api.ApprovalsApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -458,13 +458,13 @@ public class Example { Integer pageSize = 20; // Integer | Number of results per page. Maximum 30. Defaults to 20. String pageCursor = "pageCursor_example"; // String | Cursor returned from the previous response (the `next` field) to fetch the next page. try { - CompletableFuture> response = fireblocks.approvalsBeta().getApprovals(includeUserApproved, userId, includeAllUsers, quorumStatusMode, pageSize, pageCursor); + CompletableFuture> response = fireblocks.approvals().getApprovals(includeUserApproved, userId, includeAllUsers, quorumStatusMode, pageSize, pageCursor); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ApprovalsBetaApi#getApprovals"); + System.err.println("Exception when calling ApprovalsApi#getApprovals"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -526,7 +526,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ApprovalsBetaApi; +import com.fireblocks.sdk.api.ApprovalsApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -541,12 +541,12 @@ public class Example { String requestId = "18055"; // String | The approval request ID. String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. try { - CompletableFuture> response = fireblocks.approvalsBeta().rejectApproval(requestId, idempotencyKey); + CompletableFuture> response = fireblocks.approvals().rejectApproval(requestId, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ApprovalsBetaApi#rejectApproval"); + System.err.println("Exception when calling ApprovalsApi#rejectApproval"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); diff --git a/docs/AssetConfig.md b/docs/AssetConfig.md index 46e0fc7b..5a40eda2 100644 --- a/docs/AssetConfig.md +++ b/docs/AssetConfig.md @@ -9,7 +9,7 @@ Policy asset configuration | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**nftTransfer** | **Boolean** | Whether this is an NFT transfer | | -|**assetTypes** | [**List<AssetTypesConfigInner>**](AssetTypesConfigInner.md) | List of asset types | [optional] | +|**assetTypes** | **List<String>** | List of asset IDs the rule applies to | [optional] | |**operator** | **PolicyOperator** | | [optional] | diff --git a/docs/AssetTypesConfigInner.md b/docs/AssetTypesConfigInner.md deleted file mode 100644 index cfe60ed9..00000000 --- a/docs/AssetTypesConfigInner.md +++ /dev/null @@ -1,28 +0,0 @@ - - -# AssetTypesConfigInner - -## oneOf schemas -* [String](String.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.AssetTypesConfigInner; -import com.fireblocks.sdk.model.String; - -public class Example { - public static void main(String[] args) { - AssetTypesConfigInner exampleAssetTypesConfigInner = new AssetTypesConfigInner(); - - // create a new String - String exampleString = new String(); - // set AssetTypesConfigInner to String - exampleAssetTypesConfigInner.setActualInstance(exampleString); - // to get back the String set earlier - String testString = (String) exampleAssetTypesConfigInner.getActualInstance(); - } -} -``` - - diff --git a/docs/BlockchainLinkBetaApi.md b/docs/BlockchainLinkApi.md similarity index 89% rename from docs/BlockchainLinkBetaApi.md rename to docs/BlockchainLinkApi.md index 3a47daf4..cffe7d71 100644 --- a/docs/BlockchainLinkBetaApi.md +++ b/docs/BlockchainLinkApi.md @@ -1,18 +1,18 @@ -# BlockchainLinkBetaApi +# BlockchainLinkApi All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**activateBlockchainLinkChain**](BlockchainLinkBetaApi.md#activateBlockchainLinkChain) | **POST** /blockchain_link/blockchains/{blockchainId}/activate | Activate a blockchain (triggers activation workflow) | -| [**createBlockchainLinkChain**](BlockchainLinkBetaApi.md#createBlockchainLinkChain) | **POST** /blockchain_link/blockchains | Create a new blockchain | -| [**deleteBlockchainLinkChain**](BlockchainLinkBetaApi.md#deleteBlockchainLinkChain) | **DELETE** /blockchain_link/blockchains/{blockchainId} | Delete a blockchain | -| [**getBlockchainLinkBillingInfo**](BlockchainLinkBetaApi.md#getBlockchainLinkBillingInfo) | **GET** /blockchain_link/blockchains/billing_info | Get tenant billing info | -| [**getBlockchainLinkChain**](BlockchainLinkBetaApi.md#getBlockchainLinkChain) | **GET** /blockchain_link/blockchains/{blockchainId} | Get a blockchain by ID | -| [**getBlockchainLinkTestWalletAddress**](BlockchainLinkBetaApi.md#getBlockchainLinkTestWalletAddress) | **GET** /blockchain_link/blockchains/test_wallet_address | Get the test wallet address | -| [**listBlockchainLinkChains**](BlockchainLinkBetaApi.md#listBlockchainLinkChains) | **GET** /blockchain_link/blockchains | List blockchains with pagination and filtering | -| [**triggerBlockchainLinkValidation**](BlockchainLinkBetaApi.md#triggerBlockchainLinkValidation) | **POST** /blockchain_link/blockchains/{blockchainId}/validate | Trigger validation workflow | -| [**updateBlockchainLinkChain**](BlockchainLinkBetaApi.md#updateBlockchainLinkChain) | **PUT** /blockchain_link/blockchains/{blockchainId} | Update a blockchain | +| [**activateBlockchainLinkChain**](BlockchainLinkApi.md#activateBlockchainLinkChain) | **POST** /blockchain_link/blockchains/{blockchainId}/activate | Activate a blockchain (triggers activation workflow) | +| [**createBlockchainLinkChain**](BlockchainLinkApi.md#createBlockchainLinkChain) | **POST** /blockchain_link/blockchains | Create a new blockchain | +| [**deleteBlockchainLinkChain**](BlockchainLinkApi.md#deleteBlockchainLinkChain) | **DELETE** /blockchain_link/blockchains/{blockchainId} | Delete a blockchain | +| [**getBlockchainLinkBillingInfo**](BlockchainLinkApi.md#getBlockchainLinkBillingInfo) | **GET** /blockchain_link/blockchains/billing_info | Get tenant billing info | +| [**getBlockchainLinkChain**](BlockchainLinkApi.md#getBlockchainLinkChain) | **GET** /blockchain_link/blockchains/{blockchainId} | Get a blockchain by ID | +| [**getBlockchainLinkTestWalletAddress**](BlockchainLinkApi.md#getBlockchainLinkTestWalletAddress) | **GET** /blockchain_link/blockchains/test_wallet_address | Get the test wallet address | +| [**listBlockchainLinkChains**](BlockchainLinkApi.md#listBlockchainLinkChains) | **GET** /blockchain_link/blockchains | List blockchains with pagination and filtering | +| [**triggerBlockchainLinkValidation**](BlockchainLinkApi.md#triggerBlockchainLinkValidation) | **POST** /blockchain_link/blockchains/{blockchainId}/validate | Trigger validation workflow | +| [**updateBlockchainLinkChain**](BlockchainLinkApi.md#updateBlockchainLinkChain) | **PUT** /blockchain_link/blockchains/{blockchainId} | Update a blockchain | @@ -35,7 +35,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.BlockchainLinkBetaApi; +import com.fireblocks.sdk.api.BlockchainLinkApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -50,13 +50,13 @@ public class Example { String blockchainId = "blockchainId_example"; // String | Required blockchain ID to activate String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. try { - CompletableFuture> response = fireblocks.blockchainLinkBeta().activateBlockchainLinkChain(blockchainId, idempotencyKey); + CompletableFuture> response = fireblocks.blockchainLink().activateBlockchainLinkChain(blockchainId, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling BlockchainLinkBetaApi#activateBlockchainLinkChain"); + System.err.println("Exception when calling BlockchainLinkApi#activateBlockchainLinkChain"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -114,7 +114,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.BlockchainLinkBetaApi; +import com.fireblocks.sdk.api.BlockchainLinkApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -129,13 +129,13 @@ public class Example { CreateBlockchainRequest createBlockchainRequest = new CreateBlockchainRequest(); // CreateBlockchainRequest | String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. try { - CompletableFuture> response = fireblocks.blockchainLinkBeta().createBlockchainLinkChain(createBlockchainRequest, idempotencyKey); + CompletableFuture> response = fireblocks.blockchainLink().createBlockchainLinkChain(createBlockchainRequest, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling BlockchainLinkBetaApi#createBlockchainLinkChain"); + System.err.println("Exception when calling BlockchainLinkApi#createBlockchainLinkChain"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -193,7 +193,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.BlockchainLinkBetaApi; +import com.fireblocks.sdk.api.BlockchainLinkApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -207,12 +207,12 @@ public class Example { String blockchainId = "blockchainId_example"; // String | tenant_id is extracted from JWT token context try { - CompletableFuture> response = fireblocks.blockchainLinkBeta().deleteBlockchainLinkChain(blockchainId); + CompletableFuture> response = fireblocks.blockchainLink().deleteBlockchainLinkChain(blockchainId); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling BlockchainLinkBetaApi#deleteBlockchainLinkChain"); + System.err.println("Exception when calling BlockchainLinkApi#deleteBlockchainLinkChain"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -269,7 +269,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.BlockchainLinkBetaApi; +import com.fireblocks.sdk.api.BlockchainLinkApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -282,13 +282,13 @@ public class Example { Fireblocks fireblocks = new Fireblocks(configurationOptions); try { - CompletableFuture> response = fireblocks.blockchainLinkBeta().getBlockchainLinkBillingInfo(); + CompletableFuture> response = fireblocks.blockchainLink().getBlockchainLinkBillingInfo(); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling BlockchainLinkBetaApi#getBlockchainLinkBillingInfo"); + System.err.println("Exception when calling BlockchainLinkApi#getBlockchainLinkBillingInfo"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -342,7 +342,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.BlockchainLinkBetaApi; +import com.fireblocks.sdk.api.BlockchainLinkApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -356,13 +356,13 @@ public class Example { String blockchainId = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | ID of the blockchain to retrieve (supplied as a path parameter). try { - CompletableFuture> response = fireblocks.blockchainLinkBeta().getBlockchainLinkChain(blockchainId); + CompletableFuture> response = fireblocks.blockchainLink().getBlockchainLinkChain(blockchainId); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling BlockchainLinkBetaApi#getBlockchainLinkChain"); + System.err.println("Exception when calling BlockchainLinkApi#getBlockchainLinkChain"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -419,7 +419,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.BlockchainLinkBetaApi; +import com.fireblocks.sdk.api.BlockchainLinkApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -432,13 +432,13 @@ public class Example { Fireblocks fireblocks = new Fireblocks(configurationOptions); try { - CompletableFuture> response = fireblocks.blockchainLinkBeta().getBlockchainLinkTestWalletAddress(); + CompletableFuture> response = fireblocks.blockchainLink().getBlockchainLinkTestWalletAddress(); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling BlockchainLinkBetaApi#getBlockchainLinkTestWalletAddress"); + System.err.println("Exception when calling BlockchainLinkApi#getBlockchainLinkTestWalletAddress"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -492,7 +492,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.BlockchainLinkBetaApi; +import com.fireblocks.sdk.api.BlockchainLinkApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -513,13 +513,13 @@ public class Example { String order = "ASC"; // String | Sort order. Default: DESC. List statusExclude = Arrays.asList(); // List | Exclude filter (repeated query params). try { - CompletableFuture> response = fireblocks.blockchainLinkBeta().listBlockchainLinkChains(pageCursor, pageSize, search, status, blockchainEnv, sortBy, order, statusExclude); + CompletableFuture> response = fireblocks.blockchainLink().listBlockchainLinkChains(pageCursor, pageSize, search, status, blockchainEnv, sortBy, order, statusExclude); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling BlockchainLinkBetaApi#listBlockchainLinkChains"); + System.err.println("Exception when calling BlockchainLinkApi#listBlockchainLinkChains"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -583,7 +583,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.BlockchainLinkBetaApi; +import com.fireblocks.sdk.api.BlockchainLinkApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -598,13 +598,13 @@ public class Example { UUID blockchainId = UUID.fromString("f47ac10b-58cc-4372-a567-0e02b2c3d479"); // UUID | ID of the blockchain to validate. String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. try { - CompletableFuture> response = fireblocks.blockchainLinkBeta().triggerBlockchainLinkValidation(blockchainId, idempotencyKey); + CompletableFuture> response = fireblocks.blockchainLink().triggerBlockchainLinkValidation(blockchainId, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling BlockchainLinkBetaApi#triggerBlockchainLinkValidation"); + System.err.println("Exception when calling BlockchainLinkApi#triggerBlockchainLinkValidation"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -662,7 +662,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.BlockchainLinkBetaApi; +import com.fireblocks.sdk.api.BlockchainLinkApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -678,13 +678,13 @@ public class Example { String blockchainId = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | ID of the blockchain to update (supplied as a path parameter). String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. try { - CompletableFuture> response = fireblocks.blockchainLinkBeta().updateBlockchainLinkChain(blockchainDeclaredProperties, blockchainId, idempotencyKey); + CompletableFuture> response = fireblocks.blockchainLink().updateBlockchainLinkChain(blockchainDeclaredProperties, blockchainId, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling BlockchainLinkBetaApi#updateBlockchainLinkChain"); + System.err.println("Exception when calling BlockchainLinkApi#updateBlockchainLinkChain"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); diff --git a/docs/CantonBetaApi.md b/docs/CantonApi.md similarity index 91% rename from docs/CantonBetaApi.md rename to docs/CantonApi.md index 4ac74fde..f2609a68 100644 --- a/docs/CantonBetaApi.md +++ b/docs/CantonApi.md @@ -1,11 +1,11 @@ -# CantonBetaApi +# CantonApi All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**createCantonCall**](CantonBetaApi.md#createCantonCall) | **POST** /operations/canton/calls | Make a Canton call | -| [**respondToCantonOffer**](CantonBetaApi.md#respondToCantonOffer) | **POST** /operations/canton/offers/{offerId}/responses | Answer an offer | +| [**createCantonCall**](CantonApi.md#createCantonCall) | **POST** /operations/canton/calls | Make a Canton call | +| [**respondToCantonOffer**](CantonApi.md#respondToCantonOffer) | **POST** /operations/canton/offers/{offerId}/responses | Answer an offer | @@ -28,7 +28,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.CantonBetaApi; +import com.fireblocks.sdk.api.CantonApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -43,13 +43,13 @@ public class Example { CantonCall cantonCall = new CantonCall(); // CantonCall | String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. try { - CompletableFuture> response = fireblocks.cantonBeta().createCantonCall(cantonCall, idempotencyKey); + CompletableFuture> response = fireblocks.canton().createCantonCall(cantonCall, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling CantonBetaApi#createCantonCall"); + System.err.println("Exception when calling CantonApi#createCantonCall"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -111,7 +111,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.CantonBetaApi; +import com.fireblocks.sdk.api.CantonApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -127,13 +127,13 @@ public class Example { String offerId = "5a1d8b0f-2c31-4c7e-9d0a-118e7b6c4a21"; // String | The Fireblocks transaction id of the incoming offer being answered. String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. try { - CompletableFuture> response = fireblocks.cantonBeta().respondToCantonOffer(offerResponse, offerId, idempotencyKey); + CompletableFuture> response = fireblocks.canton().respondToCantonOffer(offerResponse, offerId, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling CantonBetaApi#respondToCantonOffer"); + System.err.println("Exception when calling CantonApi#respondToCantonOffer"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); diff --git a/docs/ComplianceOrchestratorBetaApi.md b/docs/ComplianceOrchestratorApi.md similarity index 89% rename from docs/ComplianceOrchestratorBetaApi.md rename to docs/ComplianceOrchestratorApi.md index 988955f2..34b2572d 100644 --- a/docs/ComplianceOrchestratorBetaApi.md +++ b/docs/ComplianceOrchestratorApi.md @@ -1,13 +1,13 @@ -# ComplianceOrchestratorBetaApi +# ComplianceOrchestratorApi All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**getScreeningResult**](ComplianceOrchestratorBetaApi.md#getScreeningResult) | **GET** /compliance/orchestrator/screenings/{screeningId} | Get a Compliance Orchestrator screening's result | -| [**getWorkflow**](ComplianceOrchestratorBetaApi.md#getWorkflow) | **GET** /compliance/orchestrator/workflows/{workflowId} | Get a Compliance Orchestrator workflow | -| [**triggerScreening**](ComplianceOrchestratorBetaApi.md#triggerScreening) | **POST** /compliance/orchestrator/screenings | Trigger a Compliance Orchestrator screening | -| [**updateWorkflowStatus**](ComplianceOrchestratorBetaApi.md#updateWorkflowStatus) | **PATCH** /compliance/orchestrator/workflows/{workflowId}/status | Update a Compliance Orchestrator workflow's status | +| [**getScreeningResult**](ComplianceOrchestratorApi.md#getScreeningResult) | **GET** /compliance/orchestrator/screenings/{screeningId} | Get a Compliance Orchestrator screening's result | +| [**getWorkflow**](ComplianceOrchestratorApi.md#getWorkflow) | **GET** /compliance/orchestrator/workflows/{workflowId} | Get a Compliance Orchestrator workflow | +| [**triggerScreening**](ComplianceOrchestratorApi.md#triggerScreening) | **POST** /compliance/orchestrator/screenings | Trigger a Compliance Orchestrator screening | +| [**updateWorkflowStatus**](ComplianceOrchestratorApi.md#updateWorkflowStatus) | **PATCH** /compliance/orchestrator/workflows/{workflowId}/status | Update a Compliance Orchestrator workflow's status | @@ -30,7 +30,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ComplianceOrchestratorBetaApi; +import com.fireblocks.sdk.api.ComplianceOrchestratorApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -44,13 +44,13 @@ public class Example { String screeningId = "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"; // String | The screening's identifier, returned by `POST /v1/compliance/orchestrator/screenings`. try { - CompletableFuture> response = fireblocks.complianceOrchestratorBeta().getScreeningResult(screeningId); + CompletableFuture> response = fireblocks.complianceOrchestrator().getScreeningResult(screeningId); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ComplianceOrchestratorBetaApi#getScreeningResult"); + System.err.println("Exception when calling ComplianceOrchestratorApi#getScreeningResult"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -109,7 +109,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ComplianceOrchestratorBetaApi; +import com.fireblocks.sdk.api.ComplianceOrchestratorApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -123,13 +123,13 @@ public class Example { String workflowId = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | The workflow's identifier. try { - CompletableFuture> response = fireblocks.complianceOrchestratorBeta().getWorkflow(workflowId); + CompletableFuture> response = fireblocks.complianceOrchestrator().getWorkflow(workflowId); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ComplianceOrchestratorBetaApi#getWorkflow"); + System.err.println("Exception when calling ComplianceOrchestratorApi#getWorkflow"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -188,7 +188,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ComplianceOrchestratorBetaApi; +import com.fireblocks.sdk.api.ComplianceOrchestratorApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -203,13 +203,13 @@ public class Example { TriggerScreeningRequest triggerScreeningRequest = new TriggerScreeningRequest(); // TriggerScreeningRequest | String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. try { - CompletableFuture> response = fireblocks.complianceOrchestratorBeta().triggerScreening(triggerScreeningRequest, idempotencyKey); + CompletableFuture> response = fireblocks.complianceOrchestrator().triggerScreening(triggerScreeningRequest, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ComplianceOrchestratorBetaApi#triggerScreening"); + System.err.println("Exception when calling ComplianceOrchestratorApi#triggerScreening"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -270,7 +270,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ComplianceOrchestratorBetaApi; +import com.fireblocks.sdk.api.ComplianceOrchestratorApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -286,13 +286,13 @@ public class Example { String workflowId = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | The workflow's identifier. String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. try { - CompletableFuture> response = fireblocks.complianceOrchestratorBeta().updateWorkflowStatus(updateWorkflowStatusRequest, workflowId, idempotencyKey); + CompletableFuture> response = fireblocks.complianceOrchestrator().updateWorkflowStatus(updateWorkflowStatusRequest, workflowId, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ComplianceOrchestratorBetaApi#updateWorkflowStatus"); + System.err.println("Exception when calling ComplianceOrchestratorApi#updateWorkflowStatus"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); diff --git a/docs/ConnectedAccountCredit.md b/docs/ConnectedAccountCredit.md new file mode 100644 index 00000000..ccb6065e --- /dev/null +++ b/docs/ConnectedAccountCredit.md @@ -0,0 +1,14 @@ + + +# ConnectedAccountCredit + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**amount** | **String** | The credit amount, as a decimal number string. | | +|**denominatedAssetId** | **String** | The asset ID the credit amount is denominated in. Omitted when the denomination asset ID is unavailable; the amount is still returned, but its denomination is unknown. Do not assume it matches the asset used for totalBalance. | [optional] | + + + diff --git a/docs/ConnectedSingleAccount.md b/docs/ConnectedSingleAccount.md index e836e24f..45bc13bb 100644 --- a/docs/ConnectedSingleAccount.md +++ b/docs/ConnectedSingleAccount.md @@ -8,6 +8,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**subAccountsIds** | **List<String>** | IDs of sub-accounts associated with this connected account. | [optional] | +|**totalCredit** | [**ConnectedAccountCredit**](ConnectedAccountCredit.md) | Total credit line available on the account. Returned only by the single-account endpoint (Get connected account); the list endpoint does not retrieve balances and never populates it. Omitted when total credit data is unavailable or balance retrieval is skipped. Absence does not imply zero credit. | [optional] | +|**availableCredit** | [**ConnectedAccountCredit**](ConnectedAccountCredit.md) | Remaining unused credit available on the account. Returned only by the single-account endpoint (Get connected account); the list endpoint does not retrieve balances and never populates it. Omitted when available credit data is unavailable or balance retrieval is skipped. Absence does not imply zero credit. | [optional] | diff --git a/docs/ConnectedSingleAccountResponse.md b/docs/ConnectedSingleAccountResponse.md index f2348dbb..3e139d26 100644 --- a/docs/ConnectedSingleAccountResponse.md +++ b/docs/ConnectedSingleAccountResponse.md @@ -18,6 +18,8 @@ |**providerAccountName** | **String** | The account name provided by the provider. | [optional] | |**accountType** | **ConnectedAccountType** | | | |**subAccountsIds** | **List<String>** | IDs of sub-accounts associated with this connected account. | [optional] | +|**totalCredit** | [**ConnectedAccountCredit**](ConnectedAccountCredit.md) | Total credit line available on the account. Returned only by the single-account endpoint (Get connected account); the list endpoint does not retrieve balances and never populates it. Omitted when total credit data is unavailable or balance retrieval is skipped. Absence does not imply zero credit. | [optional] | +|**availableCredit** | [**ConnectedAccountCredit**](ConnectedAccountCredit.md) | Remaining unused credit available on the account. Returned only by the single-account endpoint (Get connected account); the list endpoint does not retrieve balances and never populates it. Omitted when available credit data is unavailable or balance retrieval is skipped. Absence does not imply zero credit. | [optional] | diff --git a/docs/CreateOmnibusAddressesRequest.md b/docs/CreateOmnibusAddressesRequest.md new file mode 100644 index 00000000..c45ae266 --- /dev/null +++ b/docs/CreateOmnibusAddressesRequest.md @@ -0,0 +1,14 @@ + + +# CreateOmnibusAddressesRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**count** | **Integer** | The number of deposit addresses to create | | +|**descriptions** | **List<String>** | Descriptions of the newly created addresses, in order. Must match `count` when provided. Each entry is trimmed; an empty string leaves that address without a description. | [optional] | + + + diff --git a/docs/CreateOmnibusAddressesResponse.md b/docs/CreateOmnibusAddressesResponse.md new file mode 100644 index 00000000..96223037 --- /dev/null +++ b/docs/CreateOmnibusAddressesResponse.md @@ -0,0 +1,13 @@ + + +# CreateOmnibusAddressesResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<OmnibusAddress>**](OmnibusAddress.md) | The created deposit addresses | | + + + diff --git a/docs/CreateTempoTransferRequest.md b/docs/CreateTempoTransferRequest.md index a9d7ca36..051c00d9 100644 --- a/docs/CreateTempoTransferRequest.md +++ b/docs/CreateTempoTransferRequest.md @@ -17,16 +17,16 @@ Request body for creating a Tempo transfer transaction. |**amount** | **String** | The amount to transfer, as a numeric string. Required when `destination` is set; must be omitted when `destinations` is set (each entry carries its own amount instead). | [optional] | |**treatAsGrossAmount** | **Boolean** | If true, the specified amount includes the fee (fee is deducted from amount). | [optional] | |**feeLevel** | [**FeeLevelEnum**](#FeeLevelEnum) | The fee level to use, mutually exclusive with an explicit custom fee. | [optional] | -|**travelRuleMessage** | **String** | Beta. An opaque travel-rule payload. | [optional] | -|**travelRuleMessageId** | **String** | Beta. An identifier of a TravelRule message, already sent to the TravelRule provider. | [optional] | +|**travelRuleMessage** | **String** | Early availability. An opaque travel-rule payload. | [optional] | +|**travelRuleMessageId** | **String** | Early availability. An identifier of a TravelRule message, already sent to the TravelRule provider. | [optional] | |**useGasless** | **Boolean** | Opt in to fee-payer-sponsored (gasless) transfer. | [optional] | |**configurations** | [**TransactionConfigurations**](TransactionConfigurations.md) | | [optional] | |**maxFeePerGas** | **String** | The maximum total fee per gas the sender is willing to pay, in wei. | [optional] | |**maxPriorityFeePerGas** | **String** | The maximum priority fee (tip) per gas the sender is willing to pay, in wei. | [optional] | |**destinations** | [**List<TempoTransferDestinationItem>**](TempoTransferDestinationItem.md) | Multiple destinations for a single transfer. Mutually exclusive with `destination`. | [optional] | -|**failOnLowFee** | **Boolean** | Beta. If true, fail the transaction rather than sending it with a low fee. | [optional] | +|**failOnLowFee** | **Boolean** | Early availability. If true, fail the transaction rather than sending it with a low fee. | [optional] | |**gasLimit** | **String** | The gas limit for the transaction. | [optional] | -|**replaceTxByHash** | **String** | Beta. The hash of the EVM transaction to replace (RBF). | [optional] | +|**replaceTxByHash** | **String** | Early availability. The hash of the EVM transaction to replace (RBF). | [optional] | |**feePayerAccountId** | **String** | Vault account ID of the fee payer sponsoring this transfer. | [optional] | |**nonceStrategy** | [**NonceStrategyEnum**](#NonceStrategyEnum) | Tempo's 2-dimensional nonce strategy: `SEQUENTIAL` runs under a single nonce lane (lane 0); `USER_DEFINED_LANE` runs in parallel under a specified lane (1–16), and requires `nonceLane`; `EXPIRING` marks the transaction with an expiry of up to 5 minutes (Tempo-defined) and does not use `nonceLane`. | [optional] | |**nonceLane** | **Integer** | The nonce lane to use, 1–16. Required and only meaningful when nonceStrategy is USER_DEFINED_LANE; not used for SEQUENTIAL or EXPIRING. | [optional] | diff --git a/docs/CreateWebhookCustomHeadersRequest.md b/docs/CreateWebhookCustomHeadersRequest.md new file mode 100644 index 00000000..a61e312e --- /dev/null +++ b/docs/CreateWebhookCustomHeadersRequest.md @@ -0,0 +1,15 @@ + + +# CreateWebhookCustomHeadersRequest + +A new reusable set of custom HTTP headers. Attach it to a webhook by passing the returned id as that webhook's `webhookCustomHeadersId`, or to OAuth credentials as theirs. Several webhooks and OAuth credentials may share one set, so changing it covers all of them at once. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | A label for this set, shown when listing them. | | +|**headers** | **Map<String, Object>** | The headers, as a map of header name to value. At least one header is required. Values are write-only; responses return only the header names, lowercased. A value is a string, sent as one header line, or an array of strings, sent as one header line per element under the same name. `Cookie` and `Authorization` accept only a string. An empty array is rejected — leave the name out instead. Arrays are accepted whether the set is sent with a webhook's notifications or on an OAuth token request, which sends one header line per element in the same way. At most 10 headers, counted by name — an array value counts once, however many lines it sends. Names must be valid HTTP header tokens, are case-insensitive, and are at most 128 characters. A value may be empty and has no length limit of its own; the whole object must be under 16 KB when serialized as UTF-8. A value that large may still be refused by your own endpoint, since web servers commonly cap the whole request header block at around 8 KB. Reserved names: `Host`, `Content-Type`, `Content-Length`, `Transfer-Encoding`, `Connection`, `User-Agent`, `Accept`, `Accept-Encoding`, `Fireblocks-Signature` and `Fireblocks-Webhook-Signature` are set by Fireblocks and can never be used. The same list applies whether the set is sent with a webhook's notifications or on an OAuth token request. `Authorization` may be set. When Fireblocks sends its own `Authorization` header, a custom one is not sent: an OAuth bearer token on a webhook that has `webhookOauthId` set, and the client credentials on the token request of OAuth credentials that use `client_secret_basic`. With no OAuth credentials on a webhook, or with `client_secret_post`, `client_secret_jwt` or `private_key_jwt` on the token request, it is sent as configured. | | + + + diff --git a/docs/CreateWebhookOauthRequest.md b/docs/CreateWebhookOauthRequest.md index 137e2270..f29f5d97 100644 --- a/docs/CreateWebhookOauthRequest.md +++ b/docs/CreateWebhookOauthRequest.md @@ -2,7 +2,7 @@ # CreateWebhookOauthRequest -A new reusable OAuth 2.0 client credential set. Attach it to a webhook by passing the returned id as that webhook's `webhookOauthId`. Several webhooks may share one credential set, so rotating its client secret covers all of them at once. +A new reusable OAuth 2.0 client credential set. Attach it to a webhook by passing the returned id as that webhook's `webhookOauthId`. Several webhooks may share one credential set, so rotating its client secret covers all of them at once. With `private_key_jwt` there is no client secret: Fireblocks generates the key pairs itself and publishes their public halves at the `jwksUri` it returns. ## Properties @@ -10,13 +10,14 @@ A new reusable OAuth 2.0 client credential set. Attach it to a webhook by passin |------------ | ------------- | ------------- | -------------| |**name** | **String** | A label for this credential set, shown when listing them. | | |**clientId** | **String** | OAuth client ID used to authenticate with the token endpoint. | | -|**clientSecret** | **String** | OAuth client secret. Write-only — never returned. Limited to 480 bytes UTF-8 encoded. With `client_secret_jwt` it signs the assertion rather than being sent. | | +|**clientSecret** | **String** | OAuth client secret. Write-only — never returned. Limited to 480 bytes UTF-8 encoded. With `client_secret_jwt` it signs the assertion rather than being sent. Required with `client_secret_basic`, `client_secret_post` and `client_secret_jwt` (`400` if missing). Must not be sent with `private_key_jwt`, which uses a Fireblocks-held key instead (`400` otherwise). | [optional] | |**url** | **String** | Token endpoint URL. HTTPS on port 443 only, and the host must resolve publicly — localhost and private, link-local or loopback addresses are rejected. | | -|**authMethod** | **String** | How the client credentials reach the token endpoint. `client_secret_basic` uses an HTTP Basic header, `client_secret_post` uses form fields in the body, and `client_secret_jwt` sends a JWT assertion signed with the secret, so the secret itself is never transmitted. Defaults to `client_secret_basic`. | [optional] | -|**customJwtClaims** | **Map<String, Object>** | Extra claims for the JWT assertion. Used only when `authMethod` is `client_secret_jwt`. The usual one to set is `aud`, which defaults to the token endpoint URL; some authorization servers expect their own identifier instead. A value may be any JSON type except `null` — `null` is reserved for deleting a claim on update. `iss`, `sub`, `jti`, `iat` and `exp` are set by Fireblocks and cannot be overridden. Names are case-sensitive. The whole object must be under 16 KB. Values are write-only; responses return only the claim names. On update this merges claim by claim rather than replacing — see `WebhookOauthCustomJwtClaimsUpdate`. | [optional] | +|**authMethod** | **String** | How the client credentials reach the token endpoint. `client_secret_basic` uses an HTTP Basic header, `client_secret_post` uses form fields in the body, and `client_secret_jwt` sends a JWT assertion signed with the secret, so the secret itself is never transmitted. `private_key_jwt` sends a JWT assertion signed with a private key Fireblocks generates and holds for these credentials, so there is no shared secret at all; your authorization server verifies it with the public keys at the `jwksUri` returned with the credentials. Creating credentials with `private_key_jwt` generates two key pairs, the signing key and its successor. Defaults to `client_secret_basic`. | [optional] | +|**signingAlg** | **WebhookOauthSigningAlg** | Algorithm of the key pairs generated for `private_key_jwt`, and of the assertions signed with them. Defaults to `RS256` when `authMethod` is `private_key_jwt`, where `null` is refused (`400`); omit it instead. Only valid with `private_key_jwt`: with any other method a value is a `400`, and `null`, meaning no algorithm, is accepted. | [optional] | +|**customJwtClaims** | **Map<String, Object>** | Extra claims for the JWT assertion. Used only when `authMethod` is `client_secret_jwt` or `private_key_jwt`. The usual one to set is `aud`, which defaults to the token endpoint URL; some authorization servers expect their own identifier instead. A value may be any JSON type except `null` — `null` is reserved for deleting a claim on update. `iss`, `sub`, `jti`, `iat` and `exp` are set by Fireblocks and cannot be overridden. Names are case-sensitive. The whole object must be under 16 KB. Values are write-only; responses return only the claim names. On update this merges claim by claim rather than replacing — see `WebhookOauthCustomJwtClaimsUpdate`. | [optional] | |**customBodyParams** | **Map<String, String>** | Extra parameters for the token request body — `scope` most commonly, sometimes `audience` or `resource`. Applies to every authentication method. Values must be strings, because the token request body is form-encoded rather than JSON. An empty string is allowed. `grant_type`, `client_id`, `client_secret`, `client_assertion` and `client_assertion_type` are set by Fireblocks and cannot be overridden. Names are case-sensitive. The whole object must be under 16 KB. Values are write-only; responses return only the parameter names. On update this merges key by key rather than replacing — see `WebhookOauthCustomBodyParamsUpdate`. | [optional] | -|**customHeaders** | **Map<String, String>** | Extra HTTP headers for **the token request to your authorization server** — not for the webhook delivery, which has its own separate `customHeaders`. A gateway API key is the usual case. Values must be strings; an empty string is allowed. Names are matched case-insensitively, so two names differing only in case are a duplicate. Names are stored and returned lowercased, so `X-Api-Key` comes back as `x-api-key`. `Content-Type`, `Content-Length` and `Host` are set by Fireblocks and cannot be overridden. `Authorization` can be set with `client_secret_post` or `client_secret_jwt`, which send the credentials in the body — useful when your token endpoint sits behind a gateway. It is rejected with `client_secret_basic`, which sends the credentials in that header. Values have no length limit of their own; the whole object must be under 16 KB when serialized as UTF-8. Values are write-only; responses return only the header names. On update this merges name by name rather than replacing — see `WebhookOauthCustomHeadersUpdate`. | [optional] | -|**webhookMtlsId** | **UUID** | The id of the mTLS configuration presented to the token endpoint, from `/v1/webhooks_settings/mtls`. It can be the same configuration a webhook uses, so one certificate, signed from `GET /v1/webhooks_settings/mtls_csr`, serves both the token endpoint and the receiver. Omit, or send `null`, for a token request without mTLS. Requires the mTLS feature to be enabled for the workspace (`403` otherwise), a configuration of this workspace (`404` otherwise), and one linked to a private key (`400` otherwise). | [optional] | +|**webhookCustomHeadersId** | **UUID** | The id of the set of custom HTTP headers added to **the token request to your authorization server** — not to the webhook delivery — from `/v1/webhooks_settings/custom_headers`. A gateway API key is the usual case. The set can be shared with webhooks and with other credentials, and the same rules apply as for a webhook delivery. A value is a string, or an array of strings sent as one header line per element (`Cookie` and `Authorization` accept only a string), the reserved header names — the same as for a webhook delivery, including `Host`, `Content-Type` and `Content-Length` — are set by Fireblocks and cannot be overridden, and `Authorization` is sent with `client_secret_post` or `client_secret_jwt`, which send the credentials in the body — useful when your token endpoint sits behind a gateway — but is not sent with `client_secret_basic`, where Fireblocks sends its own `Authorization` header with the credentials. Replaces the inline `customHeaders` field, which is now refused with a `400`, so use `webhookCustomHeadersId`. Omit, or send `null`, for a token request with no extra headers. An unknown id, or one belonging to another workspace, is a `404`. | [optional] | +|**webhookMtlsId** | **UUID** | The id of the mTLS configuration presented to the token endpoint, from `/v1/webhooks_settings/mtls`. It can be the same configuration a webhook uses, so one certificate, signed from `GET /v1/webhooks_settings/mtls_csr`, serves both the token endpoint and the receiver. Omit, or send `null`, for a token request without mTLS. Requires a configuration of this workspace (`404` otherwise) that is linked to a private key (`400` otherwise). | [optional] | diff --git a/docs/CreateWebhookRequest.md b/docs/CreateWebhookRequest.md index e5f874fe..1fa832a7 100644 --- a/docs/CreateWebhookRequest.md +++ b/docs/CreateWebhookRequest.md @@ -11,9 +11,9 @@ |**description** | **String** | description of the webhook. should not contain special characters. | [optional] | |**events** | **List<WebhookEvent>** | event types the webhook will subscribe to | | |**enabled** | **Boolean** | The status of the webhook. If false, the webhook will not receive notifications. | [optional] | -|**webhookMtlsId** | **UUID** | The id of the mTLS configuration this webhook presents when delivering, from `/v1/webhooks_settings/mtls`. Several webhooks may share one configuration, so replacing its certificate covers all of them at once. Send `null` to stop using mTLS for this webhook. | [optional] | -|**webhookOauthId** | **UUID** | The id of the OAuth credentials this webhook authenticates with, from `/v1/webhooks_settings/oauth`. Several webhooks may share one credential set, so rotating its client secret covers all of them at once. Send `null` to stop using OAuth for this webhook. Cannot be combined with an `authorization` custom header on the same webhook; a request that would leave both set is rejected. | [optional] | -|**customHeaders** | **Map<String, Object>** | Custom HTTP headers attached to every notification delivered by this webhook. A value is a string, sent as one header line, or an array of strings, sent as one header line per element under the same name. `Cookie` and `Authorization` accept only a string. An empty array is rejected — leave the name out instead. At most 10 headers, counted by name — an array value counts once, however many lines it sends. Names must be valid HTTP header tokens, are case-insensitive, and are at most 128 characters. A value may be empty and has no length limit of its own; the whole object must be under 16 KB when serialized as UTF-8. A value that large may still be refused by your own endpoint, since web servers commonly cap the whole request header block at around 8 KB. Reserved names: `Host`, `Content-Type`, `Content-Length`, `Transfer-Encoding`, `Connection`, `User-Agent`, `Accept`, `Accept-Encoding`, `Fireblocks-Signature`, `Fireblocks-Webhook-Signature`. `Authorization` may be set, but not together with `webhookOauthId`; a request that would leave both set is rejected. Values are write-only; responses return only the header names. | [optional] | +|**webhookMtlsId** | **UUID** | The id of the mTLS configuration this webhook presents when delivering, from `/v1/webhooks_settings/mtls`. Several webhooks may share one configuration, so replacing its certificate covers all of them at once. Send `null` to stop using mTLS for this webhook. Requires advanced webhook controls to be enabled for the workspace (`403` otherwise). | [optional] | +|**webhookOauthId** | **UUID** | The id of the OAuth credentials this webhook authenticates with, from `/v1/webhooks_settings/oauth`. Several webhooks may share one credential set, so rotating its client secret covers all of them at once. Send `null` to stop using OAuth for this webhook. When the webhook has OAuth credentials, Fireblocks sends its own `Authorization` header (the bearer token), and a custom `Authorization` header from the attached set is not sent. Requires advanced webhook controls to be enabled for the workspace (`403` otherwise). | [optional] | +|**webhookCustomHeadersId** | **UUID** | The id of the set of custom HTTP headers sent with this webhook's notifications, from `/v1/webhooks_settings/custom_headers`. Several webhooks, and OAuth credentials, may share one set, so changing it covers all of them at once. Validated when the set is created or changed; attaching checks only that it exists in your workspace. Replaces the inline `customHeaders` field, which is now refused with a `400`, so use `webhookCustomHeadersId`. Requires advanced webhook controls to be enabled for the workspace (`403` otherwise). An unknown id, or one belonging to another workspace, is a `404`. | [optional] | diff --git a/docs/DeleteWebhookCustomHeadersResponse.md b/docs/DeleteWebhookCustomHeadersResponse.md new file mode 100644 index 00000000..54257699 --- /dev/null +++ b/docs/DeleteWebhookCustomHeadersResponse.md @@ -0,0 +1,20 @@ + + +# DeleteWebhookCustomHeadersResponse + +The deleted custom headers set, plus the ids of any webhooks and OAuth credentials the delete detached from it. Things are only detached by `forceDelete=true`; without it a delete is refused with `409` while anything still uses the set. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | The id of the custom headers set. Pass this as a webhook's, or OAuth credentials', `webhookCustomHeadersId` to attach it. | | +|**name** | **String** | The label given to this set. | | +|**headerNames** | **List<String>** | Names of the headers in the set, lowercased. Header values are never returned. | | +|**createdAt** | **Long** | The date and time the set was created, in milliseconds. | | +|**updatedAt** | **Long** | The date and time the set was last updated, in milliseconds. | | +|**detachedWebhookIds** | **List<UUID>** | Webhooks whose `webhookCustomHeadersId` was cleared. The webhooks themselves are not deleted and keep delivering, just without these headers. Empty unless `forceDelete=true` detached something. | | +|**detachedWebhookOauthIds** | **List<UUID>** | OAuth credentials whose `webhookCustomHeadersId` was cleared. The credentials themselves are not deleted; their token requests just no longer carry these headers. Empty unless `forceDelete=true` detached something. | | + + + diff --git a/docs/DeleteWebhookOauthResponse.md b/docs/DeleteWebhookOauthResponse.md index 73152e55..505557b9 100644 --- a/docs/DeleteWebhookOauthResponse.md +++ b/docs/DeleteWebhookOauthResponse.md @@ -12,13 +12,15 @@ The deleted OAuth credential set, plus the ids of any webhooks the delete detach |**name** | **String** | The label given to this credential set. | | |**clientId** | **String** | OAuth client ID used to authenticate with the token endpoint. | | |**url** | **String** | Token endpoint URL. | | -|**authMethod** | **String** | How the client credentials are presented to the token endpoint: `client_secret_basic`, `client_secret_post` or `client_secret_jwt`. Credentials created without this field report `client_secret_basic`, which is what they use. | | +|**authMethod** | **String** | How the client credentials are presented to the token endpoint: `client_secret_basic`, `client_secret_post`, `client_secret_jwt` or `private_key_jwt`. Credentials created without this field report `client_secret_basic`, which is what they use. | | +|**signingAlg** | **WebhookOauthSigningAlg** | Algorithm of the key pairs, and of the assertions signed with them. Present only when `authMethod` is `private_key_jwt`. Which key is signing is never returned; each assertion names it in its `kid` header. Defaults to `RS256` on create only. | [optional] | |**customJwtClaims** | **List<String>** | Names of the additional claims placed in the JWT assertion. Claim values are write-only and are never returned. Absent when no custom claims are configured. | [optional] | |**customBodyParams** | **List<String>** | Names of the additional parameters added to the token request body. Parameter values are write-only and are never returned. Absent when no custom parameters are configured. | [optional] | -|**customHeaders** | **List<String>** | Names of the additional HTTP headers added to **the token request sent to the authorization server** — not to the webhook delivery, which has its own separate `customHeaders`. Header values are write-only and are never returned. Absent when no custom headers are configured. | [optional] | +|**webhookCustomHeadersId** | **UUID** | The id of the set of custom headers added to **the token request sent to the authorization server** — not to the webhook delivery. Absent when the token request adds none. Header values are write-only and are never returned; read the header names from `/v1/webhooks_settings/custom_headers/{webhookCustomHeadersId}`. | [optional] | |**webhookMtlsId** | **UUID** | The id of the mTLS configuration presented to the token endpoint. Absent when the token request does not use mTLS. Read the certificate from `/v1/webhooks_settings/mtls/{id}`. | [optional] | |**createdAt** | **Long** | The date and time the OAuth credentials were created, in milliseconds. | | |**updatedAt** | **Long** | The date and time the OAuth credentials were last updated, in milliseconds. | | +|**jwksUri** | **URI** | The public URL of these credentials' JWKS. Register it as the client's jwks_uri on your authorization server. Present for private_key_jwt only. | [optional] [readonly] | |**detachedWebhookIds** | **List<UUID>** | Webhooks whose `webhookOauthId` was cleared. The webhooks themselves are not deleted and keep delivering, just without an `Authorization` header. Empty unless `forceDelete=true` detached something. | | diff --git a/docs/EmbeddedWalletsApi.md b/docs/EmbeddedWalletsApi.md index 2f4ad92f..69cc0802 100644 --- a/docs/EmbeddedWalletsApi.md +++ b/docs/EmbeddedWalletsApi.md @@ -22,6 +22,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | [**getEmbeddedWalletSetupStatus**](EmbeddedWalletsApi.md#getEmbeddedWalletSetupStatus) | **GET** /ncw/wallets/{walletId}/setup_status | Get wallet key setup state | | [**getEmbeddedWalletSupportedAssets**](EmbeddedWalletsApi.md#getEmbeddedWalletSupportedAssets) | **GET** /ncw/wallets/supported_assets | Retrieve supported assets | | [**getEmbeddedWallets**](EmbeddedWalletsApi.md#getEmbeddedWallets) | **GET** /ncw/wallets | List wallets | +| [**getPublicKeyInfoForAddressNcw**](EmbeddedWalletsApi.md#getPublicKeyInfoForAddressNcw) | **GET** /ncw/{walletId}/accounts/{accountId}/{assetId}/{change}/{addressIndex}/public_key_info | Get the public key of an asset | | [**getPublicKeyInfoNcw**](EmbeddedWalletsApi.md#getPublicKeyInfoNcw) | **GET** /ncw/wallets/{walletId}/public_key_info | Get the public key for a derivation path | | [**refreshEmbeddedWalletAssetBalance**](EmbeddedWalletsApi.md#refreshEmbeddedWalletAssetBalance) | **PUT** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/balance | Refresh asset balance | | [**updateEmbeddedWalletDeviceStatus**](EmbeddedWalletsApi.md#updateEmbeddedWalletDeviceStatus) | **PATCH** /ncw/wallets/{walletId}/devices/{deviceId}/status | Update device status | @@ -1496,6 +1497,95 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| +## getPublicKeyInfoForAddressNcw + +> CompletableFuture> getPublicKeyInfoForAddressNcw getPublicKeyInfoForAddressNcw(xEndUserWalletId, walletId, accountId, assetId, change, addressIndex, compressed) + +Get the public key of an asset + +Gets the public key of an asset associated with a specific account within a Non-Custodial Wallet + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.EmbeddedWalletsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + UUID xEndUserWalletId = UUID.randomUUID(); // UUID | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. + String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | The ID of the Non-Custodial wallet + String accountId = "0"; // String | The ID of the account + String assetId = "BTC"; // String | The ID of the asset + BigDecimal change = new BigDecimal("0"); // BigDecimal | BIP44 derivation path - change value + BigDecimal addressIndex = new BigDecimal("0"); // BigDecimal | BIP44 derivation path - index value + Boolean compressed = true; // Boolean | Compressed/Uncompressed public key format + try { + CompletableFuture> response = fireblocks.embeddedWallets().getPublicKeyInfoForAddressNcw(xEndUserWalletId, walletId, accountId, assetId, change, addressIndex, compressed); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling EmbeddedWalletsApi#getPublicKeyInfoForAddressNcw"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **xEndUserWalletId** | **UUID**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | | +| **walletId** | **String**| The ID of the Non-Custodial wallet | | +| **accountId** | **String**| The ID of the account | | +| **assetId** | **String**| The ID of the asset | | +| **change** | **BigDecimal**| BIP44 derivation path - change value | | +| **addressIndex** | **BigDecimal**| BIP44 derivation path - index value | | +| **compressed** | **Boolean**| Compressed/Uncompressed public key format | [optional] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Public Key Information | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + ## getPublicKeyInfoNcw > CompletableFuture> getPublicKeyInfoNcw getPublicKeyInfoNcw(xEndUserWalletId, walletId, derivationPath, algorithm, compressed) diff --git a/docs/GenieBetaApi.md b/docs/GenieApi.md similarity index 88% rename from docs/GenieBetaApi.md rename to docs/GenieApi.md index a20ec917..82d9fb71 100644 --- a/docs/GenieBetaApi.md +++ b/docs/GenieApi.md @@ -1,11 +1,11 @@ -# GenieBetaApi +# GenieApi All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**createGenieSession**](GenieBetaApi.md#createGenieSession) | **POST** /genie/sessions | Create a Genie session | -| [**sendGenieMessage**](GenieBetaApi.md#sendGenieMessage) | **POST** /genie/sessions/{sessionId}/messages | Send a message to a Genie session | +| [**createGenieSession**](GenieApi.md#createGenieSession) | **POST** /genie/sessions | Create a Genie session | +| [**sendGenieMessage**](GenieApi.md#sendGenieMessage) | **POST** /genie/sessions/{sessionId}/messages | Send a message to a Genie session | @@ -15,7 +15,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ Create a Genie session -Starts a new conversation with Genie, the Fireblocks AI assistant. Returns a `sessionId` — pass it when sending messages, and reuse it across calls to keep one continuous conversation. **Note:** This endpoint is currently in beta and might be subject to changes. +Starts a new conversation with Genie, the Fireblocks AI assistant. Returns a `sessionId` — pass it when sending messages, and reuse it across calls to keep one continuous conversation. **Note:** This endpoint is currently in early availability and might be subject to changes. ### Example @@ -28,7 +28,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.GenieBetaApi; +import com.fireblocks.sdk.api.GenieApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -42,13 +42,13 @@ public class Example { String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. try { - CompletableFuture> response = fireblocks.genieBeta().createGenieSession(idempotencyKey); + CompletableFuture> response = fireblocks.genie().createGenieSession(idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling GenieBetaApi#createGenieSession"); + System.err.println("Exception when calling GenieApi#createGenieSession"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -92,7 +92,7 @@ No authorization required Send a message to a Genie session -Sends a question to Genie and returns a single answer. Reuse the `sessionId` from the original session on follow-up messages to continue the conversation with prior context. **Note:** This endpoint is currently in beta and might be subject to changes. +Sends a question to Genie and returns a single answer. Reuse the `sessionId` from the original session on follow-up messages to continue the conversation with prior context. **Note:** This endpoint is currently in early availability and might be subject to changes. ### Example @@ -105,7 +105,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.GenieBetaApi; +import com.fireblocks.sdk.api.GenieApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -121,13 +121,13 @@ public class Example { String sessionId = "7c1b2e1c-1c2a-4f3a-9c2d-2e0a8a1f8e1a"; // String | The Genie session ID returned from `POST /genie/sessions`. String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. try { - CompletableFuture> response = fireblocks.genieBeta().sendGenieMessage(genieSendMessageRequest, sessionId, idempotencyKey); + CompletableFuture> response = fireblocks.genie().sendGenieMessage(genieSendMessageRequest, sessionId, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling GenieBetaApi#sendGenieMessage"); + System.err.println("Exception when calling GenieApi#sendGenieMessage"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); diff --git a/docs/GetWhitelistIpAddressesResponse.md b/docs/GetWhitelistIpAddressesResponse.md index c0e4128c..5414cb8f 100644 --- a/docs/GetWhitelistIpAddressesResponse.md +++ b/docs/GetWhitelistIpAddressesResponse.md @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**userId** | **String** | The ID of the user | [optional] | -|**whitelistedIps** | **List<String>** | List of whitelisted ip addresses | [optional] | +|**whitelistedIps** | **List<String>** | Allowlist entries. Each item is an IPv4 address (10.0.0.1), an IPv4 CIDR (10.0.0.0/24), an IPv4 range (10.0.0.1-10.0.0.50), or an IPv6 address (2001:db8::1). | [optional] | diff --git a/docs/ListOmnibusAddressesResponse.md b/docs/ListOmnibusAddressesResponse.md new file mode 100644 index 00000000..287f9b18 --- /dev/null +++ b/docs/ListOmnibusAddressesResponse.md @@ -0,0 +1,15 @@ + + +# ListOmnibusAddressesResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**total** | **Integer** | The total number of addresses matching the request (respecting `fromIndex` and `search`, ignoring pagination). Returned only on the first page. | [optional] | +|**data** | [**List<OmnibusAddress>**](OmnibusAddress.md) | A page of deposit addresses, ordered by index, highest first | | +|**next** | **String** | The cursor for the next page. Absent on the last page. | [optional] | + + + diff --git a/docs/OmnibusAddress.md b/docs/OmnibusAddress.md new file mode 100644 index 00000000..ac5bb0a8 --- /dev/null +++ b/docs/OmnibusAddress.md @@ -0,0 +1,16 @@ + + +# OmnibusAddress + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**index** | **Integer** | The index of the deposit address within the omnibus account | | +|**address** | **String** | The deposit address | | +|**description** | **String** | The caller-supplied label of the address. Absent when no label was set. | [optional] | +|**createdAt** | **String** | The time the address was created, in epoch milliseconds | | + + + diff --git a/docs/OtaBetaApi.md b/docs/OtaApi.md similarity index 90% rename from docs/OtaBetaApi.md rename to docs/OtaApi.md index a4b4262e..d997f2f4 100644 --- a/docs/OtaBetaApi.md +++ b/docs/OtaApi.md @@ -1,11 +1,11 @@ -# OtaBetaApi +# OtaApi All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**getOtaStatus**](OtaBetaApi.md#getOtaStatus) | **GET** /management/ota | Returns current OTA status | -| [**setOtaStatus**](OtaBetaApi.md#setOtaStatus) | **PUT** /management/ota | Enable or disable transactions to OTA | +| [**getOtaStatus**](OtaApi.md#getOtaStatus) | **GET** /management/ota | Returns current OTA status | +| [**setOtaStatus**](OtaApi.md#setOtaStatus) | **PUT** /management/ota | Enable or disable transactions to OTA | @@ -28,7 +28,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.OtaBetaApi; +import com.fireblocks.sdk.api.OtaApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -41,13 +41,13 @@ public class Example { Fireblocks fireblocks = new Fireblocks(configurationOptions); try { - CompletableFuture> response = fireblocks.otaBeta().getOtaStatus(); + CompletableFuture> response = fireblocks.ota().getOtaStatus(); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling OtaBetaApi#getOtaStatus"); + System.err.println("Exception when calling OtaApi#getOtaStatus"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -101,7 +101,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.OtaBetaApi; +import com.fireblocks.sdk.api.OtaApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -116,13 +116,13 @@ public class Example { SetOtaStatusRequest setOtaStatusRequest = new SetOtaStatusRequest(); // SetOtaStatusRequest | String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. try { - CompletableFuture> response = fireblocks.otaBeta().setOtaStatus(setOtaStatusRequest, idempotencyKey); + CompletableFuture> response = fireblocks.ota().setOtaStatus(setOtaStatusRequest, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling OtaBetaApi#setOtaStatus"); + System.err.println("Exception when calling OtaApi#setOtaStatus"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); diff --git a/docs/PaymentsPayoutApi.md b/docs/PaymentsPayoutApi.md index 9f3ac281..68e56e3d 100644 --- a/docs/PaymentsPayoutApi.md +++ b/docs/PaymentsPayoutApi.md @@ -16,7 +16,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ Create a payout instruction set -**Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts. These endpoints are currently in beta and might be subject to changes. If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com. **Create a payout instruction set.** A payout instruction set is a set of instructions for distributing payments from a single payment account to a list of payee accounts. The instruction set defines: - the payment account and its account type (vault, exchange, or fiat). - the account type (vault account, exchange account, whitelisted address, network connection, fiat account, or merchant account), the amount, and the asset of payment for each payee account. Learn more about Fireblocks Payments - Payouts in the following [guide](https://developers.fireblocks.com/docs/create-payouts). Endpoint Permission: Admin, Non-Signing Admin. +**Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts. If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com. **Create a payout instruction set.** A payout instruction set is a set of instructions for distributing payments from a single payment account to a list of payee accounts. The instruction set defines: - the payment account and its account type (vault, exchange, or fiat). - the account type (vault account, exchange account, whitelisted address, network connection, fiat account, or merchant account), the amount, and the asset of payment for each payee account. Learn more about Fireblocks Payments - Payouts in the following [guide](https://developers.fireblocks.com/docs/create-payouts). Endpoint Permission: Admin, Non-Signing Admin. ### Example @@ -97,7 +97,7 @@ No authorization required Execute a payout instruction set -**Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts. These endpoints are currently in beta and might be subject to changes. If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com. **Execute a payout instruction set.** The instruction set will be verified and executed. **Source locking** If you are executing a payout instruction set from a payment account with an already active payout the active payout will complete before the new payout instruction set can be executed. You cannot execute the same payout instruction set more than once. +**Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts. If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com. **Execute a payout instruction set.** The instruction set will be verified and executed. **Source locking** If you are executing a payout instruction set from a payment account with an already active payout the active payout will complete before the new payout instruction set can be executed. You cannot execute the same payout instruction set more than once. ### Example @@ -178,7 +178,7 @@ No authorization required Get the status of a payout instruction set -**Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts. These endpoints are currently in beta and might be subject to changes. If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com. Endpoint Permission: Admin, Non-Signing Admin. +**Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts. If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com. Endpoint Permission: Admin, Non-Signing Admin. ### Example diff --git a/docs/PolicyEditorV2Api.md b/docs/PolicyEditorV2Api.md index 01d8f4f8..3bbec1ae 100644 --- a/docs/PolicyEditorV2Api.md +++ b/docs/PolicyEditorV2Api.md @@ -6,6 +6,8 @@ All URIs are relative to https://developers.fireblocks.com/reference/ |------------- | ------------- | -------------| | [**getActivePolicy**](PolicyEditorV2Api.md#getActivePolicy) | **GET** /policy/active_policy | Get the active policy and its validation by policy type | | [**getDraft**](PolicyEditorV2Api.md#getDraft) | **GET** /policy/draft | Get the active draft by policy type | +| [**getDraftReadOnly**](PolicyEditorV2Api.md#getDraftReadOnly) | **GET** /policy/draft/read_only | Get the current draft without starting an edit session | +| [**getPolicyRuleQuota**](PolicyEditorV2Api.md#getPolicyRuleQuota) | **POST** /policy/rules/quota | Calculate the AOT quota for a policy rule | | [**publishDraft**](PolicyEditorV2Api.md#publishDraft) | **POST** /policy/draft | Send publish request for a certain draft id | | [**updateDraft**](PolicyEditorV2Api.md#updateDraft) | **PUT** /policy/draft | Update the draft with a new set of rules by policy types | @@ -165,6 +167,167 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| +## getDraftReadOnly + +> CompletableFuture> getDraftReadOnly getDraftReadOnly(policyType) + +Get the current draft without starting an edit session + +Returns the active draft and its validation for a specific policy type, without taking the edit lock. If no draft exists, the active policy is returned with a null draftId. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.PolicyEditorV2Api; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + PolicyType policyType = PolicyType.fromValue("TRANSFER"); // PolicyType | The policy type(s) to retrieve. Can be a single type or multiple types by repeating the parameter (e.g., ?policyType=TRANSFER&policyType=MINT). + try { + CompletableFuture> response = fireblocks.policyEditorV2().getDraftReadOnly(policyType); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling PolicyEditorV2Api#getDraftReadOnly"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **policyType** | [**PolicyType**](.md)| The policy type(s) to retrieve. Can be a single type or multiple types by repeating the parameter (e.g., ?policyType=TRANSFER&policyType=MINT). | [enum: TRANSFER, STAKE, CONTRACT_CALL, TYPED_MESSAGE, APPROVE, MINT, BURN, RAW, COMPLIANCE, DEPLOYMENT, PROGRAM_CALL, DAPP_CONNECTION, UPGRADE, ORDER, AML_CHAINALYSIS_V2_SCREENING, AML_CHAINALYSIS_V2_POST_SCREENING, AML_ELLIPTIC_HOLISTIC_SCREENING, AML_ELLIPTIC_HOLISTIC_POST_SCREENING, TR_NOTABENE_SCREENING, TR_NOTABENE_POST_SCREENING] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | A draft validation response object | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + +## getPolicyRuleQuota + +> CompletableFuture> getPolicyRuleQuota getPolicyRuleQuota(policyRuleQuotaRequest, idempotencyKey) + +Calculate the AOT quota for a policy rule + +Returns the Amount Over Time (AOT) quota calculated for a specific policy rule. Endpoint Permissions: Owner, Admin, Non-Signing Admin. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.PolicyEditorV2Api; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + PolicyRuleQuotaRequest policyRuleQuotaRequest = new PolicyRuleQuotaRequest(); // PolicyRuleQuotaRequest | + String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + try { + CompletableFuture> response = fireblocks.policyEditorV2().getPolicyRuleQuota(policyRuleQuotaRequest, idempotencyKey); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling PolicyEditorV2Api#getPolicyRuleQuota"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **policyRuleQuotaRequest** | [**PolicyRuleQuotaRequest**](PolicyRuleQuotaRequest.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] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The calculated AOT quota for the rule | * X-Request-ID -
| +| **400** | Invalid request parameters or rule configuration prevents AOT calculation. | * X-Request-ID -
| +| **403** | Caller lacks permission to access the requested rule. | * X-Request-ID -
| +| **404** | The requested policy rule was not found. | * X-Request-ID -
| +| **429** | Rate limit exceeded: slow down and retry later. | * X-Request-ID -
| +| **500** | Internal server error while calculating AOT quota. | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + ## publishDraft > CompletableFuture> publishDraft publishDraft(publishDraftRequest, idempotencyKey) diff --git a/docs/PolicyEditorV2BetaApi.md b/docs/PolicyEditorV2BetaApi.md deleted file mode 100644 index f3420556..00000000 --- a/docs/PolicyEditorV2BetaApi.md +++ /dev/null @@ -1,93 +0,0 @@ -# PolicyEditorV2BetaApi - -All URIs are relative to https://developers.fireblocks.com/reference/ - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**getPolicyRuleQuota**](PolicyEditorV2BetaApi.md#getPolicyRuleQuota) | **POST** /policy/rules/quota | Calculate the AOT quota for a policy rule | - - - -## getPolicyRuleQuota - -> CompletableFuture> getPolicyRuleQuota getPolicyRuleQuota(policyRuleQuotaRequest, idempotencyKey) - -Calculate the AOT quota for a policy rule - -Returns the Amount Over Time (AOT) quota calculated for a specific policy rule. Endpoint Permissions: Owner, Admin, Non-Signing Admin. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.PolicyEditorV2BetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - PolicyRuleQuotaRequest policyRuleQuotaRequest = new PolicyRuleQuotaRequest(); // PolicyRuleQuotaRequest | - String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. - try { - CompletableFuture> response = fireblocks.policyEditorV2Beta().getPolicyRuleQuota(policyRuleQuotaRequest, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling PolicyEditorV2BetaApi#getPolicyRuleQuota"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **policyRuleQuotaRequest** | [**PolicyRuleQuotaRequest**](PolicyRuleQuotaRequest.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] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | The calculated AOT quota for the rule | * X-Request-ID -
| -| **400** | Invalid request parameters or rule configuration prevents AOT calculation. | * X-Request-ID -
| -| **403** | Caller lacks permission to access the requested rule. | * X-Request-ID -
| -| **404** | The requested policy rule was not found. | * X-Request-ID -
| -| **429** | Rate limit exceeded: slow down and retry later. | * X-Request-ID -
| -| **500** | Internal server error while calculating AOT quota. | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - diff --git a/docs/ReadOnlyDraftResponse.md b/docs/ReadOnlyDraftResponse.md new file mode 100644 index 00000000..c5f62519 --- /dev/null +++ b/docs/ReadOnlyDraftResponse.md @@ -0,0 +1,17 @@ + + +# ReadOnlyDraftResponse + +Response object for the read-only draft operation + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **String** | Operation status | | +|**rules** | [**List<PolicyRule>**](PolicyRule.md) | Draft rules | | +|**draftId** | **String** | Draft unique id. null when no draft is stored; the active policy is returned | | +|**metadata** | [**Map<String, PolicyMetadataEntry>**](PolicyMetadataEntry.md) | Policy metadata keyed by policy type | | + + + diff --git a/docs/ReadOnlyDraftReviewAndValidationResponse.md b/docs/ReadOnlyDraftReviewAndValidationResponse.md new file mode 100644 index 00000000..e3c24cb5 --- /dev/null +++ b/docs/ReadOnlyDraftReviewAndValidationResponse.md @@ -0,0 +1,15 @@ + + +# ReadOnlyDraftReviewAndValidationResponse + +Read-only draft validation + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**draftResponse** | [**ReadOnlyDraftResponse**](ReadOnlyDraftResponse.md) | | | +|**validation** | [**PolicyValidation**](PolicyValidation.md) | | | + + + diff --git a/docs/RegisterTempoOmnibusResponse.md b/docs/RegisterTempoOmnibusResponse.md new file mode 100644 index 00000000..92087942 --- /dev/null +++ b/docs/RegisterTempoOmnibusResponse.md @@ -0,0 +1,24 @@ + + +# RegisterTempoOmnibusResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**txId** | **String** | The ID of the wallet activation transaction. Absent when no activation transaction was submitted. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the Tempo omnibus wallet. `READY` is returned with 200; `PROCESSING` and `PENDING_ACTIVATION` are returned with 202. A failed activation is returned as an error. | | + + + +## Enum: StatusEnum + +| Name | Value | +|---- | -----| +| PROCESSING | "PROCESSING" | +| PENDING_ACTIVATION | "PENDING_ACTIVATION" | +| READY | "READY" | + + + diff --git a/docs/ReportsBetaApi.md b/docs/ReportsApi.md similarity index 87% rename from docs/ReportsBetaApi.md rename to docs/ReportsApi.md index b8883709..d4b5d321 100644 --- a/docs/ReportsBetaApi.md +++ b/docs/ReportsApi.md @@ -1,12 +1,12 @@ -# ReportsBetaApi +# ReportsApi All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**createReport**](ReportsBetaApi.md#createReport) | **POST** /reports | Create a report | -| [**getReport**](ReportsBetaApi.md#getReport) | **GET** /reports/{reportId} | Get report status | -| [**listReports**](ReportsBetaApi.md#listReports) | **GET** /reports | List reports | +| [**createReport**](ReportsApi.md#createReport) | **POST** /reports | Create a report | +| [**getReport**](ReportsApi.md#getReport) | **GET** /reports/{reportId} | Get report status | +| [**listReports**](ReportsApi.md#listReports) | **GET** /reports | List reports | @@ -16,7 +16,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ Create a report -Creates a new asynchronous report job and returns a receipt containing the report ID. Poll `GET /v1/reports/{reportId}` to check status. When `status` is `COMPLETED`, the poll response includes a fresh pre-signed download URL in `links.downloadUrl`. **Note:** These endpoints are currently in beta and might be subject to changes. Endpoint Permission: Viewer and above. +Creates a new asynchronous report job and returns a receipt containing the report ID. Poll `GET /v1/reports/{reportId}` to check status. When `status` is `COMPLETED`, the poll response includes a fresh pre-signed download URL in `links.downloadUrl`. Endpoint Permission: Viewer and above. ### Example @@ -29,7 +29,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ReportsBetaApi; +import com.fireblocks.sdk.api.ReportsApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -44,13 +44,13 @@ public class Example { CreateAddressesReportRequest body = new CreateAddressesReportRequest(); // CreateAddressesReportRequest | String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. try { - CompletableFuture> response = fireblocks.reportsBeta().createReport(body, idempotencyKey); + CompletableFuture> response = fireblocks.reports().createReport(body, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ReportsBetaApi#createReport"); + System.err.println("Exception when calling ReportsApi#createReport"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -96,7 +96,7 @@ No authorization required Get report status -Returns the current status of a report job. Check the `status` field to determine the outcome. When `status` is `COMPLETED`, the response includes a fresh pre-signed download URL in `links.downloadUrl` (TTL ~1 hour). Re-poll this endpoint to obtain a new URL after expiry. When `status` is `FAILED`, the `failedAt` timestamp indicates when the failure occurred. **Note:** These endpoints are currently in beta and might be subject to changes. Endpoint Permission: Viewer and above. +Returns the current status of a report job. Check the `status` field to determine the outcome. When `status` is `COMPLETED`, the response includes a fresh pre-signed download URL in `links.downloadUrl` (TTL ~1 hour). Re-poll this endpoint to obtain a new URL after expiry. When `status` is `FAILED`, the `failedAt` timestamp indicates when the failure occurred. Endpoint Permission: Viewer and above. ### Example @@ -109,7 +109,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ReportsBetaApi; +import com.fireblocks.sdk.api.ReportsApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -123,13 +123,13 @@ public class Example { String reportId = "0190b3c2-7e4a-7c31-9f2a-1b6d8e5a0c11"; // String | The unique identifier of the report job try { - CompletableFuture> response = fireblocks.reportsBeta().getReport(reportId); + CompletableFuture> response = fireblocks.reports().getReport(reportId); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ReportsBetaApi#getReport"); + System.err.println("Exception when calling ReportsApi#getReport"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -173,7 +173,7 @@ No authorization required List reports -Returns a paginated list of report jobs scoped to the calling tenant. **Note:** Download URLs are not included in list responses. Call `GET /v1/reports/{reportId}` to obtain a fresh signed download URL for a specific completed report. **Note:** These endpoints are currently in beta and might be subject to changes. Endpoint Permission: Viewer and above. +Returns a paginated list of report jobs scoped to the calling tenant. **Note:** Download URLs are not included in list responses. Call `GET /v1/reports/{reportId}` to obtain a fresh signed download URL for a specific completed report. Endpoint Permission: Viewer and above. ### Example @@ -186,7 +186,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ReportsBetaApi; +import com.fireblocks.sdk.api.ReportsApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -205,13 +205,13 @@ public class Example { List status = Arrays.asList(); // List | Filter by lifecycle status. Repeat the parameter to filter on multiple statuses (e.g., ?status=QUEUED&status=PROCESSING). List reportType = Arrays.asList(); // List | Filter by report type. Repeat the parameter to filter on multiple types. try { - CompletableFuture> response = fireblocks.reportsBeta().listReports(pageCursor, pageSize, sortBy, order, status, reportType); + CompletableFuture> response = fireblocks.reports().listReports(pageCursor, pageSize, sortBy, order, status, reportType); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ReportsBetaApi#listReports"); + System.err.println("Exception when calling ReportsApi#listReports"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); diff --git a/docs/RevokeWebhookOauthKeyRequest.md b/docs/RevokeWebhookOauthKeyRequest.md new file mode 100644 index 00000000..9d5a6ac4 --- /dev/null +++ b/docs/RevokeWebhookOauthKeyRequest.md @@ -0,0 +1,14 @@ + + +# RevokeWebhookOauthKeyRequest + +Which key to revoke. Omit `kid`, or send an empty body, to revoke the key Fireblocks is signing with. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**kid** | **String** | The `kid` of the key to revoke, as the JWKS at `jwksUri` lists it: the signing key, its successor, a key rotated out and still published, or a key left behind by a `signingAlg` change within its 30 days. Omit to revoke the signing key; `null` is refused rather than read as omitted. Required on credentials that no longer use `private_key_jwt`. | [optional] | + + + diff --git a/docs/RevokeWebhookOauthKeyResponse.md b/docs/RevokeWebhookOauthKeyResponse.md new file mode 100644 index 00000000..c32e9b0f --- /dev/null +++ b/docs/RevokeWebhookOauthKeyResponse.md @@ -0,0 +1,14 @@ + + +# RevokeWebhookOauthKeyResponse + +The key that was revoked. It is no longer published at the `jwksUri` of the credentials. Fetch the JWKS from there for the current public keys. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**kid** | **String** | The `kid` of the key revoked. When the request carried no `kid`, this is the key Fireblocks was signing with. It is the SHA-256 fingerprint of the public key's DER (SPKI) encoding, in lowercase hex. | | + + + diff --git a/docs/RotateWebhookOauthKeyResponse.md b/docs/RotateWebhookOauthKeyResponse.md new file mode 100644 index 00000000..00416fc9 --- /dev/null +++ b/docs/RotateWebhookOauthKeyResponse.md @@ -0,0 +1,14 @@ + + +# RotateWebhookOauthKeyResponse + +The key that was rotated out. It stays published at the `jwksUri` of the credentials for 30 days. Fetch the JWKS from there for the current public keys. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**kid** | **String** | The `kid` of the key rotated out, the one Fireblocks was signing with until now. It is the SHA-256 fingerprint of the public key's DER (SPKI) encoding, in lowercase hex. | | + + + diff --git a/docs/SolanaRewardsBreakdown.md b/docs/SolanaRewardsBreakdown.md index cb53d37b..ad640978 100644 --- a/docs/SolanaRewardsBreakdown.md +++ b/docs/SolanaRewardsBreakdown.md @@ -10,7 +10,9 @@ A breakdown of the staking rewards earned by the position. |------------ | ------------- | ------------- | -------------| |**inflation** | **String** | The inflation reward amount earned by the position, measured in the staked asset unit. | | |**mev** | **String** | The MEV reward amount earned by the position, measured in the staked asset unit. | | -|**lastRewardSyncedAt** | **OffsetDateTime** | The last time the rewards were synced (ISO Date). | | +|**lastRewardSyncedAt** | **OffsetDateTime** | The time (UTC) of the last sync that fetched this position's rewards from the rewards provider. It is updated on every sync, including when nothing new was found, so it is not the date of the newest reward (see latestInflationRewardDate and latestMevRewardDate). | | +|**latestInflationRewardDate** | **LocalDate** | The date (UTC, YYYY-MM-DD) of the newest inflation reward the rewards provider has returned for this stake account. Null until the provider returns one. | [optional] | +|**latestMevRewardDate** | **LocalDate** | The date (UTC, YYYY-MM-DD) of the newest MEV reward the rewards provider has returned for this stake account. Null until the provider returns one, and for validators without MEV rewards. | [optional] | diff --git a/docs/StakingApi.md b/docs/StakingApi.md index 31c5a16c..eee40146 100644 --- a/docs/StakingApi.md +++ b/docs/StakingApi.md @@ -113,7 +113,7 @@ No authorization required Claim accrued rewards -Claims available staking rewards for the specified chain and vault. Supported chains: Solana and Polygon (POL/Matic). Behavior depends on protocol reward distribution. +Claims available staking rewards for the specified chain and vault. Supported chains: Solana, Polygon (POL/Matic) and Celestia. Behavior depends on protocol reward distribution. ### Example @@ -139,7 +139,7 @@ public class Example { Fireblocks fireblocks = new Fireblocks(configurationOptions); ClaimRewardsRequest claimRewardsRequest = new ClaimRewardsRequest(); // ClaimRewardsRequest | - String chainDescriptor = "SOL"; // String | Protocol identifier for the claim rewards staking operation (e.g., POL/MATIC/SOL). + String chainDescriptor = "SOL"; // String | Protocol identifier for the claim rewards staking operation (e.g., POL/MATIC/SOL/CELESTIA). String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. try { CompletableFuture> response = fireblocks.staking().claimRewards(claimRewardsRequest, chainDescriptor, idempotencyKey); @@ -163,7 +163,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **claimRewardsRequest** | [**ClaimRewardsRequest**](ClaimRewardsRequest.md)| | | -| **chainDescriptor** | **String**| Protocol identifier for the claim rewards staking operation (e.g., POL/MATIC/SOL). | [enum: SOL, SOL_TEST, MATIC, POL, POL_TEST] | +| **chainDescriptor** | **String**| Protocol identifier for the claim rewards staking operation (e.g., POL/MATIC/SOL/CELESTIA). | [enum: SOL, SOL_TEST, MATIC, POL, POL_TEST, CELESTIA] | | **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] | ### Return type @@ -198,7 +198,7 @@ No authorization required Consolidate staking positions (ETH validator consolidation) -Consolidates the source staking position into the destination, merging the balance into the destination and closing the source position once complete. Both positions must be from the same vault account (i.e. same withdrawal credentials). On chain, this translates into a consolidation transaction, where the source validator is consolidated into the destination validator. Supported chains: Ethereum (ETH) only. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor. **Note:** This endpoint is currently in beta and might be subject to changes. +Consolidates the source staking position into the destination, merging the balance into the destination and closing the source position once complete. Both positions must be from the same vault account (i.e. same withdrawal credentials). On chain, this translates into a consolidation transaction, where the source validator is consolidated into the destination validator. Supported chains: Ethereum (ETH) only. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor. ### Example diff --git a/docs/TempoBetaApi.md b/docs/TempoApi.md similarity index 89% rename from docs/TempoBetaApi.md rename to docs/TempoApi.md index e5321457..2754af80 100644 --- a/docs/TempoBetaApi.md +++ b/docs/TempoApi.md @@ -1,10 +1,10 @@ -# TempoBetaApi +# TempoApi All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**createTempoTransfer**](TempoBetaApi.md#createTempoTransfer) | **POST** /operations/tempo/transfer | Create a Tempo transfer transaction | +| [**createTempoTransfer**](TempoApi.md#createTempoTransfer) | **POST** /operations/tempo/transfer | Create a Tempo transfer transaction | @@ -27,7 +27,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TempoBetaApi; +import com.fireblocks.sdk.api.TempoApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -42,13 +42,13 @@ public class Example { CreateTempoTransferRequest createTempoTransferRequest = new CreateTempoTransferRequest(); // CreateTempoTransferRequest | String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. try { - CompletableFuture> response = fireblocks.tempoBeta().createTempoTransfer(createTempoTransferRequest, idempotencyKey); + CompletableFuture> response = fireblocks.tempo().createTempoTransfer(createTempoTransferRequest, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TempoBetaApi#createTempoTransfer"); + System.err.println("Exception when calling TempoApi#createTempoTransfer"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); diff --git a/docs/TempoTransferDestinationItem.md b/docs/TempoTransferDestinationItem.md index e6683934..7b730a5a 100644 --- a/docs/TempoTransferDestinationItem.md +++ b/docs/TempoTransferDestinationItem.md @@ -10,7 +10,7 @@ One destination in a multi-destination transfer. `destination.type` is narrowed |------------ | ------------- | ------------- | -------------| |**amount** | **String** | The amount to transfer to this destination, as a numeric string. | [optional] | |**destination** | [**TempoTransferDestination**](TempoTransferDestination.md) | | [optional] | -|**travelRuleMessageId** | **String** | Beta. An identifier of a TravelRule message, already sent to the TravelRule provider. | [optional] | +|**travelRuleMessageId** | **String** | Early availability. An identifier of a TravelRule message, already sent to the TravelRule provider. | [optional] | |**customerRefId** | **String** | The ID for AML providers to associate the owner of funds with transactions. | [optional] | diff --git a/docs/TransactionRequest.md b/docs/TransactionRequest.md index efa9e226..994f3e72 100644 --- a/docs/TransactionRequest.md +++ b/docs/TransactionRequest.md @@ -10,7 +10,7 @@ |**operation** | **TransactionOperation** | | [optional] | |**note** | **String** | Custom note, not sent to the blockchain, to describe the transaction at your Fireblocks workspace. | [optional] | |**externalTxId** | **String** | This parameter allows you to add a unique ID of your own to help prevent duplicate transactions. No specific format is required for this parameter. After you submit a transaction with an external ID, Fireblocks will automatically reject all future transactions with the same ID. Using an external ID primarily helps in situations where, even though a submitted transaction responds with an error due to an internet outage, the transaction was still sent to and processed on the blockchain. Use the [Get a specific transaction by external transaction ID](https://developers.fireblocks.com/reference/gettransactionbyexternalid) endpoint to validate whether these transactions have been processed. | [optional] | -|**feeCurrency** | **String** | For Tempo-based transactions only, the asset used to pay the transaction's network fee, as an asset ID ([see supported assets](https://developers.fireblocks.com/api-reference/blockchains-&-assets/list-assets)). For any other blockchain, this value is ignored. This feature is currently in beta and might be subject to changes. | [optional] | +|**feeCurrency** | **String** | For Tempo-based transactions only, the asset used to pay the transaction's network fee, as an asset ID ([see supported assets](https://developers.fireblocks.com/api-reference/blockchains-&-assets/list-assets)). For any other blockchain, this value is ignored. This feature is currently in early availability and might be subject to changes. | [optional] | |**assetId** | **String** | The ID of the asset to transfer, for `TRANSFER`, `MINT` or `BURN` operations. [See the list of supported assets and their IDs on Fireblocks.](https://developers.fireblocks.com/reference/gettrlinksupportedasset#/) | [optional] | |**source** | [**SourceTransferPeerPath**](SourceTransferPeerPath.md) | | [optional] | |**destination** | [**DestinationTransferPeerPath**](DestinationTransferPeerPath.md) | | [optional] | diff --git a/docs/TravelRuleApi.md b/docs/TravelRuleApi.md index 9e117c58..8f14539e 100644 --- a/docs/TravelRuleApi.md +++ b/docs/TravelRuleApi.md @@ -12,6 +12,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | [**setVaspForVault**](TravelRuleApi.md#setVaspForVault) | **POST** /screening/travel_rule/vault/{vaultAccountId}/vasp | Assign VASP to vault | | [**updateVasp**](TravelRuleApi.md#updateVasp) | **PUT** /screening/travel_rule/vasp/update | Add jsonDidKey to VASP details | | [**validateFullTravelRuleTransaction**](TravelRuleApi.md#validateFullTravelRuleTransaction) | **POST** /screening/travel_rule/transaction/validate/full | Validate Full Travel Rule Transaction | +| [**validateTravelRuleTransaction**](TravelRuleApi.md#validateTravelRuleTransaction) | **POST** /screening/travel_rule/transaction/validate | Validate Travel Rule Transaction | @@ -656,3 +657,84 @@ No authorization required | **200** | Transaction validated successfully | - | | **0** | Error Response | * X-Request-ID -
| + +## validateTravelRuleTransaction + +> CompletableFuture> validateTravelRuleTransaction validateTravelRuleTransaction(travelRuleValidateTransactionRequest, notation, idempotencyKey) + +Validate Travel Rule Transaction + +Validate Travel Rule transactions. Checks what beneficiary VASP details are required by your jurisdiction and the beneficiary's jurisdiction. **Deprecation Notice** This endpoint will be deprecated soon in favor of the [validate full](https://developers.fireblocks.com/reference/validatefulltravelruletransaction) endpoint. Please update your integrations to use the [validate full](https://developers.fireblocks.com/reference/validatefulltravelruletransaction) endpoint to ensure compatibility with future releases. Checks what beneficiary VASP details are required by your jurisdiction and the beneficiary's jurisdiction. Learn more about Fireblocks Travel Rule management in the following [guide](https://developers.fireblocks.com/docs/define-travel-rule-policies). Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.TravelRuleApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + TravelRuleValidateTransactionRequest travelRuleValidateTransactionRequest = new TravelRuleValidateTransactionRequest(); // TravelRuleValidateTransactionRequest | + List notation = Arrays.asList(); // List | Specifies the notation of the transaction. Possible values are: - `notabene`: Uses Notabene notation (default behavior). - `fireblocks`: Uses Fireblocks notation, with automatic translation of asset tickers and amounts. - ``: Defaults to `notabene` for backward compatibility. **Note:** The default value for the `notation` parameter will change from `notabene` to `fireblocks` Update your integrations accordingly. + String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + try { + CompletableFuture> response = fireblocks.travelRule().validateTravelRuleTransaction(travelRuleValidateTransactionRequest, notation, idempotencyKey); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling TravelRuleApi#validateTravelRuleTransaction"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **travelRuleValidateTransactionRequest** | [**TravelRuleValidateTransactionRequest**](TravelRuleValidateTransactionRequest.md)| | | +| **notation** | [**List<String>**](String.md)| Specifies the notation of the transaction. Possible values are: - `notabene`: Uses Notabene notation (default behavior). - `fireblocks`: Uses Fireblocks notation, with automatic translation of asset tickers and amounts. - `<none>`: Defaults to `notabene` for backward compatibility. **Note:** The default value for the `notation` parameter will change from `notabene` to `fireblocks` Update your integrations accordingly. | [optional] [enum: fireblocks, notabene] | +| **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] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Transaction validated successfully | - | +| **0** | Error Response | * X-Request-ID -
| + diff --git a/docs/UpdateWebhookCustomHeadersRequest.md b/docs/UpdateWebhookCustomHeadersRequest.md new file mode 100644 index 00000000..0630178c --- /dev/null +++ b/docs/UpdateWebhookCustomHeadersRequest.md @@ -0,0 +1,15 @@ + + +# UpdateWebhookCustomHeadersRequest + +A partial update. Every field is optional and an omitted field is left as it is. A change to `headers` applies to every webhook and OAuth credential set using the set. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | A label for this set. Omit to leave it unchanged. | [optional] | +|**headers** | **Map<String, Object>** | A delta applied to the headers. A header with a value is added or replaced, a header with `null` is deleted, and one you leave out is untouched. A value replaces what is stored under that name rather than adding to it, so an array is the complete new set of lines for that header. Names are case-insensitive, so a `null` under one casing deletes a header stored under another, and names are stored and returned lowercased. The set cannot be emptied: a change that would leave no headers is refused with a `400`. To remove the set, delete it. The whole field cannot be `null`. Same rules as on create: a string or a non-empty array, `Cookie` and `Authorization` string-only, 10 headers and under 16 KB in the resulting set, the same reserved names (see the create request) never allowed, and values write-only. Entries set to `null` do not count towards the limit. The change applies to everything already using the set. Where Fireblocks sends its own `Authorization` header, a custom `Authorization` header is not sent: on a webhook that has `webhookOauthId` set (an OAuth bearer token), and on the token request of OAuth credentials that use `client_secret_basic`. | [optional] | + + + diff --git a/docs/UpdateWebhookOauthRequest.md b/docs/UpdateWebhookOauthRequest.md index b7a93bce..b069037e 100644 --- a/docs/UpdateWebhookOauthRequest.md +++ b/docs/UpdateWebhookOauthRequest.md @@ -2,7 +2,7 @@ # UpdateWebhookOauthRequest -A partial update. Every field is optional and an omitted field is left as it is, so `{ \"clientSecret\": \"new-secret\" }` rotates the secret and changes nothing else. A rotation applies to every webhook referencing these credentials. The three custom maps merge. A key with a value is upserted, a key with `null` is deleted, a key you leave out is untouched, and the whole field set to `null` clears the map. There is no ambiguity between the two uses of `null` — one names an entry, the other names the field. `webhookMtlsId` is a scalar, so `null` there removes it. +A partial update. Every field is optional and an omitted field is left as it is, so `{ \"clientSecret\": \"new-secret\" }` rotates the secret and changes nothing else. A rotation applies to every webhook referencing these credentials. The result is checked against the resulting `authMethod`, not just the fields sent: the secret methods must end up with a `clientSecret`, and a `signingAlg` value is only valid when the resulting method is `private_key_jwt`. The two custom maps merge. A key with a value is upserted, a key with `null` is deleted, a key you leave out is untouched, and the whole field set to `null` clears the map. There is no ambiguity between the two uses of `null` — one names an entry, the other names the field. `webhookMtlsId` and `webhookCustomHeadersId` are scalars, so `null` there removes them. ## Properties @@ -10,13 +10,14 @@ A partial update. Every field is optional and an omitted field is left as it is, |------------ | ------------- | ------------- | -------------| |**name** | **String** | A label for this credential set. Omit to leave it unchanged. | [optional] | |**clientId** | **String** | OAuth client ID. Omit to leave it unchanged. | [optional] | -|**clientSecret** | **String** | A new OAuth client secret. Limited to 480 bytes when UTF-8 encoded, so a secret using non-ASCII characters fits fewer than 480 of them. Write-only — never returned in any response. Send this on its own to rotate the secret without changing anything else. Omit to leave it unchanged. | [optional] | +|**clientSecret** | **String** | A new OAuth client secret. Limited to 480 bytes when UTF-8 encoded, so a secret using non-ASCII characters fits fewer than 480 of them. Write-only — never returned in any response. Send this on its own to rotate the secret without changing anything else. Omit to leave it unchanged. Must not be sent with a value when the resulting `authMethod` is `private_key_jwt` (`400` otherwise). A secret already stored from before a switch to `private_key_jwt` is kept, unused, so switching back needs no new one; send `null` to clear it. A secret method must still end up with a secret, so `null` is refused unless the resulting method is `private_key_jwt`. | [optional] | |**url** | **String** | Token endpoint URL. HTTPS on port 443 only, and the host must resolve publicly. Omit to leave it unchanged. | [optional] | -|**authMethod** | **String** | `client_secret_basic`, `client_secret_post` or `client_secret_jwt`. Omit to leave it unchanged — it does not revert to the default. | [optional] | +|**authMethod** | **String** | `client_secret_basic`, `client_secret_post`, `client_secret_jwt` or `private_key_jwt`. Omit to leave it unchanged — it does not revert to the default. Switching to `private_key_jwt` brings back the key pairs these credentials held before, if they are still kept, and otherwise generates a signing key and its successor. Either way the first assertion names a `kid` your authorization server may not hold yet, so it fetches the JWKS again. Switching away from `private_key_jwt` empties `signingAlg`, and keeps the key pairs published for 30 days before deleting them, so switching back within that time restores them; it needs a `clientSecret`, either sent here or still stored. | [optional] | +|**signingAlg** | **WebhookOauthSigningAlg** | A new algorithm for the key pairs of `private_key_jwt` credentials. Omit to leave it unchanged. A value is only valid when the resulting `authMethod` is `private_key_jwt` (`400` otherwise); a switch to `private_key_jwt` that omits it uses `RS256`, or the algorithm of the key pairs it brings back. `null` means no algorithm, and is accepted only when the resulting method is `client_secret_basic`, `client_secret_post` or `client_secret_jwt`; with `private_key_jwt` it is a `400`. A change generates a new signing key and successor in the new algorithm, and signing switches to them at once. The previous keys stay published for 5 minutes and are kept for 30 days: changing back within that time restores them, with their original expiry, instead of generating new ones, and `revoke_key` can delete them by `kid` until then. | [optional] | |**customJwtClaims** | **Map<String, Object>** | A delta applied to the JWT assertion claims. A claim with a value is added or replaced, a claim with `null` is deleted, and a claim you leave out is untouched. So `{ \"aud\": \"https://auth.example.com\", \"resource\": null }` sets `aud`, drops `resource`, and changes nothing else. Send `customJwtClaims: null` to clear every claim in one call. That does not collide with a `null` value on a name: one names the claim to delete, the other names the whole field. Same rules as on create: any JSON type except `null`, `iss`/`sub`/`jti`/`iat`/`exp` reserved, names case-sensitive, resulting set under 16 KB, values write-only. | [optional] | |**customBodyParams** | **Map<String, String>** | A delta applied to the token request body parameters. A parameter with a value is added or replaced, a parameter with `null` is deleted, and one you leave out is untouched. So `{ \"scope\": \"payments.read\", \"audience\": null }` sets `scope`, drops `audience`, and changes nothing else. Send `customBodyParams: null` to clear every parameter in one call. That does not collide with a `null` value on a name: one names the parameter to delete, the other names the whole field. Same rules as on create: string values only, `grant_type`/`client_id`/`client_secret`/ `client_assertion`/`client_assertion_type` reserved, names case-sensitive, resulting set under 16 KB, values write-only. | [optional] | -|**customHeaders** | **Map<String, String>** | A delta applied to the token request headers — not the webhook delivery headers. A header with a value is added or replaced, a header with `null` is deleted, and one you leave out is untouched. So `{ \"X-Api-Key\": \"new-key\", \"X-Tenant\": null }` rotates `X-Api-Key`, drops `X-Tenant`, and changes nothing else. Send `customHeaders: null` to clear every header in one call. That does not collide with a `null` value on a name: one names the header to delete, the other names the whole field. Names are case-insensitive, so a `null` under one casing deletes a header stored under another, and names are stored and returned lowercased. Same rules as on create: string values only, `Content-Type`, `Content-Length` and `Host` reserved, `Authorization` only with `client_secret_post` or `client_secret_jwt`, resulting set under 16 KB, values write-only. | [optional] | -|**webhookMtlsId** | **UUID** | The id of the mTLS configuration presented to the token endpoint, from `/v1/webhooks_settings/mtls`. Omit to leave it unchanged, or send `null` to stop using mTLS for the token request. Requires the mTLS feature to be enabled for the workspace (`403` otherwise), a configuration of this workspace (`404` otherwise), and one linked to a private key (`400` otherwise). | [optional] | +|**webhookCustomHeadersId** | **UUID** | The id of the set of custom HTTP headers added to the token request, from `/v1/webhooks_settings/custom_headers`. Omit to leave it unchanged, or send `null` to stop sending extra headers. The same rules apply as for a webhook delivery, including the reserved header names. Under `client_secret_basic` Fireblocks sends its own `Authorization` header with the credentials, and a custom `Authorization` header is not sent. Replaces the inline `customHeaders` field, which is now refused with a `400`: use `webhookCustomHeadersId`. An unknown id, or one belonging to another workspace, is a `404`. | [optional] | +|**webhookMtlsId** | **UUID** | The id of the mTLS configuration presented to the token endpoint, from `/v1/webhooks_settings/mtls`. Omit to leave it unchanged, or send `null` to stop using mTLS for the token request. Requires a configuration of this workspace (`404` otherwise) that is linked to a private key (`400` otherwise). | [optional] | diff --git a/docs/UpdateWebhookRequest.md b/docs/UpdateWebhookRequest.md index 5ba7b9f8..ebea9297 100644 --- a/docs/UpdateWebhookRequest.md +++ b/docs/UpdateWebhookRequest.md @@ -11,9 +11,9 @@ |**description** | **String** | description of the webhook of what it is used for.should not contain special characters. | [optional] | |**events** | **List<WebhookEvent>** | The events that the webhook will be subscribed to | [optional] | |**enabled** | **Boolean** | The status of the webhook | [optional] | -|**webhookMtlsId** | **UUID** | The id of the mTLS configuration this webhook presents when delivering, from `/v1/webhooks_settings/mtls`. Several webhooks may share one configuration, so replacing its certificate covers all of them at once. Send `null` to stop using mTLS for this webhook. | [optional] | -|**webhookOauthId** | **UUID** | The id of the OAuth credentials this webhook authenticates with, from `/v1/webhooks_settings/oauth`. Several webhooks may share one credential set, so rotating its client secret covers all of them at once. Send `null` to stop using OAuth for this webhook. Cannot be combined with an `authorization` custom header on the same webhook; a request that would leave both set is rejected. | [optional] | -|**customHeaders** | **Map<String, Object>** | A delta applied to the delivery headers. A header with a value is added or replaced, a header with `null` is deleted, and one you leave out is untouched. A value replaces what is stored under that name rather than adding to it, so an array is the complete new set of lines for that header. Send `customHeaders: null` to clear every header in one call. That does not collide with a `null` value on a name: one names the header to delete, the other names the whole field. Names are case-insensitive, so a `null` under one casing deletes a header stored under another. Same rules as on create: string or non-empty array, `Cookie` and `Authorization` string-only, 10 headers and under 16 KB in the resulting set, the same reserved names, and values write-only. Entries set to `null` do not count towards the limit. `Authorization` cannot be combined with `webhookOauthId`, though one request may add it and detach the credentials together. | [optional] | +|**webhookMtlsId** | **UUID** | The id of the mTLS configuration this webhook presents when delivering, from `/v1/webhooks_settings/mtls`. Several webhooks may share one configuration, so replacing its certificate covers all of them at once. Send `null` to stop using mTLS for this webhook. Requires advanced webhook controls to be enabled for the workspace (`403` otherwise), except to detach. | [optional] | +|**webhookOauthId** | **UUID** | The id of the OAuth credentials this webhook authenticates with, from `/v1/webhooks_settings/oauth`. Several webhooks may share one credential set, so rotating its client secret covers all of them at once. Send `null` to stop using OAuth for this webhook. When the webhook has OAuth credentials, Fireblocks sends its own `Authorization` header (the bearer token), and a custom `Authorization` header from the attached set is not sent. Requires advanced webhook controls to be enabled for the workspace (`403` otherwise), except to detach. | [optional] | +|**webhookCustomHeadersId** | **UUID** | The id of the set of custom HTTP headers sent with this webhook's notifications, from `/v1/webhooks_settings/custom_headers`. Several webhooks, and OAuth credentials, may share one set, so changing it covers all of them at once. Validated when the set is created or changed; attaching checks only that it exists in your workspace. Send `null` to stop sending custom headers with this webhook. Replaces the inline `customHeaders` field, which is now refused with a `400`, so use `webhookCustomHeadersId`. Requires advanced webhook controls to be enabled for the workspace (`403` otherwise), except to detach. An unknown id, or one belonging to another workspace, is a `404`. | [optional] | diff --git a/docs/UserGroupsBetaApi.md b/docs/UserGroupsApi.md similarity index 87% rename from docs/UserGroupsBetaApi.md rename to docs/UserGroupsApi.md index edc9bd92..7a0fe4f1 100644 --- a/docs/UserGroupsBetaApi.md +++ b/docs/UserGroupsApi.md @@ -1,14 +1,14 @@ -# UserGroupsBetaApi +# UserGroupsApi All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**createUserGroup**](UserGroupsBetaApi.md#createUserGroup) | **POST** /management/user_groups | Create user group | -| [**deleteUserGroup**](UserGroupsBetaApi.md#deleteUserGroup) | **DELETE** /management/user_groups/{groupId} | Delete user group | -| [**getUserGroup**](UserGroupsBetaApi.md#getUserGroup) | **GET** /management/user_groups/{groupId} | Get user group | -| [**getUserGroups**](UserGroupsBetaApi.md#getUserGroups) | **GET** /management/user_groups | List user groups | -| [**updateUserGroup**](UserGroupsBetaApi.md#updateUserGroup) | **PUT** /management/user_groups/{groupId} | Update user group | +| [**createUserGroup**](UserGroupsApi.md#createUserGroup) | **POST** /management/user_groups | Create user group | +| [**deleteUserGroup**](UserGroupsApi.md#deleteUserGroup) | **DELETE** /management/user_groups/{groupId} | Delete user group | +| [**getUserGroup**](UserGroupsApi.md#getUserGroup) | **GET** /management/user_groups/{groupId} | Get user group | +| [**getUserGroups**](UserGroupsApi.md#getUserGroups) | **GET** /management/user_groups | List user groups | +| [**updateUserGroup**](UserGroupsApi.md#updateUserGroup) | **PUT** /management/user_groups/{groupId} | Update user group | @@ -31,7 +31,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.UserGroupsBetaApi; +import com.fireblocks.sdk.api.UserGroupsApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -46,13 +46,13 @@ public class Example { UserGroupCreateRequest userGroupCreateRequest = new UserGroupCreateRequest(); // UserGroupCreateRequest | String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. try { - CompletableFuture> response = fireblocks.userGroupsBeta().createUserGroup(userGroupCreateRequest, idempotencyKey); + CompletableFuture> response = fireblocks.userGroups().createUserGroup(userGroupCreateRequest, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling UserGroupsBetaApi#createUserGroup"); + System.err.println("Exception when calling UserGroupsApi#createUserGroup"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -97,7 +97,7 @@ No authorization required Delete user group -Delete a user group by ID. **Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. +Delete a user group by ID. **Note**: - Please note that this endpoint is available only for API keys with Admin permissions. ### Example @@ -110,7 +110,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.UserGroupsBetaApi; +import com.fireblocks.sdk.api.UserGroupsApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -124,12 +124,12 @@ public class Example { String groupId = "groupId_example"; // String | The ID of the user group try { - CompletableFuture> response = fireblocks.userGroupsBeta().deleteUserGroup(groupId); + CompletableFuture> response = fireblocks.userGroups().deleteUserGroup(groupId); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling UserGroupsBetaApi#deleteUserGroup"); + System.err.println("Exception when calling UserGroupsApi#deleteUserGroup"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -173,7 +173,7 @@ No authorization required Get user group -Get a user group by ID. **Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. +Get a user group by ID. **Note**: - Please note that this endpoint is available only for API keys with Admin permissions. ### Example @@ -186,7 +186,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.UserGroupsBetaApi; +import com.fireblocks.sdk.api.UserGroupsApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -200,13 +200,13 @@ public class Example { String groupId = "groupId_example"; // String | The ID of the user group try { - CompletableFuture> response = fireblocks.userGroupsBeta().getUserGroup(groupId); + CompletableFuture> response = fireblocks.userGroups().getUserGroup(groupId); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling UserGroupsBetaApi#getUserGroup"); + System.err.println("Exception when calling UserGroupsApi#getUserGroup"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -263,7 +263,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.UserGroupsBetaApi; +import com.fireblocks.sdk.api.UserGroupsApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -276,13 +276,13 @@ public class Example { Fireblocks fireblocks = new Fireblocks(configurationOptions); try { - CompletableFuture>> response = fireblocks.userGroupsBeta().getUserGroups(); + CompletableFuture>> response = fireblocks.userGroups().getUserGroups(); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling UserGroupsBetaApi#getUserGroups"); + System.err.println("Exception when calling UserGroupsApi#getUserGroups"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); @@ -323,7 +323,7 @@ No authorization required Update user group -Update a user group by ID. **Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. +Update a user group by ID. **Note**: - Please note that this endpoint is available only for API keys with Admin permissions. ### Example @@ -336,7 +336,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.UserGroupsBetaApi; +import com.fireblocks.sdk.api.UserGroupsApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -352,13 +352,13 @@ public class Example { String groupId = "groupId_example"; // String | The ID of the user group String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. try { - CompletableFuture> response = fireblocks.userGroupsBeta().updateUserGroup(userGroupUpdateRequest, groupId, idempotencyKey); + CompletableFuture> response = fireblocks.userGroups().updateUserGroup(userGroupUpdateRequest, groupId, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling UserGroupsBetaApi#updateUserGroup"); + System.err.println("Exception when calling UserGroupsApi#updateUserGroup"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); diff --git a/docs/VaultsApi.md b/docs/VaultsApi.md index 3e0fcda1..b99d99ad 100644 --- a/docs/VaultsApi.md +++ b/docs/VaultsApi.md @@ -10,6 +10,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | [**createLegacyAddress**](VaultsApi.md#createLegacyAddress) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/create_legacy | Convert a segwit address to legacy format | | [**createMultipleAccounts**](VaultsApi.md#createMultipleAccounts) | **POST** /vault/accounts/bulk | Bulk creation of new vault accounts | | [**createMultipleDepositAddresses**](VaultsApi.md#createMultipleDepositAddresses) | **POST** /vault/accounts/addresses/bulk | Bulk creation of new deposit addresses | +| [**createOmnibusAddresses**](VaultsApi.md#createOmnibusAddresses) | **POST** /vault/accounts/{vaultAccountId}/omnibus/{protocol}/{assetId}/addresses/bulk | Create omnibus deposit addresses | | [**createVaultAccount**](VaultsApi.md#createVaultAccount) | **POST** /vault/accounts | Create a new vault account | | [**createVaultAccountAsset**](VaultsApi.md#createVaultAccountAsset) | **POST** /vault/accounts/{vaultAccountId}/{assetId} | Create a new vault wallet | | [**createVaultAccountAssetAddress**](VaultsApi.md#createVaultAccountAssetAddress) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/addresses | Create new asset deposit address | @@ -20,6 +21,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | [**getCreateMultipleVaultAccountsJobStatus**](VaultsApi.md#getCreateMultipleVaultAccountsJobStatus) | **GET** /vault/accounts/bulk/{jobId} | Get job status of bulk creation of new vault accounts | | [**getMaxBipIndexUsed**](VaultsApi.md#getMaxBipIndexUsed) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/max_bip44_index_used | Get maximum BIP44 index used | | [**getMaxSpendableAmount**](VaultsApi.md#getMaxSpendableAmount) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/max_spendable_amount | Get max spendable amount in a transaction | +| [**getOmnibusAddresses**](VaultsApi.md#getOmnibusAddresses) | **GET** /vault/accounts/{vaultAccountId}/omnibus/{protocol}/{assetId}/addresses | List omnibus deposit addresses | | [**getPagedVaultAccounts**](VaultsApi.md#getPagedVaultAccounts) | **GET** /vault/accounts_paged | Get vault accounts (Paginated) | | [**getPublicKeyInfo**](VaultsApi.md#getPublicKeyInfo) | **GET** /vault/public_key_info | Get the public key for a derivation path | | [**getPublicKeyInfoForAddress**](VaultsApi.md#getPublicKeyInfoForAddress) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/{change}/{addressIndex}/public_key_info | Get an asset's public key | @@ -28,11 +30,14 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | [**getUsdcGatewayWalletInfoBeta**](VaultsApi.md#getUsdcGatewayWalletInfoBeta) | **GET** /vault/accounts/{vaultAccountId}/usdc_gateway | Get USDC Gateway wallet info | | [**getVaultAccount**](VaultsApi.md#getVaultAccount) | **GET** /vault/accounts/{vaultAccountId} | Get a vault account by ID | | [**getVaultAccountAsset**](VaultsApi.md#getVaultAccountAsset) | **GET** /vault/accounts/{vaultAccountId}/{assetId} | Get the asset balance for a vault account | +| [**getVaultAccountAssetAddresses**](VaultsApi.md#getVaultAccountAssetAddresses) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/addresses | Get asset addresses | | [**getVaultAccountAssetAddressesPaginated**](VaultsApi.md#getVaultAccountAssetAddressesPaginated) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/addresses_paginated | Get addresses (Paginated) | +| [**getVaultAccounts**](VaultsApi.md#getVaultAccounts) | **GET** /vault/accounts | Get vault accounts | | [**getVaultAssets**](VaultsApi.md#getVaultAssets) | **GET** /vault/assets | Get asset balance for chosen assets | | [**getVaultBalanceByAsset**](VaultsApi.md#getVaultBalanceByAsset) | **GET** /vault/assets/{assetId} | Get vault balance by an asset | | [**hideVaultAccount**](VaultsApi.md#hideVaultAccount) | **POST** /vault/accounts/{vaultAccountId}/hide | Hide a vault account in the console | | [**lookupVaultByAddress**](VaultsApi.md#lookupVaultByAddress) | **GET** /vault/lookup_by_address | Look up a vault account by blockchain address | +| [**registerTempoOmnibusWallet**](VaultsApi.md#registerTempoOmnibusWallet) | **POST** /vault/accounts/{vaultAccountId}/omnibus/TEMPO/{assetId}/register | Register a Tempo omnibus wallet | | [**setCustomerRefIdForAddress**](VaultsApi.md#setCustomerRefIdForAddress) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/set_customer_ref_id | Assign AML customer reference ID | | [**setUsdcGatewayDepositAutomationBeta**](VaultsApi.md#setUsdcGatewayDepositAutomationBeta) | **POST** /vault/accounts/{vaultAccountId}/virtual_asset_wallet/usdc_gateway/deposit_automation | Set up a USDC Gateway deposit automation for a vault account | | [**setVaultAccountAutoFuel**](VaultsApi.md#setVaultAccountAutoFuel) | **POST** /vault/accounts/{vaultAccountId}/set_auto_fuel | Set auto fueling to on or off | @@ -134,7 +139,7 @@ No authorization required Activate a USDC Gateway wallet -Activates the USDC Gateway wallet associated with the given vault account. If the wallet does not yet exist it is created in an activated state. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. +Activates the USDC Gateway wallet associated with the given vault account. If the wallet does not yet exist it is created in an activated state. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. ### Example @@ -376,7 +381,7 @@ No authorization required Bulk creation of new vault accounts -Create multiple vault accounts by running an async job. - The HBAR, TON, SUI, TERRA, ALGO, and DOT blockchains are not supported. - These endpoints are currently in beta and might be subject to changes. - Limited to a maximum of 10,000 accounts per operation. - With `vaultType: KEY_LINK`, creates Key Link vault accounts; set `autoAssign: true` to bind them to the workspace's signing keys (see `vaultType` and `autoAssign`). **Endpoint Permissions:** Admin, Non-Signing Admin, Signer, Approver, Editor. +Create multiple vault accounts by running an async job. - The HBAR, TON, SUI, TERRA, ALGO, and DOT blockchains are not supported. - Limited to a maximum of 10,000 accounts per operation. - With `vaultType: KEY_LINK`, creates Key Link vault accounts; set `autoAssign: true` to bind them to the workspace's signing keys (see `vaultType` and `autoAssign`). **Endpoint Permissions:** Admin, Non-Signing Admin, Signer, Approver, Editor. ### Example @@ -528,6 +533,91 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| +## createOmnibusAddresses + +> CompletableFuture> createOmnibusAddresses createOmnibusAddresses(createOmnibusAddressesRequest, vaultAccountId, protocol, assetId, idempotencyKey) + +Create omnibus deposit addresses + +Creates a batch of deposit addresses for the omnibus account of the given vault account, protocol and asset. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.VaultsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + CreateOmnibusAddressesRequest createOmnibusAddressesRequest = new CreateOmnibusAddressesRequest(); // CreateOmnibusAddressesRequest | + String vaultAccountId = "vaultAccountId_example"; // String | The ID of the omnibus vault account + String protocol = "EVM"; // String | The omnibus protocol + String assetId = "assetId_example"; // String | The ID of the asset + String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + try { + CompletableFuture> response = fireblocks.vaults().createOmnibusAddresses(createOmnibusAddressesRequest, vaultAccountId, protocol, assetId, idempotencyKey); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling VaultsApi#createOmnibusAddresses"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **createOmnibusAddressesRequest** | [**CreateOmnibusAddressesRequest**](CreateOmnibusAddressesRequest.md)| | | +| **vaultAccountId** | **String**| The ID of the omnibus vault account | | +| **protocol** | **String**| The omnibus protocol | [enum: EVM, TEMPO] | +| **assetId** | **String**| The ID of the asset | | +| **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] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | The created deposit addresses | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + ## createVaultAccount > CompletableFuture> createVaultAccount createVaultAccount(createVaultAccountRequest, idempotencyKey) @@ -781,7 +871,7 @@ No authorization required Deactivate a USDC Gateway wallet -Deactivates the USDC Gateway wallet associated with the given vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. +Deactivates the USDC Gateway wallet associated with the given vault account. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. ### Example @@ -860,7 +950,7 @@ No authorization required Stop a USDC Gateway deposit automation's schedule -Stops the schedule for an existing deposit automation. The automation itself stays configured, only its schedule stops. Turn it back on later with PATCH, without setting up the automation again from scratch. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. +Stops the schedule for an existing deposit automation. The automation itself stays configured, only its schedule stops. Turn it back on later with PATCH, without setting up the automation again from scratch. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. ### Example @@ -1344,6 +1434,95 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| +## getOmnibusAddresses + +> CompletableFuture> getOmnibusAddresses getOmnibusAddresses(vaultAccountId, protocol, assetId, fromIndex, search, pageCursor, pageSize) + +List omnibus deposit addresses + +Returns a page of the deposit addresses of the omnibus account of the given vault account, protocol and asset, ordered by index, highest first. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.VaultsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String vaultAccountId = "vaultAccountId_example"; // String | The ID of the omnibus vault account + String protocol = "EVM"; // String | The omnibus protocol + String assetId = "assetId_example"; // String | The ID of the asset + Integer fromIndex = 56; // Integer | Return only addresses with an index greater than or equal to this value. + String search = "search_example"; // String | Return only addresses that start with this value (case-insensitive). Surrounding whitespace is ignored. + String pageCursor = "pageCursor_example"; // String | The cursor returned in `next` of the previous page. Omit for the first page. + Integer pageSize = 100; // Integer | The number of addresses per page. + try { + CompletableFuture> response = fireblocks.vaults().getOmnibusAddresses(vaultAccountId, protocol, assetId, fromIndex, search, pageCursor, pageSize); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling VaultsApi#getOmnibusAddresses"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **vaultAccountId** | **String**| The ID of the omnibus vault account | | +| **protocol** | **String**| The omnibus protocol | [enum: EVM, TEMPO] | +| **assetId** | **String**| The ID of the asset | | +| **fromIndex** | **Integer**| Return only addresses with an index greater than or equal to this value. | [optional] | +| **search** | **String**| Return only addresses that start with this value (case-insensitive). Surrounding whitespace is ignored. | [optional] | +| **pageCursor** | **String**| The cursor returned in `next` of the previous page. Omit for the first page. | [optional] | +| **pageSize** | **Integer**| The number of addresses per page. | [optional] [default to 100] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | A page of deposit addresses | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + ## getPagedVaultAccounts > CompletableFuture> getPagedVaultAccounts getPagedVaultAccounts(namePrefix, nameSuffix, minAmountThreshold, assetId, orderBy, before, after, limit, tagIds, includeTagIds, excludeTagIds) @@ -1691,7 +1870,7 @@ No authorization required Read the USDC Gateway deposit automations for a vault account -Returns the USDC Gateway deposit automations configured for the given vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. +Returns the USDC Gateway deposit automations configured for the given vault account. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. ### Example @@ -1768,7 +1947,7 @@ No authorization required Get USDC Gateway wallet info -Returns the USDC Gateway wallet information associated with the given vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. +Returns the USDC Gateway wallet information associated with the given vault account. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. ### Example @@ -1995,6 +2174,85 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| +## getVaultAccountAssetAddresses + +> CompletableFuture>> getVaultAccountAssetAddresses getVaultAccountAssetAddresses(vaultAccountId, assetId) + +Get asset addresses + +DEPRECATED! - If your application logic or scripts rely on the deprecated endpoint, you should update to account for GET/V1/vault/accounts/{vaultAccountId}/{assetId}/addresses_paginated before Mar 31,2024. - All workspaces created after Mar 31,2024. will have it disabled. If it is disabled for your workspace and you attempt to use it, you will receive the following error message: \"This endpoint is unavailable. - Please use the GET /v1/vault/accounts/{vaultAccountId}/{assetId}/addresses_paginated endpoint to return all the wallet addresses associated with the specified vault account and asset in a paginated list. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.VaultsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String vaultAccountId = "vaultAccountId_example"; // String | The ID of the vault account to return + String assetId = "assetId_example"; // String | The ID of the asset + try { + CompletableFuture>> response = fireblocks.vaults().getVaultAccountAssetAddresses(vaultAccountId, assetId); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling VaultsApi#getVaultAccountAssetAddresses"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **vaultAccountId** | **String**| The ID of the vault account to return | | +| **assetId** | **String**| The ID of the asset | | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | A list of deposit addresses | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + ## getVaultAccountAssetAddressesPaginated > CompletableFuture> getVaultAccountAssetAddressesPaginated getVaultAccountAssetAddressesPaginated(vaultAccountId, assetId, limit, before, after) @@ -2080,6 +2338,89 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| +## getVaultAccounts + +> CompletableFuture>> getVaultAccounts getVaultAccounts(namePrefix, nameSuffix, minAmountThreshold, assetId) + +Get vault accounts + +DEPRECATED - Please use `/vault/accounts_paged` endpoint instead. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.VaultsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String namePrefix = "namePrefix_example"; // String | + String nameSuffix = "nameSuffix_example"; // String | + BigDecimal minAmountThreshold = new BigDecimal(78); // BigDecimal | + String assetId = "assetId_example"; // String | + try { + CompletableFuture>> response = fireblocks.vaults().getVaultAccounts(namePrefix, nameSuffix, minAmountThreshold, assetId); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling VaultsApi#getVaultAccounts"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namePrefix** | **String**| | [optional] | +| **nameSuffix** | **String**| | [optional] | +| **minAmountThreshold** | **BigDecimal**| | [optional] | +| **assetId** | **String**| | [optional] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | A list of vault accounts | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + ## getVaultAssets > CompletableFuture>> getVaultAssets getVaultAssets(accountNamePrefix, accountNameSuffix) @@ -2321,7 +2662,7 @@ No authorization required Look up a vault account by blockchain address -Resolves a blockchain address to the vault account that owns it. Returns the vault account ID and the blockchains associated with the address. **Note:** This endpoint is currently in beta and might be subject to changes. +Resolves a blockchain address to the vault account that owns it. Returns the vault account ID and the blockchains associated with the address. ### Example @@ -2395,6 +2736,88 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| +## registerTempoOmnibusWallet + +> CompletableFuture> registerTempoOmnibusWallet registerTempoOmnibusWallet(vaultAccountId, assetId, idempotencyKey) + +Register a Tempo omnibus wallet + +Registers a Tempo omnibus wallet for the given vault account and asset. Triggering this flow requires the vault account to hold PATH_USD with a balance sufficient to cover the gas fee. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.VaultsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String vaultAccountId = "vaultAccountId_example"; // String | The ID of the omnibus vault account + String assetId = "assetId_example"; // String | The Tempo network asset to register for the vault account. + String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + try { + CompletableFuture> response = fireblocks.vaults().registerTempoOmnibusWallet(vaultAccountId, assetId, idempotencyKey); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling VaultsApi#registerTempoOmnibusWallet"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **vaultAccountId** | **String**| The ID of the omnibus vault account | | +| **assetId** | **String**| The Tempo network asset to register for the vault account. | | +| **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] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The wallet is already active | * X-Request-ID -
| +| **202** | The wallet activation transaction was submitted | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + ## setCustomerRefIdForAddress > CompletableFuture> setCustomerRefIdForAddress setCustomerRefIdForAddress(setCustomerRefIdForAddressRequest, vaultAccountId, assetId, addressId, idempotencyKey) @@ -2486,7 +2909,7 @@ No authorization required Set up a USDC Gateway deposit automation for a vault account -Turns on automatic deposits into the USDC Gateway wallet for the given vault account, on the schedule you choose. Returns an error if an automation already exists for this vault account and asset. Use PATCH to change it instead. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. +Turns on automatic deposits into the USDC Gateway wallet for the given vault account, on the schedule you choose. Returns an error if an automation already exists for this vault account and asset. Use PATCH to change it instead. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. ### Example @@ -2808,7 +3231,7 @@ No authorization required Change a USDC Gateway deposit automation -Changes an existing USDC Gateway deposit automation for a vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. +Changes an existing USDC Gateway deposit automation for a vault account. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. ### Example diff --git a/docs/Webhook.md b/docs/Webhook.md index df4bf1e4..5b502630 100644 --- a/docs/Webhook.md +++ b/docs/Webhook.md @@ -16,7 +16,7 @@ |**updatedAt** | **Long** | The date and time the webhook was last updated in milliseconds | | |**webhookMtlsId** | **UUID** | The id of the mTLS configuration this webhook presents when delivering, from `/v1/webhooks_settings/mtls`. Absent when the webhook does not use mTLS. | [optional] | |**webhookOauthId** | **UUID** | The id of the OAuth credentials this webhook authenticates with. Absent when the webhook does not use OAuth. Read the credentials themselves from `/v1/webhooks_settings/oauth/{webhookOauthId}`. | [optional] | -|**customHeaders** | **List<String>** | Names of the custom headers configured for this webhook. Header values are never returned. | [optional] | +|**webhookCustomHeadersId** | **UUID** | The id of the set of custom headers sent with this webhook's notifications. Absent when the webhook sends none. Read the set itself from `/v1/webhooks_settings/custom_headers/{webhookCustomHeadersId}`. | [optional] | diff --git a/docs/WebhookCustomHeadersSet.md b/docs/WebhookCustomHeadersSet.md new file mode 100644 index 00000000..af42f6d9 --- /dev/null +++ b/docs/WebhookCustomHeadersSet.md @@ -0,0 +1,18 @@ + + +# WebhookCustomHeadersSet + +A stored set of custom HTTP headers, referenced by webhooks and by OAuth credentials through their `webhookCustomHeadersId`. On a webhook the headers go out with every notification; on OAuth credentials they go out on the token request to your authorization server. Header values are write-only: only the names are returned. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | The id of the custom headers set. Pass this as a webhook's, or OAuth credentials', `webhookCustomHeadersId` to attach it. | | +|**name** | **String** | The label given to this set. | | +|**headerNames** | **List<String>** | Names of the headers in the set, lowercased. Header values are never returned. | | +|**createdAt** | **Long** | The date and time the set was created, in milliseconds. | | +|**updatedAt** | **Long** | The date and time the set was last updated, in milliseconds. | | + + + diff --git a/docs/WebhookOauthCredentials.md b/docs/WebhookOauthCredentials.md index 3031e4e9..f41ab6ee 100644 --- a/docs/WebhookOauthCredentials.md +++ b/docs/WebhookOauthCredentials.md @@ -2,7 +2,7 @@ # WebhookOauthCredentials -A stored OAuth 2.0 client credential set, referenced by webhooks through their `webhookOauthId`. Deliveries for a webhook that references one carry `Authorization: Bearer {token}`, using a token fetched from `url` and cached until it expires, so your authorization server sees far fewer token requests than deliveries. Secret material is never returned: `clientSecret` is absent from this schema entirely, and the `customJwtClaims`, `customBodyParams` and `customHeaders` fields are reduced to their names, without the configured values. +A stored OAuth 2.0 client credential set, referenced by webhooks through their `webhookOauthId`. Deliveries for a webhook that references one carry `Authorization: Bearer {token}`, using a token fetched from `url` and cached until it expires, so your authorization server sees far fewer token requests than deliveries. Secret material is never returned: `clientSecret` is absent from this schema entirely, and the `customJwtClaims` and `customBodyParams` fields are reduced to their names, without the configured values. Extra token request headers are a separate resource, referenced by `webhookCustomHeadersId`. The key pairs of `private_key_jwt` credentials are never returned here either; their public halves are published at the URL in `jwksUri`. ## Properties @@ -12,13 +12,15 @@ A stored OAuth 2.0 client credential set, referenced by webhooks through their ` |**name** | **String** | The label given to this credential set. | | |**clientId** | **String** | OAuth client ID used to authenticate with the token endpoint. | | |**url** | **String** | Token endpoint URL. | | -|**authMethod** | **String** | How the client credentials are presented to the token endpoint: `client_secret_basic`, `client_secret_post` or `client_secret_jwt`. Credentials created without this field report `client_secret_basic`, which is what they use. | | +|**authMethod** | **String** | How the client credentials are presented to the token endpoint: `client_secret_basic`, `client_secret_post`, `client_secret_jwt` or `private_key_jwt`. Credentials created without this field report `client_secret_basic`, which is what they use. | | +|**signingAlg** | **WebhookOauthSigningAlg** | Algorithm of the key pairs, and of the assertions signed with them. Present only when `authMethod` is `private_key_jwt`. Which key is signing is never returned; each assertion names it in its `kid` header. Defaults to `RS256` on create only. | [optional] | |**customJwtClaims** | **List<String>** | Names of the additional claims placed in the JWT assertion. Claim values are write-only and are never returned. Absent when no custom claims are configured. | [optional] | |**customBodyParams** | **List<String>** | Names of the additional parameters added to the token request body. Parameter values are write-only and are never returned. Absent when no custom parameters are configured. | [optional] | -|**customHeaders** | **List<String>** | Names of the additional HTTP headers added to **the token request sent to the authorization server** — not to the webhook delivery, which has its own separate `customHeaders`. Header values are write-only and are never returned. Absent when no custom headers are configured. | [optional] | +|**webhookCustomHeadersId** | **UUID** | The id of the set of custom headers added to **the token request sent to the authorization server** — not to the webhook delivery. Absent when the token request adds none. Header values are write-only and are never returned; read the header names from `/v1/webhooks_settings/custom_headers/{webhookCustomHeadersId}`. | [optional] | |**webhookMtlsId** | **UUID** | The id of the mTLS configuration presented to the token endpoint. Absent when the token request does not use mTLS. Read the certificate from `/v1/webhooks_settings/mtls/{id}`. | [optional] | |**createdAt** | **Long** | The date and time the OAuth credentials were created, in milliseconds. | | |**updatedAt** | **Long** | The date and time the OAuth credentials were last updated, in milliseconds. | | +|**jwksUri** | **URI** | The public URL of these credentials' JWKS. Register it as the client's jwks_uri on your authorization server. Present for private_key_jwt only. | [optional] [readonly] | diff --git a/docs/WebhookOauthSigningAlg.md b/docs/WebhookOauthSigningAlg.md new file mode 100644 index 00000000..b4cd98af --- /dev/null +++ b/docs/WebhookOauthSigningAlg.md @@ -0,0 +1,15 @@ + + +# WebhookOauthSigningAlg + +## Enum + + +* `RS256` (value: `"RS256"`) + +* `PS256` (value: `"PS256"`) + +* `ES256` (value: `"ES256"`) + + + diff --git a/docs/WebhooksV2Api.md b/docs/WebhooksV2Api.md index 7910448e..1ae48c5c 100644 --- a/docs/WebhooksV2Api.md +++ b/docs/WebhooksV2Api.md @@ -5,9 +5,11 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| | [**createWebhook**](WebhooksV2Api.md#createWebhook) | **POST** /webhooks | Create a new webhook | +| [**createWebhookCustomHeaders**](WebhooksV2Api.md#createWebhookCustomHeaders) | **POST** /webhooks_settings/custom_headers | Create a custom headers set | | [**createWebhookMtlsConfig**](WebhooksV2Api.md#createWebhookMtlsConfig) | **POST** /webhooks_settings/mtls | Create an mTLS configuration | | [**createWebhookOauth**](WebhooksV2Api.md#createWebhookOauth) | **POST** /webhooks_settings/oauth | Create OAuth credentials | | [**deleteWebhook**](WebhooksV2Api.md#deleteWebhook) | **DELETE** /webhooks/{webhookId} | Delete webhook | +| [**deleteWebhookCustomHeaders**](WebhooksV2Api.md#deleteWebhookCustomHeaders) | **DELETE** /webhooks_settings/custom_headers/{webhookCustomHeadersId} | Delete a custom headers set | | [**deleteWebhookMtlsConfig**](WebhooksV2Api.md#deleteWebhookMtlsConfig) | **DELETE** /webhooks_settings/mtls/{webhookMtlsId} | Delete an mTLS configuration | | [**deleteWebhookOauth**](WebhooksV2Api.md#deleteWebhookOauth) | **DELETE** /webhooks_settings/oauth/{webhookOauthId} | Delete OAuth credentials | | [**getMetrics**](WebhooksV2Api.md#getMetrics) | **GET** /webhooks/{webhookId}/metrics/{metricName} | Get webhook metrics | @@ -18,6 +20,8 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | [**getResendByQueryJobStatus**](WebhooksV2Api.md#getResendByQueryJobStatus) | **GET** /webhooks/{webhookId}/notifications/resend_by_query/jobs/{jobId} | Get resend by query job status | | [**getResendJobStatus**](WebhooksV2Api.md#getResendJobStatus) | **GET** /webhooks/{webhookId}/notifications/resend_failed/jobs/{jobId} | Get resend job status | | [**getWebhook**](WebhooksV2Api.md#getWebhook) | **GET** /webhooks/{webhookId} | Get webhook by id | +| [**getWebhookCustomHeaders**](WebhooksV2Api.md#getWebhookCustomHeaders) | **GET** /webhooks_settings/custom_headers/{webhookCustomHeadersId} | Get a custom headers set by id | +| [**getWebhookCustomHeadersList**](WebhooksV2Api.md#getWebhookCustomHeadersList) | **GET** /webhooks_settings/custom_headers | Get all custom headers sets | | [**getWebhookMtlsConfig**](WebhooksV2Api.md#getWebhookMtlsConfig) | **GET** /webhooks_settings/mtls/{webhookMtlsId} | Get an mTLS configuration by id | | [**getWebhookMtlsConfigs**](WebhooksV2Api.md#getWebhookMtlsConfigs) | **GET** /webhooks_settings/mtls | List the uploaded mTLS configurations | | [**getWebhookOauth**](WebhooksV2Api.md#getWebhookOauth) | **GET** /webhooks_settings/oauth/{webhookOauthId} | Get OAuth credentials by id | @@ -27,7 +31,10 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | [**resendNotificationById**](WebhooksV2Api.md#resendNotificationById) | **POST** /webhooks/{webhookId}/notifications/{notificationId}/resend | Resend notification by id | | [**resendNotificationsByQuery**](WebhooksV2Api.md#resendNotificationsByQuery) | **POST** /webhooks/{webhookId}/notifications/resend_by_query | Resend notifications by query | | [**resendNotificationsByResourceId**](WebhooksV2Api.md#resendNotificationsByResourceId) | **POST** /webhooks/{webhookId}/notifications/resend_by_resource | Resend notifications by resource Id | +| [**revokeWebhookOauthKey**](WebhooksV2Api.md#revokeWebhookOauthKey) | **POST** /webhooks_settings/oauth/{webhookOauthId}/revoke_key | Revoke a signing key of OAuth credentials | +| [**rotateWebhookOauthKey**](WebhooksV2Api.md#rotateWebhookOauthKey) | **POST** /webhooks_settings/oauth/{webhookOauthId}/rotate_key | Rotate the signing key of OAuth credentials | | [**updateWebhook**](WebhooksV2Api.md#updateWebhook) | **PATCH** /webhooks/{webhookId} | Update webhook | +| [**updateWebhookCustomHeaders**](WebhooksV2Api.md#updateWebhookCustomHeaders) | **PATCH** /webhooks_settings/custom_headers/{webhookCustomHeadersId} | Update a custom headers set | | [**updateWebhookMtlsConfig**](WebhooksV2Api.md#updateWebhookMtlsConfig) | **PATCH** /webhooks_settings/mtls/{webhookMtlsId} | Update an mTLS configuration | | [**updateWebhookOauth**](WebhooksV2Api.md#updateWebhookOauth) | **PATCH** /webhooks_settings/oauth/{webhookOauthId} | Update OAuth credentials | @@ -112,6 +119,85 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| +## createWebhookCustomHeaders + +> CompletableFuture> createWebhookCustomHeaders createWebhookCustomHeaders(createWebhookCustomHeadersRequest, idempotencyKey) + +Create a custom headers set + +Creates a reusable set of custom HTTP headers. Attach it to a webhook by passing the returned id as that webhook's `webhookCustomHeadersId`, to send the headers with that webhook's notifications, or to OAuth credentials as their `webhookCustomHeadersId`, to send them on the token request to your authorization server. Several webhooks and OAuth credentials may share one set, so changing it covers all of them at once. Header values are write-only and are never returned. One set of rules applies to every use of a set, whether a webhook or OAuth credentials attach it: a value is a string or an array of strings (one header line per element), except `Cookie` and `Authorization`, which take a single string. Where Fireblocks sends its own `Authorization` header (an OAuth bearer token on a delivery, `client_secret_basic` on a token request), a custom `Authorization` header is not sent. Attaching a set checks only that it exists in your workspace. **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.WebhooksV2Api; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + CreateWebhookCustomHeadersRequest createWebhookCustomHeadersRequest = new CreateWebhookCustomHeadersRequest(); // CreateWebhookCustomHeadersRequest | + String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + try { + CompletableFuture> response = fireblocks.webhooksV2().createWebhookCustomHeaders(createWebhookCustomHeadersRequest, idempotencyKey); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling WebhooksV2Api#createWebhookCustomHeaders"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **createWebhookCustomHeadersRequest** | [**CreateWebhookCustomHeadersRequest**](CreateWebhookCustomHeadersRequest.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] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | created the custom headers set successfully | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + ## createWebhookMtlsConfig > CompletableFuture> createWebhookMtlsConfig createWebhookMtlsConfig(createWebhookMtlsConfigRequest, idempotencyKey) @@ -197,7 +283,7 @@ No authorization required Create OAuth credentials -Creates a reusable OAuth client credential set. Attach it to a webhook by passing the returned id as that webhook's `webhookOauthId`. Several webhooks may share one credential set, so rotating its client secret covers all of them at once. The client secret is write-only and is never returned. **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. +Creates a reusable OAuth client credential set. Attach it to a webhook by passing the returned id as that webhook's `webhookOauthId`. Several webhooks may share one credential set, so rotating its client secret covers all of them at once. The client secret is write-only and is never returned. With `authMethod` `private_key_jwt` no client secret is sent: Fireblocks generates two key pairs for the credentials, the signing key and its successor, and keeps the private halves. The public halves are published at the `jwksUri` returned with the credentials; register that URL as the client's `jwks_uri` on your authorization server. **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. ### Example @@ -347,6 +433,86 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| +## deleteWebhookCustomHeaders + +> CompletableFuture> deleteWebhookCustomHeaders deleteWebhookCustomHeaders(webhookCustomHeadersId, forceDelete) + +Delete a custom headers set + +Deletes a custom headers set. By default the delete is refused while the set is still in use: if any webhook or OAuth credentials use it, nothing is deleted and the request fails with `409 Conflict`, naming the reason and listing the ids of the webhooks and OAuth credentials using it. This protects a shared set from being removed out from under the things that depend on it. Pass `forceDelete=true` to delete anyway. That detaches everything using the set — it clears each webhook's and each OAuth credential set's `webhookCustomHeadersId`, it does **not** delete the webhook or the credentials — then deletes the set and returns the deleted resource together with `detachedWebhookIds` and `detachedWebhookOauthIds`. A detached webhook stops sending these headers with its notifications, and detached OAuth credentials stop sending them on the token request. When nothing uses the set the delete succeeds either way, and both lists come back empty. **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.WebhooksV2Api; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + UUID webhookCustomHeadersId = UUID.fromString("44fcead0-7053-4831-a53a-df7fb90d440f"); // UUID | The unique identifier of the custom headers set + Boolean forceDelete = false; // Boolean | Delete the set even while webhooks or OAuth credentials still use it, detaching them instead of refusing. Leave it unset, or `false`, to get a `409 Conflict` whenever anything still uses the set. + try { + CompletableFuture> response = fireblocks.webhooksV2().deleteWebhookCustomHeaders(webhookCustomHeadersId, forceDelete); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling WebhooksV2Api#deleteWebhookCustomHeaders"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **webhookCustomHeadersId** | **UUID**| The unique identifier of the custom headers set | | +| **forceDelete** | **Boolean**| Delete the set even while webhooks or OAuth credentials still use it, detaching them instead of refusing. Leave it unset, or `false`, to get a `409 Conflict` whenever anything still uses the set. | [optional] [default to false] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The deleted custom headers set, plus the ids of any webhooks and OAuth credentials that were detached from it | * X-Request-ID -
| +| **409** | Webhooks or OAuth credentials still use this set and `forceDelete` was not set. Nothing was deleted. The error message names the reason and the ids of the webhooks and OAuth credentials using it — detach them, or retry with `forceDelete=true`. | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + ## deleteWebhookMtlsConfig > CompletableFuture> deleteWebhookMtlsConfig deleteWebhookMtlsConfig(webhookMtlsId, forceDelete) @@ -1157,6 +1323,156 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| +## getWebhookCustomHeaders + +> CompletableFuture> getWebhookCustomHeaders getWebhookCustomHeaders(webhookCustomHeadersId) + +Get a custom headers set by id + +Retrieve a custom headers set by its id. Header values are never returned, only the header names. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.WebhooksV2Api; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + UUID webhookCustomHeadersId = UUID.fromString("44fcead0-7053-4831-a53a-df7fb90d440f"); // UUID | The unique identifier of the custom headers set + try { + CompletableFuture> response = fireblocks.webhooksV2().getWebhookCustomHeaders(webhookCustomHeadersId); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling WebhooksV2Api#getWebhookCustomHeaders"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **webhookCustomHeadersId** | **UUID**| The unique identifier of the custom headers set | | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | A custom headers set | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + +## getWebhookCustomHeadersList + +> CompletableFuture>> getWebhookCustomHeadersList getWebhookCustomHeadersList() + +Get all custom headers sets + +Lists every custom headers set for the workspace. Header values are never returned, only the header names. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.WebhooksV2Api; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + try { + CompletableFuture>> response = fireblocks.webhooksV2().getWebhookCustomHeadersList(); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling WebhooksV2Api#getWebhookCustomHeadersList"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The workspace's custom headers sets | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + ## getWebhookMtlsConfig > CompletableFuture> getWebhookMtlsConfig getWebhookMtlsConfig(webhookMtlsId) @@ -1866,6 +2182,170 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| +## revokeWebhookOauthKey + +> CompletableFuture> revokeWebhookOauthKey revokeWebhookOauthKey(webhookOauthId, revokeWebhookOauthKeyRequest, idempotencyKey) + +Revoke a signing key of OAuth credentials + +Deletes a key of OAuth credentials at once, for when a key may have leaked: it drops out of the published set immediately rather than being kept for 30 days. Revoking never causes an outage. Without a `kid`, revokes the key Fireblocks is signing with: signing switches to the successor, which your authorization server already holds, and a new successor is generated. A cached access token is discarded, so the next delivery fetches a new one. With the successor's `kid`, deletes the successor and generates a new one; signing is unchanged. With the `kid` of a key rotated out by `rotate_key` and still published, deletes that key, and a cached access token is discarded as well. Keys left behind by a `signingAlg` change drop out of the published set after 5 minutes but are kept for 30 days, and can be revoked by `kid` until then. Credentials using `private_key_jwt` always keep a key to sign with. On credentials that no longer use `private_key_jwt`, whose keys stay published for 30 days after the switch, a `kid` is required: that key is deleted and nothing is generated. The last key they hold can be revoked too, leaving an empty set. Returns the `kid` of the key revoked, which without a `kid` in the request is the key Fireblocks was signing with. The public keys are at the `jwksUri` of the credentials: fetch them again, or register the new successor with your authorization server. Use `rotate_key` for a routine rotation, which keeps the replaced key published for 30 days. **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.WebhooksV2Api; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + UUID webhookOauthId = UUID.fromString("44fcead0-7053-4831-a53a-df7fb90d440f"); // UUID | The unique identifier of the OAuth credentials + RevokeWebhookOauthKeyRequest revokeWebhookOauthKeyRequest = new RevokeWebhookOauthKeyRequest(); // RevokeWebhookOauthKeyRequest | + String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + try { + CompletableFuture> response = fireblocks.webhooksV2().revokeWebhookOauthKey(webhookOauthId, revokeWebhookOauthKeyRequest, idempotencyKey); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling WebhooksV2Api#revokeWebhookOauthKey"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **webhookOauthId** | **UUID**| The unique identifier of the OAuth credentials | | +| **revokeWebhookOauthKeyRequest** | [**RevokeWebhookOauthKeyRequest**](RevokeWebhookOauthKeyRequest.md)| | [optional] | +| **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] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The key was revoked; the `kid` of the key revoked | * X-Request-ID -
| +| **400** | The request cannot be applied: `kid` is `null`, empty or longer than 64 characters, or no `kid` was sent for credentials that no longer use `private_key_jwt`. | * X-Request-ID -
| +| **404** | No such OAuth credentials in this workspace, or they hold no key with this `kid`. A key already deleted, by a revoke or at the end of its 30 days, is not found. | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + +## rotateWebhookOauthKey + +> CompletableFuture> rotateWebhookOauthKey rotateWebhookOauthKey(webhookOauthId, idempotencyKey) + +Rotate the signing key of OAuth credentials + +Switches the OAuth credentials to their successor key and generates a new successor, for credentials using `private_key_jwt`. Takes no body. The new signing key is one your authorization server already holds, since the successor is published from the start, so the switch causes no outage. The key replaced is no longer used to sign, but stays in the published set for 30 days and is then deleted. Rotating again within those 30 days is allowed: each key rotated out keeps its own 30 days, and any of them can be revoked by `kid`. The credentials can hold at most 5 keys in their signing algorithm at once, counting the active key, its successor and those rotated out; at that limit, revoke a rotated-out key (the error names the oldest) and rotate again. To stop trusting a key at once — after a leak — use `revoke_key` instead. Returns the `kid` of the key rotated out. The public keys are at the `jwksUri` of the credentials: fetch them again, or register the new successor with your authorization server, before the next rotation. **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.WebhooksV2Api; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + UUID webhookOauthId = UUID.fromString("44fcead0-7053-4831-a53a-df7fb90d440f"); // UUID | The unique identifier of the OAuth credentials + String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + try { + CompletableFuture> response = fireblocks.webhooksV2().rotateWebhookOauthKey(webhookOauthId, idempotencyKey); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling WebhooksV2Api#rotateWebhookOauthKey"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **webhookOauthId** | **UUID**| The unique identifier of the OAuth credentials | | +| **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] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The key was rotated; the `kid` of the key rotated out | * X-Request-ID -
| +| **400** | The credentials do not use `private_key_jwt`, so they have no signing key to rotate, or they already hold 5 keys in their signing algorithm and a rotated-out key must be revoked first. | * X-Request-ID -
| +| **404** | No such OAuth credentials in this workspace. | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + ## updateWebhook > CompletableFuture> updateWebhook updateWebhook(updateWebhookRequest, webhookId) @@ -1945,6 +2425,86 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| +## updateWebhookCustomHeaders + +> CompletableFuture> updateWebhookCustomHeaders updateWebhookCustomHeaders(updateWebhookCustomHeadersRequest, webhookCustomHeadersId) + +Update a custom headers set + +Updates only the fields present in the request; anything omitted is left as it is. `headers` is merged name by name rather than replaced: a header sent with a value is added or overwritten, a header sent as `null` is deleted, and a header you omit is left alone. The change applies to every webhook and OAuth credential set that uses the set. A change that would leave the set with no headers is refused with a `400` — delete the set instead. Where Fireblocks sends its own `Authorization` header, a custom `Authorization` header is not sent: on a webhook that has OAuth credentials attached (the OAuth bearer token), and on the token request of OAuth credentials that use `client_secret_basic`. **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.WebhooksV2Api; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + UpdateWebhookCustomHeadersRequest updateWebhookCustomHeadersRequest = new UpdateWebhookCustomHeadersRequest(); // UpdateWebhookCustomHeadersRequest | + UUID webhookCustomHeadersId = UUID.fromString("44fcead0-7053-4831-a53a-df7fb90d440f"); // UUID | The unique identifier of the custom headers set + try { + CompletableFuture> response = fireblocks.webhooksV2().updateWebhookCustomHeaders(updateWebhookCustomHeadersRequest, webhookCustomHeadersId); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling WebhooksV2Api#updateWebhookCustomHeaders"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **updateWebhookCustomHeadersRequest** | [**UpdateWebhookCustomHeadersRequest**](UpdateWebhookCustomHeadersRequest.md)| | | +| **webhookCustomHeadersId** | **UUID**| The unique identifier of the custom headers set | | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Updated custom headers set | * X-Request-ID -
| +| **400** | Neither `name` nor `headers` was provided, so there is nothing to change, or the change was refused: it would leave the set with no headers, or a header breaks the rules for header names and values. Nothing was changed. | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + ## updateWebhookMtlsConfig > CompletableFuture> updateWebhookMtlsConfig updateWebhookMtlsConfig(updateWebhookMtlsConfigRequest, webhookMtlsId) @@ -2031,7 +2591,7 @@ No authorization required Update OAuth credentials -Updates only the fields present in the request; anything omitted is left as it is. Sending `clientSecret` on its own rotates the secret for every webhook using these credentials. `customJwtClaims`, `customBodyParams` and `customHeaders` are all merged key by key rather than replaced, the same way a webhook's own `customHeaders` behaves: a key sent with a value is added or overwritten, a key sent with a `null` value is deleted, and a key you omit is left alone. Setting one of the three to `null` as a whole clears that map, which is the quick way to empty it without naming every key. There is no ambiguity between the two uses of `null` — one names an entry to delete, the other names the field. A claim cannot be set to JSON `null`, though, on this endpoint or on create, because `null` is spent on deletion. `webhookMtlsId` is a scalar rather than a map, so `null` there does remove it. **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. +Updates only the fields present in the request; anything omitted is left as it is. Sending `clientSecret` on its own rotates the secret for every webhook using these credentials. `customJwtClaims` and `customBodyParams` are merged key by key rather than replaced: a key sent with a value is added or overwritten, a key sent with a `null` value is deleted, and a key you omit is left alone. Setting one of the two to `null` as a whole clears that map, which is the quick way to empty it without naming every key. There is no ambiguity between the two uses of `null` — one names an entry to delete, the other names the field. A claim cannot be set to JSON `null`, though, on this endpoint or on create, because `null` is spent on deletion. `webhookMtlsId` and `webhookCustomHeadersId` are scalars rather than maps, so `null` there does remove them. `webhookCustomHeadersId` points the credentials at a set of extra token request headers from `/v1/webhooks_settings/custom_headers`; under `client_secret_basic` Fireblocks sends its own `Authorization` header with the credentials, so a custom `Authorization` header in the set is not sent. **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. ### Example diff --git a/docs/WorkspaceApi.md b/docs/WorkspaceApi.md index 0718ef73..4e8183ab 100644 --- a/docs/WorkspaceApi.md +++ b/docs/WorkspaceApi.md @@ -4,10 +4,87 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| +| [**freezeWorkspace**](WorkspaceApi.md#freezeWorkspace) | **POST** /workspace/freeze | Freeze | | [**getWorkspace**](WorkspaceApi.md#getWorkspace) | **GET** /workspace | Get workspace | +## freezeWorkspace + +> CompletableFuture> freezeWorkspace freezeWorkspace(idempotencyKey) + +Freeze + +Freezes a Workspace so that ALL operations by ANY user are blocked. You should only perform this action when the workspace faces imminent risk, such as when you have a security breach. To unfreeze a workspace, the workspace Owner must submit a request to Fireblocks Support. **NOTE:** - This operation can only be performed by the workspace Admins - Your workspace continues to receive incoming transfers during this time. Endpoint Permission: Admin, Non-Signing Admin. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.WorkspaceApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + try { + CompletableFuture> response = fireblocks.workspace().freezeWorkspace(idempotencyKey); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling WorkspaceApi#freezeWorkspace"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **idempotencyKey** | **String**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] | + +### Return type + + +CompletableFuture> + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Indicates that the workspace is now frozen | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + ## getWorkspace > CompletableFuture> getWorkspace getWorkspace() diff --git a/docs/WorkspaceStatusBetaApi.md b/docs/WorkspaceStatusApi.md similarity index 79% rename from docs/WorkspaceStatusBetaApi.md rename to docs/WorkspaceStatusApi.md index 67462a68..c982939b 100644 --- a/docs/WorkspaceStatusBetaApi.md +++ b/docs/WorkspaceStatusApi.md @@ -1,10 +1,10 @@ -# WorkspaceStatusBetaApi +# WorkspaceStatusApi All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**getWorkspaceStatus**](WorkspaceStatusBetaApi.md#getWorkspaceStatus) | **GET** /management/workspace_status | Returns current workspace status | +| [**getWorkspaceStatus**](WorkspaceStatusApi.md#getWorkspaceStatus) | **GET** /management/workspace_status | Returns current workspace status | @@ -14,7 +14,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ Returns current workspace status -Returns current workspace status (Beta). **Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin/Non Signing Admin permissions. Endpoint Permission: Admin, Non-Signing Admin. +Returns current workspace status. **Note**: - Please note that this endpoint is available only for API keys with Admin/Non Signing Admin permissions. Endpoint Permission: Admin, Non-Signing Admin. ### Example @@ -27,7 +27,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.WorkspaceStatusBetaApi; +import com.fireblocks.sdk.api.WorkspaceStatusApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -40,13 +40,13 @@ public class Example { Fireblocks fireblocks = new Fireblocks(configurationOptions); try { - CompletableFuture> response = fireblocks.workspaceStatusBeta().getWorkspaceStatus(); + CompletableFuture> response = fireblocks.workspaceStatus().getWorkspaceStatus(); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling WorkspaceStatusBetaApi#getWorkspaceStatus"); + System.err.println("Exception when calling WorkspaceStatusApi#getWorkspaceStatus"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); diff --git a/pom.xml b/pom.xml index 89a23575..5c58d835 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ fireblocks-sdk jar fireblocks-sdk - 36.2.0 + 0.0.0 https://github.com/fireblocks/java-sdk The Fireblocks Official SDK is a comprehensive software development kit that enables seamless integration and interaction with the Fireblocks platform. Fireblocks is a cutting-edge blockchain infrastructure platform that provides secure and scalable solutions for managing digital assets and transactions. This SDK empowers developers to build robust applications that can interact with the Fireblocks platform's features, including creating and managing vault accounts, initiating secure transactions, managing assets, and more. It abstracts complex interactions with the Fireblocks API, making it easier for developers to leverage the platform's capabilities while adhering to best practices in security and efficiency. diff --git a/src/main/java/com/fireblocks/sdk/Configuration.java b/src/main/java/com/fireblocks/sdk/Configuration.java index a381dbd7..aa53bae8 100644 --- a/src/main/java/com/fireblocks/sdk/Configuration.java +++ b/src/main/java/com/fireblocks/sdk/Configuration.java @@ -21,7 +21,7 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") public class Configuration { - public static final String VERSION = "36.2.0"; + public static final String VERSION = "0.0.0"; private static final AtomicReference defaultApiClient = new AtomicReference<>(); private static volatile Supplier apiClientFactory = ApiClient::new; diff --git a/src/main/java/com/fireblocks/sdk/Fireblocks.java b/src/main/java/com/fireblocks/sdk/Fireblocks.java index 7c2206bf..d8290ae1 100644 --- a/src/main/java/com/fireblocks/sdk/Fireblocks.java +++ b/src/main/java/com/fireblocks/sdk/Fireblocks.java @@ -37,13 +37,13 @@ public class Fireblocks { private final String userAgent; private ApiUserApi apiUser; - private ApprovalsBetaApi approvalsBeta; + private ApprovalsApi approvals; private AuditLogsApi auditLogs; - private BlockchainLinkBetaApi blockchainLinkBeta; + private BlockchainLinkApi blockchainLink; private BlockchainsAssetsApi blockchainsAssets; - private CantonBetaApi cantonBeta; + private CantonApi canton; private ComplianceApi compliance; - private ComplianceOrchestratorBetaApi complianceOrchestratorBeta; + private ComplianceOrchestratorApi complianceOrchestrator; private ComplianceScreeningConfigurationApi complianceScreeningConfiguration; private ConnectedAccountsApi connectedAccounts; private ConsoleUserApi consoleUser; @@ -59,7 +59,7 @@ public class Fireblocks { private ExternalWalletsApi externalWallets; private FiatAccountsApi fiatAccounts; private GasStationsApi gasStations; - private GenieBetaApi genieBeta; + private GenieApi genie; private InternalWalletsApi internalWallets; private KeyLinkApi keyLink; private KeysApi keys; @@ -67,23 +67,22 @@ public class Fireblocks { private NftsApi nfts; private OffExchangesApi offExchanges; private OnchainDataApi onchainData; - private OtaBetaApi otaBeta; + private OtaApi ota; private PaymentsPayoutApi paymentsPayout; private PolicyEditorV2Api policyEditorV2; - private PolicyEditorV2BetaApi policyEditorV2Beta; - private ReportsBetaApi reportsBeta; + private ReportsApi reports; private ResetDeviceApi resetDevice; private SecurityPostureManagementApi securityPostureManagement; private SmartTransferApi smartTransfer; private StakingApi staking; private TagsApi tags; - private TempoBetaApi tempoBeta; + private TempoApi tempo; private TokenizationApi tokenization; private TrLinkApi trLink; private TradingApi trading; private TransactionsApi transactions; private TravelRuleApi travelRule; - private UserGroupsBetaApi userGroupsBeta; + private UserGroupsApi userGroups; private UsersApi users; private UtxoManagementApi utxoManagement; private VaultsApi vaults; @@ -92,7 +91,7 @@ public class Fireblocks { private WebhooksV2Api webhooksV2; private WhitelistIpAddressesApi whitelistIpAddresses; private WorkspaceApi workspace; - private WorkspaceStatusBetaApi workspaceStatusBeta; + private WorkspaceStatusApi workspaceStatus; public Fireblocks(ConfigurationOptions conf) { apiKey = Optional.ofNullable(conf.getApiKey()).orElse(System.getenv("FIREBLOCKS_API_KEY")); @@ -239,11 +238,11 @@ public ApiUserApi apiUser() { return apiUser; } - public ApprovalsBetaApi approvalsBeta() { - if (approvalsBeta == null) { - approvalsBeta = new ApprovalsBetaApi(apiClient); + public ApprovalsApi approvals() { + if (approvals == null) { + approvals = new ApprovalsApi(apiClient); } - return approvalsBeta; + return approvals; } public AuditLogsApi auditLogs() { @@ -253,11 +252,11 @@ public AuditLogsApi auditLogs() { return auditLogs; } - public BlockchainLinkBetaApi blockchainLinkBeta() { - if (blockchainLinkBeta == null) { - blockchainLinkBeta = new BlockchainLinkBetaApi(apiClient); + public BlockchainLinkApi blockchainLink() { + if (blockchainLink == null) { + blockchainLink = new BlockchainLinkApi(apiClient); } - return blockchainLinkBeta; + return blockchainLink; } public BlockchainsAssetsApi blockchainsAssets() { @@ -267,11 +266,11 @@ public BlockchainsAssetsApi blockchainsAssets() { return blockchainsAssets; } - public CantonBetaApi cantonBeta() { - if (cantonBeta == null) { - cantonBeta = new CantonBetaApi(apiClient); + public CantonApi canton() { + if (canton == null) { + canton = new CantonApi(apiClient); } - return cantonBeta; + return canton; } public ComplianceApi compliance() { @@ -281,11 +280,11 @@ public ComplianceApi compliance() { return compliance; } - public ComplianceOrchestratorBetaApi complianceOrchestratorBeta() { - if (complianceOrchestratorBeta == null) { - complianceOrchestratorBeta = new ComplianceOrchestratorBetaApi(apiClient); + public ComplianceOrchestratorApi complianceOrchestrator() { + if (complianceOrchestrator == null) { + complianceOrchestrator = new ComplianceOrchestratorApi(apiClient); } - return complianceOrchestratorBeta; + return complianceOrchestrator; } public ComplianceScreeningConfigurationApi complianceScreeningConfiguration() { @@ -393,11 +392,11 @@ public GasStationsApi gasStations() { return gasStations; } - public GenieBetaApi genieBeta() { - if (genieBeta == null) { - genieBeta = new GenieBetaApi(apiClient); + public GenieApi genie() { + if (genie == null) { + genie = new GenieApi(apiClient); } - return genieBeta; + return genie; } public InternalWalletsApi internalWallets() { @@ -449,11 +448,11 @@ public OnchainDataApi onchainData() { return onchainData; } - public OtaBetaApi otaBeta() { - if (otaBeta == null) { - otaBeta = new OtaBetaApi(apiClient); + public OtaApi ota() { + if (ota == null) { + ota = new OtaApi(apiClient); } - return otaBeta; + return ota; } public PaymentsPayoutApi paymentsPayout() { @@ -470,18 +469,11 @@ public PolicyEditorV2Api policyEditorV2() { return policyEditorV2; } - public PolicyEditorV2BetaApi policyEditorV2Beta() { - if (policyEditorV2Beta == null) { - policyEditorV2Beta = new PolicyEditorV2BetaApi(apiClient); + public ReportsApi reports() { + if (reports == null) { + reports = new ReportsApi(apiClient); } - return policyEditorV2Beta; - } - - public ReportsBetaApi reportsBeta() { - if (reportsBeta == null) { - reportsBeta = new ReportsBetaApi(apiClient); - } - return reportsBeta; + return reports; } public ResetDeviceApi resetDevice() { @@ -519,11 +511,11 @@ public TagsApi tags() { return tags; } - public TempoBetaApi tempoBeta() { - if (tempoBeta == null) { - tempoBeta = new TempoBetaApi(apiClient); + public TempoApi tempo() { + if (tempo == null) { + tempo = new TempoApi(apiClient); } - return tempoBeta; + return tempo; } public TokenizationApi tokenization() { @@ -561,11 +553,11 @@ public TravelRuleApi travelRule() { return travelRule; } - public UserGroupsBetaApi userGroupsBeta() { - if (userGroupsBeta == null) { - userGroupsBeta = new UserGroupsBetaApi(apiClient); + public UserGroupsApi userGroups() { + if (userGroups == null) { + userGroups = new UserGroupsApi(apiClient); } - return userGroupsBeta; + return userGroups; } public UsersApi users() { @@ -624,10 +616,10 @@ public WorkspaceApi workspace() { return workspace; } - public WorkspaceStatusBetaApi workspaceStatusBeta() { - if (workspaceStatusBeta == null) { - workspaceStatusBeta = new WorkspaceStatusBetaApi(apiClient); + public WorkspaceStatusApi workspaceStatus() { + if (workspaceStatus == null) { + workspaceStatus = new WorkspaceStatusApi(apiClient); } - return workspaceStatusBeta; + return workspaceStatus; } } diff --git a/src/main/java/com/fireblocks/sdk/api/ApprovalsBetaApi.java b/src/main/java/com/fireblocks/sdk/api/ApprovalsApi.java similarity index 99% rename from src/main/java/com/fireblocks/sdk/api/ApprovalsBetaApi.java rename to src/main/java/com/fireblocks/sdk/api/ApprovalsApi.java index 25f498d2..27a1d656 100644 --- a/src/main/java/com/fireblocks/sdk/api/ApprovalsBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/ApprovalsApi.java @@ -47,7 +47,7 @@ @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class ApprovalsBetaApi { +public class ApprovalsApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; private final String memberVarBaseUri; @@ -56,11 +56,11 @@ public class ApprovalsBetaApi { private final Consumer> memberVarResponseInterceptor; private final Consumer> memberVarAsyncResponseInterceptor; - public ApprovalsBetaApi() { + public ApprovalsApi() { this(new ApiClient()); } - public ApprovalsBetaApi(ApiClient apiClient) { + public ApprovalsApi(ApiClient apiClient) { memberVarHttpClient = apiClient.getHttpClient(); memberVarObjectMapper = apiClient.getObjectMapper(); memberVarBaseUri = apiClient.getBaseUri(); diff --git a/src/main/java/com/fireblocks/sdk/api/BlockchainLinkBetaApi.java b/src/main/java/com/fireblocks/sdk/api/BlockchainLinkApi.java similarity index 99% rename from src/main/java/com/fireblocks/sdk/api/BlockchainLinkBetaApi.java rename to src/main/java/com/fireblocks/sdk/api/BlockchainLinkApi.java index e3eadd35..24cc26f9 100644 --- a/src/main/java/com/fireblocks/sdk/api/BlockchainLinkBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/BlockchainLinkApi.java @@ -55,7 +55,7 @@ @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class BlockchainLinkBetaApi { +public class BlockchainLinkApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; private final String memberVarBaseUri; @@ -64,11 +64,11 @@ public class BlockchainLinkBetaApi { private final Consumer> memberVarResponseInterceptor; private final Consumer> memberVarAsyncResponseInterceptor; - public BlockchainLinkBetaApi() { + public BlockchainLinkApi() { this(new ApiClient()); } - public BlockchainLinkBetaApi(ApiClient apiClient) { + public BlockchainLinkApi(ApiClient apiClient) { memberVarHttpClient = apiClient.getHttpClient(); memberVarObjectMapper = apiClient.getObjectMapper(); memberVarBaseUri = apiClient.getBaseUri(); diff --git a/src/main/java/com/fireblocks/sdk/api/CantonBetaApi.java b/src/main/java/com/fireblocks/sdk/api/CantonApi.java similarity index 99% rename from src/main/java/com/fireblocks/sdk/api/CantonBetaApi.java rename to src/main/java/com/fireblocks/sdk/api/CantonApi.java index 312f2873..1a32eeff 100644 --- a/src/main/java/com/fireblocks/sdk/api/CantonBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/CantonApi.java @@ -40,7 +40,7 @@ @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class CantonBetaApi { +public class CantonApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; private final String memberVarBaseUri; @@ -49,11 +49,11 @@ public class CantonBetaApi { private final Consumer> memberVarResponseInterceptor; private final Consumer> memberVarAsyncResponseInterceptor; - public CantonBetaApi() { + public CantonApi() { this(new ApiClient()); } - public CantonBetaApi(ApiClient apiClient) { + public CantonApi(ApiClient apiClient) { memberVarHttpClient = apiClient.getHttpClient(); memberVarObjectMapper = apiClient.getObjectMapper(); memberVarBaseUri = apiClient.getBaseUri(); diff --git a/src/main/java/com/fireblocks/sdk/api/ComplianceOrchestratorBetaApi.java b/src/main/java/com/fireblocks/sdk/api/ComplianceOrchestratorApi.java similarity index 99% rename from src/main/java/com/fireblocks/sdk/api/ComplianceOrchestratorBetaApi.java rename to src/main/java/com/fireblocks/sdk/api/ComplianceOrchestratorApi.java index 5da69077..9434a9e8 100644 --- a/src/main/java/com/fireblocks/sdk/api/ComplianceOrchestratorBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/ComplianceOrchestratorApi.java @@ -42,7 +42,7 @@ @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class ComplianceOrchestratorBetaApi { +public class ComplianceOrchestratorApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; private final String memberVarBaseUri; @@ -51,11 +51,11 @@ public class ComplianceOrchestratorBetaApi { private final Consumer> memberVarResponseInterceptor; private final Consumer> memberVarAsyncResponseInterceptor; - public ComplianceOrchestratorBetaApi() { + public ComplianceOrchestratorApi() { this(new ApiClient()); } - public ComplianceOrchestratorBetaApi(ApiClient apiClient) { + public ComplianceOrchestratorApi(ApiClient apiClient) { memberVarHttpClient = apiClient.getHttpClient(); memberVarObjectMapper = apiClient.getObjectMapper(); memberVarBaseUri = apiClient.getBaseUri(); diff --git a/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java b/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java index 22a8bcfc..e2649cc2 100644 --- a/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java @@ -1988,6 +1988,155 @@ private HttpRequest.Builder getEmbeddedWalletsRequestBuilder( } return localVarRequestBuilder; } + /** + * Get the public key of an asset Gets the public key of an asset associated with a specific + * account within a Non-Custodial Wallet + * + * @param xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for + * end-user wallet operations. (required) + * @param walletId The ID of the Non-Custodial wallet (required) + * @param accountId The ID of the account (required) + * @param assetId The ID of the asset (required) + * @param change BIP44 derivation path - change value (required) + * @param addressIndex BIP44 derivation path - index value (required) + * @param compressed Compressed/Uncompressed public key format (optional) + * @return CompletableFuture<ApiResponse<PublicKeyInformation>>, which completes + * exceptionally with an {@link ApiException} if the API call fails + * @deprecated + */ + @Deprecated + public CompletableFuture> getPublicKeyInfoForAddressNcw( + UUID xEndUserWalletId, + String walletId, + String accountId, + String assetId, + BigDecimal change, + BigDecimal addressIndex, + Boolean compressed) { + try { + HttpRequest.Builder localVarRequestBuilder = + getPublicKeyInfoForAddressNcwRequestBuilder( + xEndUserWalletId, + walletId, + accountId, + assetId, + change, + addressIndex, + compressed); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + // Ahead of the status check, which fails the future: the lifecycle + // header + // is present on allowed error responses too. + LifecycleWarning.warn( + localVarResponse.headers(), + "getPublicKeyInfoForAddressNcw", + localVarResponse.statusCode()); + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "getPublicKeyInfoForAddressNcw", + localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + PublicKeyInformation>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }) + .handle( + (localVarApiResponse, localVarThrowable) -> + localVarThrowable == null + ? CompletableFuture.completedFuture(localVarApiResponse) + : CompletableFuture + .> + failedFuture( + toApiFailure( + localVarThrowable))) + .thenCompose(localVarNormalized -> localVarNormalized); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder getPublicKeyInfoForAddressNcwRequestBuilder( + UUID xEndUserWalletId, + String walletId, + String accountId, + String assetId, + BigDecimal change, + BigDecimal addressIndex, + Boolean compressed) + throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty( + "getPublicKeyInfoForAddressNcw", "xEndUserWalletId", xEndUserWalletId.toString()); + ValidationUtils.assertParamExistsAndNotEmpty( + "getPublicKeyInfoForAddressNcw", "walletId", walletId); + ValidationUtils.assertParamExistsAndNotEmpty( + "getPublicKeyInfoForAddressNcw", "accountId", accountId); + ValidationUtils.assertParamExistsAndNotEmpty( + "getPublicKeyInfoForAddressNcw", "assetId", assetId); + ValidationUtils.assertParamExists("getPublicKeyInfoForAddressNcw", "change", change); + ValidationUtils.assertParamExists( + "getPublicKeyInfoForAddressNcw", "addressIndex", addressIndex); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/ncw/{walletId}/accounts/{accountId}/{assetId}/{change}/{addressIndex}/public_key_info" + .replace("{walletId}", ApiClient.urlEncode(walletId.toString())) + .replace("{accountId}", ApiClient.urlEncode(accountId.toString())) + .replace("{assetId}", ApiClient.urlEncode(assetId.toString())) + .replace("{change}", ApiClient.urlEncode(change.toString())) + .replace("{addressIndex}", ApiClient.urlEncode(addressIndex.toString())); + + List localVarQueryParams = new ArrayList<>(); + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); + String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "compressed"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("compressed", compressed)); + + if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { + StringJoiner queryJoiner = new StringJoiner("&"); + localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); + if (localVarQueryStringJoiner.length() != 0) { + queryJoiner.add(localVarQueryStringJoiner.toString()); + } + localVarRequestBuilder.uri( + URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); + } else { + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + } + + if (xEndUserWalletId != null) { + localVarRequestBuilder.header("X-End-User-Wallet-Id", xEndUserWalletId.toString()); + } + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } /** * Get the public key for a derivation path Gets the public key information based on derivation * path and signing algorithm within a Non-Custodial Wallet diff --git a/src/main/java/com/fireblocks/sdk/api/GenieBetaApi.java b/src/main/java/com/fireblocks/sdk/api/GenieApi.java similarity index 98% rename from src/main/java/com/fireblocks/sdk/api/GenieBetaApi.java rename to src/main/java/com/fireblocks/sdk/api/GenieApi.java index 72f21c4c..2338ebf7 100644 --- a/src/main/java/com/fireblocks/sdk/api/GenieBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/GenieApi.java @@ -39,7 +39,7 @@ @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class GenieBetaApi { +public class GenieApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; private final String memberVarBaseUri; @@ -48,11 +48,11 @@ public class GenieBetaApi { private final Consumer> memberVarResponseInterceptor; private final Consumer> memberVarAsyncResponseInterceptor; - public GenieBetaApi() { + public GenieApi() { this(new ApiClient()); } - public GenieBetaApi(ApiClient apiClient) { + public GenieApi(ApiClient apiClient) { memberVarHttpClient = apiClient.getHttpClient(); memberVarObjectMapper = apiClient.getObjectMapper(); memberVarBaseUri = apiClient.getBaseUri(); @@ -101,8 +101,8 @@ private String formatExceptionMessage(String operationId, int statusCode, String /** * Create a Genie session Starts a new conversation with Genie, the Fireblocks AI assistant. * Returns a `sessionId` — pass it when sending messages, and reuse it across calls to - * keep one continuous conversation. **Note:** This endpoint is currently in beta and might be - * subject to changes. + * keep one continuous conversation. **Note:** This endpoint is currently in early availability + * and might be subject to changes. * * @param 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 @@ -191,8 +191,8 @@ private HttpRequest.Builder createGenieSessionRequestBuilder(String idempotencyK /** * Send a message to a Genie session Sends a question to Genie and returns a single answer. * Reuse the `sessionId` from the original session on follow-up messages to continue - * the conversation with prior context. **Note:** This endpoint is currently in beta and might - * be subject to changes. + * the conversation with prior context. **Note:** This endpoint is currently in early + * availability and might be subject to changes. * * @param genieSendMessageRequest (required) * @param sessionId The Genie session ID returned from `POST /genie/sessions`. diff --git a/src/main/java/com/fireblocks/sdk/api/OtaBetaApi.java b/src/main/java/com/fireblocks/sdk/api/OtaApi.java similarity index 99% rename from src/main/java/com/fireblocks/sdk/api/OtaBetaApi.java rename to src/main/java/com/fireblocks/sdk/api/OtaApi.java index 27ba50df..6b3d8080 100644 --- a/src/main/java/com/fireblocks/sdk/api/OtaBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/OtaApi.java @@ -39,7 +39,7 @@ @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class OtaBetaApi { +public class OtaApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; private final String memberVarBaseUri; @@ -48,11 +48,11 @@ public class OtaBetaApi { private final Consumer> memberVarResponseInterceptor; private final Consumer> memberVarAsyncResponseInterceptor; - public OtaBetaApi() { + public OtaApi() { this(new ApiClient()); } - public OtaBetaApi(ApiClient apiClient) { + public OtaApi(ApiClient apiClient) { memberVarHttpClient = apiClient.getHttpClient(); memberVarObjectMapper = apiClient.getObjectMapper(); memberVarBaseUri = apiClient.getBaseUri(); diff --git a/src/main/java/com/fireblocks/sdk/api/PaymentsPayoutApi.java b/src/main/java/com/fireblocks/sdk/api/PaymentsPayoutApi.java index 3da1f94e..ee6c24f6 100644 --- a/src/main/java/com/fireblocks/sdk/api/PaymentsPayoutApi.java +++ b/src/main/java/com/fireblocks/sdk/api/PaymentsPayoutApi.java @@ -101,15 +101,14 @@ private String formatExceptionMessage(String operationId, int statusCode, String /** * Create a payout instruction set **Note:** The reference content in this section documents the * Payments Engine endpoint. The Payments Engine endpoints include APIs available only for - * customers with Payments Engine enabled on their accounts. These endpoints are currently in - * beta and might be subject to changes. If you want to learn more about Fireblocks Payments - * Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com. - * **Create a payout instruction set.** A payout instruction set is a set of instructions for - * distributing payments from a single payment account to a list of payee accounts. The - * instruction set defines: - the payment account and its account type (vault, exchange, or - * fiat). - the account type (vault account, exchange account, whitelisted address, network - * connection, fiat account, or merchant account), the amount, and the asset of payment for each - * payee account. Learn more about Fireblocks Payments - Payouts in the following + * customers with Payments Engine enabled on their accounts. If you want to learn more about + * Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email + * CSM@fireblocks.com. **Create a payout instruction set.** A payout instruction set is a set of + * instructions for distributing payments from a single payment account to a list of payee + * accounts. The instruction set defines: - the payment account and its account type (vault, + * exchange, or fiat). - the account type (vault account, exchange account, whitelisted address, + * network connection, fiat account, or merchant account), the amount, and the asset of payment + * for each payee account. Learn more about Fireblocks Payments - Payouts in the following * [guide](https://developers.fireblocks.com/docs/create-payouts). Endpoint Permission: Admin, * Non-Signing Admin. * @@ -207,13 +206,13 @@ private HttpRequest.Builder createPayoutRequestBuilder( /** * Execute a payout instruction set **Note:** The reference content in this section documents * the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for - * customers with Payments Engine enabled on their accounts. These endpoints are currently in - * beta and might be subject to changes. If you want to learn more about Fireblocks Payments - * Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com. - * **Execute a payout instruction set.** The instruction set will be verified and executed. - * **Source locking** If you are executing a payout instruction set from a payment account with - * an already active payout the active payout will complete before the new payout instruction - * set can be executed. You cannot execute the same payout instruction set more than once. + * customers with Payments Engine enabled on their accounts. If you want to learn more about + * Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email + * CSM@fireblocks.com. **Execute a payout instruction set.** The instruction set will be + * verified and executed. **Source locking** If you are executing a payout instruction set from + * a payment account with an already active payout the active payout will complete before the + * new payout instruction set can be executed. You cannot execute the same payout instruction + * set more than once. * * @param payoutId the payout id received from the creation of the payout instruction set * (required) @@ -309,10 +308,9 @@ private HttpRequest.Builder executePayoutActionRequestBuilder( /** * Get the status of a payout instruction set **Note:** The reference content in this section * documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available - * only for customers with Payments Engine enabled on their accounts. These endpoints are - * currently in beta and might be subject to changes. If you want to learn more about Fireblocks - * Payments Engine, please contact your Fireblocks Customer Success Manager or email - * CSM@fireblocks.com. Endpoint Permission: Admin, Non-Signing Admin. + * only for customers with Payments Engine enabled on their accounts. If you want to learn more + * about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or + * email CSM@fireblocks.com. Endpoint Permission: Admin, Non-Signing Admin. * * @param payoutId the payout id received from the creation of the payout instruction set * (required) diff --git a/src/main/java/com/fireblocks/sdk/api/PolicyEditorV2Api.java b/src/main/java/com/fireblocks/sdk/api/PolicyEditorV2Api.java index ca40bf1c..5ccfa911 100644 --- a/src/main/java/com/fireblocks/sdk/api/PolicyEditorV2Api.java +++ b/src/main/java/com/fireblocks/sdk/api/PolicyEditorV2Api.java @@ -23,9 +23,12 @@ import com.fireblocks.sdk.ValidationUtils; import com.fireblocks.sdk.model.DraftReviewAndValidationResponse; import com.fireblocks.sdk.model.PolicyAndValidationResponse; +import com.fireblocks.sdk.model.PolicyRuleQuotaRequest; +import com.fireblocks.sdk.model.PolicyRuleQuotaResponse; import com.fireblocks.sdk.model.PolicyType; import com.fireblocks.sdk.model.PublishDraftRequest; import com.fireblocks.sdk.model.PublishResult; +import com.fireblocks.sdk.model.ReadOnlyDraftReviewAndValidationResponse; import com.fireblocks.sdk.model.UpdateDraftRequest; import java.io.IOException; import java.io.InputStream; @@ -304,6 +307,209 @@ private HttpRequest.Builder getDraftRequestBuilder(PolicyType policyType) throws } return localVarRequestBuilder; } + /** + * Get the current draft without starting an edit session Returns the active draft and its + * validation for a specific policy type, without taking the edit lock. If no draft exists, the + * active policy is returned with a null draftId. + * + * @param policyType The policy type(s) to retrieve. Can be a single type or multiple types by + * repeating the parameter (e.g., ?policyType=TRANSFER&policyType=MINT). + * (required) + * @return CompletableFuture<ApiResponse<ReadOnlyDraftReviewAndValidationResponse>>, + * which completes exceptionally with an {@link ApiException} if the API call fails + */ + public CompletableFuture> + getDraftReadOnly(PolicyType policyType) { + try { + HttpRequest.Builder localVarRequestBuilder = getDraftReadOnlyRequestBuilder(policyType); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + // Ahead of the status check, which fails the future: the lifecycle + // header + // is present on allowed error responses too. + LifecycleWarning.warn( + localVarResponse.headers(), + "getDraftReadOnly", + localVarResponse.statusCode()); + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException("getDraftReadOnly", localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse< + ReadOnlyDraftReviewAndValidationResponse>( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + ReadOnlyDraftReviewAndValidationResponse>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }) + .handle( + (localVarApiResponse, localVarThrowable) -> + localVarThrowable == null + ? CompletableFuture.completedFuture(localVarApiResponse) + : CompletableFuture + .> + failedFuture( + toApiFailure( + localVarThrowable))) + .thenCompose(localVarNormalized -> localVarNormalized); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder getDraftReadOnlyRequestBuilder(PolicyType policyType) + throws ApiException { + ValidationUtils.assertParamExists("getDraftReadOnly", "policyType", policyType); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/policy/draft/read_only"; + + List localVarQueryParams = new ArrayList<>(); + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); + String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "policyType"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("policyType", policyType)); + + if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { + StringJoiner queryJoiner = new StringJoiner("&"); + localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); + if (localVarQueryStringJoiner.length() != 0) { + queryJoiner.add(localVarQueryStringJoiner.toString()); + } + localVarRequestBuilder.uri( + URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); + } else { + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + } + + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** + * Calculate the AOT quota for a policy rule Returns the Amount Over Time (AOT) quota calculated + * for a specific policy rule. Endpoint Permissions: Owner, Admin, Non-Signing Admin. + * + * @param policyRuleQuotaRequest (required) + * @param 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. (optional) + * @return CompletableFuture<ApiResponse<PolicyRuleQuotaResponse>>, which completes + * exceptionally with an {@link ApiException} if the API call fails + */ + public CompletableFuture> getPolicyRuleQuota( + PolicyRuleQuotaRequest policyRuleQuotaRequest, String idempotencyKey) { + try { + HttpRequest.Builder localVarRequestBuilder = + getPolicyRuleQuotaRequestBuilder(policyRuleQuotaRequest, idempotencyKey); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + // Ahead of the status check, which fails the future: the lifecycle + // header + // is present on allowed error responses too. + LifecycleWarning.warn( + localVarResponse.headers(), + "getPolicyRuleQuota", + localVarResponse.statusCode()); + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "getPolicyRuleQuota", localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + PolicyRuleQuotaResponse>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }) + .handle( + (localVarApiResponse, localVarThrowable) -> + localVarThrowable == null + ? CompletableFuture.completedFuture(localVarApiResponse) + : CompletableFuture + .> + failedFuture( + toApiFailure( + localVarThrowable))) + .thenCompose(localVarNormalized -> localVarNormalized); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder getPolicyRuleQuotaRequestBuilder( + PolicyRuleQuotaRequest policyRuleQuotaRequest, String idempotencyKey) + throws ApiException { + ValidationUtils.assertParamExists( + "getPolicyRuleQuota", "policyRuleQuotaRequest", policyRuleQuotaRequest); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/policy/rules/quota"; + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + if (idempotencyKey != null) { + localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); + } + localVarRequestBuilder.header("Content-Type", "application/json"); + localVarRequestBuilder.header("Accept", "application/json"); + + try { + byte[] localVarPostBody = + memberVarObjectMapper.writeValueAsBytes(policyRuleQuotaRequest); + localVarRequestBuilder.method( + "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } /** * Send publish request for a certain draft id Send publish request of certain draft id and * returns the response. **⚠️ IMPORTANT SECURITY NOTICE:** The Fireblocks Policy is a critical diff --git a/src/main/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApi.java b/src/main/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApi.java deleted file mode 100644 index ca98a1f2..00000000 --- a/src/main/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApi.java +++ /dev/null @@ -1,200 +0,0 @@ -/* - * Fireblocks API - * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: developers@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.api; - - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.LifecycleWarning; -import com.fireblocks.sdk.ValidationUtils; -import com.fireblocks.sdk.model.PolicyRuleQuotaRequest; -import com.fireblocks.sdk.model.PolicyRuleQuotaResponse; -import java.io.IOException; -import java.io.InputStream; -import java.net.URI; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.time.Duration; -import java.util.concurrent.CancellationException; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.CompletionException; -import java.util.concurrent.ExecutionException; -import java.util.function.Consumer; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class PolicyEditorV2BetaApi { - private final HttpClient memberVarHttpClient; - private final ObjectMapper memberVarObjectMapper; - private final String memberVarBaseUri; - private final Consumer memberVarInterceptor; - private final Duration memberVarReadTimeout; - private final Consumer> memberVarResponseInterceptor; - private final Consumer> memberVarAsyncResponseInterceptor; - - public PolicyEditorV2BetaApi() { - this(new ApiClient()); - } - - public PolicyEditorV2BetaApi(ApiClient apiClient) { - memberVarHttpClient = apiClient.getHttpClient(); - memberVarObjectMapper = apiClient.getObjectMapper(); - memberVarBaseUri = apiClient.getBaseUri(); - memberVarInterceptor = apiClient.getRequestInterceptor(); - memberVarReadTimeout = apiClient.getReadTimeout(); - memberVarResponseInterceptor = apiClient.getResponseInterceptor(); - memberVarAsyncResponseInterceptor = apiClient.getAsyncResponseInterceptor(); - } - - private ApiException getApiException(String operationId, HttpResponse response) { - String message = - formatExceptionMessage(operationId, response.statusCode(), response.body()); - return new ApiException( - response.statusCode(), message, response.headers(), response.body()); - } - - /** - * Normalizes any failure raised while performing the call into the single failure type callers - * are told to expect. Transport-level errors surfaced by {@code HttpClient.sendAsync} - - * connection refused, DNS failures, TLS errors, timeouts - would otherwise reach the caller as - * a raw {@link java.io.IOException}, which makes the documented {@code (ApiException) - * e.getCause()} throw {@link ClassCastException}. - * - *

{@link CancellationException} is passed through unchanged: a cancelled call is not an API - * failure. - */ - private static Throwable toApiFailure(Throwable throwable) { - Throwable cause = throwable; - while ((cause instanceof CompletionException || cause instanceof ExecutionException) - && cause.getCause() != null) { - cause = cause.getCause(); - } - if (cause instanceof ApiException || cause instanceof CancellationException) { - return cause; - } - return new ApiException(cause); - } - - private String formatExceptionMessage(String operationId, int statusCode, String body) { - if (body == null || body.isEmpty()) { - body = "[no body]"; - } - return operationId + " call failed with: " + statusCode + " - " + body; - } - - /** - * Calculate the AOT quota for a policy rule Returns the Amount Over Time (AOT) quota calculated - * for a specific policy rule. Endpoint Permissions: Owner, Admin, Non-Signing Admin. - * - * @param policyRuleQuotaRequest (required) - * @param 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. (optional) - * @return CompletableFuture<ApiResponse<PolicyRuleQuotaResponse>>, which completes - * exceptionally with an {@link ApiException} if the API call fails - */ - public CompletableFuture> getPolicyRuleQuota( - PolicyRuleQuotaRequest policyRuleQuotaRequest, String idempotencyKey) { - try { - HttpRequest.Builder localVarRequestBuilder = - getPolicyRuleQuotaRequestBuilder(policyRuleQuotaRequest, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - // Ahead of the status check, which fails the future: the lifecycle - // header - // is present on allowed error responses too. - LifecycleWarning.warn( - localVarResponse.headers(), - "getPolicyRuleQuota", - localVarResponse.statusCode()); - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getPolicyRuleQuota", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - PolicyRuleQuotaResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }) - .handle( - (localVarApiResponse, localVarThrowable) -> - localVarThrowable == null - ? CompletableFuture.completedFuture(localVarApiResponse) - : CompletableFuture - .> - failedFuture( - toApiFailure( - localVarThrowable))) - .thenCompose(localVarNormalized -> localVarNormalized); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getPolicyRuleQuotaRequestBuilder( - PolicyRuleQuotaRequest policyRuleQuotaRequest, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "getPolicyRuleQuota", "policyRuleQuotaRequest", policyRuleQuotaRequest); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/policy/rules/quota"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(policyRuleQuotaRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } -} diff --git a/src/main/java/com/fireblocks/sdk/api/ReportsBetaApi.java b/src/main/java/com/fireblocks/sdk/api/ReportsApi.java similarity index 97% rename from src/main/java/com/fireblocks/sdk/api/ReportsBetaApi.java rename to src/main/java/com/fireblocks/sdk/api/ReportsApi.java index 8329d3e4..5a0a31c3 100644 --- a/src/main/java/com/fireblocks/sdk/api/ReportsBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/ReportsApi.java @@ -46,7 +46,7 @@ @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class ReportsBetaApi { +public class ReportsApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; private final String memberVarBaseUri; @@ -55,11 +55,11 @@ public class ReportsBetaApi { private final Consumer> memberVarResponseInterceptor; private final Consumer> memberVarAsyncResponseInterceptor; - public ReportsBetaApi() { + public ReportsApi() { this(new ApiClient()); } - public ReportsBetaApi(ApiClient apiClient) { + public ReportsApi(ApiClient apiClient) { memberVarHttpClient = apiClient.getHttpClient(); memberVarObjectMapper = apiClient.getObjectMapper(); memberVarBaseUri = apiClient.getBaseUri(); @@ -109,8 +109,7 @@ private String formatExceptionMessage(String operationId, int statusCode, String * Create a report Creates a new asynchronous report job and returns a receipt containing the * report ID. Poll `GET /v1/reports/{reportId}` to check status. When * `status` is `COMPLETED`, the poll response includes a fresh pre-signed - * download URL in `links.downloadUrl`. **Note:** These endpoints are currently in - * beta and might be subject to changes. Endpoint Permission: Viewer and above. + * download URL in `links.downloadUrl`. Endpoint Permission: Viewer and above. * * @param body (required) * @param idempotencyKey A unique identifier for the request. If the request is sent multiple @@ -210,8 +209,7 @@ private HttpRequest.Builder createReportRequestBuilder( * response includes a fresh pre-signed download URL in `links.downloadUrl` (TTL ~1 * hour). Re-poll this endpoint to obtain a new URL after expiry. When `status` is * `FAILED`, the `failedAt` timestamp indicates when the failure occurred. - * **Note:** These endpoints are currently in beta and might be subject to changes. Endpoint - * Permission: Viewer and above. + * Endpoint Permission: Viewer and above. * * @param reportId The unique identifier of the report job (required) * @return CompletableFuture<ApiResponse<ReportJobResponse>>, which completes @@ -292,9 +290,8 @@ private HttpRequest.Builder getReportRequestBuilder(String reportId) throws ApiE /** * List reports Returns a paginated list of report jobs scoped to the calling tenant. **Note:** * Download URLs are not included in list responses. Call `GET /v1/reports/{reportId}` - * to obtain a fresh signed download URL for a specific completed report. **Note:** These - * endpoints are currently in beta and might be subject to changes. Endpoint Permission: Viewer - * and above. + * to obtain a fresh signed download URL for a specific completed report. Endpoint Permission: + * Viewer and above. * * @param pageCursor Opaque cursor returned from a previous list call (optional) * @param pageSize Maximum number of items per page (optional, default to 20) diff --git a/src/main/java/com/fireblocks/sdk/api/StakingApi.java b/src/main/java/com/fireblocks/sdk/api/StakingApi.java index 784e3ec7..1987eec0 100644 --- a/src/main/java/com/fireblocks/sdk/api/StakingApi.java +++ b/src/main/java/com/fireblocks/sdk/api/StakingApi.java @@ -200,12 +200,12 @@ private HttpRequest.Builder approveTermsOfServiceByProviderIdRequestBuilder( } /** * Claim accrued rewards Claims available staking rewards for the specified chain and vault. - * Supported chains: Solana and Polygon (POL/Matic). Behavior depends on protocol reward - * distribution. + * Supported chains: Solana, Polygon (POL/Matic) and Celestia. Behavior depends on protocol + * reward distribution. * * @param claimRewardsRequest (required) * @param chainDescriptor Protocol identifier for the claim rewards staking operation (e.g., - * POL/MATIC/SOL). (required) + * POL/MATIC/SOL/CELESTIA). (required) * @param 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. (optional) @@ -302,7 +302,7 @@ private HttpRequest.Builder claimRewardsRequestBuilder( * withdrawal credentials). On chain, this translates into a consolidation transaction, where * the source validator is consolidated into the destination validator. Supported chains: * Ethereum (ETH) only. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, - * Editor. **Note:** This endpoint is currently in beta and might be subject to changes. + * Editor. * * @param mergeStakeAccountsRequest (required) * @param chainDescriptor Protocol identifier for the staking operation (e.g., ETH). (required) diff --git a/src/main/java/com/fireblocks/sdk/api/TempoBetaApi.java b/src/main/java/com/fireblocks/sdk/api/TempoApi.java similarity index 98% rename from src/main/java/com/fireblocks/sdk/api/TempoBetaApi.java rename to src/main/java/com/fireblocks/sdk/api/TempoApi.java index 47eb9903..df5ad1aa 100644 --- a/src/main/java/com/fireblocks/sdk/api/TempoBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/TempoApi.java @@ -38,7 +38,7 @@ @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class TempoBetaApi { +public class TempoApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; private final String memberVarBaseUri; @@ -47,11 +47,11 @@ public class TempoBetaApi { private final Consumer> memberVarResponseInterceptor; private final Consumer> memberVarAsyncResponseInterceptor; - public TempoBetaApi() { + public TempoApi() { this(new ApiClient()); } - public TempoBetaApi(ApiClient apiClient) { + public TempoApi(ApiClient apiClient) { memberVarHttpClient = apiClient.getHttpClient(); memberVarObjectMapper = apiClient.getObjectMapper(); memberVarBaseUri = apiClient.getBaseUri(); diff --git a/src/main/java/com/fireblocks/sdk/api/TravelRuleApi.java b/src/main/java/com/fireblocks/sdk/api/TravelRuleApi.java index 9175b6bc..535c8d8e 100644 --- a/src/main/java/com/fireblocks/sdk/api/TravelRuleApi.java +++ b/src/main/java/com/fireblocks/sdk/api/TravelRuleApi.java @@ -25,6 +25,7 @@ import com.fireblocks.sdk.model.TravelRuleUpdateVASPDetails; import com.fireblocks.sdk.model.TravelRuleVASP; import com.fireblocks.sdk.model.TravelRuleValidateFullTransactionRequest; +import com.fireblocks.sdk.model.TravelRuleValidateTransactionRequest; import com.fireblocks.sdk.model.TravelRuleValidateTransactionResponse; import com.fireblocks.sdk.model.TravelRuleVaspForVault; import com.fireblocks.sdk.model.TrustProofOfAddressCreateResponse; @@ -976,4 +977,148 @@ private HttpRequest.Builder validateFullTravelRuleTransactionRequestBuilder( } return localVarRequestBuilder; } + /** + * Validate Travel Rule Transaction Validate Travel Rule transactions. Checks what beneficiary + * VASP details are required by your jurisdiction and the beneficiary's jurisdiction. + * **Deprecation Notice** This endpoint will be deprecated soon in favor of the [validate + * full](https://developers.fireblocks.com/reference/validatefulltravelruletransaction) + * endpoint. Please update your integrations to use the [validate + * full](https://developers.fireblocks.com/reference/validatefulltravelruletransaction) endpoint + * to ensure compatibility with future releases. Checks what beneficiary VASP details are + * required by your jurisdiction and the beneficiary's jurisdiction. Learn more about + * Fireblocks Travel Rule management in the following + * [guide](https://developers.fireblocks.com/docs/define-travel-rule-policies). Endpoint + * Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + * + * @param travelRuleValidateTransactionRequest (required) + * @param notation Specifies the notation of the transaction. Possible values are: - + * `notabene`: Uses Notabene notation (default behavior). - + * `fireblocks`: Uses Fireblocks notation, with automatic translation of asset + * tickers and amounts. - `<none>`: Defaults to `notabene` for + * backward compatibility. **Note:** The default value for the `notation` + * parameter will change from `notabene` to `fireblocks` Update your + * integrations accordingly. (optional + * @param 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. (optional) + * @return CompletableFuture<ApiResponse<TravelRuleValidateTransactionResponse>>, + * which completes exceptionally with an {@link ApiException} if the API call fails + * @deprecated + */ + @Deprecated + public CompletableFuture> + validateTravelRuleTransaction( + TravelRuleValidateTransactionRequest travelRuleValidateTransactionRequest, + List notation, + String idempotencyKey) { + try { + HttpRequest.Builder localVarRequestBuilder = + validateTravelRuleTransactionRequestBuilder( + travelRuleValidateTransactionRequest, notation, idempotencyKey); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + // Ahead of the status check, which fails the future: the lifecycle + // header + // is present on allowed error responses too. + LifecycleWarning.warn( + localVarResponse.headers(), + "validateTravelRuleTransaction", + localVarResponse.statusCode()); + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "validateTravelRuleTransaction", + localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + TravelRuleValidateTransactionResponse>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }) + .handle( + (localVarApiResponse, localVarThrowable) -> + localVarThrowable == null + ? CompletableFuture.completedFuture(localVarApiResponse) + : CompletableFuture + .> + failedFuture( + toApiFailure( + localVarThrowable))) + .thenCompose(localVarNormalized -> localVarNormalized); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder validateTravelRuleTransactionRequestBuilder( + TravelRuleValidateTransactionRequest travelRuleValidateTransactionRequest, + List notation, + String idempotencyKey) + throws ApiException { + ValidationUtils.assertParamExists( + "validateTravelRuleTransaction", + "travelRuleValidateTransactionRequest", + travelRuleValidateTransactionRequest); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/screening/travel_rule/transaction/validate"; + + List localVarQueryParams = new ArrayList<>(); + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); + String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "notation"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "notation", notation)); + + if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { + StringJoiner queryJoiner = new StringJoiner("&"); + localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); + if (localVarQueryStringJoiner.length() != 0) { + queryJoiner.add(localVarQueryStringJoiner.toString()); + } + localVarRequestBuilder.uri( + URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); + } else { + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + } + + if (idempotencyKey != null) { + localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); + } + localVarRequestBuilder.header("Content-Type", "application/json"); + localVarRequestBuilder.header("Accept", "application/json"); + + try { + byte[] localVarPostBody = + memberVarObjectMapper.writeValueAsBytes(travelRuleValidateTransactionRequest); + localVarRequestBuilder.method( + "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } } diff --git a/src/main/java/com/fireblocks/sdk/api/UserGroupsBetaApi.java b/src/main/java/com/fireblocks/sdk/api/UserGroupsApi.java similarity index 97% rename from src/main/java/com/fireblocks/sdk/api/UserGroupsBetaApi.java rename to src/main/java/com/fireblocks/sdk/api/UserGroupsApi.java index 309356a5..3b4632b6 100644 --- a/src/main/java/com/fireblocks/sdk/api/UserGroupsBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/UserGroupsApi.java @@ -42,7 +42,7 @@ @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class UserGroupsBetaApi { +public class UserGroupsApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; private final String memberVarBaseUri; @@ -51,11 +51,11 @@ public class UserGroupsBetaApi { private final Consumer> memberVarResponseInterceptor; private final Consumer> memberVarAsyncResponseInterceptor; - public UserGroupsBetaApi() { + public UserGroupsApi() { this(new ApiClient()); } - public UserGroupsBetaApi(ApiClient apiClient) { + public UserGroupsApi(ApiClient apiClient) { memberVarHttpClient = apiClient.getHttpClient(); memberVarObjectMapper = apiClient.getObjectMapper(); memberVarBaseUri = apiClient.getBaseUri(); @@ -201,9 +201,8 @@ private HttpRequest.Builder createUserGroupRequestBuilder( return localVarRequestBuilder; } /** - * Delete user group Delete a user group by ID. **Note**: - This endpoint is now in Beta, - * disabled for general availability at this time. - Please note that this endpoint is available - * only for API keys with Admin permissions. + * Delete user group Delete a user group by ID. **Note**: - Please note that this endpoint is + * available only for API keys with Admin permissions. * * @param groupId The ID of the user group (required) * @return CompletableFuture<ApiResponse<Void>>, which completes exceptionally with @@ -271,9 +270,8 @@ private HttpRequest.Builder deleteUserGroupRequestBuilder(String groupId) throws return localVarRequestBuilder; } /** - * Get user group Get a user group by ID. **Note**: - This endpoint is now in Beta, disabled for - * general availability at this time. - Please note that this endpoint is available only for API - * keys with Admin permissions. + * Get user group Get a user group by ID. **Note**: - Please note that this endpoint is + * available only for API keys with Admin permissions. * * @param groupId The ID of the user group (required) * @return CompletableFuture<ApiResponse<UserGroupResponse>>, which completes @@ -432,9 +430,8 @@ private HttpRequest.Builder getUserGroupsRequestBuilder() throws ApiException { return localVarRequestBuilder; } /** - * Update user group Update a user group by ID. **Note**: - This endpoint is now in Beta, - * disabled for general availability at this time. - Please note that this endpoint is available - * only for API keys with Admin permissions. + * Update user group Update a user group by ID. **Note**: - Please note that this endpoint is + * available only for API keys with Admin permissions. * * @param userGroupUpdateRequest (required) * @param groupId The ID of the user group (required) diff --git a/src/main/java/com/fireblocks/sdk/api/VaultsApi.java b/src/main/java/com/fireblocks/sdk/api/VaultsApi.java index 6cf9736f..f3311b4d 100644 --- a/src/main/java/com/fireblocks/sdk/api/VaultsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/VaultsApi.java @@ -31,15 +31,19 @@ import com.fireblocks.sdk.model.CreateMultipleDepositAddressesJobStatus; import com.fireblocks.sdk.model.CreateMultipleDepositAddressesRequest; import com.fireblocks.sdk.model.CreateMultipleVaultAccountsJobStatus; +import com.fireblocks.sdk.model.CreateOmnibusAddressesRequest; +import com.fireblocks.sdk.model.CreateOmnibusAddressesResponse; import com.fireblocks.sdk.model.CreateVaultAccountRequest; import com.fireblocks.sdk.model.CreateVaultAssetResponse; import com.fireblocks.sdk.model.GetAutomationSettingsResponse; import com.fireblocks.sdk.model.GetMaxBipIndexUsedResponse; import com.fireblocks.sdk.model.GetMaxSpendableAmountResponse; import com.fireblocks.sdk.model.JobCreated; +import com.fireblocks.sdk.model.ListOmnibusAddressesResponse; import com.fireblocks.sdk.model.PaginatedAddressResponse; import com.fireblocks.sdk.model.PaginatedAssetWalletResponse; import com.fireblocks.sdk.model.PublicKeyInformation; +import com.fireblocks.sdk.model.RegisterTempoOmnibusResponse; import com.fireblocks.sdk.model.RenameVaultAccountResponse; import com.fireblocks.sdk.model.SaveAutomationSettingsResponse; import com.fireblocks.sdk.model.SetAutoFuelRequest; @@ -57,6 +61,7 @@ import com.fireblocks.sdk.model.VaultAccountsTagAttachmentOperationsResponse; import com.fireblocks.sdk.model.VaultActionStatus; import com.fireblocks.sdk.model.VaultAsset; +import com.fireblocks.sdk.model.VaultWalletAddress; import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; @@ -266,8 +271,7 @@ private HttpRequest.Builder activateAssetForVaultAccountRequestBuilder( } /** * Activate a USDC Gateway wallet Activates the USDC Gateway wallet associated with the given - * vault account. If the wallet does not yet exist it is created in an activated state. - * **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint + * vault account. If the wallet does not yet exist it is created in an activated state. Endpoint * Permission: Admin, Non-Signing Admin, Signer, Approver. * * @param vaultAccountId The ID of the vault account (required) @@ -577,12 +581,11 @@ private HttpRequest.Builder createLegacyAddressRequestBuilder( } /** * Bulk creation of new vault accounts Create multiple vault accounts by running an async job. - - * The HBAR, TON, SUI, TERRA, ALGO, and DOT blockchains are not supported. - These endpoints are - * currently in beta and might be subject to changes. - Limited to a maximum of 10,000 accounts - * per operation. - With `vaultType: KEY_LINK`, creates Key Link vault accounts; set - * `autoAssign: true` to bind them to the workspace's signing keys (see - * `vaultType` and `autoAssign`). **Endpoint Permissions:** Admin, - * Non-Signing Admin, Signer, Approver, Editor. + * The HBAR, TON, SUI, TERRA, ALGO, and DOT blockchains are not supported. - Limited to a + * maximum of 10,000 accounts per operation. - With `vaultType: KEY_LINK`, creates Key + * Link vault accounts; set `autoAssign: true` to bind them to the workspace's + * signing keys (see `vaultType` and `autoAssign`). **Endpoint + * Permissions:** Admin, Non-Signing Admin, Signer, Approver, Editor. * * @param createMultipleAccountsRequest (required) * @param idempotencyKey A unique identifier for the request. If the request is sent multiple @@ -788,6 +791,135 @@ private HttpRequest.Builder createMultipleDepositAddressesRequestBuilder( } return localVarRequestBuilder; } + /** + * Create omnibus deposit addresses Creates a batch of deposit addresses for the omnibus account + * of the given vault account, protocol and asset. **Note:** This endpoint is currently in beta + * and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, + * Approver, Editor. + * + * @param createOmnibusAddressesRequest (required) + * @param vaultAccountId The ID of the omnibus vault account (required) + * @param protocol The omnibus protocol (required) + * @param assetId The ID of the asset (required) + * @param 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. (optional) + * @return CompletableFuture<ApiResponse<CreateOmnibusAddressesResponse>>, which + * completes exceptionally with an {@link ApiException} if the API call fails + */ + public CompletableFuture> createOmnibusAddresses( + CreateOmnibusAddressesRequest createOmnibusAddressesRequest, + String vaultAccountId, + String protocol, + String assetId, + String idempotencyKey) { + try { + HttpRequest.Builder localVarRequestBuilder = + createOmnibusAddressesRequestBuilder( + createOmnibusAddressesRequest, + vaultAccountId, + protocol, + assetId, + idempotencyKey); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + // Ahead of the status check, which fails the future: the lifecycle + // header + // is present on allowed error responses too. + LifecycleWarning.warn( + localVarResponse.headers(), + "createOmnibusAddresses", + localVarResponse.statusCode()); + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "createOmnibusAddresses", localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + CreateOmnibusAddressesResponse>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }) + .handle( + (localVarApiResponse, localVarThrowable) -> + localVarThrowable == null + ? CompletableFuture.completedFuture(localVarApiResponse) + : CompletableFuture + .> + failedFuture( + toApiFailure( + localVarThrowable))) + .thenCompose(localVarNormalized -> localVarNormalized); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder createOmnibusAddressesRequestBuilder( + CreateOmnibusAddressesRequest createOmnibusAddressesRequest, + String vaultAccountId, + String protocol, + String assetId, + String idempotencyKey) + throws ApiException { + ValidationUtils.assertParamExists( + "createOmnibusAddresses", + "createOmnibusAddressesRequest", + createOmnibusAddressesRequest); + ValidationUtils.assertParamExistsAndNotEmpty( + "createOmnibusAddresses", "vaultAccountId", vaultAccountId); + ValidationUtils.assertParamExistsAndNotEmpty( + "createOmnibusAddresses", "protocol", protocol); + ValidationUtils.assertParamExistsAndNotEmpty("createOmnibusAddresses", "assetId", assetId); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/vault/accounts/{vaultAccountId}/omnibus/{protocol}/{assetId}/addresses/bulk" + .replace("{vaultAccountId}", ApiClient.urlEncode(vaultAccountId.toString())) + .replace("{protocol}", ApiClient.urlEncode(protocol.toString())) + .replace("{assetId}", ApiClient.urlEncode(assetId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + if (idempotencyKey != null) { + localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); + } + localVarRequestBuilder.header("Content-Type", "application/json"); + localVarRequestBuilder.header("Accept", "application/json"); + + try { + byte[] localVarPostBody = + memberVarObjectMapper.writeValueAsBytes(createOmnibusAddressesRequest); + localVarRequestBuilder.method( + "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } /** * Create a new vault account Creates a new vault account with the requested name. **Note: ** * Vault account names should consist of ASCII characters only. Learn more about Fireblocks @@ -1146,8 +1278,7 @@ private HttpRequest.Builder createVaultAccountAssetAddressRequestBuilder( } /** * Deactivate a USDC Gateway wallet Deactivates the USDC Gateway wallet associated with the - * given vault account. **Note:** This endpoint is currently in beta and might be subject to - * changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. + * given vault account. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * * @param vaultAccountId The ID of the vault account (required) * @param idempotencyKey A unique identifier for the request. If the request is sent multiple @@ -1243,9 +1374,8 @@ private HttpRequest.Builder deactivateUsdcGatewayWalletBetaRequestBuilder( /** * Stop a USDC Gateway deposit automation's schedule Stops the schedule for an existing * deposit automation. The automation itself stays configured, only its schedule stops. Turn it - * back on later with PATCH, without setting up the automation again from scratch. **Note:** - * This endpoint is currently in beta and might be subject to changes. Endpoint Permission: - * Admin, Non-Signing Admin, Signer, Approver. + * back on later with PATCH, without setting up the automation again from scratch. Endpoint + * Permission: Admin, Non-Signing Admin, Signer, Approver. * * @param vaultAccountId The ID of the vault account (required) * @param automationId The ID of the deposit automation, returned when it was created or read @@ -1896,6 +2026,150 @@ private HttpRequest.Builder getMaxSpendableAmountRequestBuilder( } return localVarRequestBuilder; } + /** + * List omnibus deposit addresses Returns a page of the deposit addresses of the omnibus account + * of the given vault account, protocol and asset, ordered by index, highest first. **Note:** + * This endpoint is currently in beta and might be subject to changes. Endpoint Permission: + * Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + * + * @param vaultAccountId The ID of the omnibus vault account (required) + * @param protocol The omnibus protocol (required) + * @param assetId The ID of the asset (required) + * @param fromIndex Return only addresses with an index greater than or equal to this value. + * (optional) + * @param search Return only addresses that start with this value (case-insensitive). + * Surrounding whitespace is ignored. (optional) + * @param pageCursor The cursor returned in `next` of the previous page. Omit for the + * first page. (optional) + * @param pageSize The number of addresses per page. (optional, default to 100) + * @return CompletableFuture<ApiResponse<ListOmnibusAddressesResponse>>, which + * completes exceptionally with an {@link ApiException} if the API call fails + */ + public CompletableFuture> getOmnibusAddresses( + String vaultAccountId, + String protocol, + String assetId, + Integer fromIndex, + String search, + String pageCursor, + Integer pageSize) { + try { + HttpRequest.Builder localVarRequestBuilder = + getOmnibusAddressesRequestBuilder( + vaultAccountId, + protocol, + assetId, + fromIndex, + search, + pageCursor, + pageSize); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + // Ahead of the status check, which fails the future: the lifecycle + // header + // is present on allowed error responses too. + LifecycleWarning.warn( + localVarResponse.headers(), + "getOmnibusAddresses", + localVarResponse.statusCode()); + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "getOmnibusAddresses", localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + ListOmnibusAddressesResponse>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }) + .handle( + (localVarApiResponse, localVarThrowable) -> + localVarThrowable == null + ? CompletableFuture.completedFuture(localVarApiResponse) + : CompletableFuture + .> + failedFuture( + toApiFailure( + localVarThrowable))) + .thenCompose(localVarNormalized -> localVarNormalized); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder getOmnibusAddressesRequestBuilder( + String vaultAccountId, + String protocol, + String assetId, + Integer fromIndex, + String search, + String pageCursor, + Integer pageSize) + throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty( + "getOmnibusAddresses", "vaultAccountId", vaultAccountId); + ValidationUtils.assertParamExistsAndNotEmpty("getOmnibusAddresses", "protocol", protocol); + ValidationUtils.assertParamExistsAndNotEmpty("getOmnibusAddresses", "assetId", assetId); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/vault/accounts/{vaultAccountId}/omnibus/{protocol}/{assetId}/addresses" + .replace("{vaultAccountId}", ApiClient.urlEncode(vaultAccountId.toString())) + .replace("{protocol}", ApiClient.urlEncode(protocol.toString())) + .replace("{assetId}", ApiClient.urlEncode(assetId.toString())); + + List localVarQueryParams = new ArrayList<>(); + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); + String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "fromIndex"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("fromIndex", fromIndex)); + localVarQueryParameterBaseName = "search"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("search", search)); + localVarQueryParameterBaseName = "pageCursor"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); + localVarQueryParameterBaseName = "pageSize"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); + + if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { + StringJoiner queryJoiner = new StringJoiner("&"); + localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); + if (localVarQueryStringJoiner.length() != 0) { + queryJoiner.add(localVarQueryStringJoiner.toString()); + } + localVarRequestBuilder.uri( + URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); + } else { + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + } + + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } /** * Get vault accounts (Paginated) Gets all vault accounts in your workspace. This endpoint * returns a limited amount of results with a quick response time. Endpoint Permission: Admin, @@ -2391,9 +2665,8 @@ private HttpRequest.Builder getUnspentInputsRequestBuilder( } /** * Read the USDC Gateway deposit automations for a vault account Returns the USDC Gateway - * deposit automations configured for the given vault account. **Note:** This endpoint is - * currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing - * Admin, Signer, Approver, Editor, Viewer. + * deposit automations configured for the given vault account. Endpoint Permission: Admin, + * Non-Signing Admin, Signer, Approver, Editor, Viewer. * * @param vaultAccountId The ID of the vault account (required) * @return CompletableFuture<ApiResponse<GetAutomationSettingsResponse>>, which @@ -2482,8 +2755,8 @@ private HttpRequest.Builder getUsdcGatewayDepositAutomationBetaRequestBuilder( } /** * Get USDC Gateway wallet info Returns the USDC Gateway wallet information associated with the - * given vault account. **Note:** This endpoint is currently in beta and might be subject to - * changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + * given vault account. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, + * Viewer. * * @param vaultAccountId The ID of the vault account (required) * @return CompletableFuture<ApiResponse<UsdcGatewayWalletInfoResponse>>, which @@ -2743,6 +3016,108 @@ private HttpRequest.Builder getVaultAccountAssetRequestBuilder( } return localVarRequestBuilder; } + /** + * Get asset addresses DEPRECATED! - If your application logic or scripts rely on the deprecated + * endpoint, you should update to account for + * GET/V1/vault/accounts/{vaultAccountId}/{assetId}/addresses_paginated before Mar 31,2024. - + * All workspaces created after Mar 31,2024. will have it disabled. If it is disabled for your + * workspace and you attempt to use it, you will receive the following error message: + * \"This endpoint is unavailable. - Please use the GET + * /v1/vault/accounts/{vaultAccountId}/{assetId}/addresses_paginated endpoint to return all the + * wallet addresses associated with the specified vault account and asset in a paginated list. + * Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + * + * @param vaultAccountId The ID of the vault account to return (required) + * @param assetId The ID of the asset (required) + * @return CompletableFuture<ApiResponse<List<VaultWalletAddress>>>, which + * completes exceptionally with an {@link ApiException} if the API call fails + * @deprecated + */ + @Deprecated + public CompletableFuture>> getVaultAccountAssetAddresses( + String vaultAccountId, String assetId) { + try { + HttpRequest.Builder localVarRequestBuilder = + getVaultAccountAssetAddressesRequestBuilder(vaultAccountId, assetId); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + // Ahead of the status check, which fails the future: the lifecycle + // header + // is present on allowed error responses too. + LifecycleWarning.warn( + localVarResponse.headers(), + "getVaultAccountAssetAddresses", + localVarResponse.statusCode()); + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "getVaultAccountAssetAddresses", + localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse>( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + List< + VaultWalletAddress>>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }) + .handle( + (localVarApiResponse, localVarThrowable) -> + localVarThrowable == null + ? CompletableFuture.completedFuture(localVarApiResponse) + : CompletableFuture + .>> + failedFuture( + toApiFailure( + localVarThrowable))) + .thenCompose(localVarNormalized -> localVarNormalized); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder getVaultAccountAssetAddressesRequestBuilder( + String vaultAccountId, String assetId) throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty( + "getVaultAccountAssetAddresses", "vaultAccountId", vaultAccountId); + ValidationUtils.assertParamExistsAndNotEmpty( + "getVaultAccountAssetAddresses", "assetId", assetId); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/vault/accounts/{vaultAccountId}/{assetId}/addresses" + .replace("{vaultAccountId}", ApiClient.urlEncode(vaultAccountId.toString())) + .replace("{assetId}", ApiClient.urlEncode(assetId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } /** * Get addresses (Paginated) Returns a paginated response of the addresses for a given vault * account and asset. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, @@ -2866,6 +3241,117 @@ private HttpRequest.Builder getVaultAccountAssetAddressesPaginatedRequestBuilder } return localVarRequestBuilder; } + /** + * Get vault accounts DEPRECATED - Please use `/vault/accounts_paged` endpoint + * instead. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + * + * @param namePrefix (optional) + * @param nameSuffix (optional) + * @param minAmountThreshold (optional) + * @param assetId (optional) + * @return CompletableFuture<ApiResponse<List<VaultAccount>>>, which completes + * exceptionally with an {@link ApiException} if the API call fails + * @deprecated + */ + @Deprecated + public CompletableFuture>> getVaultAccounts( + String namePrefix, String nameSuffix, BigDecimal minAmountThreshold, String assetId) { + try { + HttpRequest.Builder localVarRequestBuilder = + getVaultAccountsRequestBuilder( + namePrefix, nameSuffix, minAmountThreshold, assetId); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + // Ahead of the status check, which fails the future: the lifecycle + // header + // is present on allowed error responses too. + LifecycleWarning.warn( + localVarResponse.headers(), + "getVaultAccounts", + localVarResponse.statusCode()); + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException("getVaultAccounts", localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse>( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + List< + VaultAccount>>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }) + .handle( + (localVarApiResponse, localVarThrowable) -> + localVarThrowable == null + ? CompletableFuture.completedFuture(localVarApiResponse) + : CompletableFuture + .>>failedFuture( + toApiFailure(localVarThrowable))) + .thenCompose(localVarNormalized -> localVarNormalized); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder getVaultAccountsRequestBuilder( + String namePrefix, String nameSuffix, BigDecimal minAmountThreshold, String assetId) + throws ApiException { + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/vault/accounts"; + + List localVarQueryParams = new ArrayList<>(); + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); + String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "namePrefix"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("namePrefix", namePrefix)); + localVarQueryParameterBaseName = "nameSuffix"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("nameSuffix", nameSuffix)); + localVarQueryParameterBaseName = "minAmountThreshold"; + localVarQueryParams.addAll( + ApiClient.parameterToPairs("minAmountThreshold", minAmountThreshold)); + localVarQueryParameterBaseName = "assetId"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("assetId", assetId)); + + if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { + StringJoiner queryJoiner = new StringJoiner("&"); + localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); + if (localVarQueryStringJoiner.length() != 0) { + queryJoiner.add(localVarQueryStringJoiner.toString()); + } + localVarRequestBuilder.uri( + URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); + } else { + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + } + + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } /** * Get asset balance for chosen assets Gets the assets amount summary for all accounts or * filtered accounts. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, @@ -3152,7 +3638,7 @@ private HttpRequest.Builder hideVaultAccountRequestBuilder( /** * Look up a vault account by blockchain address Resolves a blockchain address to the vault * account that owns it. Returns the vault account ID and the blockchains associated with the - * address. **Note:** This endpoint is currently in beta and might be subject to changes. + * address. * * @param address The blockchain address to resolve. (required) * @return CompletableFuture<ApiResponse<AddressReverseLookupResponse>>, which @@ -3250,6 +3736,107 @@ private HttpRequest.Builder lookupVaultByAddressRequestBuilder(String address) } return localVarRequestBuilder; } + /** + * Register a Tempo omnibus wallet Registers a Tempo omnibus wallet for the given vault account + * and asset. Triggering this flow requires the vault account to hold PATH_USD with a balance + * sufficient to cover the gas fee. Endpoint Permission: Admin, Non-Signing Admin, Signer, + * Approver, Editor. + * + * @param vaultAccountId The ID of the omnibus vault account (required) + * @param assetId The Tempo network asset to register for the vault account. (required) + * @param 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. (optional) + * @return CompletableFuture<ApiResponse<RegisterTempoOmnibusResponse>>, which + * completes exceptionally with an {@link ApiException} if the API call fails + */ + public CompletableFuture> registerTempoOmnibusWallet( + String vaultAccountId, String assetId, String idempotencyKey) { + try { + HttpRequest.Builder localVarRequestBuilder = + registerTempoOmnibusWalletRequestBuilder( + vaultAccountId, assetId, idempotencyKey); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + // Ahead of the status check, which fails the future: the lifecycle + // header + // is present on allowed error responses too. + LifecycleWarning.warn( + localVarResponse.headers(), + "registerTempoOmnibusWallet", + localVarResponse.statusCode()); + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "registerTempoOmnibusWallet", + localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + RegisterTempoOmnibusResponse>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }) + .handle( + (localVarApiResponse, localVarThrowable) -> + localVarThrowable == null + ? CompletableFuture.completedFuture(localVarApiResponse) + : CompletableFuture + .> + failedFuture( + toApiFailure( + localVarThrowable))) + .thenCompose(localVarNormalized -> localVarNormalized); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder registerTempoOmnibusWalletRequestBuilder( + String vaultAccountId, String assetId, String idempotencyKey) throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty( + "registerTempoOmnibusWallet", "vaultAccountId", vaultAccountId); + ValidationUtils.assertParamExistsAndNotEmpty( + "registerTempoOmnibusWallet", "assetId", assetId); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/vault/accounts/{vaultAccountId}/omnibus/TEMPO/{assetId}/register" + .replace("{vaultAccountId}", ApiClient.urlEncode(vaultAccountId.toString())) + .replace("{assetId}", ApiClient.urlEncode(assetId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + if (idempotencyKey != null) { + localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); + } + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } /** * Assign AML customer reference ID Sets an AML/KYT customer reference ID for a specific * address. Endpoint Permission: Admin, Non-Signing Admin. @@ -3382,8 +3969,7 @@ private HttpRequest.Builder setCustomerRefIdForAddressRequestBuilder( * Set up a USDC Gateway deposit automation for a vault account Turns on automatic deposits into * the USDC Gateway wallet for the given vault account, on the schedule you choose. Returns an * error if an automation already exists for this vault account and asset. Use PATCH to change - * it instead. **Note:** This endpoint is currently in beta and might be subject to changes. - * Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. + * it instead. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * * @param automationSettingsRequest (required) * @param vaultAccountId The ID of the vault account (required) @@ -3809,8 +4395,7 @@ private HttpRequest.Builder unhideVaultAccountRequestBuilder( } /** * Change a USDC Gateway deposit automation Changes an existing USDC Gateway deposit automation - * for a vault account. **Note:** This endpoint is currently in beta and might be subject to - * changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. + * for a vault account. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * * @param updateAutomationSettingsRequest (required) * @param vaultAccountId The ID of the vault account (required) diff --git a/src/main/java/com/fireblocks/sdk/api/WebhooksV2Api.java b/src/main/java/com/fireblocks/sdk/api/WebhooksV2Api.java index 52192415..604f277d 100644 --- a/src/main/java/com/fireblocks/sdk/api/WebhooksV2Api.java +++ b/src/main/java/com/fireblocks/sdk/api/WebhooksV2Api.java @@ -21,9 +21,11 @@ import com.fireblocks.sdk.LifecycleWarning; import com.fireblocks.sdk.Pair; import com.fireblocks.sdk.ValidationUtils; +import com.fireblocks.sdk.model.CreateWebhookCustomHeadersRequest; import com.fireblocks.sdk.model.CreateWebhookMtlsConfigRequest; import com.fireblocks.sdk.model.CreateWebhookOauthRequest; import com.fireblocks.sdk.model.CreateWebhookRequest; +import com.fireblocks.sdk.model.DeleteWebhookCustomHeadersResponse; import com.fireblocks.sdk.model.DeleteWebhookMtlsConfigResponse; import com.fireblocks.sdk.model.DeleteWebhookOauthResponse; import com.fireblocks.sdk.model.NotificationAttemptsPaginatedResponse; @@ -36,10 +38,15 @@ import com.fireblocks.sdk.model.ResendFailedNotificationsRequest; import com.fireblocks.sdk.model.ResendFailedNotificationsResponse; import com.fireblocks.sdk.model.ResendNotificationsByResourceIdRequest; +import com.fireblocks.sdk.model.RevokeWebhookOauthKeyRequest; +import com.fireblocks.sdk.model.RevokeWebhookOauthKeyResponse; +import com.fireblocks.sdk.model.RotateWebhookOauthKeyResponse; +import com.fireblocks.sdk.model.UpdateWebhookCustomHeadersRequest; import com.fireblocks.sdk.model.UpdateWebhookMtlsConfigRequest; import com.fireblocks.sdk.model.UpdateWebhookOauthRequest; import com.fireblocks.sdk.model.UpdateWebhookRequest; import com.fireblocks.sdk.model.Webhook; +import com.fireblocks.sdk.model.WebhookCustomHeadersSet; import com.fireblocks.sdk.model.WebhookEvent; import com.fireblocks.sdk.model.WebhookMetric; import com.fireblocks.sdk.model.WebhookMtlsConfig; @@ -220,6 +227,123 @@ private HttpRequest.Builder createWebhookRequestBuilder( } return localVarRequestBuilder; } + /** + * Create a custom headers set Creates a reusable set of custom HTTP headers. Attach it to a + * webhook by passing the returned id as that webhook's `webhookCustomHeadersId`, + * to send the headers with that webhook's notifications, or to OAuth credentials as their + * `webhookCustomHeadersId`, to send them on the token request to your authorization + * server. Several webhooks and OAuth credentials may share one set, so changing it covers all + * of them at once. Header values are write-only and are never returned. One set of rules + * applies to every use of a set, whether a webhook or OAuth credentials attach it: a value is a + * string or an array of strings (one header line per element), except `Cookie` and + * `Authorization`, which take a single string. Where Fireblocks sends its own + * `Authorization` header (an OAuth bearer token on a delivery, + * `client_secret_basic` on a token request), a custom `Authorization` + * header is not sent. Attaching a set checks only that it exists in your workspace. **Endpoint + * Permissions:** Owner, Admin, Non-Signing Admin. + * + * @param createWebhookCustomHeadersRequest (required) + * @param 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. (optional) + * @return CompletableFuture<ApiResponse<WebhookCustomHeadersSet>>, which completes + * exceptionally with an {@link ApiException} if the API call fails + */ + public CompletableFuture> createWebhookCustomHeaders( + CreateWebhookCustomHeadersRequest createWebhookCustomHeadersRequest, + String idempotencyKey) { + try { + HttpRequest.Builder localVarRequestBuilder = + createWebhookCustomHeadersRequestBuilder( + createWebhookCustomHeadersRequest, idempotencyKey); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + // Ahead of the status check, which fails the future: the lifecycle + // header + // is present on allowed error responses too. + LifecycleWarning.warn( + localVarResponse.headers(), + "createWebhookCustomHeaders", + localVarResponse.statusCode()); + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "createWebhookCustomHeaders", + localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + WebhookCustomHeadersSet>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }) + .handle( + (localVarApiResponse, localVarThrowable) -> + localVarThrowable == null + ? CompletableFuture.completedFuture(localVarApiResponse) + : CompletableFuture + .> + failedFuture( + toApiFailure( + localVarThrowable))) + .thenCompose(localVarNormalized -> localVarNormalized); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder createWebhookCustomHeadersRequestBuilder( + CreateWebhookCustomHeadersRequest createWebhookCustomHeadersRequest, + String idempotencyKey) + throws ApiException { + ValidationUtils.assertParamExists( + "createWebhookCustomHeaders", + "createWebhookCustomHeadersRequest", + createWebhookCustomHeadersRequest); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/webhooks_settings/custom_headers"; + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + if (idempotencyKey != null) { + localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); + } + localVarRequestBuilder.header("Content-Type", "application/json"); + localVarRequestBuilder.header("Accept", "application/json"); + + try { + byte[] localVarPostBody = + memberVarObjectMapper.writeValueAsBytes(createWebhookCustomHeadersRequest); + localVarRequestBuilder.method( + "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } /** * Create an mTLS configuration Stores a certificate signed against the CSR from `GET * /v1/webhooks_settings/mtls_csr` and returns its id, which is then set as @@ -331,8 +455,12 @@ private HttpRequest.Builder createWebhookMtlsConfigRequestBuilder( * Create OAuth credentials Creates a reusable OAuth client credential set. Attach it to a * webhook by passing the returned id as that webhook's `webhookOauthId`. Several * webhooks may share one credential set, so rotating its client secret covers all of them at - * once. The client secret is write-only and is never returned. **Endpoint Permissions:** Owner, - * Admin, Non-Signing Admin. + * once. The client secret is write-only and is never returned. With `authMethod` + * `private_key_jwt` no client secret is sent: Fireblocks generates two key pairs for + * the credentials, the signing key and its successor, and keeps the private halves. The public + * halves are published at the `jwksUri` returned with the credentials; register that + * URL as the client's `jwks_uri` on your authorization server. **Endpoint + * Permissions:** Owner, Admin, Non-Signing Admin. * * @param createWebhookOauthRequest (required) * @param idempotencyKey A unique identifier for the request. If the request is sent multiple @@ -510,6 +638,129 @@ private HttpRequest.Builder deleteWebhookRequestBuilder(UUID webhookId) throws A } return localVarRequestBuilder; } + /** + * Delete a custom headers set Deletes a custom headers set. By default the delete is refused + * while the set is still in use: if any webhook or OAuth credentials use it, nothing is deleted + * and the request fails with `409 Conflict`, naming the reason and listing the ids of + * the webhooks and OAuth credentials using it. This protects a shared set from being removed + * out from under the things that depend on it. Pass `forceDelete=true` to delete + * anyway. That detaches everything using the set — it clears each webhook's and each OAuth + * credential set's `webhookCustomHeadersId`, it does **not** delete the webhook + * or the credentials — then deletes the set and returns the deleted resource together with + * `detachedWebhookIds` and `detachedWebhookOauthIds`. A detached webhook + * stops sending these headers with its notifications, and detached OAuth credentials stop + * sending them on the token request. When nothing uses the set the delete succeeds either way, + * and both lists come back empty. **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. + * + * @param webhookCustomHeadersId The unique identifier of the custom headers set (required) + * @param forceDelete Delete the set even while webhooks or OAuth credentials still use it, + * detaching them instead of refusing. Leave it unset, or `false`, to get a + * `409 Conflict` whenever anything still uses the set. (optional, default to + * false) + * @return CompletableFuture<ApiResponse<DeleteWebhookCustomHeadersResponse>>, which + * completes exceptionally with an {@link ApiException} if the API call fails + */ + public CompletableFuture> + deleteWebhookCustomHeaders(UUID webhookCustomHeadersId, Boolean forceDelete) { + try { + HttpRequest.Builder localVarRequestBuilder = + deleteWebhookCustomHeadersRequestBuilder(webhookCustomHeadersId, forceDelete); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + // Ahead of the status check, which fails the future: the lifecycle + // header + // is present on allowed error responses too. + LifecycleWarning.warn( + localVarResponse.headers(), + "deleteWebhookCustomHeaders", + localVarResponse.statusCode()); + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "deleteWebhookCustomHeaders", + localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + DeleteWebhookCustomHeadersResponse>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }) + .handle( + (localVarApiResponse, localVarThrowable) -> + localVarThrowable == null + ? CompletableFuture.completedFuture(localVarApiResponse) + : CompletableFuture + .> + failedFuture( + toApiFailure( + localVarThrowable))) + .thenCompose(localVarNormalized -> localVarNormalized); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder deleteWebhookCustomHeadersRequestBuilder( + UUID webhookCustomHeadersId, Boolean forceDelete) throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty( + "deleteWebhookCustomHeaders", + "webhookCustomHeadersId", + webhookCustomHeadersId.toString()); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/webhooks_settings/custom_headers/{webhookCustomHeadersId}" + .replace( + "{webhookCustomHeadersId}", + ApiClient.urlEncode(webhookCustomHeadersId.toString())); + + List localVarQueryParams = new ArrayList<>(); + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); + String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "forceDelete"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("forceDelete", forceDelete)); + + if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { + StringJoiner queryJoiner = new StringJoiner("&"); + localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); + if (localVarQueryStringJoiner.length() != 0) { + queryJoiner.add(localVarQueryStringJoiner.toString()); + } + localVarRequestBuilder.uri( + URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); + } else { + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + } + + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("DELETE", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } /** * Delete an mTLS configuration Deletes an mTLS configuration. By default the delete is refused * while the configuration is still in use: if any webhook or OAuth credentials reference it, @@ -1581,17 +1832,18 @@ private HttpRequest.Builder getWebhookRequestBuilder(UUID webhookId) throws ApiE return localVarRequestBuilder; } /** - * Get an mTLS configuration by id Retrieve one stored mTLS configuration by its id. + * Get a custom headers set by id Retrieve a custom headers set by its id. Header values are + * never returned, only the header names. * - * @param webhookMtlsId The unique identifier of the mTLS configuration (required) - * @return CompletableFuture<ApiResponse<WebhookMtlsConfig>>, which completes + * @param webhookCustomHeadersId The unique identifier of the custom headers set (required) + * @return CompletableFuture<ApiResponse<WebhookCustomHeadersSet>>, which completes * exceptionally with an {@link ApiException} if the API call fails */ - public CompletableFuture> getWebhookMtlsConfig( - UUID webhookMtlsId) { + public CompletableFuture> getWebhookCustomHeaders( + UUID webhookCustomHeadersId) { try { HttpRequest.Builder localVarRequestBuilder = - getWebhookMtlsConfigRequestBuilder(webhookMtlsId); + getWebhookCustomHeadersRequestBuilder(webhookCustomHeadersId); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -1604,17 +1856,17 @@ public CompletableFuture> getWebhookMtlsConfig( // is present on allowed error responses too. LifecycleWarning.warn( localVarResponse.headers(), - "getWebhookMtlsConfig", + "getWebhookCustomHeaders", localVarResponse.statusCode()); if (localVarResponse.statusCode() / 100 != 2) { return CompletableFuture.failedFuture( getApiException( - "getWebhookMtlsConfig", localVarResponse)); + "getWebhookCustomHeaders", localVarResponse)); } try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -1622,7 +1874,7 @@ public CompletableFuture> getWebhookMtlsConfig( : memberVarObjectMapper.readValue( responseBody, new TypeReference< - WebhookMtlsConfig>() {}))); + WebhookCustomHeadersSet>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -1632,24 +1884,30 @@ public CompletableFuture> getWebhookMtlsConfig( localVarThrowable == null ? CompletableFuture.completedFuture(localVarApiResponse) : CompletableFuture - .>failedFuture( - toApiFailure(localVarThrowable))) + .> + failedFuture( + toApiFailure( + localVarThrowable))) .thenCompose(localVarNormalized -> localVarNormalized); } catch (ApiException e) { return CompletableFuture.failedFuture(e); } } - private HttpRequest.Builder getWebhookMtlsConfigRequestBuilder(UUID webhookMtlsId) + private HttpRequest.Builder getWebhookCustomHeadersRequestBuilder(UUID webhookCustomHeadersId) throws ApiException { ValidationUtils.assertParamExistsAndNotEmpty( - "getWebhookMtlsConfig", "webhookMtlsId", webhookMtlsId.toString()); + "getWebhookCustomHeaders", + "webhookCustomHeadersId", + webhookCustomHeadersId.toString()); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); String localVarPath = - "/webhooks_settings/mtls/{webhookMtlsId}" - .replace("{webhookMtlsId}", ApiClient.urlEncode(webhookMtlsId.toString())); + "/webhooks_settings/custom_headers/{webhookCustomHeadersId}" + .replace( + "{webhookCustomHeadersId}", + ApiClient.urlEncode(webhookCustomHeadersId.toString())); localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); @@ -1665,20 +1923,17 @@ private HttpRequest.Builder getWebhookMtlsConfigRequestBuilder(UUID webhookMtlsI return localVarRequestBuilder; } /** - * List the uploaded mTLS configurations Lists the workspace's mTLS configurations, newest - * first. Pass `ids` to ask about particular ones instead — useful for resolving the - * `webhookMtlsId` values on a set of webhooks in one call. + * Get all custom headers sets Lists every custom headers set for the workspace. Header values + * are never returned, only the header names. * - * @param ids Return only the configurations with these ids, instead of all of them. Repeat the - * parameter for each id. An id belonging to another workspace, or to nothing, is left out - * of the response rather than failing the request. (optional - * @return CompletableFuture<ApiResponse<List<WebhookMtlsConfig>>>, which - * completes exceptionally with an {@link ApiException} if the API call fails + * @return CompletableFuture<ApiResponse<List<WebhookCustomHeadersSet>>>, + * which completes exceptionally with an {@link ApiException} if the API call fails */ - public CompletableFuture>> getWebhookMtlsConfigs( - List ids) { + public CompletableFuture>> + getWebhookCustomHeadersList() { try { - HttpRequest.Builder localVarRequestBuilder = getWebhookMtlsConfigsRequestBuilder(ids); + HttpRequest.Builder localVarRequestBuilder = + getWebhookCustomHeadersListRequestBuilder(); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -1691,17 +1946,18 @@ public CompletableFuture>> getWebhookMtlsCon // is present on allowed error responses too. LifecycleWarning.warn( localVarResponse.headers(), - "getWebhookMtlsConfigs", + "getWebhookCustomHeadersList", localVarResponse.statusCode()); if (localVarResponse.statusCode() / 100 != 2) { return CompletableFuture.failedFuture( getApiException( - "getWebhookMtlsConfigs", localVarResponse)); + "getWebhookCustomHeadersList", + localVarResponse)); } try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse>( + new ApiResponse>( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -1710,7 +1966,7 @@ public CompletableFuture>> getWebhookMtlsCon responseBody, new TypeReference< List< - WebhookMtlsConfig>>() {}))); + WebhookCustomHeadersSet>>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -1720,7 +1976,7 @@ public CompletableFuture>> getWebhookMtlsCon localVarThrowable == null ? CompletableFuture.completedFuture(localVarApiResponse) : CompletableFuture - .>> + .>> failedFuture( toApiFailure( localVarThrowable))) @@ -1730,30 +1986,13 @@ public CompletableFuture>> getWebhookMtlsCon } } - private HttpRequest.Builder getWebhookMtlsConfigsRequestBuilder(List ids) - throws ApiException { + private HttpRequest.Builder getWebhookCustomHeadersListRequestBuilder() throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/webhooks_settings/mtls"; - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "ids"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "ids", ids)); + String localVarPath = "/webhooks_settings/custom_headers"; - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); localVarRequestBuilder.header("Accept", "application/json"); @@ -1767,18 +2006,17 @@ private HttpRequest.Builder getWebhookMtlsConfigsRequestBuilder(List ids) return localVarRequestBuilder; } /** - * Get OAuth credentials by id Retrieve an OAuth credential set by its id. The client secret is - * never returned. + * Get an mTLS configuration by id Retrieve one stored mTLS configuration by its id. * - * @param webhookOauthId The unique identifier of the OAuth credentials (required) - * @return CompletableFuture<ApiResponse<WebhookOauthCredentials>>, which completes + * @param webhookMtlsId The unique identifier of the mTLS configuration (required) + * @return CompletableFuture<ApiResponse<WebhookMtlsConfig>>, which completes * exceptionally with an {@link ApiException} if the API call fails */ - public CompletableFuture> getWebhookOauth( - UUID webhookOauthId) { + public CompletableFuture> getWebhookMtlsConfig( + UUID webhookMtlsId) { try { HttpRequest.Builder localVarRequestBuilder = - getWebhookOauthRequestBuilder(webhookOauthId); + getWebhookMtlsConfigRequestBuilder(webhookMtlsId); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -1791,16 +2029,203 @@ public CompletableFuture> getWebhookOauth( // is present on allowed error responses too. LifecycleWarning.warn( localVarResponse.headers(), - "getWebhookOauth", + "getWebhookMtlsConfig", localVarResponse.statusCode()); if (localVarResponse.statusCode() / 100 != 2) { return CompletableFuture.failedFuture( - getApiException("getWebhookOauth", localVarResponse)); + getApiException( + "getWebhookMtlsConfig", localVarResponse)); } try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + WebhookMtlsConfig>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }) + .handle( + (localVarApiResponse, localVarThrowable) -> + localVarThrowable == null + ? CompletableFuture.completedFuture(localVarApiResponse) + : CompletableFuture + .>failedFuture( + toApiFailure(localVarThrowable))) + .thenCompose(localVarNormalized -> localVarNormalized); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder getWebhookMtlsConfigRequestBuilder(UUID webhookMtlsId) + throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty( + "getWebhookMtlsConfig", "webhookMtlsId", webhookMtlsId.toString()); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/webhooks_settings/mtls/{webhookMtlsId}" + .replace("{webhookMtlsId}", ApiClient.urlEncode(webhookMtlsId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** + * List the uploaded mTLS configurations Lists the workspace's mTLS configurations, newest + * first. Pass `ids` to ask about particular ones instead — useful for resolving the + * `webhookMtlsId` values on a set of webhooks in one call. + * + * @param ids Return only the configurations with these ids, instead of all of them. Repeat the + * parameter for each id. An id belonging to another workspace, or to nothing, is left out + * of the response rather than failing the request. (optional + * @return CompletableFuture<ApiResponse<List<WebhookMtlsConfig>>>, which + * completes exceptionally with an {@link ApiException} if the API call fails + */ + public CompletableFuture>> getWebhookMtlsConfigs( + List ids) { + try { + HttpRequest.Builder localVarRequestBuilder = getWebhookMtlsConfigsRequestBuilder(ids); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + // Ahead of the status check, which fails the future: the lifecycle + // header + // is present on allowed error responses too. + LifecycleWarning.warn( + localVarResponse.headers(), + "getWebhookMtlsConfigs", + localVarResponse.statusCode()); + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "getWebhookMtlsConfigs", localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse>( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + List< + WebhookMtlsConfig>>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }) + .handle( + (localVarApiResponse, localVarThrowable) -> + localVarThrowable == null + ? CompletableFuture.completedFuture(localVarApiResponse) + : CompletableFuture + .>> + failedFuture( + toApiFailure( + localVarThrowable))) + .thenCompose(localVarNormalized -> localVarNormalized); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder getWebhookMtlsConfigsRequestBuilder(List ids) + throws ApiException { + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/webhooks_settings/mtls"; + + List localVarQueryParams = new ArrayList<>(); + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); + String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "ids"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "ids", ids)); + + if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { + StringJoiner queryJoiner = new StringJoiner("&"); + localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); + if (localVarQueryStringJoiner.length() != 0) { + queryJoiner.add(localVarQueryStringJoiner.toString()); + } + localVarRequestBuilder.uri( + URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); + } else { + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + } + + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** + * Get OAuth credentials by id Retrieve an OAuth credential set by its id. The client secret is + * never returned. + * + * @param webhookOauthId The unique identifier of the OAuth credentials (required) + * @return CompletableFuture<ApiResponse<WebhookOauthCredentials>>, which completes + * exceptionally with an {@link ApiException} if the API call fails + */ + public CompletableFuture> getWebhookOauth( + UUID webhookOauthId) { + try { + HttpRequest.Builder localVarRequestBuilder = + getWebhookOauthRequestBuilder(webhookOauthId); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + // Ahead of the status check, which fails the future: the lifecycle + // header + // is present on allowed error responses too. + LifecycleWarning.warn( + localVarResponse.headers(), + "getWebhookOauth", + localVarResponse.statusCode()); + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException("getWebhookOauth", localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -2441,6 +2866,238 @@ private HttpRequest.Builder resendNotificationsByResourceIdRequestBuilder( } return localVarRequestBuilder; } + /** + * Revoke a signing key of OAuth credentials Deletes a key of OAuth credentials at once, for + * when a key may have leaked: it drops out of the published set immediately rather than being + * kept for 30 days. Revoking never causes an outage. Without a `kid`, revokes the key + * Fireblocks is signing with: signing switches to the successor, which your authorization + * server already holds, and a new successor is generated. A cached access token is discarded, + * so the next delivery fetches a new one. With the successor's `kid`, deletes the + * successor and generates a new one; signing is unchanged. With the `kid` of a key + * rotated out by `rotate_key` and still published, deletes that key, and a cached + * access token is discarded as well. Keys left behind by a `signingAlg` change drop + * out of the published set after 5 minutes but are kept for 30 days, and can be revoked by + * `kid` until then. Credentials using `private_key_jwt` always keep a key + * to sign with. On credentials that no longer use `private_key_jwt`, whose keys stay + * published for 30 days after the switch, a `kid` is required: that key is deleted + * and nothing is generated. The last key they hold can be revoked too, leaving an empty set. + * Returns the `kid` of the key revoked, which without a `kid` in the + * request is the key Fireblocks was signing with. The public keys are at the + * `jwksUri` of the credentials: fetch them again, or register the new successor with + * your authorization server. Use `rotate_key` for a routine rotation, which keeps the + * replaced key published for 30 days. **Endpoint Permissions:** Owner, Admin, Non-Signing + * Admin. + * + * @param webhookOauthId The unique identifier of the OAuth credentials (required) + * @param revokeWebhookOauthKeyRequest (optional) + * @param 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. (optional) + * @return CompletableFuture<ApiResponse<RevokeWebhookOauthKeyResponse>>, which + * completes exceptionally with an {@link ApiException} if the API call fails + */ + public CompletableFuture> revokeWebhookOauthKey( + UUID webhookOauthId, + RevokeWebhookOauthKeyRequest revokeWebhookOauthKeyRequest, + String idempotencyKey) { + try { + HttpRequest.Builder localVarRequestBuilder = + revokeWebhookOauthKeyRequestBuilder( + webhookOauthId, revokeWebhookOauthKeyRequest, idempotencyKey); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + // Ahead of the status check, which fails the future: the lifecycle + // header + // is present on allowed error responses too. + LifecycleWarning.warn( + localVarResponse.headers(), + "revokeWebhookOauthKey", + localVarResponse.statusCode()); + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "revokeWebhookOauthKey", localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + RevokeWebhookOauthKeyResponse>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }) + .handle( + (localVarApiResponse, localVarThrowable) -> + localVarThrowable == null + ? CompletableFuture.completedFuture(localVarApiResponse) + : CompletableFuture + .> + failedFuture( + toApiFailure( + localVarThrowable))) + .thenCompose(localVarNormalized -> localVarNormalized); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder revokeWebhookOauthKeyRequestBuilder( + UUID webhookOauthId, + RevokeWebhookOauthKeyRequest revokeWebhookOauthKeyRequest, + String idempotencyKey) + throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty( + "revokeWebhookOauthKey", "webhookOauthId", webhookOauthId.toString()); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/webhooks_settings/oauth/{webhookOauthId}/revoke_key" + .replace( + "{webhookOauthId}", ApiClient.urlEncode(webhookOauthId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + if (idempotencyKey != null) { + localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); + } + localVarRequestBuilder.header("Content-Type", "application/json"); + localVarRequestBuilder.header("Accept", "application/json"); + + try { + byte[] localVarPostBody = + memberVarObjectMapper.writeValueAsBytes(revokeWebhookOauthKeyRequest); + localVarRequestBuilder.method( + "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** + * Rotate the signing key of OAuth credentials Switches the OAuth credentials to their successor + * key and generates a new successor, for credentials using `private_key_jwt`. Takes + * no body. The new signing key is one your authorization server already holds, since the + * successor is published from the start, so the switch causes no outage. The key replaced is no + * longer used to sign, but stays in the published set for 30 days and is then deleted. Rotating + * again within those 30 days is allowed: each key rotated out keeps its own 30 days, and any of + * them can be revoked by `kid`. The credentials can hold at most 5 keys in their + * signing algorithm at once, counting the active key, its successor and those rotated out; at + * that limit, revoke a rotated-out key (the error names the oldest) and rotate again. To stop + * trusting a key at once — after a leak — use `revoke_key` instead. Returns the + * `kid` of the key rotated out. The public keys are at the `jwksUri` of the + * credentials: fetch them again, or register the new successor with your authorization server, + * before the next rotation. **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. + * + * @param webhookOauthId The unique identifier of the OAuth credentials (required) + * @param 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. (optional) + * @return CompletableFuture<ApiResponse<RotateWebhookOauthKeyResponse>>, which + * completes exceptionally with an {@link ApiException} if the API call fails + */ + public CompletableFuture> rotateWebhookOauthKey( + UUID webhookOauthId, String idempotencyKey) { + try { + HttpRequest.Builder localVarRequestBuilder = + rotateWebhookOauthKeyRequestBuilder(webhookOauthId, idempotencyKey); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + // Ahead of the status check, which fails the future: the lifecycle + // header + // is present on allowed error responses too. + LifecycleWarning.warn( + localVarResponse.headers(), + "rotateWebhookOauthKey", + localVarResponse.statusCode()); + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "rotateWebhookOauthKey", localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + RotateWebhookOauthKeyResponse>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }) + .handle( + (localVarApiResponse, localVarThrowable) -> + localVarThrowable == null + ? CompletableFuture.completedFuture(localVarApiResponse) + : CompletableFuture + .> + failedFuture( + toApiFailure( + localVarThrowable))) + .thenCompose(localVarNormalized -> localVarNormalized); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder rotateWebhookOauthKeyRequestBuilder( + UUID webhookOauthId, String idempotencyKey) throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty( + "rotateWebhookOauthKey", "webhookOauthId", webhookOauthId.toString()); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/webhooks_settings/oauth/{webhookOauthId}/rotate_key" + .replace( + "{webhookOauthId}", ApiClient.urlEncode(webhookOauthId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + if (idempotencyKey != null) { + localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); + } + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } /** * Update webhook Update a webhook by its id Endpoint Permission: Owner, Admin, Non-Signing * Admin. @@ -2534,6 +3191,123 @@ private HttpRequest.Builder updateWebhookRequestBuilder( } return localVarRequestBuilder; } + /** + * Update a custom headers set Updates only the fields present in the request; anything omitted + * is left as it is. `headers` is merged name by name rather than replaced: a header + * sent with a value is added or overwritten, a header sent as `null` is deleted, and + * a header you omit is left alone. The change applies to every webhook and OAuth credential set + * that uses the set. A change that would leave the set with no headers is refused with a + * `400` — delete the set instead. Where Fireblocks sends its own + * `Authorization` header, a custom `Authorization` header is not sent: on a + * webhook that has OAuth credentials attached (the OAuth bearer token), and on the token + * request of OAuth credentials that use `client_secret_basic`. **Endpoint + * Permissions:** Owner, Admin, Non-Signing Admin. + * + * @param updateWebhookCustomHeadersRequest (required) + * @param webhookCustomHeadersId The unique identifier of the custom headers set (required) + * @return CompletableFuture<ApiResponse<WebhookCustomHeadersSet>>, which completes + * exceptionally with an {@link ApiException} if the API call fails + */ + public CompletableFuture> updateWebhookCustomHeaders( + UpdateWebhookCustomHeadersRequest updateWebhookCustomHeadersRequest, + UUID webhookCustomHeadersId) { + try { + HttpRequest.Builder localVarRequestBuilder = + updateWebhookCustomHeadersRequestBuilder( + updateWebhookCustomHeadersRequest, webhookCustomHeadersId); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + // Ahead of the status check, which fails the future: the lifecycle + // header + // is present on allowed error responses too. + LifecycleWarning.warn( + localVarResponse.headers(), + "updateWebhookCustomHeaders", + localVarResponse.statusCode()); + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "updateWebhookCustomHeaders", + localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + WebhookCustomHeadersSet>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }) + .handle( + (localVarApiResponse, localVarThrowable) -> + localVarThrowable == null + ? CompletableFuture.completedFuture(localVarApiResponse) + : CompletableFuture + .> + failedFuture( + toApiFailure( + localVarThrowable))) + .thenCompose(localVarNormalized -> localVarNormalized); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder updateWebhookCustomHeadersRequestBuilder( + UpdateWebhookCustomHeadersRequest updateWebhookCustomHeadersRequest, + UUID webhookCustomHeadersId) + throws ApiException { + ValidationUtils.assertParamExists( + "updateWebhookCustomHeaders", + "updateWebhookCustomHeadersRequest", + updateWebhookCustomHeadersRequest); + ValidationUtils.assertParamExistsAndNotEmpty( + "updateWebhookCustomHeaders", + "webhookCustomHeadersId", + webhookCustomHeadersId.toString()); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/webhooks_settings/custom_headers/{webhookCustomHeadersId}" + .replace( + "{webhookCustomHeadersId}", + ApiClient.urlEncode(webhookCustomHeadersId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Content-Type", "application/json"); + localVarRequestBuilder.header("Accept", "application/json"); + + try { + byte[] localVarPostBody = + memberVarObjectMapper.writeValueAsBytes(updateWebhookCustomHeadersRequest); + localVarRequestBuilder.method( + "PATCH", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } /** * Update an mTLS configuration Renames a configuration, replaces its certificate, or both. Only * the fields present in the request are changed; anything omitted is left as it is, and a @@ -2643,17 +3417,20 @@ private HttpRequest.Builder updateWebhookMtlsConfigRequestBuilder( /** * Update OAuth credentials Updates only the fields present in the request; anything omitted is * left as it is. Sending `clientSecret` on its own rotates the secret for every - * webhook using these credentials. `customJwtClaims`, `customBodyParams` - * and `customHeaders` are all merged key by key rather than replaced, the same way a - * webhook's own `customHeaders` behaves: a key sent with a value is added or - * overwritten, a key sent with a `null` value is deleted, and a key you omit is left - * alone. Setting one of the three to `null` as a whole clears that map, which is the - * quick way to empty it without naming every key. There is no ambiguity between the two uses of + * webhook using these credentials. `customJwtClaims` and `customBodyParams` + * are merged key by key rather than replaced: a key sent with a value is added or overwritten, + * a key sent with a `null` value is deleted, and a key you omit is left alone. + * Setting one of the two to `null` as a whole clears that map, which is the quick way + * to empty it without naming every key. There is no ambiguity between the two uses of * `null` — one names an entry to delete, the other names the field. A claim cannot be * set to JSON `null`, though, on this endpoint or on create, because `null` - * is spent on deletion. `webhookMtlsId` is a scalar rather than a map, so - * `null` there does remove it. **Endpoint Permissions:** Owner, Admin, Non-Signing - * Admin. + * is spent on deletion. `webhookMtlsId` and `webhookCustomHeadersId` are + * scalars rather than maps, so `null` there does remove them. + * `webhookCustomHeadersId` points the credentials at a set of extra token request + * headers from `/v1/webhooks_settings/custom_headers`; under + * `client_secret_basic` Fireblocks sends its own `Authorization` header + * with the credentials, so a custom `Authorization` header in the set is not sent. + * **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. * * @param updateWebhookOauthRequest (required) * @param webhookOauthId The unique identifier of the OAuth credentials (required) diff --git a/src/main/java/com/fireblocks/sdk/api/WorkspaceApi.java b/src/main/java/com/fireblocks/sdk/api/WorkspaceApi.java index 381819b5..2e085139 100644 --- a/src/main/java/com/fireblocks/sdk/api/WorkspaceApi.java +++ b/src/main/java/com/fireblocks/sdk/api/WorkspaceApi.java @@ -95,6 +95,83 @@ private String formatExceptionMessage(String operationId, int statusCode, String return operationId + " call failed with: " + statusCode + " - " + body; } + /** + * Freeze Freezes a Workspace so that ALL operations by ANY user are blocked. You should only + * perform this action when the workspace faces imminent risk, such as when you have a security + * breach. To unfreeze a workspace, the workspace Owner must submit a request to Fireblocks + * Support. **NOTE:** - This operation can only be performed by the workspace Admins - Your + * workspace continues to receive incoming transfers during this time. Endpoint Permission: + * Admin, Non-Signing Admin. + * + * @param 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. (optional) + * @return CompletableFuture<ApiResponse<Void>>, which completes exceptionally with + * an {@link ApiException} if the API call fails + */ + public CompletableFuture> freezeWorkspace(String idempotencyKey) { + try { + HttpRequest.Builder localVarRequestBuilder = + freezeWorkspaceRequestBuilder(idempotencyKey); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + // Ahead of the status check, which fails the future: the lifecycle + // header + // is present on allowed error responses too. + LifecycleWarning.warn( + localVarResponse.headers(), + "freezeWorkspace", + localVarResponse.statusCode()); + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException("freezeWorkspace", localVarResponse)); + } + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + null)); + }) + .handle( + (localVarApiResponse, localVarThrowable) -> + localVarThrowable == null + ? CompletableFuture.completedFuture(localVarApiResponse) + : CompletableFuture.>failedFuture( + toApiFailure(localVarThrowable))) + .thenCompose(localVarNormalized -> localVarNormalized); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder freezeWorkspaceRequestBuilder(String idempotencyKey) + throws ApiException { + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/workspace/freeze"; + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + if (idempotencyKey != null) { + localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); + } + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } /** * Get workspace Returns the workspace ID and name for the authenticated user. * diff --git a/src/main/java/com/fireblocks/sdk/api/WorkspaceStatusBetaApi.java b/src/main/java/com/fireblocks/sdk/api/WorkspaceStatusApi.java similarity index 96% rename from src/main/java/com/fireblocks/sdk/api/WorkspaceStatusBetaApi.java rename to src/main/java/com/fireblocks/sdk/api/WorkspaceStatusApi.java index 4bc35f14..62efbe7c 100644 --- a/src/main/java/com/fireblocks/sdk/api/WorkspaceStatusBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/WorkspaceStatusApi.java @@ -36,7 +36,7 @@ @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class WorkspaceStatusBetaApi { +public class WorkspaceStatusApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; private final String memberVarBaseUri; @@ -45,11 +45,11 @@ public class WorkspaceStatusBetaApi { private final Consumer> memberVarResponseInterceptor; private final Consumer> memberVarAsyncResponseInterceptor; - public WorkspaceStatusBetaApi() { + public WorkspaceStatusApi() { this(new ApiClient()); } - public WorkspaceStatusBetaApi(ApiClient apiClient) { + public WorkspaceStatusApi(ApiClient apiClient) { memberVarHttpClient = apiClient.getHttpClient(); memberVarObjectMapper = apiClient.getObjectMapper(); memberVarBaseUri = apiClient.getBaseUri(); @@ -96,9 +96,8 @@ private String formatExceptionMessage(String operationId, int statusCode, String } /** - * Returns current workspace status Returns current workspace status (Beta). **Note**: - This - * endpoint is now in Beta, disabled for general availability at this time. - Please note that - * this endpoint is available only for API keys with Admin/Non Signing Admin permissions. + * Returns current workspace status Returns current workspace status. **Note**: - Please note + * that this endpoint is available only for API keys with Admin/Non Signing Admin permissions. * Endpoint Permission: Admin, Non-Signing Admin. * * @return CompletableFuture<ApiResponse<GetWorkspaceStatusResponse>>, which diff --git a/src/main/java/com/fireblocks/sdk/model/AssetConfig.java b/src/main/java/com/fireblocks/sdk/model/AssetConfig.java index c0d858ad..a81e4d49 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetConfig.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetConfig.java @@ -37,7 +37,7 @@ public class AssetConfig { @jakarta.annotation.Nonnull private Boolean nftTransfer; public static final String JSON_PROPERTY_ASSET_TYPES = "assetTypes"; - @jakarta.annotation.Nullable private List assetTypes; + @jakarta.annotation.Nullable private List assetTypes; public static final String JSON_PROPERTY_OPERATOR = "operator"; @jakarta.annotation.Nullable private PolicyOperator operator; @@ -74,13 +74,12 @@ public void setNftTransfer(@jakarta.annotation.Nonnull Boolean nftTransfer) { this.nftTransfer = nftTransfer; } - public AssetConfig assetTypes( - @jakarta.annotation.Nullable List assetTypes) { + public AssetConfig assetTypes(@jakarta.annotation.Nullable List assetTypes) { this.assetTypes = assetTypes; return this; } - public AssetConfig addAssetTypesItem(AssetTypesConfigInner assetTypesItem) { + public AssetConfig addAssetTypesItem(String assetTypesItem) { if (this.assetTypes == null) { this.assetTypes = new ArrayList<>(); } @@ -89,20 +88,20 @@ public AssetConfig addAssetTypesItem(AssetTypesConfigInner assetTypesItem) { } /** - * List of asset types + * List of asset IDs the rule applies to * * @return assetTypes */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ASSET_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAssetTypes() { + public List getAssetTypes() { return assetTypes; } @JsonProperty(JSON_PROPERTY_ASSET_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssetTypes(@jakarta.annotation.Nullable List assetTypes) { + public void setAssetTypes(@jakarta.annotation.Nullable List assetTypes) { this.assetTypes = assetTypes; } @@ -216,23 +215,17 @@ public String toUrlQueryString(String prefix) { // add `assetTypes` to the URL query string if (getAssetTypes() != null) { for (int i = 0; i < getAssetTypes().size(); i++) { - if (getAssetTypes().get(i) != null) { - joiner.add( - getAssetTypes() - .get(i) - .toUrlQueryString( - String.format( - "%sassetTypes%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } + joiner.add( + String.format( + "%sassetTypes%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", containerPrefix, i, containerSuffix), + ApiClient.urlEncode( + ApiClient.valueToString(getAssetTypes().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/AssetTypesConfigInner.java b/src/main/java/com/fireblocks/sdk/model/AssetTypesConfigInner.java deleted file mode 100644 index 4857b88f..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AssetTypesConfigInner.java +++ /dev/null @@ -1,252 +0,0 @@ -/* - * Fireblocks API - * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: developers@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.JSON; -import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize(using = AssetTypesConfigInner.AssetTypesConfigInnerDeserializer.class) -@JsonSerialize(using = AssetTypesConfigInner.AssetTypesConfigInnerSerializer.class) -public class AssetTypesConfigInner extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(AssetTypesConfigInner.class.getName()); - - public static class AssetTypesConfigInnerSerializer - extends StdSerializer { - public AssetTypesConfigInnerSerializer(Class t) { - super(t); - } - - public AssetTypesConfigInnerSerializer() { - this(null); - } - - @Override - public void serialize( - AssetTypesConfigInner value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class AssetTypesConfigInnerDeserializer - extends StdDeserializer { - public AssetTypesConfigInnerDeserializer() { - this(AssetTypesConfigInner.class); - } - - public AssetTypesConfigInnerDeserializer(Class vc) { - super(vc); - } - - @Override - public AssetTypesConfigInner deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize String - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (String.class.equals(Integer.class) - || String.class.equals(Long.class) - || String.class.equals(Float.class) - || String.class.equals(Double.class) - || String.class.equals(Boolean.class) - || String.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((String.class.equals(Integer.class) - || String.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((String.class.equals(Float.class) - || String.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (String.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (String.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(String.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'String'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'String'", e); - } - - if (match == 1) { - AssetTypesConfigInner ret = new AssetTypesConfigInner(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for AssetTypesConfigInner: %d classes match" - + " result, expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public AssetTypesConfigInner getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "AssetTypesConfigInner cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public AssetTypesConfigInner() { - super("oneOf", Boolean.FALSE); - } - - public AssetTypesConfigInner(String o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("String", String.class); - JSON.registerDescendants(AssetTypesConfigInner.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return AssetTypesConfigInner.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: String - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be - * a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(String.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be String"); - } - - /** - * Get the actual instance, which can be the following: String - * - * @return The actual instance (String) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `String`. If the actual instance is not `String`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `String` - * @throws ClassCastException if the instance is not `String` - */ - public String getString() throws ClassCastException { - return (String) super.getActualInstance(); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - if (getActualInstance() instanceof String) { - if (getActualInstance() != null) { - joiner.add( - String.format( - "%sone_of_0%s=%s", - prefix, - suffix, - ApiClient.urlEncode(String.valueOf(getActualInstance())))); - } - return joiner.toString(); - } - return null; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountCredit.java b/src/main/java/com/fireblocks/sdk/model/ConnectedAccountCredit.java new file mode 100644 index 00000000..6e1dac56 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/ConnectedAccountCredit.java @@ -0,0 +1,193 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fireblocks.sdk.ApiClient; +import java.util.Objects; +import java.util.StringJoiner; + +/** ConnectedAccountCredit */ +@JsonPropertyOrder({ + ConnectedAccountCredit.JSON_PROPERTY_AMOUNT, + ConnectedAccountCredit.JSON_PROPERTY_DENOMINATED_ASSET_ID +}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class ConnectedAccountCredit { + public static final String JSON_PROPERTY_AMOUNT = "amount"; + @jakarta.annotation.Nonnull private String amount; + + public static final String JSON_PROPERTY_DENOMINATED_ASSET_ID = "denominatedAssetId"; + @jakarta.annotation.Nullable private String denominatedAssetId; + + public ConnectedAccountCredit() {} + + @JsonCreator + public ConnectedAccountCredit( + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) String amount) { + this.amount = amount; + } + + public ConnectedAccountCredit amount(@jakarta.annotation.Nonnull String amount) { + this.amount = amount; + return this; + } + + /** + * The credit amount, as a decimal number string. + * + * @return amount + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getAmount() { + return amount; + } + + @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAmount(@jakarta.annotation.Nonnull String amount) { + this.amount = amount; + } + + public ConnectedAccountCredit denominatedAssetId( + @jakarta.annotation.Nullable String denominatedAssetId) { + this.denominatedAssetId = denominatedAssetId; + return this; + } + + /** + * The asset ID the credit amount is denominated in. Omitted when the denomination asset ID is + * unavailable; the amount is still returned, but its denomination is unknown. Do not assume it + * matches the asset used for totalBalance. + * + * @return denominatedAssetId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DENOMINATED_ASSET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDenominatedAssetId() { + return denominatedAssetId; + } + + @JsonProperty(JSON_PROPERTY_DENOMINATED_ASSET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDenominatedAssetId(@jakarta.annotation.Nullable String denominatedAssetId) { + this.denominatedAssetId = denominatedAssetId; + } + + /** Return true if this ConnectedAccountCredit object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConnectedAccountCredit connectedAccountCredit = (ConnectedAccountCredit) o; + return Objects.equals(this.amount, connectedAccountCredit.amount) + && Objects.equals( + this.denominatedAssetId, connectedAccountCredit.denominatedAssetId); + } + + @Override + public int hashCode() { + return Objects.hash(amount, denominatedAssetId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConnectedAccountCredit {\n"); + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" denominatedAssetId: ") + .append(toIndentedString(denominatedAssetId)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `amount` to the URL query string + if (getAmount() != null) { + joiner.add( + String.format( + "%samount%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); + } + + // add `denominatedAssetId` to the URL query string + if (getDenominatedAssetId() != null) { + joiner.add( + String.format( + "%sdenominatedAssetId%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getDenominatedAssetId())))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/ConnectedSingleAccount.java b/src/main/java/com/fireblocks/sdk/model/ConnectedSingleAccount.java index fe5574ec..a7abdade 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConnectedSingleAccount.java +++ b/src/main/java/com/fireblocks/sdk/model/ConnectedSingleAccount.java @@ -23,7 +23,11 @@ import java.util.StringJoiner; /** ConnectedSingleAccount */ -@JsonPropertyOrder({ConnectedSingleAccount.JSON_PROPERTY_SUB_ACCOUNTS_IDS}) +@JsonPropertyOrder({ + ConnectedSingleAccount.JSON_PROPERTY_SUB_ACCOUNTS_IDS, + ConnectedSingleAccount.JSON_PROPERTY_TOTAL_CREDIT, + ConnectedSingleAccount.JSON_PROPERTY_AVAILABLE_CREDIT +}) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") @@ -31,6 +35,12 @@ public class ConnectedSingleAccount { public static final String JSON_PROPERTY_SUB_ACCOUNTS_IDS = "subAccountsIds"; @jakarta.annotation.Nullable private List subAccountsIds; + public static final String JSON_PROPERTY_TOTAL_CREDIT = "totalCredit"; + @jakarta.annotation.Nullable private ConnectedAccountCredit totalCredit; + + public static final String JSON_PROPERTY_AVAILABLE_CREDIT = "availableCredit"; + @jakarta.annotation.Nullable private ConnectedAccountCredit availableCredit; + public ConnectedSingleAccount() {} public ConnectedSingleAccount subAccountsIds( @@ -65,6 +75,61 @@ public void setSubAccountsIds(@jakarta.annotation.Nullable List subAccou this.subAccountsIds = subAccountsIds; } + public ConnectedSingleAccount totalCredit( + @jakarta.annotation.Nullable ConnectedAccountCredit totalCredit) { + this.totalCredit = totalCredit; + return this; + } + + /** + * Total credit line available on the account. Returned only by the single-account endpoint (Get + * connected account); the list endpoint does not retrieve balances and never populates it. + * Omitted when total credit data is unavailable or balance retrieval is skipped. Absence does + * not imply zero credit. + * + * @return totalCredit + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TOTAL_CREDIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ConnectedAccountCredit getTotalCredit() { + return totalCredit; + } + + @JsonProperty(JSON_PROPERTY_TOTAL_CREDIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTotalCredit(@jakarta.annotation.Nullable ConnectedAccountCredit totalCredit) { + this.totalCredit = totalCredit; + } + + public ConnectedSingleAccount availableCredit( + @jakarta.annotation.Nullable ConnectedAccountCredit availableCredit) { + this.availableCredit = availableCredit; + return this; + } + + /** + * Remaining unused credit available on the account. Returned only by the single-account + * endpoint (Get connected account); the list endpoint does not retrieve balances and never + * populates it. Omitted when available credit data is unavailable or balance retrieval is + * skipped. Absence does not imply zero credit. + * + * @return availableCredit + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AVAILABLE_CREDIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ConnectedAccountCredit getAvailableCredit() { + return availableCredit; + } + + @JsonProperty(JSON_PROPERTY_AVAILABLE_CREDIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAvailableCredit( + @jakarta.annotation.Nullable ConnectedAccountCredit availableCredit) { + this.availableCredit = availableCredit; + } + /** Return true if this ConnectedSingleAccount object is equal to o. */ @Override public boolean equals(Object o) { @@ -75,12 +140,14 @@ public boolean equals(Object o) { return false; } ConnectedSingleAccount connectedSingleAccount = (ConnectedSingleAccount) o; - return Objects.equals(this.subAccountsIds, connectedSingleAccount.subAccountsIds); + return Objects.equals(this.subAccountsIds, connectedSingleAccount.subAccountsIds) + && Objects.equals(this.totalCredit, connectedSingleAccount.totalCredit) + && Objects.equals(this.availableCredit, connectedSingleAccount.availableCredit); } @Override public int hashCode() { - return Objects.hash(subAccountsIds); + return Objects.hash(subAccountsIds, totalCredit, availableCredit); } @Override @@ -88,6 +155,8 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConnectedSingleAccount {\n"); sb.append(" subAccountsIds: ").append(toIndentedString(subAccountsIds)).append("\n"); + sb.append(" totalCredit: ").append(toIndentedString(totalCredit)).append("\n"); + sb.append(" availableCredit: ").append(toIndentedString(availableCredit)).append("\n"); sb.append("}"); return sb.toString(); } @@ -152,6 +221,16 @@ public String toUrlQueryString(String prefix) { } } + // add `totalCredit` to the URL query string + if (getTotalCredit() != null) { + joiner.add(getTotalCredit().toUrlQueryString(prefix + "totalCredit" + suffix)); + } + + // add `availableCredit` to the URL query string + if (getAvailableCredit() != null) { + joiner.add(getAvailableCredit().toUrlQueryString(prefix + "availableCredit" + suffix)); + } + return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/ConnectedSingleAccountResponse.java b/src/main/java/com/fireblocks/sdk/model/ConnectedSingleAccountResponse.java index ce4efb87..6154dc6f 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConnectedSingleAccountResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ConnectedSingleAccountResponse.java @@ -35,7 +35,9 @@ ConnectedSingleAccountResponse.JSON_PROPERTY_API_KEY, ConnectedSingleAccountResponse.JSON_PROPERTY_PROVIDER_ACCOUNT_NAME, ConnectedSingleAccountResponse.JSON_PROPERTY_ACCOUNT_TYPE, - ConnectedSingleAccountResponse.JSON_PROPERTY_SUB_ACCOUNTS_IDS + ConnectedSingleAccountResponse.JSON_PROPERTY_SUB_ACCOUNTS_IDS, + ConnectedSingleAccountResponse.JSON_PROPERTY_TOTAL_CREDIT, + ConnectedSingleAccountResponse.JSON_PROPERTY_AVAILABLE_CREDIT }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -74,6 +76,12 @@ public class ConnectedSingleAccountResponse { public static final String JSON_PROPERTY_SUB_ACCOUNTS_IDS = "subAccountsIds"; @jakarta.annotation.Nullable private List subAccountsIds; + public static final String JSON_PROPERTY_TOTAL_CREDIT = "totalCredit"; + @jakarta.annotation.Nullable private ConnectedAccountCredit totalCredit; + + public static final String JSON_PROPERTY_AVAILABLE_CREDIT = "availableCredit"; + @jakarta.annotation.Nullable private ConnectedAccountCredit availableCredit; + public ConnectedSingleAccountResponse() {} @JsonCreator @@ -367,6 +375,61 @@ public void setSubAccountsIds(@jakarta.annotation.Nullable List subAccou this.subAccountsIds = subAccountsIds; } + public ConnectedSingleAccountResponse totalCredit( + @jakarta.annotation.Nullable ConnectedAccountCredit totalCredit) { + this.totalCredit = totalCredit; + return this; + } + + /** + * Total credit line available on the account. Returned only by the single-account endpoint (Get + * connected account); the list endpoint does not retrieve balances and never populates it. + * Omitted when total credit data is unavailable or balance retrieval is skipped. Absence does + * not imply zero credit. + * + * @return totalCredit + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TOTAL_CREDIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ConnectedAccountCredit getTotalCredit() { + return totalCredit; + } + + @JsonProperty(JSON_PROPERTY_TOTAL_CREDIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTotalCredit(@jakarta.annotation.Nullable ConnectedAccountCredit totalCredit) { + this.totalCredit = totalCredit; + } + + public ConnectedSingleAccountResponse availableCredit( + @jakarta.annotation.Nullable ConnectedAccountCredit availableCredit) { + this.availableCredit = availableCredit; + return this; + } + + /** + * Remaining unused credit available on the account. Returned only by the single-account + * endpoint (Get connected account); the list endpoint does not retrieve balances and never + * populates it. Omitted when available credit data is unavailable or balance retrieval is + * skipped. Absence does not imply zero credit. + * + * @return availableCredit + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AVAILABLE_CREDIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ConnectedAccountCredit getAvailableCredit() { + return availableCredit; + } + + @JsonProperty(JSON_PROPERTY_AVAILABLE_CREDIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAvailableCredit( + @jakarta.annotation.Nullable ConnectedAccountCredit availableCredit) { + this.availableCredit = availableCredit; + } + /** Return true if this ConnectedSingleAccountResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -391,7 +454,10 @@ public boolean equals(Object o) { connectedSingleAccountResponse.providerAccountName) && Objects.equals(this.accountType, connectedSingleAccountResponse.accountType) && Objects.equals( - this.subAccountsIds, connectedSingleAccountResponse.subAccountsIds); + this.subAccountsIds, connectedSingleAccountResponse.subAccountsIds) + && Objects.equals(this.totalCredit, connectedSingleAccountResponse.totalCredit) + && Objects.equals( + this.availableCredit, connectedSingleAccountResponse.availableCredit); } @Override @@ -407,7 +473,9 @@ public int hashCode() { apiKey, providerAccountName, accountType, - subAccountsIds); + subAccountsIds, + totalCredit, + availableCredit); } @Override @@ -427,6 +495,8 @@ public String toString() { .append("\n"); sb.append(" accountType: ").append(toIndentedString(accountType)).append("\n"); sb.append(" subAccountsIds: ").append(toIndentedString(subAccountsIds)).append("\n"); + sb.append(" totalCredit: ").append(toIndentedString(totalCredit)).append("\n"); + sb.append(" availableCredit: ").append(toIndentedString(availableCredit)).append("\n"); sb.append("}"); return sb.toString(); } @@ -580,6 +650,16 @@ public String toUrlQueryString(String prefix) { } } + // add `totalCredit` to the URL query string + if (getTotalCredit() != null) { + joiner.add(getTotalCredit().toUrlQueryString(prefix + "totalCredit" + suffix)); + } + + // add `availableCredit` to the URL query string + if (getAvailableCredit() != null) { + joiner.add(getAvailableCredit().toUrlQueryString(prefix + "availableCredit" + suffix)); + } + return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/CreateOmnibusAddressesRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateOmnibusAddressesRequest.java new file mode 100644 index 00000000..3571f212 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/CreateOmnibusAddressesRequest.java @@ -0,0 +1,207 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fireblocks.sdk.ApiClient; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.StringJoiner; + +/** CreateOmnibusAddressesRequest */ +@JsonPropertyOrder({ + CreateOmnibusAddressesRequest.JSON_PROPERTY_COUNT, + CreateOmnibusAddressesRequest.JSON_PROPERTY_DESCRIPTIONS +}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class CreateOmnibusAddressesRequest { + public static final String JSON_PROPERTY_COUNT = "count"; + @jakarta.annotation.Nonnull private Integer count; + + public static final String JSON_PROPERTY_DESCRIPTIONS = "descriptions"; + @jakarta.annotation.Nullable private List descriptions; + + public CreateOmnibusAddressesRequest() {} + + @JsonCreator + public CreateOmnibusAddressesRequest( + @JsonProperty(value = JSON_PROPERTY_COUNT, required = true) Integer count) { + this.count = count; + } + + public CreateOmnibusAddressesRequest count(@jakarta.annotation.Nonnull Integer count) { + this.count = count; + return this; + } + + /** + * The number of deposit addresses to create minimum: 1 maximum: 10000 + * + * @return count + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_COUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getCount() { + return count; + } + + @JsonProperty(JSON_PROPERTY_COUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCount(@jakarta.annotation.Nonnull Integer count) { + this.count = count; + } + + public CreateOmnibusAddressesRequest descriptions( + @jakarta.annotation.Nullable List descriptions) { + this.descriptions = descriptions; + return this; + } + + public CreateOmnibusAddressesRequest addDescriptionsItem(String descriptionsItem) { + if (this.descriptions == null) { + this.descriptions = new ArrayList<>(); + } + this.descriptions.add(descriptionsItem); + return this; + } + + /** + * Descriptions of the newly created addresses, in order. Must match `count` when + * provided. Each entry is trimmed; an empty string leaves that address without a description. + * + * @return descriptions + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DESCRIPTIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getDescriptions() { + return descriptions; + } + + @JsonProperty(JSON_PROPERTY_DESCRIPTIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDescriptions(@jakarta.annotation.Nullable List descriptions) { + this.descriptions = descriptions; + } + + /** Return true if this CreateOmnibusAddressesRequest object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateOmnibusAddressesRequest createOmnibusAddressesRequest = + (CreateOmnibusAddressesRequest) o; + return Objects.equals(this.count, createOmnibusAddressesRequest.count) + && Objects.equals(this.descriptions, createOmnibusAddressesRequest.descriptions); + } + + @Override + public int hashCode() { + return Objects.hash(count, descriptions); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateOmnibusAddressesRequest {\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" descriptions: ").append(toIndentedString(descriptions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `count` to the URL query string + if (getCount() != null) { + joiner.add( + String.format( + "%scount%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getCount())))); + } + + // add `descriptions` to the URL query string + if (getDescriptions() != null) { + for (int i = 0; i < getDescriptions().size(); i++) { + joiner.add( + String.format( + "%sdescriptions%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", containerPrefix, i, containerSuffix), + ApiClient.urlEncode( + ApiClient.valueToString(getDescriptions().get(i))))); + } + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/CreateOmnibusAddressesResponse.java b/src/main/java/com/fireblocks/sdk/model/CreateOmnibusAddressesResponse.java new file mode 100644 index 00000000..e20f9c9b --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/CreateOmnibusAddressesResponse.java @@ -0,0 +1,170 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.StringJoiner; + +/** CreateOmnibusAddressesResponse */ +@JsonPropertyOrder({CreateOmnibusAddressesResponse.JSON_PROPERTY_DATA}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class CreateOmnibusAddressesResponse { + public static final String JSON_PROPERTY_DATA = "data"; + @jakarta.annotation.Nonnull private List data; + + public CreateOmnibusAddressesResponse() {} + + @JsonCreator + public CreateOmnibusAddressesResponse( + @JsonProperty(value = JSON_PROPERTY_DATA, required = true) List data) { + this.data = data; + } + + public CreateOmnibusAddressesResponse data( + @jakarta.annotation.Nonnull List data) { + this.data = data; + return this; + } + + public CreateOmnibusAddressesResponse addDataItem(OmnibusAddress dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * The created deposit addresses + * + * @return data + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getData() { + return data; + } + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setData(@jakarta.annotation.Nonnull List data) { + this.data = data; + } + + /** Return true if this CreateOmnibusAddressesResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateOmnibusAddressesResponse createOmnibusAddressesResponse = + (CreateOmnibusAddressesResponse) o; + return Objects.equals(this.data, createOmnibusAddressesResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateOmnibusAddressesResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `data` to the URL query string + if (getData() != null) { + for (int i = 0; i < getData().size(); i++) { + if (getData().get(i) != null) { + joiner.add( + getData() + .get(i) + .toUrlQueryString( + String.format( + "%sdata%s%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", + containerPrefix, + i, + containerSuffix)))); + } + } + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/CreateTempoTransferRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateTempoTransferRequest.java index 7b35d6eb..a2c35479 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateTempoTransferRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateTempoTransferRequest.java @@ -428,7 +428,7 @@ public CreateTempoTransferRequest travelRuleMessage( } /** - * Beta. An opaque travel-rule payload. + * Early availability. An opaque travel-rule payload. * * @return travelRuleMessage */ @@ -452,7 +452,8 @@ public CreateTempoTransferRequest travelRuleMessageId( } /** - * Beta. An identifier of a TravelRule message, already sent to the TravelRule provider. + * Early availability. An identifier of a TravelRule message, already sent to the TravelRule + * provider. * * @return travelRuleMessageId */ @@ -606,7 +607,7 @@ public CreateTempoTransferRequest failOnLowFee( } /** - * Beta. If true, fail the transaction rather than sending it with a low fee. + * Early availability. If true, fail the transaction rather than sending it with a low fee. * * @return failOnLowFee */ @@ -653,7 +654,7 @@ public CreateTempoTransferRequest replaceTxByHash( } /** - * Beta. The hash of the EVM transaction to replace (RBF). + * Early availability. The hash of the EVM transaction to replace (RBF). * * @return replaceTxByHash */ diff --git a/src/main/java/com/fireblocks/sdk/model/CreateWebhookCustomHeadersRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateWebhookCustomHeadersRequest.java new file mode 100644 index 00000000..74ad9ed2 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/CreateWebhookCustomHeadersRequest.java @@ -0,0 +1,236 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fireblocks.sdk.ApiClient; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.StringJoiner; + +/** + * A new reusable set of custom HTTP headers. Attach it to a webhook by passing the returned id as + * that webhook's `webhookCustomHeadersId`, or to OAuth credentials as theirs. Several + * webhooks and OAuth credentials may share one set, so changing it covers all of them at once. + */ +@JsonPropertyOrder({ + CreateWebhookCustomHeadersRequest.JSON_PROPERTY_NAME, + CreateWebhookCustomHeadersRequest.JSON_PROPERTY_HEADERS +}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class CreateWebhookCustomHeadersRequest { + public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; + + public static final String JSON_PROPERTY_HEADERS = "headers"; + @jakarta.annotation.Nonnull private Map headers; + + public CreateWebhookCustomHeadersRequest() {} + + @JsonCreator + public CreateWebhookCustomHeadersRequest( + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, + @JsonProperty(value = JSON_PROPERTY_HEADERS, required = true) + Map headers) { + this.name = name; + this.headers = headers; + } + + public CreateWebhookCustomHeadersRequest name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * A label for this set, shown when listing them. + * + * @return name + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { + return name; + } + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + public CreateWebhookCustomHeadersRequest headers( + @jakarta.annotation.Nonnull Map headers) { + this.headers = headers; + return this; + } + + public CreateWebhookCustomHeadersRequest putHeadersItem(String key, Object headersItem) { + if (this.headers == null) { + this.headers = new HashMap<>(); + } + this.headers.put(key, headersItem); + return this; + } + + /** + * The headers, as a map of header name to value. At least one header is required. Values are + * write-only; responses return only the header names, lowercased. A value is a string, sent as + * one header line, or an array of strings, sent as one header line per element under the same + * name. `Cookie` and `Authorization` accept only a string. An empty array + * is rejected — leave the name out instead. Arrays are accepted whether the set is sent with a + * webhook's notifications or on an OAuth token request, which sends one header line per + * element in the same way. At most 10 headers, counted by name — an array value counts once, + * however many lines it sends. Names must be valid HTTP header tokens, are case-insensitive, + * and are at most 128 characters. A value may be empty and has no length limit of its own; the + * whole object must be under 16 KB when serialized as UTF-8. A value that large may still be + * refused by your own endpoint, since web servers commonly cap the whole request header block + * at around 8 KB. Reserved names: `Host`, `Content-Type`, + * `Content-Length`, `Transfer-Encoding`, `Connection`, + * `User-Agent`, `Accept`, `Accept-Encoding`, + * `Fireblocks-Signature` and `Fireblocks-Webhook-Signature` are set by + * Fireblocks and can never be used. The same list applies whether the set is sent with a + * webhook's notifications or on an OAuth token request. `Authorization` may be + * set. When Fireblocks sends its own `Authorization` header, a custom one is not + * sent: an OAuth bearer token on a webhook that has `webhookOauthId` set, and the + * client credentials on the token request of OAuth credentials that use + * `client_secret_basic`. With no OAuth credentials on a webhook, or with + * `client_secret_post`, `client_secret_jwt` or `private_key_jwt` + * on the token request, it is sent as configured. + * + * @return headers + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_HEADERS) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) + public Map getHeaders() { + return headers; + } + + @JsonProperty(JSON_PROPERTY_HEADERS) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) + public void setHeaders(@jakarta.annotation.Nonnull Map headers) { + this.headers = headers; + } + + /** Return true if this CreateWebhookCustomHeadersRequest object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateWebhookCustomHeadersRequest createWebhookCustomHeadersRequest = + (CreateWebhookCustomHeadersRequest) o; + return Objects.equals(this.name, createWebhookCustomHeadersRequest.name) + && Objects.equals(this.headers, createWebhookCustomHeadersRequest.headers); + } + + @Override + public int hashCode() { + return Objects.hash(name, headers); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateWebhookCustomHeadersRequest {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" headers: ").append(toIndentedString(headers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `name` to the URL query string + if (getName() != null) { + joiner.add( + String.format( + "%sname%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getName())))); + } + + // add `headers` to the URL query string + if (getHeaders() != null) { + for (String _key : getHeaders().keySet()) { + joiner.add( + String.format( + "%sheaders%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", containerPrefix, _key, containerSuffix), + getHeaders().get(_key), + ApiClient.urlEncode( + ApiClient.valueToString(getHeaders().get(_key))))); + } + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/CreateWebhookOauthRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateWebhookOauthRequest.java index ab9be421..1748a493 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateWebhookOauthRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateWebhookOauthRequest.java @@ -27,7 +27,9 @@ /** * A new reusable OAuth 2.0 client credential set. Attach it to a webhook by passing the returned id * as that webhook's `webhookOauthId`. Several webhooks may share one credential set, - * so rotating its client secret covers all of them at once. + * so rotating its client secret covers all of them at once. With `private_key_jwt` there + * is no client secret: Fireblocks generates the key pairs itself and publishes their public halves + * at the `jwksUri` it returns. */ @JsonPropertyOrder({ CreateWebhookOauthRequest.JSON_PROPERTY_NAME, @@ -35,9 +37,10 @@ CreateWebhookOauthRequest.JSON_PROPERTY_CLIENT_SECRET, CreateWebhookOauthRequest.JSON_PROPERTY_URL, CreateWebhookOauthRequest.JSON_PROPERTY_AUTH_METHOD, + CreateWebhookOauthRequest.JSON_PROPERTY_SIGNING_ALG, CreateWebhookOauthRequest.JSON_PROPERTY_CUSTOM_JWT_CLAIMS, CreateWebhookOauthRequest.JSON_PROPERTY_CUSTOM_BODY_PARAMS, - CreateWebhookOauthRequest.JSON_PROPERTY_CUSTOM_HEADERS, + CreateWebhookOauthRequest.JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID, CreateWebhookOauthRequest.JSON_PROPERTY_WEBHOOK_MTLS_ID }) @jakarta.annotation.Generated( @@ -51,7 +54,7 @@ public class CreateWebhookOauthRequest { @jakarta.annotation.Nonnull private String clientId; public static final String JSON_PROPERTY_CLIENT_SECRET = "clientSecret"; - @jakarta.annotation.Nonnull private String clientSecret; + @jakarta.annotation.Nullable private String clientSecret; public static final String JSON_PROPERTY_URL = "url"; @jakarta.annotation.Nonnull private String url; @@ -59,14 +62,17 @@ public class CreateWebhookOauthRequest { public static final String JSON_PROPERTY_AUTH_METHOD = "authMethod"; @jakarta.annotation.Nullable private String authMethod = "client_secret_basic"; + public static final String JSON_PROPERTY_SIGNING_ALG = "signingAlg"; + @jakarta.annotation.Nullable private WebhookOauthSigningAlg signingAlg; + public static final String JSON_PROPERTY_CUSTOM_JWT_CLAIMS = "customJwtClaims"; @jakarta.annotation.Nullable private Map customJwtClaims; public static final String JSON_PROPERTY_CUSTOM_BODY_PARAMS = "customBodyParams"; @jakarta.annotation.Nullable private Map customBodyParams; - public static final String JSON_PROPERTY_CUSTOM_HEADERS = "customHeaders"; - @jakarta.annotation.Nullable private Map customHeaders; + public static final String JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID = "webhookCustomHeadersId"; + @jakarta.annotation.Nullable private UUID webhookCustomHeadersId; public static final String JSON_PROPERTY_WEBHOOK_MTLS_ID = "webhookMtlsId"; @jakarta.annotation.Nullable private UUID webhookMtlsId; @@ -77,11 +83,9 @@ public CreateWebhookOauthRequest() {} public CreateWebhookOauthRequest( @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) String clientId, - @JsonProperty(value = JSON_PROPERTY_CLIENT_SECRET, required = true) String clientSecret, @JsonProperty(value = JSON_PROPERTY_URL, required = true) String url) { this.name = name; this.clientId = clientId; - this.clientSecret = clientSecret; this.url = url; } @@ -131,27 +135,32 @@ public void setClientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; } - public CreateWebhookOauthRequest clientSecret(@jakarta.annotation.Nonnull String clientSecret) { + public CreateWebhookOauthRequest clientSecret( + @jakarta.annotation.Nullable String clientSecret) { this.clientSecret = clientSecret; return this; } /** * OAuth client secret. Write-only — never returned. Limited to 480 bytes UTF-8 encoded. With - * `client_secret_jwt` it signs the assertion rather than being sent. + * `client_secret_jwt` it signs the assertion rather than being sent. Required with + * `client_secret_basic`, `client_secret_post` and + * `client_secret_jwt` (`400` if missing). Must not be sent with + * `private_key_jwt`, which uses a Fireblocks-held key instead (`400` + * otherwise). * * @return clientSecret */ - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT_SECRET) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientSecret() { return clientSecret; } @JsonProperty(JSON_PROPERTY_CLIENT_SECRET) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClientSecret(@jakarta.annotation.Nonnull String clientSecret) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setClientSecret(@jakarta.annotation.Nullable String clientSecret) { this.clientSecret = clientSecret; } @@ -188,7 +197,12 @@ public CreateWebhookOauthRequest authMethod(@jakarta.annotation.Nullable String * How the client credentials reach the token endpoint. `client_secret_basic` uses an * HTTP Basic header, `client_secret_post` uses form fields in the body, and * `client_secret_jwt` sends a JWT assertion signed with the secret, so the secret - * itself is never transmitted. Defaults to `client_secret_basic`. + * itself is never transmitted. `private_key_jwt` sends a JWT assertion signed with a + * private key Fireblocks generates and holds for these credentials, so there is no shared + * secret at all; your authorization server verifies it with the public keys at the + * `jwksUri` returned with the credentials. Creating credentials with + * `private_key_jwt` generates two key pairs, the signing key and its successor. + * Defaults to `client_secret_basic`. * * @return authMethod */ @@ -205,6 +219,34 @@ public void setAuthMethod(@jakarta.annotation.Nullable String authMethod) { this.authMethod = authMethod; } + public CreateWebhookOauthRequest signingAlg( + @jakarta.annotation.Nullable WebhookOauthSigningAlg signingAlg) { + this.signingAlg = signingAlg; + return this; + } + + /** + * Algorithm of the key pairs generated for `private_key_jwt`, and of the assertions + * signed with them. Defaults to `RS256` when `authMethod` is + * `private_key_jwt`, where `null` is refused (`400`); omit it + * instead. Only valid with `private_key_jwt`: with any other method a value is a + * `400`, and `null`, meaning no algorithm, is accepted. + * + * @return signingAlg + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SIGNING_ALG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public WebhookOauthSigningAlg getSigningAlg() { + return signingAlg; + } + + @JsonProperty(JSON_PROPERTY_SIGNING_ALG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSigningAlg(@jakarta.annotation.Nullable WebhookOauthSigningAlg signingAlg) { + this.signingAlg = signingAlg; + } + public CreateWebhookOauthRequest customJwtClaims( @jakarta.annotation.Nullable Map customJwtClaims) { this.customJwtClaims = customJwtClaims; @@ -222,14 +264,14 @@ public CreateWebhookOauthRequest putCustomJwtClaimsItem( /** * Extra claims for the JWT assertion. Used only when `authMethod` is - * `client_secret_jwt`. The usual one to set is `aud`, which defaults to the - * token endpoint URL; some authorization servers expect their own identifier instead. A value - * may be any JSON type except `null` — `null` is reserved for deleting a - * claim on update. `iss`, `sub`, `jti`, `iat` and - * `exp` are set by Fireblocks and cannot be overridden. Names are case-sensitive. The - * whole object must be under 16 KB. Values are write-only; responses return only the claim - * names. On update this merges claim by claim rather than replacing — see - * `WebhookOauthCustomJwtClaimsUpdate`. + * `client_secret_jwt` or `private_key_jwt`. The usual one to set is + * `aud`, which defaults to the token endpoint URL; some authorization servers expect + * their own identifier instead. A value may be any JSON type except `null` — + * `null` is reserved for deleting a claim on update. `iss`, + * `sub`, `jti`, `iat` and `exp` are set by Fireblocks + * and cannot be overridden. Names are case-sensitive. The whole object must be under 16 KB. + * Values are write-only; responses return only the claim names. On update this merges claim by + * claim rather than replacing — see `WebhookOauthCustomJwtClaimsUpdate`. * * @return customJwtClaims */ @@ -288,48 +330,44 @@ public void setCustomBodyParams( this.customBodyParams = customBodyParams; } - public CreateWebhookOauthRequest customHeaders( - @jakarta.annotation.Nullable Map customHeaders) { - this.customHeaders = customHeaders; - return this; - } - - public CreateWebhookOauthRequest putCustomHeadersItem(String key, String customHeadersItem) { - if (this.customHeaders == null) { - this.customHeaders = new HashMap<>(); - } - this.customHeaders.put(key, customHeadersItem); + public CreateWebhookOauthRequest webhookCustomHeadersId( + @jakarta.annotation.Nullable UUID webhookCustomHeadersId) { + this.webhookCustomHeadersId = webhookCustomHeadersId; return this; } /** - * Extra HTTP headers for **the token request to your authorization server** — not for the - * webhook delivery, which has its own separate `customHeaders`. A gateway API key is - * the usual case. Values must be strings; an empty string is allowed. Names are matched - * case-insensitively, so two names differing only in case are a duplicate. Names are stored and - * returned lowercased, so `X-Api-Key` comes back as `x-api-key`. - * `Content-Type`, `Content-Length` and `Host` are set by - * Fireblocks and cannot be overridden. `Authorization` can be set with - * `client_secret_post` or `client_secret_jwt`, which send the credentials - * in the body — useful when your token endpoint sits behind a gateway. It is rejected with - * `client_secret_basic`, which sends the credentials in that header. Values have no - * length limit of their own; the whole object must be under 16 KB when serialized as UTF-8. - * Values are write-only; responses return only the header names. On update this merges name by - * name rather than replacing — see `WebhookOauthCustomHeadersUpdate`. + * The id of the set of custom HTTP headers added to **the token request to your authorization + * server** — not to the webhook delivery — from + * `/v1/webhooks_settings/custom_headers`. A gateway API key is the usual case. The + * set can be shared with webhooks and with other credentials, and the same rules apply as for a + * webhook delivery. A value is a string, or an array of strings sent as one header line per + * element (`Cookie` and `Authorization` accept only a string), the reserved + * header names — the same as for a webhook delivery, including `Host`, + * `Content-Type` and `Content-Length` — are set by Fireblocks and cannot be + * overridden, and `Authorization` is sent with `client_secret_post` or + * `client_secret_jwt`, which send the credentials in the body — useful when your + * token endpoint sits behind a gateway — but is not sent with `client_secret_basic`, + * where Fireblocks sends its own `Authorization` header with the credentials. + * Replaces the inline `customHeaders` field, which is now refused with a + * `400`, so use `webhookCustomHeadersId`. Omit, or send `null`, + * for a token request with no extra headers. An unknown id, or one belonging to another + * workspace, is a `404`. * - * @return customHeaders + * @return webhookCustomHeadersId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_HEADERS) + @JsonProperty(JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getCustomHeaders() { - return customHeaders; + public UUID getWebhookCustomHeadersId() { + return webhookCustomHeadersId; } - @JsonProperty(JSON_PROPERTY_CUSTOM_HEADERS) + @JsonProperty(JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomHeaders(@jakarta.annotation.Nullable Map customHeaders) { - this.customHeaders = customHeaders; + public void setWebhookCustomHeadersId( + @jakarta.annotation.Nullable UUID webhookCustomHeadersId) { + this.webhookCustomHeadersId = webhookCustomHeadersId; } public CreateWebhookOauthRequest webhookMtlsId( @@ -343,9 +381,8 @@ public CreateWebhookOauthRequest webhookMtlsId( * `/v1/webhooks_settings/mtls`. It can be the same configuration a webhook uses, so * one certificate, signed from `GET /v1/webhooks_settings/mtls_csr`, serves both the * token endpoint and the receiver. Omit, or send `null`, for a token request without - * mTLS. Requires the mTLS feature to be enabled for the workspace (`403` otherwise), - * a configuration of this workspace (`404` otherwise), and one linked to a private - * key (`400` otherwise). + * mTLS. Requires a configuration of this workspace (`404` otherwise) that is linked + * to a private key (`400` otherwise). * * @return webhookMtlsId */ @@ -377,9 +414,12 @@ public boolean equals(Object o) { && Objects.equals(this.clientSecret, createWebhookOauthRequest.clientSecret) && Objects.equals(this.url, createWebhookOauthRequest.url) && Objects.equals(this.authMethod, createWebhookOauthRequest.authMethod) + && Objects.equals(this.signingAlg, createWebhookOauthRequest.signingAlg) && Objects.equals(this.customJwtClaims, createWebhookOauthRequest.customJwtClaims) && Objects.equals(this.customBodyParams, createWebhookOauthRequest.customBodyParams) - && Objects.equals(this.customHeaders, createWebhookOauthRequest.customHeaders) + && Objects.equals( + this.webhookCustomHeadersId, + createWebhookOauthRequest.webhookCustomHeadersId) && Objects.equals(this.webhookMtlsId, createWebhookOauthRequest.webhookMtlsId); } @@ -391,9 +431,10 @@ public int hashCode() { clientSecret, url, authMethod, + signingAlg, customJwtClaims, customBodyParams, - customHeaders, + webhookCustomHeadersId, webhookMtlsId); } @@ -406,9 +447,12 @@ public String toString() { sb.append(" clientSecret: ").append(toIndentedString(clientSecret)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" authMethod: ").append(toIndentedString(authMethod)).append("\n"); + sb.append(" signingAlg: ").append(toIndentedString(signingAlg)).append("\n"); sb.append(" customJwtClaims: ").append(toIndentedString(customJwtClaims)).append("\n"); sb.append(" customBodyParams: ").append(toIndentedString(customBodyParams)).append("\n"); - sb.append(" customHeaders: ").append(toIndentedString(customHeaders)).append("\n"); + sb.append(" webhookCustomHeadersId: ") + .append(toIndentedString(webhookCustomHeadersId)) + .append("\n"); sb.append(" webhookMtlsId: ").append(toIndentedString(webhookMtlsId)).append("\n"); sb.append("}"); return sb.toString(); @@ -507,6 +551,16 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getAuthMethod())))); } + // add `signingAlg` to the URL query string + if (getSigningAlg() != null) { + joiner.add( + String.format( + "%ssigningAlg%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getSigningAlg())))); + } + // add `customJwtClaims` to the URL query string if (getCustomJwtClaims() != null) { for (String _key : getCustomJwtClaims().keySet()) { @@ -543,22 +597,15 @@ public String toUrlQueryString(String prefix) { } } - // add `customHeaders` to the URL query string - if (getCustomHeaders() != null) { - for (String _key : getCustomHeaders().keySet()) { - joiner.add( - String.format( - "%scustomHeaders%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, _key, containerSuffix), - getCustomHeaders().get(_key), - ApiClient.urlEncode( - ApiClient.valueToString(getCustomHeaders().get(_key))))); - } + // add `webhookCustomHeadersId` to the URL query string + if (getWebhookCustomHeadersId() != null) { + joiner.add( + String.format( + "%swebhookCustomHeadersId%s=%s", + prefix, + suffix, + ApiClient.urlEncode( + ApiClient.valueToString(getWebhookCustomHeadersId())))); } // add `webhookMtlsId` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/CreateWebhookRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateWebhookRequest.java index 05222d1d..b0419720 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateWebhookRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateWebhookRequest.java @@ -19,9 +19,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; -import java.util.HashMap; import java.util.List; -import java.util.Map; import java.util.Objects; import java.util.StringJoiner; import java.util.UUID; @@ -34,7 +32,7 @@ CreateWebhookRequest.JSON_PROPERTY_ENABLED, CreateWebhookRequest.JSON_PROPERTY_WEBHOOK_MTLS_ID, CreateWebhookRequest.JSON_PROPERTY_WEBHOOK_OAUTH_ID, - CreateWebhookRequest.JSON_PROPERTY_CUSTOM_HEADERS + CreateWebhookRequest.JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -58,8 +56,8 @@ public class CreateWebhookRequest { public static final String JSON_PROPERTY_WEBHOOK_OAUTH_ID = "webhookOauthId"; @jakarta.annotation.Nullable private UUID webhookOauthId; - public static final String JSON_PROPERTY_CUSTOM_HEADERS = "customHeaders"; - @jakarta.annotation.Nullable private Map customHeaders; + public static final String JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID = "webhookCustomHeadersId"; + @jakarta.annotation.Nullable private UUID webhookCustomHeadersId; public CreateWebhookRequest() {} @@ -181,7 +179,8 @@ public CreateWebhookRequest webhookMtlsId(@jakarta.annotation.Nullable UUID webh * The id of the mTLS configuration this webhook presents when delivering, from * `/v1/webhooks_settings/mtls`. Several webhooks may share one configuration, so * replacing its certificate covers all of them at once. Send `null` to stop using - * mTLS for this webhook. + * mTLS for this webhook. Requires advanced webhook controls to be enabled for the workspace + * (`403` otherwise). * * @return webhookMtlsId */ @@ -207,8 +206,10 @@ public CreateWebhookRequest webhookOauthId(@jakarta.annotation.Nullable UUID web * The id of the OAuth credentials this webhook authenticates with, from * `/v1/webhooks_settings/oauth`. Several webhooks may share one credential set, so * rotating its client secret covers all of them at once. Send `null` to stop using - * OAuth for this webhook. Cannot be combined with an `authorization` custom header on - * the same webhook; a request that would leave both set is rejected. + * OAuth for this webhook. When the webhook has OAuth credentials, Fireblocks sends its own + * `Authorization` header (the bearer token), and a custom `Authorization` + * header from the attached set is not sent. Requires advanced webhook controls to be enabled + * for the workspace (`403` otherwise). * * @return webhookOauthId */ @@ -225,50 +226,36 @@ public void setWebhookOauthId(@jakarta.annotation.Nullable UUID webhookOauthId) this.webhookOauthId = webhookOauthId; } - public CreateWebhookRequest customHeaders( - @jakarta.annotation.Nullable Map customHeaders) { - this.customHeaders = customHeaders; - return this; - } - - public CreateWebhookRequest putCustomHeadersItem(String key, Object customHeadersItem) { - if (this.customHeaders == null) { - this.customHeaders = new HashMap<>(); - } - this.customHeaders.put(key, customHeadersItem); + public CreateWebhookRequest webhookCustomHeadersId( + @jakarta.annotation.Nullable UUID webhookCustomHeadersId) { + this.webhookCustomHeadersId = webhookCustomHeadersId; return this; } /** - * Custom HTTP headers attached to every notification delivered by this webhook. A value is a - * string, sent as one header line, or an array of strings, sent as one header line per element - * under the same name. `Cookie` and `Authorization` accept only a string. - * An empty array is rejected — leave the name out instead. At most 10 headers, counted by name - * — an array value counts once, however many lines it sends. Names must be valid HTTP header - * tokens, are case-insensitive, and are at most 128 characters. A value may be empty and has no - * length limit of its own; the whole object must be under 16 KB when serialized as UTF-8. A - * value that large may still be refused by your own endpoint, since web servers commonly cap - * the whole request header block at around 8 KB. Reserved names: `Host`, - * `Content-Type`, `Content-Length`, `Transfer-Encoding`, - * `Connection`, `User-Agent`, `Accept`, - * `Accept-Encoding`, `Fireblocks-Signature`, - * `Fireblocks-Webhook-Signature`. `Authorization` may be set, but not - * together with `webhookOauthId`; a request that would leave both set is rejected. - * Values are write-only; responses return only the header names. + * The id of the set of custom HTTP headers sent with this webhook's notifications, from + * `/v1/webhooks_settings/custom_headers`. Several webhooks, and OAuth credentials, + * may share one set, so changing it covers all of them at once. Validated when the set is + * created or changed; attaching checks only that it exists in your workspace. Replaces the + * inline `customHeaders` field, which is now refused with a `400`, so use + * `webhookCustomHeadersId`. Requires advanced webhook controls to be enabled for the + * workspace (`403` otherwise). An unknown id, or one belonging to another workspace, + * is a `404`. * - * @return customHeaders + * @return webhookCustomHeadersId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_HEADERS) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public Map getCustomHeaders() { - return customHeaders; + @JsonProperty(JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getWebhookCustomHeadersId() { + return webhookCustomHeadersId; } - @JsonProperty(JSON_PROPERTY_CUSTOM_HEADERS) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomHeaders(@jakarta.annotation.Nullable Map customHeaders) { - this.customHeaders = customHeaders; + @JsonProperty(JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWebhookCustomHeadersId( + @jakarta.annotation.Nullable UUID webhookCustomHeadersId) { + this.webhookCustomHeadersId = webhookCustomHeadersId; } /** Return true if this CreateWebhookRequest object is equal to o. */ @@ -287,13 +274,20 @@ public boolean equals(Object o) { && Objects.equals(this.enabled, createWebhookRequest.enabled) && Objects.equals(this.webhookMtlsId, createWebhookRequest.webhookMtlsId) && Objects.equals(this.webhookOauthId, createWebhookRequest.webhookOauthId) - && Objects.equals(this.customHeaders, createWebhookRequest.customHeaders); + && Objects.equals( + this.webhookCustomHeadersId, createWebhookRequest.webhookCustomHeadersId); } @Override public int hashCode() { return Objects.hash( - url, description, events, enabled, webhookMtlsId, webhookOauthId, customHeaders); + url, + description, + events, + enabled, + webhookMtlsId, + webhookOauthId, + webhookCustomHeadersId); } @Override @@ -306,7 +300,9 @@ public String toString() { sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); sb.append(" webhookMtlsId: ").append(toIndentedString(webhookMtlsId)).append("\n"); sb.append(" webhookOauthId: ").append(toIndentedString(webhookOauthId)).append("\n"); - sb.append(" customHeaders: ").append(toIndentedString(customHeaders)).append("\n"); + sb.append(" webhookCustomHeadersId: ") + .append(toIndentedString(webhookCustomHeadersId)) + .append("\n"); sb.append("}"); return sb.toString(); } @@ -423,22 +419,15 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getWebhookOauthId())))); } - // add `customHeaders` to the URL query string - if (getCustomHeaders() != null) { - for (String _key : getCustomHeaders().keySet()) { - joiner.add( - String.format( - "%scustomHeaders%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, _key, containerSuffix), - getCustomHeaders().get(_key), - ApiClient.urlEncode( - ApiClient.valueToString(getCustomHeaders().get(_key))))); - } + // add `webhookCustomHeadersId` to the URL query string + if (getWebhookCustomHeadersId() != null) { + joiner.add( + String.format( + "%swebhookCustomHeadersId%s=%s", + prefix, + suffix, + ApiClient.urlEncode( + ApiClient.valueToString(getWebhookCustomHeadersId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/DeleteWebhookCustomHeadersResponse.java b/src/main/java/com/fireblocks/sdk/model/DeleteWebhookCustomHeadersResponse.java new file mode 100644 index 00000000..486747f1 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/DeleteWebhookCustomHeadersResponse.java @@ -0,0 +1,482 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fireblocks.sdk.ApiClient; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.StringJoiner; +import java.util.UUID; + +/** + * The deleted custom headers set, plus the ids of any webhooks and OAuth credentials the delete + * detached from it. Things are only detached by `forceDelete=true`; without it a + * delete is refused with `409` while anything still uses the set. + */ +@JsonPropertyOrder({ + DeleteWebhookCustomHeadersResponse.JSON_PROPERTY_ID, + DeleteWebhookCustomHeadersResponse.JSON_PROPERTY_NAME, + DeleteWebhookCustomHeadersResponse.JSON_PROPERTY_HEADER_NAMES, + DeleteWebhookCustomHeadersResponse.JSON_PROPERTY_CREATED_AT, + DeleteWebhookCustomHeadersResponse.JSON_PROPERTY_UPDATED_AT, + DeleteWebhookCustomHeadersResponse.JSON_PROPERTY_DETACHED_WEBHOOK_IDS, + DeleteWebhookCustomHeadersResponse.JSON_PROPERTY_DETACHED_WEBHOOK_OAUTH_IDS +}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class DeleteWebhookCustomHeadersResponse { + public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nonnull private UUID id; + + public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; + + public static final String JSON_PROPERTY_HEADER_NAMES = "headerNames"; + @jakarta.annotation.Nonnull private List headerNames; + + public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; + @jakarta.annotation.Nonnull private Long createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; + @jakarta.annotation.Nonnull private Long updatedAt; + + public static final String JSON_PROPERTY_DETACHED_WEBHOOK_IDS = "detachedWebhookIds"; + @jakarta.annotation.Nonnull private List detachedWebhookIds; + + public static final String JSON_PROPERTY_DETACHED_WEBHOOK_OAUTH_IDS = "detachedWebhookOauthIds"; + @jakarta.annotation.Nonnull private List detachedWebhookOauthIds; + + public DeleteWebhookCustomHeadersResponse() {} + + @JsonCreator + public DeleteWebhookCustomHeadersResponse( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) UUID id, + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, + @JsonProperty(value = JSON_PROPERTY_HEADER_NAMES, required = true) + List headerNames, + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) Long createdAt, + @JsonProperty(value = JSON_PROPERTY_UPDATED_AT, required = true) Long updatedAt, + @JsonProperty(value = JSON_PROPERTY_DETACHED_WEBHOOK_IDS, required = true) + List detachedWebhookIds, + @JsonProperty(value = JSON_PROPERTY_DETACHED_WEBHOOK_OAUTH_IDS, required = true) + List detachedWebhookOauthIds) { + this.id = id; + this.name = name; + this.headerNames = headerNames; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.detachedWebhookIds = detachedWebhookIds; + this.detachedWebhookOauthIds = detachedWebhookOauthIds; + } + + public DeleteWebhookCustomHeadersResponse id(@jakarta.annotation.Nonnull UUID id) { + this.id = id; + return this; + } + + /** + * The id of the custom headers set. Pass this as a webhook's, or OAuth credentials', + * `webhookCustomHeadersId` to attach it. + * + * @return id + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public UUID getId() { + return id; + } + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setId(@jakarta.annotation.Nonnull UUID id) { + this.id = id; + } + + public DeleteWebhookCustomHeadersResponse name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * The label given to this set. + * + * @return name + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { + return name; + } + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + public DeleteWebhookCustomHeadersResponse headerNames( + @jakarta.annotation.Nonnull List headerNames) { + this.headerNames = headerNames; + return this; + } + + public DeleteWebhookCustomHeadersResponse addHeaderNamesItem(String headerNamesItem) { + if (this.headerNames == null) { + this.headerNames = new ArrayList<>(); + } + this.headerNames.add(headerNamesItem); + return this; + } + + /** + * Names of the headers in the set, lowercased. Header values are never returned. + * + * @return headerNames + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_HEADER_NAMES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getHeaderNames() { + return headerNames; + } + + @JsonProperty(JSON_PROPERTY_HEADER_NAMES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setHeaderNames(@jakarta.annotation.Nonnull List headerNames) { + this.headerNames = headerNames; + } + + public DeleteWebhookCustomHeadersResponse createdAt( + @jakarta.annotation.Nonnull Long createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * The date and time the set was created, in milliseconds. + * + * @return createdAt + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Long getCreatedAt() { + return createdAt; + } + + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCreatedAt(@jakarta.annotation.Nonnull Long createdAt) { + this.createdAt = createdAt; + } + + public DeleteWebhookCustomHeadersResponse updatedAt( + @jakarta.annotation.Nonnull Long updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * The date and time the set was last updated, in milliseconds. + * + * @return updatedAt + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Long getUpdatedAt() { + return updatedAt; + } + + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setUpdatedAt(@jakarta.annotation.Nonnull Long updatedAt) { + this.updatedAt = updatedAt; + } + + public DeleteWebhookCustomHeadersResponse detachedWebhookIds( + @jakarta.annotation.Nonnull List detachedWebhookIds) { + this.detachedWebhookIds = detachedWebhookIds; + return this; + } + + public DeleteWebhookCustomHeadersResponse addDetachedWebhookIdsItem( + UUID detachedWebhookIdsItem) { + if (this.detachedWebhookIds == null) { + this.detachedWebhookIds = new ArrayList<>(); + } + this.detachedWebhookIds.add(detachedWebhookIdsItem); + return this; + } + + /** + * Webhooks whose `webhookCustomHeadersId` was cleared. The webhooks themselves are + * not deleted and keep delivering, just without these headers. Empty unless + * `forceDelete=true` detached something. + * + * @return detachedWebhookIds + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DETACHED_WEBHOOK_IDS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getDetachedWebhookIds() { + return detachedWebhookIds; + } + + @JsonProperty(JSON_PROPERTY_DETACHED_WEBHOOK_IDS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDetachedWebhookIds(@jakarta.annotation.Nonnull List detachedWebhookIds) { + this.detachedWebhookIds = detachedWebhookIds; + } + + public DeleteWebhookCustomHeadersResponse detachedWebhookOauthIds( + @jakarta.annotation.Nonnull List detachedWebhookOauthIds) { + this.detachedWebhookOauthIds = detachedWebhookOauthIds; + return this; + } + + public DeleteWebhookCustomHeadersResponse addDetachedWebhookOauthIdsItem( + UUID detachedWebhookOauthIdsItem) { + if (this.detachedWebhookOauthIds == null) { + this.detachedWebhookOauthIds = new ArrayList<>(); + } + this.detachedWebhookOauthIds.add(detachedWebhookOauthIdsItem); + return this; + } + + /** + * OAuth credentials whose `webhookCustomHeadersId` was cleared. The credentials + * themselves are not deleted; their token requests just no longer carry these headers. Empty + * unless `forceDelete=true` detached something. + * + * @return detachedWebhookOauthIds + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DETACHED_WEBHOOK_OAUTH_IDS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getDetachedWebhookOauthIds() { + return detachedWebhookOauthIds; + } + + @JsonProperty(JSON_PROPERTY_DETACHED_WEBHOOK_OAUTH_IDS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDetachedWebhookOauthIds( + @jakarta.annotation.Nonnull List detachedWebhookOauthIds) { + this.detachedWebhookOauthIds = detachedWebhookOauthIds; + } + + /** Return true if this DeleteWebhookCustomHeadersResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteWebhookCustomHeadersResponse deleteWebhookCustomHeadersResponse = + (DeleteWebhookCustomHeadersResponse) o; + return Objects.equals(this.id, deleteWebhookCustomHeadersResponse.id) + && Objects.equals(this.name, deleteWebhookCustomHeadersResponse.name) + && Objects.equals(this.headerNames, deleteWebhookCustomHeadersResponse.headerNames) + && Objects.equals(this.createdAt, deleteWebhookCustomHeadersResponse.createdAt) + && Objects.equals(this.updatedAt, deleteWebhookCustomHeadersResponse.updatedAt) + && Objects.equals( + this.detachedWebhookIds, + deleteWebhookCustomHeadersResponse.detachedWebhookIds) + && Objects.equals( + this.detachedWebhookOauthIds, + deleteWebhookCustomHeadersResponse.detachedWebhookOauthIds); + } + + @Override + public int hashCode() { + return Objects.hash( + id, + name, + headerNames, + createdAt, + updatedAt, + detachedWebhookIds, + detachedWebhookOauthIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteWebhookCustomHeadersResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" headerNames: ").append(toIndentedString(headerNames)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" detachedWebhookIds: ") + .append(toIndentedString(detachedWebhookIds)) + .append("\n"); + sb.append(" detachedWebhookOauthIds: ") + .append(toIndentedString(detachedWebhookOauthIds)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `id` to the URL query string + if (getId() != null) { + joiner.add( + String.format( + "%sid%s=%s", + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); + } + + // add `name` to the URL query string + if (getName() != null) { + joiner.add( + String.format( + "%sname%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getName())))); + } + + // add `headerNames` to the URL query string + if (getHeaderNames() != null) { + for (int i = 0; i < getHeaderNames().size(); i++) { + joiner.add( + String.format( + "%sheaderNames%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", containerPrefix, i, containerSuffix), + ApiClient.urlEncode( + ApiClient.valueToString(getHeaderNames().get(i))))); + } + } + + // add `createdAt` to the URL query string + if (getCreatedAt() != null) { + joiner.add( + String.format( + "%screatedAt%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); + } + + // add `updatedAt` to the URL query string + if (getUpdatedAt() != null) { + joiner.add( + String.format( + "%supdatedAt%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getUpdatedAt())))); + } + + // add `detachedWebhookIds` to the URL query string + if (getDetachedWebhookIds() != null) { + for (int i = 0; i < getDetachedWebhookIds().size(); i++) { + if (getDetachedWebhookIds().get(i) != null) { + joiner.add( + String.format( + "%sdetachedWebhookIds%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", containerPrefix, i, containerSuffix), + ApiClient.urlEncode( + ApiClient.valueToString( + getDetachedWebhookIds().get(i))))); + } + } + } + + // add `detachedWebhookOauthIds` to the URL query string + if (getDetachedWebhookOauthIds() != null) { + for (int i = 0; i < getDetachedWebhookOauthIds().size(); i++) { + if (getDetachedWebhookOauthIds().get(i) != null) { + joiner.add( + String.format( + "%sdetachedWebhookOauthIds%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", containerPrefix, i, containerSuffix), + ApiClient.urlEncode( + ApiClient.valueToString( + getDetachedWebhookOauthIds().get(i))))); + } + } + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/DeleteWebhookOauthResponse.java b/src/main/java/com/fireblocks/sdk/model/DeleteWebhookOauthResponse.java index c488de74..789a46a9 100644 --- a/src/main/java/com/fireblocks/sdk/model/DeleteWebhookOauthResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/DeleteWebhookOauthResponse.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fireblocks.sdk.ApiClient; +import java.net.URI; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -35,12 +36,14 @@ DeleteWebhookOauthResponse.JSON_PROPERTY_CLIENT_ID, DeleteWebhookOauthResponse.JSON_PROPERTY_URL, DeleteWebhookOauthResponse.JSON_PROPERTY_AUTH_METHOD, + DeleteWebhookOauthResponse.JSON_PROPERTY_SIGNING_ALG, DeleteWebhookOauthResponse.JSON_PROPERTY_CUSTOM_JWT_CLAIMS, DeleteWebhookOauthResponse.JSON_PROPERTY_CUSTOM_BODY_PARAMS, - DeleteWebhookOauthResponse.JSON_PROPERTY_CUSTOM_HEADERS, + DeleteWebhookOauthResponse.JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID, DeleteWebhookOauthResponse.JSON_PROPERTY_WEBHOOK_MTLS_ID, DeleteWebhookOauthResponse.JSON_PROPERTY_CREATED_AT, DeleteWebhookOauthResponse.JSON_PROPERTY_UPDATED_AT, + DeleteWebhookOauthResponse.JSON_PROPERTY_JWKS_URI, DeleteWebhookOauthResponse.JSON_PROPERTY_DETACHED_WEBHOOK_IDS }) @jakarta.annotation.Generated( @@ -62,14 +65,17 @@ public class DeleteWebhookOauthResponse { public static final String JSON_PROPERTY_AUTH_METHOD = "authMethod"; @jakarta.annotation.Nonnull private String authMethod = "client_secret_basic"; + public static final String JSON_PROPERTY_SIGNING_ALG = "signingAlg"; + @jakarta.annotation.Nullable private WebhookOauthSigningAlg signingAlg; + public static final String JSON_PROPERTY_CUSTOM_JWT_CLAIMS = "customJwtClaims"; @jakarta.annotation.Nullable private List customJwtClaims; public static final String JSON_PROPERTY_CUSTOM_BODY_PARAMS = "customBodyParams"; @jakarta.annotation.Nullable private List customBodyParams; - public static final String JSON_PROPERTY_CUSTOM_HEADERS = "customHeaders"; - @jakarta.annotation.Nullable private List customHeaders; + public static final String JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID = "webhookCustomHeadersId"; + @jakarta.annotation.Nullable private UUID webhookCustomHeadersId; public static final String JSON_PROPERTY_WEBHOOK_MTLS_ID = "webhookMtlsId"; @jakarta.annotation.Nullable private UUID webhookMtlsId; @@ -80,6 +86,9 @@ public class DeleteWebhookOauthResponse { public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; @jakarta.annotation.Nonnull private Long updatedAt; + public static final String JSON_PROPERTY_JWKS_URI = "jwksUri"; + @jakarta.annotation.Nullable private URI jwksUri; + public static final String JSON_PROPERTY_DETACHED_WEBHOOK_IDS = "detachedWebhookIds"; @jakarta.annotation.Nonnull private List detachedWebhookIds; @@ -206,9 +215,9 @@ public DeleteWebhookOauthResponse authMethod(@jakarta.annotation.Nonnull String /** * How the client credentials are presented to the token endpoint: - * `client_secret_basic`, `client_secret_post` or - * `client_secret_jwt`. Credentials created without this field report - * `client_secret_basic`, which is what they use. + * `client_secret_basic`, `client_secret_post`, + * `client_secret_jwt` or `private_key_jwt`. Credentials created without + * this field report `client_secret_basic`, which is what they use. * * @return authMethod */ @@ -225,6 +234,33 @@ public void setAuthMethod(@jakarta.annotation.Nonnull String authMethod) { this.authMethod = authMethod; } + public DeleteWebhookOauthResponse signingAlg( + @jakarta.annotation.Nullable WebhookOauthSigningAlg signingAlg) { + this.signingAlg = signingAlg; + return this; + } + + /** + * Algorithm of the key pairs, and of the assertions signed with them. Present only when + * `authMethod` is `private_key_jwt`. Which key is signing is never + * returned; each assertion names it in its `kid` header. Defaults to + * `RS256` on create only. + * + * @return signingAlg + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SIGNING_ALG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public WebhookOauthSigningAlg getSigningAlg() { + return signingAlg; + } + + @JsonProperty(JSON_PROPERTY_SIGNING_ALG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSigningAlg(@jakarta.annotation.Nullable WebhookOauthSigningAlg signingAlg) { + this.signingAlg = signingAlg; + } + public DeleteWebhookOauthResponse customJwtClaims( @jakarta.annotation.Nullable List customJwtClaims) { this.customJwtClaims = customJwtClaims; @@ -291,39 +327,32 @@ public void setCustomBodyParams(@jakarta.annotation.Nullable List custom this.customBodyParams = customBodyParams; } - public DeleteWebhookOauthResponse customHeaders( - @jakarta.annotation.Nullable List customHeaders) { - this.customHeaders = customHeaders; - return this; - } - - public DeleteWebhookOauthResponse addCustomHeadersItem(String customHeadersItem) { - if (this.customHeaders == null) { - this.customHeaders = new ArrayList<>(); - } - this.customHeaders.add(customHeadersItem); + public DeleteWebhookOauthResponse webhookCustomHeadersId( + @jakarta.annotation.Nullable UUID webhookCustomHeadersId) { + this.webhookCustomHeadersId = webhookCustomHeadersId; return this; } /** - * Names of the additional HTTP headers added to **the token request sent to the authorization - * server** — not to the webhook delivery, which has its own separate `customHeaders`. - * Header values are write-only and are never returned. Absent when no custom headers are - * configured. + * The id of the set of custom headers added to **the token request sent to the authorization + * server** — not to the webhook delivery. Absent when the token request adds none. Header + * values are write-only and are never returned; read the header names from + * `/v1/webhooks_settings/custom_headers/{webhookCustomHeadersId}`. * - * @return customHeaders + * @return webhookCustomHeadersId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_HEADERS) + @JsonProperty(JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getCustomHeaders() { - return customHeaders; + public UUID getWebhookCustomHeadersId() { + return webhookCustomHeadersId; } - @JsonProperty(JSON_PROPERTY_CUSTOM_HEADERS) + @JsonProperty(JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomHeaders(@jakarta.annotation.Nullable List customHeaders) { - this.customHeaders = customHeaders; + public void setWebhookCustomHeadersId( + @jakarta.annotation.Nullable UUID webhookCustomHeadersId) { + this.webhookCustomHeadersId = webhookCustomHeadersId; } public DeleteWebhookOauthResponse webhookMtlsId( @@ -398,6 +427,19 @@ public void setUpdatedAt(@jakarta.annotation.Nonnull Long updatedAt) { this.updatedAt = updatedAt; } + /** + * The public URL of these credentials' JWKS. Register it as the client's jwks_uri on + * your authorization server. Present for private_key_jwt only. + * + * @return jwksUri + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_JWKS_URI) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public URI getJwksUri() { + return jwksUri; + } + public DeleteWebhookOauthResponse detachedWebhookIds( @jakarta.annotation.Nonnull List detachedWebhookIds) { this.detachedWebhookIds = detachedWebhookIds; @@ -447,13 +489,17 @@ public boolean equals(Object o) { && Objects.equals(this.clientId, deleteWebhookOauthResponse.clientId) && Objects.equals(this.url, deleteWebhookOauthResponse.url) && Objects.equals(this.authMethod, deleteWebhookOauthResponse.authMethod) + && Objects.equals(this.signingAlg, deleteWebhookOauthResponse.signingAlg) && Objects.equals(this.customJwtClaims, deleteWebhookOauthResponse.customJwtClaims) && Objects.equals( this.customBodyParams, deleteWebhookOauthResponse.customBodyParams) - && Objects.equals(this.customHeaders, deleteWebhookOauthResponse.customHeaders) + && Objects.equals( + this.webhookCustomHeadersId, + deleteWebhookOauthResponse.webhookCustomHeadersId) && Objects.equals(this.webhookMtlsId, deleteWebhookOauthResponse.webhookMtlsId) && Objects.equals(this.createdAt, deleteWebhookOauthResponse.createdAt) && Objects.equals(this.updatedAt, deleteWebhookOauthResponse.updatedAt) + && Objects.equals(this.jwksUri, deleteWebhookOauthResponse.jwksUri) && Objects.equals( this.detachedWebhookIds, deleteWebhookOauthResponse.detachedWebhookIds); } @@ -466,12 +512,14 @@ public int hashCode() { clientId, url, authMethod, + signingAlg, customJwtClaims, customBodyParams, - customHeaders, + webhookCustomHeadersId, webhookMtlsId, createdAt, updatedAt, + jwksUri, detachedWebhookIds); } @@ -484,12 +532,16 @@ public String toString() { sb.append(" clientId: ").append(toIndentedString(clientId)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" authMethod: ").append(toIndentedString(authMethod)).append("\n"); + sb.append(" signingAlg: ").append(toIndentedString(signingAlg)).append("\n"); sb.append(" customJwtClaims: ").append(toIndentedString(customJwtClaims)).append("\n"); sb.append(" customBodyParams: ").append(toIndentedString(customBodyParams)).append("\n"); - sb.append(" customHeaders: ").append(toIndentedString(customHeaders)).append("\n"); + sb.append(" webhookCustomHeadersId: ") + .append(toIndentedString(webhookCustomHeadersId)) + .append("\n"); sb.append(" webhookMtlsId: ").append(toIndentedString(webhookMtlsId)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" jwksUri: ").append(toIndentedString(jwksUri)).append("\n"); sb.append(" detachedWebhookIds: ") .append(toIndentedString(detachedWebhookIds)) .append("\n"); @@ -588,6 +640,16 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getAuthMethod())))); } + // add `signingAlg` to the URL query string + if (getSigningAlg() != null) { + joiner.add( + String.format( + "%ssigningAlg%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getSigningAlg())))); + } + // add `customJwtClaims` to the URL query string if (getCustomJwtClaims() != null) { for (int i = 0; i < getCustomJwtClaims().size(); i++) { @@ -622,21 +684,15 @@ public String toUrlQueryString(String prefix) { } } - // add `customHeaders` to the URL query string - if (getCustomHeaders() != null) { - for (int i = 0; i < getCustomHeaders().size(); i++) { - joiner.add( - String.format( - "%scustomHeaders%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getCustomHeaders().get(i))))); - } + // add `webhookCustomHeadersId` to the URL query string + if (getWebhookCustomHeadersId() != null) { + joiner.add( + String.format( + "%swebhookCustomHeadersId%s=%s", + prefix, + suffix, + ApiClient.urlEncode( + ApiClient.valueToString(getWebhookCustomHeadersId())))); } // add `webhookMtlsId` to the URL query string @@ -669,6 +725,16 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getUpdatedAt())))); } + // add `jwksUri` to the URL query string + if (getJwksUri() != null) { + joiner.add( + String.format( + "%sjwksUri%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getJwksUri())))); + } + // add `detachedWebhookIds` to the URL query string if (getDetachedWebhookIds() != null) { for (int i = 0; i < getDetachedWebhookIds().size(); i++) { diff --git a/src/main/java/com/fireblocks/sdk/model/GetWhitelistIpAddressesResponse.java b/src/main/java/com/fireblocks/sdk/model/GetWhitelistIpAddressesResponse.java index 7cb5b6ad..0cd11e8d 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetWhitelistIpAddressesResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetWhitelistIpAddressesResponse.java @@ -77,7 +77,8 @@ public GetWhitelistIpAddressesResponse addWhitelistedIpsItem(String whitelistedI } /** - * List of whitelisted ip addresses + * Allowlist entries. Each item is an IPv4 address (10.0.0.1), an IPv4 CIDR (10.0.0.0/24), an + * IPv4 range (10.0.0.1-10.0.0.50), or an IPv6 address (2001:db8::1). * * @return whitelistedIps */ diff --git a/src/main/java/com/fireblocks/sdk/model/ListOmnibusAddressesResponse.java b/src/main/java/com/fireblocks/sdk/model/ListOmnibusAddressesResponse.java new file mode 100644 index 00000000..373a5c99 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/ListOmnibusAddressesResponse.java @@ -0,0 +1,252 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fireblocks.sdk.ApiClient; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.StringJoiner; + +/** ListOmnibusAddressesResponse */ +@JsonPropertyOrder({ + ListOmnibusAddressesResponse.JSON_PROPERTY_TOTAL, + ListOmnibusAddressesResponse.JSON_PROPERTY_DATA, + ListOmnibusAddressesResponse.JSON_PROPERTY_NEXT +}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class ListOmnibusAddressesResponse { + public static final String JSON_PROPERTY_TOTAL = "total"; + @jakarta.annotation.Nullable private Integer total; + + public static final String JSON_PROPERTY_DATA = "data"; + @jakarta.annotation.Nonnull private List data; + + public static final String JSON_PROPERTY_NEXT = "next"; + @jakarta.annotation.Nullable private String next; + + public ListOmnibusAddressesResponse() {} + + @JsonCreator + public ListOmnibusAddressesResponse( + @JsonProperty(value = JSON_PROPERTY_DATA, required = true) List data) { + this.data = data; + } + + public ListOmnibusAddressesResponse total(@jakarta.annotation.Nullable Integer total) { + this.total = total; + return this; + } + + /** + * The total number of addresses matching the request (respecting `fromIndex` and + * `search`, ignoring pagination). Returned only on the first page. + * + * @return total + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TOTAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getTotal() { + return total; + } + + @JsonProperty(JSON_PROPERTY_TOTAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTotal(@jakarta.annotation.Nullable Integer total) { + this.total = total; + } + + public ListOmnibusAddressesResponse data( + @jakarta.annotation.Nonnull List data) { + this.data = data; + return this; + } + + public ListOmnibusAddressesResponse addDataItem(OmnibusAddress dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * A page of deposit addresses, ordered by index, highest first + * + * @return data + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getData() { + return data; + } + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setData(@jakarta.annotation.Nonnull List data) { + this.data = data; + } + + public ListOmnibusAddressesResponse next(@jakarta.annotation.Nullable String next) { + this.next = next; + return this; + } + + /** + * The cursor for the next page. Absent on the last page. + * + * @return next + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNext() { + return next; + } + + @JsonProperty(JSON_PROPERTY_NEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNext(@jakarta.annotation.Nullable String next) { + this.next = next; + } + + /** Return true if this ListOmnibusAddressesResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListOmnibusAddressesResponse listOmnibusAddressesResponse = + (ListOmnibusAddressesResponse) o; + return Objects.equals(this.total, listOmnibusAddressesResponse.total) + && Objects.equals(this.data, listOmnibusAddressesResponse.data) + && Objects.equals(this.next, listOmnibusAddressesResponse.next); + } + + @Override + public int hashCode() { + return Objects.hash(total, data, next); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListOmnibusAddressesResponse {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" next: ").append(toIndentedString(next)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `total` to the URL query string + if (getTotal() != null) { + joiner.add( + String.format( + "%stotal%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getTotal())))); + } + + // add `data` to the URL query string + if (getData() != null) { + for (int i = 0; i < getData().size(); i++) { + if (getData().get(i) != null) { + joiner.add( + getData() + .get(i) + .toUrlQueryString( + String.format( + "%sdata%s%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", + containerPrefix, + i, + containerSuffix)))); + } + } + } + + // add `next` to the URL query string + if (getNext() != null) { + joiner.add( + String.format( + "%snext%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getNext())))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/OmnibusAddress.java b/src/main/java/com/fireblocks/sdk/model/OmnibusAddress.java new file mode 100644 index 00000000..8799cf6c --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/OmnibusAddress.java @@ -0,0 +1,269 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fireblocks.sdk.ApiClient; +import java.util.Objects; +import java.util.StringJoiner; + +/** OmnibusAddress */ +@JsonPropertyOrder({ + OmnibusAddress.JSON_PROPERTY_INDEX, + OmnibusAddress.JSON_PROPERTY_ADDRESS, + OmnibusAddress.JSON_PROPERTY_DESCRIPTION, + OmnibusAddress.JSON_PROPERTY_CREATED_AT +}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class OmnibusAddress { + public static final String JSON_PROPERTY_INDEX = "index"; + @jakarta.annotation.Nonnull private Integer index; + + public static final String JSON_PROPERTY_ADDRESS = "address"; + @jakarta.annotation.Nonnull private String address; + + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + @jakarta.annotation.Nullable private String description; + + public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; + @jakarta.annotation.Nonnull private String createdAt; + + public OmnibusAddress() {} + + @JsonCreator + public OmnibusAddress( + @JsonProperty(value = JSON_PROPERTY_INDEX, required = true) Integer index, + @JsonProperty(value = JSON_PROPERTY_ADDRESS, required = true) String address, + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) String createdAt) { + this.index = index; + this.address = address; + this.createdAt = createdAt; + } + + public OmnibusAddress index(@jakarta.annotation.Nonnull Integer index) { + this.index = index; + return this; + } + + /** + * The index of the deposit address within the omnibus account + * + * @return index + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_INDEX) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIndex() { + return index; + } + + @JsonProperty(JSON_PROPERTY_INDEX) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setIndex(@jakarta.annotation.Nonnull Integer index) { + this.index = index; + } + + public OmnibusAddress address(@jakarta.annotation.Nonnull String address) { + this.address = address; + return this; + } + + /** + * The deposit address + * + * @return address + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ADDRESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getAddress() { + return address; + } + + @JsonProperty(JSON_PROPERTY_ADDRESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAddress(@jakarta.annotation.Nonnull String address) { + this.address = address; + } + + public OmnibusAddress description(@jakarta.annotation.Nullable String description) { + this.description = description; + return this; + } + + /** + * The caller-supplied label of the address. Absent when no label was set. + * + * @return description + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDescription() { + return description; + } + + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDescription(@jakarta.annotation.Nullable String description) { + this.description = description; + } + + public OmnibusAddress createdAt(@jakarta.annotation.Nonnull String createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * The time the address was created, in epoch milliseconds + * + * @return createdAt + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getCreatedAt() { + return createdAt; + } + + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCreatedAt(@jakarta.annotation.Nonnull String createdAt) { + this.createdAt = createdAt; + } + + /** Return true if this OmnibusAddress object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OmnibusAddress omnibusAddress = (OmnibusAddress) o; + return Objects.equals(this.index, omnibusAddress.index) + && Objects.equals(this.address, omnibusAddress.address) + && Objects.equals(this.description, omnibusAddress.description) + && Objects.equals(this.createdAt, omnibusAddress.createdAt); + } + + @Override + public int hashCode() { + return Objects.hash(index, address, description, createdAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OmnibusAddress {\n"); + sb.append(" index: ").append(toIndentedString(index)).append("\n"); + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `index` to the URL query string + if (getIndex() != null) { + joiner.add( + String.format( + "%sindex%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getIndex())))); + } + + // add `address` to the URL query string + if (getAddress() != null) { + joiner.add( + String.format( + "%saddress%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); + } + + // add `description` to the URL query string + if (getDescription() != null) { + joiner.add( + String.format( + "%sdescription%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); + } + + // add `createdAt` to the URL query string + if (getCreatedAt() != null) { + joiner.add( + String.format( + "%screatedAt%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/ReadOnlyDraftResponse.java b/src/main/java/com/fireblocks/sdk/model/ReadOnlyDraftResponse.java new file mode 100644 index 00000000..719cd4e2 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/ReadOnlyDraftResponse.java @@ -0,0 +1,319 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fireblocks.sdk.ApiClient; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.StringJoiner; + +/** Response object for the read-only draft operation */ +@JsonPropertyOrder({ + ReadOnlyDraftResponse.JSON_PROPERTY_STATUS, + ReadOnlyDraftResponse.JSON_PROPERTY_RULES, + ReadOnlyDraftResponse.JSON_PROPERTY_DRAFT_ID, + ReadOnlyDraftResponse.JSON_PROPERTY_METADATA +}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class ReadOnlyDraftResponse { + public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nonnull private String status; + + public static final String JSON_PROPERTY_RULES = "rules"; + @jakarta.annotation.Nonnull private List rules; + + public static final String JSON_PROPERTY_DRAFT_ID = "draftId"; + @jakarta.annotation.Nullable private String draftId; + + public static final String JSON_PROPERTY_METADATA = "metadata"; + @jakarta.annotation.Nonnull private Map metadata; + + public ReadOnlyDraftResponse() {} + + @JsonCreator + public ReadOnlyDraftResponse( + @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) String status, + @JsonProperty(value = JSON_PROPERTY_RULES, required = true) List rules, + @JsonProperty(value = JSON_PROPERTY_DRAFT_ID, required = true) String draftId, + @JsonProperty(value = JSON_PROPERTY_METADATA, required = true) + Map metadata) { + this.status = status; + this.rules = rules; + this.draftId = draftId; + this.metadata = metadata; + } + + public ReadOnlyDraftResponse status(@jakarta.annotation.Nonnull String status) { + this.status = status; + return this; + } + + /** + * Operation status + * + * @return status + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStatus() { + return status; + } + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setStatus(@jakarta.annotation.Nonnull String status) { + this.status = status; + } + + public ReadOnlyDraftResponse rules(@jakarta.annotation.Nonnull List rules) { + this.rules = rules; + return this; + } + + public ReadOnlyDraftResponse addRulesItem(PolicyRule rulesItem) { + if (this.rules == null) { + this.rules = new ArrayList<>(); + } + this.rules.add(rulesItem); + return this; + } + + /** + * Draft rules + * + * @return rules + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RULES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getRules() { + return rules; + } + + @JsonProperty(JSON_PROPERTY_RULES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRules(@jakarta.annotation.Nonnull List rules) { + this.rules = rules; + } + + public ReadOnlyDraftResponse draftId(@jakarta.annotation.Nullable String draftId) { + this.draftId = draftId; + return this; + } + + /** + * Draft unique id. null when no draft is stored; the active policy is returned + * + * @return draftId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DRAFT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getDraftId() { + return draftId; + } + + @JsonProperty(JSON_PROPERTY_DRAFT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDraftId(@jakarta.annotation.Nullable String draftId) { + this.draftId = draftId; + } + + public ReadOnlyDraftResponse metadata( + @jakarta.annotation.Nonnull Map metadata) { + this.metadata = metadata; + return this; + } + + public ReadOnlyDraftResponse putMetadataItem(String key, PolicyMetadataEntry metadataItem) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, metadataItem); + return this; + } + + /** + * Policy metadata keyed by policy type + * + * @return metadata + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_METADATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Map getMetadata() { + return metadata; + } + + @JsonProperty(JSON_PROPERTY_METADATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMetadata(@jakarta.annotation.Nonnull Map metadata) { + this.metadata = metadata; + } + + /** Return true if this ReadOnlyDraftResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReadOnlyDraftResponse readOnlyDraftResponse = (ReadOnlyDraftResponse) o; + return Objects.equals(this.status, readOnlyDraftResponse.status) + && Objects.equals(this.rules, readOnlyDraftResponse.rules) + && Objects.equals(this.draftId, readOnlyDraftResponse.draftId) + && Objects.equals(this.metadata, readOnlyDraftResponse.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(status, rules, draftId, metadata); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReadOnlyDraftResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); + sb.append(" draftId: ").append(toIndentedString(draftId)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `status` to the URL query string + if (getStatus() != null) { + joiner.add( + String.format( + "%sstatus%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); + } + + // add `rules` to the URL query string + if (getRules() != null) { + for (int i = 0; i < getRules().size(); i++) { + if (getRules().get(i) != null) { + joiner.add( + getRules() + .get(i) + .toUrlQueryString( + String.format( + "%srules%s%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", + containerPrefix, + i, + containerSuffix)))); + } + } + } + + // add `draftId` to the URL query string + if (getDraftId() != null) { + joiner.add( + String.format( + "%sdraftId%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getDraftId())))); + } + + // add `metadata` to the URL query string + if (getMetadata() != null) { + for (String _key : getMetadata().keySet()) { + if (getMetadata().get(_key) != null) { + joiner.add( + getMetadata() + .get(_key) + .toUrlQueryString( + String.format( + "%smetadata%s%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", + containerPrefix, + _key, + containerSuffix)))); + } + } + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/ReadOnlyDraftReviewAndValidationResponse.java b/src/main/java/com/fireblocks/sdk/model/ReadOnlyDraftReviewAndValidationResponse.java new file mode 100644 index 00000000..b6901918 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/ReadOnlyDraftReviewAndValidationResponse.java @@ -0,0 +1,185 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.Objects; +import java.util.StringJoiner; + +/** Read-only draft validation */ +@JsonPropertyOrder({ + ReadOnlyDraftReviewAndValidationResponse.JSON_PROPERTY_DRAFT_RESPONSE, + ReadOnlyDraftReviewAndValidationResponse.JSON_PROPERTY_VALIDATION +}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class ReadOnlyDraftReviewAndValidationResponse { + public static final String JSON_PROPERTY_DRAFT_RESPONSE = "draftResponse"; + @jakarta.annotation.Nonnull private ReadOnlyDraftResponse draftResponse; + + public static final String JSON_PROPERTY_VALIDATION = "validation"; + @jakarta.annotation.Nonnull private PolicyValidation validation; + + public ReadOnlyDraftReviewAndValidationResponse() {} + + @JsonCreator + public ReadOnlyDraftReviewAndValidationResponse( + @JsonProperty(value = JSON_PROPERTY_DRAFT_RESPONSE, required = true) + ReadOnlyDraftResponse draftResponse, + @JsonProperty(value = JSON_PROPERTY_VALIDATION, required = true) + PolicyValidation validation) { + this.draftResponse = draftResponse; + this.validation = validation; + } + + public ReadOnlyDraftReviewAndValidationResponse draftResponse( + @jakarta.annotation.Nonnull ReadOnlyDraftResponse draftResponse) { + this.draftResponse = draftResponse; + return this; + } + + /** + * Get draftResponse + * + * @return draftResponse + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DRAFT_RESPONSE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public ReadOnlyDraftResponse getDraftResponse() { + return draftResponse; + } + + @JsonProperty(JSON_PROPERTY_DRAFT_RESPONSE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDraftResponse(@jakarta.annotation.Nonnull ReadOnlyDraftResponse draftResponse) { + this.draftResponse = draftResponse; + } + + public ReadOnlyDraftReviewAndValidationResponse validation( + @jakarta.annotation.Nonnull PolicyValidation validation) { + this.validation = validation; + return this; + } + + /** + * Get validation + * + * @return validation + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_VALIDATION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public PolicyValidation getValidation() { + return validation; + } + + @JsonProperty(JSON_PROPERTY_VALIDATION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setValidation(@jakarta.annotation.Nonnull PolicyValidation validation) { + this.validation = validation; + } + + /** Return true if this ReadOnlyDraftReviewAndValidationResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReadOnlyDraftReviewAndValidationResponse readOnlyDraftReviewAndValidationResponse = + (ReadOnlyDraftReviewAndValidationResponse) o; + return Objects.equals( + this.draftResponse, readOnlyDraftReviewAndValidationResponse.draftResponse) + && Objects.equals( + this.validation, readOnlyDraftReviewAndValidationResponse.validation); + } + + @Override + public int hashCode() { + return Objects.hash(draftResponse, validation); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReadOnlyDraftReviewAndValidationResponse {\n"); + sb.append(" draftResponse: ").append(toIndentedString(draftResponse)).append("\n"); + sb.append(" validation: ").append(toIndentedString(validation)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `draftResponse` to the URL query string + if (getDraftResponse() != null) { + joiner.add(getDraftResponse().toUrlQueryString(prefix + "draftResponse" + suffix)); + } + + // add `validation` to the URL query string + if (getValidation() != null) { + joiner.add(getValidation().toUrlQueryString(prefix + "validation" + suffix)); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/RegisterTempoOmnibusResponse.java b/src/main/java/com/fireblocks/sdk/model/RegisterTempoOmnibusResponse.java new file mode 100644 index 00000000..cc1facef --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/RegisterTempoOmnibusResponse.java @@ -0,0 +1,231 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fireblocks.sdk.ApiClient; +import java.util.Objects; +import java.util.StringJoiner; + +/** RegisterTempoOmnibusResponse */ +@JsonPropertyOrder({ + RegisterTempoOmnibusResponse.JSON_PROPERTY_TX_ID, + RegisterTempoOmnibusResponse.JSON_PROPERTY_STATUS +}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class RegisterTempoOmnibusResponse { + public static final String JSON_PROPERTY_TX_ID = "txId"; + @jakarta.annotation.Nullable private String txId; + + /** + * The status of the Tempo omnibus wallet. `READY` is returned with 200; + * `PROCESSING` and `PENDING_ACTIVATION` are returned with 202. A failed + * activation is returned as an error. + */ + public enum StatusEnum { + PROCESSING(String.valueOf("PROCESSING")), + + PENDING_ACTIVATION(String.valueOf("PENDING_ACTIVATION")), + + READY(String.valueOf("READY")); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nonnull private StatusEnum status; + + public RegisterTempoOmnibusResponse() {} + + @JsonCreator + public RegisterTempoOmnibusResponse( + @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) StatusEnum status) { + this.status = status; + } + + public RegisterTempoOmnibusResponse txId(@jakarta.annotation.Nullable String txId) { + this.txId = txId; + return this; + } + + /** + * The ID of the wallet activation transaction. Absent when no activation transaction was + * submitted. + * + * @return txId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TX_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getTxId() { + return txId; + } + + @JsonProperty(JSON_PROPERTY_TX_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTxId(@jakarta.annotation.Nullable String txId) { + this.txId = txId; + } + + public RegisterTempoOmnibusResponse status(@jakarta.annotation.Nonnull StatusEnum status) { + this.status = status; + return this; + } + + /** + * The status of the Tempo omnibus wallet. `READY` is returned with 200; + * `PROCESSING` and `PENDING_ACTIVATION` are returned with 202. A failed + * activation is returned as an error. + * + * @return status + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public StatusEnum getStatus() { + return status; + } + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { + this.status = status; + } + + /** Return true if this RegisterTempoOmnibusResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RegisterTempoOmnibusResponse registerTempoOmnibusResponse = + (RegisterTempoOmnibusResponse) o; + return Objects.equals(this.txId, registerTempoOmnibusResponse.txId) + && Objects.equals(this.status, registerTempoOmnibusResponse.status); + } + + @Override + public int hashCode() { + return Objects.hash(txId, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RegisterTempoOmnibusResponse {\n"); + sb.append(" txId: ").append(toIndentedString(txId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `txId` to the URL query string + if (getTxId() != null) { + joiner.add( + String.format( + "%stxId%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getTxId())))); + } + + // add `status` to the URL query string + if (getStatus() != null) { + joiner.add( + String.format( + "%sstatus%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/RevokeWebhookOauthKeyRequest.java b/src/main/java/com/fireblocks/sdk/model/RevokeWebhookOauthKeyRequest.java new file mode 100644 index 00000000..fa68430c --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/RevokeWebhookOauthKeyRequest.java @@ -0,0 +1,147 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fireblocks.sdk.ApiClient; +import java.util.Objects; +import java.util.StringJoiner; + +/** + * Which key to revoke. Omit `kid`, or send an empty body, to revoke the key Fireblocks is + * signing with. + */ +@JsonPropertyOrder({RevokeWebhookOauthKeyRequest.JSON_PROPERTY_KID}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class RevokeWebhookOauthKeyRequest { + public static final String JSON_PROPERTY_KID = "kid"; + @jakarta.annotation.Nullable private String kid; + + public RevokeWebhookOauthKeyRequest() {} + + public RevokeWebhookOauthKeyRequest kid(@jakarta.annotation.Nullable String kid) { + this.kid = kid; + return this; + } + + /** + * The `kid` of the key to revoke, as the JWKS at `jwksUri` lists it: the + * signing key, its successor, a key rotated out and still published, or a key left behind by a + * `signingAlg` change within its 30 days. Omit to revoke the signing key; + * `null` is refused rather than read as omitted. Required on credentials that no + * longer use `private_key_jwt`. + * + * @return kid + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_KID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getKid() { + return kid; + } + + @JsonProperty(JSON_PROPERTY_KID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setKid(@jakarta.annotation.Nullable String kid) { + this.kid = kid; + } + + /** Return true if this RevokeWebhookOauthKeyRequest object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RevokeWebhookOauthKeyRequest revokeWebhookOauthKeyRequest = + (RevokeWebhookOauthKeyRequest) o; + return Objects.equals(this.kid, revokeWebhookOauthKeyRequest.kid); + } + + @Override + public int hashCode() { + return Objects.hash(kid); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RevokeWebhookOauthKeyRequest {\n"); + sb.append(" kid: ").append(toIndentedString(kid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `kid` to the URL query string + if (getKid() != null) { + joiner.add( + String.format( + "%skid%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getKid())))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/RevokeWebhookOauthKeyResponse.java b/src/main/java/com/fireblocks/sdk/model/RevokeWebhookOauthKeyResponse.java new file mode 100644 index 00000000..eba88d64 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/RevokeWebhookOauthKeyResponse.java @@ -0,0 +1,152 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fireblocks.sdk.ApiClient; +import java.util.Objects; +import java.util.StringJoiner; + +/** + * The key that was revoked. It is no longer published at the `jwksUri` of the + * credentials. Fetch the JWKS from there for the current public keys. + */ +@JsonPropertyOrder({RevokeWebhookOauthKeyResponse.JSON_PROPERTY_KID}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class RevokeWebhookOauthKeyResponse { + public static final String JSON_PROPERTY_KID = "kid"; + @jakarta.annotation.Nonnull private String kid; + + public RevokeWebhookOauthKeyResponse() {} + + @JsonCreator + public RevokeWebhookOauthKeyResponse( + @JsonProperty(value = JSON_PROPERTY_KID, required = true) String kid) { + this.kid = kid; + } + + public RevokeWebhookOauthKeyResponse kid(@jakarta.annotation.Nonnull String kid) { + this.kid = kid; + return this; + } + + /** + * The `kid` of the key revoked. When the request carried no `kid`, this is + * the key Fireblocks was signing with. It is the SHA-256 fingerprint of the public key's + * DER (SPKI) encoding, in lowercase hex. + * + * @return kid + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_KID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getKid() { + return kid; + } + + @JsonProperty(JSON_PROPERTY_KID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setKid(@jakarta.annotation.Nonnull String kid) { + this.kid = kid; + } + + /** Return true if this RevokeWebhookOauthKeyResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RevokeWebhookOauthKeyResponse revokeWebhookOauthKeyResponse = + (RevokeWebhookOauthKeyResponse) o; + return Objects.equals(this.kid, revokeWebhookOauthKeyResponse.kid); + } + + @Override + public int hashCode() { + return Objects.hash(kid); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RevokeWebhookOauthKeyResponse {\n"); + sb.append(" kid: ").append(toIndentedString(kid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `kid` to the URL query string + if (getKid() != null) { + joiner.add( + String.format( + "%skid%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getKid())))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/RotateWebhookOauthKeyResponse.java b/src/main/java/com/fireblocks/sdk/model/RotateWebhookOauthKeyResponse.java new file mode 100644 index 00000000..af2ebae2 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/RotateWebhookOauthKeyResponse.java @@ -0,0 +1,151 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fireblocks.sdk.ApiClient; +import java.util.Objects; +import java.util.StringJoiner; + +/** + * The key that was rotated out. It stays published at the `jwksUri` of the credentials + * for 30 days. Fetch the JWKS from there for the current public keys. + */ +@JsonPropertyOrder({RotateWebhookOauthKeyResponse.JSON_PROPERTY_KID}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class RotateWebhookOauthKeyResponse { + public static final String JSON_PROPERTY_KID = "kid"; + @jakarta.annotation.Nonnull private String kid; + + public RotateWebhookOauthKeyResponse() {} + + @JsonCreator + public RotateWebhookOauthKeyResponse( + @JsonProperty(value = JSON_PROPERTY_KID, required = true) String kid) { + this.kid = kid; + } + + public RotateWebhookOauthKeyResponse kid(@jakarta.annotation.Nonnull String kid) { + this.kid = kid; + return this; + } + + /** + * The `kid` of the key rotated out, the one Fireblocks was signing with until now. It + * is the SHA-256 fingerprint of the public key's DER (SPKI) encoding, in lowercase hex. + * + * @return kid + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_KID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getKid() { + return kid; + } + + @JsonProperty(JSON_PROPERTY_KID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setKid(@jakarta.annotation.Nonnull String kid) { + this.kid = kid; + } + + /** Return true if this RotateWebhookOauthKeyResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RotateWebhookOauthKeyResponse rotateWebhookOauthKeyResponse = + (RotateWebhookOauthKeyResponse) o; + return Objects.equals(this.kid, rotateWebhookOauthKeyResponse.kid); + } + + @Override + public int hashCode() { + return Objects.hash(kid); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RotateWebhookOauthKeyResponse {\n"); + sb.append(" kid: ").append(toIndentedString(kid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `kid` to the URL query string + if (getKid() != null) { + joiner.add( + String.format( + "%skid%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getKid())))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/SolanaRewardsBreakdown.java b/src/main/java/com/fireblocks/sdk/model/SolanaRewardsBreakdown.java index 87630328..a9770be3 100644 --- a/src/main/java/com/fireblocks/sdk/model/SolanaRewardsBreakdown.java +++ b/src/main/java/com/fireblocks/sdk/model/SolanaRewardsBreakdown.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fireblocks.sdk.ApiClient; +import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.Objects; import java.util.StringJoiner; @@ -26,7 +27,9 @@ @JsonPropertyOrder({ SolanaRewardsBreakdown.JSON_PROPERTY_INFLATION, SolanaRewardsBreakdown.JSON_PROPERTY_MEV, - SolanaRewardsBreakdown.JSON_PROPERTY_LAST_REWARD_SYNCED_AT + SolanaRewardsBreakdown.JSON_PROPERTY_LAST_REWARD_SYNCED_AT, + SolanaRewardsBreakdown.JSON_PROPERTY_LATEST_INFLATION_REWARD_DATE, + SolanaRewardsBreakdown.JSON_PROPERTY_LATEST_MEV_REWARD_DATE }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -41,6 +44,13 @@ public class SolanaRewardsBreakdown { public static final String JSON_PROPERTY_LAST_REWARD_SYNCED_AT = "lastRewardSyncedAt"; @jakarta.annotation.Nonnull private OffsetDateTime lastRewardSyncedAt; + public static final String JSON_PROPERTY_LATEST_INFLATION_REWARD_DATE = + "latestInflationRewardDate"; + @jakarta.annotation.Nullable private LocalDate latestInflationRewardDate; + + public static final String JSON_PROPERTY_LATEST_MEV_REWARD_DATE = "latestMevRewardDate"; + @jakarta.annotation.Nullable private LocalDate latestMevRewardDate; + public SolanaRewardsBreakdown() {} @JsonCreator @@ -107,7 +117,9 @@ public SolanaRewardsBreakdown lastRewardSyncedAt( } /** - * The last time the rewards were synced (ISO Date). + * The time (UTC) of the last sync that fetched this position's rewards from the rewards + * provider. It is updated on every sync, including when nothing new was found, so it is not the + * date of the newest reward (see latestInflationRewardDate and latestMevRewardDate). * * @return lastRewardSyncedAt */ @@ -125,6 +137,58 @@ public void setLastRewardSyncedAt( this.lastRewardSyncedAt = lastRewardSyncedAt; } + public SolanaRewardsBreakdown latestInflationRewardDate( + @jakarta.annotation.Nullable LocalDate latestInflationRewardDate) { + this.latestInflationRewardDate = latestInflationRewardDate; + return this; + } + + /** + * The date (UTC, YYYY-MM-DD) of the newest inflation reward the rewards provider has returned + * for this stake account. Null until the provider returns one. + * + * @return latestInflationRewardDate + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LATEST_INFLATION_REWARD_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public LocalDate getLatestInflationRewardDate() { + return latestInflationRewardDate; + } + + @JsonProperty(JSON_PROPERTY_LATEST_INFLATION_REWARD_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLatestInflationRewardDate( + @jakarta.annotation.Nullable LocalDate latestInflationRewardDate) { + this.latestInflationRewardDate = latestInflationRewardDate; + } + + public SolanaRewardsBreakdown latestMevRewardDate( + @jakarta.annotation.Nullable LocalDate latestMevRewardDate) { + this.latestMevRewardDate = latestMevRewardDate; + return this; + } + + /** + * The date (UTC, YYYY-MM-DD) of the newest MEV reward the rewards provider has returned for + * this stake account. Null until the provider returns one, and for validators without MEV + * rewards. + * + * @return latestMevRewardDate + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LATEST_MEV_REWARD_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public LocalDate getLatestMevRewardDate() { + return latestMevRewardDate; + } + + @JsonProperty(JSON_PROPERTY_LATEST_MEV_REWARD_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLatestMevRewardDate(@jakarta.annotation.Nullable LocalDate latestMevRewardDate) { + this.latestMevRewardDate = latestMevRewardDate; + } + /** Return true if this SolanaRewardsBreakdown object is equal to o. */ @Override public boolean equals(Object o) { @@ -138,12 +202,18 @@ public boolean equals(Object o) { return Objects.equals(this.inflation, solanaRewardsBreakdown.inflation) && Objects.equals(this.mev, solanaRewardsBreakdown.mev) && Objects.equals( - this.lastRewardSyncedAt, solanaRewardsBreakdown.lastRewardSyncedAt); + this.lastRewardSyncedAt, solanaRewardsBreakdown.lastRewardSyncedAt) + && Objects.equals( + this.latestInflationRewardDate, + solanaRewardsBreakdown.latestInflationRewardDate) + && Objects.equals( + this.latestMevRewardDate, solanaRewardsBreakdown.latestMevRewardDate); } @Override public int hashCode() { - return Objects.hash(inflation, mev, lastRewardSyncedAt); + return Objects.hash( + inflation, mev, lastRewardSyncedAt, latestInflationRewardDate, latestMevRewardDate); } @Override @@ -155,6 +225,12 @@ public String toString() { sb.append(" lastRewardSyncedAt: ") .append(toIndentedString(lastRewardSyncedAt)) .append("\n"); + sb.append(" latestInflationRewardDate: ") + .append(toIndentedString(latestInflationRewardDate)) + .append("\n"); + sb.append(" latestMevRewardDate: ") + .append(toIndentedString(latestMevRewardDate)) + .append("\n"); sb.append("}"); return sb.toString(); } @@ -232,6 +308,28 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getLastRewardSyncedAt())))); } + // add `latestInflationRewardDate` to the URL query string + if (getLatestInflationRewardDate() != null) { + joiner.add( + String.format( + "%slatestInflationRewardDate%s=%s", + prefix, + suffix, + ApiClient.urlEncode( + ApiClient.valueToString(getLatestInflationRewardDate())))); + } + + // add `latestMevRewardDate` to the URL query string + if (getLatestMevRewardDate() != null) { + joiner.add( + String.format( + "%slatestMevRewardDate%s=%s", + prefix, + suffix, + ApiClient.urlEncode( + ApiClient.valueToString(getLatestMevRewardDate())))); + } + return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/TempoTransferDestinationItem.java b/src/main/java/com/fireblocks/sdk/model/TempoTransferDestinationItem.java index 7b7c6328..8826b801 100644 --- a/src/main/java/com/fireblocks/sdk/model/TempoTransferDestinationItem.java +++ b/src/main/java/com/fireblocks/sdk/model/TempoTransferDestinationItem.java @@ -102,7 +102,8 @@ public TempoTransferDestinationItem travelRuleMessageId( } /** - * Beta. An identifier of a TravelRule message, already sent to the TravelRule provider. + * Early availability. An identifier of a TravelRule message, already sent to the TravelRule + * provider. * * @return travelRuleMessageId */ diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java b/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java index 2f828300..ec31ca9b 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java @@ -285,8 +285,8 @@ public TransactionRequest feeCurrency(@jakarta.annotation.Nullable String feeCur * For Tempo-based transactions only, the asset used to pay the transaction's network fee, * as an asset ID ([see supported * assets](https://developers.fireblocks.com/api-reference/blockchains-&-assets/list-assets)). - * For any other blockchain, this value is ignored. This feature is currently in beta and might - * be subject to changes. + * For any other blockchain, this value is ignored. This feature is currently in early + * availability and might be subject to changes. * * @return feeCurrency */ diff --git a/src/main/java/com/fireblocks/sdk/model/UpdateWebhookCustomHeadersRequest.java b/src/main/java/com/fireblocks/sdk/model/UpdateWebhookCustomHeadersRequest.java new file mode 100644 index 00000000..d2d6cb52 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/UpdateWebhookCustomHeadersRequest.java @@ -0,0 +1,216 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fireblocks.sdk.ApiClient; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.StringJoiner; + +/** + * A partial update. Every field is optional and an omitted field is left as it is. A change to + * `headers` applies to every webhook and OAuth credential set using the set. + */ +@JsonPropertyOrder({ + UpdateWebhookCustomHeadersRequest.JSON_PROPERTY_NAME, + UpdateWebhookCustomHeadersRequest.JSON_PROPERTY_HEADERS +}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class UpdateWebhookCustomHeadersRequest { + public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; + + public static final String JSON_PROPERTY_HEADERS = "headers"; + @jakarta.annotation.Nullable private Map headers; + + public UpdateWebhookCustomHeadersRequest() {} + + public UpdateWebhookCustomHeadersRequest name(@jakarta.annotation.Nullable String name) { + this.name = name; + return this; + } + + /** + * A label for this set. Omit to leave it unchanged. + * + * @return name + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { + return name; + } + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(@jakarta.annotation.Nullable String name) { + this.name = name; + } + + public UpdateWebhookCustomHeadersRequest headers( + @jakarta.annotation.Nullable Map headers) { + this.headers = headers; + return this; + } + + public UpdateWebhookCustomHeadersRequest putHeadersItem(String key, Object headersItem) { + if (this.headers == null) { + this.headers = new HashMap<>(); + } + this.headers.put(key, headersItem); + return this; + } + + /** + * A delta applied to the headers. A header with a value is added or replaced, a header with + * `null` is deleted, and one you leave out is untouched. A value replaces what is + * stored under that name rather than adding to it, so an array is the complete new set of lines + * for that header. Names are case-insensitive, so a `null` under one casing deletes a + * header stored under another, and names are stored and returned lowercased. The set cannot be + * emptied: a change that would leave no headers is refused with a `400`. To remove + * the set, delete it. The whole field cannot be `null`. Same rules as on create: a + * string or a non-empty array, `Cookie` and `Authorization` string-only, 10 + * headers and under 16 KB in the resulting set, the same reserved names (see the create + * request) never allowed, and values write-only. Entries set to `null` do not count + * towards the limit. The change applies to everything already using the set. Where Fireblocks + * sends its own `Authorization` header, a custom `Authorization` header is + * not sent: on a webhook that has `webhookOauthId` set (an OAuth bearer token), and + * on the token request of OAuth credentials that use `client_secret_basic`. + * + * @return headers + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_HEADERS) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + public Map getHeaders() { + return headers; + } + + @JsonProperty(JSON_PROPERTY_HEADERS) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + public void setHeaders(@jakarta.annotation.Nullable Map headers) { + this.headers = headers; + } + + /** Return true if this UpdateWebhookCustomHeadersRequest object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateWebhookCustomHeadersRequest updateWebhookCustomHeadersRequest = + (UpdateWebhookCustomHeadersRequest) o; + return Objects.equals(this.name, updateWebhookCustomHeadersRequest.name) + && Objects.equals(this.headers, updateWebhookCustomHeadersRequest.headers); + } + + @Override + public int hashCode() { + return Objects.hash(name, headers); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateWebhookCustomHeadersRequest {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" headers: ").append(toIndentedString(headers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `name` to the URL query string + if (getName() != null) { + joiner.add( + String.format( + "%sname%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getName())))); + } + + // add `headers` to the URL query string + if (getHeaders() != null) { + for (String _key : getHeaders().keySet()) { + joiner.add( + String.format( + "%sheaders%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", containerPrefix, _key, containerSuffix), + getHeaders().get(_key), + ApiClient.urlEncode( + ApiClient.valueToString(getHeaders().get(_key))))); + } + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/UpdateWebhookOauthRequest.java b/src/main/java/com/fireblocks/sdk/model/UpdateWebhookOauthRequest.java index ac568f98..76c9a1c6 100644 --- a/src/main/java/com/fireblocks/sdk/model/UpdateWebhookOauthRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/UpdateWebhookOauthRequest.java @@ -26,11 +26,15 @@ /** * A partial update. Every field is optional and an omitted field is left as it is, so `{ * \"clientSecret\": \"new-secret\" }` rotates the secret and changes - * nothing else. A rotation applies to every webhook referencing these credentials. The three custom - * maps merge. A key with a value is upserted, a key with `null` is deleted, a key you - * leave out is untouched, and the whole field set to `null` clears the map. There is no - * ambiguity between the two uses of `null` — one names an entry, the other names the - * field. `webhookMtlsId` is a scalar, so `null` there removes it. + * nothing else. A rotation applies to every webhook referencing these credentials. The result is + * checked against the resulting `authMethod`, not just the fields sent: the secret + * methods must end up with a `clientSecret`, and a `signingAlg` value is only + * valid when the resulting method is `private_key_jwt`. The two custom maps merge. A key + * with a value is upserted, a key with `null` is deleted, a key you leave out is + * untouched, and the whole field set to `null` clears the map. There is no ambiguity + * between the two uses of `null` — one names an entry, the other names the field. + * `webhookMtlsId` and `webhookCustomHeadersId` are scalars, so `null` + * there removes them. */ @JsonPropertyOrder({ UpdateWebhookOauthRequest.JSON_PROPERTY_NAME, @@ -38,9 +42,10 @@ UpdateWebhookOauthRequest.JSON_PROPERTY_CLIENT_SECRET, UpdateWebhookOauthRequest.JSON_PROPERTY_URL, UpdateWebhookOauthRequest.JSON_PROPERTY_AUTH_METHOD, + UpdateWebhookOauthRequest.JSON_PROPERTY_SIGNING_ALG, UpdateWebhookOauthRequest.JSON_PROPERTY_CUSTOM_JWT_CLAIMS, UpdateWebhookOauthRequest.JSON_PROPERTY_CUSTOM_BODY_PARAMS, - UpdateWebhookOauthRequest.JSON_PROPERTY_CUSTOM_HEADERS, + UpdateWebhookOauthRequest.JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID, UpdateWebhookOauthRequest.JSON_PROPERTY_WEBHOOK_MTLS_ID }) @jakarta.annotation.Generated( @@ -62,14 +67,17 @@ public class UpdateWebhookOauthRequest { public static final String JSON_PROPERTY_AUTH_METHOD = "authMethod"; @jakarta.annotation.Nullable private String authMethod; + public static final String JSON_PROPERTY_SIGNING_ALG = "signingAlg"; + @jakarta.annotation.Nullable private WebhookOauthSigningAlg signingAlg; + public static final String JSON_PROPERTY_CUSTOM_JWT_CLAIMS = "customJwtClaims"; @jakarta.annotation.Nullable private Map customJwtClaims; public static final String JSON_PROPERTY_CUSTOM_BODY_PARAMS = "customBodyParams"; @jakarta.annotation.Nullable private Map customBodyParams; - public static final String JSON_PROPERTY_CUSTOM_HEADERS = "customHeaders"; - @jakarta.annotation.Nullable private Map customHeaders; + public static final String JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID = "webhookCustomHeadersId"; + @jakarta.annotation.Nullable private UUID webhookCustomHeadersId; public static final String JSON_PROPERTY_WEBHOOK_MTLS_ID = "webhookMtlsId"; @jakarta.annotation.Nullable private UUID webhookMtlsId; @@ -132,7 +140,11 @@ public UpdateWebhookOauthRequest clientSecret( * A new OAuth client secret. Limited to 480 bytes when UTF-8 encoded, so a secret using * non-ASCII characters fits fewer than 480 of them. Write-only — never returned in any * response. Send this on its own to rotate the secret without changing anything else. Omit to - * leave it unchanged. + * leave it unchanged. Must not be sent with a value when the resulting `authMethod` + * is `private_key_jwt` (`400` otherwise). A secret already stored from + * before a switch to `private_key_jwt` is kept, unused, so switching back needs no + * new one; send `null` to clear it. A secret method must still end up with a secret, + * so `null` is refused unless the resulting method is `private_key_jwt`. * * @return clientSecret */ @@ -179,9 +191,15 @@ public UpdateWebhookOauthRequest authMethod(@jakarta.annotation.Nullable String } /** - * `client_secret_basic`, `client_secret_post` or - * `client_secret_jwt`. Omit to leave it unchanged — it does not revert to the - * default. + * `client_secret_basic`, `client_secret_post`, + * `client_secret_jwt` or `private_key_jwt`. Omit to leave it unchanged — it + * does not revert to the default. Switching to `private_key_jwt` brings back the key + * pairs these credentials held before, if they are still kept, and otherwise generates a + * signing key and its successor. Either way the first assertion names a `kid` your + * authorization server may not hold yet, so it fetches the JWKS again. Switching away from + * `private_key_jwt` empties `signingAlg`, and keeps the key pairs published + * for 30 days before deleting them, so switching back within that time restores them; it needs + * a `clientSecret`, either sent here or still stored. * * @return authMethod */ @@ -198,6 +216,41 @@ public void setAuthMethod(@jakarta.annotation.Nullable String authMethod) { this.authMethod = authMethod; } + public UpdateWebhookOauthRequest signingAlg( + @jakarta.annotation.Nullable WebhookOauthSigningAlg signingAlg) { + this.signingAlg = signingAlg; + return this; + } + + /** + * A new algorithm for the key pairs of `private_key_jwt` credentials. Omit to leave + * it unchanged. A value is only valid when the resulting `authMethod` is + * `private_key_jwt` (`400` otherwise); a switch to + * `private_key_jwt` that omits it uses `RS256`, or the algorithm of the key + * pairs it brings back. `null` means no algorithm, and is accepted only when the + * resulting method is `client_secret_basic`, `client_secret_post` or + * `client_secret_jwt`; with `private_key_jwt` it is a `400`. A + * change generates a new signing key and successor in the new algorithm, and signing switches + * to them at once. The previous keys stay published for 5 minutes and are kept for 30 days: + * changing back within that time restores them, with their original expiry, instead of + * generating new ones, and `revoke_key` can delete them by `kid` until + * then. + * + * @return signingAlg + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SIGNING_ALG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public WebhookOauthSigningAlg getSigningAlg() { + return signingAlg; + } + + @JsonProperty(JSON_PROPERTY_SIGNING_ALG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSigningAlg(@jakarta.annotation.Nullable WebhookOauthSigningAlg signingAlg) { + this.signingAlg = signingAlg; + } + public UpdateWebhookOauthRequest customJwtClaims( @jakarta.annotation.Nullable Map customJwtClaims) { this.customJwtClaims = customJwtClaims; @@ -283,47 +336,36 @@ public void setCustomBodyParams( this.customBodyParams = customBodyParams; } - public UpdateWebhookOauthRequest customHeaders( - @jakarta.annotation.Nullable Map customHeaders) { - this.customHeaders = customHeaders; - return this; - } - - public UpdateWebhookOauthRequest putCustomHeadersItem(String key, String customHeadersItem) { - if (this.customHeaders == null) { - this.customHeaders = new HashMap<>(); - } - this.customHeaders.put(key, customHeadersItem); + public UpdateWebhookOauthRequest webhookCustomHeadersId( + @jakarta.annotation.Nullable UUID webhookCustomHeadersId) { + this.webhookCustomHeadersId = webhookCustomHeadersId; return this; } /** - * A delta applied to the token request headers — not the webhook delivery headers. A header - * with a value is added or replaced, a header with `null` is deleted, and one you - * leave out is untouched. So `{ \"X-Api-Key\": \"new-key\", - * \"X-Tenant\": null }` rotates `X-Api-Key`, drops - * `X-Tenant`, and changes nothing else. Send `customHeaders: null` to clear - * every header in one call. That does not collide with a `null` value on a name: one - * names the header to delete, the other names the whole field. Names are case-insensitive, so a - * `null` under one casing deletes a header stored under another, and names are stored - * and returned lowercased. Same rules as on create: string values only, - * `Content-Type`, `Content-Length` and `Host` reserved, - * `Authorization` only with `client_secret_post` or - * `client_secret_jwt`, resulting set under 16 KB, values write-only. + * The id of the set of custom HTTP headers added to the token request, from + * `/v1/webhooks_settings/custom_headers`. Omit to leave it unchanged, or send + * `null` to stop sending extra headers. The same rules apply as for a webhook + * delivery, including the reserved header names. Under `client_secret_basic` + * Fireblocks sends its own `Authorization` header with the credentials, and a custom + * `Authorization` header is not sent. Replaces the inline `customHeaders` + * field, which is now refused with a `400`: use `webhookCustomHeadersId`. + * An unknown id, or one belonging to another workspace, is a `404`. * - * @return customHeaders + * @return webhookCustomHeadersId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_HEADERS) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public Map getCustomHeaders() { - return customHeaders; + @JsonProperty(JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getWebhookCustomHeadersId() { + return webhookCustomHeadersId; } - @JsonProperty(JSON_PROPERTY_CUSTOM_HEADERS) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomHeaders(@jakarta.annotation.Nullable Map customHeaders) { - this.customHeaders = customHeaders; + @JsonProperty(JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWebhookCustomHeadersId( + @jakarta.annotation.Nullable UUID webhookCustomHeadersId) { + this.webhookCustomHeadersId = webhookCustomHeadersId; } public UpdateWebhookOauthRequest webhookMtlsId( @@ -335,9 +377,8 @@ public UpdateWebhookOauthRequest webhookMtlsId( /** * The id of the mTLS configuration presented to the token endpoint, from * `/v1/webhooks_settings/mtls`. Omit to leave it unchanged, or send `null` - * to stop using mTLS for the token request. Requires the mTLS feature to be enabled for the - * workspace (`403` otherwise), a configuration of this workspace (`404` - * otherwise), and one linked to a private key (`400` otherwise). + * to stop using mTLS for the token request. Requires a configuration of this workspace + * (`404` otherwise) that is linked to a private key (`400` otherwise). * * @return webhookMtlsId */ @@ -369,9 +410,12 @@ public boolean equals(Object o) { && Objects.equals(this.clientSecret, updateWebhookOauthRequest.clientSecret) && Objects.equals(this.url, updateWebhookOauthRequest.url) && Objects.equals(this.authMethod, updateWebhookOauthRequest.authMethod) + && Objects.equals(this.signingAlg, updateWebhookOauthRequest.signingAlg) && Objects.equals(this.customJwtClaims, updateWebhookOauthRequest.customJwtClaims) && Objects.equals(this.customBodyParams, updateWebhookOauthRequest.customBodyParams) - && Objects.equals(this.customHeaders, updateWebhookOauthRequest.customHeaders) + && Objects.equals( + this.webhookCustomHeadersId, + updateWebhookOauthRequest.webhookCustomHeadersId) && Objects.equals(this.webhookMtlsId, updateWebhookOauthRequest.webhookMtlsId); } @@ -383,9 +427,10 @@ public int hashCode() { clientSecret, url, authMethod, + signingAlg, customJwtClaims, customBodyParams, - customHeaders, + webhookCustomHeadersId, webhookMtlsId); } @@ -398,9 +443,12 @@ public String toString() { sb.append(" clientSecret: ").append(toIndentedString(clientSecret)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" authMethod: ").append(toIndentedString(authMethod)).append("\n"); + sb.append(" signingAlg: ").append(toIndentedString(signingAlg)).append("\n"); sb.append(" customJwtClaims: ").append(toIndentedString(customJwtClaims)).append("\n"); sb.append(" customBodyParams: ").append(toIndentedString(customBodyParams)).append("\n"); - sb.append(" customHeaders: ").append(toIndentedString(customHeaders)).append("\n"); + sb.append(" webhookCustomHeadersId: ") + .append(toIndentedString(webhookCustomHeadersId)) + .append("\n"); sb.append(" webhookMtlsId: ").append(toIndentedString(webhookMtlsId)).append("\n"); sb.append("}"); return sb.toString(); @@ -499,6 +547,16 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getAuthMethod())))); } + // add `signingAlg` to the URL query string + if (getSigningAlg() != null) { + joiner.add( + String.format( + "%ssigningAlg%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getSigningAlg())))); + } + // add `customJwtClaims` to the URL query string if (getCustomJwtClaims() != null) { for (String _key : getCustomJwtClaims().keySet()) { @@ -535,22 +593,15 @@ public String toUrlQueryString(String prefix) { } } - // add `customHeaders` to the URL query string - if (getCustomHeaders() != null) { - for (String _key : getCustomHeaders().keySet()) { - joiner.add( - String.format( - "%scustomHeaders%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, _key, containerSuffix), - getCustomHeaders().get(_key), - ApiClient.urlEncode( - ApiClient.valueToString(getCustomHeaders().get(_key))))); - } + // add `webhookCustomHeadersId` to the URL query string + if (getWebhookCustomHeadersId() != null) { + joiner.add( + String.format( + "%swebhookCustomHeadersId%s=%s", + prefix, + suffix, + ApiClient.urlEncode( + ApiClient.valueToString(getWebhookCustomHeadersId())))); } // add `webhookMtlsId` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/UpdateWebhookRequest.java b/src/main/java/com/fireblocks/sdk/model/UpdateWebhookRequest.java index a3c3def9..21708f7a 100644 --- a/src/main/java/com/fireblocks/sdk/model/UpdateWebhookRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/UpdateWebhookRequest.java @@ -18,9 +18,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; -import java.util.HashMap; import java.util.List; -import java.util.Map; import java.util.Objects; import java.util.StringJoiner; import java.util.UUID; @@ -33,7 +31,7 @@ UpdateWebhookRequest.JSON_PROPERTY_ENABLED, UpdateWebhookRequest.JSON_PROPERTY_WEBHOOK_MTLS_ID, UpdateWebhookRequest.JSON_PROPERTY_WEBHOOK_OAUTH_ID, - UpdateWebhookRequest.JSON_PROPERTY_CUSTOM_HEADERS + UpdateWebhookRequest.JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -57,8 +55,8 @@ public class UpdateWebhookRequest { public static final String JSON_PROPERTY_WEBHOOK_OAUTH_ID = "webhookOauthId"; @jakarta.annotation.Nullable private UUID webhookOauthId; - public static final String JSON_PROPERTY_CUSTOM_HEADERS = "customHeaders"; - @jakarta.annotation.Nullable private Map customHeaders; + public static final String JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID = "webhookCustomHeadersId"; + @jakarta.annotation.Nullable private UUID webhookCustomHeadersId; public UpdateWebhookRequest() {} @@ -171,7 +169,8 @@ public UpdateWebhookRequest webhookMtlsId(@jakarta.annotation.Nullable UUID webh * The id of the mTLS configuration this webhook presents when delivering, from * `/v1/webhooks_settings/mtls`. Several webhooks may share one configuration, so * replacing its certificate covers all of them at once. Send `null` to stop using - * mTLS for this webhook. + * mTLS for this webhook. Requires advanced webhook controls to be enabled for the workspace + * (`403` otherwise), except to detach. * * @return webhookMtlsId */ @@ -197,8 +196,10 @@ public UpdateWebhookRequest webhookOauthId(@jakarta.annotation.Nullable UUID web * The id of the OAuth credentials this webhook authenticates with, from * `/v1/webhooks_settings/oauth`. Several webhooks may share one credential set, so * rotating its client secret covers all of them at once. Send `null` to stop using - * OAuth for this webhook. Cannot be combined with an `authorization` custom header on - * the same webhook; a request that would leave both set is rejected. + * OAuth for this webhook. When the webhook has OAuth credentials, Fireblocks sends its own + * `Authorization` header (the bearer token), and a custom `Authorization` + * header from the attached set is not sent. Requires advanced webhook controls to be enabled + * for the workspace (`403` otherwise), except to detach. * * @return webhookOauthId */ @@ -215,47 +216,37 @@ public void setWebhookOauthId(@jakarta.annotation.Nullable UUID webhookOauthId) this.webhookOauthId = webhookOauthId; } - public UpdateWebhookRequest customHeaders( - @jakarta.annotation.Nullable Map customHeaders) { - this.customHeaders = customHeaders; - return this; - } - - public UpdateWebhookRequest putCustomHeadersItem(String key, Object customHeadersItem) { - if (this.customHeaders == null) { - this.customHeaders = new HashMap<>(); - } - this.customHeaders.put(key, customHeadersItem); + public UpdateWebhookRequest webhookCustomHeadersId( + @jakarta.annotation.Nullable UUID webhookCustomHeadersId) { + this.webhookCustomHeadersId = webhookCustomHeadersId; return this; } /** - * A delta applied to the delivery headers. A header with a value is added or replaced, a header - * with `null` is deleted, and one you leave out is untouched. A value replaces what - * is stored under that name rather than adding to it, so an array is the complete new set of - * lines for that header. Send `customHeaders: null` to clear every header in one - * call. That does not collide with a `null` value on a name: one names the header to - * delete, the other names the whole field. Names are case-insensitive, so a `null` - * under one casing deletes a header stored under another. Same rules as on create: string or - * non-empty array, `Cookie` and `Authorization` string-only, 10 headers and - * under 16 KB in the resulting set, the same reserved names, and values write-only. Entries set - * to `null` do not count towards the limit. `Authorization` cannot be - * combined with `webhookOauthId`, though one request may add it and detach the - * credentials together. + * The id of the set of custom HTTP headers sent with this webhook's notifications, from + * `/v1/webhooks_settings/custom_headers`. Several webhooks, and OAuth credentials, + * may share one set, so changing it covers all of them at once. Validated when the set is + * created or changed; attaching checks only that it exists in your workspace. Send + * `null` to stop sending custom headers with this webhook. Replaces the inline + * `customHeaders` field, which is now refused with a `400`, so use + * `webhookCustomHeadersId`. Requires advanced webhook controls to be enabled for the + * workspace (`403` otherwise), except to detach. An unknown id, or one belonging to + * another workspace, is a `404`. * - * @return customHeaders + * @return webhookCustomHeadersId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_HEADERS) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public Map getCustomHeaders() { - return customHeaders; + @JsonProperty(JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getWebhookCustomHeadersId() { + return webhookCustomHeadersId; } - @JsonProperty(JSON_PROPERTY_CUSTOM_HEADERS) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomHeaders(@jakarta.annotation.Nullable Map customHeaders) { - this.customHeaders = customHeaders; + @JsonProperty(JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWebhookCustomHeadersId( + @jakarta.annotation.Nullable UUID webhookCustomHeadersId) { + this.webhookCustomHeadersId = webhookCustomHeadersId; } /** Return true if this UpdateWebhookRequest object is equal to o. */ @@ -274,13 +265,20 @@ public boolean equals(Object o) { && Objects.equals(this.enabled, updateWebhookRequest.enabled) && Objects.equals(this.webhookMtlsId, updateWebhookRequest.webhookMtlsId) && Objects.equals(this.webhookOauthId, updateWebhookRequest.webhookOauthId) - && Objects.equals(this.customHeaders, updateWebhookRequest.customHeaders); + && Objects.equals( + this.webhookCustomHeadersId, updateWebhookRequest.webhookCustomHeadersId); } @Override public int hashCode() { return Objects.hash( - url, description, events, enabled, webhookMtlsId, webhookOauthId, customHeaders); + url, + description, + events, + enabled, + webhookMtlsId, + webhookOauthId, + webhookCustomHeadersId); } @Override @@ -293,7 +291,9 @@ public String toString() { sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); sb.append(" webhookMtlsId: ").append(toIndentedString(webhookMtlsId)).append("\n"); sb.append(" webhookOauthId: ").append(toIndentedString(webhookOauthId)).append("\n"); - sb.append(" customHeaders: ").append(toIndentedString(customHeaders)).append("\n"); + sb.append(" webhookCustomHeadersId: ") + .append(toIndentedString(webhookCustomHeadersId)) + .append("\n"); sb.append("}"); return sb.toString(); } @@ -410,22 +410,15 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getWebhookOauthId())))); } - // add `customHeaders` to the URL query string - if (getCustomHeaders() != null) { - for (String _key : getCustomHeaders().keySet()) { - joiner.add( - String.format( - "%scustomHeaders%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, _key, containerSuffix), - getCustomHeaders().get(_key), - ApiClient.urlEncode( - ApiClient.valueToString(getCustomHeaders().get(_key))))); - } + // add `webhookCustomHeadersId` to the URL query string + if (getWebhookCustomHeadersId() != null) { + joiner.add( + String.format( + "%swebhookCustomHeadersId%s=%s", + prefix, + suffix, + ApiClient.urlEncode( + ApiClient.valueToString(getWebhookCustomHeadersId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/Webhook.java b/src/main/java/com/fireblocks/sdk/model/Webhook.java index 1ef62065..8e3c155d 100644 --- a/src/main/java/com/fireblocks/sdk/model/Webhook.java +++ b/src/main/java/com/fireblocks/sdk/model/Webhook.java @@ -36,7 +36,7 @@ Webhook.JSON_PROPERTY_UPDATED_AT, Webhook.JSON_PROPERTY_WEBHOOK_MTLS_ID, Webhook.JSON_PROPERTY_WEBHOOK_OAUTH_ID, - Webhook.JSON_PROPERTY_CUSTOM_HEADERS + Webhook.JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -104,8 +104,8 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_WEBHOOK_OAUTH_ID = "webhookOauthId"; @jakarta.annotation.Nullable private UUID webhookOauthId; - public static final String JSON_PROPERTY_CUSTOM_HEADERS = "customHeaders"; - @jakarta.annotation.Nullable private List customHeaders; + public static final String JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID = "webhookCustomHeadersId"; + @jakarta.annotation.Nullable private UUID webhookCustomHeadersId; public Webhook() {} @@ -343,35 +343,31 @@ public void setWebhookOauthId(@jakarta.annotation.Nullable UUID webhookOauthId) this.webhookOauthId = webhookOauthId; } - public Webhook customHeaders(@jakarta.annotation.Nullable List customHeaders) { - this.customHeaders = customHeaders; - return this; - } - - public Webhook addCustomHeadersItem(String customHeadersItem) { - if (this.customHeaders == null) { - this.customHeaders = new ArrayList<>(); - } - this.customHeaders.add(customHeadersItem); + public Webhook webhookCustomHeadersId( + @jakarta.annotation.Nullable UUID webhookCustomHeadersId) { + this.webhookCustomHeadersId = webhookCustomHeadersId; return this; } /** - * Names of the custom headers configured for this webhook. Header values are never returned. + * The id of the set of custom headers sent with this webhook's notifications. Absent when + * the webhook sends none. Read the set itself from + * `/v1/webhooks_settings/custom_headers/{webhookCustomHeadersId}`. * - * @return customHeaders + * @return webhookCustomHeadersId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_HEADERS) + @JsonProperty(JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getCustomHeaders() { - return customHeaders; + public UUID getWebhookCustomHeadersId() { + return webhookCustomHeadersId; } - @JsonProperty(JSON_PROPERTY_CUSTOM_HEADERS) + @JsonProperty(JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomHeaders(@jakarta.annotation.Nullable List customHeaders) { - this.customHeaders = customHeaders; + public void setWebhookCustomHeadersId( + @jakarta.annotation.Nullable UUID webhookCustomHeadersId) { + this.webhookCustomHeadersId = webhookCustomHeadersId; } /** Return true if this Webhook object is equal to o. */ @@ -393,7 +389,7 @@ public boolean equals(Object o) { && Objects.equals(this.updatedAt, webhook.updatedAt) && Objects.equals(this.webhookMtlsId, webhook.webhookMtlsId) && Objects.equals(this.webhookOauthId, webhook.webhookOauthId) - && Objects.equals(this.customHeaders, webhook.customHeaders); + && Objects.equals(this.webhookCustomHeadersId, webhook.webhookCustomHeadersId); } @Override @@ -408,7 +404,7 @@ public int hashCode() { updatedAt, webhookMtlsId, webhookOauthId, - customHeaders); + webhookCustomHeadersId); } @Override @@ -424,7 +420,9 @@ public String toString() { sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" webhookMtlsId: ").append(toIndentedString(webhookMtlsId)).append("\n"); sb.append(" webhookOauthId: ").append(toIndentedString(webhookOauthId)).append("\n"); - sb.append(" customHeaders: ").append(toIndentedString(customHeaders)).append("\n"); + sb.append(" webhookCustomHeadersId: ") + .append(toIndentedString(webhookCustomHeadersId)) + .append("\n"); sb.append("}"); return sb.toString(); } @@ -569,21 +567,15 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getWebhookOauthId())))); } - // add `customHeaders` to the URL query string - if (getCustomHeaders() != null) { - for (int i = 0; i < getCustomHeaders().size(); i++) { - joiner.add( - String.format( - "%scustomHeaders%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getCustomHeaders().get(i))))); - } + // add `webhookCustomHeadersId` to the URL query string + if (getWebhookCustomHeadersId() != null) { + joiner.add( + String.format( + "%swebhookCustomHeadersId%s=%s", + prefix, + suffix, + ApiClient.urlEncode( + ApiClient.valueToString(getWebhookCustomHeadersId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/WebhookCustomHeadersSet.java b/src/main/java/com/fireblocks/sdk/model/WebhookCustomHeadersSet.java new file mode 100644 index 00000000..aef83bd9 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/WebhookCustomHeadersSet.java @@ -0,0 +1,336 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fireblocks.sdk.ApiClient; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.StringJoiner; +import java.util.UUID; + +/** + * A stored set of custom HTTP headers, referenced by webhooks and by OAuth credentials through + * their `webhookCustomHeadersId`. On a webhook the headers go out with every + * notification; on OAuth credentials they go out on the token request to your authorization server. + * Header values are write-only: only the names are returned. + */ +@JsonPropertyOrder({ + WebhookCustomHeadersSet.JSON_PROPERTY_ID, + WebhookCustomHeadersSet.JSON_PROPERTY_NAME, + WebhookCustomHeadersSet.JSON_PROPERTY_HEADER_NAMES, + WebhookCustomHeadersSet.JSON_PROPERTY_CREATED_AT, + WebhookCustomHeadersSet.JSON_PROPERTY_UPDATED_AT +}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class WebhookCustomHeadersSet { + public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nonnull private UUID id; + + public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; + + public static final String JSON_PROPERTY_HEADER_NAMES = "headerNames"; + @jakarta.annotation.Nonnull private List headerNames; + + public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; + @jakarta.annotation.Nonnull private Long createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; + @jakarta.annotation.Nonnull private Long updatedAt; + + public WebhookCustomHeadersSet() {} + + @JsonCreator + public WebhookCustomHeadersSet( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) UUID id, + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, + @JsonProperty(value = JSON_PROPERTY_HEADER_NAMES, required = true) + List headerNames, + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) Long createdAt, + @JsonProperty(value = JSON_PROPERTY_UPDATED_AT, required = true) Long updatedAt) { + this.id = id; + this.name = name; + this.headerNames = headerNames; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + + public WebhookCustomHeadersSet id(@jakarta.annotation.Nonnull UUID id) { + this.id = id; + return this; + } + + /** + * The id of the custom headers set. Pass this as a webhook's, or OAuth credentials', + * `webhookCustomHeadersId` to attach it. + * + * @return id + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public UUID getId() { + return id; + } + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setId(@jakarta.annotation.Nonnull UUID id) { + this.id = id; + } + + public WebhookCustomHeadersSet name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * The label given to this set. + * + * @return name + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { + return name; + } + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + public WebhookCustomHeadersSet headerNames( + @jakarta.annotation.Nonnull List headerNames) { + this.headerNames = headerNames; + return this; + } + + public WebhookCustomHeadersSet addHeaderNamesItem(String headerNamesItem) { + if (this.headerNames == null) { + this.headerNames = new ArrayList<>(); + } + this.headerNames.add(headerNamesItem); + return this; + } + + /** + * Names of the headers in the set, lowercased. Header values are never returned. + * + * @return headerNames + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_HEADER_NAMES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getHeaderNames() { + return headerNames; + } + + @JsonProperty(JSON_PROPERTY_HEADER_NAMES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setHeaderNames(@jakarta.annotation.Nonnull List headerNames) { + this.headerNames = headerNames; + } + + public WebhookCustomHeadersSet createdAt(@jakarta.annotation.Nonnull Long createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * The date and time the set was created, in milliseconds. + * + * @return createdAt + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Long getCreatedAt() { + return createdAt; + } + + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCreatedAt(@jakarta.annotation.Nonnull Long createdAt) { + this.createdAt = createdAt; + } + + public WebhookCustomHeadersSet updatedAt(@jakarta.annotation.Nonnull Long updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * The date and time the set was last updated, in milliseconds. + * + * @return updatedAt + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Long getUpdatedAt() { + return updatedAt; + } + + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setUpdatedAt(@jakarta.annotation.Nonnull Long updatedAt) { + this.updatedAt = updatedAt; + } + + /** Return true if this WebhookCustomHeadersSet object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookCustomHeadersSet webhookCustomHeadersSet = (WebhookCustomHeadersSet) o; + return Objects.equals(this.id, webhookCustomHeadersSet.id) + && Objects.equals(this.name, webhookCustomHeadersSet.name) + && Objects.equals(this.headerNames, webhookCustomHeadersSet.headerNames) + && Objects.equals(this.createdAt, webhookCustomHeadersSet.createdAt) + && Objects.equals(this.updatedAt, webhookCustomHeadersSet.updatedAt); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, headerNames, createdAt, updatedAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookCustomHeadersSet {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" headerNames: ").append(toIndentedString(headerNames)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `id` to the URL query string + if (getId() != null) { + joiner.add( + String.format( + "%sid%s=%s", + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); + } + + // add `name` to the URL query string + if (getName() != null) { + joiner.add( + String.format( + "%sname%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getName())))); + } + + // add `headerNames` to the URL query string + if (getHeaderNames() != null) { + for (int i = 0; i < getHeaderNames().size(); i++) { + joiner.add( + String.format( + "%sheaderNames%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", containerPrefix, i, containerSuffix), + ApiClient.urlEncode( + ApiClient.valueToString(getHeaderNames().get(i))))); + } + } + + // add `createdAt` to the URL query string + if (getCreatedAt() != null) { + joiner.add( + String.format( + "%screatedAt%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); + } + + // add `updatedAt` to the URL query string + if (getUpdatedAt() != null) { + joiner.add( + String.format( + "%supdatedAt%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getUpdatedAt())))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/WebhookOauthCredentials.java b/src/main/java/com/fireblocks/sdk/model/WebhookOauthCredentials.java index 7fc4b252..77130e26 100644 --- a/src/main/java/com/fireblocks/sdk/model/WebhookOauthCredentials.java +++ b/src/main/java/com/fireblocks/sdk/model/WebhookOauthCredentials.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fireblocks.sdk.ApiClient; +import java.net.URI; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -30,8 +31,11 @@ * `Authorization: Bearer {token}`, using a token fetched from `url` and cached * until it expires, so your authorization server sees far fewer token requests than deliveries. * Secret material is never returned: `clientSecret` is absent from this schema entirely, - * and the `customJwtClaims`, `customBodyParams` and `customHeaders` - * fields are reduced to their names, without the configured values. + * and the `customJwtClaims` and `customBodyParams` fields are reduced to their + * names, without the configured values. Extra token request headers are a separate resource, + * referenced by `webhookCustomHeadersId`. The key pairs of `private_key_jwt` + * credentials are never returned here either; their public halves are published at the URL in + * `jwksUri`. */ @JsonPropertyOrder({ WebhookOauthCredentials.JSON_PROPERTY_ID, @@ -39,12 +43,14 @@ WebhookOauthCredentials.JSON_PROPERTY_CLIENT_ID, WebhookOauthCredentials.JSON_PROPERTY_URL, WebhookOauthCredentials.JSON_PROPERTY_AUTH_METHOD, + WebhookOauthCredentials.JSON_PROPERTY_SIGNING_ALG, WebhookOauthCredentials.JSON_PROPERTY_CUSTOM_JWT_CLAIMS, WebhookOauthCredentials.JSON_PROPERTY_CUSTOM_BODY_PARAMS, - WebhookOauthCredentials.JSON_PROPERTY_CUSTOM_HEADERS, + WebhookOauthCredentials.JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID, WebhookOauthCredentials.JSON_PROPERTY_WEBHOOK_MTLS_ID, WebhookOauthCredentials.JSON_PROPERTY_CREATED_AT, - WebhookOauthCredentials.JSON_PROPERTY_UPDATED_AT + WebhookOauthCredentials.JSON_PROPERTY_UPDATED_AT, + WebhookOauthCredentials.JSON_PROPERTY_JWKS_URI }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -65,14 +71,17 @@ public class WebhookOauthCredentials { public static final String JSON_PROPERTY_AUTH_METHOD = "authMethod"; @jakarta.annotation.Nonnull private String authMethod = "client_secret_basic"; + public static final String JSON_PROPERTY_SIGNING_ALG = "signingAlg"; + @jakarta.annotation.Nullable private WebhookOauthSigningAlg signingAlg; + public static final String JSON_PROPERTY_CUSTOM_JWT_CLAIMS = "customJwtClaims"; @jakarta.annotation.Nullable private List customJwtClaims; public static final String JSON_PROPERTY_CUSTOM_BODY_PARAMS = "customBodyParams"; @jakarta.annotation.Nullable private List customBodyParams; - public static final String JSON_PROPERTY_CUSTOM_HEADERS = "customHeaders"; - @jakarta.annotation.Nullable private List customHeaders; + public static final String JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID = "webhookCustomHeadersId"; + @jakarta.annotation.Nullable private UUID webhookCustomHeadersId; public static final String JSON_PROPERTY_WEBHOOK_MTLS_ID = "webhookMtlsId"; @jakarta.annotation.Nullable private UUID webhookMtlsId; @@ -83,6 +92,9 @@ public class WebhookOauthCredentials { public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; @jakarta.annotation.Nonnull private Long updatedAt; + public static final String JSON_PROPERTY_JWKS_URI = "jwksUri"; + @jakarta.annotation.Nullable private URI jwksUri; + public WebhookOauthCredentials() {} @JsonCreator @@ -203,9 +215,9 @@ public WebhookOauthCredentials authMethod(@jakarta.annotation.Nonnull String aut /** * How the client credentials are presented to the token endpoint: - * `client_secret_basic`, `client_secret_post` or - * `client_secret_jwt`. Credentials created without this field report - * `client_secret_basic`, which is what they use. + * `client_secret_basic`, `client_secret_post`, + * `client_secret_jwt` or `private_key_jwt`. Credentials created without + * this field report `client_secret_basic`, which is what they use. * * @return authMethod */ @@ -222,6 +234,33 @@ public void setAuthMethod(@jakarta.annotation.Nonnull String authMethod) { this.authMethod = authMethod; } + public WebhookOauthCredentials signingAlg( + @jakarta.annotation.Nullable WebhookOauthSigningAlg signingAlg) { + this.signingAlg = signingAlg; + return this; + } + + /** + * Algorithm of the key pairs, and of the assertions signed with them. Present only when + * `authMethod` is `private_key_jwt`. Which key is signing is never + * returned; each assertion names it in its `kid` header. Defaults to + * `RS256` on create only. + * + * @return signingAlg + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SIGNING_ALG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public WebhookOauthSigningAlg getSigningAlg() { + return signingAlg; + } + + @JsonProperty(JSON_PROPERTY_SIGNING_ALG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSigningAlg(@jakarta.annotation.Nullable WebhookOauthSigningAlg signingAlg) { + this.signingAlg = signingAlg; + } + public WebhookOauthCredentials customJwtClaims( @jakarta.annotation.Nullable List customJwtClaims) { this.customJwtClaims = customJwtClaims; @@ -288,39 +327,32 @@ public void setCustomBodyParams(@jakarta.annotation.Nullable List custom this.customBodyParams = customBodyParams; } - public WebhookOauthCredentials customHeaders( - @jakarta.annotation.Nullable List customHeaders) { - this.customHeaders = customHeaders; - return this; - } - - public WebhookOauthCredentials addCustomHeadersItem(String customHeadersItem) { - if (this.customHeaders == null) { - this.customHeaders = new ArrayList<>(); - } - this.customHeaders.add(customHeadersItem); + public WebhookOauthCredentials webhookCustomHeadersId( + @jakarta.annotation.Nullable UUID webhookCustomHeadersId) { + this.webhookCustomHeadersId = webhookCustomHeadersId; return this; } /** - * Names of the additional HTTP headers added to **the token request sent to the authorization - * server** — not to the webhook delivery, which has its own separate `customHeaders`. - * Header values are write-only and are never returned. Absent when no custom headers are - * configured. + * The id of the set of custom headers added to **the token request sent to the authorization + * server** — not to the webhook delivery. Absent when the token request adds none. Header + * values are write-only and are never returned; read the header names from + * `/v1/webhooks_settings/custom_headers/{webhookCustomHeadersId}`. * - * @return customHeaders + * @return webhookCustomHeadersId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_HEADERS) + @JsonProperty(JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getCustomHeaders() { - return customHeaders; + public UUID getWebhookCustomHeadersId() { + return webhookCustomHeadersId; } - @JsonProperty(JSON_PROPERTY_CUSTOM_HEADERS) + @JsonProperty(JSON_PROPERTY_WEBHOOK_CUSTOM_HEADERS_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomHeaders(@jakarta.annotation.Nullable List customHeaders) { - this.customHeaders = customHeaders; + public void setWebhookCustomHeadersId( + @jakarta.annotation.Nullable UUID webhookCustomHeadersId) { + this.webhookCustomHeadersId = webhookCustomHeadersId; } public WebhookOauthCredentials webhookMtlsId(@jakarta.annotation.Nullable UUID webhookMtlsId) { @@ -394,6 +426,19 @@ public void setUpdatedAt(@jakarta.annotation.Nonnull Long updatedAt) { this.updatedAt = updatedAt; } + /** + * The public URL of these credentials' JWKS. Register it as the client's jwks_uri on + * your authorization server. Present for private_key_jwt only. + * + * @return jwksUri + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_JWKS_URI) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public URI getJwksUri() { + return jwksUri; + } + /** Return true if this WebhookOauthCredentials object is equal to o. */ @Override public boolean equals(Object o) { @@ -409,12 +454,15 @@ public boolean equals(Object o) { && Objects.equals(this.clientId, webhookOauthCredentials.clientId) && Objects.equals(this.url, webhookOauthCredentials.url) && Objects.equals(this.authMethod, webhookOauthCredentials.authMethod) + && Objects.equals(this.signingAlg, webhookOauthCredentials.signingAlg) && Objects.equals(this.customJwtClaims, webhookOauthCredentials.customJwtClaims) && Objects.equals(this.customBodyParams, webhookOauthCredentials.customBodyParams) - && Objects.equals(this.customHeaders, webhookOauthCredentials.customHeaders) + && Objects.equals( + this.webhookCustomHeadersId, webhookOauthCredentials.webhookCustomHeadersId) && Objects.equals(this.webhookMtlsId, webhookOauthCredentials.webhookMtlsId) && Objects.equals(this.createdAt, webhookOauthCredentials.createdAt) - && Objects.equals(this.updatedAt, webhookOauthCredentials.updatedAt); + && Objects.equals(this.updatedAt, webhookOauthCredentials.updatedAt) + && Objects.equals(this.jwksUri, webhookOauthCredentials.jwksUri); } @Override @@ -425,12 +473,14 @@ public int hashCode() { clientId, url, authMethod, + signingAlg, customJwtClaims, customBodyParams, - customHeaders, + webhookCustomHeadersId, webhookMtlsId, createdAt, - updatedAt); + updatedAt, + jwksUri); } @Override @@ -442,12 +492,16 @@ public String toString() { sb.append(" clientId: ").append(toIndentedString(clientId)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" authMethod: ").append(toIndentedString(authMethod)).append("\n"); + sb.append(" signingAlg: ").append(toIndentedString(signingAlg)).append("\n"); sb.append(" customJwtClaims: ").append(toIndentedString(customJwtClaims)).append("\n"); sb.append(" customBodyParams: ").append(toIndentedString(customBodyParams)).append("\n"); - sb.append(" customHeaders: ").append(toIndentedString(customHeaders)).append("\n"); + sb.append(" webhookCustomHeadersId: ") + .append(toIndentedString(webhookCustomHeadersId)) + .append("\n"); sb.append(" webhookMtlsId: ").append(toIndentedString(webhookMtlsId)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" jwksUri: ").append(toIndentedString(jwksUri)).append("\n"); sb.append("}"); return sb.toString(); } @@ -543,6 +597,16 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getAuthMethod())))); } + // add `signingAlg` to the URL query string + if (getSigningAlg() != null) { + joiner.add( + String.format( + "%ssigningAlg%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getSigningAlg())))); + } + // add `customJwtClaims` to the URL query string if (getCustomJwtClaims() != null) { for (int i = 0; i < getCustomJwtClaims().size(); i++) { @@ -577,21 +641,15 @@ public String toUrlQueryString(String prefix) { } } - // add `customHeaders` to the URL query string - if (getCustomHeaders() != null) { - for (int i = 0; i < getCustomHeaders().size(); i++) { - joiner.add( - String.format( - "%scustomHeaders%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getCustomHeaders().get(i))))); - } + // add `webhookCustomHeadersId` to the URL query string + if (getWebhookCustomHeadersId() != null) { + joiner.add( + String.format( + "%swebhookCustomHeadersId%s=%s", + prefix, + suffix, + ApiClient.urlEncode( + ApiClient.valueToString(getWebhookCustomHeadersId())))); } // add `webhookMtlsId` to the URL query string @@ -624,6 +682,16 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getUpdatedAt())))); } + // add `jwksUri` to the URL query string + if (getJwksUri() != null) { + joiner.add( + String.format( + "%sjwksUri%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getJwksUri())))); + } + return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/WebhookOauthSigningAlg.java b/src/main/java/com/fireblocks/sdk/model/WebhookOauthSigningAlg.java new file mode 100644 index 00000000..48a89b93 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/WebhookOauthSigningAlg.java @@ -0,0 +1,72 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Algorithm of the key pairs Fireblocks holds for OAuth credentials using + * `private_key_jwt`, and so of the JWT assertions signed with them. `RS256` and + * `PS256` use RSA 2048-bit keys, `ES256` uses EC P-256 keys. `RS256` + * is what most authorization servers expect; `PS256` and `ES256` suit servers + * on a stricter profile, such as FAPI. + */ +public enum WebhookOauthSigningAlg { + RS256("RS256"), + + PS256("PS256"), + + ES256("ES256"); + + private String value; + + WebhookOauthSigningAlg(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static WebhookOauthSigningAlg fromValue(String value) { + for (WebhookOauthSigningAlg b : WebhookOauthSigningAlg.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + if (prefix == null) { + prefix = ""; + } + + return String.format("%s=%s", prefix, this.toString()); + } +} diff --git a/src/test/java/com/fireblocks/sdk/FireblocksTest.java b/src/test/java/com/fireblocks/sdk/FireblocksTest.java index 115744ba..3a55b1d0 100644 --- a/src/test/java/com/fireblocks/sdk/FireblocksTest.java +++ b/src/test/java/com/fireblocks/sdk/FireblocksTest.java @@ -364,11 +364,11 @@ public void testGetApiUserApi() { } @Test - public void testGetApprovalsBetaApi() { + public void testGetApprovalsApi() { setupFireblocks(true, null, null); - ApprovalsBetaApi approvalsBeta = fireblocks.approvalsBeta(); - Assert.assertNotNull(approvalsBeta); - Assert.assertSame(approvalsBeta, fireblocks.approvalsBeta()); + ApprovalsApi approvals = fireblocks.approvals(); + Assert.assertNotNull(approvals); + Assert.assertSame(approvals, fireblocks.approvals()); } @Test @@ -380,11 +380,11 @@ public void testGetAuditLogsApi() { } @Test - public void testGetBlockchainLinkBetaApi() { + public void testGetBlockchainLinkApi() { setupFireblocks(true, null, null); - BlockchainLinkBetaApi blockchainLinkBeta = fireblocks.blockchainLinkBeta(); - Assert.assertNotNull(blockchainLinkBeta); - Assert.assertSame(blockchainLinkBeta, fireblocks.blockchainLinkBeta()); + BlockchainLinkApi blockchainLink = fireblocks.blockchainLink(); + Assert.assertNotNull(blockchainLink); + Assert.assertSame(blockchainLink, fireblocks.blockchainLink()); } @Test @@ -396,11 +396,11 @@ public void testGetBlockchainsAssetsApi() { } @Test - public void testGetCantonBetaApi() { + public void testGetCantonApi() { setupFireblocks(true, null, null); - CantonBetaApi cantonBeta = fireblocks.cantonBeta(); - Assert.assertNotNull(cantonBeta); - Assert.assertSame(cantonBeta, fireblocks.cantonBeta()); + CantonApi canton = fireblocks.canton(); + Assert.assertNotNull(canton); + Assert.assertSame(canton, fireblocks.canton()); } @Test @@ -412,12 +412,11 @@ public void testGetComplianceApi() { } @Test - public void testGetComplianceOrchestratorBetaApi() { + public void testGetComplianceOrchestratorApi() { setupFireblocks(true, null, null); - ComplianceOrchestratorBetaApi complianceOrchestratorBeta = - fireblocks.complianceOrchestratorBeta(); - Assert.assertNotNull(complianceOrchestratorBeta); - Assert.assertSame(complianceOrchestratorBeta, fireblocks.complianceOrchestratorBeta()); + ComplianceOrchestratorApi complianceOrchestrator = fireblocks.complianceOrchestrator(); + Assert.assertNotNull(complianceOrchestrator); + Assert.assertSame(complianceOrchestrator, fireblocks.complianceOrchestrator()); } @Test @@ -543,11 +542,11 @@ public void testGetGasStationsApi() { } @Test - public void testGetGenieBetaApi() { + public void testGetGenieApi() { setupFireblocks(true, null, null); - GenieBetaApi genieBeta = fireblocks.genieBeta(); - Assert.assertNotNull(genieBeta); - Assert.assertSame(genieBeta, fireblocks.genieBeta()); + GenieApi genie = fireblocks.genie(); + Assert.assertNotNull(genie); + Assert.assertSame(genie, fireblocks.genie()); } @Test @@ -607,11 +606,11 @@ public void testGetOnchainDataApi() { } @Test - public void testGetOtaBetaApi() { + public void testGetOtaApi() { setupFireblocks(true, null, null); - OtaBetaApi otaBeta = fireblocks.otaBeta(); - Assert.assertNotNull(otaBeta); - Assert.assertSame(otaBeta, fireblocks.otaBeta()); + OtaApi ota = fireblocks.ota(); + Assert.assertNotNull(ota); + Assert.assertSame(ota, fireblocks.ota()); } @Test @@ -631,19 +630,11 @@ public void testGetPolicyEditorV2Api() { } @Test - public void testGetPolicyEditorV2BetaApi() { + public void testGetReportsApi() { setupFireblocks(true, null, null); - PolicyEditorV2BetaApi policyEditorV2Beta = fireblocks.policyEditorV2Beta(); - Assert.assertNotNull(policyEditorV2Beta); - Assert.assertSame(policyEditorV2Beta, fireblocks.policyEditorV2Beta()); - } - - @Test - public void testGetReportsBetaApi() { - setupFireblocks(true, null, null); - ReportsBetaApi reportsBeta = fireblocks.reportsBeta(); - Assert.assertNotNull(reportsBeta); - Assert.assertSame(reportsBeta, fireblocks.reportsBeta()); + ReportsApi reports = fireblocks.reports(); + Assert.assertNotNull(reports); + Assert.assertSame(reports, fireblocks.reports()); } @Test @@ -688,11 +679,11 @@ public void testGetTagsApi() { } @Test - public void testGetTempoBetaApi() { + public void testGetTempoApi() { setupFireblocks(true, null, null); - TempoBetaApi tempoBeta = fireblocks.tempoBeta(); - Assert.assertNotNull(tempoBeta); - Assert.assertSame(tempoBeta, fireblocks.tempoBeta()); + TempoApi tempo = fireblocks.tempo(); + Assert.assertNotNull(tempo); + Assert.assertSame(tempo, fireblocks.tempo()); } @Test @@ -736,11 +727,11 @@ public void testGetTravelRuleApi() { } @Test - public void testGetUserGroupsBetaApi() { + public void testGetUserGroupsApi() { setupFireblocks(true, null, null); - UserGroupsBetaApi userGroupsBeta = fireblocks.userGroupsBeta(); - Assert.assertNotNull(userGroupsBeta); - Assert.assertSame(userGroupsBeta, fireblocks.userGroupsBeta()); + UserGroupsApi userGroups = fireblocks.userGroups(); + Assert.assertNotNull(userGroups); + Assert.assertSame(userGroups, fireblocks.userGroups()); } @Test @@ -808,10 +799,10 @@ public void testGetWorkspaceApi() { } @Test - public void testGetWorkspaceStatusBetaApi() { + public void testGetWorkspaceStatusApi() { setupFireblocks(true, null, null); - WorkspaceStatusBetaApi workspaceStatusBeta = fireblocks.workspaceStatusBeta(); - Assert.assertNotNull(workspaceStatusBeta); - Assert.assertSame(workspaceStatusBeta, fireblocks.workspaceStatusBeta()); + WorkspaceStatusApi workspaceStatus = fireblocks.workspaceStatus(); + Assert.assertNotNull(workspaceStatus); + Assert.assertSame(workspaceStatus, fireblocks.workspaceStatus()); } } diff --git a/src/test/java/com/fireblocks/sdk/api/ApprovalsBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/ApprovalsApiTest.java similarity index 98% rename from src/test/java/com/fireblocks/sdk/api/ApprovalsBetaApiTest.java rename to src/test/java/com/fireblocks/sdk/api/ApprovalsApiTest.java index 68bb707b..fd53bbb4 100644 --- a/src/test/java/com/fireblocks/sdk/api/ApprovalsBetaApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/ApprovalsApiTest.java @@ -25,11 +25,11 @@ import org.junit.Ignore; import org.junit.Test; -/** API tests for ApprovalsBetaApi */ +/** API tests for ApprovalsApi */ @Ignore -public class ApprovalsBetaApiTest { +public class ApprovalsApiTest { - private final ApprovalsBetaApi api = new ApprovalsBetaApi(); + private final ApprovalsApi api = new ApprovalsApi(); /** * Approve an approval request diff --git a/src/test/java/com/fireblocks/sdk/api/BlockchainLinkBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/BlockchainLinkApiTest.java similarity index 97% rename from src/test/java/com/fireblocks/sdk/api/BlockchainLinkBetaApiTest.java rename to src/test/java/com/fireblocks/sdk/api/BlockchainLinkApiTest.java index 6c47a9f8..6aaf0cc7 100644 --- a/src/test/java/com/fireblocks/sdk/api/BlockchainLinkBetaApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/BlockchainLinkApiTest.java @@ -34,11 +34,11 @@ import org.junit.Ignore; import org.junit.Test; -/** API tests for BlockchainLinkBetaApi */ +/** API tests for BlockchainLinkApi */ @Ignore -public class BlockchainLinkBetaApiTest { +public class BlockchainLinkApiTest { - private final BlockchainLinkBetaApi api = new BlockchainLinkBetaApi(); + private final BlockchainLinkApi api = new BlockchainLinkApi(); /** * Activate a blockchain (triggers activation workflow) diff --git a/src/test/java/com/fireblocks/sdk/api/CantonBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/CantonApiTest.java similarity index 94% rename from src/test/java/com/fireblocks/sdk/api/CantonBetaApiTest.java rename to src/test/java/com/fireblocks/sdk/api/CantonApiTest.java index e21b3e5b..0d73d6fb 100644 --- a/src/test/java/com/fireblocks/sdk/api/CantonBetaApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/CantonApiTest.java @@ -22,11 +22,11 @@ import org.junit.Ignore; import org.junit.Test; -/** API tests for CantonBetaApi */ +/** API tests for CantonApi */ @Ignore -public class CantonBetaApiTest { +public class CantonApiTest { - private final CantonBetaApi api = new CantonBetaApi(); + private final CantonApi api = new CantonApi(); /** * Make a Canton call diff --git a/src/test/java/com/fireblocks/sdk/api/ComplianceOrchestratorBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/ComplianceOrchestratorApiTest.java similarity index 95% rename from src/test/java/com/fireblocks/sdk/api/ComplianceOrchestratorBetaApiTest.java rename to src/test/java/com/fireblocks/sdk/api/ComplianceOrchestratorApiTest.java index c813492f..87a9f2df 100644 --- a/src/test/java/com/fireblocks/sdk/api/ComplianceOrchestratorBetaApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/ComplianceOrchestratorApiTest.java @@ -24,11 +24,11 @@ import org.junit.Ignore; import org.junit.Test; -/** API tests for ComplianceOrchestratorBetaApi */ +/** API tests for ComplianceOrchestratorApi */ @Ignore -public class ComplianceOrchestratorBetaApiTest { +public class ComplianceOrchestratorApiTest { - private final ComplianceOrchestratorBetaApi api = new ComplianceOrchestratorBetaApi(); + private final ComplianceOrchestratorApi api = new ComplianceOrchestratorApi(); /** * Get a Compliance Orchestrator screening's result diff --git a/src/test/java/com/fireblocks/sdk/api/EmbeddedWalletsApiTest.java b/src/test/java/com/fireblocks/sdk/api/EmbeddedWalletsApiTest.java index f7d00492..4ce3281a 100644 --- a/src/test/java/com/fireblocks/sdk/api/EmbeddedWalletsApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/EmbeddedWalletsApiTest.java @@ -310,6 +310,32 @@ public void getEmbeddedWalletsTest() { api.getEmbeddedWallets(pageCursor, pageSize, sort, order, enabled); } + /** + * Get the public key of an asset + * + *

Gets the public key of an asset associated with a specific account within a Non-Custodial + * Wallet + */ + @Test + public void getPublicKeyInfoForAddressNcwTest() { + UUID xEndUserWalletId = null; + String walletId = null; + String accountId = null; + String assetId = null; + BigDecimal change = null; + BigDecimal addressIndex = null; + Boolean compressed = null; + CompletableFuture> response = + api.getPublicKeyInfoForAddressNcw( + xEndUserWalletId, + walletId, + accountId, + assetId, + change, + addressIndex, + compressed); + } + /** * Get the public key for a derivation path * diff --git a/src/test/java/com/fireblocks/sdk/api/GenieBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/GenieApiTest.java similarity index 88% rename from src/test/java/com/fireblocks/sdk/api/GenieBetaApiTest.java rename to src/test/java/com/fireblocks/sdk/api/GenieApiTest.java index b97cabcb..2654f410 100644 --- a/src/test/java/com/fireblocks/sdk/api/GenieBetaApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/GenieApiTest.java @@ -21,19 +21,19 @@ import org.junit.Ignore; import org.junit.Test; -/** API tests for GenieBetaApi */ +/** API tests for GenieApi */ @Ignore -public class GenieBetaApiTest { +public class GenieApiTest { - private final GenieBetaApi api = new GenieBetaApi(); + private final GenieApi api = new GenieApi(); /** * Create a Genie session * *

Starts a new conversation with Genie, the Fireblocks AI assistant. Returns a * `sessionId` — pass it when sending messages, and reuse it across calls to keep one - * continuous conversation. **Note:** This endpoint is currently in beta and might be subject to - * changes. + * continuous conversation. **Note:** This endpoint is currently in early availability and might + * be subject to changes. */ @Test public void createGenieSessionTest() { @@ -47,7 +47,8 @@ public void createGenieSessionTest() { * *

Sends a question to Genie and returns a single answer. Reuse the `sessionId` * from the original session on follow-up messages to continue the conversation with prior - * context. **Note:** This endpoint is currently in beta and might be subject to changes. + * context. **Note:** This endpoint is currently in early availability and might be subject to + * changes. */ @Test public void sendGenieMessageTest() { diff --git a/src/test/java/com/fireblocks/sdk/api/OtaBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/OtaApiTest.java similarity index 93% rename from src/test/java/com/fireblocks/sdk/api/OtaBetaApiTest.java rename to src/test/java/com/fireblocks/sdk/api/OtaApiTest.java index 7be468d4..2c53f4a6 100644 --- a/src/test/java/com/fireblocks/sdk/api/OtaBetaApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/OtaApiTest.java @@ -21,11 +21,11 @@ import org.junit.Ignore; import org.junit.Test; -/** API tests for OtaBetaApi */ +/** API tests for OtaApi */ @Ignore -public class OtaBetaApiTest { +public class OtaApiTest { - private final OtaBetaApi api = new OtaBetaApi(); + private final OtaApi api = new OtaApi(); /** * Returns current OTA status diff --git a/src/test/java/com/fireblocks/sdk/api/PaymentsPayoutApiTest.java b/src/test/java/com/fireblocks/sdk/api/PaymentsPayoutApiTest.java index 261680d1..eebab00e 100644 --- a/src/test/java/com/fireblocks/sdk/api/PaymentsPayoutApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/PaymentsPayoutApiTest.java @@ -32,10 +32,9 @@ public class PaymentsPayoutApiTest { * *

**Note:** The reference content in this section documents the Payments Engine endpoint. * The Payments Engine endpoints include APIs available only for customers with Payments Engine - * enabled on their accounts. These endpoints are currently in beta and might be subject to - * changes. If you want to learn more about Fireblocks Payments Engine, please contact your - * Fireblocks Customer Success Manager or email CSM@fireblocks.com. **Create a payout - * instruction set.** A payout instruction set is a set of instructions for distributing + * enabled on their accounts. If you want to learn more about Fireblocks Payments Engine, please + * contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com. **Create a + * payout instruction set.** A payout instruction set is a set of instructions for distributing * payments from a single payment account to a list of payee accounts. The instruction set * defines: - the payment account and its account type (vault, exchange, or fiat). - the account * type (vault account, exchange account, whitelisted address, network connection, fiat account, @@ -57,13 +56,12 @@ public void createPayoutTest() { * *

**Note:** The reference content in this section documents the Payments Engine endpoint. * The Payments Engine endpoints include APIs available only for customers with Payments Engine - * enabled on their accounts. These endpoints are currently in beta and might be subject to - * changes. If you want to learn more about Fireblocks Payments Engine, please contact your - * Fireblocks Customer Success Manager or email CSM@fireblocks.com. **Execute a payout - * instruction set.** The instruction set will be verified and executed. **Source locking** If - * you are executing a payout instruction set from a payment account with an already active - * payout the active payout will complete before the new payout instruction set can be executed. - * You cannot execute the same payout instruction set more than once. + * enabled on their accounts. If you want to learn more about Fireblocks Payments Engine, please + * contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com. **Execute a + * payout instruction set.** The instruction set will be verified and executed. **Source + * locking** If you are executing a payout instruction set from a payment account with an + * already active payout the active payout will complete before the new payout instruction set + * can be executed. You cannot execute the same payout instruction set more than once. */ @Test public void executePayoutActionTest() { @@ -78,10 +76,9 @@ public void executePayoutActionTest() { * *

**Note:** The reference content in this section documents the Payments Engine endpoint. * The Payments Engine endpoints include APIs available only for customers with Payments Engine - * enabled on their accounts. These endpoints are currently in beta and might be subject to - * changes. If you want to learn more about Fireblocks Payments Engine, please contact your - * Fireblocks Customer Success Manager or email CSM@fireblocks.com. Endpoint Permission: Admin, - * Non-Signing Admin. + * enabled on their accounts. If you want to learn more about Fireblocks Payments Engine, please + * contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com. Endpoint + * Permission: Admin, Non-Signing Admin. */ @Test public void getPayoutTest() { diff --git a/src/test/java/com/fireblocks/sdk/api/PolicyEditorV2ApiTest.java b/src/test/java/com/fireblocks/sdk/api/PolicyEditorV2ApiTest.java index 96d51737..de3dd0ba 100644 --- a/src/test/java/com/fireblocks/sdk/api/PolicyEditorV2ApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/PolicyEditorV2ApiTest.java @@ -16,9 +16,12 @@ import com.fireblocks.sdk.ApiResponse; import com.fireblocks.sdk.model.DraftReviewAndValidationResponse; import com.fireblocks.sdk.model.PolicyAndValidationResponse; +import com.fireblocks.sdk.model.PolicyRuleQuotaRequest; +import com.fireblocks.sdk.model.PolicyRuleQuotaResponse; import com.fireblocks.sdk.model.PolicyType; import com.fireblocks.sdk.model.PublishDraftRequest; import com.fireblocks.sdk.model.PublishResult; +import com.fireblocks.sdk.model.ReadOnlyDraftReviewAndValidationResponse; import com.fireblocks.sdk.model.UpdateDraftRequest; import java.util.concurrent.CompletableFuture; import org.junit.Ignore; @@ -55,6 +58,33 @@ public void getDraftTest() { api.getDraft(policyType); } + /** + * Get the current draft without starting an edit session + * + *

Returns the active draft and its validation for a specific policy type, without taking the + * edit lock. If no draft exists, the active policy is returned with a null draftId. + */ + @Test + public void getDraftReadOnlyTest() { + PolicyType policyType = null; + CompletableFuture> response = + api.getDraftReadOnly(policyType); + } + + /** + * Calculate the AOT quota for a policy rule + * + *

Returns the Amount Over Time (AOT) quota calculated for a specific policy rule. Endpoint + * Permissions: Owner, Admin, Non-Signing Admin. + */ + @Test + public void getPolicyRuleQuotaTest() { + PolicyRuleQuotaRequest policyRuleQuotaRequest = null; + String idempotencyKey = null; + CompletableFuture> response = + api.getPolicyRuleQuota(policyRuleQuotaRequest, idempotencyKey); + } + /** * Send publish request for a certain draft id * diff --git a/src/test/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApiTest.java deleted file mode 100644 index 9e2899af..00000000 --- a/src/test/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApiTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Fireblocks API - * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: developers@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.api; - - -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.model.PolicyRuleQuotaRequest; -import com.fireblocks.sdk.model.PolicyRuleQuotaResponse; -import java.util.concurrent.CompletableFuture; -import org.junit.Ignore; -import org.junit.Test; - -/** API tests for PolicyEditorV2BetaApi */ -@Ignore -public class PolicyEditorV2BetaApiTest { - - private final PolicyEditorV2BetaApi api = new PolicyEditorV2BetaApi(); - - /** - * Calculate the AOT quota for a policy rule - * - *

Returns the Amount Over Time (AOT) quota calculated for a specific policy rule. Endpoint - * Permissions: Owner, Admin, Non-Signing Admin. - */ - @Test - public void getPolicyRuleQuotaTest() { - PolicyRuleQuotaRequest policyRuleQuotaRequest = null; - String idempotencyKey = null; - CompletableFuture> response = - api.getPolicyRuleQuota(policyRuleQuotaRequest, idempotencyKey); - } -} diff --git a/src/test/java/com/fireblocks/sdk/api/ReportsBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/ReportsApiTest.java similarity index 84% rename from src/test/java/com/fireblocks/sdk/api/ReportsBetaApiTest.java rename to src/test/java/com/fireblocks/sdk/api/ReportsApiTest.java index 9b8a0e62..91c19b2c 100644 --- a/src/test/java/com/fireblocks/sdk/api/ReportsBetaApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/ReportsApiTest.java @@ -25,11 +25,11 @@ import org.junit.Ignore; import org.junit.Test; -/** API tests for ReportsBetaApi */ +/** API tests for ReportsApi */ @Ignore -public class ReportsBetaApiTest { +public class ReportsApiTest { - private final ReportsBetaApi api = new ReportsBetaApi(); + private final ReportsApi api = new ReportsApi(); /** * Create a report @@ -37,8 +37,7 @@ public class ReportsBetaApiTest { *

Creates a new asynchronous report job and returns a receipt containing the report ID. Poll * `GET /v1/reports/{reportId}` to check status. When `status` is * `COMPLETED`, the poll response includes a fresh pre-signed download URL in - * `links.downloadUrl`. **Note:** These endpoints are currently in beta and might be - * subject to changes. Endpoint Permission: Viewer and above. + * `links.downloadUrl`. Endpoint Permission: Viewer and above. */ @Test public void createReportTest() { @@ -56,8 +55,7 @@ public void createReportTest() { * includes a fresh pre-signed download URL in `links.downloadUrl` (TTL ~1 hour). * Re-poll this endpoint to obtain a new URL after expiry. When `status` is * `FAILED`, the `failedAt` timestamp indicates when the failure occurred. - * **Note:** These endpoints are currently in beta and might be subject to changes. Endpoint - * Permission: Viewer and above. + * Endpoint Permission: Viewer and above. */ @Test public void getReportTest() { @@ -70,8 +68,8 @@ public void getReportTest() { * *

Returns a paginated list of report jobs scoped to the calling tenant. **Note:** Download * URLs are not included in list responses. Call `GET /v1/reports/{reportId}` to - * obtain a fresh signed download URL for a specific completed report. **Note:** These endpoints - * are currently in beta and might be subject to changes. Endpoint Permission: Viewer and above. + * obtain a fresh signed download URL for a specific completed report. Endpoint Permission: + * Viewer and above. */ @Test public void listReportsTest() { diff --git a/src/test/java/com/fireblocks/sdk/api/StakingApiTest.java b/src/test/java/com/fireblocks/sdk/api/StakingApiTest.java index 877c474c..347b8161 100644 --- a/src/test/java/com/fireblocks/sdk/api/StakingApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/StakingApiTest.java @@ -62,7 +62,7 @@ public void approveTermsOfServiceByProviderIdTest() { * Claim accrued rewards * *

Claims available staking rewards for the specified chain and vault. Supported chains: - * Solana and Polygon (POL/Matic). Behavior depends on protocol reward distribution. + * Solana, Polygon (POL/Matic) and Celestia. Behavior depends on protocol reward distribution. */ @Test public void claimRewardsTest() { @@ -82,8 +82,7 @@ public void claimRewardsTest() { * the same vault account (i.e. same withdrawal credentials). On chain, this translates into a * consolidation transaction, where the source validator is consolidated into the destination * validator. Supported chains: Ethereum (ETH) only. Endpoint Permission: Owner, Admin, - * Non-Signing Admin, Signer, Approver, Editor. **Note:** This endpoint is currently in beta and - * might be subject to changes. + * Non-Signing Admin, Signer, Approver, Editor. */ @Test public void consolidateTest() { diff --git a/src/test/java/com/fireblocks/sdk/api/TempoBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/TempoApiTest.java similarity index 91% rename from src/test/java/com/fireblocks/sdk/api/TempoBetaApiTest.java rename to src/test/java/com/fireblocks/sdk/api/TempoApiTest.java index da6dc0f6..9709e3c9 100644 --- a/src/test/java/com/fireblocks/sdk/api/TempoBetaApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/TempoApiTest.java @@ -20,11 +20,11 @@ import org.junit.Ignore; import org.junit.Test; -/** API tests for TempoBetaApi */ +/** API tests for TempoApi */ @Ignore -public class TempoBetaApiTest { +public class TempoApiTest { - private final TempoBetaApi api = new TempoBetaApi(); + private final TempoApi api = new TempoApi(); /** * Create a Tempo transfer transaction diff --git a/src/test/java/com/fireblocks/sdk/api/TravelRuleApiTest.java b/src/test/java/com/fireblocks/sdk/api/TravelRuleApiTest.java index b2e47fbe..98b37f33 100644 --- a/src/test/java/com/fireblocks/sdk/api/TravelRuleApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/TravelRuleApiTest.java @@ -18,6 +18,7 @@ import com.fireblocks.sdk.model.TravelRuleUpdateVASPDetails; import com.fireblocks.sdk.model.TravelRuleVASP; import com.fireblocks.sdk.model.TravelRuleValidateFullTransactionRequest; +import com.fireblocks.sdk.model.TravelRuleValidateTransactionRequest; import com.fireblocks.sdk.model.TravelRuleValidateTransactionResponse; import com.fireblocks.sdk.model.TravelRuleVaspForVault; import com.fireblocks.sdk.model.TrustProofOfAddressCreateResponse; @@ -151,4 +152,29 @@ public void validateFullTravelRuleTransactionTest() { api.validateFullTravelRuleTransaction( travelRuleValidateFullTransactionRequest, notation, idempotencyKey); } + + /** + * Validate Travel Rule Transaction + * + *

Validate Travel Rule transactions. Checks what beneficiary VASP details are required by + * your jurisdiction and the beneficiary's jurisdiction. **Deprecation Notice** This + * endpoint will be deprecated soon in favor of the [validate + * full](https://developers.fireblocks.com/reference/validatefulltravelruletransaction) + * endpoint. Please update your integrations to use the [validate + * full](https://developers.fireblocks.com/reference/validatefulltravelruletransaction) endpoint + * to ensure compatibility with future releases. Checks what beneficiary VASP details are + * required by your jurisdiction and the beneficiary's jurisdiction. Learn more about + * Fireblocks Travel Rule management in the following + * [guide](https://developers.fireblocks.com/docs/define-travel-rule-policies). Endpoint + * Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + */ + @Test + public void validateTravelRuleTransactionTest() { + TravelRuleValidateTransactionRequest travelRuleValidateTransactionRequest = null; + List notation = null; + String idempotencyKey = null; + CompletableFuture> response = + api.validateTravelRuleTransaction( + travelRuleValidateTransactionRequest, notation, idempotencyKey); + } } diff --git a/src/test/java/com/fireblocks/sdk/api/UserGroupsBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/UserGroupsApiTest.java similarity index 77% rename from src/test/java/com/fireblocks/sdk/api/UserGroupsBetaApiTest.java rename to src/test/java/com/fireblocks/sdk/api/UserGroupsApiTest.java index 0c19895b..41d38919 100644 --- a/src/test/java/com/fireblocks/sdk/api/UserGroupsBetaApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/UserGroupsApiTest.java @@ -24,11 +24,11 @@ import org.junit.Ignore; import org.junit.Test; -/** API tests for UserGroupsBetaApi */ +/** API tests for UserGroupsApi */ @Ignore -public class UserGroupsBetaApiTest { +public class UserGroupsApiTest { - private final UserGroupsBetaApi api = new UserGroupsBetaApi(); + private final UserGroupsApi api = new UserGroupsApi(); /** * Create user group @@ -47,9 +47,8 @@ public void createUserGroupTest() { /** * Delete user group * - *

Delete a user group by ID. **Note**: - This endpoint is now in Beta, disabled for general - * availability at this time. - Please note that this endpoint is available only for API keys - * with Admin permissions. + *

Delete a user group by ID. **Note**: - Please note that this endpoint is available only + * for API keys with Admin permissions. */ @Test public void deleteUserGroupTest() { @@ -61,9 +60,8 @@ public void deleteUserGroupTest() { /** * Get user group * - *

Get a user group by ID. **Note**: - This endpoint is now in Beta, disabled for general - * availability at this time. - Please note that this endpoint is available only for API keys - * with Admin permissions. + *

Get a user group by ID. **Note**: - Please note that this endpoint is available only for + * API keys with Admin permissions. */ @Test public void getUserGroupTest() { @@ -86,9 +84,8 @@ public void getUserGroupsTest() { /** * Update user group * - *

Update a user group by ID. **Note**: - This endpoint is now in Beta, disabled for general - * availability at this time. - Please note that this endpoint is available only for API keys - * with Admin permissions. + *

Update a user group by ID. **Note**: - Please note that this endpoint is available only + * for API keys with Admin permissions. */ @Test public void updateUserGroupTest() { diff --git a/src/test/java/com/fireblocks/sdk/api/VaultsApiTest.java b/src/test/java/com/fireblocks/sdk/api/VaultsApiTest.java index 7062c671..9d2d89f0 100644 --- a/src/test/java/com/fireblocks/sdk/api/VaultsApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/VaultsApiTest.java @@ -24,15 +24,19 @@ import com.fireblocks.sdk.model.CreateMultipleDepositAddressesJobStatus; import com.fireblocks.sdk.model.CreateMultipleDepositAddressesRequest; import com.fireblocks.sdk.model.CreateMultipleVaultAccountsJobStatus; +import com.fireblocks.sdk.model.CreateOmnibusAddressesRequest; +import com.fireblocks.sdk.model.CreateOmnibusAddressesResponse; import com.fireblocks.sdk.model.CreateVaultAccountRequest; import com.fireblocks.sdk.model.CreateVaultAssetResponse; import com.fireblocks.sdk.model.GetAutomationSettingsResponse; import com.fireblocks.sdk.model.GetMaxBipIndexUsedResponse; import com.fireblocks.sdk.model.GetMaxSpendableAmountResponse; import com.fireblocks.sdk.model.JobCreated; +import com.fireblocks.sdk.model.ListOmnibusAddressesResponse; import com.fireblocks.sdk.model.PaginatedAddressResponse; import com.fireblocks.sdk.model.PaginatedAssetWalletResponse; import com.fireblocks.sdk.model.PublicKeyInformation; +import com.fireblocks.sdk.model.RegisterTempoOmnibusResponse; import com.fireblocks.sdk.model.RenameVaultAccountResponse; import com.fireblocks.sdk.model.SaveAutomationSettingsResponse; import com.fireblocks.sdk.model.SetAutoFuelRequest; @@ -50,6 +54,7 @@ import com.fireblocks.sdk.model.VaultAccountsTagAttachmentOperationsResponse; import com.fireblocks.sdk.model.VaultActionStatus; import com.fireblocks.sdk.model.VaultAsset; +import com.fireblocks.sdk.model.VaultWalletAddress; import java.math.BigDecimal; import java.util.List; import java.util.UUID; @@ -85,9 +90,8 @@ public void activateAssetForVaultAccountTest() { * Activate a USDC Gateway wallet * *

Activates the USDC Gateway wallet associated with the given vault account. If the wallet - * does not yet exist it is created in an activated state. **Note:** This endpoint is currently - * in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, - * Signer, Approver. + * does not yet exist it is created in an activated state. Endpoint Permission: Admin, + * Non-Signing Admin, Signer, Approver. */ @Test public void activateUsdcGatewayWalletBetaTest() { @@ -134,12 +138,11 @@ public void createLegacyAddressTest() { * Bulk creation of new vault accounts * *

Create multiple vault accounts by running an async job. - The HBAR, TON, SUI, TERRA, ALGO, - * and DOT blockchains are not supported. - These endpoints are currently in beta and might be - * subject to changes. - Limited to a maximum of 10,000 accounts per operation. - With - * `vaultType: KEY_LINK`, creates Key Link vault accounts; set `autoAssign: - * true` to bind them to the workspace's signing keys (see `vaultType` and - * `autoAssign`). **Endpoint Permissions:** Admin, Non-Signing Admin, Signer, - * Approver, Editor. + * and DOT blockchains are not supported. - Limited to a maximum of 10,000 accounts per + * operation. - With `vaultType: KEY_LINK`, creates Key Link vault accounts; set + * `autoAssign: true` to bind them to the workspace's signing keys (see + * `vaultType` and `autoAssign`). **Endpoint Permissions:** Admin, + * Non-Signing Admin, Signer, Approver, Editor. */ @Test public void createMultipleAccountsTest() { @@ -167,6 +170,29 @@ public void createMultipleDepositAddressesTest() { createMultipleDepositAddressesRequest, idempotencyKey); } + /** + * Create omnibus deposit addresses + * + *

Creates a batch of deposit addresses for the omnibus account of the given vault account, + * protocol and asset. **Note:** This endpoint is currently in beta and might be subject to + * changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. + */ + @Test + public void createOmnibusAddressesTest() { + CreateOmnibusAddressesRequest createOmnibusAddressesRequest = null; + String vaultAccountId = null; + String protocol = null; + String assetId = null; + String idempotencyKey = null; + CompletableFuture> response = + api.createOmnibusAddresses( + createOmnibusAddressesRequest, + vaultAccountId, + protocol, + assetId, + idempotencyKey); + } + /** * Create a new vault account * @@ -228,9 +254,8 @@ public void createVaultAccountAssetAddressTest() { /** * Deactivate a USDC Gateway wallet * - *

Deactivates the USDC Gateway wallet associated with the given vault account. **Note:** - * This endpoint is currently in beta and might be subject to changes. Endpoint Permission: - * Admin, Non-Signing Admin, Signer, Approver. + *

Deactivates the USDC Gateway wallet associated with the given vault account. Endpoint + * Permission: Admin, Non-Signing Admin, Signer, Approver. */ @Test public void deactivateUsdcGatewayWalletBetaTest() { @@ -245,8 +270,8 @@ public void deactivateUsdcGatewayWalletBetaTest() { * *

Stops the schedule for an existing deposit automation. The automation itself stays * configured, only its schedule stops. Turn it back on later with PATCH, without setting up the - * automation again from scratch. **Note:** This endpoint is currently in beta and might be - * subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. + * automation again from scratch. Endpoint Permission: Admin, Non-Signing Admin, Signer, + * Approver. */ @Test public void disableUsdcGatewayDepositAutomationScheduleBetaTest() { @@ -348,6 +373,28 @@ public void getMaxSpendableAmountTest() { maxAmount); } + /** + * List omnibus deposit addresses + * + *

Returns a page of the deposit addresses of the omnibus account of the given vault account, + * protocol and asset, ordered by index, highest first. **Note:** This endpoint is currently in + * beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, + * Approver, Editor, Viewer. + */ + @Test + public void getOmnibusAddressesTest() { + String vaultAccountId = null; + String protocol = null; + String assetId = null; + Integer fromIndex = null; + String search = null; + String pageCursor = null; + Integer pageSize = null; + CompletableFuture> response = + api.getOmnibusAddresses( + vaultAccountId, protocol, assetId, fromIndex, search, pageCursor, pageSize); + } + /** * Get vault accounts (Paginated) * @@ -434,8 +481,7 @@ public void getUnspentInputsTest() { * Read the USDC Gateway deposit automations for a vault account * *

Returns the USDC Gateway deposit automations configured for the given vault account. - * **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint - * Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + * Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. */ @Test public void getUsdcGatewayDepositAutomationBetaTest() { @@ -448,8 +494,7 @@ public void getUsdcGatewayDepositAutomationBetaTest() { * Get USDC Gateway wallet info * *

Returns the USDC Gateway wallet information associated with the given vault account. - * **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint - * Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + * Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. */ @Test public void getUsdcGatewayWalletInfoBetaTest() { @@ -484,6 +529,27 @@ public void getVaultAccountAssetTest() { api.getVaultAccountAsset(vaultAccountId, assetId); } + /** + * Get asset addresses + * + *

DEPRECATED! - If your application logic or scripts rely on the deprecated endpoint, you + * should update to account for + * GET/V1/vault/accounts/{vaultAccountId}/{assetId}/addresses_paginated before Mar 31,2024. - + * All workspaces created after Mar 31,2024. will have it disabled. If it is disabled for your + * workspace and you attempt to use it, you will receive the following error message: + * \"This endpoint is unavailable. - Please use the GET + * /v1/vault/accounts/{vaultAccountId}/{assetId}/addresses_paginated endpoint to return all the + * wallet addresses associated with the specified vault account and asset in a paginated list. + * Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + */ + @Test + public void getVaultAccountAssetAddressesTest() { + String vaultAccountId = null; + String assetId = null; + CompletableFuture>> response = + api.getVaultAccountAssetAddresses(vaultAccountId, assetId); + } + /** * Get addresses (Paginated) * @@ -502,6 +568,22 @@ public void getVaultAccountAssetAddressesPaginatedTest() { vaultAccountId, assetId, limit, before, after); } + /** + * Get vault accounts + * + *

DEPRECATED - Please use `/vault/accounts_paged` endpoint instead. Endpoint + * Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + */ + @Test + public void getVaultAccountsTest() { + String namePrefix = null; + String nameSuffix = null; + BigDecimal minAmountThreshold = null; + String assetId = null; + CompletableFuture>> response = + api.getVaultAccounts(namePrefix, nameSuffix, minAmountThreshold, assetId); + } + /** * Get asset balance for chosen assets * @@ -551,8 +633,7 @@ public void hideVaultAccountTest() { * Look up a vault account by blockchain address * *

Resolves a blockchain address to the vault account that owns it. Returns the vault account - * ID and the blockchains associated with the address. **Note:** This endpoint is currently in - * beta and might be subject to changes. + * ID and the blockchains associated with the address. */ @Test public void lookupVaultByAddressTest() { @@ -561,6 +642,22 @@ public void lookupVaultByAddressTest() { api.lookupVaultByAddress(address); } + /** + * Register a Tempo omnibus wallet + * + *

Registers a Tempo omnibus wallet for the given vault account and asset. Triggering this + * flow requires the vault account to hold PATH_USD with a balance sufficient to cover the gas + * fee. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. + */ + @Test + public void registerTempoOmnibusWalletTest() { + String vaultAccountId = null; + String assetId = null; + String idempotencyKey = null; + CompletableFuture> response = + api.registerTempoOmnibusWallet(vaultAccountId, assetId, idempotencyKey); + } + /** * Assign AML customer reference ID * @@ -588,9 +685,8 @@ public void setCustomerRefIdForAddressTest() { * *

Turns on automatic deposits into the USDC Gateway wallet for the given vault account, on * the schedule you choose. Returns an error if an automation already exists for this vault - * account and asset. Use PATCH to change it instead. **Note:** This endpoint is currently in - * beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, - * Approver. + * account and asset. Use PATCH to change it instead. Endpoint Permission: Admin, Non-Signing + * Admin, Signer, Approver. */ @Test public void setUsdcGatewayDepositAutomationBetaTest() { @@ -655,9 +751,8 @@ public void unhideVaultAccountTest() { /** * Change a USDC Gateway deposit automation * - *

Changes an existing USDC Gateway deposit automation for a vault account. **Note:** This - * endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, - * Non-Signing Admin, Signer, Approver. + *

Changes an existing USDC Gateway deposit automation for a vault account. Endpoint + * Permission: Admin, Non-Signing Admin, Signer, Approver. */ @Test public void updateUsdcGatewayDepositAutomationBetaTest() { diff --git a/src/test/java/com/fireblocks/sdk/api/WebhooksV2ApiTest.java b/src/test/java/com/fireblocks/sdk/api/WebhooksV2ApiTest.java index a683f669..f492fa66 100644 --- a/src/test/java/com/fireblocks/sdk/api/WebhooksV2ApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/WebhooksV2ApiTest.java @@ -14,9 +14,11 @@ import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.model.CreateWebhookCustomHeadersRequest; import com.fireblocks.sdk.model.CreateWebhookMtlsConfigRequest; import com.fireblocks.sdk.model.CreateWebhookOauthRequest; import com.fireblocks.sdk.model.CreateWebhookRequest; +import com.fireblocks.sdk.model.DeleteWebhookCustomHeadersResponse; import com.fireblocks.sdk.model.DeleteWebhookMtlsConfigResponse; import com.fireblocks.sdk.model.DeleteWebhookOauthResponse; import com.fireblocks.sdk.model.NotificationAttemptsPaginatedResponse; @@ -29,10 +31,15 @@ import com.fireblocks.sdk.model.ResendFailedNotificationsRequest; import com.fireblocks.sdk.model.ResendFailedNotificationsResponse; import com.fireblocks.sdk.model.ResendNotificationsByResourceIdRequest; +import com.fireblocks.sdk.model.RevokeWebhookOauthKeyRequest; +import com.fireblocks.sdk.model.RevokeWebhookOauthKeyResponse; +import com.fireblocks.sdk.model.RotateWebhookOauthKeyResponse; +import com.fireblocks.sdk.model.UpdateWebhookCustomHeadersRequest; import com.fireblocks.sdk.model.UpdateWebhookMtlsConfigRequest; import com.fireblocks.sdk.model.UpdateWebhookOauthRequest; import com.fireblocks.sdk.model.UpdateWebhookRequest; import com.fireblocks.sdk.model.Webhook; +import com.fireblocks.sdk.model.WebhookCustomHeadersSet; import com.fireblocks.sdk.model.WebhookEvent; import com.fireblocks.sdk.model.WebhookMetric; import com.fireblocks.sdk.model.WebhookMtlsConfig; @@ -66,6 +73,31 @@ public void createWebhookTest() { api.createWebhook(createWebhookRequest, idempotencyKey); } + /** + * Create a custom headers set + * + *

Creates a reusable set of custom HTTP headers. Attach it to a webhook by passing the + * returned id as that webhook's `webhookCustomHeadersId`, to send the headers + * with that webhook's notifications, or to OAuth credentials as their + * `webhookCustomHeadersId`, to send them on the token request to your authorization + * server. Several webhooks and OAuth credentials may share one set, so changing it covers all + * of them at once. Header values are write-only and are never returned. One set of rules + * applies to every use of a set, whether a webhook or OAuth credentials attach it: a value is a + * string or an array of strings (one header line per element), except `Cookie` and + * `Authorization`, which take a single string. Where Fireblocks sends its own + * `Authorization` header (an OAuth bearer token on a delivery, + * `client_secret_basic` on a token request), a custom `Authorization` + * header is not sent. Attaching a set checks only that it exists in your workspace. **Endpoint + * Permissions:** Owner, Admin, Non-Signing Admin. + */ + @Test + public void createWebhookCustomHeadersTest() { + CreateWebhookCustomHeadersRequest createWebhookCustomHeadersRequest = null; + String idempotencyKey = null; + CompletableFuture> response = + api.createWebhookCustomHeaders(createWebhookCustomHeadersRequest, idempotencyKey); + } + /** * Create an mTLS configuration * @@ -92,8 +124,12 @@ public void createWebhookMtlsConfigTest() { *

Creates a reusable OAuth client credential set. Attach it to a webhook by passing the * returned id as that webhook's `webhookOauthId`. Several webhooks may share one * credential set, so rotating its client secret covers all of them at once. The client secret - * is write-only and is never returned. **Endpoint Permissions:** Owner, Admin, Non-Signing - * Admin. + * is write-only and is never returned. With `authMethod` `private_key_jwt` + * no client secret is sent: Fireblocks generates two key pairs for the credentials, the signing + * key and its successor, and keeps the private halves. The public halves are published at the + * `jwksUri` returned with the credentials; register that URL as the client's + * `jwks_uri` on your authorization server. **Endpoint Permissions:** Owner, Admin, + * Non-Signing Admin. */ @Test public void createWebhookOauthTest() { @@ -114,6 +150,30 @@ public void deleteWebhookTest() { CompletableFuture> response = api.deleteWebhook(webhookId); } + /** + * Delete a custom headers set + * + *

Deletes a custom headers set. By default the delete is refused while the set is still in + * use: if any webhook or OAuth credentials use it, nothing is deleted and the request fails + * with `409 Conflict`, naming the reason and listing the ids of the webhooks and + * OAuth credentials using it. This protects a shared set from being removed out from under the + * things that depend on it. Pass `forceDelete=true` to delete anyway. That + * detaches everything using the set — it clears each webhook's and each OAuth credential + * set's `webhookCustomHeadersId`, it does **not** delete the webhook or the + * credentials — then deletes the set and returns the deleted resource together with + * `detachedWebhookIds` and `detachedWebhookOauthIds`. A detached webhook + * stops sending these headers with its notifications, and detached OAuth credentials stop + * sending them on the token request. When nothing uses the set the delete succeeds either way, + * and both lists come back empty. **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. + */ + @Test + public void deleteWebhookCustomHeadersTest() { + UUID webhookCustomHeadersId = null; + Boolean forceDelete = null; + CompletableFuture> response = + api.deleteWebhookCustomHeaders(webhookCustomHeadersId, forceDelete); + } + /** * Delete an mTLS configuration * @@ -292,6 +352,31 @@ public void getWebhookTest() { CompletableFuture> response = api.getWebhook(webhookId); } + /** + * Get a custom headers set by id + * + *

Retrieve a custom headers set by its id. Header values are never returned, only the header + * names. + */ + @Test + public void getWebhookCustomHeadersTest() { + UUID webhookCustomHeadersId = null; + CompletableFuture> response = + api.getWebhookCustomHeaders(webhookCustomHeadersId); + } + + /** + * Get all custom headers sets + * + *

Lists every custom headers set for the workspace. Header values are never returned, only + * the header names. + */ + @Test + public void getWebhookCustomHeadersListTest() { + CompletableFuture>> response = + api.getWebhookCustomHeadersList(); + } + /** * Get an mTLS configuration by id * @@ -419,6 +504,64 @@ public void resendNotificationsByResourceIdTest() { resendNotificationsByResourceIdRequest, webhookId, idempotencyKey); } + /** + * Revoke a signing key of OAuth credentials + * + *

Deletes a key of OAuth credentials at once, for when a key may have leaked: it drops out + * of the published set immediately rather than being kept for 30 days. Revoking never causes an + * outage. Without a `kid`, revokes the key Fireblocks is signing with: signing + * switches to the successor, which your authorization server already holds, and a new successor + * is generated. A cached access token is discarded, so the next delivery fetches a new one. + * With the successor's `kid`, deletes the successor and generates a new one; + * signing is unchanged. With the `kid` of a key rotated out by `rotate_key` + * and still published, deletes that key, and a cached access token is discarded as well. Keys + * left behind by a `signingAlg` change drop out of the published set after 5 minutes + * but are kept for 30 days, and can be revoked by `kid` until then. Credentials using + * `private_key_jwt` always keep a key to sign with. On credentials that no longer use + * `private_key_jwt`, whose keys stay published for 30 days after the switch, a + * `kid` is required: that key is deleted and nothing is generated. The last key they + * hold can be revoked too, leaving an empty set. Returns the `kid` of the key + * revoked, which without a `kid` in the request is the key Fireblocks was signing + * with. The public keys are at the `jwksUri` of the credentials: fetch them again, or + * register the new successor with your authorization server. Use `rotate_key` for a + * routine rotation, which keeps the replaced key published for 30 days. **Endpoint + * Permissions:** Owner, Admin, Non-Signing Admin. + */ + @Test + public void revokeWebhookOauthKeyTest() { + UUID webhookOauthId = null; + RevokeWebhookOauthKeyRequest revokeWebhookOauthKeyRequest = null; + String idempotencyKey = null; + CompletableFuture> response = + api.revokeWebhookOauthKey( + webhookOauthId, revokeWebhookOauthKeyRequest, idempotencyKey); + } + + /** + * Rotate the signing key of OAuth credentials + * + *

Switches the OAuth credentials to their successor key and generates a new successor, for + * credentials using `private_key_jwt`. Takes no body. The new signing key is one your + * authorization server already holds, since the successor is published from the start, so the + * switch causes no outage. The key replaced is no longer used to sign, but stays in the + * published set for 30 days and is then deleted. Rotating again within those 30 days is + * allowed: each key rotated out keeps its own 30 days, and any of them can be revoked by + * `kid`. The credentials can hold at most 5 keys in their signing algorithm at once, + * counting the active key, its successor and those rotated out; at that limit, revoke a + * rotated-out key (the error names the oldest) and rotate again. To stop trusting a key at once + * — after a leak — use `revoke_key` instead. Returns the `kid` of the key + * rotated out. The public keys are at the `jwksUri` of the credentials: fetch them + * again, or register the new successor with your authorization server, before the next + * rotation. **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. + */ + @Test + public void rotateWebhookOauthKeyTest() { + UUID webhookOauthId = null; + String idempotencyKey = null; + CompletableFuture> response = + api.rotateWebhookOauthKey(webhookOauthId, idempotencyKey); + } + /** * Update webhook * @@ -432,6 +575,28 @@ public void updateWebhookTest() { api.updateWebhook(updateWebhookRequest, webhookId); } + /** + * Update a custom headers set + * + *

Updates only the fields present in the request; anything omitted is left as it is. + * `headers` is merged name by name rather than replaced: a header sent with a value + * is added or overwritten, a header sent as `null` is deleted, and a header you omit + * is left alone. The change applies to every webhook and OAuth credential set that uses the + * set. A change that would leave the set with no headers is refused with a `400` — + * delete the set instead. Where Fireblocks sends its own `Authorization` header, a + * custom `Authorization` header is not sent: on a webhook that has OAuth credentials + * attached (the OAuth bearer token), and on the token request of OAuth credentials that use + * `client_secret_basic`. **Endpoint Permissions:** Owner, Admin, Non-Signing Admin. + */ + @Test + public void updateWebhookCustomHeadersTest() { + UpdateWebhookCustomHeadersRequest updateWebhookCustomHeadersRequest = null; + UUID webhookCustomHeadersId = null; + CompletableFuture> response = + api.updateWebhookCustomHeaders( + updateWebhookCustomHeadersRequest, webhookCustomHeadersId); + } + /** * Update an mTLS configuration * @@ -457,17 +622,20 @@ public void updateWebhookMtlsConfigTest() { * *

Updates only the fields present in the request; anything omitted is left as it is. Sending * `clientSecret` on its own rotates the secret for every webhook using these - * credentials. `customJwtClaims`, `customBodyParams` and - * `customHeaders` are all merged key by key rather than replaced, the same way a - * webhook's own `customHeaders` behaves: a key sent with a value is added or - * overwritten, a key sent with a `null` value is deleted, and a key you omit is left - * alone. Setting one of the three to `null` as a whole clears that map, which is the - * quick way to empty it without naming every key. There is no ambiguity between the two uses of - * `null` — one names an entry to delete, the other names the field. A claim cannot be - * set to JSON `null`, though, on this endpoint or on create, because `null` - * is spent on deletion. `webhookMtlsId` is a scalar rather than a map, so - * `null` there does remove it. **Endpoint Permissions:** Owner, Admin, Non-Signing - * Admin. + * credentials. `customJwtClaims` and `customBodyParams` are merged key by + * key rather than replaced: a key sent with a value is added or overwritten, a key sent with a + * `null` value is deleted, and a key you omit is left alone. Setting one of the two + * to `null` as a whole clears that map, which is the quick way to empty it without + * naming every key. There is no ambiguity between the two uses of `null` — one names + * an entry to delete, the other names the field. A claim cannot be set to JSON + * `null`, though, on this endpoint or on create, because `null` is spent on + * deletion. `webhookMtlsId` and `webhookCustomHeadersId` are scalars rather + * than maps, so `null` there does remove them. `webhookCustomHeadersId` + * points the credentials at a set of extra token request headers from + * `/v1/webhooks_settings/custom_headers`; under `client_secret_basic` + * Fireblocks sends its own `Authorization` header with the credentials, so a custom + * `Authorization` header in the set is not sent. **Endpoint Permissions:** Owner, + * Admin, Non-Signing Admin. */ @Test public void updateWebhookOauthTest() { diff --git a/src/test/java/com/fireblocks/sdk/api/WorkspaceApiTest.java b/src/test/java/com/fireblocks/sdk/api/WorkspaceApiTest.java index e5b2e5c1..b6a0eb75 100644 --- a/src/test/java/com/fireblocks/sdk/api/WorkspaceApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/WorkspaceApiTest.java @@ -25,6 +25,23 @@ public class WorkspaceApiTest { private final WorkspaceApi api = new WorkspaceApi(); + /** + * Freeze + * + *

Freezes a Workspace so that ALL operations by ANY user are blocked. You should only + * perform this action when the workspace faces imminent risk, such as when you have a security + * breach. To unfreeze a workspace, the workspace Owner must submit a request to Fireblocks + * Support. **NOTE:** - This operation can only be performed by the workspace Admins - Your + * workspace continues to receive incoming transfers during this time. Endpoint Permission: + * Admin, Non-Signing Admin. + */ + @Test + public void freezeWorkspaceTest() { + String idempotencyKey = null; + + CompletableFuture> response = api.freezeWorkspace(idempotencyKey); + } + /** * Get workspace * diff --git a/src/test/java/com/fireblocks/sdk/api/WorkspaceStatusBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/WorkspaceStatusApiTest.java similarity index 77% rename from src/test/java/com/fireblocks/sdk/api/WorkspaceStatusBetaApiTest.java rename to src/test/java/com/fireblocks/sdk/api/WorkspaceStatusApiTest.java index deccecdd..a6122b6d 100644 --- a/src/test/java/com/fireblocks/sdk/api/WorkspaceStatusBetaApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/WorkspaceStatusApiTest.java @@ -19,17 +19,16 @@ import org.junit.Ignore; import org.junit.Test; -/** API tests for WorkspaceStatusBetaApi */ +/** API tests for WorkspaceStatusApi */ @Ignore -public class WorkspaceStatusBetaApiTest { +public class WorkspaceStatusApiTest { - private final WorkspaceStatusBetaApi api = new WorkspaceStatusBetaApi(); + private final WorkspaceStatusApi api = new WorkspaceStatusApi(); /** * Returns current workspace status * - *

Returns current workspace status (Beta). **Note**: - This endpoint is now in Beta, - * disabled for general availability at this time. - Please note that this endpoint is available + *

Returns current workspace status. **Note**: - Please note that this endpoint is available * only for API keys with Admin/Non Signing Admin permissions. Endpoint Permission: Admin, * Non-Signing Admin. */ diff --git a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountCreditTest.java b/src/test/java/com/fireblocks/sdk/model/ConnectedAccountCreditTest.java new file mode 100644 index 00000000..581b3ae4 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/ConnectedAccountCreditTest.java @@ -0,0 +1,39 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.jupiter.api.Test; + +/** Model tests for ConnectedAccountCredit */ +class ConnectedAccountCreditTest { + private final ConnectedAccountCredit model = new ConnectedAccountCredit(); + + /** Model tests for ConnectedAccountCredit */ + @Test + void testConnectedAccountCredit() { + // TODO: test ConnectedAccountCredit + } + + /** Test the property 'amount' */ + @Test + void amountTest() { + // TODO: test amount + } + + /** Test the property 'denominatedAssetId' */ + @Test + void denominatedAssetIdTest() { + // TODO: test denominatedAssetId + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/ConnectedSingleAccountResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ConnectedSingleAccountResponseTest.java index 59d9ffcb..761c86b8 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConnectedSingleAccountResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConnectedSingleAccountResponseTest.java @@ -90,4 +90,16 @@ void accountTypeTest() { void subAccountsIdsTest() { // TODO: test subAccountsIds } + + /** Test the property 'totalCredit' */ + @Test + void totalCreditTest() { + // TODO: test totalCredit + } + + /** Test the property 'availableCredit' */ + @Test + void availableCreditTest() { + // TODO: test availableCredit + } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConnectedSingleAccountTest.java b/src/test/java/com/fireblocks/sdk/model/ConnectedSingleAccountTest.java index 15c3858e..0073df29 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConnectedSingleAccountTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConnectedSingleAccountTest.java @@ -30,4 +30,16 @@ void testConnectedSingleAccount() { void subAccountsIdsTest() { // TODO: test subAccountsIds } + + /** Test the property 'totalCredit' */ + @Test + void totalCreditTest() { + // TODO: test totalCredit + } + + /** Test the property 'availableCredit' */ + @Test + void availableCreditTest() { + // TODO: test availableCredit + } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateOmnibusAddressesRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateOmnibusAddressesRequestTest.java new file mode 100644 index 00000000..d1a5ce5f --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/CreateOmnibusAddressesRequestTest.java @@ -0,0 +1,39 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.jupiter.api.Test; + +/** Model tests for CreateOmnibusAddressesRequest */ +class CreateOmnibusAddressesRequestTest { + private final CreateOmnibusAddressesRequest model = new CreateOmnibusAddressesRequest(); + + /** Model tests for CreateOmnibusAddressesRequest */ + @Test + void testCreateOmnibusAddressesRequest() { + // TODO: test CreateOmnibusAddressesRequest + } + + /** Test the property 'count' */ + @Test + void countTest() { + // TODO: test count + } + + /** Test the property 'descriptions' */ + @Test + void descriptionsTest() { + // TODO: test descriptions + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/CreateOmnibusAddressesResponseTest.java b/src/test/java/com/fireblocks/sdk/model/CreateOmnibusAddressesResponseTest.java new file mode 100644 index 00000000..fdc23647 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/CreateOmnibusAddressesResponseTest.java @@ -0,0 +1,33 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.jupiter.api.Test; + +/** Model tests for CreateOmnibusAddressesResponse */ +class CreateOmnibusAddressesResponseTest { + private final CreateOmnibusAddressesResponse model = new CreateOmnibusAddressesResponse(); + + /** Model tests for CreateOmnibusAddressesResponse */ + @Test + void testCreateOmnibusAddressesResponse() { + // TODO: test CreateOmnibusAddressesResponse + } + + /** Test the property 'data' */ + @Test + void dataTest() { + // TODO: test data + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/CreateWebhookCustomHeadersRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateWebhookCustomHeadersRequestTest.java new file mode 100644 index 00000000..17e00da5 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/CreateWebhookCustomHeadersRequestTest.java @@ -0,0 +1,39 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.jupiter.api.Test; + +/** Model tests for CreateWebhookCustomHeadersRequest */ +class CreateWebhookCustomHeadersRequestTest { + private final CreateWebhookCustomHeadersRequest model = new CreateWebhookCustomHeadersRequest(); + + /** Model tests for CreateWebhookCustomHeadersRequest */ + @Test + void testCreateWebhookCustomHeadersRequest() { + // TODO: test CreateWebhookCustomHeadersRequest + } + + /** Test the property 'name' */ + @Test + void nameTest() { + // TODO: test name + } + + /** Test the property 'headers' */ + @Test + void headersTest() { + // TODO: test headers + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/CreateWebhookOauthRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateWebhookOauthRequestTest.java index ba2c7034..c4a50e6c 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateWebhookOauthRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateWebhookOauthRequestTest.java @@ -55,6 +55,12 @@ void authMethodTest() { // TODO: test authMethod } + /** Test the property 'signingAlg' */ + @Test + void signingAlgTest() { + // TODO: test signingAlg + } + /** Test the property 'customJwtClaims' */ @Test void customJwtClaimsTest() { @@ -67,10 +73,10 @@ void customBodyParamsTest() { // TODO: test customBodyParams } - /** Test the property 'customHeaders' */ + /** Test the property 'webhookCustomHeadersId' */ @Test - void customHeadersTest() { - // TODO: test customHeaders + void webhookCustomHeadersIdTest() { + // TODO: test webhookCustomHeadersId } /** Test the property 'webhookMtlsId' */ diff --git a/src/test/java/com/fireblocks/sdk/model/CreateWebhookRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateWebhookRequestTest.java index 6ae6be02..0cefd974 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateWebhookRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateWebhookRequestTest.java @@ -61,9 +61,9 @@ void webhookOauthIdTest() { // TODO: test webhookOauthId } - /** Test the property 'customHeaders' */ + /** Test the property 'webhookCustomHeadersId' */ @Test - void customHeadersTest() { - // TODO: test customHeaders + void webhookCustomHeadersIdTest() { + // TODO: test webhookCustomHeadersId } } diff --git a/src/test/java/com/fireblocks/sdk/model/DeleteWebhookCustomHeadersResponseTest.java b/src/test/java/com/fireblocks/sdk/model/DeleteWebhookCustomHeadersResponseTest.java new file mode 100644 index 00000000..8efd2969 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/DeleteWebhookCustomHeadersResponseTest.java @@ -0,0 +1,70 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.jupiter.api.Test; + +/** Model tests for DeleteWebhookCustomHeadersResponse */ +class DeleteWebhookCustomHeadersResponseTest { + private final DeleteWebhookCustomHeadersResponse model = + new DeleteWebhookCustomHeadersResponse(); + + /** Model tests for DeleteWebhookCustomHeadersResponse */ + @Test + void testDeleteWebhookCustomHeadersResponse() { + // TODO: test DeleteWebhookCustomHeadersResponse + } + + /** Test the property 'id' */ + @Test + void idTest() { + // TODO: test id + } + + /** Test the property 'name' */ + @Test + void nameTest() { + // TODO: test name + } + + /** Test the property 'headerNames' */ + @Test + void headerNamesTest() { + // TODO: test headerNames + } + + /** Test the property 'createdAt' */ + @Test + void createdAtTest() { + // TODO: test createdAt + } + + /** Test the property 'updatedAt' */ + @Test + void updatedAtTest() { + // TODO: test updatedAt + } + + /** Test the property 'detachedWebhookIds' */ + @Test + void detachedWebhookIdsTest() { + // TODO: test detachedWebhookIds + } + + /** Test the property 'detachedWebhookOauthIds' */ + @Test + void detachedWebhookOauthIdsTest() { + // TODO: test detachedWebhookOauthIds + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/DeleteWebhookOauthResponseTest.java b/src/test/java/com/fireblocks/sdk/model/DeleteWebhookOauthResponseTest.java index ad36fdcb..f9c53ba3 100644 --- a/src/test/java/com/fireblocks/sdk/model/DeleteWebhookOauthResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DeleteWebhookOauthResponseTest.java @@ -55,6 +55,12 @@ void authMethodTest() { // TODO: test authMethod } + /** Test the property 'signingAlg' */ + @Test + void signingAlgTest() { + // TODO: test signingAlg + } + /** Test the property 'customJwtClaims' */ @Test void customJwtClaimsTest() { @@ -67,10 +73,10 @@ void customBodyParamsTest() { // TODO: test customBodyParams } - /** Test the property 'customHeaders' */ + /** Test the property 'webhookCustomHeadersId' */ @Test - void customHeadersTest() { - // TODO: test customHeaders + void webhookCustomHeadersIdTest() { + // TODO: test webhookCustomHeadersId } /** Test the property 'webhookMtlsId' */ @@ -91,6 +97,12 @@ void updatedAtTest() { // TODO: test updatedAt } + /** Test the property 'jwksUri' */ + @Test + void jwksUriTest() { + // TODO: test jwksUri + } + /** Test the property 'detachedWebhookIds' */ @Test void detachedWebhookIdsTest() { diff --git a/src/test/java/com/fireblocks/sdk/model/ListOmnibusAddressesResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ListOmnibusAddressesResponseTest.java new file mode 100644 index 00000000..4b904cb9 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/ListOmnibusAddressesResponseTest.java @@ -0,0 +1,45 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.jupiter.api.Test; + +/** Model tests for ListOmnibusAddressesResponse */ +class ListOmnibusAddressesResponseTest { + private final ListOmnibusAddressesResponse model = new ListOmnibusAddressesResponse(); + + /** Model tests for ListOmnibusAddressesResponse */ + @Test + void testListOmnibusAddressesResponse() { + // TODO: test ListOmnibusAddressesResponse + } + + /** Test the property 'total' */ + @Test + void totalTest() { + // TODO: test total + } + + /** Test the property 'data' */ + @Test + void dataTest() { + // TODO: test data + } + + /** Test the property 'next' */ + @Test + void nextTest() { + // TODO: test next + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/OmnibusAddressTest.java b/src/test/java/com/fireblocks/sdk/model/OmnibusAddressTest.java new file mode 100644 index 00000000..d5a5a803 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/OmnibusAddressTest.java @@ -0,0 +1,51 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.jupiter.api.Test; + +/** Model tests for OmnibusAddress */ +class OmnibusAddressTest { + private final OmnibusAddress model = new OmnibusAddress(); + + /** Model tests for OmnibusAddress */ + @Test + void testOmnibusAddress() { + // TODO: test OmnibusAddress + } + + /** Test the property 'index' */ + @Test + void indexTest() { + // TODO: test index + } + + /** Test the property 'address' */ + @Test + void addressTest() { + // TODO: test address + } + + /** Test the property 'description' */ + @Test + void descriptionTest() { + // TODO: test description + } + + /** Test the property 'createdAt' */ + @Test + void createdAtTest() { + // TODO: test createdAt + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/ReadOnlyDraftResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ReadOnlyDraftResponseTest.java new file mode 100644 index 00000000..9ac252b0 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/ReadOnlyDraftResponseTest.java @@ -0,0 +1,51 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.jupiter.api.Test; + +/** Model tests for ReadOnlyDraftResponse */ +class ReadOnlyDraftResponseTest { + private final ReadOnlyDraftResponse model = new ReadOnlyDraftResponse(); + + /** Model tests for ReadOnlyDraftResponse */ + @Test + void testReadOnlyDraftResponse() { + // TODO: test ReadOnlyDraftResponse + } + + /** Test the property 'status' */ + @Test + void statusTest() { + // TODO: test status + } + + /** Test the property 'rules' */ + @Test + void rulesTest() { + // TODO: test rules + } + + /** Test the property 'draftId' */ + @Test + void draftIdTest() { + // TODO: test draftId + } + + /** Test the property 'metadata' */ + @Test + void metadataTest() { + // TODO: test metadata + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/ReadOnlyDraftReviewAndValidationResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ReadOnlyDraftReviewAndValidationResponseTest.java new file mode 100644 index 00000000..9820bba8 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/ReadOnlyDraftReviewAndValidationResponseTest.java @@ -0,0 +1,40 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.jupiter.api.Test; + +/** Model tests for ReadOnlyDraftReviewAndValidationResponse */ +class ReadOnlyDraftReviewAndValidationResponseTest { + private final ReadOnlyDraftReviewAndValidationResponse model = + new ReadOnlyDraftReviewAndValidationResponse(); + + /** Model tests for ReadOnlyDraftReviewAndValidationResponse */ + @Test + void testReadOnlyDraftReviewAndValidationResponse() { + // TODO: test ReadOnlyDraftReviewAndValidationResponse + } + + /** Test the property 'draftResponse' */ + @Test + void draftResponseTest() { + // TODO: test draftResponse + } + + /** Test the property 'validation' */ + @Test + void validationTest() { + // TODO: test validation + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/RegisterTempoOmnibusResponseTest.java b/src/test/java/com/fireblocks/sdk/model/RegisterTempoOmnibusResponseTest.java new file mode 100644 index 00000000..d2b290c6 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/RegisterTempoOmnibusResponseTest.java @@ -0,0 +1,39 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.jupiter.api.Test; + +/** Model tests for RegisterTempoOmnibusResponse */ +class RegisterTempoOmnibusResponseTest { + private final RegisterTempoOmnibusResponse model = new RegisterTempoOmnibusResponse(); + + /** Model tests for RegisterTempoOmnibusResponse */ + @Test + void testRegisterTempoOmnibusResponse() { + // TODO: test RegisterTempoOmnibusResponse + } + + /** Test the property 'txId' */ + @Test + void txIdTest() { + // TODO: test txId + } + + /** Test the property 'status' */ + @Test + void statusTest() { + // TODO: test status + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/RevokeWebhookOauthKeyRequestTest.java b/src/test/java/com/fireblocks/sdk/model/RevokeWebhookOauthKeyRequestTest.java new file mode 100644 index 00000000..ea387acb --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/RevokeWebhookOauthKeyRequestTest.java @@ -0,0 +1,33 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.jupiter.api.Test; + +/** Model tests for RevokeWebhookOauthKeyRequest */ +class RevokeWebhookOauthKeyRequestTest { + private final RevokeWebhookOauthKeyRequest model = new RevokeWebhookOauthKeyRequest(); + + /** Model tests for RevokeWebhookOauthKeyRequest */ + @Test + void testRevokeWebhookOauthKeyRequest() { + // TODO: test RevokeWebhookOauthKeyRequest + } + + /** Test the property 'kid' */ + @Test + void kidTest() { + // TODO: test kid + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/RevokeWebhookOauthKeyResponseTest.java b/src/test/java/com/fireblocks/sdk/model/RevokeWebhookOauthKeyResponseTest.java new file mode 100644 index 00000000..6c2c7e55 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/RevokeWebhookOauthKeyResponseTest.java @@ -0,0 +1,33 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.jupiter.api.Test; + +/** Model tests for RevokeWebhookOauthKeyResponse */ +class RevokeWebhookOauthKeyResponseTest { + private final RevokeWebhookOauthKeyResponse model = new RevokeWebhookOauthKeyResponse(); + + /** Model tests for RevokeWebhookOauthKeyResponse */ + @Test + void testRevokeWebhookOauthKeyResponse() { + // TODO: test RevokeWebhookOauthKeyResponse + } + + /** Test the property 'kid' */ + @Test + void kidTest() { + // TODO: test kid + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/RotateWebhookOauthKeyResponseTest.java b/src/test/java/com/fireblocks/sdk/model/RotateWebhookOauthKeyResponseTest.java new file mode 100644 index 00000000..eed4742d --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/RotateWebhookOauthKeyResponseTest.java @@ -0,0 +1,33 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.jupiter.api.Test; + +/** Model tests for RotateWebhookOauthKeyResponse */ +class RotateWebhookOauthKeyResponseTest { + private final RotateWebhookOauthKeyResponse model = new RotateWebhookOauthKeyResponse(); + + /** Model tests for RotateWebhookOauthKeyResponse */ + @Test + void testRotateWebhookOauthKeyResponse() { + // TODO: test RotateWebhookOauthKeyResponse + } + + /** Test the property 'kid' */ + @Test + void kidTest() { + // TODO: test kid + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/SolanaRewardsBreakdownTest.java b/src/test/java/com/fireblocks/sdk/model/SolanaRewardsBreakdownTest.java index 8a259365..7b66a3ea 100644 --- a/src/test/java/com/fireblocks/sdk/model/SolanaRewardsBreakdownTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SolanaRewardsBreakdownTest.java @@ -42,4 +42,16 @@ void mevTest() { void lastRewardSyncedAtTest() { // TODO: test lastRewardSyncedAt } + + /** Test the property 'latestInflationRewardDate' */ + @Test + void latestInflationRewardDateTest() { + // TODO: test latestInflationRewardDate + } + + /** Test the property 'latestMevRewardDate' */ + @Test + void latestMevRewardDateTest() { + // TODO: test latestMevRewardDate + } } diff --git a/src/test/java/com/fireblocks/sdk/model/UpdateWebhookCustomHeadersRequestTest.java b/src/test/java/com/fireblocks/sdk/model/UpdateWebhookCustomHeadersRequestTest.java new file mode 100644 index 00000000..16d2d624 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/UpdateWebhookCustomHeadersRequestTest.java @@ -0,0 +1,39 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.jupiter.api.Test; + +/** Model tests for UpdateWebhookCustomHeadersRequest */ +class UpdateWebhookCustomHeadersRequestTest { + private final UpdateWebhookCustomHeadersRequest model = new UpdateWebhookCustomHeadersRequest(); + + /** Model tests for UpdateWebhookCustomHeadersRequest */ + @Test + void testUpdateWebhookCustomHeadersRequest() { + // TODO: test UpdateWebhookCustomHeadersRequest + } + + /** Test the property 'name' */ + @Test + void nameTest() { + // TODO: test name + } + + /** Test the property 'headers' */ + @Test + void headersTest() { + // TODO: test headers + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/UpdateWebhookOauthRequestTest.java b/src/test/java/com/fireblocks/sdk/model/UpdateWebhookOauthRequestTest.java index 73f390ec..86e3b422 100644 --- a/src/test/java/com/fireblocks/sdk/model/UpdateWebhookOauthRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UpdateWebhookOauthRequestTest.java @@ -55,6 +55,12 @@ void authMethodTest() { // TODO: test authMethod } + /** Test the property 'signingAlg' */ + @Test + void signingAlgTest() { + // TODO: test signingAlg + } + /** Test the property 'customJwtClaims' */ @Test void customJwtClaimsTest() { @@ -67,10 +73,10 @@ void customBodyParamsTest() { // TODO: test customBodyParams } - /** Test the property 'customHeaders' */ + /** Test the property 'webhookCustomHeadersId' */ @Test - void customHeadersTest() { - // TODO: test customHeaders + void webhookCustomHeadersIdTest() { + // TODO: test webhookCustomHeadersId } /** Test the property 'webhookMtlsId' */ diff --git a/src/test/java/com/fireblocks/sdk/model/UpdateWebhookRequestTest.java b/src/test/java/com/fireblocks/sdk/model/UpdateWebhookRequestTest.java index 9d4451fc..bd749fa0 100644 --- a/src/test/java/com/fireblocks/sdk/model/UpdateWebhookRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UpdateWebhookRequestTest.java @@ -61,9 +61,9 @@ void webhookOauthIdTest() { // TODO: test webhookOauthId } - /** Test the property 'customHeaders' */ + /** Test the property 'webhookCustomHeadersId' */ @Test - void customHeadersTest() { - // TODO: test customHeaders + void webhookCustomHeadersIdTest() { + // TODO: test webhookCustomHeadersId } } diff --git a/src/test/java/com/fireblocks/sdk/model/WebhookCustomHeadersSetTest.java b/src/test/java/com/fireblocks/sdk/model/WebhookCustomHeadersSetTest.java new file mode 100644 index 00000000..9ca8e254 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/WebhookCustomHeadersSetTest.java @@ -0,0 +1,57 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.jupiter.api.Test; + +/** Model tests for WebhookCustomHeadersSet */ +class WebhookCustomHeadersSetTest { + private final WebhookCustomHeadersSet model = new WebhookCustomHeadersSet(); + + /** Model tests for WebhookCustomHeadersSet */ + @Test + void testWebhookCustomHeadersSet() { + // TODO: test WebhookCustomHeadersSet + } + + /** Test the property 'id' */ + @Test + void idTest() { + // TODO: test id + } + + /** Test the property 'name' */ + @Test + void nameTest() { + // TODO: test name + } + + /** Test the property 'headerNames' */ + @Test + void headerNamesTest() { + // TODO: test headerNames + } + + /** Test the property 'createdAt' */ + @Test + void createdAtTest() { + // TODO: test createdAt + } + + /** Test the property 'updatedAt' */ + @Test + void updatedAtTest() { + // TODO: test updatedAt + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/WebhookOauthCredentialsTest.java b/src/test/java/com/fireblocks/sdk/model/WebhookOauthCredentialsTest.java index 146dd294..3f94eb9a 100644 --- a/src/test/java/com/fireblocks/sdk/model/WebhookOauthCredentialsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/WebhookOauthCredentialsTest.java @@ -55,6 +55,12 @@ void authMethodTest() { // TODO: test authMethod } + /** Test the property 'signingAlg' */ + @Test + void signingAlgTest() { + // TODO: test signingAlg + } + /** Test the property 'customJwtClaims' */ @Test void customJwtClaimsTest() { @@ -67,10 +73,10 @@ void customBodyParamsTest() { // TODO: test customBodyParams } - /** Test the property 'customHeaders' */ + /** Test the property 'webhookCustomHeadersId' */ @Test - void customHeadersTest() { - // TODO: test customHeaders + void webhookCustomHeadersIdTest() { + // TODO: test webhookCustomHeadersId } /** Test the property 'webhookMtlsId' */ @@ -90,4 +96,10 @@ void createdAtTest() { void updatedAtTest() { // TODO: test updatedAt } + + /** Test the property 'jwksUri' */ + @Test + void jwksUriTest() { + // TODO: test jwksUri + } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetTypesConfigInnerTest.java b/src/test/java/com/fireblocks/sdk/model/WebhookOauthSigningAlgTest.java similarity index 70% rename from src/test/java/com/fireblocks/sdk/model/AssetTypesConfigInnerTest.java rename to src/test/java/com/fireblocks/sdk/model/WebhookOauthSigningAlgTest.java index 858ccb3c..60b288fe 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetTypesConfigInnerTest.java +++ b/src/test/java/com/fireblocks/sdk/model/WebhookOauthSigningAlgTest.java @@ -15,13 +15,11 @@ import org.junit.jupiter.api.Test; -/** Model tests for AssetTypesConfigInner */ -class AssetTypesConfigInnerTest { - private final AssetTypesConfigInner model = new AssetTypesConfigInner(); - - /** Model tests for AssetTypesConfigInner */ +/** Model tests for WebhookOauthSigningAlg */ +class WebhookOauthSigningAlgTest { + /** Model tests for WebhookOauthSigningAlg */ @Test - void testAssetTypesConfigInner() { - // TODO: test AssetTypesConfigInner + void testWebhookOauthSigningAlg() { + // TODO: test WebhookOauthSigningAlg } } diff --git a/src/test/java/com/fireblocks/sdk/model/WebhookTest.java b/src/test/java/com/fireblocks/sdk/model/WebhookTest.java index 03ec4c4b..f24d7244 100644 --- a/src/test/java/com/fireblocks/sdk/model/WebhookTest.java +++ b/src/test/java/com/fireblocks/sdk/model/WebhookTest.java @@ -79,9 +79,9 @@ void webhookOauthIdTest() { // TODO: test webhookOauthId } - /** Test the property 'customHeaders' */ + /** Test the property 'webhookCustomHeadersId' */ @Test - void customHeadersTest() { - // TODO: test customHeaders + void webhookCustomHeadersIdTest() { + // TODO: test webhookCustomHeadersId } }