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.43.0
v2.46.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.43.0</version>
<version>2.46.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:2.43.0"
implementation "ai.reveng:sdk:2.46.0"
}
```

Expand Down Expand Up @@ -356,10 +356,10 @@ Class | Method | HTTP request | Description
- [FunctionLocalVariableResponse](docs/FunctionLocalVariableResponse.md)
- [FunctionMapping](docs/FunctionMapping.md)
- [FunctionMappingFull](docs/FunctionMappingFull.md)
- [FunctionMatchingBatchResponse](docs/FunctionMatchingBatchResponse.md)
- [FunctionMatch](docs/FunctionMatch.md)
- [FunctionMatchingFilters](docs/FunctionMatchingFilters.md)
- [FunctionMatchingRequest](docs/FunctionMatchingRequest.md)
- [FunctionMatchingResultWithBestMatch](docs/FunctionMatchingResultWithBestMatch.md)
- [FunctionMatchingResponse](docs/FunctionMatchingResponse.md)
- [FunctionNameHistory](docs/FunctionNameHistory.md)
- [FunctionParamResponse](docs/FunctionParamResponse.md)
- [FunctionRename](docs/FunctionRename.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.43.0'
version = '2.46.0'



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

coordinates("ai.reveng", "sdk", "2.43.0")
coordinates("ai.reveng", "sdk", "2.46.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.43.0",
version := "2.46.0",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


# FunctionMatchingResultWithBestMatch
# FunctionMatch


## Properties
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


# FunctionMatchingBatchResponse
# FunctionMatchingResponse


## Properties
Expand All @@ -13,7 +13,10 @@
|**errorMessage** | **String** | | [optional] |
|**currentPage** | **Integer** | | [optional] |
|**totalPages** | **Integer** | | [optional] |
|**matches** | [**List&lt;FunctionMatchingResultWithBestMatch&gt;**](FunctionMatchingResultWithBestMatch.md) | | [optional] |
|**matches** | [**List&lt;FunctionMatch&gt;**](FunctionMatch.md) | | [optional] |
|**numMatches** | **Integer** | | [optional] |
|**numDebugMatches** | **Integer** | | [optional] |
|**updatedAt** | **String** | | [optional] |



12 changes: 6 additions & 6 deletions docs/FunctionsCoreApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public class Example {

<a id="analysisFunctionMatching"></a>
# **analysisFunctionMatching**
> FunctionMatchingBatchResponse analysisFunctionMatching(analysisId, analysisFunctionMatchingRequest)
> FunctionMatchingResponse analysisFunctionMatching(analysisId, analysisFunctionMatchingRequest)

Perform matching for the functions of an analysis

Expand Down Expand Up @@ -123,7 +123,7 @@ public class Example {
Integer analysisId = 56; // Integer |
AnalysisFunctionMatchingRequest analysisFunctionMatchingRequest = new AnalysisFunctionMatchingRequest(); // AnalysisFunctionMatchingRequest |
try {
FunctionMatchingBatchResponse result = apiInstance.analysisFunctionMatching(analysisId, analysisFunctionMatchingRequest);
FunctionMatchingResponse result = apiInstance.analysisFunctionMatching(analysisId, analysisFunctionMatchingRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FunctionsCoreApi#analysisFunctionMatching");
Expand All @@ -145,7 +145,7 @@ public class Example {

### Return type

[**FunctionMatchingBatchResponse**](FunctionMatchingBatchResponse.md)
[**FunctionMatchingResponse**](FunctionMatchingResponse.md)

### Authorization

Expand Down Expand Up @@ -236,7 +236,7 @@ public class Example {

<a id="batchFunctionMatching"></a>
# **batchFunctionMatching**
> FunctionMatchingBatchResponse batchFunctionMatching(functionMatchingRequest)
> FunctionMatchingResponse batchFunctionMatching(functionMatchingRequest)

Perform function matching for an arbitrary batch of functions, binaries or collections

Expand Down Expand Up @@ -266,7 +266,7 @@ public class Example {
FunctionsCoreApi apiInstance = new FunctionsCoreApi(defaultClient);
FunctionMatchingRequest functionMatchingRequest = new FunctionMatchingRequest(); // FunctionMatchingRequest |
try {
FunctionMatchingBatchResponse result = apiInstance.batchFunctionMatching(functionMatchingRequest);
FunctionMatchingResponse result = apiInstance.batchFunctionMatching(functionMatchingRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FunctionsCoreApi#batchFunctionMatching");
Expand All @@ -287,7 +287,7 @@ public class Example {

### Return type

[**FunctionMatchingBatchResponse**](FunctionMatchingBatchResponse.md)
[**FunctionMatchingResponse**](FunctionMatchingResponse.md)

### Authorization

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

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**username** | **String** | User&#39;s username | |
|**username** | **String** | User&#39;s username or email | |
|**password** | **String** | User&#39;s password | |


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>2.43.0</version>
<version>2.46.0</version>
<url>https://github.com/RevEngAI/sdk-java</url>
<description>Java SDK for the RevEng.AI API</description>
<scm>
Expand Down
34 changes: 17 additions & 17 deletions src/main/java/ai/reveng/api/FunctionsCoreApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
import ai.reveng.model.BaseResponseFunctionCapabilityResponse;
import ai.reveng.model.BaseResponseFunctionStringsResponse;
import ai.reveng.model.BaseResponseFunctionsDetailResponse;
import ai.reveng.model.FunctionMatchingBatchResponse;
import ai.reveng.model.FunctionMatchingRequest;
import ai.reveng.model.FunctionMatchingResponse;

import java.lang.reflect.Type;
import java.util.ArrayList;
Expand Down Expand Up @@ -306,7 +306,7 @@ private okhttp3.Call analysisFunctionMatchingValidateBeforeCall(@javax.annotatio
* Takes in an analysis id and settings and matches the nearest functions to the ones associated with it. Results can optionally be filtered by collection, binary, debug type or (other) function ids
* @param analysisId (required)
* @param analysisFunctionMatchingRequest (required)
* @return FunctionMatchingBatchResponse
* @return FunctionMatchingResponse
* @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 @@ -316,8 +316,8 @@ private okhttp3.Call analysisFunctionMatchingValidateBeforeCall(@javax.annotatio
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
</table>
*/
public FunctionMatchingBatchResponse analysisFunctionMatching(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisFunctionMatchingRequest analysisFunctionMatchingRequest) throws ApiException {
ApiResponse<FunctionMatchingBatchResponse> localVarResp = analysisFunctionMatchingWithHttpInfo(analysisId, analysisFunctionMatchingRequest);
public FunctionMatchingResponse analysisFunctionMatching(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisFunctionMatchingRequest analysisFunctionMatchingRequest) throws ApiException {
ApiResponse<FunctionMatchingResponse> localVarResp = analysisFunctionMatchingWithHttpInfo(analysisId, analysisFunctionMatchingRequest);
return localVarResp.getData();
}

Expand All @@ -326,7 +326,7 @@ public FunctionMatchingBatchResponse analysisFunctionMatching(@javax.annotation.
* Takes in an analysis id and settings and matches the nearest functions to the ones associated with it. Results can optionally be filtered by collection, binary, debug type or (other) function ids
* @param analysisId (required)
* @param analysisFunctionMatchingRequest (required)
* @return ApiResponse&lt;FunctionMatchingBatchResponse&gt;
* @return ApiResponse&lt;FunctionMatchingResponse&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 @@ -336,9 +336,9 @@ public FunctionMatchingBatchResponse analysisFunctionMatching(@javax.annotation.
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
</table>
*/
public ApiResponse<FunctionMatchingBatchResponse> analysisFunctionMatchingWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisFunctionMatchingRequest analysisFunctionMatchingRequest) throws ApiException {
public ApiResponse<FunctionMatchingResponse> analysisFunctionMatchingWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisFunctionMatchingRequest analysisFunctionMatchingRequest) throws ApiException {
okhttp3.Call localVarCall = analysisFunctionMatchingValidateBeforeCall(analysisId, analysisFunctionMatchingRequest, null);
Type localVarReturnType = new TypeToken<FunctionMatchingBatchResponse>(){}.getType();
Type localVarReturnType = new TypeToken<FunctionMatchingResponse>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}

Expand All @@ -358,10 +358,10 @@ public ApiResponse<FunctionMatchingBatchResponse> analysisFunctionMatchingWithHt
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
</table>
*/
public okhttp3.Call analysisFunctionMatchingAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisFunctionMatchingRequest analysisFunctionMatchingRequest, final ApiCallback<FunctionMatchingBatchResponse> _callback) throws ApiException {
public okhttp3.Call analysisFunctionMatchingAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisFunctionMatchingRequest analysisFunctionMatchingRequest, final ApiCallback<FunctionMatchingResponse> _callback) throws ApiException {

okhttp3.Call localVarCall = analysisFunctionMatchingValidateBeforeCall(analysisId, analysisFunctionMatchingRequest, _callback);
Type localVarReturnType = new TypeToken<FunctionMatchingBatchResponse>(){}.getType();
Type localVarReturnType = new TypeToken<FunctionMatchingResponse>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
Expand Down Expand Up @@ -580,7 +580,7 @@ private okhttp3.Call batchFunctionMatchingValidateBeforeCall(@javax.annotation.N
* Perform function matching for an arbitrary batch of functions, binaries or collections
* Takes in an input of functions ID&#39;s and settings and finds the nearest functions for each function that&#39;s within the system
* @param functionMatchingRequest (required)
* @return FunctionMatchingBatchResponse
* @return FunctionMatchingResponse
* @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 @@ -590,16 +590,16 @@ private okhttp3.Call batchFunctionMatchingValidateBeforeCall(@javax.annotation.N
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
</table>
*/
public FunctionMatchingBatchResponse batchFunctionMatching(@javax.annotation.Nonnull FunctionMatchingRequest functionMatchingRequest) throws ApiException {
ApiResponse<FunctionMatchingBatchResponse> localVarResp = batchFunctionMatchingWithHttpInfo(functionMatchingRequest);
public FunctionMatchingResponse batchFunctionMatching(@javax.annotation.Nonnull FunctionMatchingRequest functionMatchingRequest) throws ApiException {
ApiResponse<FunctionMatchingResponse> localVarResp = batchFunctionMatchingWithHttpInfo(functionMatchingRequest);
return localVarResp.getData();
}

/**
* Perform function matching for an arbitrary batch of functions, binaries or collections
* Takes in an input of functions ID&#39;s and settings and finds the nearest functions for each function that&#39;s within the system
* @param functionMatchingRequest (required)
* @return ApiResponse&lt;FunctionMatchingBatchResponse&gt;
* @return ApiResponse&lt;FunctionMatchingResponse&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 @@ -609,9 +609,9 @@ public FunctionMatchingBatchResponse batchFunctionMatching(@javax.annotation.Non
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
</table>
*/
public ApiResponse<FunctionMatchingBatchResponse> batchFunctionMatchingWithHttpInfo(@javax.annotation.Nonnull FunctionMatchingRequest functionMatchingRequest) throws ApiException {
public ApiResponse<FunctionMatchingResponse> batchFunctionMatchingWithHttpInfo(@javax.annotation.Nonnull FunctionMatchingRequest functionMatchingRequest) throws ApiException {
okhttp3.Call localVarCall = batchFunctionMatchingValidateBeforeCall(functionMatchingRequest, null);
Type localVarReturnType = new TypeToken<FunctionMatchingBatchResponse>(){}.getType();
Type localVarReturnType = new TypeToken<FunctionMatchingResponse>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}

Expand All @@ -630,10 +630,10 @@ public ApiResponse<FunctionMatchingBatchResponse> batchFunctionMatchingWithHttpI
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
</table>
*/
public okhttp3.Call batchFunctionMatchingAsync(@javax.annotation.Nonnull FunctionMatchingRequest functionMatchingRequest, final ApiCallback<FunctionMatchingBatchResponse> _callback) throws ApiException {
public okhttp3.Call batchFunctionMatchingAsync(@javax.annotation.Nonnull FunctionMatchingRequest functionMatchingRequest, final ApiCallback<FunctionMatchingResponse> _callback) throws ApiException {

okhttp3.Call localVarCall = batchFunctionMatchingValidateBeforeCall(functionMatchingRequest, _callback);
Type localVarReturnType = new TypeToken<FunctionMatchingBatchResponse>(){}.getType();
Type localVarReturnType = new TypeToken<FunctionMatchingResponse>(){}.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.43.0/java");
setUserAgent("OpenAPI-Generator/2.46.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.43.0";
public static final String VERSION = "2.46.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 @@ -260,10 +260,10 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.FunctionLocalVariableResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.FunctionMapping.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.FunctionMappingFull.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.FunctionMatchingBatchResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.FunctionMatch.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.FunctionMatchingFilters.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.FunctionMatchingRequest.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.FunctionMatchingResultWithBestMatch.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.FunctionMatchingResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.FunctionNameHistory.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.FunctionParamResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.FunctionRename.CustomTypeAdapterFactory());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,19 @@ public class AnalysisFunctionMatchingRequest {
private Integer resultsPerFunction = 1;

public static final String SERIALIZED_NAME_PAGE = "page";
@Deprecated
@SerializedName(SERIALIZED_NAME_PAGE)
@javax.annotation.Nullable
private Integer page = 1;

public static final String SERIALIZED_NAME_PAGE_SIZE = "page_size";
@Deprecated
@SerializedName(SERIALIZED_NAME_PAGE_SIZE)
@javax.annotation.Nullable
private Integer pageSize = 0;

public static final String SERIALIZED_NAME_STATUS_ONLY = "status_only";
@Deprecated
@SerializedName(SERIALIZED_NAME_STATUS_ONLY)
@javax.annotation.Nullable
private Boolean statusOnly = false;
Expand Down Expand Up @@ -153,6 +156,7 @@ public void setResultsPerFunction(@javax.annotation.Nullable Integer resultsPerF
}


@Deprecated
public AnalysisFunctionMatchingRequest page(@javax.annotation.Nullable Integer page) {
this.page = page;
return this;
Expand All @@ -162,17 +166,21 @@ public AnalysisFunctionMatchingRequest page(@javax.annotation.Nullable Integer p
* Page number for paginated results, default is 1 (first page)
* minimum: 1
* @return page
* @deprecated
*/
@Deprecated
@javax.annotation.Nullable
public Integer getPage() {
return page;
}

@Deprecated
public void setPage(@javax.annotation.Nullable Integer page) {
this.page = page;
}


@Deprecated
public AnalysisFunctionMatchingRequest pageSize(@javax.annotation.Nullable Integer pageSize) {
this.pageSize = pageSize;
return this;
Expand All @@ -183,17 +191,21 @@ public AnalysisFunctionMatchingRequest pageSize(@javax.annotation.Nullable Integ
* minimum: 0
* maximum: 1000
* @return pageSize
* @deprecated
*/
@Deprecated
@javax.annotation.Nullable
public Integer getPageSize() {
return pageSize;
}

@Deprecated
public void setPageSize(@javax.annotation.Nullable Integer pageSize) {
this.pageSize = pageSize;
}


@Deprecated
public AnalysisFunctionMatchingRequest statusOnly(@javax.annotation.Nullable Boolean statusOnly) {
this.statusOnly = statusOnly;
return this;
Expand All @@ -202,12 +214,15 @@ public AnalysisFunctionMatchingRequest statusOnly(@javax.annotation.Nullable Boo
/**
* If set to true, only returns the status of the matching operation without the actual results
* @return statusOnly
* @deprecated
*/
@Deprecated
@javax.annotation.Nullable
public Boolean getStatusOnly() {
return statusOnly;
}

@Deprecated
public void setStatusOnly(@javax.annotation.Nullable Boolean statusOnly) {
this.statusOnly = statusOnly;
}
Expand Down
Loading