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.22.2
v3.23.1
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.22.2</version>
<version>3.23.1</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:3.22.2"
implementation "ai.reveng:sdk:3.23.1"
}
```

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.22.2'
version = '3.23.1'



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

coordinates("ai.reveng", "sdk", "3.22.2")
coordinates("ai.reveng", "sdk", "3.23.1")

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.22.2",
version := "3.23.1",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
8 changes: 6 additions & 2 deletions docs/FunctionsCoreApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ public class Example {

<a id="getAnalysisStrings"></a>
# **getAnalysisStrings**
> BaseResponseAnalysisStringsResponse getAnalysisStrings(analysisId, page, pageSize, search, functionSearch)
> BaseResponseAnalysisStringsResponse getAnalysisStrings(analysisId, page, pageSize, search, functionSearch, orderBy, sortOrder)

Get string information found in the Analysis

Expand Down Expand Up @@ -480,8 +480,10 @@ public class Example {
Integer pageSize = 100; // Integer | Number of items per page.
String search = "search_example"; // String | Search is applied to string value
String functionSearch = "functionSearch_example"; // String | Search is applied to function names
String orderBy = "length"; // String | Order by field
String sortOrder = "ASC"; // String | Sort order for the results
try {
BaseResponseAnalysisStringsResponse result = apiInstance.getAnalysisStrings(analysisId, page, pageSize, search, functionSearch);
BaseResponseAnalysisStringsResponse result = apiInstance.getAnalysisStrings(analysisId, page, pageSize, search, functionSearch, orderBy, sortOrder);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FunctionsCoreApi#getAnalysisStrings");
Expand All @@ -503,6 +505,8 @@ public class Example {
| **pageSize** | **Integer**| Number of items per page. | [optional] [default to 100] |
| **search** | **String**| Search is applied to string value | [optional] |
| **functionSearch** | **String**| Search is applied to function names | [optional] |
| **orderBy** | **String**| Order by field | [optional] [default to value] [enum: length, value] |
| **sortOrder** | **String**| Sort order for the results | [optional] [default to ASC] [enum: ASC, DESC] |

### 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.22.2</version>
<version>3.23.1</version>
<url>https://github.com/RevEngAI/sdk-java</url>
<description>Java SDK for the RevEng.AI API</description>
<scm>
Expand Down
34 changes: 25 additions & 9 deletions src/main/java/ai/reveng/api/FunctionsCoreApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,8 @@ public okhttp3.Call cancelAutoUnstripAsync(@javax.annotation.Nonnull Integer ana
* @param pageSize Number of items per page. (optional, default to 100)
* @param search Search is applied to string value (optional)
* @param functionSearch Search is applied to function names (optional)
* @param orderBy Order by field (optional, default to value)
* @param sortOrder Sort order for the results (optional, default to ASC)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
Expand All @@ -918,7 +920,7 @@ public okhttp3.Call cancelAutoUnstripAsync(@javax.annotation.Nonnull Integer ana
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
</table>
*/
public okhttp3.Call getAnalysisStringsCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String functionSearch, final ApiCallback _callback) throws ApiException {
public okhttp3.Call getAnalysisStringsCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String functionSearch, @javax.annotation.Nullable String orderBy, @javax.annotation.Nullable String sortOrder, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
Expand Down Expand Up @@ -960,6 +962,14 @@ public okhttp3.Call getAnalysisStringsCall(@javax.annotation.Nonnull Integer ana
localVarQueryParams.addAll(localVarApiClient.parameterToPair("function_search", functionSearch));
}

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

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

final String[] localVarAccepts = {
"application/json"
};
Expand All @@ -980,13 +990,13 @@ public okhttp3.Call getAnalysisStringsCall(@javax.annotation.Nonnull Integer ana
}

@SuppressWarnings("rawtypes")
private okhttp3.Call getAnalysisStringsValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String functionSearch, final ApiCallback _callback) throws ApiException {
private okhttp3.Call getAnalysisStringsValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String functionSearch, @javax.annotation.Nullable String orderBy, @javax.annotation.Nullable String sortOrder, 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 getAnalysisStrings(Async)");
}

return getAnalysisStringsCall(analysisId, page, pageSize, search, functionSearch, _callback);
return getAnalysisStringsCall(analysisId, page, pageSize, search, functionSearch, orderBy, sortOrder, _callback);

}

Expand All @@ -998,6 +1008,8 @@ private okhttp3.Call getAnalysisStringsValidateBeforeCall(@javax.annotation.Nonn
* @param pageSize Number of items per page. (optional, default to 100)
* @param search Search is applied to string value (optional)
* @param functionSearch Search is applied to function names (optional)
* @param orderBy Order by field (optional, default to value)
* @param sortOrder Sort order for the results (optional, default to ASC)
* @return BaseResponseAnalysisStringsResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Expand All @@ -1008,8 +1020,8 @@ private okhttp3.Call getAnalysisStringsValidateBeforeCall(@javax.annotation.Nonn
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
</table>
*/
public BaseResponseAnalysisStringsResponse getAnalysisStrings(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String functionSearch) throws ApiException {
ApiResponse<BaseResponseAnalysisStringsResponse> localVarResp = getAnalysisStringsWithHttpInfo(analysisId, page, pageSize, search, functionSearch);
public BaseResponseAnalysisStringsResponse getAnalysisStrings(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String functionSearch, @javax.annotation.Nullable String orderBy, @javax.annotation.Nullable String sortOrder) throws ApiException {
ApiResponse<BaseResponseAnalysisStringsResponse> localVarResp = getAnalysisStringsWithHttpInfo(analysisId, page, pageSize, search, functionSearch, orderBy, sortOrder);
return localVarResp.getData();
}

Expand All @@ -1021,6 +1033,8 @@ public BaseResponseAnalysisStringsResponse getAnalysisStrings(@javax.annotation.
* @param pageSize Number of items per page. (optional, default to 100)
* @param search Search is applied to string value (optional)
* @param functionSearch Search is applied to function names (optional)
* @param orderBy Order by field (optional, default to value)
* @param sortOrder Sort order for the results (optional, default to ASC)
* @return ApiResponse&lt;BaseResponseAnalysisStringsResponse&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Expand All @@ -1031,8 +1045,8 @@ public BaseResponseAnalysisStringsResponse getAnalysisStrings(@javax.annotation.
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
</table>
*/
public ApiResponse<BaseResponseAnalysisStringsResponse> getAnalysisStringsWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String functionSearch) throws ApiException {
okhttp3.Call localVarCall = getAnalysisStringsValidateBeforeCall(analysisId, page, pageSize, search, functionSearch, null);
public ApiResponse<BaseResponseAnalysisStringsResponse> getAnalysisStringsWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String functionSearch, @javax.annotation.Nullable String orderBy, @javax.annotation.Nullable String sortOrder) throws ApiException {
okhttp3.Call localVarCall = getAnalysisStringsValidateBeforeCall(analysisId, page, pageSize, search, functionSearch, orderBy, sortOrder, null);
Type localVarReturnType = new TypeToken<BaseResponseAnalysisStringsResponse>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
Expand All @@ -1045,6 +1059,8 @@ public ApiResponse<BaseResponseAnalysisStringsResponse> getAnalysisStringsWithHt
* @param pageSize Number of items per page. (optional, default to 100)
* @param search Search is applied to string value (optional)
* @param functionSearch Search is applied to function names (optional)
* @param orderBy Order by field (optional, default to value)
* @param sortOrder Sort order for the results (optional, default to ASC)
* @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 @@ -1056,9 +1072,9 @@ public ApiResponse<BaseResponseAnalysisStringsResponse> getAnalysisStringsWithHt
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
</table>
*/
public okhttp3.Call getAnalysisStringsAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String functionSearch, final ApiCallback<BaseResponseAnalysisStringsResponse> _callback) throws ApiException {
public okhttp3.Call getAnalysisStringsAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String functionSearch, @javax.annotation.Nullable String orderBy, @javax.annotation.Nullable String sortOrder, final ApiCallback<BaseResponseAnalysisStringsResponse> _callback) throws ApiException {

okhttp3.Call localVarCall = getAnalysisStringsValidateBeforeCall(analysisId, page, pageSize, search, functionSearch, _callback);
okhttp3.Call localVarCall = getAnalysisStringsValidateBeforeCall(analysisId, page, pageSize, search, functionSearch, orderBy, sortOrder, _callback);
Type localVarReturnType = new TypeToken<BaseResponseAnalysisStringsResponse>(){}.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.22.2/java");
setUserAgent("OpenAPI-Generator/3.23.1/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.22.2";
public static final String VERSION = "3.23.1";

private static final AtomicReference<ApiClient> defaultApiClient = new AtomicReference<>();
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;
Expand Down
4 changes: 3 additions & 1 deletion src/test/java/ai/reveng/api/FunctionsCoreApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ public void getAnalysisStringsTest() throws ApiException {
Integer pageSize = null;
String search = null;
String functionSearch = null;
BaseResponseAnalysisStringsResponse response = api.getAnalysisStrings(analysisId, page, pageSize, search, functionSearch);
String orderBy = null;
String sortOrder = null;
BaseResponseAnalysisStringsResponse response = api.getAnalysisStrings(analysisId, page, pageSize, search, functionSearch, orderBy, sortOrder);
// TODO: test validations
}

Expand Down