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.78.1
v2.80.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.78.1</version>
<version>2.80.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:2.78.1"
implementation "ai.reveng:sdk:2.80.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.78.1'
version = '2.80.0'



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

coordinates("ai.reveng", "sdk", "2.78.1")
coordinates("ai.reveng", "sdk", "2.80.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.78.1",
version := "2.80.0",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
1 change: 1 addition & 0 deletions docs/Basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
|**modelName** | **String** | The model name used for analysis | |
|**modelId** | **Integer** | The model ID used for analysis | |
|**ownerUsername** | **String** | The name of the owner of the binary | |
|**isSystem** | **Boolean** | Whether the analysis is a system analysis | |
|**analysisScope** | **String** | The scope of the analysis | |
|**isOwner** | **Boolean** | Whether the current user is the owner | |
|**debug** | **Boolean** | Whether the current analysis was analysed with debug symbols | |
Expand Down
1 change: 1 addition & 0 deletions docs/CollectionBinaryResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
|**ownerId** | **Integer** | Binary owner | |
|**sha256Hash** | **String** | Binary SHA-256 hash | |
|**createdAt** | **OffsetDateTime** | Binary creation date | |
|**isSystemAnalysis** | **Boolean** | Is the analysis owned by a RevEng.AI account | |



1 change: 1 addition & 0 deletions docs/CollectionResponseBinariesInner.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
|**ownerId** | **Integer** | Binary owner | |
|**sha256Hash** | **String** | Binary SHA-256 hash | |
|**createdAt** | **OffsetDateTime** | Binary creation date | |
|**isSystemAnalysis** | **Boolean** | Is the analysis owned by a RevEng.AI account | |



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.78.1</version>
<version>2.80.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.78.1/java");
setUserAgent("OpenAPI-Generator/2.80.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.78.1";
public static final String VERSION = "2.80.0";

private static final AtomicReference<ApiClient> defaultApiClient = new AtomicReference<>();
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;
Expand Down
32 changes: 29 additions & 3 deletions src/main/java/ai/reveng/model/Basic.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ public class Basic {
@javax.annotation.Nonnull
private String ownerUsername;

public static final String SERIALIZED_NAME_IS_SYSTEM = "is_system";
@SerializedName(SERIALIZED_NAME_IS_SYSTEM)
@javax.annotation.Nonnull
private Boolean isSystem;

public static final String SERIALIZED_NAME_ANALYSIS_SCOPE = "analysis_scope";
@SerializedName(SERIALIZED_NAME_ANALYSIS_SCOPE)
@javax.annotation.Nonnull
Expand Down Expand Up @@ -253,6 +258,25 @@ public void setOwnerUsername(@javax.annotation.Nonnull String ownerUsername) {
}


public Basic isSystem(@javax.annotation.Nonnull Boolean isSystem) {
this.isSystem = isSystem;
return this;
}

/**
* Whether the analysis is a system analysis
* @return isSystem
*/
@javax.annotation.Nonnull
public Boolean getIsSystem() {
return isSystem;
}

public void setIsSystem(@javax.annotation.Nonnull Boolean isSystem) {
this.isSystem = isSystem;
}


public Basic analysisScope(@javax.annotation.Nonnull String analysisScope) {
this.analysisScope = analysisScope;
return this;
Expand Down Expand Up @@ -428,6 +452,7 @@ public boolean equals(Object o) {
Objects.equals(this.modelName, basic.modelName) &&
Objects.equals(this.modelId, basic.modelId) &&
Objects.equals(this.ownerUsername, basic.ownerUsername) &&
Objects.equals(this.isSystem, basic.isSystem) &&
Objects.equals(this.analysisScope, basic.analysisScope) &&
Objects.equals(this.isOwner, basic.isOwner) &&
Objects.equals(this.debug, basic.debug) &&
Expand All @@ -439,7 +464,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(binaryName, binarySize, creation, sha256Hash, modelName, modelId, ownerUsername, analysisScope, isOwner, debug, functionCount, isAdvanced, baseAddress, additionalProperties);
return Objects.hash(binaryName, binarySize, creation, sha256Hash, modelName, modelId, ownerUsername, isSystem, analysisScope, isOwner, debug, functionCount, isAdvanced, baseAddress, additionalProperties);
}

@Override
Expand All @@ -453,6 +478,7 @@ public String toString() {
sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n");
sb.append(" modelId: ").append(toIndentedString(modelId)).append("\n");
sb.append(" ownerUsername: ").append(toIndentedString(ownerUsername)).append("\n");
sb.append(" isSystem: ").append(toIndentedString(isSystem)).append("\n");
sb.append(" analysisScope: ").append(toIndentedString(analysisScope)).append("\n");
sb.append(" isOwner: ").append(toIndentedString(isOwner)).append("\n");
sb.append(" debug: ").append(toIndentedString(debug)).append("\n");
Expand Down Expand Up @@ -481,10 +507,10 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(Arrays.asList("binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "model_id", "owner_username", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address"));
openapiFields = new HashSet<String>(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"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "model_id", "owner_username", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address"));
openapiRequiredFields = new HashSet<String>(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"));
}

/**
Expand Down
34 changes: 30 additions & 4 deletions src/main/java/ai/reveng/model/CollectionBinaryResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ public class CollectionBinaryResponse {
@javax.annotation.Nonnull
private OffsetDateTime createdAt;

public static final String SERIALIZED_NAME_IS_SYSTEM_ANALYSIS = "is_system_analysis";
@SerializedName(SERIALIZED_NAME_IS_SYSTEM_ANALYSIS)
@javax.annotation.Nonnull
private Boolean isSystemAnalysis;

public CollectionBinaryResponse() {
}

Expand Down Expand Up @@ -198,6 +203,25 @@ public void setCreatedAt(@javax.annotation.Nonnull OffsetDateTime createdAt) {
this.createdAt = createdAt;
}


public CollectionBinaryResponse isSystemAnalysis(@javax.annotation.Nonnull Boolean isSystemAnalysis) {
this.isSystemAnalysis = isSystemAnalysis;
return this;
}

/**
* Is the analysis owned by a RevEng.AI account
* @return isSystemAnalysis
*/
@javax.annotation.Nonnull
public Boolean getIsSystemAnalysis() {
return isSystemAnalysis;
}

public void setIsSystemAnalysis(@javax.annotation.Nonnull Boolean isSystemAnalysis) {
this.isSystemAnalysis = isSystemAnalysis;
}

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
Expand Down Expand Up @@ -258,13 +282,14 @@ public boolean equals(Object o) {
Objects.equals(this.binaryName, collectionBinaryResponse.binaryName) &&
Objects.equals(this.ownerId, collectionBinaryResponse.ownerId) &&
Objects.equals(this.sha256Hash, collectionBinaryResponse.sha256Hash) &&
Objects.equals(this.createdAt, collectionBinaryResponse.createdAt)&&
Objects.equals(this.createdAt, collectionBinaryResponse.createdAt) &&
Objects.equals(this.isSystemAnalysis, collectionBinaryResponse.isSystemAnalysis)&&
Objects.equals(this.additionalProperties, collectionBinaryResponse.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(analysisId, binaryId, binaryName, ownerId, sha256Hash, createdAt, additionalProperties);
return Objects.hash(analysisId, binaryId, binaryName, ownerId, sha256Hash, createdAt, isSystemAnalysis, additionalProperties);
}

@Override
Expand All @@ -277,6 +302,7 @@ public String toString() {
sb.append(" ownerId: ").append(toIndentedString(ownerId)).append("\n");
sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" isSystemAnalysis: ").append(toIndentedString(isSystemAnalysis)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
Expand All @@ -299,10 +325,10 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(Arrays.asList("analysis_id", "binary_id", "binary_name", "owner_id", "sha_256_hash", "created_at"));
openapiFields = new HashSet<String>(Arrays.asList("analysis_id", "binary_id", "binary_name", "owner_id", "sha_256_hash", "created_at", "is_system_analysis"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("analysis_id", "binary_id", "binary_name", "owner_id", "sha_256_hash", "created_at"));
openapiRequiredFields = new HashSet<String>(Arrays.asList("analysis_id", "binary_id", "binary_name", "owner_id", "sha_256_hash", "created_at", "is_system_analysis"));
}

/**
Expand Down
8 changes: 8 additions & 0 deletions src/test/java/ai/reveng/model/BasicTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ public void ownerUsernameTest() {
// TODO: test ownerUsername
}

/**
* Test the property 'isSystem'
*/
@Test
public void isSystemTest() {
// TODO: test isSystem
}

/**
* Test the property 'analysisScope'
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,12 @@ public void createdAtTest() {
// TODO: test createdAt
}

/**
* Test the property 'isSystemAnalysis'
*/
@Test
public void isSystemAnalysisTest() {
// TODO: test isSystemAnalysis
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,12 @@ public void createdAtTest() {
// TODO: test createdAt
}

/**
* Test the property 'isSystemAnalysis'
*/
@Test
public void isSystemAnalysisTest() {
// TODO: test isSystemAnalysis
}

}