Skip to content

Commit 16341ef

Browse files
authored
Merge pull request #108 from RevEngAI/sdk-update-v3.40.0
🤖 Update SDK to version v3.40.0
2 parents 245c359 + 9591fea commit 16341ef

File tree

16 files changed

+1769
-9
lines changed

16 files changed

+1769
-9
lines changed

.sdk-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v3.39.0
1+
v3.40.0

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Add this dependency to your project's POM:
1616
<dependency>
1717
<groupId>ai.reveng</groupId>
1818
<artifactId>sdk</artifactId>
19-
<version>3.39.0</version>
19+
<version>3.40.0</version>
2020
<scope>compile</scope>
2121
</dependency>
2222
```
@@ -31,7 +31,7 @@ repositories {
3131
}
3232
3333
dependencies {
34-
implementation "ai.reveng:sdk:3.39.0"
34+
implementation "ai.reveng:sdk:3.40.0"
3535
}
3636
```
3737

@@ -113,6 +113,7 @@ Class | Method | HTTP request | Description
113113
*AnalysesSecurityChecksApi* | [**createScurityChecksTask**](docs/AnalysesSecurityChecksApi.md#createScurityChecksTask) | **POST** /v2/analyses/{analysis_id}/security-checks | Queues a security check process
114114
*AnalysesSecurityChecksApi* | [**getSecurityChecks**](docs/AnalysesSecurityChecksApi.md#getSecurityChecks) | **GET** /v2/analyses/{analysis_id}/security-checks | Get Security Checks
115115
*AnalysesSecurityChecksApi* | [**getSecurityChecksTaskStatus**](docs/AnalysesSecurityChecksApi.md#getSecurityChecksTaskStatus) | **GET** /v2/analyses/{analysis_id}/security-checks/status | Check the status of a security check process
116+
*AnalysesXRefsApi* | [**getXrefByVaddr**](docs/AnalysesXRefsApi.md#getXrefByVaddr) | **GET** /v2/analyses/{analysis_id}/xrefs/{vaddr} | [Beta] Look up an xref by virtual address
116117
*AuthenticationUsersApi* | [**getRequesterUserInfo**](docs/AuthenticationUsersApi.md#getRequesterUserInfo) | **GET** /v2/users/me | Get the requesters user information
117118
*AuthenticationUsersApi* | [**getUser**](docs/AuthenticationUsersApi.md#getUser) | **GET** /v2/users/{user_id} | Get a user&#39;s public information
118119
*AuthenticationUsersApi* | [**getUserActivity**](docs/AuthenticationUsersApi.md#getUserActivity) | **GET** /v2/users/activity | Get auth user activity
@@ -298,6 +299,7 @@ Class | Method | HTTP request | Description
298299
- [BaseResponseTaskResponse](docs/BaseResponseTaskResponse.md)
299300
- [BaseResponseUploadResponse](docs/BaseResponseUploadResponse.md)
300301
- [BaseResponseVulnerabilities](docs/BaseResponseVulnerabilities.md)
302+
- [BaseResponseXRef](docs/BaseResponseXRef.md)
301303
- [Basic](docs/Basic.md)
302304
- [BinariesRelatedStatusResponse](docs/BinariesRelatedStatusResponse.md)
303305
- [BinariesTaskStatus](docs/BinariesTaskStatus.md)
@@ -454,6 +456,7 @@ Class | Method | HTTP request | Description
454456
- [SecurityChecksResponse](docs/SecurityChecksResponse.md)
455457
- [SecurityChecksResult](docs/SecurityChecksResult.md)
456458
- [SecurityModel](docs/SecurityModel.md)
459+
- [SegmentInfo](docs/SegmentInfo.md)
457460
- [SeverityType](docs/SeverityType.md)
458461
- [SingleCodeCertificateModel](docs/SingleCodeCertificateModel.md)
459462
- [SingleCodeSignatureModel](docs/SingleCodeSignatureModel.md)
@@ -489,6 +492,7 @@ Class | Method | HTTP request | Description
489492
- [Vulnerability](docs/Vulnerability.md)
490493
- [VulnerabilityType](docs/VulnerabilityType.md)
491494
- [Workspace](docs/Workspace.md)
495+
- [XRef](docs/XRef.md)
492496

493497

494498
## Recommendation

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ apply plugin: 'java'
1919
apply plugin: 'com.diffplug.spotless'
2020

2121
group = 'ai.reveng'
22-
version = '3.39.0'
22+
version = '3.40.0'
2323

2424

2525

@@ -171,7 +171,7 @@ mavenPublishing {
171171
publishToMavenCentral(true)
172172
signAllPublications()
173173

174-
coordinates("ai.reveng", "sdk", "3.39.0")
174+
coordinates("ai.reveng", "sdk", "3.40.0")
175175

176176
pom {
177177
name = "sdk"

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "ai.reveng",
44
name := "sdk",
5-
version := "3.39.0",
5+
version := "3.40.0",
66
scalaVersion := "2.11.12",
77
scalacOptions ++= Seq("-feature"),
88
compile / javacOptions ++= Seq("-Xlint:deprecation"),

docs/AnalysesXRefsApi.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# AnalysesXRefsApi
2+
3+
All URIs are relative to *https://api.reveng.ai*
4+
5+
| Method | HTTP request | Description |
6+
|------------- | ------------- | -------------|
7+
| [**getXrefByVaddr**](AnalysesXRefsApi.md#getXrefByVaddr) | **GET** /v2/analyses/{analysis_id}/xrefs/{vaddr} | [Beta] Look up an xref by virtual address |
8+
9+
10+
<a id="getXrefByVaddr"></a>
11+
# **getXrefByVaddr**
12+
> BaseResponseXRef getXrefByVaddr(analysisId, vaddr)
13+
14+
[Beta] Look up an xref by virtual address
15+
16+
**This endpoint is in beta and may change without notice.**
17+
18+
### Example
19+
```java
20+
// Import classes:
21+
import ai.reveng.invoker.ApiClient;
22+
import ai.reveng.invoker.ApiException;
23+
import ai.reveng.invoker.Configuration;
24+
import ai.reveng.invoker.auth.*;
25+
import ai.reveng.invoker.models.*;
26+
import ai.reveng.api.AnalysesXRefsApi;
27+
28+
public class Example {
29+
public static void main(String[] args) {
30+
ApiClient defaultClient = Configuration.getDefaultApiClient();
31+
defaultClient.setBasePath("https://api.reveng.ai");
32+
33+
// Configure API key authorization: APIKey
34+
ApiKeyAuth APIKey = (ApiKeyAuth) defaultClient.getAuthentication("APIKey");
35+
APIKey.setApiKey("YOUR API KEY");
36+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
37+
//APIKey.setApiKeyPrefix("Token");
38+
39+
AnalysesXRefsApi apiInstance = new AnalysesXRefsApi(defaultClient);
40+
Integer analysisId = 56; // Integer |
41+
Integer vaddr = 56; // Integer | Virtual address to match against xref_to
42+
try {
43+
BaseResponseXRef result = apiInstance.getXrefByVaddr(analysisId, vaddr);
44+
System.out.println(result);
45+
} catch (ApiException e) {
46+
System.err.println("Exception when calling AnalysesXRefsApi#getXrefByVaddr");
47+
System.err.println("Status code: " + e.getCode());
48+
System.err.println("Reason: " + e.getResponseBody());
49+
System.err.println("Response headers: " + e.getResponseHeaders());
50+
e.printStackTrace();
51+
}
52+
}
53+
}
54+
```
55+
56+
### Parameters
57+
58+
| Name | Type | Description | Notes |
59+
|------------- | ------------- | ------------- | -------------|
60+
| **analysisId** | **Integer**| | |
61+
| **vaddr** | **Integer**| Virtual address to match against xref_to | |
62+
63+
### Return type
64+
65+
[**BaseResponseXRef**](BaseResponseXRef.md)
66+
67+
### Authorization
68+
69+
[APIKey](../README.md#APIKey)
70+
71+
### HTTP request headers
72+
73+
- **Content-Type**: Not defined
74+
- **Accept**: application/json
75+
76+
### HTTP response details
77+
| Status code | Description | Response headers |
78+
|-------------|-------------|------------------|
79+
| **200** | Successful Response | - |
80+
| **422** | Invalid request parameters | - |
81+
| **404** | Xref or analysis cache not found | - |
82+

docs/BaseResponseXRef.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
3+
# BaseResponseXRef
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**status** | **Boolean** | Response status on whether the request succeeded | [optional] |
11+
|**data** | [**XRef**](XRef.md) | | [optional] |
12+
|**message** | **String** | | [optional] |
13+
|**errors** | [**List&lt;ErrorModel&gt;**](ErrorModel.md) | | [optional] |
14+
|**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] |
15+
16+
17+

docs/SegmentInfo.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
3+
# SegmentInfo
4+
5+
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.
6+
7+
## Properties
8+
9+
| Name | Type | Description | Notes |
10+
|------------ | ------------- | ------------- | -------------|
11+
|**name** | **String** | | [optional] |
12+
|**r** | **Boolean** | | [optional] |
13+
|**w** | **Boolean** | | [optional] |
14+
|**x** | **Boolean** | | [optional] |
15+
|**start** | **Integer** | | [optional] |
16+
|**end** | **Integer** | | [optional] |
17+
18+
19+

docs/XRef.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
3+
# XRef
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**value** | **String** | | |
11+
|**xrefTo** | **String** | | |
12+
|**isScalar** | **Boolean** | | [optional] |
13+
|**isCall** | **Boolean** | | [optional] |
14+
|**isData** | **Boolean** | | [optional] |
15+
|**isString** | **Boolean** | | [optional] |
16+
|**rawData** | **File** | | [optional] |
17+
|**segment** | [**SegmentInfo**](SegmentInfo.md) | | [optional] |
18+
|**origStrEncoding** | **String** | | [optional] |
19+
20+
21+

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>sdk</artifactId>
66
<packaging>jar</packaging>
77
<name>sdk</name>
8-
<version>3.39.0</version>
8+
<version>3.40.0</version>
99
<url>https://github.com/RevEngAI/sdk-java</url>
1010
<description>Java SDK for the RevEng.AI API</description>
1111
<scm>

0 commit comments

Comments
 (0)