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.42.1
v3.43.0
12 changes: 7 additions & 5 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.42.1</version>
<version>3.43.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:3.42.1"
implementation "ai.reveng:sdk:3.43.0"
}
```

Expand Down Expand Up @@ -113,7 +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
*AnalysesXRefsApi* | [**getXrefByVaddr**](docs/AnalysesXRefsApi.md#getXrefByVaddr) | **GET** /v2/analyses/{analysis_id}/xrefs/{vaddr} | [Beta] Look up xrefs 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 @@ -299,7 +299,7 @@ Class | Method | HTTP request | Description
- [BaseResponseTaskResponse](docs/BaseResponseTaskResponse.md)
- [BaseResponseUploadResponse](docs/BaseResponseUploadResponse.md)
- [BaseResponseVulnerabilities](docs/BaseResponseVulnerabilities.md)
- [BaseResponseXRef](docs/BaseResponseXRef.md)
- [BaseResponseXrefResponse](docs/BaseResponseXrefResponse.md)
- [Basic](docs/Basic.md)
- [BinariesRelatedStatusResponse](docs/BinariesRelatedStatusResponse.md)
- [BinariesTaskStatus](docs/BinariesTaskStatus.md)
Expand Down Expand Up @@ -492,7 +492,9 @@ Class | Method | HTTP request | Description
- [Vulnerability](docs/Vulnerability.md)
- [VulnerabilityType](docs/VulnerabilityType.md)
- [Workspace](docs/Workspace.md)
- [XRef](docs/XRef.md)
- [XrefFromResponse](docs/XrefFromResponse.md)
- [XrefResponse](docs/XrefResponse.md)
- [XrefToResponse](docs/XrefToResponse.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.42.1'
version = '3.43.0'



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

coordinates("ai.reveng", "sdk", "3.42.1")
coordinates("ai.reveng", "sdk", "3.43.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.42.1",
version := "3.43.0",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
14 changes: 7 additions & 7 deletions docs/AnalysesXRefsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ 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 |
| [**getXrefByVaddr**](AnalysesXRefsApi.md#getXrefByVaddr) | **GET** /v2/analyses/{analysis_id}/xrefs/{vaddr} | [Beta] Look up xrefs by virtual address |


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

[Beta] Look up an xref by virtual address
[Beta] Look up xrefs by virtual address

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

Expand All @@ -38,9 +38,9 @@ public class Example {

AnalysesXRefsApi apiInstance = new AnalysesXRefsApi(defaultClient);
Integer analysisId = 56; // Integer |
Integer vaddr = 56; // Integer | Virtual address to match against xref_to
Integer vaddr = 56; // Integer | Virtual address to match against xrefs
try {
BaseResponseXRef result = apiInstance.getXrefByVaddr(analysisId, vaddr);
BaseResponseXrefResponse result = apiInstance.getXrefByVaddr(analysisId, vaddr);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnalysesXRefsApi#getXrefByVaddr");
Expand All @@ -58,11 +58,11 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **analysisId** | **Integer**| | |
| **vaddr** | **Integer**| Virtual address to match against xref_to | |
| **vaddr** | **Integer**| Virtual address to match against xrefs | |

### Return type

[**BaseResponseXRef**](BaseResponseXRef.md)
[**BaseResponseXrefResponse**](BaseResponseXrefResponse.md)

### Authorization

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@


# BaseResponseXRef
# BaseResponseXrefResponse


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**status** | **Boolean** | Response status on whether the request succeeded | [optional] |
|**data** | [**XRef**](XRef.md) | | [optional] |
|**data** | [**XrefResponse**](XrefResponse.md) | | [optional] |
|**message** | **String** | | [optional] |
|**errors** | [**List&lt;ErrorModel&gt;**](ErrorModel.md) | | [optional] |
|**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] |
Expand Down
6 changes: 3 additions & 3 deletions docs/XRef.md β†’ docs/XrefFromResponse.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@


# XRef
# XrefFromResponse


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**value** | **String** | | |
|**xrefTo** | **String** | | |
|**isScalar** | **Boolean** | | [optional] |
|**isCall** | **Boolean** | | [optional] |
|**isData** | **Boolean** | | [optional] |
|**isString** | **Boolean** | | [optional] |
|**rawData** | **File** | | [optional] |
|**rawData** | **String** | | [optional] |
|**segment** | [**SegmentInfo**](SegmentInfo.md) | | [optional] |
|**origStrEncoding** | **String** | | [optional] |
|**xrefTo** | **String** | | |



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


# XrefResponse


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**xrefToList** | [**List&lt;XrefToResponse&gt;**](XrefToResponse.md) | | |
|**xrefFromList** | [**List&lt;XrefFromResponse&gt;**](XrefFromResponse.md) | | |



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


# XrefToResponse


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**value** | **String** | | |
|**isScalar** | **Boolean** | | [optional] |
|**isCall** | **Boolean** | | [optional] |
|**isData** | **Boolean** | | [optional] |
|**isString** | **Boolean** | | [optional] |
|**rawData** | **String** | | [optional] |
|**segment** | [**SegmentInfo**](SegmentInfo.md) | | [optional] |
|**origStrEncoding** | **String** | | [optional] |
|**xrefFrom** | **String** | | |



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.42.1</version>
<version>3.43.0</version>
<url>https://github.com/RevEngAI/sdk-java</url>
<description>Java SDK for the RevEng.AI API</description>
<scm>
Expand Down
32 changes: 16 additions & 16 deletions src/main/java/ai/reveng/api/AnalysesXRefsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


import ai.reveng.model.BaseResponse;
import ai.reveng.model.BaseResponseXRef;
import ai.reveng.model.BaseResponseXrefResponse;
import ai.reveng.model.ErrorModel;

import java.lang.reflect.Type;
Expand Down Expand Up @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
/**
* Build call for getXrefByVaddr
* @param analysisId (required)
* @param vaddr Virtual address to match against xref_to (required)
* @param vaddr Virtual address to match against xrefs (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
Expand Down Expand Up @@ -152,11 +152,11 @@ private okhttp3.Call getXrefByVaddrValidateBeforeCall(@javax.annotation.Nonnull
}

/**
* [Beta] Look up an xref by virtual address
* [Beta] Look up xrefs by virtual address
* **This endpoint is in beta and may change without notice.**
* @param analysisId (required)
* @param vaddr Virtual address to match against xref_to (required)
* @return BaseResponseXRef
* @param vaddr Virtual address to match against xrefs (required)
* @return BaseResponseXrefResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
<table border="1">
Expand All @@ -167,17 +167,17 @@ private okhttp3.Call getXrefByVaddrValidateBeforeCall(@javax.annotation.Nonnull
<tr><td> 404 </td><td> Xref or analysis cache not found </td><td> - </td></tr>
</table>
*/
public BaseResponseXRef getXrefByVaddr(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer vaddr) throws ApiException {
ApiResponse<BaseResponseXRef> localVarResp = getXrefByVaddrWithHttpInfo(analysisId, vaddr);
public BaseResponseXrefResponse getXrefByVaddr(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer vaddr) throws ApiException {
ApiResponse<BaseResponseXrefResponse> localVarResp = getXrefByVaddrWithHttpInfo(analysisId, vaddr);
return localVarResp.getData();
}

/**
* [Beta] Look up an xref by virtual address
* [Beta] Look up xrefs by virtual address
* **This endpoint is in beta and may change without notice.**
* @param analysisId (required)
* @param vaddr Virtual address to match against xref_to (required)
* @return ApiResponse&lt;BaseResponseXRef&gt;
* @param vaddr Virtual address to match against xrefs (required)
* @return ApiResponse&lt;BaseResponseXrefResponse&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
<table border="1">
Expand All @@ -188,17 +188,17 @@ public BaseResponseXRef getXrefByVaddr(@javax.annotation.Nonnull Integer analysi
<tr><td> 404 </td><td> Xref or analysis cache not found </td><td> - </td></tr>
</table>
*/
public ApiResponse<BaseResponseXRef> getXrefByVaddrWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer vaddr) throws ApiException {
public ApiResponse<BaseResponseXrefResponse> getXrefByVaddrWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer vaddr) throws ApiException {
okhttp3.Call localVarCall = getXrefByVaddrValidateBeforeCall(analysisId, vaddr, null);
Type localVarReturnType = new TypeToken<BaseResponseXRef>(){}.getType();
Type localVarReturnType = new TypeToken<BaseResponseXrefResponse>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}

/**
* [Beta] Look up an xref by virtual address (asynchronously)
* [Beta] Look up xrefs by virtual address (asynchronously)
* **This endpoint is in beta and may change without notice.**
* @param analysisId (required)
* @param vaddr Virtual address to match against xref_to (required)
* @param vaddr Virtual address to match against xrefs (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
Expand All @@ -211,10 +211,10 @@ public ApiResponse<BaseResponseXRef> getXrefByVaddrWithHttpInfo(@javax.annotatio
<tr><td> 404 </td><td> Xref or analysis cache not found </td><td> - </td></tr>
</table>
*/
public okhttp3.Call getXrefByVaddrAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer vaddr, final ApiCallback<BaseResponseXRef> _callback) throws ApiException {
public okhttp3.Call getXrefByVaddrAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer vaddr, final ApiCallback<BaseResponseXrefResponse> _callback) throws ApiException {

okhttp3.Call localVarCall = getXrefByVaddrValidateBeforeCall(analysisId, vaddr, _callback);
Type localVarReturnType = new TypeToken<BaseResponseXRef>(){}.getType();
Type localVarReturnType = new TypeToken<BaseResponseXrefResponse>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ai/reveng/invoker/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ protected void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/3.42.1/java");
setUserAgent("OpenAPI-Generator/3.43.0/java");

authentications = new HashMap<String, Authentication>();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ai/reveng/invoker/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Configuration {
public static final String VERSION = "3.42.1";
public static final String VERSION = "3.43.0";

private static final AtomicReference<ApiClient> defaultApiClient = new AtomicReference<>();
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/ai/reveng/invoker/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.BaseResponseTaskResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.BaseResponseUploadResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.BaseResponseVulnerabilities.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.BaseResponseXRef.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.BaseResponseXrefResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.Basic.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.BinariesRelatedStatusResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.BinaryAdditionalDetailsDataResponse.CustomTypeAdapterFactory());
Expand Down Expand Up @@ -376,7 +376,9 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.UserActivityResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.Vulnerabilities.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.Vulnerability.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.XRef.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.XrefFromResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.XrefResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.XrefToResponse.CustomTypeAdapterFactory());
gson = gsonBuilder.create();
}

Expand Down
Loading