From bd896f14147b17464690845a3d13a2a9b42c792d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 16 Oct 2025 07:03:14 +0000 Subject: [PATCH] Update SDK to version v2.9.1 - Generated from OpenAPI spec version v2.9.1 - Auto-generated by GitHub Actions --- .sdk-version | 2 +- README.md | 4 +- build.gradle | 4 +- build.sbt | 2 +- docs/FunctionsAiDecompilationApi.md | 20 ++--- pom.xml | 2 +- .../api/FunctionsAiDecompilationApi.java | 90 +++++++++---------- .../java/ai/reveng/invoker/ApiClient.java | 2 +- .../java/ai/reveng/invoker/Configuration.java | 2 +- .../api/FunctionsAiDecompilationApiTest.java | 10 +-- 10 files changed, 69 insertions(+), 69 deletions(-) diff --git a/.sdk-version b/.sdk-version index f367ae3..7227c77 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v2.9.0 +v2.9.1 diff --git a/README.md b/README.md index 96556f6..85c8ef9 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Add this dependency to your project's POM: ai.reveng sdk - 2.9.0 + 2.9.1 compile ``` @@ -31,7 +31,7 @@ repositories { } dependencies { - implementation "ai.reveng:sdk:2.9.0" + implementation "ai.reveng:sdk:2.9.1" } ``` diff --git a/build.gradle b/build.gradle index bed8eb8..fc9febf 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'ai.reveng' -version = '2.9.0' +version = '2.9.1' @@ -171,7 +171,7 @@ mavenPublishing { publishToMavenCentral(true) signAllPublications() - coordinates("ai.reveng", "sdk", "2.9.0") + coordinates("ai.reveng", "sdk", "2.9.1") pom { name = "sdk" diff --git a/build.sbt b/build.sbt index 2317bf9..bf1e970 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.9.0", + version := "2.9.1", scalaVersion := "2.11.12", scalacOptions ++= Seq("-feature"), compile / javacOptions ++= Seq("-Xlint:deprecation"), diff --git a/docs/FunctionsAiDecompilationApi.md b/docs/FunctionsAiDecompilationApi.md index 2175bc8..78272e5 100644 --- a/docs/FunctionsAiDecompilationApi.md +++ b/docs/FunctionsAiDecompilationApi.md @@ -118,7 +118,7 @@ public class Example { //APIKey.setApiKeyPrefix("Token"); FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient); - Integer functionId = 56; // Integer | + Long functionId = 56L; // Long | The ID of the function for which we are creating the decompilation task try { BaseResponse result = apiInstance.createAiDecompilationTask(functionId); System.out.println(result); @@ -137,7 +137,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **functionId** | **Integer**| | | +| **functionId** | **Long**| The ID of the function for which we are creating the decompilation task | | ### Return type @@ -334,7 +334,7 @@ public class Example { //APIKey.setApiKeyPrefix("Token"); FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient); - Integer functionId = 56; // Integer | + Long functionId = 56L; // Long | The ID of the function for which to get the rating try { BaseResponseGetAiDecompilationRatingResponse result = apiInstance.getAiDecompilationRating(functionId); System.out.println(result); @@ -353,7 +353,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **functionId** | **Integer**| | | +| **functionId** | **Long**| The ID of the function for which to get the rating | | ### Return type @@ -404,7 +404,7 @@ public class Example { //APIKey.setApiKeyPrefix("Token"); FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient); - Integer functionId = 56; // Integer | + Long functionId = 56L; // Long | The ID of the function being decompiled Boolean summarise = true; // Boolean | Generate a summary for the decompilation Boolean generateInlineComments = true; // Boolean | Generate inline comments for the decompilation (only works if summarise is enabled) try { @@ -425,7 +425,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **functionId** | **Integer**| | | +| **functionId** | **Long**| The ID of the function being decompiled | | | **summarise** | **Boolean**| Generate a summary for the decompilation | [optional] [default to true] | | **generateInlineComments** | **Boolean**| Generate inline comments for the decompilation (only works if summarise is enabled) | [optional] [default to true] | @@ -477,7 +477,7 @@ public class Example { //APIKey.setApiKeyPrefix("Token"); FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient); - Integer functionId = 56; // Integer | + Long functionId = 56L; // Long | The ID of the function being checked try { BaseResponseFunctionTaskResponse result = apiInstance.getAiDecompilationTaskStatus(functionId); System.out.println(result); @@ -496,7 +496,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **functionId** | **Integer**| | | +| **functionId** | **Long**| The ID of the function being checked | | ### Return type @@ -621,7 +621,7 @@ public class Example { //APIKey.setApiKeyPrefix("Token"); FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient); - Integer functionId = 56; // Integer | + Long functionId = 56L; // Long | The ID of the function being rated UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest = new UpsertAiDecomplationRatingRequest(); // UpsertAiDecomplationRatingRequest | try { BaseResponse result = apiInstance.upsertAiDecompilationRating(functionId, upsertAiDecomplationRatingRequest); @@ -641,7 +641,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **functionId** | **Integer**| | | +| **functionId** | **Long**| The ID of the function being rated | | | **upsertAiDecomplationRatingRequest** | [**UpsertAiDecomplationRatingRequest**](UpsertAiDecomplationRatingRequest.md)| | | ### Return type diff --git a/pom.xml b/pom.xml index 370ba07..b0cc289 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ sdk jar sdk - 2.9.0 + 2.9.1 https://github.com/RevEngAI/sdk-java Java SDK for the RevEng.AI API diff --git a/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java b/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java index 5ab161a..83c822d 100644 --- a/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java +++ b/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java @@ -227,7 +227,7 @@ public okhttp3.Call createAiDecompilationCommentAsync(@javax.annotation.Nonnull } /** * Build call for createAiDecompilationTask - * @param functionId (required) + * @param functionId The ID of the function for which we are creating the decompilation task (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -243,7 +243,7 @@ public okhttp3.Call createAiDecompilationCommentAsync(@javax.annotation.Nonnull 400 Bad Request - */ - public okhttp3.Call createAiDecompilationTaskCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createAiDecompilationTaskCall(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -289,7 +289,7 @@ public okhttp3.Call createAiDecompilationTaskCall(@javax.annotation.Nonnull Inte } @SuppressWarnings("rawtypes") - private okhttp3.Call createAiDecompilationTaskValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createAiDecompilationTaskValidateBeforeCall(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling createAiDecompilationTask(Async)"); @@ -302,7 +302,7 @@ private okhttp3.Call createAiDecompilationTaskValidateBeforeCall(@javax.annotati /** * Begins AI Decompilation Process * Begins the AI Decompilation Process - * @param functionId (required) + * @param functionId The ID of the function for which we are creating the decompilation task (required) * @return BaseResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -317,7 +317,7 @@ private okhttp3.Call createAiDecompilationTaskValidateBeforeCall(@javax.annotati 400 Bad Request - */ - public BaseResponse createAiDecompilationTask(@javax.annotation.Nonnull Integer functionId) throws ApiException { + public BaseResponse createAiDecompilationTask(@javax.annotation.Nonnull Long functionId) throws ApiException { ApiResponse localVarResp = createAiDecompilationTaskWithHttpInfo(functionId); return localVarResp.getData(); } @@ -325,7 +325,7 @@ public BaseResponse createAiDecompilationTask(@javax.annotation.Nonnull Integer /** * Begins AI Decompilation Process * Begins the AI Decompilation Process - * @param functionId (required) + * @param functionId The ID of the function for which we are creating the decompilation task (required) * @return ApiResponse<BaseResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -340,7 +340,7 @@ public BaseResponse createAiDecompilationTask(@javax.annotation.Nonnull Integer 400 Bad Request - */ - public ApiResponse createAiDecompilationTaskWithHttpInfo(@javax.annotation.Nonnull Integer functionId) throws ApiException { + public ApiResponse createAiDecompilationTaskWithHttpInfo(@javax.annotation.Nonnull Long functionId) throws ApiException { okhttp3.Call localVarCall = createAiDecompilationTaskValidateBeforeCall(functionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -349,7 +349,7 @@ public ApiResponse createAiDecompilationTaskWithHttpInfo(@javax.an /** * Begins AI Decompilation Process (asynchronously) * Begins the AI Decompilation Process - * @param functionId (required) + * @param functionId The ID of the function for which we are creating the decompilation task (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 @@ -365,7 +365,7 @@ public ApiResponse createAiDecompilationTaskWithHttpInfo(@javax.an 400 Bad Request - */ - public okhttp3.Call createAiDecompilationTaskAsync(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createAiDecompilationTaskAsync(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createAiDecompilationTaskValidateBeforeCall(functionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -654,7 +654,7 @@ public okhttp3.Call getAiDecompilationCommentsAsync(@javax.annotation.Nonnull In } /** * Build call for getAiDecompilationRating - * @param functionId (required) + * @param functionId The ID of the function for which to get the rating (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -666,7 +666,7 @@ public okhttp3.Call getAiDecompilationCommentsAsync(@javax.annotation.Nonnull In 422 Invalid request parameters - */ - public okhttp3.Call getAiDecompilationRatingCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAiDecompilationRatingCall(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -712,7 +712,7 @@ public okhttp3.Call getAiDecompilationRatingCall(@javax.annotation.Nonnull Integ } @SuppressWarnings("rawtypes") - private okhttp3.Call getAiDecompilationRatingValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAiDecompilationRatingValidateBeforeCall(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling getAiDecompilationRating(Async)"); @@ -725,7 +725,7 @@ private okhttp3.Call getAiDecompilationRatingValidateBeforeCall(@javax.annotatio /** * Get rating for AI decompilation * - * @param functionId (required) + * @param functionId The ID of the function for which to get the rating (required) * @return BaseResponseGetAiDecompilationRatingResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -736,7 +736,7 @@ private okhttp3.Call getAiDecompilationRatingValidateBeforeCall(@javax.annotatio 422 Invalid request parameters - */ - public BaseResponseGetAiDecompilationRatingResponse getAiDecompilationRating(@javax.annotation.Nonnull Integer functionId) throws ApiException { + public BaseResponseGetAiDecompilationRatingResponse getAiDecompilationRating(@javax.annotation.Nonnull Long functionId) throws ApiException { ApiResponse localVarResp = getAiDecompilationRatingWithHttpInfo(functionId); return localVarResp.getData(); } @@ -744,7 +744,7 @@ public BaseResponseGetAiDecompilationRatingResponse getAiDecompilationRating(@ja /** * Get rating for AI decompilation * - * @param functionId (required) + * @param functionId The ID of the function for which to get the rating (required) * @return ApiResponse<BaseResponseGetAiDecompilationRatingResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -755,7 +755,7 @@ public BaseResponseGetAiDecompilationRatingResponse getAiDecompilationRating(@ja 422 Invalid request parameters - */ - public ApiResponse getAiDecompilationRatingWithHttpInfo(@javax.annotation.Nonnull Integer functionId) throws ApiException { + public ApiResponse getAiDecompilationRatingWithHttpInfo(@javax.annotation.Nonnull Long functionId) throws ApiException { okhttp3.Call localVarCall = getAiDecompilationRatingValidateBeforeCall(functionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -764,7 +764,7 @@ public ApiResponse getAiDecompilat /** * Get rating for AI decompilation (asynchronously) * - * @param functionId (required) + * @param functionId The ID of the function for which to get the rating (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 @@ -776,7 +776,7 @@ public ApiResponse getAiDecompilat 422 Invalid request parameters - */ - public okhttp3.Call getAiDecompilationRatingAsync(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAiDecompilationRatingAsync(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAiDecompilationRatingValidateBeforeCall(functionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -785,7 +785,7 @@ public okhttp3.Call getAiDecompilationRatingAsync(@javax.annotation.Nonnull Inte } /** * Build call for getAiDecompilationTaskResult - * @param functionId (required) + * @param functionId The ID of the function being decompiled (required) * @param summarise Generate a summary for the decompilation (optional, default to true) * @param generateInlineComments Generate inline comments for the decompilation (only works if summarise is enabled) (optional, default to true) * @param _callback Callback for upload/download progress @@ -800,7 +800,7 @@ public okhttp3.Call getAiDecompilationRatingAsync(@javax.annotation.Nonnull Inte 403 Forbidden - */ - public okhttp3.Call getAiDecompilationTaskResultCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAiDecompilationTaskResultCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -854,7 +854,7 @@ public okhttp3.Call getAiDecompilationTaskResultCall(@javax.annotation.Nonnull I } @SuppressWarnings("rawtypes") - private okhttp3.Call getAiDecompilationTaskResultValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAiDecompilationTaskResultValidateBeforeCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling getAiDecompilationTaskResult(Async)"); @@ -867,7 +867,7 @@ private okhttp3.Call getAiDecompilationTaskResultValidateBeforeCall(@javax.annot /** * Polls AI Decompilation Process * Polls the AI Decompilation Process - * @param functionId (required) + * @param functionId The ID of the function being decompiled (required) * @param summarise Generate a summary for the decompilation (optional, default to true) * @param generateInlineComments Generate inline comments for the decompilation (only works if summarise is enabled) (optional, default to true) * @return BaseResponseGetAiDecompilationTask @@ -881,7 +881,7 @@ private okhttp3.Call getAiDecompilationTaskResultValidateBeforeCall(@javax.annot 403 Forbidden - */ - public BaseResponseGetAiDecompilationTask getAiDecompilationTaskResult(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments) throws ApiException { + public BaseResponseGetAiDecompilationTask getAiDecompilationTaskResult(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments) throws ApiException { ApiResponse localVarResp = getAiDecompilationTaskResultWithHttpInfo(functionId, summarise, generateInlineComments); return localVarResp.getData(); } @@ -889,7 +889,7 @@ public BaseResponseGetAiDecompilationTask getAiDecompilationTaskResult(@javax.an /** * Polls AI Decompilation Process * Polls the AI Decompilation Process - * @param functionId (required) + * @param functionId The ID of the function being decompiled (required) * @param summarise Generate a summary for the decompilation (optional, default to true) * @param generateInlineComments Generate inline comments for the decompilation (only works if summarise is enabled) (optional, default to true) * @return ApiResponse<BaseResponseGetAiDecompilationTask> @@ -903,7 +903,7 @@ public BaseResponseGetAiDecompilationTask getAiDecompilationTaskResult(@javax.an 403 Forbidden - */ - public ApiResponse getAiDecompilationTaskResultWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments) throws ApiException { + public ApiResponse getAiDecompilationTaskResultWithHttpInfo(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments) throws ApiException { okhttp3.Call localVarCall = getAiDecompilationTaskResultValidateBeforeCall(functionId, summarise, generateInlineComments, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -912,7 +912,7 @@ public ApiResponse getAiDecompilationTaskRes /** * Polls AI Decompilation Process (asynchronously) * Polls the AI Decompilation Process - * @param functionId (required) + * @param functionId The ID of the function being decompiled (required) * @param summarise Generate a summary for the decompilation (optional, default to true) * @param generateInlineComments Generate inline comments for the decompilation (only works if summarise is enabled) (optional, default to true) * @param _callback The callback to be executed when the API call finishes @@ -927,7 +927,7 @@ public ApiResponse getAiDecompilationTaskRes 403 Forbidden - */ - public okhttp3.Call getAiDecompilationTaskResultAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAiDecompilationTaskResultAsync(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAiDecompilationTaskResultValidateBeforeCall(functionId, summarise, generateInlineComments, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -936,7 +936,7 @@ public okhttp3.Call getAiDecompilationTaskResultAsync(@javax.annotation.Nonnull } /** * Build call for getAiDecompilationTaskStatus - * @param functionId (required) + * @param functionId The ID of the function being checked (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -948,7 +948,7 @@ public okhttp3.Call getAiDecompilationTaskResultAsync(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public okhttp3.Call getAiDecompilationTaskStatusCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAiDecompilationTaskStatusCall(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -994,7 +994,7 @@ public okhttp3.Call getAiDecompilationTaskStatusCall(@javax.annotation.Nonnull I } @SuppressWarnings("rawtypes") - private okhttp3.Call getAiDecompilationTaskStatusValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAiDecompilationTaskStatusValidateBeforeCall(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling getAiDecompilationTaskStatus(Async)"); @@ -1007,7 +1007,7 @@ private okhttp3.Call getAiDecompilationTaskStatusValidateBeforeCall(@javax.annot /** * Check the status of a function ai decompilation * - * @param functionId (required) + * @param functionId The ID of the function being checked (required) * @return BaseResponseFunctionTaskResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1018,7 +1018,7 @@ private okhttp3.Call getAiDecompilationTaskStatusValidateBeforeCall(@javax.annot 422 Invalid request parameters - */ - public BaseResponseFunctionTaskResponse getAiDecompilationTaskStatus(@javax.annotation.Nonnull Integer functionId) throws ApiException { + public BaseResponseFunctionTaskResponse getAiDecompilationTaskStatus(@javax.annotation.Nonnull Long functionId) throws ApiException { ApiResponse localVarResp = getAiDecompilationTaskStatusWithHttpInfo(functionId); return localVarResp.getData(); } @@ -1026,7 +1026,7 @@ public BaseResponseFunctionTaskResponse getAiDecompilationTaskStatus(@javax.anno /** * Check the status of a function ai decompilation * - * @param functionId (required) + * @param functionId The ID of the function being checked (required) * @return ApiResponse<BaseResponseFunctionTaskResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1037,7 +1037,7 @@ public BaseResponseFunctionTaskResponse getAiDecompilationTaskStatus(@javax.anno 422 Invalid request parameters - */ - public ApiResponse getAiDecompilationTaskStatusWithHttpInfo(@javax.annotation.Nonnull Integer functionId) throws ApiException { + public ApiResponse getAiDecompilationTaskStatusWithHttpInfo(@javax.annotation.Nonnull Long functionId) throws ApiException { okhttp3.Call localVarCall = getAiDecompilationTaskStatusValidateBeforeCall(functionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1046,7 +1046,7 @@ public ApiResponse getAiDecompilationTaskStatu /** * Check the status of a function ai decompilation (asynchronously) * - * @param functionId (required) + * @param functionId The ID of the function being checked (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 @@ -1058,7 +1058,7 @@ public ApiResponse getAiDecompilationTaskStatu 422 Invalid request parameters - */ - public okhttp3.Call getAiDecompilationTaskStatusAsync(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAiDecompilationTaskStatusAsync(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAiDecompilationTaskStatusValidateBeforeCall(functionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1226,7 +1226,7 @@ public okhttp3.Call updateAiDecompilationCommentAsync(@javax.annotation.Nonnull } /** * Build call for upsertAiDecompilationRating - * @param functionId (required) + * @param functionId The ID of the function being rated (required) * @param upsertAiDecomplationRatingRequest (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1239,7 +1239,7 @@ public okhttp3.Call updateAiDecompilationCommentAsync(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public okhttp3.Call upsertAiDecompilationRatingCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call upsertAiDecompilationRatingCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1286,7 +1286,7 @@ public okhttp3.Call upsertAiDecompilationRatingCall(@javax.annotation.Nonnull In } @SuppressWarnings("rawtypes") - private okhttp3.Call upsertAiDecompilationRatingValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call upsertAiDecompilationRatingValidateBeforeCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling upsertAiDecompilationRating(Async)"); @@ -1304,7 +1304,7 @@ private okhttp3.Call upsertAiDecompilationRatingValidateBeforeCall(@javax.annota /** * Upsert rating for AI decompilation * - * @param functionId (required) + * @param functionId The ID of the function being rated (required) * @param upsertAiDecomplationRatingRequest (required) * @return BaseResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1316,7 +1316,7 @@ private okhttp3.Call upsertAiDecompilationRatingValidateBeforeCall(@javax.annota 422 Invalid request parameters - */ - public BaseResponse upsertAiDecompilationRating(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest) throws ApiException { + public BaseResponse upsertAiDecompilationRating(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest) throws ApiException { ApiResponse localVarResp = upsertAiDecompilationRatingWithHttpInfo(functionId, upsertAiDecomplationRatingRequest); return localVarResp.getData(); } @@ -1324,7 +1324,7 @@ public BaseResponse upsertAiDecompilationRating(@javax.annotation.Nonnull Intege /** * Upsert rating for AI decompilation * - * @param functionId (required) + * @param functionId The ID of the function being rated (required) * @param upsertAiDecomplationRatingRequest (required) * @return ApiResponse<BaseResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1336,7 +1336,7 @@ public BaseResponse upsertAiDecompilationRating(@javax.annotation.Nonnull Intege 422 Invalid request parameters - */ - public ApiResponse upsertAiDecompilationRatingWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest) throws ApiException { + public ApiResponse upsertAiDecompilationRatingWithHttpInfo(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest) throws ApiException { okhttp3.Call localVarCall = upsertAiDecompilationRatingValidateBeforeCall(functionId, upsertAiDecomplationRatingRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1345,7 +1345,7 @@ public ApiResponse upsertAiDecompilationRatingWithHttpInfo(@javax. /** * Upsert rating for AI decompilation (asynchronously) * - * @param functionId (required) + * @param functionId The ID of the function being rated (required) * @param upsertAiDecomplationRatingRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1358,7 +1358,7 @@ public ApiResponse upsertAiDecompilationRatingWithHttpInfo(@javax. 422 Invalid request parameters - */ - public okhttp3.Call upsertAiDecompilationRatingAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call upsertAiDecompilationRatingAsync(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = upsertAiDecompilationRatingValidateBeforeCall(functionId, upsertAiDecomplationRatingRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/src/main/java/ai/reveng/invoker/ApiClient.java b/src/main/java/ai/reveng/invoker/ApiClient.java index 9383d06..3899c24 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.9.0/java"); + setUserAgent("OpenAPI-Generator/2.9.1/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 a6f5015..5351705 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.9.0"; + public static final String VERSION = "2.9.1"; private static final AtomicReference defaultApiClient = new AtomicReference<>(); private static volatile Supplier apiClientFactory = ApiClient::new; diff --git a/src/test/java/ai/reveng/api/FunctionsAiDecompilationApiTest.java b/src/test/java/ai/reveng/api/FunctionsAiDecompilationApiTest.java index 9bd4939..8f3545c 100644 --- a/src/test/java/ai/reveng/api/FunctionsAiDecompilationApiTest.java +++ b/src/test/java/ai/reveng/api/FunctionsAiDecompilationApiTest.java @@ -63,7 +63,7 @@ public void createAiDecompilationCommentTest() throws ApiException { */ @Test public void createAiDecompilationTaskTest() throws ApiException { - Integer functionId = null; + Long functionId = null; BaseResponse response = api.createAiDecompilationTask(functionId); // TODO: test validations } @@ -104,7 +104,7 @@ public void getAiDecompilationCommentsTest() throws ApiException { */ @Test public void getAiDecompilationRatingTest() throws ApiException { - Integer functionId = null; + Long functionId = null; BaseResponseGetAiDecompilationRatingResponse response = api.getAiDecompilationRating(functionId); // TODO: test validations } @@ -118,7 +118,7 @@ public void getAiDecompilationRatingTest() throws ApiException { */ @Test public void getAiDecompilationTaskResultTest() throws ApiException { - Integer functionId = null; + Long functionId = null; Boolean summarise = null; Boolean generateInlineComments = null; BaseResponseGetAiDecompilationTask response = api.getAiDecompilationTaskResult(functionId, summarise, generateInlineComments); @@ -132,7 +132,7 @@ public void getAiDecompilationTaskResultTest() throws ApiException { */ @Test public void getAiDecompilationTaskStatusTest() throws ApiException { - Integer functionId = null; + Long functionId = null; BaseResponseFunctionTaskResponse response = api.getAiDecompilationTaskStatus(functionId); // TODO: test validations } @@ -160,7 +160,7 @@ public void updateAiDecompilationCommentTest() throws ApiException { */ @Test public void upsertAiDecompilationRatingTest() throws ApiException { - Integer functionId = null; + Long functionId = null; UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest = null; BaseResponse response = api.upsertAiDecompilationRating(functionId, upsertAiDecomplationRatingRequest); // TODO: test validations