Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .sdk-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.37.4
v2.42.0
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>ai.reveng</groupId>
<artifactId>sdk</artifactId>
<version>2.37.4</version>
<version>2.42.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:2.37.4"
implementation "ai.reveng:sdk:2.42.0"
}
```

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'

group = 'ai.reveng'
version = '2.37.4'
version = '2.42.0'



Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
1 change: 1 addition & 0 deletions docs/FunctionsDetailResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
|------------ | ------------- | ------------- | -------------|
|**functionId** | **Long** | Function id | |
|**functionName** | **String** | | |
|**functionNameMangled** | **String** | | |
|**functionVaddr** | **Long** | | |
|**functionSize** | **Integer** | | |
|**analysisId** | **Integer** | | |
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>sdk</artifactId>
<packaging>jar</packaging>
<name>sdk</name>
<version>2.37.4</version>
<version>2.42.0</version>
<url>https://github.com/RevEngAI/sdk-java</url>
<description>Java SDK for the RevEng.AI API</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ai/reveng/invoker/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Authentication>();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ai/reveng/invoker/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<ApiClient> defaultApiClient = new AtomicReference<>();
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;
Expand Down
30 changes: 30 additions & 0 deletions src/main/java/ai/reveng/model/AutoUnstripRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,38 +53,45 @@
@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;

public AutoUnstripRequest() {
}

@Deprecated
public AutoUnstripRequest minSimilarity(@javax.annotation.Nullable BigDecimal minSimilarity) {
this.minSimilarity = minSimilarity;
return this;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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;
}
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/ai/reveng/model/AutoUnstripResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -88,6 +89,7 @@ public class AutoUnstripResponse {
public AutoUnstripResponse() {
}

@Deprecated
public AutoUnstripResponse progress(@javax.annotation.Nullable Integer progress) {
this.progress = progress;
return this;
Expand All @@ -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;
}
Expand Down
35 changes: 32 additions & 3 deletions src/main/java/ai/reveng/model/FunctionsDetailResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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) &&
Expand All @@ -437,7 +462,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> 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 <T> int hashCodeNullable(JsonNullable<T> a) {
Expand All @@ -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");
Expand Down Expand Up @@ -485,10 +511,10 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(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<String>(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<String>(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<String>(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"));
}

/**
Expand All @@ -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()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
*/
Expand Down