; type="text/html"; rel="deprecation"`), which [^<]*? allows without
+ // running into the next link, and its value may list several space-separated
+ // relation types.
+ private static final Pattern LINK_PATTERN =
+ Pattern.compile(
+ "<([^>]*)>[^<]*?;\\s*rel\\s*=\\s*(?:\"([^\"]*)\"|([^\\s;,]+))",
+ Pattern.CASE_INSENSITIVE);
+
+ private LifecycleWarning() {}
+
+ /** True when the suppression env var is set to anything other than 0 or false. */
+ public static boolean isSuppressed(String value) {
+ return value != null && !value.isEmpty() && !"0".equals(value) && !"false".equals(value);
+ }
+
+ /**
+ * Emit one warning per execution when the response reports a non-GA state.
+ *
+ * Suppressed when {@code FIREBLOCKS_SDK_SUPPRESS_LIFECYCLE_WARNING} is set to anything other
+ * than 0 or false.
+ *
+ *
Never throws: a malformed header must not break a caller's request.
+ */
+ public static void warn(HttpHeaders headers, String operationId, int statusCode) {
+ if (operationId == null
+ || operationId.isEmpty()
+ || isSuppressed(System.getenv(SUPPRESS_ENV_VAR))) {
+ return;
+ }
+ try {
+ String message = buildMessage(headers, operationId, statusCode);
+ if (message != null) {
+ // Resolved here rather than in a static field so nothing is touched
+ // until a warning is actually due.
+ Logger.getLogger(LOGGER_NAME).warning(message);
+ }
+ } catch (RuntimeException e) {
+ // Defensive: never break the request because of a warning.
+ }
+ }
+
+ /**
+ * Build the warning for a response, or {@code null} when nothing should be logged. Silent on an
+ * absent or empty header, an unrecognised state, {@code ga}, and a {@code closed} operation
+ * answered with 410 Gone.
+ *
+ *
Header values are emitted as received. They are gateway-authored — the gateway strips any
+ * downstream-supplied lifecycle headers and reapplies its own, derived from the deployed
+ * specification, which is validated by the OpenAPI lint rules.
+ */
+ public static String buildMessage(HttpHeaders headers, String operationId, int statusCode) {
+ if (headers == null) {
+ return null;
+ }
+ String rawState = firstValue(headers, LIFECYCLE_STATE_HEADER);
+ if (rawState == null || rawState.isBlank()) {
+ return null;
+ }
+ String state = rawState.trim().toLowerCase(Locale.ROOT);
+ if (!WARNING_STATES.contains(state)) {
+ return null;
+ }
+
+ if (BETA_STATE.equals(state)) {
+ return "Operation '"
+ + operationId
+ + "' is in 'beta' lifecycle state and is not generally available."
+ + " It may change or be removed without notice.";
+ }
+
+ if (CLOSED_STATE.equals(state)) {
+ if (statusCode == GONE_STATUS) {
+ return null;
+ }
+ return "Operation '"
+ + operationId
+ + "' has been closed and is no longer supported."
+ + " Your access is provided under a temporary exception and may be revoked."
+ + " Contact your Customer Success Manager for migration support";
+ }
+
+ String sunset = firstValue(headers, SUNSET_HEADER);
+ sunset = (sunset == null || sunset.isBlank()) ? null : sunset.trim();
+
+ StringBuilder message = new StringBuilder("Operation '").append(operationId);
+ if (sunset != null) {
+ message.append("' is deprecated and will stop working after ")
+ .append(sunset)
+ .append('.');
+ } else {
+ message.append("' is deprecated.");
+ }
+
+ String successor = linkFor(headers, REL_SUCCESSOR_VERSION);
+ if (successor != null) {
+ message.append(" Use ").append(successor).append(" instead.");
+ }
+ String migrationGuide = linkFor(headers, REL_DEPRECATION);
+ if (migrationGuide != null) {
+ message.append(" Migration guide: ").append(migrationGuide);
+ }
+ return message.toString();
+ }
+
+ /** HttpHeaders lookup is case-insensitive per the HTTP spec. */
+ private static String firstValue(HttpHeaders headers, String name) {
+ Optional value = headers.firstValue(name);
+ return value.orElse(null);
+ }
+
+ /** Map a link relation to its URL, first occurrence wins. */
+ private static String linkFor(HttpHeaders headers, String relation) {
+ List values = headers.allValues(LINK_HEADER);
+ for (String value : values) {
+ if (value == null) {
+ continue;
+ }
+ Matcher matcher = LINK_PATTERN.matcher(value);
+ while (matcher.find()) {
+ String rels = matcher.group(2) != null ? matcher.group(2) : matcher.group(3);
+ for (String rel : rels.toLowerCase(Locale.ROOT).split("\\s+")) {
+ if (relation.equals(rel)) {
+ return matcher.group(1).trim();
+ }
+ }
+ }
+ }
+ return null;
+ }
+}
diff --git a/src/main/java/com/fireblocks/sdk/api/ApiUserApi.java b/src/main/java/com/fireblocks/sdk/api/ApiUserApi.java
index 693f68f2..39248a3f 100644
--- a/src/main/java/com/fireblocks/sdk/api/ApiUserApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/ApiUserApi.java
@@ -18,6 +18,7 @@
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.CreateAPIUser;
import com.fireblocks.sdk.model.GetAPIUsersResponse;
@@ -121,6 +122,13 @@ public CompletableFuture> createApiUser(
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(),
+ "createApiUser",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("createApiUser", localVarResponse));
@@ -191,6 +199,13 @@ public CompletableFuture> getApiUsers() {
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(),
+ "getApiUsers",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getApiUsers", localVarResponse));
@@ -269,6 +284,13 @@ private HttpRequest.Builder getApiUsersRequestBuilder() throws ApiException {
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(),
+ "issueApiUserPairingToken",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
diff --git a/src/main/java/com/fireblocks/sdk/api/ApprovalsBetaApi.java b/src/main/java/com/fireblocks/sdk/api/ApprovalsBetaApi.java
index 18423317..25f498d2 100644
--- a/src/main/java/com/fireblocks/sdk/api/ApprovalsBetaApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/ApprovalsBetaApi.java
@@ -18,6 +18,7 @@
import com.fireblocks.sdk.ApiClient;
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.ApiResponse;
+import com.fireblocks.sdk.LifecycleWarning;
import com.fireblocks.sdk.Pair;
import com.fireblocks.sdk.ValidationUtils;
import com.fireblocks.sdk.model.ApprovalRequestItem;
@@ -137,6 +138,13 @@ public CompletableFuture> approveApproval(
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(),
+ "approveApproval",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("approveApproval", localVarResponse));
@@ -230,6 +238,13 @@ public CompletableFuture> createAppr
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(),
+ "createApprovalKey",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("createApprovalKey", localVarResponse));
@@ -334,6 +349,13 @@ public CompletableFuture> deleteApprov
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(),
+ "deleteApprovalKey",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("deleteApprovalKey", localVarResponse));
@@ -432,6 +454,13 @@ public CompletableFuture> getApprovalById(
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(),
+ "getApprovalById",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getApprovalById", localVarResponse));
@@ -532,6 +561,13 @@ public CompletableFuture> getApprovalKe
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(),
+ "getApprovalKeys",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getApprovalKeys", localVarResponse));
@@ -669,6 +705,13 @@ public CompletableFuture> getApprovals(
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(),
+ "getApprovals",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getApprovals", localVarResponse));
@@ -783,6 +826,13 @@ public CompletableFuture> rejectApproval(
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(),
+ "rejectApproval",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("rejectApproval", localVarResponse));
diff --git a/src/main/java/com/fireblocks/sdk/api/AuditLogsApi.java b/src/main/java/com/fireblocks/sdk/api/AuditLogsApi.java
index 06fa1dcc..5624591c 100644
--- a/src/main/java/com/fireblocks/sdk/api/AuditLogsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/AuditLogsApi.java
@@ -18,6 +18,7 @@
import com.fireblocks.sdk.ApiClient;
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.ApiResponse;
+import com.fireblocks.sdk.LifecycleWarning;
import com.fireblocks.sdk.Pair;
import com.fireblocks.sdk.model.GetAuditLogsResponse;
import java.io.IOException;
@@ -164,6 +165,13 @@ public CompletableFuture> getAuditLogs(
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(),
+ "getAuditLogs",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getAuditLogs", localVarResponse));
diff --git a/src/main/java/com/fireblocks/sdk/api/BlockchainLinkBetaApi.java b/src/main/java/com/fireblocks/sdk/api/BlockchainLinkBetaApi.java
index 21c9fd8a..e3eadd35 100644
--- a/src/main/java/com/fireblocks/sdk/api/BlockchainLinkBetaApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/BlockchainLinkBetaApi.java
@@ -18,6 +18,7 @@
import com.fireblocks.sdk.ApiClient;
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.ApiResponse;
+import com.fireblocks.sdk.LifecycleWarning;
import com.fireblocks.sdk.Pair;
import com.fireblocks.sdk.ValidationUtils;
import com.fireblocks.sdk.model.ActivateBlockchainResponse;
@@ -137,6 +138,13 @@ public CompletableFuture> activateBlockc
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(),
+ "activateBlockchainLinkChain",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -226,6 +234,13 @@ public CompletableFuture> createBlockchain
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(),
+ "createBlockchainLinkChain",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -315,6 +330,13 @@ public CompletableFuture> deleteBlockchainLinkChain(String blo
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(),
+ "deleteBlockchainLinkChain",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -380,6 +402,13 @@ public CompletableFuture> getBlockchainLinkB
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(),
+ "getBlockchainLinkBillingInfo",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -456,6 +485,13 @@ public CompletableFuture> getBlockchainLi
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(),
+ "getBlockchainLinkChain",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -536,6 +572,13 @@ private HttpRequest.Builder getBlockchainLinkChainRequestBuilder(String blockcha
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(),
+ "getBlockchainLinkTestWalletAddress",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -640,6 +683,13 @@ public CompletableFuture> listBlockchainLi
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(),
+ "listBlockchainLinkChains",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -758,6 +808,13 @@ private HttpRequest.Builder listBlockchainLinkChainsRequestBuilder(
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(),
+ "triggerBlockchainLinkValidation",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -849,6 +906,13 @@ public CompletableFuture> updateBlockchain
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(),
+ "updateBlockchainLinkChain",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
diff --git a/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java b/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java
index 19345fcc..abf71204 100644
--- a/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java
@@ -18,6 +18,7 @@
import com.fireblocks.sdk.ApiClient;
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.ApiResponse;
+import com.fireblocks.sdk.LifecycleWarning;
import com.fireblocks.sdk.Pair;
import com.fireblocks.sdk.ValidationUtils;
import com.fireblocks.sdk.model.Asset;
@@ -133,6 +134,13 @@ public CompletableFuture> getAsset(String id, String idempote
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(),
+ "getAsset",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getAsset", localVarResponse));
@@ -206,6 +214,13 @@ public CompletableFuture> getBlockchain(String i
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(),
+ "getBlockchain",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getBlockchain", localVarResponse));
@@ -281,6 +296,13 @@ public CompletableFuture>> getSupportedAsset
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(),
+ "getSupportedAssets",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -386,6 +408,13 @@ public CompletableFuture> listAssets(
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(),
+ "listAssets",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("listAssets", localVarResponse));
@@ -511,6 +540,13 @@ public CompletableFuture> listBlockchains(
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(),
+ "listBlockchains",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("listBlockchains", localVarResponse));
@@ -622,6 +658,13 @@ public CompletableFuture> registerNewAsset(
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(),
+ "registerNewAsset",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("registerNewAsset", localVarResponse));
@@ -710,6 +753,13 @@ public CompletableFuture> setAssetPrice(
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(),
+ "setAssetPrice",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("setAssetPrice", localVarResponse));
@@ -803,6 +853,13 @@ public CompletableFuture> updateAssetUserMetadata(
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(),
+ "updateAssetUserMetadata",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
diff --git a/src/main/java/com/fireblocks/sdk/api/ComplianceApi.java b/src/main/java/com/fireblocks/sdk/api/ComplianceApi.java
index c4e2b430..612ec43d 100644
--- a/src/main/java/com/fireblocks/sdk/api/ComplianceApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/ComplianceApi.java
@@ -18,6 +18,7 @@
import com.fireblocks.sdk.ApiClient;
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.ApiResponse;
+import com.fireblocks.sdk.LifecycleWarning;
import com.fireblocks.sdk.Pair;
import com.fireblocks.sdk.ValidationUtils;
import com.fireblocks.sdk.model.AddressRegistryAddVaultOptOutsRequest;
@@ -162,6 +163,13 @@ public CompletableFuture> activateArsConfig(
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(),
+ "activateArsConfig",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("activateArsConfig", localVarResponse));
@@ -241,6 +249,13 @@ public CompletableFuture> activateByorkConfig(
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(),
+ "activateByorkConfig",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -324,6 +339,13 @@ private HttpRequest.Builder activateByorkConfigRequestBuilder(String idempotency
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(),
+ "addAddressRegistryVaultOptOuts",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -428,6 +450,13 @@ private HttpRequest.Builder addAddressRegistryVaultOptOutsRequestBuilder(
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(),
+ "assignVaultsToLegalEntity",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -540,6 +569,13 @@ private HttpRequest.Builder assignVaultsToLegalEntityRequestBuilder(
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(),
+ "createAddressRegistryProofOfOwnership",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -642,6 +678,13 @@ public CompletableFuture> createCounterpartyGroup
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(),
+ "createCounterpartyGroup",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -735,6 +778,13 @@ public CompletableFuture> deactivateArsConfig(
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(),
+ "deactivateArsConfig",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -815,6 +865,13 @@ public CompletableFuture> deactivateByorkConfig
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(),
+ "deactivateByorkConfig",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -891,6 +948,13 @@ public CompletableFuture> deleteCounterpartyGroup(UUID groupId
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(),
+ "deleteCounterpartyGroup",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -957,6 +1021,13 @@ public CompletableFuture> deleteLegalEntity(UUID legalEntityId
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(),
+ "deleteLegalEntity",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("deleteLegalEntity", localVarResponse));
@@ -1022,6 +1093,13 @@ private HttpRequest.Builder deleteLegalEntityRequestBuilder(UUID legalEntityId)
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(),
+ "getAddressRegistryTenantParticipationStatus",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -1102,6 +1180,13 @@ private HttpRequest.Builder getAddressRegistryTenantParticipationStatusRequestBu
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(),
+ "getAddressRegistryVaultOptOut",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -1181,6 +1266,13 @@ public CompletableFuture> getAmlPostScreeni
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(),
+ "getAmlPostScreeningPolicy",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -1254,6 +1346,13 @@ private HttpRequest.Builder getAmlPostScreeningPolicyRequestBuilder() throws Api
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(),
+ "getAmlScreeningPolicy",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -1329,6 +1428,13 @@ public CompletableFuture> getByorkConfig() {
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(),
+ "getByorkConfig",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getByorkConfig", localVarResponse));
@@ -1401,6 +1507,13 @@ public CompletableFuture> getByorkVerdict(S
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(),
+ "getByorkVerdict",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getByorkVerdict", localVarResponse));
@@ -1491,6 +1604,13 @@ public CompletableFuture> getCounterpartyGroup(UU
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(),
+ "getCounterpartyGroup",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -1570,6 +1690,13 @@ public CompletableFuture> getLegalEntity(
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(),
+ "getLegalEntity",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getLegalEntity", localVarResponse));
@@ -1651,6 +1778,13 @@ public CompletableFuture> getLegalEntity
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(),
+ "getLegalEntityForAddress",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -1727,6 +1861,13 @@ public CompletableFuture> getPostScreeningP
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(),
+ "getPostScreeningPolicy",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -1802,6 +1943,13 @@ public CompletableFuture> getScreeningF
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(),
+ "getScreeningFullDetails",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -1879,6 +2027,13 @@ private HttpRequest.Builder getScreeningFullDetailsRequestBuilder(String txId)
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(),
+ "getScreeningPolicy",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -1964,6 +2119,13 @@ private HttpRequest.Builder getScreeningPolicyRequestBuilder() throws ApiExcepti
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(),
+ "listAddressRegistryVaultOptOuts",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -2065,6 +2227,13 @@ private HttpRequest.Builder listAddressRegistryVaultOptOutsRequestBuilder(
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(),
+ "listCounterpartyGroups",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -2169,6 +2338,13 @@ public CompletableFuture> listLegalEntiti
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(),
+ "listLegalEntities",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("listLegalEntities", localVarResponse));
@@ -2268,6 +2444,13 @@ private HttpRequest.Builder listLegalEntitiesRequestBuilder(
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(),
+ "listVaultsForLegalEntity",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -2369,6 +2552,13 @@ private HttpRequest.Builder listVaultsForLegalEntityRequestBuilder(
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(),
+ "optInAddressRegistryTenant",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -2449,6 +2639,13 @@ private HttpRequest.Builder optInAddressRegistryTenantRequestBuilder(String idem
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(),
+ "optOutAddressRegistryTenant",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -2531,6 +2728,13 @@ public CompletableFuture> registerLegalEnti
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(),
+ "registerLegalEntity",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -2623,6 +2827,13 @@ private HttpRequest.Builder registerLegalEntityRequestBuilder(
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(),
+ "removeAddressRegistryVaultOptOut",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -2707,6 +2918,13 @@ private HttpRequest.Builder removeAddressRegistryVaultOptOutRequestBuilder(
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(),
+ "removeAllAddressRegistryVaultOptOuts",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -2795,6 +3013,13 @@ public CompletableFuture> rescreenRejec
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(),
+ "rescreenRejectedTransaction",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -2894,6 +3119,13 @@ private HttpRequest.Builder rescreenRejectedTransactionRequestBuilder(
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(),
+ "retryRejectedTransactionBypassScreeningChecks",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -2983,6 +3215,13 @@ public CompletableFuture> setAmlVerdict(
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(),
+ "setAmlVerdict",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("setAmlVerdict", localVarResponse));
@@ -3078,6 +3317,13 @@ public CompletableFuture> setByorkTimeouts(
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(),
+ "setByorkTimeouts",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("setByorkTimeouts", localVarResponse));
@@ -3171,6 +3417,13 @@ public CompletableFuture> setByorkVerdict(
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(),
+ "setByorkVerdict",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("setByorkVerdict", localVarResponse));
@@ -3260,6 +3513,13 @@ private HttpRequest.Builder setByorkVerdictRequestBuilder(
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(),
+ "updateAmlScreeningConfiguration",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -3347,6 +3607,13 @@ public CompletableFuture> updateCounterpartyGroup
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(),
+ "updateCounterpartyGroup",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -3451,6 +3718,13 @@ public CompletableFuture> updateLegalEntity
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(),
+ "updateLegalEntity",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("updateLegalEntity", localVarResponse));
@@ -3551,6 +3825,13 @@ private HttpRequest.Builder updateLegalEntityRequestBuilder(
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(),
+ "updateScreeningConfiguration",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -3646,6 +3927,13 @@ public CompletableFuture> updateTrav
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(),
+ "updateTravelRuleConfig",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -3735,6 +4023,13 @@ private HttpRequest.Builder updateTravelRuleConfigRequestBuilder(String idempote
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(),
+ "verifyAddressRegistryProofOfOwnership",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
diff --git a/src/main/java/com/fireblocks/sdk/api/ComplianceOrchestratorBetaApi.java b/src/main/java/com/fireblocks/sdk/api/ComplianceOrchestratorBetaApi.java
index 6066b9a4..5da69077 100644
--- a/src/main/java/com/fireblocks/sdk/api/ComplianceOrchestratorBetaApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/ComplianceOrchestratorBetaApi.java
@@ -18,6 +18,7 @@
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.GetScreeningResultResponse;
import com.fireblocks.sdk.model.GetWorkflowResponse;
@@ -124,6 +125,13 @@ public CompletableFuture> getScreeningRe
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(),
+ "getScreeningResult",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -203,6 +211,13 @@ public CompletableFuture> getWorkflow(String wo
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(),
+ "getWorkflow",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getWorkflow", localVarResponse));
@@ -284,6 +299,13 @@ public CompletableFuture> triggerScreening
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(),
+ "triggerScreening",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("triggerScreening", localVarResponse));
@@ -382,6 +404,13 @@ public CompletableFuture> updateWorkfl
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(),
+ "updateWorkflowStatus",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
diff --git a/src/main/java/com/fireblocks/sdk/api/ComplianceScreeningConfigurationApi.java b/src/main/java/com/fireblocks/sdk/api/ComplianceScreeningConfigurationApi.java
index 03653868..952b1b11 100644
--- a/src/main/java/com/fireblocks/sdk/api/ComplianceScreeningConfigurationApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/ComplianceScreeningConfigurationApi.java
@@ -18,6 +18,7 @@
import com.fireblocks.sdk.ApiClient;
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.ApiResponse;
+import com.fireblocks.sdk.LifecycleWarning;
import com.fireblocks.sdk.model.ScreeningConfigurationsRequest;
import java.io.IOException;
import java.io.InputStream;
@@ -113,6 +114,13 @@ private String formatExceptionMessage(String operationId, int statusCode, String
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(),
+ "getAmlScreeningConfiguration",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -187,6 +195,13 @@ private HttpRequest.Builder getAmlScreeningConfigurationRequestBuilder() throws
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(),
+ "getScreeningConfiguration",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
diff --git a/src/main/java/com/fireblocks/sdk/api/ConnectedAccountsApi.java b/src/main/java/com/fireblocks/sdk/api/ConnectedAccountsApi.java
index 3c708f11..54508740 100644
--- a/src/main/java/com/fireblocks/sdk/api/ConnectedAccountsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/ConnectedAccountsApi.java
@@ -18,6 +18,7 @@
import com.fireblocks.sdk.ApiClient;
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.ApiResponse;
+import com.fireblocks.sdk.LifecycleWarning;
import com.fireblocks.sdk.Pair;
import com.fireblocks.sdk.ValidationUtils;
import com.fireblocks.sdk.model.AddConnectedAccountRequest;
@@ -139,6 +140,13 @@ public CompletableFuture> addConnectedA
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(),
+ "addConnectedAccount",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -227,6 +235,13 @@ public CompletableFuture> disconnectConnectedAccount(String ac
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(),
+ "disconnectConnectedAccount",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -294,6 +309,13 @@ public CompletableFuture> getConnect
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(),
+ "getConnectedAccount",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -399,6 +421,13 @@ public CompletableFuture> getConnectedAccountAllo
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(),
+ "getConnectedAccountAllowlist",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -516,6 +545,13 @@ public CompletableFuture> getConnectedAccoun
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(),
+ "getConnectedAccountAllowlistEntry",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -602,6 +638,13 @@ private HttpRequest.Builder getConnectedAccountAllowlistEntryRequestBuilder(
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(),
+ "getConnectedAccountBalances",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -703,6 +746,13 @@ public CompletableFuture> getConnected
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(),
+ "getConnectedAccountRates",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -808,6 +858,13 @@ private HttpRequest.Builder getConnectedAccountRatesRequestBuilder(
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(),
+ "getConnectedAccountTradingPairs",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -910,6 +967,13 @@ public CompletableFuture> getConnectedAcc
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(),
+ "getConnectedAccounts",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -1008,6 +1072,13 @@ private HttpRequest.Builder getConnectedAccountsRequestBuilder(
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(),
+ "getConnectedAccountsCredentialsPublicKey",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -1093,6 +1164,13 @@ public CompletableFuture> renameConn
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(),
+ "renameConnectedAccount",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -1195,6 +1273,13 @@ public CompletableFuture> syncConnectedAccountAllowlist(
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(),
+ "syncConnectedAccountAllowlist",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -1285,6 +1370,13 @@ private HttpRequest.Builder syncConnectedAccountAllowlistRequestBuilder(
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(),
+ "updateConnectedAccountCredentials",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
diff --git a/src/main/java/com/fireblocks/sdk/api/ConsoleUserApi.java b/src/main/java/com/fireblocks/sdk/api/ConsoleUserApi.java
index b8791b55..6ac6ed79 100644
--- a/src/main/java/com/fireblocks/sdk/api/ConsoleUserApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/ConsoleUserApi.java
@@ -18,6 +18,7 @@
import com.fireblocks.sdk.ApiClient;
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.ApiResponse;
+import com.fireblocks.sdk.LifecycleWarning;
import com.fireblocks.sdk.Pair;
import com.fireblocks.sdk.ValidationUtils;
import com.fireblocks.sdk.model.ConsoleUser;
@@ -127,6 +128,13 @@ public CompletableFuture> createConsoleUser(
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(),
+ "createConsoleUser",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("createConsoleUser", localVarResponse));
@@ -183,7 +191,11 @@ private HttpRequest.Builder createConsoleUserRequestBuilder(
* Request deletion of a console user Requests deletion of a console user. The request is
* asynchronous: it goes through the workspace's configured \"Delete users\"
* approval policy (Settings > Quorums), exactly as deleting a user from the console does,
- * and the user is removed only once that approval completes. - Track progress by polling GET
+ * and the user is removed only once that approval completes. - The workspace must have a
+ * \"Delete users\" approval policy (admin quorum or approval group). If \"Delete
+ * users\" is Owner-only, which is the default, the request is refused with OWNER_ONLY
+ * (2760) and the Owner deletes users in the Console. With an admin quorum, the requesting API
+ * user's own approval counts toward the quorum. - Track progress by polling GET
* /management/users; deletion is complete when the user is disabled. - Please note that this
* endpoint is available only for API keys with Admin/Non Signing Admin/Security Admin
* permissions. Endpoint Permission: Admin, Non-Signing Admin, Security Admin. **Note:** This
@@ -206,6 +218,13 @@ public CompletableFuture> deleteConsoleUser(String id,
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(),
+ "deleteConsoleUser",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("deleteConsoleUser", localVarResponse));
@@ -295,6 +314,13 @@ public CompletableFuture> getConsoleUsers()
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(),
+ "getConsoleUsers",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getConsoleUsers", localVarResponse));
diff --git a/src/main/java/com/fireblocks/sdk/api/ContactsApi.java b/src/main/java/com/fireblocks/sdk/api/ContactsApi.java
index 1bef494a..dba59675 100644
--- a/src/main/java/com/fireblocks/sdk/api/ContactsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/ContactsApi.java
@@ -18,6 +18,7 @@
import com.fireblocks.sdk.ApiClient;
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.ApiResponse;
+import com.fireblocks.sdk.LifecycleWarning;
import com.fireblocks.sdk.Pair;
import com.fireblocks.sdk.model.ContactsPagedResponse;
import java.io.IOException;
@@ -164,6 +165,13 @@ public CompletableFuture> getContacts(
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(),
+ "getContacts",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getContacts", localVarResponse));
diff --git a/src/main/java/com/fireblocks/sdk/api/ContractInteractionsApi.java b/src/main/java/com/fireblocks/sdk/api/ContractInteractionsApi.java
index 52810114..247aedbf 100644
--- a/src/main/java/com/fireblocks/sdk/api/ContractInteractionsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/ContractInteractionsApi.java
@@ -18,6 +18,7 @@
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.ContractAbiResponseDto;
import com.fireblocks.sdk.model.ContractAddressResponse;
@@ -136,6 +137,13 @@ public CompletableFuture> decodeContrac
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(),
+ "decodeContractData",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -242,6 +250,13 @@ public CompletableFuture> getContractAddres
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(),
+ "getContractAddress",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -333,6 +348,13 @@ public CompletableFuture> getDeployedContrac
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(),
+ "getDeployedContractAbi",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -424,6 +446,13 @@ public CompletableFuture> getTransaction
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(),
+ "getTransactionReceipt",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -515,6 +544,13 @@ public CompletableFuture>> readCallFunction
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(),
+ "readCallFunction",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("readCallFunction", localVarResponse));
@@ -626,6 +662,13 @@ public CompletableFuture> writeCallFun
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(),
+ "writeCallFunction",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("writeCallFunction", localVarResponse));
diff --git a/src/main/java/com/fireblocks/sdk/api/ContractTemplatesApi.java b/src/main/java/com/fireblocks/sdk/api/ContractTemplatesApi.java
index 27ce01cf..238d6d7b 100644
--- a/src/main/java/com/fireblocks/sdk/api/ContractTemplatesApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/ContractTemplatesApi.java
@@ -18,6 +18,7 @@
import com.fireblocks.sdk.ApiClient;
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.ApiResponse;
+import com.fireblocks.sdk.LifecycleWarning;
import com.fireblocks.sdk.Pair;
import com.fireblocks.sdk.ValidationUtils;
import com.fireblocks.sdk.model.AbiFunction;
@@ -126,6 +127,13 @@ public CompletableFuture> deleteContractTemplateById(
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(),
+ "deleteContractTemplateById",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -203,6 +211,13 @@ public CompletableFuture> deployContract(
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(),
+ "deployContract",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("deployContract", localVarResponse));
@@ -300,6 +315,13 @@ public CompletableFuture> getConstructorByContractTempl
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(),
+ "getConstructorByContractTemplateId",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -396,6 +418,13 @@ public CompletableFuture> getContractTemplateBy
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(),
+ "getContractTemplateById",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -491,6 +520,13 @@ public CompletableFuture> getContractTem
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(),
+ "getContractTemplates",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -602,6 +638,13 @@ public CompletableFuture> getFunctionAbiByContractTempl
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(),
+ "getFunctionAbiByContractTemplateId",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -701,6 +744,13 @@ private HttpRequest.Builder getFunctionAbiByContractTemplateIdRequestBuilder(
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(),
+ "getSupportedBlockchainsByTemplateId",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -787,6 +837,13 @@ public CompletableFuture> uploadContractTemplat
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(),
+ "uploadContractTemplate",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
diff --git a/src/main/java/com/fireblocks/sdk/api/ContractsApi.java b/src/main/java/com/fireblocks/sdk/api/ContractsApi.java
index 38e4fb25..9f7a2747 100644
--- a/src/main/java/com/fireblocks/sdk/api/ContractsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/ContractsApi.java
@@ -18,6 +18,7 @@
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.AddContractAssetRequest;
import com.fireblocks.sdk.model.CreateContractRequest;
@@ -128,6 +129,13 @@ public CompletableFuture> addContractAsset(
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(),
+ "addContractAsset",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("addContractAsset", localVarResponse));
@@ -224,6 +232,13 @@ public CompletableFuture> createContract(
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(),
+ "createContract",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("createContract", localVarResponse));
@@ -307,6 +322,13 @@ public CompletableFuture> deleteContract(String contractId) {
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(),
+ "deleteContract",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("deleteContract", localVarResponse));
@@ -373,6 +395,13 @@ public CompletableFuture> deleteContractAsset(
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(),
+ "deleteContractAsset",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -440,6 +469,13 @@ public CompletableFuture> getContract(String contra
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(),
+ "getContract",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getContract", localVarResponse));
@@ -516,6 +552,13 @@ public CompletableFuture> getContractAsset(
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(),
+ "getContractAsset",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getContractAsset", localVarResponse));
@@ -591,6 +634,13 @@ public CompletableFuture>> getContracts() {
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(),
+ "getContracts",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getContracts", localVarResponse));
diff --git a/src/main/java/com/fireblocks/sdk/api/CosignersBetaApi.java b/src/main/java/com/fireblocks/sdk/api/CosignersBetaApi.java
index c8fc0140..2b5287ec 100644
--- a/src/main/java/com/fireblocks/sdk/api/CosignersBetaApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/CosignersBetaApi.java
@@ -18,6 +18,7 @@
import com.fireblocks.sdk.ApiClient;
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.ApiResponse;
+import com.fireblocks.sdk.LifecycleWarning;
import com.fireblocks.sdk.Pair;
import com.fireblocks.sdk.ValidationUtils;
import com.fireblocks.sdk.model.AddCosignerRequest;
@@ -135,6 +136,13 @@ public CompletableFuture> addCosigner(
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(),
+ "addCosigner",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("addCosigner", localVarResponse));
@@ -219,6 +227,13 @@ public CompletableFuture> getApiKey(UUID cosignerId, String
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(),
+ "getApiKey",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getApiKey", localVarResponse));
@@ -301,6 +316,13 @@ public CompletableFuture> getApiKeys(
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(),
+ "getApiKeys",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getApiKeys", localVarResponse));
@@ -399,6 +421,13 @@ public CompletableFuture> getCosigner(UUID cosignerId) {
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(),
+ "getCosigner",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getCosigner", localVarResponse));
@@ -477,6 +506,13 @@ public CompletableFuture> getCosigners(
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(),
+ "getCosigners",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getCosigners", localVarResponse));
@@ -574,6 +610,13 @@ public CompletableFuture> getRequestStatus(
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(),
+ "getRequestStatus",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getRequestStatus", localVarResponse));
@@ -662,6 +705,13 @@ public CompletableFuture> pairApiKey(
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(),
+ "pairApiKey",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("pairApiKey", localVarResponse));
@@ -757,6 +807,13 @@ public CompletableFuture> renameCosigner(
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(),
+ "renameCosigner",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("renameCosigner", localVarResponse));
@@ -841,6 +898,13 @@ public CompletableFuture> unpairApiKey(UUID cosignerId, Stri
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(),
+ "unpairApiKey",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("unpairApiKey", localVarResponse));
@@ -924,6 +988,13 @@ public CompletableFuture> updateCallb
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(),
+ "updateCallbackHandler",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
diff --git a/src/main/java/com/fireblocks/sdk/api/DeployedContractsApi.java b/src/main/java/com/fireblocks/sdk/api/DeployedContractsApi.java
index 504e0a6e..257407a0 100644
--- a/src/main/java/com/fireblocks/sdk/api/DeployedContractsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/DeployedContractsApi.java
@@ -18,6 +18,7 @@
import com.fireblocks.sdk.ApiClient;
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.ApiResponse;
+import com.fireblocks.sdk.LifecycleWarning;
import com.fireblocks.sdk.Pair;
import com.fireblocks.sdk.ValidationUtils;
import com.fireblocks.sdk.model.AddAbiRequestDto;
@@ -126,6 +127,13 @@ public CompletableFuture> addContractABI(
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(),
+ "addContractABI",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("addContractABI", localVarResponse));
@@ -212,6 +220,13 @@ public CompletableFuture> fetchContractAbi(
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(),
+ "fetchContractAbi",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("fetchContractAbi", localVarResponse));
@@ -298,6 +313,13 @@ public CompletableFuture> getDeployedCo
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(),
+ "getDeployedContractByAddress",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -382,6 +404,13 @@ public CompletableFuture> getDeployedCo
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(),
+ "getDeployedContractById",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -470,6 +499,13 @@ public CompletableFuture> getDep
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(),
+ "getDeployedContracts",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
diff --git a/src/main/java/com/fireblocks/sdk/api/EarnApi.java b/src/main/java/com/fireblocks/sdk/api/EarnApi.java
index 9965a0f3..e650a951 100644
--- a/src/main/java/com/fireblocks/sdk/api/EarnApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/EarnApi.java
@@ -18,6 +18,7 @@
import com.fireblocks.sdk.ApiClient;
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.ApiResponse;
+import com.fireblocks.sdk.LifecycleWarning;
import com.fireblocks.sdk.Pair;
import com.fireblocks.sdk.ValidationUtils;
import com.fireblocks.sdk.model.CreateEarnActionRequest;
@@ -129,6 +130,13 @@ public CompletableFuture> approveTermsOfService(String idempot
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(),
+ "approveTermsOfService",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -200,6 +208,13 @@ public CompletableFuture> createEarnAction
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(),
+ "createEarnAction",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("createEarnAction", localVarResponse));
@@ -287,6 +302,13 @@ public CompletableFuture> getEarnAction(String id
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(),
+ "getEarnAction",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getEarnAction", localVarResponse));
@@ -364,6 +386,13 @@ public CompletableFuture> getEarnActions(
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(),
+ "getEarnActions",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getEarnActions", localVarResponse));
@@ -461,6 +490,13 @@ public CompletableFuture> getEarnOpportuni
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(),
+ "getEarnOpportunities",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -570,6 +606,13 @@ public CompletableFuture> getEarnPositions(
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(),
+ "getEarnPositions",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getEarnPositions", localVarResponse));
@@ -679,6 +722,13 @@ public CompletableFuture> getEarnProviders(
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(),
+ "getEarnProviders",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getEarnProviders", localVarResponse));
diff --git a/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java b/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java
index 66e6c96a..22a8bcfc 100644
--- a/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java
@@ -18,6 +18,7 @@
import com.fireblocks.sdk.ApiClient;
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.ApiResponse;
+import com.fireblocks.sdk.LifecycleWarning;
import com.fireblocks.sdk.Pair;
import com.fireblocks.sdk.ValidationUtils;
import com.fireblocks.sdk.model.EmbeddedWallet;
@@ -142,6 +143,13 @@ public CompletableFuture> addEmbeddedW
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(),
+ "addEmbeddedWalletAsset",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -233,6 +241,13 @@ public CompletableFuture> assignEmbeddedWallet(
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(),
+ "assignEmbeddedWallet",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -314,6 +329,13 @@ public CompletableFuture> createEmbeddedWallet(
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(),
+ "createEmbeddedWallet",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -393,6 +415,13 @@ public CompletableFuture> createEmbeddedWalle
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(),
+ "createEmbeddedWalletAccount",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -474,6 +503,13 @@ public CompletableFuture> getEmbeddedWallet(String w
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(),
+ "getEmbeddedWallet",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException("getEmbeddedWallet", localVarResponse));
@@ -550,6 +586,13 @@ public CompletableFuture> getEmbeddedWalletAc
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(),
+ "getEmbeddedWalletAccount",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -656,6 +699,13 @@ private HttpRequest.Builder getEmbeddedWalletAccountRequestBuilder(
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(),
+ "getEmbeddedWalletAddresses",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -778,6 +828,13 @@ public CompletableFuture> getEmbeddedWa
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(),
+ "getEmbeddedWalletAsset",
+ localVarResponse.statusCode());
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
getApiException(
@@ -864,6 +921,13 @@ public CompletableFuture