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 @@
v1.98.1
v1.99.0
9 changes: 3 additions & 6 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>1.98.1</version>
<version>1.99.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:1.98.1"
implementation "ai.reveng:sdk:1.99.0"
}
```

Expand Down Expand Up @@ -80,7 +80,6 @@ Class | Method | HTTP request | Description
*AnalysesCommentsApi* | [**deleteAnalysisComment**](docs/AnalysesCommentsApi.md#deleteAnalysisComment) | **DELETE** /v2/analyses/{analysis_id}/comments/{comment_id} | Delete a comment
*AnalysesCommentsApi* | [**getAnalysisComments**](docs/AnalysesCommentsApi.md#getAnalysisComments) | **GET** /v2/analyses/{analysis_id}/comments | Get comments for this analysis
*AnalysesCommentsApi* | [**updateAnalysisComment**](docs/AnalysesCommentsApi.md#updateAnalysisComment) | **PATCH** /v2/analyses/{analysis_id}/comments/{comment_id} | Update a comment
*AnalysesCoreApi* | [**batchSymbolAnn**](docs/AnalysesCoreApi.md#batchSymbolAnn) | **POST** /v1/ann/symbol/batch | Batch Symbol ANN using function IDs
*AnalysesCoreApi* | [**createAnalysis**](docs/AnalysesCoreApi.md#createAnalysis) | **POST** /v2/analyses | Create Analysis
*AnalysesCoreApi* | [**deleteAnalysis**](docs/AnalysesCoreApi.md#deleteAnalysis) | **DELETE** /v2/analyses/{analysis_id} | Delete Analysis
*AnalysesCoreApi* | [**findSimilarFunctionsBatch**](docs/AnalysesCoreApi.md#findSimilarFunctionsBatch) | **POST** /v2/analyses/{analysis_id}/similarity/functions | Batch Symbol ANN using Analysis ID
Expand Down Expand Up @@ -194,6 +193,7 @@ Class | Method | HTTP request | Description

## Documentation for Models

- [ANNFunction](docs/ANNFunction.md)
- [Addr](docs/Addr.md)
- [AiDecompilationRating](docs/AiDecompilationRating.md)
- [AiUnstripRequest](docs/AiUnstripRequest.md)
Expand All @@ -212,14 +212,12 @@ Class | Method | HTTP request | Description
- [AnalysisUpdateRequest](docs/AnalysisUpdateRequest.md)
- [AnalysisUpdateTagsRequest](docs/AnalysisUpdateTagsRequest.md)
- [AnalysisUpdateTagsResponse](docs/AnalysisUpdateTagsResponse.md)
- [AppApiRestV1AnnSchemaANNFunction](docs/AppApiRestV1AnnSchemaANNFunction.md)
- [AppApiRestV2AnalysesEnumsDynamicExecutionStatus](docs/AppApiRestV2AnalysesEnumsDynamicExecutionStatus.md)
- [AppApiRestV2AnalysesEnumsOrderBy](docs/AppApiRestV2AnalysesEnumsOrderBy.md)
- [AppApiRestV2AnalysesResponsesTagItem](docs/AppApiRestV2AnalysesResponsesTagItem.md)
- [AppApiRestV2CollectionsEnumsOrderBy](docs/AppApiRestV2CollectionsEnumsOrderBy.md)
- [AppApiRestV2FunctionsResponsesFunction](docs/AppApiRestV2FunctionsResponsesFunction.md)
- [AppApiRestV2FunctionsTypesFunction](docs/AppApiRestV2FunctionsTypesFunction.md)
- [AppApiRestV2SimilaritySchemaANNFunction](docs/AppApiRestV2SimilaritySchemaANNFunction.md)
- [AppServicesBinaryAnnSchemaTagItem](docs/AppServicesBinaryAnnSchemaTagItem.md)
- [AppServicesDynamicExecutionSchemasDynamicExecutionStatus](docs/AppServicesDynamicExecutionSchemasDynamicExecutionStatus.md)
- [Argument](docs/Argument.md)
Expand Down Expand Up @@ -365,7 +363,6 @@ Class | Method | HTTP request | Description
- [FileHashes](docs/FileHashes.md)
- [FileMetadata](docs/FileMetadata.md)
- [Filters](docs/Filters.md)
- [FunctionBatchAnn](docs/FunctionBatchAnn.md)
- [FunctionBlockDestinationResponse](docs/FunctionBlockDestinationResponse.md)
- [FunctionBlockResponse](docs/FunctionBlockResponse.md)
- [FunctionBlocksResponse](docs/FunctionBlocksResponse.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 = '1.98.1'
version = '1.99.0'



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

coordinates("ai.reveng", "sdk", "1.98.1")
coordinates("ai.reveng", "sdk", "1.99.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 := "1.98.1",
version := "1.99.0",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


# AppApiRestV2SimilaritySchemaANNFunction
# ANNFunction


## Properties
Expand Down
79 changes: 4 additions & 75 deletions docs/AnalysesCoreApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ All URIs are relative to *https://api.reveng.ai*

| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**batchSymbolAnn**](AnalysesCoreApi.md#batchSymbolAnn) | **POST** /v1/ann/symbol/batch | Batch Symbol ANN using function IDs |
| [**createAnalysis**](AnalysesCoreApi.md#createAnalysis) | **POST** /v2/analyses | Create Analysis |
| [**deleteAnalysis**](AnalysesCoreApi.md#deleteAnalysis) | **DELETE** /v2/analyses/{analysis_id} | Delete Analysis |
| [**findSimilarFunctionsBatch**](AnalysesCoreApi.md#findSimilarFunctionsBatch) | **POST** /v2/analyses/{analysis_id}/similarity/functions | Batch Symbol ANN using Analysis ID |
Expand All @@ -22,76 +21,6 @@ All URIs are relative to *https://api.reveng.ai*
| [**uploadFile**](AnalysesCoreApi.md#uploadFile) | **POST** /v2/upload | Upload File |


<a id="batchSymbolAnn"></a>
# **batchSymbolAnn**
> FunctionBatchAnn batchSymbolAnn(appApiRestV1AnnSchemaANNFunction)

Batch Symbol ANN using function IDs

Takes in an input of functions ID&#39;s and settings and finds the nearest functions for each function that&#39;s within the database

### 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.AnalysesCoreApi;

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");

AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient);
AppApiRestV1AnnSchemaANNFunction appApiRestV1AnnSchemaANNFunction = new AppApiRestV1AnnSchemaANNFunction(); // AppApiRestV1AnnSchemaANNFunction |
try {
FunctionBatchAnn result = apiInstance.batchSymbolAnn(appApiRestV1AnnSchemaANNFunction);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnalysesCoreApi#batchSymbolAnn");
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 |
|------------- | ------------- | ------------- | -------------|
| **appApiRestV1AnnSchemaANNFunction** | [**AppApiRestV1AnnSchemaANNFunction**](AppApiRestV1AnnSchemaANNFunction.md)| | |

### Return type

[**FunctionBatchAnn**](FunctionBatchAnn.md)

### Authorization

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

### HTTP request headers

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

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

<a id="createAnalysis"></a>
# **createAnalysis**
> BaseResponseAnalysisCreateResponse createAnalysis(analysisCreateRequest)
Expand Down Expand Up @@ -238,7 +167,7 @@ public class Example {

<a id="findSimilarFunctionsBatch"></a>
# **findSimilarFunctionsBatch**
> BaseResponseNearestNeighborAnalysis findSimilarFunctionsBatch(analysisId, appApiRestV2SimilaritySchemaANNFunction)
> BaseResponseNearestNeighborAnalysis findSimilarFunctionsBatch(analysisId, anNFunction)

Batch Symbol ANN using Analysis ID

Expand Down Expand Up @@ -267,9 +196,9 @@ public class Example {

AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient);
Integer analysisId = 56; // Integer |
AppApiRestV2SimilaritySchemaANNFunction appApiRestV2SimilaritySchemaANNFunction = new AppApiRestV2SimilaritySchemaANNFunction(); // AppApiRestV2SimilaritySchemaANNFunction |
ANNFunction anNFunction = new ANNFunction(); // ANNFunction |
try {
BaseResponseNearestNeighborAnalysis result = apiInstance.findSimilarFunctionsBatch(analysisId, appApiRestV2SimilaritySchemaANNFunction);
BaseResponseNearestNeighborAnalysis result = apiInstance.findSimilarFunctionsBatch(analysisId, anNFunction);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnalysesCoreApi#findSimilarFunctionsBatch");
Expand All @@ -287,7 +216,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **analysisId** | **Integer**| | |
| **appApiRestV2SimilaritySchemaANNFunction** | [**AppApiRestV2SimilaritySchemaANNFunction**](AppApiRestV2SimilaritySchemaANNFunction.md)| | |
| **anNFunction** | [**ANNFunction**](ANNFunction.md)| | |

### Return type

Expand Down
31 changes: 0 additions & 31 deletions docs/AppApiRestV1AnnSchemaANNFunction.md

This file was deleted.

3 changes: 2 additions & 1 deletion docs/AppApiRestV2FunctionsTypesFunction.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**functionId** | **Integer** | Function id | |
|**functionName** | **String** | Function name | |
|**functionName** | **String** | Demangled name of the function | |
|**functionMangledName** | **String** | Mangled name of the function | |
|**functionVaddr** | **Integer** | Function virtual address | |
|**functionSize** | **Integer** | Function size | |
|**debug** | **Boolean** | Whether the function is debug | |
Expand Down
15 changes: 0 additions & 15 deletions docs/FunctionBatchAnn.md

This file was deleted.

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