From 4e8a6cd9aee8b1cc90534a9a66886b37eb603bdc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 10 Feb 2026 07:23:50 +0000 Subject: [PATCH] Update SDK to version v3.8.0 - Generated from OpenAPI spec version v3.8.0 - Auto-generated by GitHub Actions --- .sdk-version | 2 +- README.md | 4 +- build.gradle | 4 +- build.sbt | 2 +- docs/Basic.md | 2 + pom.xml | 2 +- .../java/ai/reveng/invoker/ApiClient.java | 2 +- .../java/ai/reveng/invoker/Configuration.java | 2 +- src/main/java/ai/reveng/model/Basic.java | 76 ++++++++++++++++++- src/test/java/ai/reveng/model/BasicTest.java | 17 +++++ 10 files changed, 101 insertions(+), 12 deletions(-) diff --git a/.sdk-version b/.sdk-version index 130165b..40c06cc 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v3.6.0 +v3.8.0 diff --git a/README.md b/README.md index 15995f8..03bb77c 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Add this dependency to your project's POM: ai.reveng sdk - 3.6.0 + 3.8.0 compile ``` @@ -31,7 +31,7 @@ repositories { } dependencies { - implementation "ai.reveng:sdk:3.6.0" + implementation "ai.reveng:sdk:3.8.0" } ``` diff --git a/build.gradle b/build.gradle index 4f69009..461d5b9 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'ai.reveng' -version = '3.6.0' +version = '3.8.0' @@ -171,7 +171,7 @@ mavenPublishing { publishToMavenCentral(true) signAllPublications() - coordinates("ai.reveng", "sdk", "3.6.0") + coordinates("ai.reveng", "sdk", "3.8.0") pom { name = "sdk" diff --git a/build.sbt b/build.sbt index 878f88b..9dbb773 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "ai.reveng", name := "sdk", - version := "3.6.0", + version := "3.8.0", scalaVersion := "2.11.12", scalacOptions ++= Seq("-feature"), compile / javacOptions ++= Seq("-Xlint:deprecation"), diff --git a/docs/Basic.md b/docs/Basic.md index 613a170..dfda8d8 100644 --- a/docs/Basic.md +++ b/docs/Basic.md @@ -21,6 +21,8 @@ |**functionCount** | **Integer** | The number of functions in the binary | | |**isAdvanced** | **Boolean** | Whether the analysis was advanced | | |**baseAddress** | **Integer** | | | +|**binaryUuid** | **String** | | [optional] | +|**sequencerVersion** | **String** | | [optional] | diff --git a/pom.xml b/pom.xml index 1e9aac2..dfda8b5 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ sdk jar sdk - 3.6.0 + 3.8.0 https://github.com/RevEngAI/sdk-java Java SDK for the RevEng.AI API diff --git a/src/main/java/ai/reveng/invoker/ApiClient.java b/src/main/java/ai/reveng/invoker/ApiClient.java index 863d0a3..95241fc 100644 --- a/src/main/java/ai/reveng/invoker/ApiClient.java +++ b/src/main/java/ai/reveng/invoker/ApiClient.java @@ -146,7 +146,7 @@ protected void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/3.6.0/java"); + setUserAgent("OpenAPI-Generator/3.8.0/java"); authentications = new HashMap(); } diff --git a/src/main/java/ai/reveng/invoker/Configuration.java b/src/main/java/ai/reveng/invoker/Configuration.java index 7a3101d..52da497 100644 --- a/src/main/java/ai/reveng/invoker/Configuration.java +++ b/src/main/java/ai/reveng/invoker/Configuration.java @@ -18,7 +18,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Configuration { - public static final String VERSION = "3.6.0"; + public static final String VERSION = "3.8.0"; private static final AtomicReference defaultApiClient = new AtomicReference<>(); private static volatile Supplier apiClientFactory = ApiClient::new; diff --git a/src/main/java/ai/reveng/model/Basic.java b/src/main/java/ai/reveng/model/Basic.java index 23805ff..0591a2e 100644 --- a/src/main/java/ai/reveng/model/Basic.java +++ b/src/main/java/ai/reveng/model/Basic.java @@ -22,6 +22,7 @@ import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -122,6 +123,16 @@ public class Basic { @javax.annotation.Nullable private Integer baseAddress; + public static final String SERIALIZED_NAME_BINARY_UUID = "binary_uuid"; + @SerializedName(SERIALIZED_NAME_BINARY_UUID) + @javax.annotation.Nullable + private String binaryUuid; + + public static final String SERIALIZED_NAME_SEQUENCER_VERSION = "sequencer_version"; + @SerializedName(SERIALIZED_NAME_SEQUENCER_VERSION) + @javax.annotation.Nullable + private String sequencerVersion; + public Basic() { } @@ -390,6 +401,44 @@ public void setBaseAddress(@javax.annotation.Nullable Integer baseAddress) { this.baseAddress = baseAddress; } + + public Basic binaryUuid(@javax.annotation.Nullable String binaryUuid) { + this.binaryUuid = binaryUuid; + return this; + } + + /** + * Get binaryUuid + * @return binaryUuid + */ + @javax.annotation.Nullable + public String getBinaryUuid() { + return binaryUuid; + } + + public void setBinaryUuid(@javax.annotation.Nullable String binaryUuid) { + this.binaryUuid = binaryUuid; + } + + + public Basic sequencerVersion(@javax.annotation.Nullable String sequencerVersion) { + this.sequencerVersion = sequencerVersion; + return this; + } + + /** + * Get sequencerVersion + * @return sequencerVersion + */ + @javax.annotation.Nullable + public String getSequencerVersion() { + return sequencerVersion; + } + + public void setSequencerVersion(@javax.annotation.Nullable String sequencerVersion) { + this.sequencerVersion = sequencerVersion; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -458,13 +507,26 @@ public boolean equals(Object o) { Objects.equals(this.debug, basic.debug) && Objects.equals(this.functionCount, basic.functionCount) && Objects.equals(this.isAdvanced, basic.isAdvanced) && - Objects.equals(this.baseAddress, basic.baseAddress)&& + Objects.equals(this.baseAddress, basic.baseAddress) && + Objects.equals(this.binaryUuid, basic.binaryUuid) && + Objects.equals(this.sequencerVersion, basic.sequencerVersion)&& Objects.equals(this.additionalProperties, basic.additionalProperties); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(binaryName, binarySize, creation, sha256Hash, modelName, modelId, ownerUsername, isSystem, analysisScope, isOwner, debug, functionCount, isAdvanced, baseAddress, additionalProperties); + return Objects.hash(binaryName, binarySize, creation, sha256Hash, modelName, modelId, ownerUsername, isSystem, analysisScope, isOwner, debug, functionCount, isAdvanced, baseAddress, binaryUuid, sequencerVersion, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -485,6 +547,8 @@ public String toString() { sb.append(" functionCount: ").append(toIndentedString(functionCount)).append("\n"); sb.append(" isAdvanced: ").append(toIndentedString(isAdvanced)).append("\n"); sb.append(" baseAddress: ").append(toIndentedString(baseAddress)).append("\n"); + sb.append(" binaryUuid: ").append(toIndentedString(binaryUuid)).append("\n"); + sb.append(" sequencerVersion: ").append(toIndentedString(sequencerVersion)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -507,7 +571,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "model_id", "owner_username", "is_system", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address")); + openapiFields = new HashSet(Arrays.asList("binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "model_id", "owner_username", "is_system", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address", "binary_uuid", "sequencer_version")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "model_id", "owner_username", "is_system", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address")); @@ -548,6 +612,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("analysis_scope").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `analysis_scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("analysis_scope").toString())); } + if ((jsonObj.get("binary_uuid") != null && !jsonObj.get("binary_uuid").isJsonNull()) && !jsonObj.get("binary_uuid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `binary_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("binary_uuid").toString())); + } + if ((jsonObj.get("sequencer_version") != null && !jsonObj.get("sequencer_version").isJsonNull()) && !jsonObj.get("sequencer_version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sequencer_version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sequencer_version").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/test/java/ai/reveng/model/BasicTest.java b/src/test/java/ai/reveng/model/BasicTest.java index 2c3b85a..2e88a55 100644 --- a/src/test/java/ai/reveng/model/BasicTest.java +++ b/src/test/java/ai/reveng/model/BasicTest.java @@ -20,6 +20,7 @@ import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -149,4 +150,20 @@ public void baseAddressTest() { // TODO: test baseAddress } + /** + * Test the property 'binaryUuid' + */ + @Test + public void binaryUuidTest() { + // TODO: test binaryUuid + } + + /** + * Test the property 'sequencerVersion' + */ + @Test + public void sequencerVersionTest() { + // TODO: test sequencerVersion + } + }