From 73964fe9b1e7373c69001adff17cc5606ca9f082 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 30 Mar 2026 07:30:56 +0000 Subject: [PATCH] Update SDK to version v3.56.0 - Generated from OpenAPI spec version v3.56.0 - Auto-generated by GitHub Actions --- .sdk-version | 2 +- README.md | 4 +- build.gradle | 4 +- build.sbt | 2 +- docs/AnalysisCreateRequest.md | 4 +- docs/AppApiRestV2FunctionsTypesFunction.md | 2 - docs/FunctionsDetailResponse.md | 2 - pom.xml | 2 +- .../java/ai/reveng/invoker/ApiClient.java | 2 +- .../java/ai/reveng/invoker/Configuration.java | 2 +- .../reveng/model/AnalysisCreateRequest.java | 4 +- .../AppApiRestV2FunctionsTypesFunction.java | 97 +------------------ .../reveng/model/FunctionsDetailResponse.java | 97 +------------------ 13 files changed, 19 insertions(+), 205 deletions(-) diff --git a/.sdk-version b/.sdk-version index f22d573..436ebfe 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v3.55.2 +v3.56.0 diff --git a/README.md b/README.md index 159784e..ee403e5 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Add this dependency to your project's POM: ai.reveng sdk - 3.55.2 + 3.56.0 compile ``` @@ -31,7 +31,7 @@ repositories { } dependencies { - implementation "ai.reveng:sdk:3.55.2" + implementation "ai.reveng:sdk:3.56.0" } ``` diff --git a/build.gradle b/build.gradle index b88dade..7e044d1 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'ai.reveng' -version = '3.55.2' +version = '3.56.0' @@ -171,7 +171,7 @@ mavenPublishing { publishToMavenCentral(true) signAllPublications() - coordinates("ai.reveng", "sdk", "3.55.2") + coordinates("ai.reveng", "sdk", "3.56.0") pom { name = "sdk" diff --git a/build.sbt b/build.sbt index fe0d8ab..dd7152b 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.55.2", + version := "3.56.0", scalaVersion := "2.11.12", scalacOptions ++= Seq("-feature"), compile / javacOptions ++= Seq("-Xlint:deprecation"), diff --git a/docs/AnalysisCreateRequest.md b/docs/AnalysisCreateRequest.md index 83a11ee..17a1897 100644 --- a/docs/AnalysisCreateRequest.md +++ b/docs/AnalysisCreateRequest.md @@ -8,8 +8,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**filename** | **String** | The name of the file | | -|**sha256Hash** | **String** | The name of the file | | -|**tags** | [**List<Tag>**](Tag.md) | List of community tags to assign to an analysis | [optional] | +|**sha256Hash** | **String** | The sha256 hash of the file | | +|**tags** | [**List<Tag>**](Tag.md) | List of tags to assign to an analysis | [optional] | |**analysisScope** | **AnalysisScope** | The scope of the analysis determines who can access it | [optional] | |**symbols** | [**Symbols**](Symbols.md) | | [optional] | |**debugHash** | **String** | | [optional] | diff --git a/docs/AppApiRestV2FunctionsTypesFunction.md b/docs/AppApiRestV2FunctionsTypesFunction.md index 32aa95e..9c9ab27 100644 --- a/docs/AppApiRestV2FunctionsTypesFunction.md +++ b/docs/AppApiRestV2FunctionsTypesFunction.md @@ -13,8 +13,6 @@ |**functionVaddr** | **Long** | Function virtual address | | |**functionSize** | **Integer** | Function size | | |**debug** | **Boolean** | Whether the function is debug | | -|**embedding3d** | **List<BigDecimal>** | | [optional] | -|**embedding1d** | **List<BigDecimal>** | | [optional] | diff --git a/docs/FunctionsDetailResponse.md b/docs/FunctionsDetailResponse.md index 600b735..6b90c7a 100644 --- a/docs/FunctionsDetailResponse.md +++ b/docs/FunctionsDetailResponse.md @@ -18,8 +18,6 @@ |**sha256Hash** | **String** | | | |**debugHash** | **String** | | | |**debug** | **Boolean** | | | -|**embedding3d** | **List<BigDecimal>** | | [optional] | -|**embedding1d** | **List<BigDecimal>** | | [optional] | diff --git a/pom.xml b/pom.xml index 60c4289..b8b79db 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ sdk jar sdk - 3.55.2 + 3.56.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 270ee6b..f4eda70 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.55.2/java"); + setUserAgent("OpenAPI-Generator/3.56.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 08b863c..8e79734 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.55.2"; + public static final String VERSION = "3.56.0"; private static final AtomicReference defaultApiClient = new AtomicReference<>(); private static volatile Supplier apiClientFactory = ApiClient::new; diff --git a/src/main/java/ai/reveng/model/AnalysisCreateRequest.java b/src/main/java/ai/reveng/model/AnalysisCreateRequest.java index c0427a4..a5a18f6 100644 --- a/src/main/java/ai/reveng/model/AnalysisCreateRequest.java +++ b/src/main/java/ai/reveng/model/AnalysisCreateRequest.java @@ -133,7 +133,7 @@ public AnalysisCreateRequest sha256Hash(@javax.annotation.Nonnull String sha256H } /** - * The name of the file + * The sha256 hash of the file * @return sha256Hash */ @javax.annotation.Nonnull @@ -160,7 +160,7 @@ public AnalysisCreateRequest addTagsItem(Tag tagsItem) { } /** - * List of community tags to assign to an analysis + * List of tags to assign to an analysis * @return tags */ @javax.annotation.Nullable diff --git a/src/main/java/ai/reveng/model/AppApiRestV2FunctionsTypesFunction.java b/src/main/java/ai/reveng/model/AppApiRestV2FunctionsTypesFunction.java index 0aa720d..be1ec91 100644 --- a/src/main/java/ai/reveng/model/AppApiRestV2FunctionsTypesFunction.java +++ b/src/main/java/ai/reveng/model/AppApiRestV2FunctionsTypesFunction.java @@ -20,11 +20,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.math.BigDecimal; -import java.util.ArrayList; import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -85,16 +81,6 @@ public class AppApiRestV2FunctionsTypesFunction { @javax.annotation.Nonnull private Boolean debug; - public static final String SERIALIZED_NAME_EMBEDDING3D = "embedding_3d"; - @SerializedName(SERIALIZED_NAME_EMBEDDING3D) - @javax.annotation.Nullable - private List embedding3d; - - public static final String SERIALIZED_NAME_EMBEDDING1D = "embedding_1d"; - @SerializedName(SERIALIZED_NAME_EMBEDDING1D) - @javax.annotation.Nullable - private List embedding1d; - public AppApiRestV2FunctionsTypesFunction() { } @@ -211,60 +197,6 @@ public void setDebug(@javax.annotation.Nonnull Boolean debug) { this.debug = debug; } - - public AppApiRestV2FunctionsTypesFunction embedding3d(@javax.annotation.Nullable List embedding3d) { - this.embedding3d = embedding3d; - return this; - } - - public AppApiRestV2FunctionsTypesFunction addEmbedding3dItem(BigDecimal embedding3dItem) { - if (this.embedding3d == null) { - this.embedding3d = new ArrayList<>(); - } - this.embedding3d.add(embedding3dItem); - return this; - } - - /** - * Get embedding3d - * @return embedding3d - */ - @javax.annotation.Nullable - public List getEmbedding3d() { - return embedding3d; - } - - public void setEmbedding3d(@javax.annotation.Nullable List embedding3d) { - this.embedding3d = embedding3d; - } - - - public AppApiRestV2FunctionsTypesFunction embedding1d(@javax.annotation.Nullable List embedding1d) { - this.embedding1d = embedding1d; - return this; - } - - public AppApiRestV2FunctionsTypesFunction addEmbedding1dItem(BigDecimal embedding1dItem) { - if (this.embedding1d == null) { - this.embedding1d = new ArrayList<>(); - } - this.embedding1d.add(embedding1dItem); - return this; - } - - /** - * Get embedding1d - * @return embedding1d - */ - @javax.annotation.Nullable - public List getEmbedding1d() { - return embedding1d; - } - - public void setEmbedding1d(@javax.annotation.Nullable List embedding1d) { - this.embedding1d = embedding1d; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -325,26 +257,13 @@ public boolean equals(Object o) { Objects.equals(this.functionMangledName, appApiRestV2FunctionsTypesFunction.functionMangledName) && Objects.equals(this.functionVaddr, appApiRestV2FunctionsTypesFunction.functionVaddr) && Objects.equals(this.functionSize, appApiRestV2FunctionsTypesFunction.functionSize) && - Objects.equals(this.debug, appApiRestV2FunctionsTypesFunction.debug) && - Objects.equals(this.embedding3d, appApiRestV2FunctionsTypesFunction.embedding3d) && - Objects.equals(this.embedding1d, appApiRestV2FunctionsTypesFunction.embedding1d)&& + Objects.equals(this.debug, appApiRestV2FunctionsTypesFunction.debug)&& Objects.equals(this.additionalProperties, appApiRestV2FunctionsTypesFunction.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(functionId, functionName, functionMangledName, functionVaddr, functionSize, debug, embedding3d, embedding1d, additionalProperties); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + return Objects.hash(functionId, functionName, functionMangledName, functionVaddr, functionSize, debug, additionalProperties); } @Override @@ -357,8 +276,6 @@ public String toString() { sb.append(" functionVaddr: ").append(toIndentedString(functionVaddr)).append("\n"); sb.append(" functionSize: ").append(toIndentedString(functionSize)).append("\n"); sb.append(" debug: ").append(toIndentedString(debug)).append("\n"); - sb.append(" embedding3d: ").append(toIndentedString(embedding3d)).append("\n"); - sb.append(" embedding1d: ").append(toIndentedString(embedding1d)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -381,7 +298,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("function_id", "function_name", "function_mangled_name", "function_vaddr", "function_size", "debug", "embedding_3d", "embedding_1d")); + openapiFields = new HashSet(Arrays.asList("function_id", "function_name", "function_mangled_name", "function_vaddr", "function_size", "debug")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("function_id", "function_name", "function_mangled_name", "function_vaddr", "function_size", "debug")); @@ -413,14 +330,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("function_mangled_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `function_mangled_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("function_mangled_name").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("embedding_3d") != null && !jsonObj.get("embedding_3d").isJsonNull() && !jsonObj.get("embedding_3d").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `embedding_3d` to be an array in the JSON string but got `%s`", jsonObj.get("embedding_3d").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("embedding_1d") != null && !jsonObj.get("embedding_1d").isJsonNull() && !jsonObj.get("embedding_1d").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `embedding_1d` to be an array in the JSON string but got `%s`", jsonObj.get("embedding_1d").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/FunctionsDetailResponse.java b/src/main/java/ai/reveng/model/FunctionsDetailResponse.java index 57f742c..3b0a38b 100644 --- a/src/main/java/ai/reveng/model/FunctionsDetailResponse.java +++ b/src/main/java/ai/reveng/model/FunctionsDetailResponse.java @@ -20,11 +20,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.math.BigDecimal; -import java.util.ArrayList; import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -110,16 +106,6 @@ public class FunctionsDetailResponse { @javax.annotation.Nonnull private Boolean debug; - public static final String SERIALIZED_NAME_EMBEDDING3D = "embedding_3d"; - @SerializedName(SERIALIZED_NAME_EMBEDDING3D) - @javax.annotation.Nullable - private List embedding3d; - - public static final String SERIALIZED_NAME_EMBEDDING1D = "embedding_1d"; - @SerializedName(SERIALIZED_NAME_EMBEDDING1D) - @javax.annotation.Nullable - private List embedding1d; - public FunctionsDetailResponse() { } @@ -331,60 +317,6 @@ public void setDebug(@javax.annotation.Nonnull Boolean debug) { this.debug = debug; } - - public FunctionsDetailResponse embedding3d(@javax.annotation.Nullable List embedding3d) { - this.embedding3d = embedding3d; - return this; - } - - public FunctionsDetailResponse addEmbedding3dItem(BigDecimal embedding3dItem) { - if (this.embedding3d == null) { - this.embedding3d = new ArrayList<>(); - } - this.embedding3d.add(embedding3dItem); - return this; - } - - /** - * Get embedding3d - * @return embedding3d - */ - @javax.annotation.Nullable - public List getEmbedding3d() { - return embedding3d; - } - - public void setEmbedding3d(@javax.annotation.Nullable List embedding3d) { - this.embedding3d = embedding3d; - } - - - public FunctionsDetailResponse embedding1d(@javax.annotation.Nullable List embedding1d) { - this.embedding1d = embedding1d; - return this; - } - - public FunctionsDetailResponse addEmbedding1dItem(BigDecimal embedding1dItem) { - if (this.embedding1d == null) { - this.embedding1d = new ArrayList<>(); - } - this.embedding1d.add(embedding1dItem); - return this; - } - - /** - * Get embedding1d - * @return embedding1d - */ - @javax.annotation.Nullable - public List getEmbedding1d() { - return embedding1d; - } - - public void setEmbedding1d(@javax.annotation.Nullable List embedding1d) { - this.embedding1d = embedding1d; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -450,26 +382,13 @@ public boolean equals(Object o) { Objects.equals(this.binaryName, functionsDetailResponse.binaryName) && Objects.equals(this.sha256Hash, functionsDetailResponse.sha256Hash) && Objects.equals(this.debugHash, functionsDetailResponse.debugHash) && - Objects.equals(this.debug, functionsDetailResponse.debug) && - Objects.equals(this.embedding3d, functionsDetailResponse.embedding3d) && - Objects.equals(this.embedding1d, functionsDetailResponse.embedding1d)&& + Objects.equals(this.debug, functionsDetailResponse.debug)&& Objects.equals(this.additionalProperties, functionsDetailResponse.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(functionId, functionName, functionNameMangled, functionVaddr, functionSize, analysisId, binaryId, binaryName, sha256Hash, debugHash, debug, embedding3d, embedding1d, additionalProperties); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + return Objects.hash(functionId, functionName, functionNameMangled, functionVaddr, functionSize, analysisId, binaryId, binaryName, sha256Hash, debugHash, debug, additionalProperties); } @Override @@ -487,8 +406,6 @@ public String toString() { sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n"); sb.append(" debugHash: ").append(toIndentedString(debugHash)).append("\n"); sb.append(" debug: ").append(toIndentedString(debug)).append("\n"); - sb.append(" embedding3d: ").append(toIndentedString(embedding3d)).append("\n"); - sb.append(" embedding1d: ").append(toIndentedString(embedding1d)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -511,7 +428,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("function_id", "function_name", "function_name_mangled", "function_vaddr", "function_size", "analysis_id", "binary_id", "binary_name", "sha_256_hash", "debug_hash", "debug", "embedding_3d", "embedding_1d")); + openapiFields = new HashSet(Arrays.asList("function_id", "function_name", "function_name_mangled", "function_vaddr", "function_size", "analysis_id", "binary_id", "binary_name", "sha_256_hash", "debug_hash", "debug")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("function_id", "function_name", "function_name_mangled", "function_vaddr", "function_size", "analysis_id", "binary_id", "binary_name", "sha_256_hash", "debug_hash", "debug")); @@ -552,14 +469,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("debug_hash") != null && !jsonObj.get("debug_hash").isJsonNull()) && !jsonObj.get("debug_hash").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `debug_hash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("debug_hash").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("embedding_3d") != null && !jsonObj.get("embedding_3d").isJsonNull() && !jsonObj.get("embedding_3d").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `embedding_3d` to be an array in the JSON string but got `%s`", jsonObj.get("embedding_3d").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("embedding_1d") != null && !jsonObj.get("embedding_1d").isJsonNull() && !jsonObj.get("embedding_1d").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `embedding_1d` to be an array in the JSON string but got `%s`", jsonObj.get("embedding_1d").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory {