From 3dc39d2d4795a3096d10b3d8fdb001c09cd2f87a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 25 Nov 2025 07:03:25 +0000 Subject: [PATCH] Update SDK to version v2.43.0 - Generated from OpenAPI spec version v2.43.0 - Auto-generated by GitHub Actions --- .sdk-version | 2 +- README.md | 4 +- build.gradle | 4 +- build.sbt | 2 +- docs/AnalysesCoreApi.md | 12 +++-- pom.xml | 2 +- .../java/ai/reveng/api/AnalysesCoreApi.java | 54 ++++++++++++------- .../java/ai/reveng/invoker/ApiClient.java | 2 +- .../java/ai/reveng/invoker/Configuration.java | 2 +- .../ai/reveng/api/AnalysesCoreApiTest.java | 6 ++- 10 files changed, 57 insertions(+), 33 deletions(-) diff --git a/.sdk-version b/.sdk-version index b73a4f7..97ae48a 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v2.42.0 +v2.43.0 diff --git a/README.md b/README.md index 8975968..9abe9ce 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Add this dependency to your project's POM: ai.reveng sdk - 2.42.0 + 2.43.0 compile ``` @@ -31,7 +31,7 @@ repositories { } dependencies { - implementation "ai.reveng:sdk:2.42.0" + implementation "ai.reveng:sdk:2.43.0" } ``` diff --git a/build.gradle b/build.gradle index ed0b42f..5e12816 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'ai.reveng' -version = '2.42.0' +version = '2.43.0' @@ -171,7 +171,7 @@ mavenPublishing { publishToMavenCentral(true) signAllPublications() - coordinates("ai.reveng", "sdk", "2.42.0") + coordinates("ai.reveng", "sdk", "2.43.0") pom { name = "sdk" diff --git a/build.sbt b/build.sbt index cc130bb..bb90d88 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "ai.reveng", name := "sdk", - version := "2.42.0", + version := "2.43.0", scalaVersion := "2.11.12", scalacOptions ++= Seq("-feature"), compile / javacOptions ++= Seq("-Xlint:deprecation"), diff --git a/docs/AnalysesCoreApi.md b/docs/AnalysesCoreApi.md index 0bccbb9..71bea74 100644 --- a/docs/AnalysesCoreApi.md +++ b/docs/AnalysesCoreApi.md @@ -21,7 +21,7 @@ All URIs are relative to *https://api.reveng.ai* # **createAnalysis** -> BaseResponseAnalysisCreateResponse createAnalysis(analysisCreateRequest) +> BaseResponseAnalysisCreateResponse createAnalysis(analysisCreateRequest, xRevEngApplication) Create Analysis @@ -50,8 +50,9 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); AnalysisCreateRequest analysisCreateRequest = new AnalysisCreateRequest(); // AnalysisCreateRequest | + String xRevEngApplication = "xRevEngApplication_example"; // String | try { - BaseResponseAnalysisCreateResponse result = apiInstance.createAnalysis(analysisCreateRequest); + BaseResponseAnalysisCreateResponse result = apiInstance.createAnalysis(analysisCreateRequest, xRevEngApplication); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#createAnalysis"); @@ -69,6 +70,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisCreateRequest** | [**AnalysisCreateRequest**](AnalysisCreateRequest.md)| | | +| **xRevEngApplication** | **String**| | [optional] | ### Return type @@ -675,7 +677,7 @@ public class Example { # **requeueAnalysis** -> BaseResponseCreated requeueAnalysis(analysisId, reAnalysisForm) +> BaseResponseCreated requeueAnalysis(analysisId, reAnalysisForm, xRevEngApplication) Requeue Analysis @@ -705,8 +707,9 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); Integer analysisId = 56; // Integer | ReAnalysisForm reAnalysisForm = new ReAnalysisForm(); // ReAnalysisForm | + String xRevEngApplication = "xRevEngApplication_example"; // String | try { - BaseResponseCreated result = apiInstance.requeueAnalysis(analysisId, reAnalysisForm); + BaseResponseCreated result = apiInstance.requeueAnalysis(analysisId, reAnalysisForm, xRevEngApplication); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#requeueAnalysis"); @@ -725,6 +728,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | | **reAnalysisForm** | [**ReAnalysisForm**](ReAnalysisForm.md)| | | +| **xRevEngApplication** | **String**| | [optional] | ### Return type diff --git a/pom.xml b/pom.xml index 2248a5c..6d2e667 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ sdk jar sdk - 2.42.0 + 2.43.0 https://github.com/RevEngAI/sdk-java Java SDK for the RevEng.AI API diff --git a/src/main/java/ai/reveng/api/AnalysesCoreApi.java b/src/main/java/ai/reveng/api/AnalysesCoreApi.java index c060c30..2a6422a 100644 --- a/src/main/java/ai/reveng/api/AnalysesCoreApi.java +++ b/src/main/java/ai/reveng/api/AnalysesCoreApi.java @@ -98,6 +98,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for createAnalysis * @param analysisCreateRequest (required) + * @param xRevEngApplication (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -111,7 +112,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 400 Bad Request - */ - public okhttp3.Call createAnalysisCall(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createAnalysisCall(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String xRevEngApplication, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -152,18 +153,23 @@ public okhttp3.Call createAnalysisCall(@javax.annotation.Nonnull AnalysisCreateR localVarHeaderParams.put("Content-Type", localVarContentType); } + if (xRevEngApplication != null) { + localVarHeaderParams.put("X-RevEng-Application", localVarApiClient.parameterToString(xRevEngApplication)); + } + + String[] localVarAuthNames = new String[] { "APIKey" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createAnalysisValidateBeforeCall(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createAnalysisValidateBeforeCall(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String xRevEngApplication, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisCreateRequest' is set if (analysisCreateRequest == null) { throw new ApiException("Missing the required parameter 'analysisCreateRequest' when calling createAnalysis(Async)"); } - return createAnalysisCall(analysisCreateRequest, _callback); + return createAnalysisCall(analysisCreateRequest, xRevEngApplication, _callback); } @@ -171,6 +177,7 @@ private okhttp3.Call createAnalysisValidateBeforeCall(@javax.annotation.Nonnull * Create Analysis * Begins an analysis * @param analysisCreateRequest (required) + * @param xRevEngApplication (optional) * @return BaseResponseAnalysisCreateResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -183,8 +190,8 @@ private okhttp3.Call createAnalysisValidateBeforeCall(@javax.annotation.Nonnull 400 Bad Request - */ - public BaseResponseAnalysisCreateResponse createAnalysis(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest) throws ApiException { - ApiResponse localVarResp = createAnalysisWithHttpInfo(analysisCreateRequest); + public BaseResponseAnalysisCreateResponse createAnalysis(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String xRevEngApplication) throws ApiException { + ApiResponse localVarResp = createAnalysisWithHttpInfo(analysisCreateRequest, xRevEngApplication); return localVarResp.getData(); } @@ -192,6 +199,7 @@ public BaseResponseAnalysisCreateResponse createAnalysis(@javax.annotation.Nonnu * Create Analysis * Begins an analysis * @param analysisCreateRequest (required) + * @param xRevEngApplication (optional) * @return ApiResponse<BaseResponseAnalysisCreateResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -204,8 +212,8 @@ public BaseResponseAnalysisCreateResponse createAnalysis(@javax.annotation.Nonnu 400 Bad Request - */ - public ApiResponse createAnalysisWithHttpInfo(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest) throws ApiException { - okhttp3.Call localVarCall = createAnalysisValidateBeforeCall(analysisCreateRequest, null); + public ApiResponse createAnalysisWithHttpInfo(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String xRevEngApplication) throws ApiException { + okhttp3.Call localVarCall = createAnalysisValidateBeforeCall(analysisCreateRequest, xRevEngApplication, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -214,6 +222,7 @@ public ApiResponse createAnalysisWithHttpInf * Create Analysis (asynchronously) * Begins an analysis * @param analysisCreateRequest (required) + * @param xRevEngApplication (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 @@ -227,9 +236,9 @@ public ApiResponse createAnalysisWithHttpInf 400 Bad Request - */ - public okhttp3.Call createAnalysisAsync(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createAnalysisAsync(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String xRevEngApplication, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createAnalysisValidateBeforeCall(analysisCreateRequest, _callback); + okhttp3.Call localVarCall = createAnalysisValidateBeforeCall(analysisCreateRequest, xRevEngApplication, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1372,6 +1381,7 @@ public okhttp3.Call lookupBinaryIdAsync(@javax.annotation.Nonnull Integer binary * Build call for requeueAnalysis * @param analysisId (required) * @param reAnalysisForm (required) + * @param xRevEngApplication (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1385,7 +1395,7 @@ public okhttp3.Call lookupBinaryIdAsync(@javax.annotation.Nonnull Integer binary 400 Bad Request - */ - public okhttp3.Call requeueAnalysisCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, final ApiCallback _callback) throws ApiException { + public okhttp3.Call requeueAnalysisCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String xRevEngApplication, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1427,12 +1437,17 @@ public okhttp3.Call requeueAnalysisCall(@javax.annotation.Nonnull Integer analys localVarHeaderParams.put("Content-Type", localVarContentType); } + if (xRevEngApplication != null) { + localVarHeaderParams.put("X-RevEng-Application", localVarApiClient.parameterToString(xRevEngApplication)); + } + + String[] localVarAuthNames = new String[] { "APIKey" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call requeueAnalysisValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, final ApiCallback _callback) throws ApiException { + private okhttp3.Call requeueAnalysisValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String xRevEngApplication, 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 requeueAnalysis(Async)"); @@ -1443,7 +1458,7 @@ private okhttp3.Call requeueAnalysisValidateBeforeCall(@javax.annotation.Nonnull throw new ApiException("Missing the required parameter 'reAnalysisForm' when calling requeueAnalysis(Async)"); } - return requeueAnalysisCall(analysisId, reAnalysisForm, _callback); + return requeueAnalysisCall(analysisId, reAnalysisForm, xRevEngApplication, _callback); } @@ -1452,6 +1467,7 @@ private okhttp3.Call requeueAnalysisValidateBeforeCall(@javax.annotation.Nonnull * Re-queues an already uploaded analysis * @param analysisId (required) * @param reAnalysisForm (required) + * @param xRevEngApplication (optional) * @return BaseResponseCreated * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1464,8 +1480,8 @@ private okhttp3.Call requeueAnalysisValidateBeforeCall(@javax.annotation.Nonnull 400 Bad Request - */ - public BaseResponseCreated requeueAnalysis(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm) throws ApiException { - ApiResponse localVarResp = requeueAnalysisWithHttpInfo(analysisId, reAnalysisForm); + public BaseResponseCreated requeueAnalysis(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String xRevEngApplication) throws ApiException { + ApiResponse localVarResp = requeueAnalysisWithHttpInfo(analysisId, reAnalysisForm, xRevEngApplication); return localVarResp.getData(); } @@ -1474,6 +1490,7 @@ public BaseResponseCreated requeueAnalysis(@javax.annotation.Nonnull Integer ana * Re-queues an already uploaded analysis * @param analysisId (required) * @param reAnalysisForm (required) + * @param xRevEngApplication (optional) * @return ApiResponse<BaseResponseCreated> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1486,8 +1503,8 @@ public BaseResponseCreated requeueAnalysis(@javax.annotation.Nonnull Integer ana 400 Bad Request - */ - public ApiResponse requeueAnalysisWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm) throws ApiException { - okhttp3.Call localVarCall = requeueAnalysisValidateBeforeCall(analysisId, reAnalysisForm, null); + public ApiResponse requeueAnalysisWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String xRevEngApplication) throws ApiException { + okhttp3.Call localVarCall = requeueAnalysisValidateBeforeCall(analysisId, reAnalysisForm, xRevEngApplication, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1497,6 +1514,7 @@ public ApiResponse requeueAnalysisWithHttpInfo(@javax.annot * Re-queues an already uploaded analysis * @param analysisId (required) * @param reAnalysisForm (required) + * @param xRevEngApplication (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 @@ -1510,9 +1528,9 @@ public ApiResponse requeueAnalysisWithHttpInfo(@javax.annot 400 Bad Request - */ - public okhttp3.Call requeueAnalysisAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, final ApiCallback _callback) throws ApiException { + public okhttp3.Call requeueAnalysisAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String xRevEngApplication, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = requeueAnalysisValidateBeforeCall(analysisId, reAnalysisForm, _callback); + okhttp3.Call localVarCall = requeueAnalysisValidateBeforeCall(analysisId, reAnalysisForm, xRevEngApplication, _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 4157c56..a81ae41 100644 --- a/src/main/java/ai/reveng/invoker/ApiClient.java +++ b/src/main/java/ai/reveng/invoker/ApiClient.java @@ -146,7 +146,7 @@ protected void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2.42.0/java"); + setUserAgent("OpenAPI-Generator/2.43.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 e661bd8..249e03f 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 = "2.42.0"; + public static final String VERSION = "2.43.0"; private static final AtomicReference defaultApiClient = new AtomicReference<>(); private static volatile Supplier apiClientFactory = ApiClient::new; diff --git a/src/test/java/ai/reveng/api/AnalysesCoreApiTest.java b/src/test/java/ai/reveng/api/AnalysesCoreApiTest.java index 18db6ea..0b9723d 100644 --- a/src/test/java/ai/reveng/api/AnalysesCoreApiTest.java +++ b/src/test/java/ai/reveng/api/AnalysesCoreApiTest.java @@ -64,7 +64,8 @@ public class AnalysesCoreApiTest { @Test public void createAnalysisTest() throws ApiException { AnalysisCreateRequest analysisCreateRequest = null; - BaseResponseAnalysisCreateResponse response = api.createAnalysis(analysisCreateRequest); + String xRevEngApplication = null; + BaseResponseAnalysisCreateResponse response = api.createAnalysis(analysisCreateRequest, xRevEngApplication); // TODO: test validations } @@ -201,7 +202,8 @@ public void lookupBinaryIdTest() throws ApiException { public void requeueAnalysisTest() throws ApiException { Integer analysisId = null; ReAnalysisForm reAnalysisForm = null; - BaseResponseCreated response = api.requeueAnalysis(analysisId, reAnalysisForm); + String xRevEngApplication = null; + BaseResponseCreated response = api.requeueAnalysis(analysisId, reAnalysisForm, xRevEngApplication); // TODO: test validations }