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

dependencies {
implementation "ai.reveng:sdk:3.70.2"
implementation "ai.reveng:sdk:3.72.0"
}
```

Expand Down Expand Up @@ -456,6 +456,7 @@ Class | Method | HTTP request | Description
- [QueuedWorkflowTaskResponse](docs/QueuedWorkflowTaskResponse.md)
- [ReAnalysisForm](docs/ReAnalysisForm.md)
- [Recent](docs/Recent.md)
- [RegenerateTarget](docs/RegenerateTarget.md)
- [Registry](docs/Registry.md)
- [RelativeBinaryResponse](docs/RelativeBinaryResponse.md)
- [ReportAnalysisResponse](docs/ReportAnalysisResponse.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.70.2'
version = '3.72.0'



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

coordinates("ai.reveng", "sdk", "3.70.2")
coordinates("ai.reveng", "sdk", "3.72.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.70.2",
version := "3.72.0",
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 @@ -1178,7 +1178,7 @@ public class Example {

AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient);
UploadFileType uploadFileType = UploadFileType.fromValue("BINARY"); // UploadFileType |
File _file = new File("/path/to/file"); // File |
String _file = "_file_example"; // String |
String packedPassword = "packedPassword_example"; // String |
String endpointUrl = "endpointUrl_example"; // String |
String localCacheDir = "localCacheDir_example"; // String |
Expand Down Expand Up @@ -1206,7 +1206,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **uploadFileType** | [**UploadFileType**](UploadFileType.md)| | [enum: BINARY, DEBUG, PACKED, FIRMWARE] |
| **_file** | **File**| | |
| **_file** | **String**| | |
| **packedPassword** | **String**| | [optional] |
| **endpointUrl** | **String**| | [optional] |
| **localCacheDir** | **String**| | [optional] |
Expand Down
4 changes: 2 additions & 2 deletions docs/FirmwareApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public class Example {
//APIKey.setApiKeyPrefix("Token");

FirmwareApi apiInstance = new FirmwareApi(defaultClient);
File _file = new File("/path/to/file"); // File |
String _file = "_file_example"; // String |
String endpointUrl = "endpointUrl_example"; // String |
String localCacheDir = "localCacheDir_example"; // String |
Integer localCacheMaxSizeMb = 56; // Integer |
Expand All @@ -134,7 +134,7 @@ public class Example {

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **_file** | **File**| | |
| **_file** | **String**| | |
| **endpointUrl** | **String**| | [optional] |
| **localCacheDir** | **String**| | [optional] |
| **localCacheMaxSizeMb** | **Integer**| | [optional] |
Expand Down
1 change: 1 addition & 0 deletions docs/FunctionMappingFull.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
|**unmatchedGlobalVars** | [**Map&lt;String, InverseValue&gt;**](InverseValue.md) | | |
|**fields** | **Map&lt;String, Map&lt;String, InverseValue&gt;&gt;** | | |
|**unmatchedExternalVars** | [**Map&lt;String, InverseValue&gt;**](InverseValue.md) | No longer provided. | [optional] |
|**userOverrideMappings** | **Map&lt;String, String&gt;** | | [optional] |



6 changes: 4 additions & 2 deletions docs/FunctionsAiDecompilationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ public class Example {

<a id="getAiDecompilationTaskResult"></a>
# **getAiDecompilationTaskResult**
> BaseResponseGetAiDecompilationTask getAiDecompilationTaskResult(functionId, summarise, generateInlineComments)
> BaseResponseGetAiDecompilationTask getAiDecompilationTaskResult(functionId, summarise, generateInlineComments, forceRegenerate)

Polls AI Decompilation Process

Expand Down Expand Up @@ -443,8 +443,9 @@ public class Example {
Long functionId = 56L; // Long | The ID of the function being decompiled
Boolean summarise = true; // Boolean | Generate a summary for the decompilation
Boolean generateInlineComments = true; // Boolean | Generate inline comments for the decompilation
List<RegenerateTarget> forceRegenerate = Arrays.asList(); // List<RegenerateTarget> | Force regeneration of summary and/or comments.
try {
BaseResponseGetAiDecompilationTask result = apiInstance.getAiDecompilationTaskResult(functionId, summarise, generateInlineComments);
BaseResponseGetAiDecompilationTask result = apiInstance.getAiDecompilationTaskResult(functionId, summarise, generateInlineComments, forceRegenerate);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FunctionsAiDecompilationApi#getAiDecompilationTaskResult");
Expand All @@ -464,6 +465,7 @@ public class Example {
| **functionId** | **Long**| The ID of the function being decompiled | |
| **summarise** | **Boolean**| Generate a summary for the decompilation | [optional] [default to true] |
| **generateInlineComments** | **Boolean**| Generate inline comments for the decompilation | [optional] [default to true] |
| **forceRegenerate** | [**List&lt;RegenerateTarget&gt;**](RegenerateTarget.md)| Force regeneration of summary and/or comments. | [optional] |

### Return type

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


# RegenerateTarget

## Enum


* `SUMMARY` (value: `"summary"`)

* `COMMENTS` (value: `"comments"`)



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.70.2</version>
<version>3.72.0</version>
<url>https://github.com/RevEngAI/sdk-java</url>
<description>Java SDK for the RevEng.AI API</description>
<scm>
Expand Down
11 changes: 5 additions & 6 deletions src/main/java/ai/reveng/api/AnalysesCoreApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
import ai.reveng.model.BaseResponseStatus;
import ai.reveng.model.BaseResponseUploadResponse;
import ai.reveng.model.DynamicExecutionStatusInput;
import java.io.File;
import ai.reveng.model.InsertAnalysisLogRequest;
import ai.reveng.model.ModelName;
import ai.reveng.model.Order;
Expand Down Expand Up @@ -2556,7 +2555,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 File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback _callback) throws ApiException {
public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull String _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
Expand Down Expand Up @@ -2642,7 +2641,7 @@ public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull UploadFileType uplo
}

@SuppressWarnings("rawtypes")
private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback _callback) throws ApiException {
private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull String _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @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 @@ -2680,7 +2679,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 File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable Boolean forceOverwrite) throws ApiException {
public BaseResponseUploadResponse uploadFile(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull String _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable Boolean forceOverwrite) throws ApiException {
ApiResponse<BaseResponseUploadResponse> localVarResp = uploadFileWithHttpInfo(uploadFileType, _file, packedPassword, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, forceOverwrite);
return localVarResp.getData();
}
Expand Down Expand Up @@ -2708,7 +2707,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 File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable Boolean forceOverwrite) throws ApiException {
public ApiResponse<BaseResponseUploadResponse> uploadFileWithHttpInfo(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull String _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable Boolean forceOverwrite) throws ApiException {
okhttp3.Call localVarCall = uploadFileValidateBeforeCall(uploadFileType, _file, packedPassword, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, forceOverwrite, null);
Type localVarReturnType = new TypeToken<BaseResponseUploadResponse>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
Expand Down Expand Up @@ -2738,7 +2737,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 File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback<BaseResponseUploadResponse> _callback) throws ApiException {
public okhttp3.Call uploadFileAsync(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull String _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback<BaseResponseUploadResponse> _callback) throws ApiException {

okhttp3.Call localVarCall = uploadFileValidateBeforeCall(uploadFileType, _file, packedPassword, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, forceOverwrite, _callback);
Type localVarReturnType = new TypeToken<BaseResponseUploadResponse>(){}.getType();
Expand Down
Loading