diff --git a/.sdk-version b/.sdk-version index 3d5a70b..3a1a0ae 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v3.123.0 +v3.124.0 diff --git a/README.md b/README.md index a8c07bd..af40b97 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Add this dependency to your project's POM: ai.reveng sdk - 3.123.0 + 3.124.0 compile ``` @@ -31,7 +31,7 @@ repositories { } dependencies { - implementation "ai.reveng:sdk:3.123.0" + implementation "ai.reveng:sdk:3.124.0" } ``` diff --git a/build.gradle b/build.gradle index bf212d9..29d41ac 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'ai.reveng' -version = '3.123.0' +version = '3.124.0' @@ -171,7 +171,7 @@ mavenPublishing { publishToMavenCentral(true) signAllPublications() - coordinates("ai.reveng", "sdk", "3.123.0") + coordinates("ai.reveng", "sdk", "3.124.0") pom { name = "sdk" diff --git a/build.sbt b/build.sbt index 792662b..c09bd84 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "ai.reveng", name := "sdk", - version := "3.123.0", + version := "3.124.0", scalaVersion := "2.11.12", scalacOptions ++= Seq("-feature"), compile / javacOptions ++= Seq("-Xlint:deprecation"), diff --git a/docs/Permissions.md b/docs/Permissions.md index 917e475..bb30b32 100644 --- a/docs/Permissions.md +++ b/docs/Permissions.md @@ -10,6 +10,7 @@ |**canExportSymbols** | **Boolean** | | | |**canGeneratePdfReports** | **Boolean** | | | |**canUseAiMalwareAnalysis** | **Boolean** | | | +|**canUseCompositionAnalysis** | **Boolean** | | | |**canUseMalwareSandbox** | **Boolean** | | | |**canUsePrivateAnalyses** | **Boolean** | | | diff --git a/docs/SearchApi.md b/docs/SearchApi.md index 3a1e232..feaf96d 100644 --- a/docs/SearchApi.md +++ b/docs/SearchApi.md @@ -12,7 +12,7 @@ All URIs are relative to *https://api.reveng.ai* # **searchBinaries** -> BaseResponseBinarySearchResponse searchBinaries(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, excludeBinaryId) +> BaseResponseBinarySearchResponse searchBinaries(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, excludeBinaryId, userIds) Binaries search @@ -52,8 +52,9 @@ public class Example { String modelName = "modelName_example"; // String | The name of the model used to analyze the binary the function belongs to Boolean userFilesOnly = false; // Boolean | Whether to only search user's uploaded files Integer excludeBinaryId = 56; // Integer | A binary ID to exclude from the results + List userIds = Arrays.asList(); // List | Restrict the search to binaries owned by these user IDs try { - BaseResponseBinarySearchResponse result = apiInstance.searchBinaries(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, excludeBinaryId); + BaseResponseBinarySearchResponse result = apiInstance.searchBinaries(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, excludeBinaryId, userIds); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SearchApi#searchBinaries"); @@ -78,6 +79,7 @@ public class Example { | **modelName** | **String**| The name of the model used to analyze the binary the function belongs to | [optional] | | **userFilesOnly** | **Boolean**| Whether to only search user's uploaded files | [optional] [default to false] | | **excludeBinaryId** | **Integer**| A binary ID to exclude from the results | [optional] | +| **userIds** | [**List<Integer>**](Integer.md)| Restrict the search to binaries owned by these user IDs | [optional] | ### Return type @@ -100,7 +102,7 @@ public class Example { # **searchCollections** -> BaseResponseCollectionSearchResponse searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection) +> BaseResponseCollectionSearchResponse searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection, userIds) Collections search @@ -141,8 +143,9 @@ public class Example { List filters = Arrays.asList(); // List | The filters to be used for the search AppApiRestV2CollectionsEnumsOrderBy orderBy = AppApiRestV2CollectionsEnumsOrderBy.fromValue("created"); // AppApiRestV2CollectionsEnumsOrderBy | The field to sort the order by in the results Order orderByDirection = Order.fromValue("ASC"); // Order | The order direction in which to return results + List userIds = Arrays.asList(); // List | Restrict the search to collections owned by these user IDs try { - BaseResponseCollectionSearchResponse result = apiInstance.searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection); + BaseResponseCollectionSearchResponse result = apiInstance.searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection, userIds); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SearchApi#searchCollections"); @@ -168,6 +171,7 @@ public class Example { | **filters** | [**List<Filters>**](Filters.md)| The filters to be used for the search | [optional] | | **orderBy** | [**AppApiRestV2CollectionsEnumsOrderBy**](.md)| The field to sort the order by in the results | [optional] [default to created] [enum: created, collection, owner, collection_size, updated] | | **orderByDirection** | [**Order**](.md)| The order direction in which to return results | [optional] [default to DESC] [enum: ASC, DESC] | +| **userIds** | [**List<Integer>**](Integer.md)| Restrict the search to collections owned by these user IDs | [optional] | ### Return type diff --git a/pom.xml b/pom.xml index a569ac3..6cf4fc4 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ sdk jar sdk - 3.123.0 + 3.124.0 https://github.com/RevEngAI/sdk-java Java SDK for the RevEng.AI API diff --git a/src/main/java/ai/reveng/api/SearchApi.java b/src/main/java/ai/reveng/api/SearchApi.java index 3a2d5ce..4863508 100644 --- a/src/main/java/ai/reveng/api/SearchApi.java +++ b/src/main/java/ai/reveng/api/SearchApi.java @@ -88,6 +88,7 @@ public void setCustomBaseUrl(String customBaseUrl) { * @param modelName The name of the model used to analyze the binary the function belongs to (optional) * @param userFilesOnly Whether to only search user's uploaded files (optional, default to false) * @param excludeBinaryId A binary ID to exclude from the results (optional) + * @param userIds Restrict the search to binaries owned by these user IDs (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -99,7 +100,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 422 You must provide at least one of the filters; partial_name, partial_sha256, tags or model_name to search - */ - public okhttp3.Call searchBinariesCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String partialSha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable Boolean userFilesOnly, @javax.annotation.Nullable Integer excludeBinaryId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchBinariesCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String partialSha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable Boolean userFilesOnly, @javax.annotation.Nullable Integer excludeBinaryId, @javax.annotation.Nullable List userIds, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -156,6 +157,10 @@ public okhttp3.Call searchBinariesCall(@javax.annotation.Nullable Integer page, localVarQueryParams.addAll(localVarApiClient.parameterToPair("exclude_binary_id", excludeBinaryId)); } + if (userIds != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "user_ids", userIds)); + } + final String[] localVarAccepts = { "application/json" }; @@ -176,8 +181,8 @@ public okhttp3.Call searchBinariesCall(@javax.annotation.Nullable Integer page, } @SuppressWarnings("rawtypes") - private okhttp3.Call searchBinariesValidateBeforeCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String partialSha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable Boolean userFilesOnly, @javax.annotation.Nullable Integer excludeBinaryId, final ApiCallback _callback) throws ApiException { - return searchBinariesCall(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, excludeBinaryId, _callback); + private okhttp3.Call searchBinariesValidateBeforeCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String partialSha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable Boolean userFilesOnly, @javax.annotation.Nullable Integer excludeBinaryId, @javax.annotation.Nullable List userIds, final ApiCallback _callback) throws ApiException { + return searchBinariesCall(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, excludeBinaryId, userIds, _callback); } @@ -192,6 +197,7 @@ private okhttp3.Call searchBinariesValidateBeforeCall(@javax.annotation.Nullable * @param modelName The name of the model used to analyze the binary the function belongs to (optional) * @param userFilesOnly Whether to only search user's uploaded files (optional, default to false) * @param excludeBinaryId A binary ID to exclude from the results (optional) + * @param userIds Restrict the search to binaries owned by these user IDs (optional) * @return BaseResponseBinarySearchResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -202,8 +208,8 @@ private okhttp3.Call searchBinariesValidateBeforeCall(@javax.annotation.Nullable 422 You must provide at least one of the filters; partial_name, partial_sha256, tags or model_name to search - */ - public BaseResponseBinarySearchResponse searchBinaries(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String partialSha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable Boolean userFilesOnly, @javax.annotation.Nullable Integer excludeBinaryId) throws ApiException { - ApiResponse localVarResp = searchBinariesWithHttpInfo(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, excludeBinaryId); + public BaseResponseBinarySearchResponse searchBinaries(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String partialSha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable Boolean userFilesOnly, @javax.annotation.Nullable Integer excludeBinaryId, @javax.annotation.Nullable List userIds) throws ApiException { + ApiResponse localVarResp = searchBinariesWithHttpInfo(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, excludeBinaryId, userIds); return localVarResp.getData(); } @@ -218,6 +224,7 @@ public BaseResponseBinarySearchResponse searchBinaries(@javax.annotation.Nullabl * @param modelName The name of the model used to analyze the binary the function belongs to (optional) * @param userFilesOnly Whether to only search user's uploaded files (optional, default to false) * @param excludeBinaryId A binary ID to exclude from the results (optional) + * @param userIds Restrict the search to binaries owned by these user IDs (optional) * @return ApiResponse<BaseResponseBinarySearchResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -228,8 +235,8 @@ public BaseResponseBinarySearchResponse searchBinaries(@javax.annotation.Nullabl 422 You must provide at least one of the filters; partial_name, partial_sha256, tags or model_name to search - */ - public ApiResponse searchBinariesWithHttpInfo(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String partialSha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable Boolean userFilesOnly, @javax.annotation.Nullable Integer excludeBinaryId) throws ApiException { - okhttp3.Call localVarCall = searchBinariesValidateBeforeCall(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, excludeBinaryId, null); + public ApiResponse searchBinariesWithHttpInfo(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String partialSha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable Boolean userFilesOnly, @javax.annotation.Nullable Integer excludeBinaryId, @javax.annotation.Nullable List userIds) throws ApiException { + okhttp3.Call localVarCall = searchBinariesValidateBeforeCall(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, excludeBinaryId, userIds, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -245,6 +252,7 @@ public ApiResponse searchBinariesWithHttpInfo( * @param modelName The name of the model used to analyze the binary the function belongs to (optional) * @param userFilesOnly Whether to only search user's uploaded files (optional, default to false) * @param excludeBinaryId A binary ID to exclude from the results (optional) + * @param userIds Restrict the search to binaries owned by these user IDs (optional) * @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 @@ -256,9 +264,9 @@ public ApiResponse searchBinariesWithHttpInfo( 422 You must provide at least one of the filters; partial_name, partial_sha256, tags or model_name to search - */ - public okhttp3.Call searchBinariesAsync(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String partialSha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable Boolean userFilesOnly, @javax.annotation.Nullable Integer excludeBinaryId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchBinariesAsync(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String partialSha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable Boolean userFilesOnly, @javax.annotation.Nullable Integer excludeBinaryId, @javax.annotation.Nullable List userIds, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = searchBinariesValidateBeforeCall(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, excludeBinaryId, _callback); + okhttp3.Call localVarCall = searchBinariesValidateBeforeCall(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, excludeBinaryId, userIds, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -274,6 +282,7 @@ public okhttp3.Call searchBinariesAsync(@javax.annotation.Nullable Integer page, * @param filters The filters to be used for the search (optional) * @param orderBy The field to sort the order by in the results (optional, default to created) * @param orderByDirection The order direction in which to return results (optional, default to DESC) + * @param userIds Restrict the search to collections owned by these user IDs (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -285,7 +294,7 @@ public okhttp3.Call searchBinariesAsync(@javax.annotation.Nullable Integer page, 422 You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256 or tags to search - */ - public okhttp3.Call searchCollectionsCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchCollectionsCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection, @javax.annotation.Nullable List userIds, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -346,6 +355,10 @@ public okhttp3.Call searchCollectionsCall(@javax.annotation.Nullable Integer pag localVarQueryParams.addAll(localVarApiClient.parameterToPair("order_by_direction", orderByDirection)); } + if (userIds != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "user_ids", userIds)); + } + final String[] localVarAccepts = { "application/json" }; @@ -366,8 +379,8 @@ public okhttp3.Call searchCollectionsCall(@javax.annotation.Nullable Integer pag } @SuppressWarnings("rawtypes") - private okhttp3.Call searchCollectionsValidateBeforeCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection, final ApiCallback _callback) throws ApiException { - return searchCollectionsCall(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection, _callback); + private okhttp3.Call searchCollectionsValidateBeforeCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection, @javax.annotation.Nullable List userIds, final ApiCallback _callback) throws ApiException { + return searchCollectionsCall(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection, userIds, _callback); } @@ -383,6 +396,7 @@ private okhttp3.Call searchCollectionsValidateBeforeCall(@javax.annotation.Nulla * @param filters The filters to be used for the search (optional) * @param orderBy The field to sort the order by in the results (optional, default to created) * @param orderByDirection The order direction in which to return results (optional, default to DESC) + * @param userIds Restrict the search to collections owned by these user IDs (optional) * @return BaseResponseCollectionSearchResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -393,8 +407,8 @@ private okhttp3.Call searchCollectionsValidateBeforeCall(@javax.annotation.Nulla 422 You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256 or tags to search - */ - public BaseResponseCollectionSearchResponse searchCollections(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection) throws ApiException { - ApiResponse localVarResp = searchCollectionsWithHttpInfo(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection); + public BaseResponseCollectionSearchResponse searchCollections(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection, @javax.annotation.Nullable List userIds) throws ApiException { + ApiResponse localVarResp = searchCollectionsWithHttpInfo(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection, userIds); return localVarResp.getData(); } @@ -410,6 +424,7 @@ public BaseResponseCollectionSearchResponse searchCollections(@javax.annotation. * @param filters The filters to be used for the search (optional) * @param orderBy The field to sort the order by in the results (optional, default to created) * @param orderByDirection The order direction in which to return results (optional, default to DESC) + * @param userIds Restrict the search to collections owned by these user IDs (optional) * @return ApiResponse<BaseResponseCollectionSearchResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -420,8 +435,8 @@ public BaseResponseCollectionSearchResponse searchCollections(@javax.annotation. 422 You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256 or tags to search - */ - public ApiResponse searchCollectionsWithHttpInfo(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection) throws ApiException { - okhttp3.Call localVarCall = searchCollectionsValidateBeforeCall(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection, null); + public ApiResponse searchCollectionsWithHttpInfo(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection, @javax.annotation.Nullable List userIds) throws ApiException { + okhttp3.Call localVarCall = searchCollectionsValidateBeforeCall(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection, userIds, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -438,6 +453,7 @@ public ApiResponse searchCollectionsWithHt * @param filters The filters to be used for the search (optional) * @param orderBy The field to sort the order by in the results (optional, default to created) * @param orderByDirection The order direction in which to return results (optional, default to DESC) + * @param userIds Restrict the search to collections owned by these user IDs (optional) * @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 @@ -449,9 +465,9 @@ public ApiResponse searchCollectionsWithHt 422 You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256 or tags to search - */ - public okhttp3.Call searchCollectionsAsync(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchCollectionsAsync(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection, @javax.annotation.Nullable List userIds, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = searchCollectionsValidateBeforeCall(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection, _callback); + okhttp3.Call localVarCall = searchCollectionsValidateBeforeCall(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection, userIds, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/ai/reveng/invoker/ApiClient.java b/src/main/java/ai/reveng/invoker/ApiClient.java index 8fb2592..40f4cdc 100644 --- a/src/main/java/ai/reveng/invoker/ApiClient.java +++ b/src/main/java/ai/reveng/invoker/ApiClient.java @@ -148,7 +148,7 @@ protected void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/3.123.0/java"); + setUserAgent("OpenAPI-Generator/3.124.0/java"); authentications = new HashMap(); } diff --git a/src/main/java/ai/reveng/invoker/Configuration.java b/src/main/java/ai/reveng/invoker/Configuration.java index 41b994d..c4429b3 100644 --- a/src/main/java/ai/reveng/invoker/Configuration.java +++ b/src/main/java/ai/reveng/invoker/Configuration.java @@ -18,7 +18,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Configuration { - public static final String VERSION = "3.123.0"; + public static final String VERSION = "3.124.0"; private static final AtomicReference defaultApiClient = new AtomicReference<>(); private static volatile Supplier apiClientFactory = ApiClient::new; diff --git a/src/main/java/ai/reveng/model/Permissions.java b/src/main/java/ai/reveng/model/Permissions.java index 4f96393..aecf3c7 100644 --- a/src/main/java/ai/reveng/model/Permissions.java +++ b/src/main/java/ai/reveng/model/Permissions.java @@ -64,6 +64,11 @@ public class Permissions { @javax.annotation.Nonnull private Boolean canUseAiMalwareAnalysis; + public static final String SERIALIZED_NAME_CAN_USE_COMPOSITION_ANALYSIS = "can_use_composition_analysis"; + @SerializedName(SERIALIZED_NAME_CAN_USE_COMPOSITION_ANALYSIS) + @javax.annotation.Nonnull + private Boolean canUseCompositionAnalysis; + public static final String SERIALIZED_NAME_CAN_USE_MALWARE_SANDBOX = "can_use_malware_sandbox"; @SerializedName(SERIALIZED_NAME_CAN_USE_MALWARE_SANDBOX) @javax.annotation.Nonnull @@ -134,6 +139,25 @@ public void setCanUseAiMalwareAnalysis(@javax.annotation.Nonnull Boolean canUseA } + public Permissions canUseCompositionAnalysis(@javax.annotation.Nonnull Boolean canUseCompositionAnalysis) { + this.canUseCompositionAnalysis = canUseCompositionAnalysis; + return this; + } + + /** + * Get canUseCompositionAnalysis + * @return canUseCompositionAnalysis + */ + @javax.annotation.Nonnull + public Boolean getCanUseCompositionAnalysis() { + return canUseCompositionAnalysis; + } + + public void setCanUseCompositionAnalysis(@javax.annotation.Nonnull Boolean canUseCompositionAnalysis) { + this.canUseCompositionAnalysis = canUseCompositionAnalysis; + } + + public Permissions canUseMalwareSandbox(@javax.annotation.Nonnull Boolean canUseMalwareSandbox) { this.canUseMalwareSandbox = canUseMalwareSandbox; return this; @@ -185,13 +209,14 @@ public boolean equals(Object o) { return Objects.equals(this.canExportSymbols, permissions.canExportSymbols) && Objects.equals(this.canGeneratePdfReports, permissions.canGeneratePdfReports) && Objects.equals(this.canUseAiMalwareAnalysis, permissions.canUseAiMalwareAnalysis) && + Objects.equals(this.canUseCompositionAnalysis, permissions.canUseCompositionAnalysis) && Objects.equals(this.canUseMalwareSandbox, permissions.canUseMalwareSandbox) && Objects.equals(this.canUsePrivateAnalyses, permissions.canUsePrivateAnalyses); } @Override public int hashCode() { - return Objects.hash(canExportSymbols, canGeneratePdfReports, canUseAiMalwareAnalysis, canUseMalwareSandbox, canUsePrivateAnalyses); + return Objects.hash(canExportSymbols, canGeneratePdfReports, canUseAiMalwareAnalysis, canUseCompositionAnalysis, canUseMalwareSandbox, canUsePrivateAnalyses); } @Override @@ -201,6 +226,7 @@ public String toString() { sb.append(" canExportSymbols: ").append(toIndentedString(canExportSymbols)).append("\n"); sb.append(" canGeneratePdfReports: ").append(toIndentedString(canGeneratePdfReports)).append("\n"); sb.append(" canUseAiMalwareAnalysis: ").append(toIndentedString(canUseAiMalwareAnalysis)).append("\n"); + sb.append(" canUseCompositionAnalysis: ").append(toIndentedString(canUseCompositionAnalysis)).append("\n"); sb.append(" canUseMalwareSandbox: ").append(toIndentedString(canUseMalwareSandbox)).append("\n"); sb.append(" canUsePrivateAnalyses: ").append(toIndentedString(canUsePrivateAnalyses)).append("\n"); sb.append("}"); @@ -221,10 +247,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("can_export_symbols", "can_generate_pdf_reports", "can_use_ai_malware_analysis", "can_use_malware_sandbox", "can_use_private_analyses")); + openapiFields = new HashSet(Arrays.asList("can_export_symbols", "can_generate_pdf_reports", "can_use_ai_malware_analysis", "can_use_composition_analysis", "can_use_malware_sandbox", "can_use_private_analyses")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("can_export_symbols", "can_generate_pdf_reports", "can_use_ai_malware_analysis", "can_use_malware_sandbox", "can_use_private_analyses")); + openapiRequiredFields = new HashSet(Arrays.asList("can_export_symbols", "can_generate_pdf_reports", "can_use_ai_malware_analysis", "can_use_composition_analysis", "can_use_malware_sandbox", "can_use_private_analyses")); } /**