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.4.0
v3.6.0
4 changes: 2 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.4.0</version>
<version>3.6.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:3.4.0"
implementation "ai.reveng:sdk:3.6.0"
}
```

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.4.0'
version = '3.6.0'



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

coordinates("ai.reveng", "sdk", "3.4.0")
coordinates("ai.reveng", "sdk", "3.6.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.4.0",
version := "3.6.0",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
10 changes: 8 additions & 2 deletions docs/AnalysesResultsMetadataApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public class Example {

<a id="getFunctionsList"></a>
# **getFunctionsList**
> BaseResponseAnalysisFunctions getFunctionsList(analysisId, searchTerm, minVAddr, maxVAddr)
> BaseResponseAnalysisFunctions getFunctionsList(analysisId, searchTerm, minVAddr, maxVAddr, includeEmbeddings, page, pageSize)

Gets functions from analysis

Expand Down Expand Up @@ -260,8 +260,11 @@ public class Example {
String searchTerm = "searchTerm_example"; // String |
Integer minVAddr = 56; // Integer |
Integer maxVAddr = 56; // Integer |
Boolean includeEmbeddings = true; // Boolean |
Integer page = 1; // Integer | The page number to retrieve.
Integer pageSize = 1000; // Integer | Number of items per page.
try {
BaseResponseAnalysisFunctions result = apiInstance.getFunctionsList(analysisId, searchTerm, minVAddr, maxVAddr);
BaseResponseAnalysisFunctions result = apiInstance.getFunctionsList(analysisId, searchTerm, minVAddr, maxVAddr, includeEmbeddings, page, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnalysesResultsMetadataApi#getFunctionsList");
Expand All @@ -282,6 +285,9 @@ public class Example {
| **searchTerm** | **String**| | [optional] |
| **minVAddr** | **Integer**| | [optional] |
| **maxVAddr** | **Integer**| | [optional] |
| **includeEmbeddings** | **Boolean**| | [optional] [default to true] |
| **page** | **Integer**| The page number to retrieve. | [optional] [default to 1] |
| **pageSize** | **Integer**| Number of items per page. | [optional] [default to 1000] |

### Return type

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.4.0</version>
<version>3.6.0</version>
<url>https://github.com/RevEngAI/sdk-java</url>
<description>Java SDK for the RevEng.AI API</description>
<scm>
Expand Down
42 changes: 33 additions & 9 deletions src/main/java/ai/reveng/api/AnalysesResultsMetadataApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,9 @@ public okhttp3.Call getCommunitiesAsync(@javax.annotation.Nonnull Integer analys
* @param searchTerm (optional)
* @param minVAddr (optional)
* @param maxVAddr (optional)
* @param includeEmbeddings (optional, default to true)
* @param page The page number to retrieve. (optional, default to 1)
* @param pageSize Number of items per page. (optional, default to 1000)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
Expand All @@ -514,7 +517,7 @@ public okhttp3.Call getCommunitiesAsync(@javax.annotation.Nonnull Integer analys
* @deprecated
*/
@Deprecated
public okhttp3.Call getFunctionsListCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr, final ApiCallback _callback) throws ApiException {
public okhttp3.Call getFunctionsListCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr, @javax.annotation.Nullable Boolean includeEmbeddings, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
Expand Down Expand Up @@ -552,6 +555,18 @@ public okhttp3.Call getFunctionsListCall(@javax.annotation.Nonnull Integer analy
localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_v_addr", maxVAddr));
}

if (includeEmbeddings != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("include_embeddings", includeEmbeddings));
}

if (page != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page));
}

if (pageSize != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("page_size", pageSize));
}

final String[] localVarAccepts = {
"application/json"
};
Expand All @@ -573,13 +588,13 @@ public okhttp3.Call getFunctionsListCall(@javax.annotation.Nonnull Integer analy

@Deprecated
@SuppressWarnings("rawtypes")
private okhttp3.Call getFunctionsListValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr, final ApiCallback _callback) throws ApiException {
private okhttp3.Call getFunctionsListValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr, @javax.annotation.Nullable Boolean includeEmbeddings, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'analysisId' is set
if (analysisId == null) {
throw new ApiException("Missing the required parameter 'analysisId' when calling getFunctionsList(Async)");
}

return getFunctionsListCall(analysisId, searchTerm, minVAddr, maxVAddr, _callback);
return getFunctionsListCall(analysisId, searchTerm, minVAddr, maxVAddr, includeEmbeddings, page, pageSize, _callback);

}

Expand All @@ -590,6 +605,9 @@ private okhttp3.Call getFunctionsListValidateBeforeCall(@javax.annotation.Nonnul
* @param searchTerm (optional)
* @param minVAddr (optional)
* @param maxVAddr (optional)
* @param includeEmbeddings (optional, default to true)
* @param page The page number to retrieve. (optional, default to 1)
* @param pageSize Number of items per page. (optional, default to 1000)
* @return BaseResponseAnalysisFunctions
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Expand All @@ -602,8 +620,8 @@ private okhttp3.Call getFunctionsListValidateBeforeCall(@javax.annotation.Nonnul
* @deprecated
*/
@Deprecated
public BaseResponseAnalysisFunctions getFunctionsList(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr) throws ApiException {
ApiResponse<BaseResponseAnalysisFunctions> localVarResp = getFunctionsListWithHttpInfo(analysisId, searchTerm, minVAddr, maxVAddr);
public BaseResponseAnalysisFunctions getFunctionsList(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr, @javax.annotation.Nullable Boolean includeEmbeddings, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException {
ApiResponse<BaseResponseAnalysisFunctions> localVarResp = getFunctionsListWithHttpInfo(analysisId, searchTerm, minVAddr, maxVAddr, includeEmbeddings, page, pageSize);
return localVarResp.getData();
}

Expand All @@ -614,6 +632,9 @@ public BaseResponseAnalysisFunctions getFunctionsList(@javax.annotation.Nonnull
* @param searchTerm (optional)
* @param minVAddr (optional)
* @param maxVAddr (optional)
* @param includeEmbeddings (optional, default to true)
* @param page The page number to retrieve. (optional, default to 1)
* @param pageSize Number of items per page. (optional, default to 1000)
* @return ApiResponse&lt;BaseResponseAnalysisFunctions&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Expand All @@ -626,8 +647,8 @@ public BaseResponseAnalysisFunctions getFunctionsList(@javax.annotation.Nonnull
* @deprecated
*/
@Deprecated
public ApiResponse<BaseResponseAnalysisFunctions> getFunctionsListWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr) throws ApiException {
okhttp3.Call localVarCall = getFunctionsListValidateBeforeCall(analysisId, searchTerm, minVAddr, maxVAddr, null);
public ApiResponse<BaseResponseAnalysisFunctions> getFunctionsListWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr, @javax.annotation.Nullable Boolean includeEmbeddings, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException {
okhttp3.Call localVarCall = getFunctionsListValidateBeforeCall(analysisId, searchTerm, minVAddr, maxVAddr, includeEmbeddings, page, pageSize, null);
Type localVarReturnType = new TypeToken<BaseResponseAnalysisFunctions>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
Expand All @@ -639,6 +660,9 @@ public ApiResponse<BaseResponseAnalysisFunctions> getFunctionsListWithHttpInfo(@
* @param searchTerm (optional)
* @param minVAddr (optional)
* @param maxVAddr (optional)
* @param includeEmbeddings (optional, default to true)
* @param page The page number to retrieve. (optional, default to 1)
* @param pageSize Number of items per page. (optional, default to 1000)
* @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 @@ -652,9 +676,9 @@ public ApiResponse<BaseResponseAnalysisFunctions> getFunctionsListWithHttpInfo(@
* @deprecated
*/
@Deprecated
public okhttp3.Call getFunctionsListAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr, final ApiCallback<BaseResponseAnalysisFunctions> _callback) throws ApiException {
public okhttp3.Call getFunctionsListAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr, @javax.annotation.Nullable Boolean includeEmbeddings, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback<BaseResponseAnalysisFunctions> _callback) throws ApiException {

okhttp3.Call localVarCall = getFunctionsListValidateBeforeCall(analysisId, searchTerm, minVAddr, maxVAddr, _callback);
okhttp3.Call localVarCall = getFunctionsListValidateBeforeCall(analysisId, searchTerm, minVAddr, maxVAddr, includeEmbeddings, page, pageSize, _callback);
Type localVarReturnType = new TypeToken<BaseResponseAnalysisFunctions>(){}.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.4.0/java");
setUserAgent("OpenAPI-Generator/3.6.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.4.0";
public static final String VERSION = "3.6.0";

private static final AtomicReference<ApiClient> defaultApiClient = new AtomicReference<>();
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ public void getFunctionsListTest() throws ApiException {
String searchTerm = null;
Integer minVAddr = null;
Integer maxVAddr = null;
BaseResponseAnalysisFunctions response = api.getFunctionsList(analysisId, searchTerm, minVAddr, maxVAddr);
Boolean includeEmbeddings = null;
Integer page = null;
Integer pageSize = null;
BaseResponseAnalysisFunctions response = api.getFunctionsList(analysisId, searchTerm, minVAddr, maxVAddr, includeEmbeddings, page, pageSize);
// TODO: test validations
}

Expand Down