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.29.1
v3.30.0
5 changes: 3 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.29.1</version>
<version>3.30.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:3.29.1"
implementation "ai.reveng:sdk:3.30.0"
}
```

Expand Down Expand Up @@ -219,6 +219,7 @@ Class | Method | HTTP request | Description
- [AppApiRestV2FunctionsTypesFunction](docs/AppApiRestV2FunctionsTypesFunction.md)
- [AppServicesDynamicExecutionSchemasDynamicExecutionStatus](docs/AppServicesDynamicExecutionSchemasDynamicExecutionStatus.md)
- [Argument](docs/Argument.md)
- [AutoRunAgents](docs/AutoRunAgents.md)
- [AutoUnstripRequest](docs/AutoUnstripRequest.md)
- [AutoUnstripResponse](docs/AutoUnstripResponse.md)
- [BaseResponse](docs/BaseResponse.md)
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.29.1'
version = '3.30.0'



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

coordinates("ai.reveng", "sdk", "3.29.1")
coordinates("ai.reveng", "sdk", "3.30.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.29.1",
version := "3.30.0",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
1 change: 1 addition & 0 deletions docs/AnalysisCreateRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
|**debugHash** | **String** | | [optional] |
|**analysisConfig** | [**AnalysisConfig**](AnalysisConfig.md) | The analysis config enables the configuration of optional analysis stages | [optional] |
|**binaryConfig** | [**BinaryConfig**](BinaryConfig.md) | The binary config can override automatically determined values such as ISA, Platform, File Format, etc | [optional] |
|**autoRunAgents** | [**AutoRunAgents**](AutoRunAgents.md) | | [optional] |



1 change: 1 addition & 0 deletions docs/AnalysisDetailResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
|**modelName** | **String** | | |
|**sbom** | **Map&lt;String, Object&gt;** | | [optional] |
|**sha256Hash** | **String** | | |
|**autoRunAgents** | [**AutoRunAgents**](AutoRunAgents.md) | | |



13 changes: 13 additions & 0 deletions docs/AutoRunAgents.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


# AutoRunAgents


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**triage** | **Boolean** | | [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.29.1</version>
<version>3.30.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.29.1/java");
setUserAgent("OpenAPI-Generator/3.30.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.29.1";
public static final String VERSION = "3.30.0";

private static final AtomicReference<ApiClient> defaultApiClient = new AtomicReference<>();
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/ai/reveng/invoker/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.AppApiRestV2FunctionsTypesFunction.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.AppServicesDynamicExecutionSchemasDynamicExecutionStatus.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.Argument.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.AutoRunAgents.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.AutoUnstripRequest.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.AutoUnstripResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.BaseResponse.CustomTypeAdapterFactory());
Expand Down
37 changes: 34 additions & 3 deletions src/main/java/ai/reveng/model/AnalysisCreateRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import java.util.Locale;
import ai.reveng.model.AnalysisConfig;
import ai.reveng.model.AnalysisScope;
import ai.reveng.model.AutoRunAgents;
import ai.reveng.model.BinaryConfig;
import ai.reveng.model.Symbols;
import ai.reveng.model.Tag;
Expand Down Expand Up @@ -99,6 +100,11 @@ public class AnalysisCreateRequest {
@javax.annotation.Nullable
private BinaryConfig binaryConfig;

public static final String SERIALIZED_NAME_AUTO_RUN_AGENTS = "auto_run_agents";
@SerializedName(SERIALIZED_NAME_AUTO_RUN_AGENTS)
@javax.annotation.Nullable
private AutoRunAgents autoRunAgents;

public AnalysisCreateRequest() {
}

Expand Down Expand Up @@ -261,6 +267,25 @@ public void setBinaryConfig(@javax.annotation.Nullable BinaryConfig binaryConfig
this.binaryConfig = binaryConfig;
}


public AnalysisCreateRequest autoRunAgents(@javax.annotation.Nullable AutoRunAgents autoRunAgents) {
this.autoRunAgents = autoRunAgents;
return this;
}

/**
* Get autoRunAgents
* @return autoRunAgents
*/
@javax.annotation.Nullable
public AutoRunAgents getAutoRunAgents() {
return autoRunAgents;
}

public void setAutoRunAgents(@javax.annotation.Nullable AutoRunAgents autoRunAgents) {
this.autoRunAgents = autoRunAgents;
}

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
Expand Down Expand Up @@ -323,7 +348,8 @@ public boolean equals(Object o) {
Objects.equals(this.symbols, analysisCreateRequest.symbols) &&
Objects.equals(this.debugHash, analysisCreateRequest.debugHash) &&
Objects.equals(this.analysisConfig, analysisCreateRequest.analysisConfig) &&
Objects.equals(this.binaryConfig, analysisCreateRequest.binaryConfig)&&
Objects.equals(this.binaryConfig, analysisCreateRequest.binaryConfig) &&
Objects.equals(this.autoRunAgents, analysisCreateRequest.autoRunAgents)&&
Objects.equals(this.additionalProperties, analysisCreateRequest.additionalProperties);
}

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

@Override
public int hashCode() {
return Objects.hash(filename, sha256Hash, tags, analysisScope, symbols, debugHash, analysisConfig, binaryConfig, additionalProperties);
return Objects.hash(filename, sha256Hash, tags, analysisScope, symbols, debugHash, analysisConfig, binaryConfig, autoRunAgents, additionalProperties);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
Expand All @@ -355,6 +381,7 @@ public String toString() {
sb.append(" debugHash: ").append(toIndentedString(debugHash)).append("\n");
sb.append(" analysisConfig: ").append(toIndentedString(analysisConfig)).append("\n");
sb.append(" binaryConfig: ").append(toIndentedString(binaryConfig)).append("\n");
sb.append(" autoRunAgents: ").append(toIndentedString(autoRunAgents)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
Expand All @@ -377,7 +404,7 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(Arrays.asList("filename", "sha_256_hash", "tags", "analysis_scope", "symbols", "debug_hash", "analysis_config", "binary_config"));
openapiFields = new HashSet<String>(Arrays.asList("filename", "sha_256_hash", "tags", "analysis_scope", "symbols", "debug_hash", "analysis_config", "binary_config", "auto_run_agents"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("filename", "sha_256_hash"));
Expand Down Expand Up @@ -442,6 +469,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (jsonObj.get("binary_config") != null && !jsonObj.get("binary_config").isJsonNull()) {
BinaryConfig.validateJsonElement(jsonObj.get("binary_config"));
}
// validate the optional field `auto_run_agents`
if (jsonObj.get("auto_run_agents") != null && !jsonObj.get("auto_run_agents").isJsonNull()) {
AutoRunAgents.validateJsonElement(jsonObj.get("auto_run_agents"));
}
}

public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
Expand Down
37 changes: 33 additions & 4 deletions src/main/java/ai/reveng/model/AnalysisDetailResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import java.util.Objects;
import java.util.Locale;
import ai.reveng.model.AnalysisAccessInfo;
import ai.reveng.model.AutoRunAgents;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
Expand Down Expand Up @@ -130,6 +131,11 @@ public class AnalysisDetailResponse {
@javax.annotation.Nonnull
private String sha256Hash;

public static final String SERIALIZED_NAME_AUTO_RUN_AGENTS = "auto_run_agents";
@SerializedName(SERIALIZED_NAME_AUTO_RUN_AGENTS)
@javax.annotation.Nonnull
private AutoRunAgents autoRunAgents;

public AnalysisDetailResponse() {
}

Expand Down Expand Up @@ -425,6 +431,25 @@ public void setSha256Hash(@javax.annotation.Nonnull String sha256Hash) {
this.sha256Hash = sha256Hash;
}


public AnalysisDetailResponse autoRunAgents(@javax.annotation.Nonnull AutoRunAgents autoRunAgents) {
this.autoRunAgents = autoRunAgents;
return this;
}

/**
* Get autoRunAgents
* @return autoRunAgents
*/
@javax.annotation.Nonnull
public AutoRunAgents getAutoRunAgents() {
return autoRunAgents;
}

public void setAutoRunAgents(@javax.annotation.Nonnull AutoRunAgents autoRunAgents) {
this.autoRunAgents = autoRunAgents;
}

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
Expand Down Expand Up @@ -494,7 +519,8 @@ public boolean equals(Object o) {
Objects.equals(this.debug, analysisDetailResponse.debug) &&
Objects.equals(this.modelName, analysisDetailResponse.modelName) &&
Objects.equals(this.sbom, analysisDetailResponse.sbom) &&
Objects.equals(this.sha256Hash, analysisDetailResponse.sha256Hash)&&
Objects.equals(this.sha256Hash, analysisDetailResponse.sha256Hash) &&
Objects.equals(this.autoRunAgents, analysisDetailResponse.autoRunAgents)&&
Objects.equals(this.additionalProperties, analysisDetailResponse.additionalProperties);
}

Expand All @@ -504,7 +530,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, dashboardUrl, debug, modelName, sbom, sha256Hash, additionalProperties);
return Objects.hash(access, analysisId, analysisScope, architecture, binaryDynamic, binaryFormat, binaryName, binarySize, binaryType, creation, dashboardUrl, debug, modelName, sbom, sha256Hash, autoRunAgents, additionalProperties);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
Expand Down Expand Up @@ -533,6 +559,7 @@ public String toString() {
sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n");
sb.append(" sbom: ").append(toIndentedString(sbom)).append("\n");
sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n");
sb.append(" autoRunAgents: ").append(toIndentedString(autoRunAgents)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
Expand All @@ -555,10 +582,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", "dashboard_url", "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", "auto_run_agents"));

// 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", "dashboard_url", "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", "auto_run_agents"));
}

/**
Expand Down Expand Up @@ -610,6 +637,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!jsonObj.get("sha_256_hash").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sha_256_hash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sha_256_hash").toString()));
}
// validate the required field `auto_run_agents`
AutoRunAgents.validateJsonElement(jsonObj.get("auto_run_agents"));
}

public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
Expand Down
Loading