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.86.0
v2.88.3
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>2.86.0</version>
<version>2.88.3</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:2.86.0"
implementation "ai.reveng:sdk:2.88.3"
}
```

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.86.0'
version = '2.88.3'



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

coordinates("ai.reveng", "sdk", "2.86.0")
coordinates("ai.reveng", "sdk", "2.88.3")

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.86.0",
version := "2.88.3",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
10 changes: 5 additions & 5 deletions docs/BinariesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ All URIs are relative to *https://api.reveng.ai*

<a id="downloadZippedBinary"></a>
# **downloadZippedBinary**
> Object downloadZippedBinary(binaryId)
> File downloadZippedBinary(binaryId)

Downloads a zipped binary with password protection

Expand Down Expand Up @@ -44,7 +44,7 @@ public class Example {
BinariesApi apiInstance = new BinariesApi(defaultClient);
Integer binaryId = 56; // Integer |
try {
Object result = apiInstance.downloadZippedBinary(binaryId);
File result = apiInstance.downloadZippedBinary(binaryId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BinariesApi#downloadZippedBinary");
Expand All @@ -65,7 +65,7 @@ public class Example {

### Return type

**Object**
[**File**](File.md)

### Authorization

Expand All @@ -74,12 +74,12 @@ public class Example {
### HTTP request headers

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

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Successful Response | - |
| **200** | Download file | - |
| **422** | Invalid request parameters | - |

<a id="getBinaryAdditionalDetails"></a>
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.86.0</version>
<version>2.88.3</version>
<url>https://github.com/RevEngAI/sdk-java</url>
<description>Java SDK for the RevEng.AI API</description>
<scm>
Expand Down
26 changes: 14 additions & 12 deletions src/main/java/ai/reveng/api/BinariesApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import ai.reveng.model.BaseResponseBinaryExternalsResponse;
import ai.reveng.model.BaseResponseChildBinariesResponse;
import ai.reveng.model.BaseResponseListDieMatch;
import java.io.File;

import java.lang.reflect.Type;
import java.util.ArrayList;
Expand Down Expand Up @@ -88,7 +89,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
<table border="1">
<caption>Response Details</caption>
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> Successful Response </td><td> - </td></tr>
<tr><td> 200 </td><td> Download file </td><td> - </td></tr>
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
</table>
*/
Expand Down Expand Up @@ -119,6 +120,7 @@ public okhttp3.Call downloadZippedBinaryCall(@javax.annotation.Nonnull Integer b
Map<String, Object> localVarFormParams = new HashMap<String, Object>();

final String[] localVarAccepts = {
"application/zip",
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
Expand Down Expand Up @@ -152,38 +154,38 @@ private okhttp3.Call downloadZippedBinaryValidateBeforeCall(@javax.annotation.No
* Downloads a zipped binary with password protection
*
* @param binaryId (required)
* @return Object
* @return File
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
<table border="1">
<caption>Response Details</caption>
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> Successful Response </td><td> - </td></tr>
<tr><td> 200 </td><td> Download file </td><td> - </td></tr>
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
</table>
*/
public Object downloadZippedBinary(@javax.annotation.Nonnull Integer binaryId) throws ApiException {
ApiResponse<Object> localVarResp = downloadZippedBinaryWithHttpInfo(binaryId);
public File downloadZippedBinary(@javax.annotation.Nonnull Integer binaryId) throws ApiException {
ApiResponse<File> localVarResp = downloadZippedBinaryWithHttpInfo(binaryId);
return localVarResp.getData();
}

/**
* Downloads a zipped binary with password protection
*
* @param binaryId (required)
* @return ApiResponse&lt;Object&gt;
* @return ApiResponse&lt;File&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">
<caption>Response Details</caption>
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> Successful Response </td><td> - </td></tr>
<tr><td> 200 </td><td> Download file </td><td> - </td></tr>
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
</table>
*/
public ApiResponse<Object> downloadZippedBinaryWithHttpInfo(@javax.annotation.Nonnull Integer binaryId) throws ApiException {
public ApiResponse<File> downloadZippedBinaryWithHttpInfo(@javax.annotation.Nonnull Integer binaryId) throws ApiException {
okhttp3.Call localVarCall = downloadZippedBinaryValidateBeforeCall(binaryId, null);
Type localVarReturnType = new TypeToken<Object>(){}.getType();
Type localVarReturnType = new TypeToken<File>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}

Expand All @@ -198,14 +200,14 @@ public ApiResponse<Object> downloadZippedBinaryWithHttpInfo(@javax.annotation.No
<table border="1">
<caption>Response Details</caption>
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> Successful Response </td><td> - </td></tr>
<tr><td> 200 </td><td> Download file </td><td> - </td></tr>
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
</table>
*/
public okhttp3.Call downloadZippedBinaryAsync(@javax.annotation.Nonnull Integer binaryId, final ApiCallback<Object> _callback) throws ApiException {
public okhttp3.Call downloadZippedBinaryAsync(@javax.annotation.Nonnull Integer binaryId, final ApiCallback<File> _callback) throws ApiException {

okhttp3.Call localVarCall = downloadZippedBinaryValidateBeforeCall(binaryId, _callback);
Type localVarReturnType = new TypeToken<Object>(){}.getType();
Type localVarReturnType = new TypeToken<File>(){}.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.86.0/java");
setUserAgent("OpenAPI-Generator/2.88.3/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.86.0";
public static final String VERSION = "2.88.3";

private static final AtomicReference<ApiClient> defaultApiClient = new AtomicReference<>();
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;
Expand Down
3 changes: 2 additions & 1 deletion src/test/java/ai/reveng/api/BinariesApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import ai.reveng.model.BaseResponseBinaryExternalsResponse;
import ai.reveng.model.BaseResponseChildBinariesResponse;
import ai.reveng.model.BaseResponseListDieMatch;
import java.io.File;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

Expand All @@ -45,7 +46,7 @@ public class BinariesApiTest {
@Test
public void downloadZippedBinaryTest() throws ApiException {
Integer binaryId = null;
Object response = api.downloadZippedBinary(binaryId);
File response = api.downloadZippedBinary(binaryId);
// TODO: test validations
}

Expand Down