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.18.1
v3.20.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.18.1</version>
<version>3.20.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:3.18.1"
implementation "ai.reveng:sdk:3.20.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.18.1'
version = '3.20.0'



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

coordinates("ai.reveng", "sdk", "3.18.1")
coordinates("ai.reveng", "sdk", "3.20.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.18.1",
version := "3.20.0",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
1 change: 1 addition & 0 deletions docs/AnalysisDetailResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
|**binarySize** | **Integer** | | |
|**binaryType** | **String** | | |
|**creation** | **String** | | |
|**dashboardUrl** | **String** | URL to view this analysis in the dashboard | |
|**debug** | **Boolean** | | |
|**modelName** | **String** | | |
|**sbom** | **Map&lt;String, Object&gt;** | | [optional] |
Expand Down
1 change: 1 addition & 0 deletions docs/NameSourceType.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
|**type** | [**TypeEnum**](#TypeEnum) | The source (process) the function name came from | |
|**functionId** | **Integer** | | [optional] |
|**binaryId** | **Integer** | | [optional] |
|**analysisId** | **Integer** | | [optional] |



Expand Down
1 change: 1 addition & 0 deletions docs/RelativeBinaryResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**binaryId** | **Integer** | ID of the relative binary | |
|**analysisId** | **Integer** | | [optional] |
|**name** | **String** | Name of the relative binary | |
|**sha256** | **String** | SHA256 hash of the relative binary | |

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>3.18.1</version>
<version>3.20.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/3.18.1/java");
setUserAgent("OpenAPI-Generator/3.20.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.18.1";
public static final String VERSION = "3.20.0";

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

public static final String SERIALIZED_NAME_DASHBOARD_URL = "dashboard_url";
@SerializedName(SERIALIZED_NAME_DASHBOARD_URL)
@javax.annotation.Nonnull
private String dashboardUrl;

public static final String SERIALIZED_NAME_DEBUG = "debug";
@SerializedName(SERIALIZED_NAME_DEBUG)
@javax.annotation.Nonnull
Expand Down Expand Up @@ -318,6 +323,25 @@ public void setCreation(@javax.annotation.Nonnull String creation) {
}


public AnalysisDetailResponse dashboardUrl(@javax.annotation.Nonnull String dashboardUrl) {
this.dashboardUrl = dashboardUrl;
return this;
}

/**
* URL to view this analysis in the dashboard
* @return dashboardUrl
*/
@javax.annotation.Nonnull
public String getDashboardUrl() {
return dashboardUrl;
}

public void setDashboardUrl(@javax.annotation.Nonnull String dashboardUrl) {
this.dashboardUrl = dashboardUrl;
}


public AnalysisDetailResponse debug(@javax.annotation.Nonnull Boolean debug) {
this.debug = debug;
return this;
Expand Down Expand Up @@ -466,6 +490,7 @@ public boolean equals(Object o) {
Objects.equals(this.binarySize, analysisDetailResponse.binarySize) &&
Objects.equals(this.binaryType, analysisDetailResponse.binaryType) &&
Objects.equals(this.creation, analysisDetailResponse.creation) &&
Objects.equals(this.dashboardUrl, analysisDetailResponse.dashboardUrl) &&
Objects.equals(this.debug, analysisDetailResponse.debug) &&
Objects.equals(this.modelName, analysisDetailResponse.modelName) &&
Objects.equals(this.sbom, analysisDetailResponse.sbom) &&
Expand All @@ -479,7 +504,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)

@Override
public int hashCode() {
return Objects.hash(access, analysisId, analysisScope, architecture, binaryDynamic, binaryFormat, binaryName, binarySize, binaryType, creation, debug, modelName, sbom, sha256Hash, additionalProperties);
return Objects.hash(access, analysisId, analysisScope, architecture, binaryDynamic, binaryFormat, binaryName, binarySize, binaryType, creation, dashboardUrl, debug, modelName, sbom, sha256Hash, additionalProperties);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
Expand All @@ -503,6 +528,7 @@ public String toString() {
sb.append(" binarySize: ").append(toIndentedString(binarySize)).append("\n");
sb.append(" binaryType: ").append(toIndentedString(binaryType)).append("\n");
sb.append(" creation: ").append(toIndentedString(creation)).append("\n");
sb.append(" dashboardUrl: ").append(toIndentedString(dashboardUrl)).append("\n");
sb.append(" debug: ").append(toIndentedString(debug)).append("\n");
sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n");
sb.append(" sbom: ").append(toIndentedString(sbom)).append("\n");
Expand All @@ -529,10 +555,10 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(Arrays.asList("access", "analysis_id", "analysis_scope", "architecture", "binary_dynamic", "binary_format", "binary_name", "binary_size", "binary_type", "creation", "debug", "model_name", "sbom", "sha_256_hash"));
openapiFields = new HashSet<String>(Arrays.asList("access", "analysis_id", "analysis_scope", "architecture", "binary_dynamic", "binary_format", "binary_name", "binary_size", "binary_type", "creation", "dashboard_url", "debug", "model_name", "sbom", "sha_256_hash"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("access", "analysis_id", "analysis_scope", "architecture", "binary_dynamic", "binary_format", "binary_name", "binary_size", "binary_type", "creation", "debug", "model_name", "sha_256_hash"));
openapiRequiredFields = new HashSet<String>(Arrays.asList("access", "analysis_id", "analysis_scope", "architecture", "binary_dynamic", "binary_format", "binary_name", "binary_size", "binary_type", "creation", "dashboard_url", "debug", "model_name", "sha_256_hash"));
}

/**
Expand Down Expand Up @@ -575,6 +601,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!jsonObj.get("creation").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `creation` to be a primitive type in the JSON string but got `%s`", jsonObj.get("creation").toString()));
}
if (!jsonObj.get("dashboard_url").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dashboard_url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dashboard_url").toString()));
}
if (!jsonObj.get("model_name").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `model_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("model_name").toString()));
}
Expand Down
32 changes: 29 additions & 3 deletions src/main/java/ai/reveng/model/NameSourceType.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
@javax.annotation.Nullable
private Integer binaryId;

public static final String SERIALIZED_NAME_ANALYSIS_ID = "analysis_id";
@SerializedName(SERIALIZED_NAME_ANALYSIS_ID)
@javax.annotation.Nullable
private Integer analysisId;

public NameSourceType() {
}

Expand Down Expand Up @@ -184,6 +189,25 @@ public void setBinaryId(@javax.annotation.Nullable Integer binaryId) {
this.binaryId = binaryId;
}


public NameSourceType analysisId(@javax.annotation.Nullable Integer analysisId) {
this.analysisId = analysisId;
return this;
}

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

public void setAnalysisId(@javax.annotation.Nullable Integer analysisId) {
this.analysisId = analysisId;
}

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
Expand Down Expand Up @@ -241,7 +265,8 @@ public boolean equals(Object o) {
NameSourceType nameSourceType = (NameSourceType) o;
return Objects.equals(this.type, nameSourceType.type) &&
Objects.equals(this.functionId, nameSourceType.functionId) &&
Objects.equals(this.binaryId, nameSourceType.binaryId)&&
Objects.equals(this.binaryId, nameSourceType.binaryId) &&
Objects.equals(this.analysisId, nameSourceType.analysisId)&&
Objects.equals(this.additionalProperties, nameSourceType.additionalProperties);
}

Expand All @@ -251,7 +276,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)

@Override
public int hashCode() {
return Objects.hash(type, functionId, binaryId, additionalProperties);
return Objects.hash(type, functionId, binaryId, analysisId, additionalProperties);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
Expand All @@ -268,6 +293,7 @@ public String toString() {
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n");
sb.append(" binaryId: ").append(toIndentedString(binaryId)).append("\n");
sb.append(" analysisId: ").append(toIndentedString(analysisId)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
Expand All @@ -290,7 +316,7 @@ private String toIndentedString(Object o) {

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

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("type"));
Expand Down
42 changes: 40 additions & 2 deletions src/main/java/ai/reveng/model/RelativeBinaryResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.openapitools.jackson.nullable.JsonNullable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
Expand Down Expand Up @@ -56,6 +57,11 @@ public class RelativeBinaryResponse {
@javax.annotation.Nonnull
private Integer binaryId;

public static final String SERIALIZED_NAME_ANALYSIS_ID = "analysis_id";
@SerializedName(SERIALIZED_NAME_ANALYSIS_ID)
@javax.annotation.Nullable
private Integer analysisId;

public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
@javax.annotation.Nonnull
Expand Down Expand Up @@ -88,6 +94,25 @@ public void setBinaryId(@javax.annotation.Nonnull Integer binaryId) {
}


public RelativeBinaryResponse analysisId(@javax.annotation.Nullable Integer analysisId) {
this.analysisId = analysisId;
return this;
}

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

public void setAnalysisId(@javax.annotation.Nullable Integer analysisId) {
this.analysisId = analysisId;
}


public RelativeBinaryResponse name(@javax.annotation.Nonnull String name) {
this.name = name;
return this;
Expand Down Expand Up @@ -181,21 +206,34 @@ public boolean equals(Object o) {
}
RelativeBinaryResponse relativeBinaryResponse = (RelativeBinaryResponse) o;
return Objects.equals(this.binaryId, relativeBinaryResponse.binaryId) &&
Objects.equals(this.analysisId, relativeBinaryResponse.analysisId) &&
Objects.equals(this.name, relativeBinaryResponse.name) &&
Objects.equals(this.sha256, relativeBinaryResponse.sha256)&&
Objects.equals(this.additionalProperties, relativeBinaryResponse.additionalProperties);
}

private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> 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(binaryId, name, sha256, additionalProperties);
return Objects.hash(binaryId, analysisId, name, sha256, additionalProperties);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
if (a == null) {
return 1;
}
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RelativeBinaryResponse {\n");
sb.append(" binaryId: ").append(toIndentedString(binaryId)).append("\n");
sb.append(" analysisId: ").append(toIndentedString(analysisId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" sha256: ").append(toIndentedString(sha256)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
Expand All @@ -220,7 +258,7 @@ private String toIndentedString(Object o) {

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

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("binary_id", "name", "sha256"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ public void creationTest() {
// TODO: test creation
}

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

/**
* Test the property 'debug'
*/
Expand Down
8 changes: 8 additions & 0 deletions src/test/java/ai/reveng/model/NameSourceTypeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,12 @@ public void binaryIdTest() {
// TODO: test binaryId
}

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

}
Loading