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 @@
v2.70.0
v2.74.0
8 changes: 4 additions & 4 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>2.70.0</version>
<version>2.74.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:2.70.0"
implementation "ai.reveng:sdk:2.74.0"
}
```

Expand Down Expand Up @@ -252,8 +252,8 @@ Class | Method | HTTP request | Description
- [BaseResponseGenerationStatusList](docs/BaseResponseGenerationStatusList.md)
- [BaseResponseGetAiDecompilationRatingResponse](docs/BaseResponseGetAiDecompilationRatingResponse.md)
- [BaseResponseGetAiDecompilationTask](docs/BaseResponseGetAiDecompilationTask.md)
- [BaseResponseGetMeResponse](docs/BaseResponseGetMeResponse.md)
- [BaseResponseGetPublicUserResponse](docs/BaseResponseGetPublicUserResponse.md)
- [BaseResponseGetUserResponse](docs/BaseResponseGetUserResponse.md)
- [BaseResponseListCollectionResults](docs/BaseResponseListCollectionResults.md)
- [BaseResponseListCommentResponse](docs/BaseResponseListCommentResponse.md)
- [BaseResponseListDieMatch](docs/BaseResponseListDieMatch.md)
Expand Down Expand Up @@ -380,8 +380,8 @@ Class | Method | HTTP request | Description
- [GenerationStatusList](docs/GenerationStatusList.md)
- [GetAiDecompilationRatingResponse](docs/GetAiDecompilationRatingResponse.md)
- [GetAiDecompilationTask](docs/GetAiDecompilationTask.md)
- [GetMeResponse](docs/GetMeResponse.md)
- [GetPublicUserResponse](docs/GetPublicUserResponse.md)
- [GetUserResponse](docs/GetUserResponse.md)
- [GlobalVariable](docs/GlobalVariable.md)
- [ISA](docs/ISA.md)
- [IconModel](docs/IconModel.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 = '2.70.0'
version = '2.74.0'



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

coordinates("ai.reveng", "sdk", "2.70.0")
coordinates("ai.reveng", "sdk", "2.74.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 := "2.70.0",
version := "2.74.0",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
1 change: 1 addition & 0 deletions docs/AnalysisFunctionMatchingRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
|**pageSize** | **Integer** | Number of functions to return per page, default is 0 (all functions), max is 1000 | [optional] |
|**statusOnly** | **Boolean** | If set to true, only returns the status of the matching operation without the actual results | [optional] |
|**noCache** | **Boolean** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] |
|**useCanonicalNames** | **Boolean** | Whether to use canonical function names during function matching for confidence results, default is False | [optional] |



6 changes: 3 additions & 3 deletions docs/AuthenticationUsersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ All URIs are relative to *https://api.reveng.ai*

<a id="getRequesterUserInfo"></a>
# **getRequesterUserInfo**
> BaseResponseGetUserResponse getRequesterUserInfo()
> BaseResponseGetMeResponse getRequesterUserInfo()

Get the requesters user information

Expand All @@ -40,7 +40,7 @@ public class Example {

AuthenticationUsersApi apiInstance = new AuthenticationUsersApi(defaultClient);
try {
BaseResponseGetUserResponse result = apiInstance.getRequesterUserInfo();
BaseResponseGetMeResponse result = apiInstance.getRequesterUserInfo();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthenticationUsersApi#getRequesterUserInfo");
Expand All @@ -58,7 +58,7 @@ This endpoint does not need any parameter.

### Return type

[**BaseResponseGetUserResponse**](BaseResponseGetUserResponse.md)
[**BaseResponseGetMeResponse**](BaseResponseGetMeResponse.md)

### Authorization

Expand Down
1 change: 1 addition & 0 deletions docs/AutoUnstripRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
|**minGroupSize** | **Integer** | Minimum number of matching functions required to consider for a match, default is 10 | [optional] |
|**statusOnly** | **Boolean** | If set to true, only returns the status of the auto-unstrip operation without the actual results | [optional] |
|**noCache** | **Boolean** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] |
|**useCanonicalNames** | **Boolean** | Whether to use canonical function names during matching for auto-unstrip, default is False | [optional] |



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


# BaseResponseGetUserResponse
# BaseResponseGetMeResponse


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**status** | **Boolean** | Response status on whether the request succeeded | [optional] |
|**data** | [**GetUserResponse**](GetUserResponse.md) | | [optional] |
|**data** | [**GetMeResponse**](GetMeResponse.md) | | [optional] |
|**message** | **String** | | [optional] |
|**errors** | [**List&lt;ErrorModel&gt;**](ErrorModel.md) | | [optional] |
|**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] |
Expand Down
1 change: 1 addition & 0 deletions docs/FunctionMatchingRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
|**pageSize** | **Integer** | Number of functions to return per page, default is 0 (all functions), max is 1000 | [optional] |
|**statusOnly** | **Boolean** | If set to true, only returns the status of the matching operation without the actual results | [optional] |
|**noCache** | **Boolean** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] |
|**useCanonicalNames** | **Boolean** | Whether to use canonical function names during function matching for confidence results, default is False | [optional] |



14 changes: 13 additions & 1 deletion docs/GetUserResponse.md β†’ docs/GetMeResponse.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


# GetUserResponse
# GetMeResponse


## Properties
Expand All @@ -14,6 +14,18 @@
|**email** | **String** | | |
|**creation** | **OffsetDateTime** | | |
|**tutorialSeen** | **Boolean** | | |
|**role** | [**RoleEnum**](#RoleEnum) | | |



## Enum: RoleEnum

| Name | Value |
|---- | -----|
| USER | &quot;USER&quot; |
| ADMIN | &quot;ADMIN&quot; |
| SUPERADMIN | &quot;SUPERADMIN&quot; |
| SYSTEM | &quot;SYSTEM&quot; |



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


import ai.reveng.model.BaseResponse;
import ai.reveng.model.BaseResponseGetMeResponse;
import ai.reveng.model.BaseResponseGetPublicUserResponse;
import ai.reveng.model.BaseResponseGetUserResponse;
import ai.reveng.model.BaseResponseListCommentResponse;
import ai.reveng.model.BaseResponseListUserActivityResponse;
import ai.reveng.model.BaseResponseLoginResponse;
Expand Down Expand Up @@ -143,7 +143,7 @@ private okhttp3.Call getRequesterUserInfoValidateBeforeCall(final ApiCallback _c
/**
* Get the requesters user information
*
* @return BaseResponseGetUserResponse
* @return BaseResponseGetMeResponse
* @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 @@ -153,15 +153,15 @@ private okhttp3.Call getRequesterUserInfoValidateBeforeCall(final ApiCallback _c
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
</table>
*/
public BaseResponseGetUserResponse getRequesterUserInfo() throws ApiException {
ApiResponse<BaseResponseGetUserResponse> localVarResp = getRequesterUserInfoWithHttpInfo();
public BaseResponseGetMeResponse getRequesterUserInfo() throws ApiException {
ApiResponse<BaseResponseGetMeResponse> localVarResp = getRequesterUserInfoWithHttpInfo();
return localVarResp.getData();
}

/**
* Get the requesters user information
*
* @return ApiResponse&lt;BaseResponseGetUserResponse&gt;
* @return ApiResponse&lt;BaseResponseGetMeResponse&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 @@ -171,9 +171,9 @@ public BaseResponseGetUserResponse getRequesterUserInfo() throws ApiException {
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
</table>
*/
public ApiResponse<BaseResponseGetUserResponse> getRequesterUserInfoWithHttpInfo() throws ApiException {
public ApiResponse<BaseResponseGetMeResponse> getRequesterUserInfoWithHttpInfo() throws ApiException {
okhttp3.Call localVarCall = getRequesterUserInfoValidateBeforeCall(null);
Type localVarReturnType = new TypeToken<BaseResponseGetUserResponse>(){}.getType();
Type localVarReturnType = new TypeToken<BaseResponseGetMeResponse>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}

Expand All @@ -191,10 +191,10 @@ public ApiResponse<BaseResponseGetUserResponse> getRequesterUserInfoWithHttpInfo
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
</table>
*/
public okhttp3.Call getRequesterUserInfoAsync(final ApiCallback<BaseResponseGetUserResponse> _callback) throws ApiException {
public okhttp3.Call getRequesterUserInfoAsync(final ApiCallback<BaseResponseGetMeResponse> _callback) throws ApiException {

okhttp3.Call localVarCall = getRequesterUserInfoValidateBeforeCall(_callback);
Type localVarReturnType = new TypeToken<BaseResponseGetUserResponse>(){}.getType();
Type localVarReturnType = new TypeToken<BaseResponseGetMeResponse>(){}.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/2.70.0/java");
setUserAgent("OpenAPI-Generator/2.74.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 = "2.70.0";
public static final String VERSION = "2.74.0";

private static final AtomicReference<ApiClient> defaultApiClient = new AtomicReference<>();
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/ai/reveng/invoker/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.BaseResponseGenerationStatusList.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.BaseResponseGetAiDecompilationRatingResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.BaseResponseGetAiDecompilationTask.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.BaseResponseGetMeResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.BaseResponseGetPublicUserResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.BaseResponseGetUserResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.BaseResponseListCollectionResults.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.BaseResponseListCommentResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.BaseResponseListDieMatch.CustomTypeAdapterFactory());
Expand Down Expand Up @@ -284,8 +284,8 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.GenerationStatusList.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.GetAiDecompilationRatingResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.GetAiDecompilationTask.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.GetMeResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.GetPublicUserResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.GetUserResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.GlobalVariable.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.IconModel.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.ImportModel.CustomTypeAdapterFactory());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ public class AnalysisFunctionMatchingRequest {
@javax.annotation.Nullable
private Boolean noCache = false;

public static final String SERIALIZED_NAME_USE_CANONICAL_NAMES = "use_canonical_names";
@Deprecated
@SerializedName(SERIALIZED_NAME_USE_CANONICAL_NAMES)
@javax.annotation.Nullable
private Boolean useCanonicalNames = false;

public AnalysisFunctionMatchingRequest() {
}

Expand Down Expand Up @@ -246,6 +252,29 @@ public void setNoCache(@javax.annotation.Nullable Boolean noCache) {
this.noCache = noCache;
}


@Deprecated
public AnalysisFunctionMatchingRequest useCanonicalNames(@javax.annotation.Nullable Boolean useCanonicalNames) {
this.useCanonicalNames = useCanonicalNames;
return this;
}

/**
* Whether to use canonical function names during function matching for confidence results, default is False
* @return useCanonicalNames
* @deprecated
*/
@Deprecated
@javax.annotation.Nullable
public Boolean getUseCanonicalNames() {
return useCanonicalNames;
}

@Deprecated
public void setUseCanonicalNames(@javax.annotation.Nullable Boolean useCanonicalNames) {
this.useCanonicalNames = useCanonicalNames;
}

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
Expand Down Expand Up @@ -307,7 +336,8 @@ public boolean equals(Object o) {
Objects.equals(this.page, analysisFunctionMatchingRequest.page) &&
Objects.equals(this.pageSize, analysisFunctionMatchingRequest.pageSize) &&
Objects.equals(this.statusOnly, analysisFunctionMatchingRequest.statusOnly) &&
Objects.equals(this.noCache, analysisFunctionMatchingRequest.noCache)&&
Objects.equals(this.noCache, analysisFunctionMatchingRequest.noCache) &&
Objects.equals(this.useCanonicalNames, analysisFunctionMatchingRequest.useCanonicalNames)&&
Objects.equals(this.additionalProperties, analysisFunctionMatchingRequest.additionalProperties);
}

Expand All @@ -317,7 +347,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)

@Override
public int hashCode() {
return Objects.hash(minSimilarity, filters, resultsPerFunction, page, pageSize, statusOnly, noCache, additionalProperties);
return Objects.hash(minSimilarity, filters, resultsPerFunction, page, pageSize, statusOnly, noCache, useCanonicalNames, additionalProperties);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
Expand All @@ -338,6 +368,7 @@ public String toString() {
sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n");
sb.append(" statusOnly: ").append(toIndentedString(statusOnly)).append("\n");
sb.append(" noCache: ").append(toIndentedString(noCache)).append("\n");
sb.append(" useCanonicalNames: ").append(toIndentedString(useCanonicalNames)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
Expand All @@ -360,7 +391,7 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(Arrays.asList("min_similarity", "filters", "results_per_function", "page", "page_size", "status_only", "no_cache"));
openapiFields = new HashSet<String>(Arrays.asList("min_similarity", "filters", "results_per_function", "page", "page_size", "status_only", "no_cache", "use_canonical_names"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(0);
Expand Down
Loading