diff --git a/.sdk-version b/.sdk-version
index 9b8a6e4..b73a4f7 100644
--- a/.sdk-version
+++ b/.sdk-version
@@ -1 +1 @@
-v2.37.4
+v2.42.0
diff --git a/README.md b/README.md
index 174fb25..8975968 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ Add this dependency to your project's POM:
ai.reveng
sdk
- 2.37.4
+ 2.42.0
compile
```
@@ -31,7 +31,7 @@ repositories {
}
dependencies {
- implementation "ai.reveng:sdk:2.37.4"
+ implementation "ai.reveng:sdk:2.42.0"
}
```
diff --git a/build.gradle b/build.gradle
index 0ac2f5f..ed0b42f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -19,7 +19,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'
group = 'ai.reveng'
-version = '2.37.4'
+version = '2.42.0'
@@ -171,7 +171,7 @@ mavenPublishing {
publishToMavenCentral(true)
signAllPublications()
- coordinates("ai.reveng", "sdk", "2.37.4")
+ coordinates("ai.reveng", "sdk", "2.42.0")
pom {
name = "sdk"
diff --git a/build.sbt b/build.sbt
index 0d96faa..cc130bb 100644
--- a/build.sbt
+++ b/build.sbt
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "ai.reveng",
name := "sdk",
- version := "2.37.4",
+ version := "2.42.0",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
diff --git a/docs/FunctionsDetailResponse.md b/docs/FunctionsDetailResponse.md
index 1a86a02..600b735 100644
--- a/docs/FunctionsDetailResponse.md
+++ b/docs/FunctionsDetailResponse.md
@@ -9,6 +9,7 @@
|------------ | ------------- | ------------- | -------------|
|**functionId** | **Long** | Function id | |
|**functionName** | **String** | | |
+|**functionNameMangled** | **String** | | |
|**functionVaddr** | **Long** | | |
|**functionSize** | **Integer** | | |
|**analysisId** | **Integer** | | |
diff --git a/pom.xml b/pom.xml
index 0813d3c..2248a5c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
sdk
jar
sdk
- 2.37.4
+ 2.42.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 a025e06..4157c56 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/2.37.4/java");
+ setUserAgent("OpenAPI-Generator/2.42.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 32753c0..e661bd8 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 = "2.37.4";
+ public static final String VERSION = "2.42.0";
private static final AtomicReference defaultApiClient = new AtomicReference<>();
private static volatile Supplier apiClientFactory = ApiClient::new;
diff --git a/src/main/java/ai/reveng/model/AutoUnstripRequest.java b/src/main/java/ai/reveng/model/AutoUnstripRequest.java
index 3cfd671..008e73f 100644
--- a/src/main/java/ai/reveng/model/AutoUnstripRequest.java
+++ b/src/main/java/ai/reveng/model/AutoUnstripRequest.java
@@ -53,31 +53,37 @@
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AutoUnstripRequest {
public static final String SERIALIZED_NAME_MIN_SIMILARITY = "min_similarity";
+ @Deprecated
@SerializedName(SERIALIZED_NAME_MIN_SIMILARITY)
@javax.annotation.Nullable
private BigDecimal minSimilarity = new BigDecimal("90.0");
public static final String SERIALIZED_NAME_APPLY = "apply";
+ @Deprecated
@SerializedName(SERIALIZED_NAME_APPLY)
@javax.annotation.Nullable
private Boolean apply = false;
public static final String SERIALIZED_NAME_CONFIDENCE_THRESHOLD = "confidence_threshold";
+ @Deprecated
@SerializedName(SERIALIZED_NAME_CONFIDENCE_THRESHOLD)
@javax.annotation.Nullable
private BigDecimal confidenceThreshold = new BigDecimal("90.0");
public static final String SERIALIZED_NAME_MIN_GROUP_SIZE = "min_group_size";
+ @Deprecated
@SerializedName(SERIALIZED_NAME_MIN_GROUP_SIZE)
@javax.annotation.Nullable
private Integer minGroupSize = 10;
public static final String SERIALIZED_NAME_STATUS_ONLY = "status_only";
+ @Deprecated
@SerializedName(SERIALIZED_NAME_STATUS_ONLY)
@javax.annotation.Nullable
private Boolean statusOnly = false;
public static final String SERIALIZED_NAME_NO_CACHE = "no_cache";
+ @Deprecated
@SerializedName(SERIALIZED_NAME_NO_CACHE)
@javax.annotation.Nullable
private Boolean noCache = false;
@@ -85,6 +91,7 @@ public class AutoUnstripRequest {
public AutoUnstripRequest() {
}
+ @Deprecated
public AutoUnstripRequest minSimilarity(@javax.annotation.Nullable BigDecimal minSimilarity) {
this.minSimilarity = minSimilarity;
return this;
@@ -95,17 +102,21 @@ public AutoUnstripRequest minSimilarity(@javax.annotation.Nullable BigDecimal mi
* minimum: 0.0
* maximum: 100.0
* @return minSimilarity
+ * @deprecated
*/
+ @Deprecated
@javax.annotation.Nullable
public BigDecimal getMinSimilarity() {
return minSimilarity;
}
+ @Deprecated
public void setMinSimilarity(@javax.annotation.Nullable BigDecimal minSimilarity) {
this.minSimilarity = minSimilarity;
}
+ @Deprecated
public AutoUnstripRequest apply(@javax.annotation.Nullable Boolean apply) {
this.apply = apply;
return this;
@@ -114,17 +125,21 @@ public AutoUnstripRequest apply(@javax.annotation.Nullable Boolean apply) {
/**
* Whether to apply the matched function names to the target binary, default is False
* @return apply
+ * @deprecated
*/
+ @Deprecated
@javax.annotation.Nullable
public Boolean getApply() {
return apply;
}
+ @Deprecated
public void setApply(@javax.annotation.Nullable Boolean apply) {
this.apply = apply;
}
+ @Deprecated
public AutoUnstripRequest confidenceThreshold(@javax.annotation.Nullable BigDecimal confidenceThreshold) {
this.confidenceThreshold = confidenceThreshold;
return this;
@@ -135,17 +150,21 @@ public AutoUnstripRequest confidenceThreshold(@javax.annotation.Nullable BigDeci
* minimum: 0.0
* maximum: 100.0
* @return confidenceThreshold
+ * @deprecated
*/
+ @Deprecated
@javax.annotation.Nullable
public BigDecimal getConfidenceThreshold() {
return confidenceThreshold;
}
+ @Deprecated
public void setConfidenceThreshold(@javax.annotation.Nullable BigDecimal confidenceThreshold) {
this.confidenceThreshold = confidenceThreshold;
}
+ @Deprecated
public AutoUnstripRequest minGroupSize(@javax.annotation.Nullable Integer minGroupSize) {
this.minGroupSize = minGroupSize;
return this;
@@ -156,17 +175,21 @@ public AutoUnstripRequest minGroupSize(@javax.annotation.Nullable Integer minGro
* minimum: 1
* maximum: 20
* @return minGroupSize
+ * @deprecated
*/
+ @Deprecated
@javax.annotation.Nullable
public Integer getMinGroupSize() {
return minGroupSize;
}
+ @Deprecated
public void setMinGroupSize(@javax.annotation.Nullable Integer minGroupSize) {
this.minGroupSize = minGroupSize;
}
+ @Deprecated
public AutoUnstripRequest statusOnly(@javax.annotation.Nullable Boolean statusOnly) {
this.statusOnly = statusOnly;
return this;
@@ -175,17 +198,21 @@ public AutoUnstripRequest statusOnly(@javax.annotation.Nullable Boolean statusOn
/**
* If set to true, only returns the status of the auto-unstrip operation without the actual results
* @return statusOnly
+ * @deprecated
*/
+ @Deprecated
@javax.annotation.Nullable
public Boolean getStatusOnly() {
return statusOnly;
}
+ @Deprecated
public void setStatusOnly(@javax.annotation.Nullable Boolean statusOnly) {
this.statusOnly = statusOnly;
}
+ @Deprecated
public AutoUnstripRequest noCache(@javax.annotation.Nullable Boolean noCache) {
this.noCache = noCache;
return this;
@@ -194,12 +221,15 @@ public AutoUnstripRequest noCache(@javax.annotation.Nullable Boolean noCache) {
/**
* If set to true, forces the system to bypass any cached results and perform a fresh computation
* @return noCache
+ * @deprecated
*/
+ @Deprecated
@javax.annotation.Nullable
public Boolean getNoCache() {
return noCache;
}
+ @Deprecated
public void setNoCache(@javax.annotation.Nullable Boolean noCache) {
this.noCache = noCache;
}
diff --git a/src/main/java/ai/reveng/model/AutoUnstripResponse.java b/src/main/java/ai/reveng/model/AutoUnstripResponse.java
index 7ad4a15..1965924 100644
--- a/src/main/java/ai/reveng/model/AutoUnstripResponse.java
+++ b/src/main/java/ai/reveng/model/AutoUnstripResponse.java
@@ -56,6 +56,7 @@
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AutoUnstripResponse {
public static final String SERIALIZED_NAME_PROGRESS = "progress";
+ @Deprecated
@SerializedName(SERIALIZED_NAME_PROGRESS)
@javax.annotation.Nullable
private Integer progress = 0;
@@ -88,6 +89,7 @@ public class AutoUnstripResponse {
public AutoUnstripResponse() {
}
+ @Deprecated
public AutoUnstripResponse progress(@javax.annotation.Nullable Integer progress) {
this.progress = progress;
return this;
@@ -96,12 +98,15 @@ public AutoUnstripResponse progress(@javax.annotation.Nullable Integer progress)
/**
* Progress of the auto-unstrip operation, represented as a percentage
* @return progress
+ * @deprecated
*/
+ @Deprecated
@javax.annotation.Nullable
public Integer getProgress() {
return progress;
}
+ @Deprecated
public void setProgress(@javax.annotation.Nullable Integer progress) {
this.progress = progress;
}
diff --git a/src/main/java/ai/reveng/model/FunctionsDetailResponse.java b/src/main/java/ai/reveng/model/FunctionsDetailResponse.java
index 74a59cb..38c1154 100644
--- a/src/main/java/ai/reveng/model/FunctionsDetailResponse.java
+++ b/src/main/java/ai/reveng/model/FunctionsDetailResponse.java
@@ -65,6 +65,11 @@ public class FunctionsDetailResponse {
@javax.annotation.Nonnull
private String functionName;
+ public static final String SERIALIZED_NAME_FUNCTION_NAME_MANGLED = "function_name_mangled";
+ @SerializedName(SERIALIZED_NAME_FUNCTION_NAME_MANGLED)
+ @javax.annotation.Nonnull
+ private String functionNameMangled;
+
public static final String SERIALIZED_NAME_FUNCTION_VADDR = "function_vaddr";
@SerializedName(SERIALIZED_NAME_FUNCTION_VADDR)
@javax.annotation.Nonnull
@@ -156,6 +161,25 @@ public void setFunctionName(@javax.annotation.Nonnull String functionName) {
}
+ public FunctionsDetailResponse functionNameMangled(@javax.annotation.Nonnull String functionNameMangled) {
+ this.functionNameMangled = functionNameMangled;
+ return this;
+ }
+
+ /**
+ * Get functionNameMangled
+ * @return functionNameMangled
+ */
+ @javax.annotation.Nonnull
+ public String getFunctionNameMangled() {
+ return functionNameMangled;
+ }
+
+ public void setFunctionNameMangled(@javax.annotation.Nonnull String functionNameMangled) {
+ this.functionNameMangled = functionNameMangled;
+ }
+
+
public FunctionsDetailResponse functionVaddr(@javax.annotation.Nonnull Long functionVaddr) {
this.functionVaddr = functionVaddr;
return this;
@@ -418,6 +442,7 @@ public boolean equals(Object o) {
FunctionsDetailResponse functionsDetailResponse = (FunctionsDetailResponse) o;
return Objects.equals(this.functionId, functionsDetailResponse.functionId) &&
Objects.equals(this.functionName, functionsDetailResponse.functionName) &&
+ Objects.equals(this.functionNameMangled, functionsDetailResponse.functionNameMangled) &&
Objects.equals(this.functionVaddr, functionsDetailResponse.functionVaddr) &&
Objects.equals(this.functionSize, functionsDetailResponse.functionSize) &&
Objects.equals(this.analysisId, functionsDetailResponse.analysisId) &&
@@ -437,7 +462,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b)
@Override
public int hashCode() {
- return Objects.hash(functionId, functionName, functionVaddr, functionSize, analysisId, binaryId, binaryName, sha256Hash, debugHash, debug, embedding3d, embedding1d, additionalProperties);
+ return Objects.hash(functionId, functionName, functionNameMangled, functionVaddr, functionSize, analysisId, binaryId, binaryName, sha256Hash, debugHash, debug, embedding3d, embedding1d, additionalProperties);
}
private static int hashCodeNullable(JsonNullable a) {
@@ -453,6 +478,7 @@ public String toString() {
sb.append("class FunctionsDetailResponse {\n");
sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n");
sb.append(" functionName: ").append(toIndentedString(functionName)).append("\n");
+ sb.append(" functionNameMangled: ").append(toIndentedString(functionNameMangled)).append("\n");
sb.append(" functionVaddr: ").append(toIndentedString(functionVaddr)).append("\n");
sb.append(" functionSize: ").append(toIndentedString(functionSize)).append("\n");
sb.append(" analysisId: ").append(toIndentedString(analysisId)).append("\n");
@@ -485,10 +511,10 @@ 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_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", "embedding_3d", "embedding_1d"));
// a set of required properties/fields (JSON key names)
- openapiRequiredFields = new HashSet(Arrays.asList("function_id", "function_name", "function_vaddr", "function_size", "analysis_id", "binary_id", "binary_name", "sha_256_hash", "debug_hash", "debug"));
+ 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"));
}
/**
@@ -514,6 +540,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!jsonObj.get("function_name").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `function_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("function_name").toString()));
}
+ if (!jsonObj.get("function_name_mangled").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `function_name_mangled` to be a primitive type in the JSON string but got `%s`", jsonObj.get("function_name_mangled").toString()));
+ }
if (!jsonObj.get("binary_name").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `binary_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("binary_name").toString()));
}
diff --git a/src/test/java/ai/reveng/model/FunctionsDetailResponseTest.java b/src/test/java/ai/reveng/model/FunctionsDetailResponseTest.java
index 0af1998..182f0bf 100644
--- a/src/test/java/ai/reveng/model/FunctionsDetailResponseTest.java
+++ b/src/test/java/ai/reveng/model/FunctionsDetailResponseTest.java
@@ -56,6 +56,14 @@ public void functionNameTest() {
// TODO: test functionName
}
+ /**
+ * Test the property 'functionNameMangled'
+ */
+ @Test
+ public void functionNameMangledTest() {
+ // TODO: test functionNameMangled
+ }
+
/**
* Test the property 'functionVaddr'
*/