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.92.0
v3.93.0
11 changes: 9 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.92.0</version>
<version>3.93.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:3.92.0"
implementation "ai.reveng:sdk:3.93.0"
}
```

Expand Down Expand Up @@ -139,8 +139,10 @@ Class | Method | HTTP request | Description
*CollectionsApi* | [**updateCollectionBinaries**](docs/CollectionsApi.md#updateCollectionBinaries) | **PATCH** /v2/collections/{collection_id}/binaries | Updates a collection binaries
*CollectionsApi* | [**updateCollectionTags**](docs/CollectionsApi.md#updateCollectionTags) | **PATCH** /v2/collections/{collection_id}/tags | Updates a collection tags
*CollectionsApi* | [**v3CreateCollection**](docs/CollectionsApi.md#v3CreateCollection) | **POST** /v3/collections | Create a collection.
*CollectionsApi* | [**v3DeleteCollection**](docs/CollectionsApi.md#v3DeleteCollection) | **DELETE** /v3/collections/{collection_id} | Delete a collection.
*CollectionsApi* | [**v3GetCollection**](docs/CollectionsApi.md#v3GetCollection) | **GET** /v3/collections/{collection_id} | Get a collection.
*CollectionsApi* | [**v3ListCollections**](docs/CollectionsApi.md#v3ListCollections) | **GET** /v3/collections | List collections.
*CollectionsApi* | [**v3PatchCollection**](docs/CollectionsApi.md#v3PatchCollection) | **PATCH** /v3/collections/{collection_id} | Update a collection.
*CollectionsApi* | [**v3PatchCollectionBinaries**](docs/CollectionsApi.md#v3PatchCollectionBinaries) | **PATCH** /v3/collections/{collection_id}/binaries | Replace the binaries in a collection.
*CollectionsApi* | [**v3PatchCollectionTags**](docs/CollectionsApi.md#v3PatchCollectionTags) | **PATCH** /v3/collections/{collection_id}/tags | Replace the tags on a collection.
*ConfigApi* | [**getConfig**](docs/ConfigApi.md#getConfig) | **GET** /v2/config | Get Config
Expand Down Expand Up @@ -222,6 +224,9 @@ Class | Method | HTTP request | Description

## Documentation for Models

- [AIDecompFunctionMapping](docs/AIDecompFunctionMapping.md)
- [AIDecompInverseFunctionMapItem](docs/AIDecompInverseFunctionMapItem.md)
- [AIDecompInverseStringMapItem](docs/AIDecompInverseStringMapItem.md)
- [APIError](docs/APIError.md)
- [AddCalleeInputBody](docs/AddCalleeInputBody.md)
- [AddUserStringInputBody](docs/AddUserStringInputBody.md)
Expand Down Expand Up @@ -537,6 +542,8 @@ Class | Method | HTTP request | Description
- [Params](docs/Params.md)
- [PatchCollectionBinariesInputBody](docs/PatchCollectionBinariesInputBody.md)
- [PatchCollectionBinariesOutputBody](docs/PatchCollectionBinariesOutputBody.md)
- [PatchCollectionInputBody](docs/PatchCollectionInputBody.md)
- [PatchCollectionOutputBody](docs/PatchCollectionOutputBody.md)
- [PatchCollectionTagsInputBody](docs/PatchCollectionTagsInputBody.md)
- [PatchCollectionTagsOutputBody](docs/PatchCollectionTagsOutputBody.md)
- [PatchCommentBody](docs/PatchCommentBody.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 = '3.92.0'
version = '3.93.0'



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

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


# AIDecompFunctionMapping


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**fields** | **Map&lt;String, Map&lt;String, ReplacementValue&gt;&gt;** | | |
|**inverseFunctionMap** | **Map&lt;String, AIDecompInverseFunctionMapItem&gt;** | | |
|**inverseStringMap** | **Map&lt;String, AIDecompInverseStringMapItem&gt;** | | |
|**unmatchedCustomFunctionPointers** | **Map&lt;String, ReplacementValue&gt;** | | |
|**unmatchedCustomTypes** | **Map&lt;String, ReplacementValue&gt;** | | |
|**unmatchedEnums** | **Map&lt;String, ReplacementValue&gt;** | | |
|**unmatchedExternalVars** | **Map&lt;String, ReplacementValue&gt;** | | |
|**unmatchedFunctions** | **Map&lt;String, ReplacementValue&gt;** | | |
|**unmatchedGlobalVars** | **Map&lt;String, ReplacementValue&gt;** | | |
|**unmatchedGoToLabels** | **Map&lt;String, ReplacementValue&gt;** | | |
|**unmatchedStrings** | **Map&lt;String, ReplacementValue&gt;** | | |
|**unmatchedVariadicLists** | **Map&lt;String, ReplacementValue&gt;** | | |
|**unmatchedVars** | **Map&lt;String, ReplacementValue&gt;** | | |
|**userOverrideMappings** | **Map&lt;String, String&gt;** | | |



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


# AIDecompInverseFunctionMapItem


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**addr** | **NumericAddr** | | |
|**isExternal** | **Boolean** | | |
|**name** | **String** | | |



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


# AIDecompInverseStringMapItem


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**addr** | **NumericAddr** | | |
|**string** | **String** | | |



150 changes: 150 additions & 0 deletions docs/CollectionsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ All URIs are relative to *https://api.reveng.ai*
| [**updateCollectionBinaries**](CollectionsApi.md#updateCollectionBinaries) | **PATCH** /v2/collections/{collection_id}/binaries | Updates a collection binaries |
| [**updateCollectionTags**](CollectionsApi.md#updateCollectionTags) | **PATCH** /v2/collections/{collection_id}/tags | Updates a collection tags |
| [**v3CreateCollection**](CollectionsApi.md#v3CreateCollection) | **POST** /v3/collections | Create a collection. |
| [**v3DeleteCollection**](CollectionsApi.md#v3DeleteCollection) | **DELETE** /v3/collections/{collection_id} | Delete a collection. |
| [**v3GetCollection**](CollectionsApi.md#v3GetCollection) | **GET** /v3/collections/{collection_id} | Get a collection. |
| [**v3ListCollections**](CollectionsApi.md#v3ListCollections) | **GET** /v3/collections | List collections. |
| [**v3PatchCollection**](CollectionsApi.md#v3PatchCollection) | **PATCH** /v3/collections/{collection_id} | Update a collection. |
| [**v3PatchCollectionBinaries**](CollectionsApi.md#v3PatchCollectionBinaries) | **PATCH** /v3/collections/{collection_id}/binaries | Replace the binaries in a collection. |
| [**v3PatchCollectionTags**](CollectionsApi.md#v3PatchCollectionTags) | **PATCH** /v3/collections/{collection_id}/tags | Replace the tags on a collection. |

Expand Down Expand Up @@ -606,6 +608,79 @@ public class Example {
| **422** | Unprocessable Entity | - |
| **500** | Internal Server Error | - |

<a id="v3DeleteCollection"></a>
# **v3DeleteCollection**
> v3DeleteCollection(collectionId)

Delete a collection.

Deletes a collection. The collection must not have any linked binaries (call PATCH /v3/collections/{collection_id}/binaries with an empty list first). **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 - &#x60;409&#x60; [&#x60;CONFLICT&#x60;](/errors/CONFLICT) β€” Conflict

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

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

CollectionsApi apiInstance = new CollectionsApi(defaultClient);
Long collectionId = 56L; // Long |
try {
apiInstance.v3DeleteCollection(collectionId);
} catch (ApiException e) {
System.err.println("Exception when calling CollectionsApi#v3DeleteCollection");
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 |
|------------- | ------------- | ------------- | -------------|
| **collectionId** | **Long**| | |

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **204** | No Content | - |
| **403** | Forbidden | - |
| **404** | Not Found | - |
| **409** | Conflict | - |
| **422** | Unprocessable Entity | - |
| **500** | Internal Server Error | - |

<a id="v3GetCollection"></a>
# **v3GetCollection**
> GetCollectionOutputBody v3GetCollection(collectionId, includeTags, includeBinaries, pageSize, pageNumber, binarySearchStr)
Expand Down Expand Up @@ -769,6 +844,81 @@ public class Example {
| **422** | Unprocessable Entity | - |
| **500** | Internal Server Error | - |

<a id="v3PatchCollection"></a>
# **v3PatchCollection**
> PatchCollectionOutputBody v3PatchCollection(collectionId, patchCollectionInputBody)

Update a collection.

Updates a collection&#39;s name, description, and/or scope. Omitted fields keep their existing values. **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 - &#x60;422&#x60; [&#x60;VALIDATION_FAILED&#x60;](/errors/VALIDATION_FAILED) β€” Validation Failed

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

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

CollectionsApi apiInstance = new CollectionsApi(defaultClient);
Long collectionId = 56L; // Long |
PatchCollectionInputBody patchCollectionInputBody = new PatchCollectionInputBody(); // PatchCollectionInputBody |
try {
PatchCollectionOutputBody result = apiInstance.v3PatchCollection(collectionId, patchCollectionInputBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CollectionsApi#v3PatchCollection");
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 |
|------------- | ------------- | ------------- | -------------|
| **collectionId** | **Long**| | |
| **patchCollectionInputBody** | [**PatchCollectionInputBody**](PatchCollectionInputBody.md)| | |

### Return type

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

<a id="v3PatchCollectionBinaries"></a>
# **v3PatchCollectionBinaries**
> PatchCollectionBinariesOutputBody v3PatchCollectionBinaries(collectionId, patchCollectionBinariesInputBody)
Expand Down
15 changes: 15 additions & 0 deletions docs/PatchCollectionInputBody.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@


# PatchCollectionInputBody


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**collectionName** | **String** | New collection name. Omit, null, or empty string to keep existing. | [optional] |
|**collectionScope** | **String** | New scope (PUBLIC, PRIVATE, PROTECTED, TEAM). Omit or send null to keep existing. Empty string returns 422 UNPROCESSABLE ENTITY. | [optional] |
|**description** | **String** | New description. Omit, null, or empty string to keep existing. | [optional] |



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


# PatchCollectionOutputBody


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**binaryCount** | **Long** | | |
|**collectionId** | **Long** | | |
|**collectionName** | **String** | | |
|**collectionScope** | **String** | | |
|**createdAt** | **OffsetDateTime** | | |
|**description** | **String** | | |
|**modelId** | **Long** | | |
|**teamId** | **Long** | | |
|**updatedAt** | **OffsetDateTime** | | |
|**userId** | **Long** | | |



2 changes: 1 addition & 1 deletion docs/TokenisedData.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**functionMapping** | [**FunctionMapping**](FunctionMapping.md) | Complete mapping data for token resolution | [optional] |
|**functionMapping** | **AIDecompFunctionMapping** | Complete mapping data for token resolution | [optional] |
|**predictedFunctionName** | **String** | Predicted function name from the AI model | [optional] |
|**status** | [**StatusEnum**](#StatusEnum) | Task status | |
|**tokenisedDecompilation** | **String** | Source code with placeholder tokens | [optional] |
Expand Down
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.92.0</version>
<version>3.93.0</version>
<url>https://github.com/RevEngAI/sdk-java</url>
<description>Java SDK for the RevEng.AI API</description>
<scm>
Expand Down
Loading