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.39.0
v3.40.0
8 changes: 6 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.39.0</version>
<version>3.40.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:3.39.0"
implementation "ai.reveng:sdk:3.40.0"
}
```

Expand Down Expand Up @@ -113,6 +113,7 @@ Class | Method | HTTP request | Description
*AnalysesSecurityChecksApi* | [**createScurityChecksTask**](docs/AnalysesSecurityChecksApi.md#createScurityChecksTask) | **POST** /v2/analyses/{analysis_id}/security-checks | Queues a security check process
*AnalysesSecurityChecksApi* | [**getSecurityChecks**](docs/AnalysesSecurityChecksApi.md#getSecurityChecks) | **GET** /v2/analyses/{analysis_id}/security-checks | Get Security Checks
*AnalysesSecurityChecksApi* | [**getSecurityChecksTaskStatus**](docs/AnalysesSecurityChecksApi.md#getSecurityChecksTaskStatus) | **GET** /v2/analyses/{analysis_id}/security-checks/status | Check the status of a security check process
*AnalysesXRefsApi* | [**getXrefByVaddr**](docs/AnalysesXRefsApi.md#getXrefByVaddr) | **GET** /v2/analyses/{analysis_id}/xrefs/{vaddr} | [Beta] Look up an xref by virtual address
*AuthenticationUsersApi* | [**getRequesterUserInfo**](docs/AuthenticationUsersApi.md#getRequesterUserInfo) | **GET** /v2/users/me | Get the requesters user information
*AuthenticationUsersApi* | [**getUser**](docs/AuthenticationUsersApi.md#getUser) | **GET** /v2/users/{user_id} | Get a user&#39;s public information
*AuthenticationUsersApi* | [**getUserActivity**](docs/AuthenticationUsersApi.md#getUserActivity) | **GET** /v2/users/activity | Get auth user activity
Expand Down Expand Up @@ -298,6 +299,7 @@ Class | Method | HTTP request | Description
- [BaseResponseTaskResponse](docs/BaseResponseTaskResponse.md)
- [BaseResponseUploadResponse](docs/BaseResponseUploadResponse.md)
- [BaseResponseVulnerabilities](docs/BaseResponseVulnerabilities.md)
- [BaseResponseXRef](docs/BaseResponseXRef.md)
- [Basic](docs/Basic.md)
- [BinariesRelatedStatusResponse](docs/BinariesRelatedStatusResponse.md)
- [BinariesTaskStatus](docs/BinariesTaskStatus.md)
Expand Down Expand Up @@ -454,6 +456,7 @@ Class | Method | HTTP request | Description
- [SecurityChecksResponse](docs/SecurityChecksResponse.md)
- [SecurityChecksResult](docs/SecurityChecksResult.md)
- [SecurityModel](docs/SecurityModel.md)
- [SegmentInfo](docs/SegmentInfo.md)
- [SeverityType](docs/SeverityType.md)
- [SingleCodeCertificateModel](docs/SingleCodeCertificateModel.md)
- [SingleCodeSignatureModel](docs/SingleCodeSignatureModel.md)
Expand Down Expand Up @@ -489,6 +492,7 @@ Class | Method | HTTP request | Description
- [Vulnerability](docs/Vulnerability.md)
- [VulnerabilityType](docs/VulnerabilityType.md)
- [Workspace](docs/Workspace.md)
- [XRef](docs/XRef.md)


## Recommendation
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.39.0'
version = '3.40.0'



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

coordinates("ai.reveng", "sdk", "3.39.0")
coordinates("ai.reveng", "sdk", "3.40.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.39.0",
version := "3.40.0",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
82 changes: 82 additions & 0 deletions docs/AnalysesXRefsApi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# AnalysesXRefsApi

All URIs are relative to *https://api.reveng.ai*

| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**getXrefByVaddr**](AnalysesXRefsApi.md#getXrefByVaddr) | **GET** /v2/analyses/{analysis_id}/xrefs/{vaddr} | [Beta] Look up an xref by virtual address |


<a id="getXrefByVaddr"></a>
# **getXrefByVaddr**
> BaseResponseXRef getXrefByVaddr(analysisId, vaddr)

[Beta] Look up an xref by virtual address

**This endpoint is in beta and may change without notice.**

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

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

AnalysesXRefsApi apiInstance = new AnalysesXRefsApi(defaultClient);
Integer analysisId = 56; // Integer |
Integer vaddr = 56; // Integer | Virtual address to match against xref_to
try {
BaseResponseXRef result = apiInstance.getXrefByVaddr(analysisId, vaddr);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnalysesXRefsApi#getXrefByVaddr");
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 |
|------------- | ------------- | ------------- | -------------|
| **analysisId** | **Integer**| | |
| **vaddr** | **Integer**| Virtual address to match against xref_to | |

### Return type

[**BaseResponseXRef**](BaseResponseXRef.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** | Xref or analysis cache not found | - |

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


# BaseResponseXRef


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**status** | **Boolean** | Response status on whether the request succeeded | [optional] |
|**data** | [**XRef**](XRef.md) | | [optional] |
|**message** | **String** | | [optional] |
|**errors** | [**List&lt;ErrorModel&gt;**](ErrorModel.md) | | [optional] |
|**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] |



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


# SegmentInfo

Represents the information about a segment. Attributes: name: The name of the segment. r: Determines if the segment has read permission. w: Determines if the segment has write permission. x: Determines if the segment has execute permission. start: The start address of the segment. end: The end address of the segment.

## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**name** | **String** | | [optional] |
|**r** | **Boolean** | | [optional] |
|**w** | **Boolean** | | [optional] |
|**x** | **Boolean** | | [optional] |
|**start** | **Integer** | | [optional] |
|**end** | **Integer** | | [optional] |



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


# XRef


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**value** | **String** | | |
|**xrefTo** | **String** | | |
|**isScalar** | **Boolean** | | [optional] |
|**isCall** | **Boolean** | | [optional] |
|**isData** | **Boolean** | | [optional] |
|**isString** | **Boolean** | | [optional] |
|**rawData** | **File** | | [optional] |
|**segment** | [**SegmentInfo**](SegmentInfo.md) | | [optional] |
|**origStrEncoding** | **String** | | [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.39.0</version>
<version>3.40.0</version>
<url>https://github.com/RevEngAI/sdk-java</url>
<description>Java SDK for the RevEng.AI API</description>
<scm>
Expand Down
Loading