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.86.1
v3.86.3
6 changes: 4 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.86.1</version>
<version>3.86.3</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:3.86.1"
implementation "ai.reveng:sdk:3.86.3"
}
```

Expand Down Expand Up @@ -415,6 +415,7 @@ Class | Method | HTTP request | Description
- [EventWarning](docs/EventWarning.md)
- [ExportModel](docs/ExportModel.md)
- [ExternalResponse](docs/ExternalResponse.md)
- [ExtractedFileEntry](docs/ExtractedFileEntry.md)
- [ExtractedURL](docs/ExtractedURL.md)
- [FileActivityEntry](docs/FileActivityEntry.md)
- [FileFormat](docs/FileFormat.md)
Expand Down Expand Up @@ -500,6 +501,7 @@ Class | Method | HTTP request | Description
- [PatchCommentBody](docs/PatchCommentBody.md)
- [Platform](docs/Platform.md)
- [ProcessActivityEntry](docs/ProcessActivityEntry.md)
- [ProcessExtractedFiles](docs/ProcessExtractedFiles.md)
- [ProcessMemdumps](docs/ProcessMemdumps.md)
- [ProcessNode](docs/ProcessNode.md)
- [ProcessTree](docs/ProcessTree.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.86.1'
version = '3.86.3'



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

coordinates("ai.reveng", "sdk", "3.86.1")
coordinates("ai.reveng", "sdk", "3.86.3")

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.86.1",
version := "3.86.3",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
4 changes: 2 additions & 2 deletions docs/AnalysesCoreApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ public class Example {

AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient);
UploadFileType uploadFileType = UploadFileType.fromValue("BINARY"); // UploadFileType |
String _file = "_file_example"; // String |
File _file = new File("/path/to/file"); // File |
String packedPassword = "packedPassword_example"; // String |
Boolean forceOverwrite = false; // Boolean |
try {
Expand All @@ -1242,7 +1242,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **uploadFileType** | [**UploadFileType**](UploadFileType.md)| | [enum: BINARY, DEBUG, PACKED, FIRMWARE] |
| **_file** | **String**| | |
| **_file** | **File**| | |
| **packedPassword** | **String**| | [optional] |
| **forceOverwrite** | **Boolean**| | [optional] [default to false] |

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

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**extractedFiles** | **List&lt;ProcessExtractedFiles&gt;** | | [optional] |
|**fileActivity** | **List&lt;FileActivityEntry&gt;** | | [optional] |
|**info** | **ReportInfo** | | |
|**memdumps** | **List&lt;ProcessMemdumps&gt;** | | [optional] |
Expand Down
22 changes: 22 additions & 0 deletions docs/ExtractedFileEntry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@


# ExtractedFileEntry


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**fileHash** | **String** | | [optional] |
|**fileSize** | **Long** | | |
|**fileType** | **String** | | [optional] |
|**filename** | **String** | | |
|**isPe** | **Boolean** | | [optional] |
|**mimeType** | **String** | | [optional] |
|**reason** | **String** | | [optional] |
|**seqNum** | **Long** | | |
|**sha256** | **String** | | [optional] |
|**zipFilename** | **String** | | |



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


# ProcessExtractedFiles


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**files** | **List&lt;ExtractedFileEntry&gt;** | | [optional] |
|**processSeqid** | **Long** | | |



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.86.1</version>
<version>3.86.3</version>
<url>https://github.com/RevEngAI/sdk-java</url>
<description>Java SDK for the RevEng.AI API</description>
<scm>
Expand Down
11 changes: 6 additions & 5 deletions src/main/java/ai/reveng/api/AnalysesCoreApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import ai.reveng.model.BaseResponseStatus;
import ai.reveng.model.BaseResponseUploadResponse;
import ai.reveng.model.DynamicExecutionStatus;
import java.io.File;
import ai.reveng.model.InsertAnalysisLogRequest;
import ai.reveng.model.ModelName;
import ai.reveng.model.Order;
Expand Down Expand Up @@ -2413,7 +2414,7 @@ public okhttp3.Call updateAnalysisTagsAsync(@javax.annotation.Nonnull Integer an
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
</table>
*/
public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull String _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback _callback) throws ApiException {
public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
Expand Down Expand Up @@ -2475,7 +2476,7 @@ public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull UploadFileType uplo
}

@SuppressWarnings("rawtypes")
private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull String _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback _callback) throws ApiException {
private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'uploadFileType' is set
if (uploadFileType == null) {
throw new ApiException("Missing the required parameter 'uploadFileType' when calling uploadFile(Async)");
Expand Down Expand Up @@ -2507,7 +2508,7 @@ private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull Uplo
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
</table>
*/
public BaseResponseUploadResponse uploadFile(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull String _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite) throws ApiException {
public BaseResponseUploadResponse uploadFile(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite) throws ApiException {
ApiResponse<BaseResponseUploadResponse> localVarResp = uploadFileWithHttpInfo(uploadFileType, _file, packedPassword, forceOverwrite);
return localVarResp.getData();
}
Expand All @@ -2529,7 +2530,7 @@ public BaseResponseUploadResponse uploadFile(@javax.annotation.Nonnull UploadFil
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
</table>
*/
public ApiResponse<BaseResponseUploadResponse> uploadFileWithHttpInfo(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull String _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite) throws ApiException {
public ApiResponse<BaseResponseUploadResponse> uploadFileWithHttpInfo(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite) throws ApiException {
okhttp3.Call localVarCall = uploadFileValidateBeforeCall(uploadFileType, _file, packedPassword, forceOverwrite, null);
Type localVarReturnType = new TypeToken<BaseResponseUploadResponse>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
Expand All @@ -2553,7 +2554,7 @@ public ApiResponse<BaseResponseUploadResponse> uploadFileWithHttpInfo(@javax.ann
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
</table>
*/
public okhttp3.Call uploadFileAsync(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull String _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback<BaseResponseUploadResponse> _callback) throws ApiException {
public okhttp3.Call uploadFileAsync(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback<BaseResponseUploadResponse> _callback) throws ApiException {

okhttp3.Call localVarCall = uploadFileValidateBeforeCall(uploadFileType, _file, packedPassword, forceOverwrite, _callback);
Type localVarReturnType = new TypeToken<BaseResponseUploadResponse>(){}.getType();
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.86.1/java");
setUserAgent("OpenAPI-Generator/3.86.3/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.86.1";
public static final String VERSION = "3.86.3";

private static final AtomicReference<ApiClient> defaultApiClient = new AtomicReference<>();
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/ai/reveng/invoker/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.EventWarning.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.ExportModel.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.ExternalResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.ExtractedFileEntry.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.ExtractedURL.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.FileActivityEntry.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.FileHashes.CustomTypeAdapterFactory());
Expand Down Expand Up @@ -372,6 +373,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.Params.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.PatchCommentBody.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.ProcessActivityEntry.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.ProcessExtractedFiles.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.ProcessMemdumps.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.ProcessNode.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.ProcessTree.CustomTypeAdapterFactory());
Expand Down
45 changes: 42 additions & 3 deletions src/main/java/ai/reveng/model/AnalysisReport.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import ai.reveng.model.MutexEntry;
import ai.reveng.model.NetworkActivity;
import ai.reveng.model.ProcessActivityEntry;
import ai.reveng.model.ProcessExtractedFiles;
import ai.reveng.model.ProcessMemdumps;
import ai.reveng.model.ProcessTree;
import ai.reveng.model.RegistryOperation;
Expand Down Expand Up @@ -67,6 +68,11 @@
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AnalysisReport {
public static final String SERIALIZED_NAME_EXTRACTED_FILES = "extracted_files";
@SerializedName(SERIALIZED_NAME_EXTRACTED_FILES)
@javax.annotation.Nullable
private List<ProcessExtractedFiles> extractedFiles;

public static final String SERIALIZED_NAME_FILE_ACTIVITY = "file_activity";
@SerializedName(SERIALIZED_NAME_FILE_ACTIVITY)
@javax.annotation.Nullable
Expand Down Expand Up @@ -140,6 +146,33 @@ public class AnalysisReport {
public AnalysisReport() {
}

public AnalysisReport extractedFiles(@javax.annotation.Nullable List<ProcessExtractedFiles> extractedFiles) {
this.extractedFiles = extractedFiles;
return this;
}

public AnalysisReport addExtractedFilesItem(ProcessExtractedFiles extractedFilesItem) {
if (this.extractedFiles == null) {
this.extractedFiles = new ArrayList<>();
}
this.extractedFiles.add(extractedFilesItem);
return this;
}

/**
* Get extractedFiles
* @return extractedFiles
*/
@javax.annotation.Nullable
public List<ProcessExtractedFiles> getExtractedFiles() {
return extractedFiles;
}

public void setExtractedFiles(@javax.annotation.Nullable List<ProcessExtractedFiles> extractedFiles) {
this.extractedFiles = extractedFiles;
}


public AnalysisReport fileActivity(@javax.annotation.Nullable List<FileActivityEntry> fileActivity) {
this.fileActivity = fileActivity;
return this;
Expand Down Expand Up @@ -532,7 +565,8 @@ public boolean equals(Object o) {
return false;
}
AnalysisReport analysisReport = (AnalysisReport) o;
return Objects.equals(this.fileActivity, analysisReport.fileActivity) &&
return Objects.equals(this.extractedFiles, analysisReport.extractedFiles) &&
Objects.equals(this.fileActivity, analysisReport.fileActivity) &&
Objects.equals(this.info, analysisReport.info) &&
Objects.equals(this.memdumps, analysisReport.memdumps) &&
Objects.equals(this.moduleLoadAddresses, analysisReport.moduleLoadAddresses) &&
Expand All @@ -555,7 +589,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)

@Override
public int hashCode() {
return Objects.hash(fileActivity, info, memdumps, moduleLoadAddresses, mutexes, networkActivity, processActivity, processTree, registryOperations, scheduledTasks, services, startup, threatScore, ttps, additionalProperties);
return Objects.hash(extractedFiles, fileActivity, info, memdumps, moduleLoadAddresses, mutexes, networkActivity, processActivity, processTree, registryOperations, scheduledTasks, services, startup, threatScore, ttps, additionalProperties);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
Expand All @@ -569,6 +603,7 @@ private static <T> int hashCodeNullable(JsonNullable<T> a) {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AnalysisReport {\n");
sb.append(" extractedFiles: ").append(toIndentedString(extractedFiles)).append("\n");
sb.append(" fileActivity: ").append(toIndentedString(fileActivity)).append("\n");
sb.append(" info: ").append(toIndentedString(info)).append("\n");
sb.append(" memdumps: ").append(toIndentedString(memdumps)).append("\n");
Expand Down Expand Up @@ -605,7 +640,7 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(Arrays.asList("file_activity", "info", "memdumps", "module_load_addresses", "mutexes", "network_activity", "process_activity", "process_tree", "registry_operations", "scheduled_tasks", "services", "startup", "threat_score", "ttps"));
openapiFields = new HashSet<String>(Arrays.asList("extracted_files", "file_activity", "info", "memdumps", "module_load_addresses", "mutexes", "network_activity", "process_activity", "process_tree", "registry_operations", "scheduled_tasks", "services", "startup", "threat_score", "ttps"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("info", "threat_score"));
Expand All @@ -632,6 +667,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
// ensure the optional json data is an array if present
if (jsonObj.get("extracted_files") != null && !jsonObj.get("extracted_files").isJsonNull() && !jsonObj.get("extracted_files").isJsonArray()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `extracted_files` to be an array in the JSON string but got `%s`", jsonObj.get("extracted_files").toString()));
}
// ensure the optional json data is an array if present
if (jsonObj.get("file_activity") != null && !jsonObj.get("file_activity").isJsonNull() && !jsonObj.get("file_activity").isJsonArray()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `file_activity` to be an array in the JSON string but got `%s`", jsonObj.get("file_activity").toString()));
}
Expand Down
Loading