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.16.0
v2.18.2
9 changes: 2 additions & 7 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.16.0</version>
<version>2.18.2</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:2.16.0"
implementation "ai.reveng:sdk:2.18.2"
}
```

Expand Down Expand Up @@ -168,12 +168,9 @@ Class | Method | HTTP request | Description
*FunctionsDataTypesApi* | [**listFunctionDataTypesForAnalysis**](docs/FunctionsDataTypesApi.md#listFunctionDataTypesForAnalysis) | **GET** /v2/analyses/{analysis_id}/functions/data_types | List Function Data Types
*FunctionsDataTypesApi* | [**listFunctionDataTypesForFunctions**](docs/FunctionsDataTypesApi.md#listFunctionDataTypesForFunctions) | **GET** /v2/functions/data_types | List Function Data Types
*FunctionsDataTypesApi* | [**updateFunctionDataTypes**](docs/FunctionsDataTypesApi.md#updateFunctionDataTypes) | **PUT** /v2/analyses/{analysis_id}/functions/{function_id}/data_types | Update Function Data Types
*FunctionsDecompilationApi* | [**checkFunctionDecompilationTask**](docs/FunctionsDecompilationApi.md#checkFunctionDecompilationTask) | **GET** /v2/functions/{function_id}/decompilation/status | Check the status of a function decompilation
*FunctionsDecompilationApi* | [**createDecompilationComment**](docs/FunctionsDecompilationApi.md#createDecompilationComment) | **POST** /v2/functions/{function_id}/decompilation/comments | Create a comment for this function
*FunctionsDecompilationApi* | [**createFunctionDecompilationTask**](docs/FunctionsDecompilationApi.md#createFunctionDecompilationTask) | **POST** /v2/functions/{function_id}/decompilation | Queues a function decompilation
*FunctionsDecompilationApi* | [**deleteDecompilationComment**](docs/FunctionsDecompilationApi.md#deleteDecompilationComment) | **DELETE** /v2/functions/{function_id}/decompilation/comments/{comment_id} | Delete a comment
*FunctionsDecompilationApi* | [**getDecompilationComments**](docs/FunctionsDecompilationApi.md#getDecompilationComments) | **GET** /v2/functions/{function_id}/decompilation/comments | Get comments for this function
*FunctionsDecompilationApi* | [**getFunctionDecompilation**](docs/FunctionsDecompilationApi.md#getFunctionDecompilation) | **GET** /v2/functions/{function_id}/decompilation | Get decompilation result
*FunctionsDecompilationApi* | [**updateDecompilationComment**](docs/FunctionsDecompilationApi.md#updateDecompilationComment) | **PATCH** /v2/functions/{function_id}/decompilation/comments/{comment_id} | Update a comment
*FunctionsRenamingHistoryApi* | [**batchRenameFunction**](docs/FunctionsRenamingHistoryApi.md#batchRenameFunction) | **POST** /v2/functions/rename/batch | Batch Rename Functions
*FunctionsRenamingHistoryApi* | [**getFunctionNameHistory**](docs/FunctionsRenamingHistoryApi.md#getFunctionNameHistory) | **GET** /v2/functions/history/{function_id} | Get Function Name History
Expand Down Expand Up @@ -245,7 +242,6 @@ Class | Method | HTTP request | Description
- [BaseResponseCommentResponse](docs/BaseResponseCommentResponse.md)
- [BaseResponseCommunities](docs/BaseResponseCommunities.md)
- [BaseResponseCreated](docs/BaseResponseCreated.md)
- [BaseResponseDecompilationResponse](docs/BaseResponseDecompilationResponse.md)
- [BaseResponseDict](docs/BaseResponseDict.md)
- [BaseResponseDynamicExecutionStatus](docs/BaseResponseDynamicExecutionStatus.md)
- [BaseResponseExternalResponse](docs/BaseResponseExternalResponse.md)
Expand Down Expand Up @@ -332,7 +328,6 @@ Class | Method | HTTP request | Description
- [Context](docs/Context.md)
- [Created](docs/Created.md)
- [DecompilationCommentContext](docs/DecompilationCommentContext.md)
- [DecompilationResponse](docs/DecompilationResponse.md)
- [DieMatch](docs/DieMatch.md)
- [DynamicExecutionStatusInput](docs/DynamicExecutionStatusInput.md)
- [ELFImportModel](docs/ELFImportModel.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 = '2.16.0'
version = '2.18.2'



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

coordinates("ai.reveng", "sdk", "2.16.0")
coordinates("ai.reveng", "sdk", "2.18.2")

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.16.0",
version := "2.18.2",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
17 changes: 0 additions & 17 deletions docs/BaseResponseDecompilationResponse.md

This file was deleted.

15 changes: 0 additions & 15 deletions docs/DecompilationResponse.md

This file was deleted.

209 changes: 0 additions & 209 deletions docs/FunctionsDecompilationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,83 +4,12 @@ All URIs are relative to *https://api.reveng.ai*

| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**checkFunctionDecompilationTask**](FunctionsDecompilationApi.md#checkFunctionDecompilationTask) | **GET** /v2/functions/{function_id}/decompilation/status | Check the status of a function decompilation |
| [**createDecompilationComment**](FunctionsDecompilationApi.md#createDecompilationComment) | **POST** /v2/functions/{function_id}/decompilation/comments | Create a comment for this function |
| [**createFunctionDecompilationTask**](FunctionsDecompilationApi.md#createFunctionDecompilationTask) | **POST** /v2/functions/{function_id}/decompilation | Queues a function decompilation |
| [**deleteDecompilationComment**](FunctionsDecompilationApi.md#deleteDecompilationComment) | **DELETE** /v2/functions/{function_id}/decompilation/comments/{comment_id} | Delete a comment |
| [**getDecompilationComments**](FunctionsDecompilationApi.md#getDecompilationComments) | **GET** /v2/functions/{function_id}/decompilation/comments | Get comments for this function |
| [**getFunctionDecompilation**](FunctionsDecompilationApi.md#getFunctionDecompilation) | **GET** /v2/functions/{function_id}/decompilation | Get decompilation result |
| [**updateDecompilationComment**](FunctionsDecompilationApi.md#updateDecompilationComment) | **PATCH** /v2/functions/{function_id}/decompilation/comments/{comment_id} | Update a comment |


<a id="checkFunctionDecompilationTask"></a>
# **checkFunctionDecompilationTask**
> BaseResponseFunctionTaskResponse checkFunctionDecompilationTask(functionId)

Check the status of a function decompilation

### Example
```java
// Import classes:
import ai.reveng.invoker.ApiClient;
import ai.reveng.invoker.ApiException;
import ai.reveng.invoker.Configuration;
import ai.reveng.invoker.auth.*;
import ai.reveng.invoker.models.*;
import ai.reveng.api.FunctionsDecompilationApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.reveng.ai");

