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.72.0
v3.74.1
8 changes: 2 additions & 6 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.72.0</version>
<version>3.74.1</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:3.72.0"
implementation "ai.reveng:sdk:3.74.1"
}
```

Expand Down Expand Up @@ -127,7 +127,6 @@ Class | Method | HTTP request | Description
*AuthenticationUsersApi* | [**getUser**](docs/AuthenticationUsersApi.md#getUser) | **GET** /v2/users/{user_id} | Get a user&#39;s public information
*AuthenticationUsersApi* | [**getUserActivity**](docs/AuthenticationUsersApi.md#getUserActivity) | **GET** /v2/users/activity | Get auth user activity
*AuthenticationUsersApi* | [**getUserComments**](docs/AuthenticationUsersApi.md#getUserComments) | **GET** /v2/users/me/comments | Get comments by user
*AuthenticationUsersApi* | [**loginUser**](docs/AuthenticationUsersApi.md#loginUser) | **POST** /v2/auth/login | Authenticate a user
*AuthenticationUsersApi* | [**submitUserFeedback**](docs/AuthenticationUsersApi.md#submitUserFeedback) | **POST** /v2/users/feedback | Submit feedback about the application
*BinariesApi* | [**downloadZippedBinary**](docs/BinariesApi.md#downloadZippedBinary) | **GET** /v2/binaries/{binary_id}/download-zipped | Downloads a zipped binary with password protection
*BinariesApi* | [**getBinaryAdditionalDetails**](docs/BinariesApi.md#getBinaryAdditionalDetails) | **GET** /v2/binaries/{binary_id}/additional-details | Gets the additional details of a binary
Expand Down Expand Up @@ -287,7 +286,6 @@ Class | Method | HTTP request | Description
- [BaseResponseListFunctionNameHistory](docs/BaseResponseListFunctionNameHistory.md)
- [BaseResponseListSBOM](docs/BaseResponseListSBOM.md)
- [BaseResponseListUserActivityResponse](docs/BaseResponseListUserActivityResponse.md)
- [BaseResponseLoginResponse](docs/BaseResponseLoginResponse.md)
- [BaseResponseLogs](docs/BaseResponseLogs.md)
- [BaseResponseModelsResponse](docs/BaseResponseModelsResponse.md)
- [BaseResponseNetworkOverviewResponse](docs/BaseResponseNetworkOverviewResponse.md)
Expand Down Expand Up @@ -422,8 +420,6 @@ Class | Method | HTTP request | Description
- [InverseStringMapItem](docs/InverseStringMapItem.md)
- [InverseValue](docs/InverseValue.md)
- [ListCollectionResults](docs/ListCollectionResults.md)
- [LoginRequest](docs/LoginRequest.md)
- [LoginResponse](docs/LoginResponse.md)
- [Logs](docs/Logs.md)
- [MITRETechnique](docs/MITRETechnique.md)
- [MatchedFunction](docs/MatchedFunction.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 = '3.72.0'
version = '3.74.1'



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

coordinates("ai.reveng", "sdk", "3.72.0")
coordinates("ai.reveng", "sdk", "3.74.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.72.0",
version := "3.74.1",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
72 changes: 0 additions & 72 deletions docs/AuthenticationUsersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ All URIs are relative to *https://api.reveng.ai*
| [**getUser**](AuthenticationUsersApi.md#getUser) | **GET** /v2/users/{user_id} | Get a user&#39;s public information |
| [**getUserActivity**](AuthenticationUsersApi.md#getUserActivity) | **GET** /v2/users/activity | Get auth user activity |
| [**getUserComments**](AuthenticationUsersApi.md#getUserComments) | **GET** /v2/users/me/comments | Get comments by user |
| [**loginUser**](AuthenticationUsersApi.md#loginUser) | **POST** /v2/auth/login | Authenticate a user |
| [**submitUserFeedback**](AuthenticationUsersApi.md#submitUserFeedback) | **POST** /v2/users/feedback | Submit feedback about the application |


Expand Down Expand Up @@ -288,77 +287,6 @@ public class Example {
| **200** | Successful Response | - |
| **422** | Invalid request parameters | - |

<a id="loginUser"></a>
# **loginUser**
> BaseResponseLoginResponse loginUser(loginRequest)

Authenticate a user

Authenticates a user and returns a token.

### Example
```java
// Import classes:
import ai.reveng.invoker.ApiClient;
import ai.reveng.invoker.ApiException;
import ai.reveng.invoker.Configuration;
import ai.reveng.invoker.auth.*;
import ai.reveng.invoker.models.*;
import ai.reveng.api.AuthenticationUsersApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.reveng.ai");

// Configure API key authorization: APIKey
ApiKeyAuth APIKey = (ApiKeyAuth) defaultClient.getAuthentication("APIKey");
APIKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.setApiKeyPrefix("Token");

