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.74.4
v3.79.0
101 changes: 55 additions & 46 deletions README.md

Large diffs are not rendered by default.

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.74.4'
version = '3.79.0'



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

coordinates("ai.reveng", "sdk", "3.74.4")
coordinates("ai.reveng", "sdk", "3.79.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.74.4",
version := "3.79.0",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
14 changes: 14 additions & 0 deletions docs/APIError.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# APIError


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] |
|**error** | **ErrorBody** | | |



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

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

| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**getAnalysisQueuePosition**](AnalysesApi.md#getAnalysisQueuePosition) | **GET** /v2/analyses/{analysis_id}/queue-position | Get the queue position of an analysis |


<a id="getAnalysisQueuePosition"></a>
# **getAnalysisQueuePosition**
> QueuePositionResponse getAnalysisQueuePosition(analysisId)

Get the queue position of an analysis

Returns the number of Processing analyses with a lower analysis_id than the given one. Useful for showing the user where they sit in the processing queue while waiting for their analysis to start. **Error codes:** - &#x60;404&#x60; [&#x60;NOT_FOUND&#x60;](/errors/NOT_FOUND) — Not Found - &#x60;403&#x60; [&#x60;ACCESS_DENIED&#x60;](/errors/ACCESS_DENIED) — Access Denied

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

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

AnalysesApi apiInstance = new AnalysesApi(defaultClient);
Long analysisId = 56L; // Long | Analysis ID
try {
QueuePositionResponse result = apiInstance.getAnalysisQueuePosition(analysisId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnalysesApi#getAnalysisQueuePosition");
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** | **Long**| Analysis ID | |

### Return type

[**QueuePositionResponse**](QueuePositionResponse.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** | OK | - |
| **403** | Forbidden | - |
| **404** | Not Found | - |
| **422** | Unprocessable Entity | - |
| **500** | Internal Server Error | - |

4 changes: 2 additions & 2 deletions docs/AnalysesCoreApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ public class Example {
List<Workspace> workspace = Arrays.asList(); // List<Workspace> | The workspace to be viewed
List<StatusInput> status = Arrays.asList(); // List<StatusInput> | The status of the analysis
List<ModelName> modelName = Arrays.asList(); // List<ModelName> | Show analysis belonging to the model
DynamicExecutionStatusInput dynamicExecutionStatus = DynamicExecutionStatusInput.fromValue("PENDING"); // DynamicExecutionStatusInput | Show analysis that have a dynamic execution with the given status
DynamicExecutionStatus dynamicExecutionStatus = DynamicExecutionStatus.fromValue("PENDING"); // DynamicExecutionStatus | Show analysis that have a dynamic execution with the given status
List<String> usernames = Arrays.asList(); // List<String> | Show analysis belonging to the user
String sha256Hash = "sha256Hash_example"; // String |
Integer limit = 20; // Integer |
Expand Down Expand Up @@ -724,7 +724,7 @@ public class Example {
| **workspace** | [**List&lt;Workspace&gt;**](Workspace.md)| The workspace to be viewed | [optional] |
| **status** | [**List&lt;StatusInput&gt;**](StatusInput.md)| The status of the analysis | [optional] |
| **modelName** | [**List&lt;ModelName&gt;**](ModelName.md)| Show analysis belonging to the model | [optional] |
| **dynamicExecutionStatus** | [**DynamicExecutionStatusInput**](.md)| Show analysis that have a dynamic execution with the given status | [optional] [enum: PENDING, ERROR, SUCCESS, ALL] |
| **dynamicExecutionStatus** | [**DynamicExecutionStatus**](.md)| Show analysis that have a dynamic execution with the given status | [optional] [enum: PENDING, ERROR, SUCCESS, ALL] |
| **usernames** | [**List&lt;String&gt;**](String.md)| Show analysis belonging to the user | [optional] |
| **sha256Hash** | **String**| | [optional] |
| **limit** | **Integer**| | [optional] [default to 20] |
Expand Down
2 changes: 1 addition & 1 deletion docs/AnalysisRecord.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
|**functionBoundariesHash** | **String** | The hash of the function boundaries | |
|**binarySize** | **Integer** | The size of the binary | |
|**username** | **String** | The username of the analysis owner | |
|**dynamicExecutionStatus** | **AppApiRestV2AnalysesEnumsDynamicExecutionStatus** | | [optional] |
|**dynamicExecutionStatus** | **DynamicExecutionStatus** | | [optional] |
|**dynamicExecutionTaskId** | **Integer** | | [optional] |
|**baseAddress** | **BigInteger** | The base address of the binary | |
|**tags** | [**List&lt;TagItem&gt;**](TagItem.md) | List of tags associated with the analysis | [optional] |
Expand Down
15 changes: 0 additions & 15 deletions docs/AnalysisStage.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/AnalysisStageStatus.md

This file was deleted.

150 changes: 0 additions & 150 deletions docs/AnalysisStagesApi.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/AppApiRestV2AnalysesEnumsDynamicExecutionStatus.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/BaseResponseAnalysisStagesResponse.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/BaseResponseDynamicExecutionStatus.md

This file was deleted.

Loading