// Configure API key authorization: APIKey
ApiKeyAuth APIKey = (ApiKeyAuth) defaultClient.getAuthentication("APIKey");
APIKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.setApiKeyPrefix("Token");

FunctionsDecompilationApi apiInstance = new FunctionsDecompilationApi(defaultClient);
Integer functionId = 56; // Integer |
try {
BaseResponseFunctionTaskResponse result = apiInstance.checkFunctionDecompilationTask(functionId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FunctionsDecompilationApi#checkFunctionDecompilationTask");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```

### Parameters

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **functionId** | **Integer**| | |

### Return type

[**BaseResponseFunctionTaskResponse**](BaseResponseFunctionTaskResponse.md)

### Authorization

[APIKey](../README.md#APIKey)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Successful Response | - |
| **422** | Invalid request parameters | - |

<a id="createDecompilationComment"></a>
# **createDecompilationComment**
> BaseResponseCommentResponse createDecompilationComment(functionId, functionCommentCreateRequest)
Expand Down Expand Up @@ -154,75 +83,6 @@ public class Example {
| **422** | Invalid request parameters | - |
| **400** | Bad Request | - |

<a id="createFunctionDecompilationTask"></a>
# **createFunctionDecompilationTask**
> BaseResponseStr createFunctionDecompilationTask(functionId)

Queues a function decompilation

### Example
```java
// Import classes:
import ai.reveng.invoker.ApiClient;
import ai.reveng.invoker.ApiException;
import ai.reveng.invoker.Configuration;
import ai.reveng.invoker.auth.*;
import ai.reveng.invoker.models.*;
import ai.reveng.api.FunctionsDecompilationApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.reveng.ai");

// Configure API key authorization: APIKey
ApiKeyAuth APIKey = (ApiKeyAuth) defaultClient.getAuthentication("APIKey");
APIKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.setApiKeyPrefix("Token");

FunctionsDecompilationApi apiInstance = new FunctionsDecompilationApi(defaultClient);
Integer functionId = 56; // Integer |
try {
BaseResponseStr result = apiInstance.createFunctionDecompilationTask(functionId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FunctionsDecompilationApi#createFunctionDecompilationTask");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```

### Parameters

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **functionId** | **Integer**| | |

### Return type

[**BaseResponseStr**](BaseResponseStr.md)

### Authorization

[APIKey](../README.md#APIKey)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **202** | Successful Response | - |
| **422** | Invalid request parameters | - |
| **409** | Security checks already extracted or queued | - |

<a id="deleteDecompilationComment"></a>
# **deleteDecompilationComment**
> BaseResponseBool deleteDecompilationComment(commentId, functionId)
Expand Down Expand Up @@ -367,75 +227,6 @@ public class Example {
| **200** | Successful Response | - |
| **422** | Invalid request parameters | - |

<a id="getFunctionDecompilation"></a>
# **getFunctionDecompilation**
> BaseResponseDecompilationResponse getFunctionDecompilation(functionId)

Get decompilation result

### Example
```java
// Import classes:
import ai.reveng.invoker.ApiClient;
import ai.reveng.invoker.ApiException;
import ai.reveng.invoker.Configuration;
import ai.reveng.invoker.auth.*;
import ai.reveng.invoker.models.*;
import ai.reveng.api.FunctionsDecompilationApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.reveng.ai");

// Configure API key authorization: APIKey
ApiKeyAuth APIKey = (ApiKeyAuth) defaultClient.getAuthentication("APIKey");
APIKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.setApiKeyPrefix("Token");

FunctionsDecompilationApi apiInstance = new FunctionsDecompilationApi(defaultClient);
Integer functionId = 56; // Integer |
try {
BaseResponseDecompilationResponse result = apiInstance.getFunctionDecompilation(functionId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FunctionsDecompilationApi#getFunctionDecompilation");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```

### Parameters

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **functionId** | **Integer**| | |

### Return type

[**BaseResponseDecompilationResponse**](BaseResponseDecompilationResponse.md)

### Authorization

[APIKey](../README.md#APIKey)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Successful Response | - |
| **422** | Invalid request parameters | - |
| **404** | Unable to find a decompilation for the function_id given | - |

<a id="updateDecompilationComment"></a>
# **updateDecompilationComment**
> BaseResponseCommentResponse updateDecompilationComment(commentId, functionId, commentUpdateRequest)
Expand Down
16 changes: 6 additions & 10 deletions docs/ModelName.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,17 @@
## Enum


* `BINNET_0_5_X86_WINDOWS` (value: `"binnet-0.5-x86-windows"`)
* `BINNET_0_7_X86_64_WINDOWS` (value: `"binnet-0.7-x86-64-windows"`)

* `BINNET_0_5_X86_LINUX` (value: `"binnet-0.5-x86-linux"`)
* `BINNET_0_7_X86_64_LINUX` (value: `"binnet-0.7-x86-64-linux"`)

* `BINNET_0_5_X86_MACOS` (value: `"binnet-0.5-x86-macos"`)
* `BINNET_0_7_X86_32_WINDOWS` (value: `"binnet-0.7-x86-32-windows"`)

* `BINNET_0_5_X86_ANDROID` (value: `"binnet-0.5-x86-android"`)
* `BINNET_0_7_X86_32_LINUX` (value: `"binnet-0.7-x86-32-linux"`)

* `BINNET_0_5_X86_32_WINDOWS` (value: `"binnet-0.5-x86-32-windows"`)
* `BINNET_0_7_ARM_64_WINDOWS` (value: `"binnet-0.7-arm-64-windows"`)

* `BINNET_0_5_X86_32_LINUX` (value: `"binnet-0.5-x86-32-linux"`)

* `BINNET_0_5_ARM_64_WINDOWS` (value: `"binnet-0.5-arm-64-windows"`)

* `BINNET_0_5_ARM_64_LINUX` (value: `"binnet-0.5-arm-64-linux"`)
* `BINNET_0_7_ARM_64_LINUX` (value: `"binnet-0.7-arm-64-linux"`)



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.16.0</version>
<version>2.18.2</version>
<url>https://github.com/RevEngAI/sdk-java</url>
<description>Java SDK for the RevEng.AI API</description>
<scm>
Expand Down
Loading