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 @@
v3.101.0
v3.102.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>3.101.0</version>
<version>3.102.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:3.101.0"
implementation "ai.reveng:sdk:3.102.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 = '3.101.0'
version = '3.102.0'



Expand Down Expand Up @@ -171,7 +171,7 @@ mavenPublishing {
publishToMavenCentral(true)
signAllPublications()

coordinates("ai.reveng", "sdk", "3.101.0")
coordinates("ai.reveng", "sdk", "3.102.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 := "3.101.0",
version := "3.102.0",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
2 changes: 1 addition & 1 deletion docs/AnalysisBasicInfoOutputBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
|**binaryId** | **Long** | Binary ID | |
|**binaryName** | **String** | Binary filename | |
|**binarySize** | **Long** | Binary size in bytes | |
|**binaryUuid** | **String** | UUID of the binary, omitted when not set | [optional] |
|**binaryUuid** | **String** | UUID of the binary, omitted when not set | |
|**creation** | **OffsetDateTime** | When the binary was uploaded | |
|**debug** | **Boolean** | True when the binary was analysed with debug symbols | |
|**functionCount** | **Long** | Number of functions in the binary | |
Expand Down
1 change: 1 addition & 0 deletions docs/DataTypesEntry.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**dataTypes** | [**FunctionInfo**](FunctionInfo.md) | | [optional] |
|**dataTypesVersion** | **Long** | Current version of the function data types. Pass this back on the next write to satisfy the CAS check. | |
|**functionId** | **Long** | | |


Expand Down
1 change: 1 addition & 0 deletions docs/FunctionDetailsOutputBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**analysisId** | **Long** | | |
|**binaryId** | **Long** | | |
|**creation** | **OffsetDateTime** | | |
|**debug** | **Boolean** | | |
Expand Down
1 change: 1 addition & 0 deletions docs/StartMatchingForFunctionsInputBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
|**functionIds** | **List&lt;Long&gt;** | Source function IDs to match against the rest of the corpus. | |
|**minSimilarity** | **Double** | Similarity floor as a percentage. Defaults to 90. | [optional] |
|**resultsPerFunction** | **Long** | Max matches returned per source function. Defaults to 1. | [optional] |
|**useCanonicalNames** | **Boolean** | Collapse near-duplicate candidate names into canonical buckets and return per-name confidences (the response &#39;confidences&#39; array). Adds a canonicalisation step; defaults to false. | [optional] |



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>3.101.0</version>
<version>3.102.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 @@ -148,7 +148,7 @@ protected void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/3.101.0/java");
setUserAgent("OpenAPI-Generator/3.102.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 = "3.101.0";
public static final String VERSION = "3.102.0";

private static final AtomicReference<ApiClient> defaultApiClient = new AtomicReference<>();
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/ai/reveng/model/AnalysisBasicInfoOutputBody.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti

public static final String SERIALIZED_NAME_BINARY_UUID = "binary_uuid";
@SerializedName(SERIALIZED_NAME_BINARY_UUID)
@javax.annotation.Nullable
@javax.annotation.Nonnull
private String binaryUuid;

public static final String SERIALIZED_NAME_CREATION = "creation";
Expand Down Expand Up @@ -294,7 +294,7 @@ public void setBinarySize(@javax.annotation.Nonnull Long binarySize) {
}


public AnalysisBasicInfoOutputBody binaryUuid(@javax.annotation.Nullable String binaryUuid) {
public AnalysisBasicInfoOutputBody binaryUuid(@javax.annotation.Nonnull String binaryUuid) {
this.binaryUuid = binaryUuid;
return this;
}
Expand All @@ -303,12 +303,12 @@ public AnalysisBasicInfoOutputBody binaryUuid(@javax.annotation.Nullable String
* UUID of the binary, omitted when not set
* @return binaryUuid
*/
@javax.annotation.Nullable
@javax.annotation.Nonnull
public String getBinaryUuid() {
return binaryUuid;
}

public void setBinaryUuid(@javax.annotation.Nullable String binaryUuid) {
public void setBinaryUuid(@javax.annotation.Nonnull String binaryUuid) {
this.binaryUuid = binaryUuid;
}

Expand Down Expand Up @@ -619,7 +619,7 @@ private String toIndentedString(Object o) {
openapiFields = new HashSet<String>(Arrays.asList("analysis_scope", "base_address", "binary_id", "binary_name", "binary_size", "binary_uuid", "creation", "debug", "function_count", "is_advanced", "is_owner", "is_system", "model_id", "model_name", "owner_username", "sequencer_version", "sha_256_hash", "team_id"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("analysis_scope", "base_address", "binary_id", "binary_name", "binary_size", "creation", "debug", "function_count", "is_advanced", "is_owner", "is_system", "model_id", "model_name", "owner_username", "sha_256_hash", "team_id"));
openapiRequiredFields = new HashSet<String>(Arrays.asList("analysis_scope", "base_address", "binary_id", "binary_name", "binary_size", "binary_uuid", "creation", "debug", "function_count", "is_advanced", "is_owner", "is_system", "model_id", "model_name", "owner_username", "sha_256_hash", "team_id"));
}

/**
Expand Down Expand Up @@ -658,7 +658,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!jsonObj.get("binary_name").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `binary_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("binary_name").toString()));
}
if ((jsonObj.get("binary_uuid") != null && !jsonObj.get("binary_uuid").isJsonNull()) && !jsonObj.get("binary_uuid").isJsonPrimitive()) {
if (!jsonObj.get("binary_uuid").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(java.util.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("model_name").isJsonPrimitive()) {
Expand Down
32 changes: 29 additions & 3 deletions src/main/java/ai/reveng/model/DataTypesEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ public class DataTypesEntry {
@javax.annotation.Nullable
private FunctionInfo dataTypes;

public static final String SERIALIZED_NAME_DATA_TYPES_VERSION = "data_types_version";
@SerializedName(SERIALIZED_NAME_DATA_TYPES_VERSION)
@javax.annotation.Nonnull
private Long dataTypesVersion;

public static final String SERIALIZED_NAME_FUNCTION_ID = "function_id";
@SerializedName(SERIALIZED_NAME_FUNCTION_ID)
@javax.annotation.Nonnull
Expand Down Expand Up @@ -82,6 +87,25 @@ public void setDataTypes(@javax.annotation.Nullable FunctionInfo dataTypes) {
}


public DataTypesEntry dataTypesVersion(@javax.annotation.Nonnull Long dataTypesVersion) {
this.dataTypesVersion = dataTypesVersion;
return this;
}

/**
* Current version of the function data types. Pass this back on the next write to satisfy the CAS check.
* @return dataTypesVersion
*/
@javax.annotation.Nonnull
public Long getDataTypesVersion() {
return dataTypesVersion;
}

public void setDataTypesVersion(@javax.annotation.Nonnull Long dataTypesVersion) {
this.dataTypesVersion = dataTypesVersion;
}


public DataTypesEntry functionId(@javax.annotation.Nonnull Long functionId) {
this.functionId = functionId;
return this;
Expand Down Expand Up @@ -112,19 +136,21 @@ public boolean equals(Object o) {
}
DataTypesEntry dataTypesEntry = (DataTypesEntry) o;
return Objects.equals(this.dataTypes, dataTypesEntry.dataTypes) &&
Objects.equals(this.dataTypesVersion, dataTypesEntry.dataTypesVersion) &&
Objects.equals(this.functionId, dataTypesEntry.functionId);
}

@Override
public int hashCode() {
return Objects.hash(dataTypes, functionId);
return Objects.hash(dataTypes, dataTypesVersion, functionId);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DataTypesEntry {\n");
sb.append(" dataTypes: ").append(toIndentedString(dataTypes)).append("\n");
sb.append(" dataTypesVersion: ").append(toIndentedString(dataTypesVersion)).append("\n");
sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n");
sb.append("}");
return sb.toString();
Expand All @@ -144,10 +170,10 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(Arrays.asList("data_types", "function_id"));
openapiFields = new HashSet<String>(Arrays.asList("data_types", "data_types_version", "function_id"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("function_id"));
openapiRequiredFields = new HashSet<String>(Arrays.asList("data_types_version", "function_id"));
}

/**
Expand Down
34 changes: 30 additions & 4 deletions src/main/java/ai/reveng/model/FunctionDetailsOutputBody.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class FunctionDetailsOutputBody {
public static final String SERIALIZED_NAME_ANALYSIS_ID = "analysis_id";
@SerializedName(SERIALIZED_NAME_ANALYSIS_ID)
@javax.annotation.Nonnull
private Long analysisId;

public static final String SERIALIZED_NAME_BINARY_ID = "binary_id";
@SerializedName(SERIALIZED_NAME_BINARY_ID)
@javax.annotation.Nonnull
Expand Down Expand Up @@ -98,6 +103,25 @@ public class FunctionDetailsOutputBody {
public FunctionDetailsOutputBody() {
}

public FunctionDetailsOutputBody analysisId(@javax.annotation.Nonnull Long analysisId) {
this.analysisId = analysisId;
return this;
}

/**
* Get analysisId
* @return analysisId
*/
@javax.annotation.Nonnull
public Long getAnalysisId() {
return analysisId;
}

public void setAnalysisId(@javax.annotation.Nonnull Long analysisId) {
this.analysisId = analysisId;
}


public FunctionDetailsOutputBody binaryId(@javax.annotation.Nonnull Long binaryId) {
this.binaryId = binaryId;
return this;
Expand Down Expand Up @@ -279,7 +303,8 @@ public boolean equals(Object o) {
return false;
}
FunctionDetailsOutputBody functionDetailsOutputBody = (FunctionDetailsOutputBody) o;
return Objects.equals(this.binaryId, functionDetailsOutputBody.binaryId) &&
return Objects.equals(this.analysisId, functionDetailsOutputBody.analysisId) &&
Objects.equals(this.binaryId, functionDetailsOutputBody.binaryId) &&
Objects.equals(this.creation, functionDetailsOutputBody.creation) &&
Objects.equals(this.debug, functionDetailsOutputBody.debug) &&
Objects.equals(this.functionId, functionDetailsOutputBody.functionId) &&
Expand All @@ -292,13 +317,14 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(binaryId, creation, debug, functionId, functionName, functionSize, functionVaddr, mangledName, sourceFunctionId);
return Objects.hash(analysisId, binaryId, creation, debug, functionId, functionName, functionSize, functionVaddr, mangledName, sourceFunctionId);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FunctionDetailsOutputBody {\n");
sb.append(" analysisId: ").append(toIndentedString(analysisId)).append("\n");
sb.append(" binaryId: ").append(toIndentedString(binaryId)).append("\n");
sb.append(" creation: ").append(toIndentedString(creation)).append("\n");
sb.append(" debug: ").append(toIndentedString(debug)).append("\n");
Expand Down Expand Up @@ -326,10 +352,10 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(Arrays.asList("binary_id", "creation", "debug", "function_id", "function_name", "function_size", "function_vaddr", "mangled_name", "source_function_id"));
openapiFields = new HashSet<String>(Arrays.asList("analysis_id", "binary_id", "creation", "debug", "function_id", "function_name", "function_size", "function_vaddr", "mangled_name", "source_function_id"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("binary_id", "creation", "debug", "function_id", "function_name", "function_size", "function_vaddr"));
openapiRequiredFields = new HashSet<String>(Arrays.asList("analysis_id", "binary_id", "creation", "debug", "function_id", "function_name", "function_size", "function_vaddr"));
}

/**
Expand Down
Loading