AuthenticationUsersApi apiInstance = new AuthenticationUsersApi(defaultClient);
LoginRequest loginRequest = new LoginRequest(); // LoginRequest |
try {
BaseResponseLoginResponse result = apiInstance.loginUser(loginRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthenticationUsersApi#loginUser");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```

### Parameters

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **loginRequest** | [**LoginRequest**](LoginRequest.md)| | |

### Return type

[**BaseResponseLoginResponse**](BaseResponseLoginResponse.md)

### Authorization

[APIKey](../README.md#APIKey)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

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

<a id="submitUserFeedback"></a>
# **submitUserFeedback**
> BaseResponse submitUserFeedback(submitUserFeedbackRequest)
Expand Down
17 changes: 0 additions & 17 deletions docs/BaseResponseLoginResponse.md

This file was deleted.

14 changes: 0 additions & 14 deletions docs/LoginRequest.md

This file was deleted.

13 changes: 0 additions & 13 deletions docs/LoginResponse.md

This file was deleted.

1 change: 1 addition & 0 deletions docs/TaskStatusResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**status** | **BinaryTaskStatus** | | |
|**logHistory** | **List&lt;List&lt;Object&gt;&gt;** | | [optional] |



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.72.0</version>
<version>3.74.1</version>
<url>https://github.com/RevEngAI/sdk-java</url>
<description>Java SDK for the RevEng.AI API</description>
<scm>
Expand Down
137 changes: 0 additions & 137 deletions src/main/java/ai/reveng/api/AuthenticationUsersApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
import ai.reveng.model.BaseResponseGetPublicUserResponse;
import ai.reveng.model.BaseResponseListCommentResponse;
import ai.reveng.model.BaseResponseListUserActivityResponse;
import ai.reveng.model.BaseResponseLoginResponse;
import ai.reveng.model.LoginRequest;
import ai.reveng.model.SubmitUserFeedbackRequest;

import java.lang.reflect.Type;
Expand Down Expand Up @@ -620,141 +618,6 @@ public okhttp3.Call getUserCommentsAsync(@javax.annotation.Nullable String endpo
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for loginUser
* @param loginRequest (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @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> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
<tr><td> 401 </td><td> Invalid credentials </td><td> - </td></tr>
</table>
*/
public okhttp3.Call loginUserCall(@javax.annotation.Nonnull LoginRequest loginRequest, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };

// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}

Object localVarPostBody = loginRequest;

// create path and map variables
String localVarPath = "/v2/auth/login";

List<Pair> localVarQueryParams = new ArrayList<Pair>();
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();

final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}

final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}

String[] localVarAuthNames = new String[] { "APIKey" };
return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}

@SuppressWarnings("rawtypes")
private okhttp3.Call loginUserValidateBeforeCall(@javax.annotation.Nonnull LoginRequest loginRequest, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'loginRequest' is set
if (loginRequest == null) {
throw new ApiException("Missing the required parameter 'loginRequest' when calling loginUser(Async)");
}

return loginUserCall(loginRequest, _callback);

}

/**
* Authenticate a user
* Authenticates a user and returns a token.
* @param loginRequest (required)
* @return BaseResponseLoginResponse
* @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> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
<tr><td> 401 </td><td> Invalid credentials </td><td> - </td></tr>
</table>
*/
public BaseResponseLoginResponse loginUser(@javax.annotation.Nonnull LoginRequest loginRequest) throws ApiException {
ApiResponse<BaseResponseLoginResponse> localVarResp = loginUserWithHttpInfo(loginRequest);
return localVarResp.getData();
}

/**
* Authenticate a user
* Authenticates a user and returns a token.
* @param loginRequest (required)
* @return ApiResponse&lt;BaseResponseLoginResponse&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> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
<tr><td> 401 </td><td> Invalid credentials </td><td> - </td></tr>
</table>
*/
public ApiResponse<BaseResponseLoginResponse> loginUserWithHttpInfo(@javax.annotation.Nonnull LoginRequest loginRequest) throws ApiException {
okhttp3.Call localVarCall = loginUserValidateBeforeCall(loginRequest, null);
Type localVarReturnType = new TypeToken<BaseResponseLoginResponse>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}

/**
* Authenticate a user (asynchronously)
* Authenticates a user and returns a token.
* @param loginRequest (required)
* @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
* @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> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
<tr><td> 401 </td><td> Invalid credentials </td><td> - </td></tr>
</table>
*/
public okhttp3.Call loginUserAsync(@javax.annotation.Nonnull LoginRequest loginRequest, final ApiCallback<BaseResponseLoginResponse> _callback) throws ApiException {

okhttp3.Call localVarCall = loginUserValidateBeforeCall(loginRequest, _callback);
Type localVarReturnType = new TypeToken<BaseResponseLoginResponse>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for submitUserFeedback
* @param submitUserFeedbackRequest (required)
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.72.0/java");
setUserAgent("OpenAPI-Generator/3.74.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.72.0";
public static final String VERSION = "3.74.1";

private static final AtomicReference<ApiClient> defaultApiClient = new AtomicReference<>();
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;
Expand Down
Loading