From 2aff02a0036b8cc307a56f4a2f19dc78045c61ac Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 1 Oct 2026 07:12:22 +0000 Subject: [PATCH] Update SDK to version v4.67.1 - Generated from OpenAPI spec version v4.67.1 - Auto-generated by GitHub Actions --- .sdk-version | 2 +- README.md | 8 +- build.gradle | 4 +- build.sbt | 2 +- docs/DisassemblyOutputBody.md | 1 + docs/DynamicExecutionMetadata.md | 27 + docs/OperandXref.md | 15 + ...ExecutionMetadataDynamicExecutionResult.md | 17 + docs/RunDynamicExecutionInputBody.md | 40 ++ pom.xml | 2 +- .../ai/reveng/api/AnalysesBulkActionsApi.java | 9 + .../java/ai/reveng/api/AnalysesCoreApi.java | 36 ++ .../api/AnalysesResultsMetadataApi.java | 9 + .../java/ai/reveng/api/AnalysesXRefsApi.java | 9 + .../ai/reveng/api/AuthenticationUsersApi.java | 27 + src/main/java/ai/reveng/api/BinariesApi.java | 27 + .../ai/reveng/api/ExternalSourcesApi.java | 27 + .../api/FunctionsAiDecompilationApi.java | 18 + src/main/java/ai/reveng/api/SearchApi.java | 36 ++ .../java/ai/reveng/invoker/ApiClient.java | 2 +- .../java/ai/reveng/invoker/Configuration.java | 2 +- src/main/java/ai/reveng/invoker/JSON.java | 4 + .../reveng/model/DisassemblyOutputBody.java | 45 +- .../model/DynamicExecutionMetadata.java | 378 ++++++++++++ .../java/ai/reveng/model/OperandXref.java | 338 +++++++++++ ...ecutionMetadataDynamicExecutionResult.java | 395 +++++++++++++ .../model/RunDynamicExecutionInputBody.java | 544 ++++++++++++++++++ 27 files changed, 2013 insertions(+), 11 deletions(-) create mode 100644 docs/DynamicExecutionMetadata.md create mode 100644 docs/OperandXref.md create mode 100644 docs/OperationDynamicExecutionMetadataDynamicExecutionResult.md create mode 100644 docs/RunDynamicExecutionInputBody.md create mode 100644 src/main/java/ai/reveng/model/DynamicExecutionMetadata.java create mode 100644 src/main/java/ai/reveng/model/OperandXref.java create mode 100644 src/main/java/ai/reveng/model/OperationDynamicExecutionMetadataDynamicExecutionResult.java create mode 100644 src/main/java/ai/reveng/model/RunDynamicExecutionInputBody.java diff --git a/.sdk-version b/.sdk-version index 90009ae..c1e14a1 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v4.64.0 +v4.67.1 diff --git a/README.md b/README.md index 509dd48..077876a 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Add this dependency to your project's POM: ai.reveng sdk - 4.64.0 + 4.67.1 compile ``` @@ -31,7 +31,7 @@ repositories { } dependencies { - implementation "ai.reveng:sdk:4.64.0" + implementation "ai.reveng:sdk:4.67.1" } ``` @@ -597,6 +597,7 @@ Class | Method | HTTP request | Description - [Display](docs/Display.md) - [DnsQuery](docs/DnsQuery.md) - [DrakvufFileMetadata](docs/DrakvufFileMetadata.md) + - [DynamicExecutionMetadata](docs/DynamicExecutionMetadata.md) - [DynamicExecutionStatus](docs/DynamicExecutionStatus.md) - [DynamicExecutionStatusResponse](docs/DynamicExecutionStatusResponse.md) - [ELFImportModel](docs/ELFImportModel.md) @@ -804,10 +805,12 @@ Class | Method | HTTP request | Description - [NetworkingScanResult](docs/NetworkingScanResult.md) - [NetworkingVerification](docs/NetworkingVerification.md) - [OIDCCallbackInputBody](docs/OIDCCallbackInputBody.md) + - [OperandXref](docs/OperandXref.md) - [OperationBinaryExportMetadataBinaryExportResult](docs/OperationBinaryExportMetadataBinaryExportResult.md) - [OperationCreateMetadataCreateResult](docs/OperationCreateMetadataCreateResult.md) - [OperationCryptoExplainMetadataCryptoExplainResult](docs/OperationCryptoExplainMetadataCryptoExplainResult.md) - [OperationCryptoScanMetadataCryptoScanResult](docs/OperationCryptoScanMetadataCryptoScanResult.md) + - [OperationDynamicExecutionMetadataDynamicExecutionResult](docs/OperationDynamicExecutionMetadataDynamicExecutionResult.md) - [OperationExecutionExplainMetadataExecutionExplainResult](docs/OperationExecutionExplainMetadataExecutionExplainResult.md) - [OperationExecutionScanMetadataExecutionScanResult](docs/OperationExecutionScanMetadataExecutionScanResult.md) - [OperationFilesystemAnalyseMetadataFilesystemAnalyseResult](docs/OperationFilesystemAnalyseMetadataFilesystemAnalyseResult.md) @@ -889,6 +892,7 @@ Class | Method | HTTP request | Description - [ResultBody](docs/ResultBody.md) - [RevokeBody](docs/RevokeBody.md) - [RuleKind](docs/RuleKind.md) + - [RunDynamicExecutionInputBody](docs/RunDynamicExecutionInputBody.md) - [SSOProvider](docs/SSOProvider.md) - [SSOProvidersOutputBody](docs/SSOProvidersOutputBody.md) - [SandboxConfig](docs/SandboxConfig.md) diff --git a/build.gradle b/build.gradle index c64a58b..5e399f0 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'ai.reveng' -version = '4.64.0' +version = '4.67.1' @@ -174,7 +174,7 @@ mavenPublishing { // key, and signing without one fails the build. if (project.hasProperty("signingInMemoryKey")) signAllPublications() - coordinates("ai.reveng", "sdk", "4.64.0") + coordinates("ai.reveng", "sdk", "4.67.1") pom { name = "sdk" diff --git a/build.sbt b/build.sbt index 2ec4090..e3d9313 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "ai.reveng", name := "sdk", - version := "4.64.0", + version := "4.67.1", scalaVersion := "2.11.12", scalacOptions ++= Seq("-feature"), compile / javacOptions ++= Seq("-Xlint:deprecation"), diff --git a/docs/DisassemblyOutputBody.md b/docs/DisassemblyOutputBody.md index 91aba71..632c418 100644 --- a/docs/DisassemblyOutputBody.md +++ b/docs/DisassemblyOutputBody.md @@ -11,6 +11,7 @@ |**functionId** | **Long** | | | |**globalVariables** | **Object** | | [optional] | |**localVariables** | **Object** | | [optional] | +|**operandXrefs** | **List<OperandXref>** | Instruction operands that reference a pointer slot, sorted by instruction_vaddr, target_vaddr, pointed_vaddr. | [optional] | |**params** | **Object** | | [optional] | |**returnType** | **String** | | [optional] | |**returns** | **Boolean** | | | diff --git a/docs/DynamicExecutionMetadata.md b/docs/DynamicExecutionMetadata.md new file mode 100644 index 0000000..2c16c95 --- /dev/null +++ b/docs/DynamicExecutionMetadata.md @@ -0,0 +1,27 @@ + + +# DynamicExecutionMetadata + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**logs** | **AnalysisLogs** | Sandbox status log messages captured during the run. Empty when none have been captured yet. | | +|**status** | [**StatusEnum**](#StatusEnum) | Run status. UNINITIALISED means this analysis has never had a run triggered. | | + + + +## Enum: StatusEnum + +| Name | Value | +|---- | -----| +| UNINITIALISED | "UNINITIALISED" | +| PENDING | "PENDING" | +| RUNNING | "RUNNING" | +| COMPLETED | "COMPLETED" | +| FAILED | "FAILED" | +| UNKNOWN_DEFAULT_OPEN_API | "unknown_default_open_api" | + + + diff --git a/docs/OperandXref.md b/docs/OperandXref.md new file mode 100644 index 0000000..1d1e487 --- /dev/null +++ b/docs/OperandXref.md @@ -0,0 +1,15 @@ + + +# OperandXref + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**instructionVaddr** | **Long** | Vaddr of the instruction containing the operand. | | +|**pointedVaddr** | **Long** | Address stored in the pointer slot. Resolve this to a function, import or global to name the reference. | | +|**targetVaddr** | **Long** | Vaddr of the pointer slot the operand references. | | + + + diff --git a/docs/OperationDynamicExecutionMetadataDynamicExecutionResult.md b/docs/OperationDynamicExecutionMetadataDynamicExecutionResult.md new file mode 100644 index 0000000..64e7802 --- /dev/null +++ b/docs/OperationDynamicExecutionMetadataDynamicExecutionResult.md @@ -0,0 +1,17 @@ + + +# OperationDynamicExecutionMetadataDynamicExecutionResult + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**done** | **Boolean** | Whether the operation has reached a terminal state. | | +|**error** | **Status** | Failure detail, populated only when done is true and the operation failed. | [optional] | +|**metadata** | **DynamicExecutionMetadata** | In-flight information and details. | [optional] | +|**name** | **String** | API resource name. | | +|**response** | **Object** | Result, set only when done is true and the operation succeeded. | [optional] | + + + diff --git a/docs/RunDynamicExecutionInputBody.md b/docs/RunDynamicExecutionInputBody.md new file mode 100644 index 0000000..afc2bc9 --- /dev/null +++ b/docs/RunDynamicExecutionInputBody.md @@ -0,0 +1,40 @@ + + +# RunDynamicExecutionInputBody + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**archiveEntryPath** | **String** | Relative path of the entry inside the archive to execute | [optional] | +|**archivePassword** | **String** | Password for an encrypted archive | [optional] | +|**archiveSha256Hash** | **String** | SHA-256 of the archive object to send to the sandbox instead of the analysed binary | [optional] | +|**commandLineArgs** | **String** | Command-line arguments passed to the sample when the sandbox launches it | [optional] | +|**startMethod** | [**StartMethodEnum**](#StartMethodEnum) | How the sandbox launches the sample. Defaults to the sandbox's standard behaviour when omitted. | [optional] | +|**timeout** | [**TimeoutEnum**](#TimeoutEnum) | Maximum sandbox execution time in seconds | [optional] | + + + +## Enum: StartMethodEnum + +| Name | Value | +|---- | -----| +| STANDARD_USER_PROCESS | "standard_user_process" | +| ADMINISTRATOR_PROCESS | "administrator_process" | +| UNKNOWN_DEFAULT_OPEN_API | "unknown_default_open_api" | + + + +## Enum: TimeoutEnum + +| Name | Value | +|---- | -----| +| NUMBER_120 | 120l | +| NUMBER_180 | 180l | +| NUMBER_300 | 300l | +| NUMBER_600 | 600l | +| NUMBER_unknown_default_open_api | 11184809l | + + + diff --git a/pom.xml b/pom.xml index 7c83309..34c771e 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ sdk jar sdk - 4.64.0 + 4.67.1 https://github.com/RevEngAI/sdk-java Java SDK for the RevEng.AI API diff --git a/src/main/java/ai/reveng/api/AnalysesBulkActionsApi.java b/src/main/java/ai/reveng/api/AnalysesBulkActionsApi.java index 18be653..a6104e4 100644 --- a/src/main/java/ai/reveng/api/AnalysesBulkActionsApi.java +++ b/src/main/java/ai/reveng/api/AnalysesBulkActionsApi.java @@ -92,7 +92,9 @@ public void setCustomBaseUrl(String customBaseUrl) { 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call bulkAddAnalysisTagsCall(@javax.annotation.Nonnull AnalysisBulkAddTagsRequest analysisBulkAddTagsRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -138,6 +140,7 @@ public okhttp3.Call bulkAddAnalysisTagsCall(@javax.annotation.Nonnull AnalysisBu return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call bulkAddAnalysisTagsValidateBeforeCall(@javax.annotation.Nonnull AnalysisBulkAddTagsRequest analysisBulkAddTagsRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisBulkAddTagsRequest' is set @@ -162,7 +165,9 @@ private okhttp3.Call bulkAddAnalysisTagsValidateBeforeCall(@javax.annotation.Non 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public BaseResponseAnalysisBulkAddTagsResponse bulkAddAnalysisTags(@javax.annotation.Nonnull AnalysisBulkAddTagsRequest analysisBulkAddTagsRequest) throws ApiException { ApiResponse localVarResp = bulkAddAnalysisTagsWithHttpInfo(analysisBulkAddTagsRequest); return localVarResp.getData(); @@ -181,7 +186,9 @@ public BaseResponseAnalysisBulkAddTagsResponse bulkAddAnalysisTags(@javax.annota 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public ApiResponse bulkAddAnalysisTagsWithHttpInfo(@javax.annotation.Nonnull AnalysisBulkAddTagsRequest analysisBulkAddTagsRequest) throws ApiException { okhttp3.Call localVarCall = bulkAddAnalysisTagsValidateBeforeCall(analysisBulkAddTagsRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -202,7 +209,9 @@ public ApiResponse bulkAddAnalysisTagsW 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call bulkAddAnalysisTagsAsync(@javax.annotation.Nonnull AnalysisBulkAddTagsRequest analysisBulkAddTagsRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = bulkAddAnalysisTagsValidateBeforeCall(analysisBulkAddTagsRequest, _callback); diff --git a/src/main/java/ai/reveng/api/AnalysesCoreApi.java b/src/main/java/ai/reveng/api/AnalysesCoreApi.java index 7b350c1..7ffad78 100644 --- a/src/main/java/ai/reveng/api/AnalysesCoreApi.java +++ b/src/main/java/ai/reveng/api/AnalysesCoreApi.java @@ -1027,7 +1027,9 @@ public okhttp3.Call getAnalysisBytesAsync(@javax.annotation.Nonnull Long analysi 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getAnalysisFunctionMapCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -1073,6 +1075,7 @@ public okhttp3.Call getAnalysisFunctionMapCall(@javax.annotation.Nonnull Integer return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getAnalysisFunctionMapValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set @@ -1097,7 +1100,9 @@ private okhttp3.Call getAnalysisFunctionMapValidateBeforeCall(@javax.annotation. 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public BaseResponseAnalysisFunctionMapping getAnalysisFunctionMap(@javax.annotation.Nonnull Integer analysisId) throws ApiException { ApiResponse localVarResp = getAnalysisFunctionMapWithHttpInfo(analysisId); return localVarResp.getData(); @@ -1116,7 +1121,9 @@ public BaseResponseAnalysisFunctionMapping getAnalysisFunctionMap(@javax.annotat 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public ApiResponse getAnalysisFunctionMapWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { okhttp3.Call localVarCall = getAnalysisFunctionMapValidateBeforeCall(analysisId, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1137,7 +1144,9 @@ public ApiResponse getAnalysisFunctionMapWi 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getAnalysisFunctionMapAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAnalysisFunctionMapValidateBeforeCall(analysisId, _callback); @@ -1891,7 +1900,9 @@ public okhttp3.Call getAnalysisStatusAsync(@javax.annotation.Nonnull Integer ana 422 Unprocessable Entity - 500 Internal Server Error - + * @deprecated */ + @Deprecated public okhttp3.Call getDynamicExecutionReportCall(@javax.annotation.Nonnull Long analysisId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -1937,6 +1948,7 @@ public okhttp3.Call getDynamicExecutionReportCall(@javax.annotation.Nonnull Long return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getDynamicExecutionReportValidateBeforeCall(@javax.annotation.Nonnull Long analysisId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set @@ -1964,7 +1976,9 @@ private okhttp3.Call getDynamicExecutionReportValidateBeforeCall(@javax.annotati 422 Unprocessable Entity - 500 Internal Server Error - + * @deprecated */ + @Deprecated public AnalysisReport getDynamicExecutionReport(@javax.annotation.Nonnull Long analysisId) throws ApiException { ApiResponse localVarResp = getDynamicExecutionReportWithHttpInfo(analysisId); return localVarResp.getData(); @@ -1986,7 +2000,9 @@ public AnalysisReport getDynamicExecutionReport(@javax.annotation.Nonnull Long a 422 Unprocessable Entity - 500 Internal Server Error - + * @deprecated */ + @Deprecated public ApiResponse getDynamicExecutionReportWithHttpInfo(@javax.annotation.Nonnull Long analysisId) throws ApiException { okhttp3.Call localVarCall = getDynamicExecutionReportValidateBeforeCall(analysisId, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2010,7 +2026,9 @@ public ApiResponse getDynamicExecutionReportWithHttpInfo(@javax. 422 Unprocessable Entity - 500 Internal Server Error - + * @deprecated */ + @Deprecated public okhttp3.Call getDynamicExecutionReportAsync(@javax.annotation.Nonnull Long analysisId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getDynamicExecutionReportValidateBeforeCall(analysisId, _callback); @@ -2033,7 +2051,9 @@ public okhttp3.Call getDynamicExecutionReportAsync(@javax.annotation.Nonnull Lon 422 Unprocessable Entity - 500 Internal Server Error - + * @deprecated */ + @Deprecated public okhttp3.Call getDynamicExecutionStatusCall(@javax.annotation.Nonnull Long analysisId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -2079,6 +2099,7 @@ public okhttp3.Call getDynamicExecutionStatusCall(@javax.annotation.Nonnull Long return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getDynamicExecutionStatusValidateBeforeCall(@javax.annotation.Nonnull Long analysisId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set @@ -2105,7 +2126,9 @@ private okhttp3.Call getDynamicExecutionStatusValidateBeforeCall(@javax.annotati 422 Unprocessable Entity - 500 Internal Server Error - + * @deprecated */ + @Deprecated public DynamicExecutionStatusResponse getDynamicExecutionStatus(@javax.annotation.Nonnull Long analysisId) throws ApiException { ApiResponse localVarResp = getDynamicExecutionStatusWithHttpInfo(analysisId); return localVarResp.getData(); @@ -2126,7 +2149,9 @@ public DynamicExecutionStatusResponse getDynamicExecutionStatus(@javax.annotatio 422 Unprocessable Entity - 500 Internal Server Error - + * @deprecated */ + @Deprecated public ApiResponse getDynamicExecutionStatusWithHttpInfo(@javax.annotation.Nonnull Long analysisId) throws ApiException { okhttp3.Call localVarCall = getDynamicExecutionStatusValidateBeforeCall(analysisId, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2149,7 +2174,9 @@ public ApiResponse getDynamicExecutionStatusWith 422 Unprocessable Entity - 500 Internal Server Error - + * @deprecated */ + @Deprecated public okhttp3.Call getDynamicExecutionStatusAsync(@javax.annotation.Nonnull Long analysisId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getDynamicExecutionStatusValidateBeforeCall(analysisId, _callback); @@ -3285,7 +3312,9 @@ public okhttp3.Call updateAnalysisAsync(@javax.annotation.Nonnull Integer analys 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call updateAnalysisTagsCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateTagsRequest analysisUpdateTagsRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -3332,6 +3361,7 @@ public okhttp3.Call updateAnalysisTagsCall(@javax.annotation.Nonnull Integer ana return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call updateAnalysisTagsValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateTagsRequest analysisUpdateTagsRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set @@ -3362,7 +3392,9 @@ private okhttp3.Call updateAnalysisTagsValidateBeforeCall(@javax.annotation.Nonn 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public BaseResponseAnalysisUpdateTagsResponse updateAnalysisTags(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateTagsRequest analysisUpdateTagsRequest) throws ApiException { ApiResponse localVarResp = updateAnalysisTagsWithHttpInfo(analysisId, analysisUpdateTagsRequest); return localVarResp.getData(); @@ -3382,7 +3414,9 @@ public BaseResponseAnalysisUpdateTagsResponse updateAnalysisTags(@javax.annotati 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public ApiResponse updateAnalysisTagsWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateTagsRequest analysisUpdateTagsRequest) throws ApiException { okhttp3.Call localVarCall = updateAnalysisTagsValidateBeforeCall(analysisId, analysisUpdateTagsRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3404,7 +3438,9 @@ public ApiResponse updateAnalysisTagsWit 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call updateAnalysisTagsAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateTagsRequest analysisUpdateTagsRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateAnalysisTagsValidateBeforeCall(analysisId, analysisUpdateTagsRequest, _callback); diff --git a/src/main/java/ai/reveng/api/AnalysesResultsMetadataApi.java b/src/main/java/ai/reveng/api/AnalysesResultsMetadataApi.java index e567f62..e7fd6f4 100644 --- a/src/main/java/ai/reveng/api/AnalysesResultsMetadataApi.java +++ b/src/main/java/ai/reveng/api/AnalysesResultsMetadataApi.java @@ -576,7 +576,9 @@ public okhttp3.Call getFunctionsListAsync(@javax.annotation.Nonnull Integer anal 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getTagsCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -622,6 +624,7 @@ public okhttp3.Call getTagsCall(@javax.annotation.Nonnull Integer analysisId, fi return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getTagsValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set @@ -646,7 +649,9 @@ private okhttp3.Call getTagsValidateBeforeCall(@javax.annotation.Nonnull Integer 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public BaseResponseAnalysisTags getTags(@javax.annotation.Nonnull Integer analysisId) throws ApiException { ApiResponse localVarResp = getTagsWithHttpInfo(analysisId); return localVarResp.getData(); @@ -665,7 +670,9 @@ public BaseResponseAnalysisTags getTags(@javax.annotation.Nonnull Integer analys 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public ApiResponse getTagsWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { okhttp3.Call localVarCall = getTagsValidateBeforeCall(analysisId, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -686,7 +693,9 @@ public ApiResponse getTagsWithHttpInfo(@javax.annotati 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getTagsAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTagsValidateBeforeCall(analysisId, _callback); diff --git a/src/main/java/ai/reveng/api/AnalysesXRefsApi.java b/src/main/java/ai/reveng/api/AnalysesXRefsApi.java index afa1005..a1e4d6f 100644 --- a/src/main/java/ai/reveng/api/AnalysesXRefsApi.java +++ b/src/main/java/ai/reveng/api/AnalysesXRefsApi.java @@ -88,7 +88,9 @@ public void setCustomBaseUrl(String customBaseUrl) { 422 Invalid request parameters - 404 Xref or analysis cache not found - + * @deprecated */ + @Deprecated public okhttp3.Call getXrefByVaddrCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer vaddr, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -135,6 +137,7 @@ public okhttp3.Call getXrefByVaddrCall(@javax.annotation.Nonnull Integer analysi return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getXrefByVaddrValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer vaddr, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set @@ -166,7 +169,9 @@ private okhttp3.Call getXrefByVaddrValidateBeforeCall(@javax.annotation.Nonnull 422 Invalid request parameters - 404 Xref or analysis cache not found - + * @deprecated */ + @Deprecated public BaseResponseXrefResponse getXrefByVaddr(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer vaddr) throws ApiException { ApiResponse localVarResp = getXrefByVaddrWithHttpInfo(analysisId, vaddr); return localVarResp.getData(); @@ -187,7 +192,9 @@ public BaseResponseXrefResponse getXrefByVaddr(@javax.annotation.Nonnull Integer 422 Invalid request parameters - 404 Xref or analysis cache not found - + * @deprecated */ + @Deprecated public ApiResponse getXrefByVaddrWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer vaddr) throws ApiException { okhttp3.Call localVarCall = getXrefByVaddrValidateBeforeCall(analysisId, vaddr, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -210,7 +217,9 @@ public ApiResponse getXrefByVaddrWithHttpInfo(@javax.a 422 Invalid request parameters - 404 Xref or analysis cache not found - + * @deprecated */ + @Deprecated public okhttp3.Call getXrefByVaddrAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer vaddr, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getXrefByVaddrValidateBeforeCall(analysisId, vaddr, _callback); diff --git a/src/main/java/ai/reveng/api/AuthenticationUsersApi.java b/src/main/java/ai/reveng/api/AuthenticationUsersApi.java index d9959d9..e33fdee 100644 --- a/src/main/java/ai/reveng/api/AuthenticationUsersApi.java +++ b/src/main/java/ai/reveng/api/AuthenticationUsersApi.java @@ -92,7 +92,9 @@ public void setCustomBaseUrl(String customBaseUrl) { 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getUserCall(@javax.annotation.Nonnull Integer userId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -138,6 +140,7 @@ public okhttp3.Call getUserCall(@javax.annotation.Nonnull Integer userId, final return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getUserValidateBeforeCall(@javax.annotation.Nonnull Integer userId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userId' is set @@ -162,7 +165,9 @@ private okhttp3.Call getUserValidateBeforeCall(@javax.annotation.Nonnull Integer 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public BaseResponseGetPublicUserResponse getUser(@javax.annotation.Nonnull Integer userId) throws ApiException { ApiResponse localVarResp = getUserWithHttpInfo(userId); return localVarResp.getData(); @@ -181,7 +186,9 @@ public BaseResponseGetPublicUserResponse getUser(@javax.annotation.Nonnull Integ 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public ApiResponse getUserWithHttpInfo(@javax.annotation.Nonnull Integer userId) throws ApiException { okhttp3.Call localVarCall = getUserValidateBeforeCall(userId, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -202,7 +209,9 @@ public ApiResponse getUserWithHttpInfo(@javax 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getUserAsync(@javax.annotation.Nonnull Integer userId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserValidateBeforeCall(userId, _callback); @@ -222,7 +231,9 @@ public okhttp3.Call getUserAsync(@javax.annotation.Nonnull Integer userId, final 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getUserActivityCall(final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -267,6 +278,7 @@ public okhttp3.Call getUserActivityCall(final ApiCallback _callback) throws ApiE return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getUserActivityValidateBeforeCall(final ApiCallback _callback) throws ApiException { return getUserActivityCall(_callback); @@ -285,7 +297,9 @@ private okhttp3.Call getUserActivityValidateBeforeCall(final ApiCallback _callba 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public BaseResponseListUserActivityResponse getUserActivity() throws ApiException { ApiResponse localVarResp = getUserActivityWithHttpInfo(); return localVarResp.getData(); @@ -303,7 +317,9 @@ public BaseResponseListUserActivityResponse getUserActivity() throws ApiExceptio 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public ApiResponse getUserActivityWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getUserActivityValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -323,7 +339,9 @@ public ApiResponse getUserActivityWithHttp 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getUserActivityAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserActivityValidateBeforeCall(_callback); @@ -344,7 +362,9 @@ public okhttp3.Call getUserActivityAsync(final ApiCallback 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call submitUserFeedbackCall(@javax.annotation.Nonnull SubmitUserFeedbackRequest submitUserFeedbackRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -390,6 +410,7 @@ public okhttp3.Call submitUserFeedbackCall(@javax.annotation.Nonnull SubmitUserF return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call submitUserFeedbackValidateBeforeCall(@javax.annotation.Nonnull SubmitUserFeedbackRequest submitUserFeedbackRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'submitUserFeedbackRequest' is set @@ -414,7 +435,9 @@ private okhttp3.Call submitUserFeedbackValidateBeforeCall(@javax.annotation.Nonn 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public BaseResponse submitUserFeedback(@javax.annotation.Nonnull SubmitUserFeedbackRequest submitUserFeedbackRequest) throws ApiException { ApiResponse localVarResp = submitUserFeedbackWithHttpInfo(submitUserFeedbackRequest); return localVarResp.getData(); @@ -433,7 +456,9 @@ public BaseResponse submitUserFeedback(@javax.annotation.Nonnull SubmitUserFeedb 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public ApiResponse submitUserFeedbackWithHttpInfo(@javax.annotation.Nonnull SubmitUserFeedbackRequest submitUserFeedbackRequest) throws ApiException { okhttp3.Call localVarCall = submitUserFeedbackValidateBeforeCall(submitUserFeedbackRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -454,7 +479,9 @@ public ApiResponse submitUserFeedbackWithHttpInfo(@javax.annotatio 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call submitUserFeedbackAsync(@javax.annotation.Nonnull SubmitUserFeedbackRequest submitUserFeedbackRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = submitUserFeedbackValidateBeforeCall(submitUserFeedbackRequest, _callback); diff --git a/src/main/java/ai/reveng/api/BinariesApi.java b/src/main/java/ai/reveng/api/BinariesApi.java index 06b67a8..6306c60 100644 --- a/src/main/java/ai/reveng/api/BinariesApi.java +++ b/src/main/java/ai/reveng/api/BinariesApi.java @@ -101,7 +101,9 @@ public void setCustomBaseUrl(String customBaseUrl) { 200 Download file - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call downloadZippedBinaryCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -148,6 +150,7 @@ public okhttp3.Call downloadZippedBinaryCall(@javax.annotation.Nonnull Integer b return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call downloadZippedBinaryValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'binaryId' is set @@ -172,7 +175,9 @@ private okhttp3.Call downloadZippedBinaryValidateBeforeCall(@javax.annotation.No 200 Download file - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public File downloadZippedBinary(@javax.annotation.Nonnull Integer binaryId) throws ApiException { ApiResponse localVarResp = downloadZippedBinaryWithHttpInfo(binaryId); return localVarResp.getData(); @@ -191,7 +196,9 @@ public File downloadZippedBinary(@javax.annotation.Nonnull Integer binaryId) thr 200 Download file - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public ApiResponse downloadZippedBinaryWithHttpInfo(@javax.annotation.Nonnull Integer binaryId) throws ApiException { okhttp3.Call localVarCall = downloadZippedBinaryValidateBeforeCall(binaryId, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -212,7 +219,9 @@ public ApiResponse downloadZippedBinaryWithHttpInfo(@javax.annotation.Nonn 200 Download file - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call downloadZippedBinaryAsync(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = downloadZippedBinaryValidateBeforeCall(binaryId, _callback); @@ -799,7 +808,9 @@ public okhttp3.Call getBinaryAdditionalDetails_0Async(@javax.annotation.Nonnull 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getBinaryDetailsCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -845,6 +856,7 @@ public okhttp3.Call getBinaryDetailsCall(@javax.annotation.Nonnull Integer binar return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getBinaryDetailsValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'binaryId' is set @@ -869,7 +881,9 @@ private okhttp3.Call getBinaryDetailsValidateBeforeCall(@javax.annotation.Nonnul 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public BaseResponseBinaryDetailsResponse getBinaryDetails(@javax.annotation.Nonnull Integer binaryId) throws ApiException { ApiResponse localVarResp = getBinaryDetailsWithHttpInfo(binaryId); return localVarResp.getData(); @@ -888,7 +902,9 @@ public BaseResponseBinaryDetailsResponse getBinaryDetails(@javax.annotation.Nonn 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public ApiResponse getBinaryDetailsWithHttpInfo(@javax.annotation.Nonnull Integer binaryId) throws ApiException { okhttp3.Call localVarCall = getBinaryDetailsValidateBeforeCall(binaryId, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -909,7 +925,9 @@ public ApiResponse getBinaryDetailsWithHttpIn 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getBinaryDetailsAsync(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getBinaryDetailsValidateBeforeCall(binaryId, _callback); @@ -1070,7 +1088,9 @@ public okhttp3.Call getBinaryDieInfoAsync(@javax.annotation.Nonnull Integer bina 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getBinaryExternalsCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -1116,6 +1136,7 @@ public okhttp3.Call getBinaryExternalsCall(@javax.annotation.Nonnull Integer bin return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getBinaryExternalsValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'binaryId' is set @@ -1140,7 +1161,9 @@ private okhttp3.Call getBinaryExternalsValidateBeforeCall(@javax.annotation.Nonn 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public BaseResponseBinaryExternalsResponse getBinaryExternals(@javax.annotation.Nonnull Integer binaryId) throws ApiException { ApiResponse localVarResp = getBinaryExternalsWithHttpInfo(binaryId); return localVarResp.getData(); @@ -1159,7 +1182,9 @@ public BaseResponseBinaryExternalsResponse getBinaryExternals(@javax.annotation. 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public ApiResponse getBinaryExternalsWithHttpInfo(@javax.annotation.Nonnull Integer binaryId) throws ApiException { okhttp3.Call localVarCall = getBinaryExternalsValidateBeforeCall(binaryId, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1180,7 +1205,9 @@ public ApiResponse getBinaryExternalsWithHt 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getBinaryExternalsAsync(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getBinaryExternalsValidateBeforeCall(binaryId, _callback); diff --git a/src/main/java/ai/reveng/api/ExternalSourcesApi.java b/src/main/java/ai/reveng/api/ExternalSourcesApi.java index b23b9e5..4d05a19 100644 --- a/src/main/java/ai/reveng/api/ExternalSourcesApi.java +++ b/src/main/java/ai/reveng/api/ExternalSourcesApi.java @@ -90,7 +90,9 @@ public void setCustomBaseUrl(String customBaseUrl) { 422 Invalid request parameters - 409 Request already queued - + * @deprecated */ + @Deprecated public okhttp3.Call createExternalTaskVtCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -136,6 +138,7 @@ public okhttp3.Call createExternalTaskVtCall(@javax.annotation.Nonnull Integer a return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call createExternalTaskVtValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set @@ -161,7 +164,9 @@ private okhttp3.Call createExternalTaskVtValidateBeforeCall(@javax.annotation.No 422 Invalid request parameters - 409 Request already queued - + * @deprecated */ + @Deprecated public BaseResponseStr createExternalTaskVt(@javax.annotation.Nonnull Integer analysisId) throws ApiException { ApiResponse localVarResp = createExternalTaskVtWithHttpInfo(analysisId); return localVarResp.getData(); @@ -181,7 +186,9 @@ public BaseResponseStr createExternalTaskVt(@javax.annotation.Nonnull Integer an 422 Invalid request parameters - 409 Request already queued - + * @deprecated */ + @Deprecated public ApiResponse createExternalTaskVtWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { okhttp3.Call localVarCall = createExternalTaskVtValidateBeforeCall(analysisId, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -203,7 +210,9 @@ public ApiResponse createExternalTaskVtWithHttpInfo(@javax.anno 422 Invalid request parameters - 409 Request already queued - + * @deprecated */ + @Deprecated public okhttp3.Call createExternalTaskVtAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createExternalTaskVtValidateBeforeCall(analysisId, _callback); @@ -225,7 +234,9 @@ public okhttp3.Call createExternalTaskVtAsync(@javax.annotation.Nonnull Integer 422 Invalid request parameters - 404 No data retrieved from VirusTotal for the given analysis_id - + * @deprecated */ + @Deprecated public okhttp3.Call getVtDataCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -271,6 +282,7 @@ public okhttp3.Call getVtDataCall(@javax.annotation.Nonnull Integer analysisId, return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getVtDataValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set @@ -296,7 +308,9 @@ private okhttp3.Call getVtDataValidateBeforeCall(@javax.annotation.Nonnull Integ 422 Invalid request parameters - 404 No data retrieved from VirusTotal for the given analysis_id - + * @deprecated */ + @Deprecated public BaseResponseExternalResponse getVtData(@javax.annotation.Nonnull Integer analysisId) throws ApiException { ApiResponse localVarResp = getVtDataWithHttpInfo(analysisId); return localVarResp.getData(); @@ -316,7 +330,9 @@ public BaseResponseExternalResponse getVtData(@javax.annotation.Nonnull Integer 422 Invalid request parameters - 404 No data retrieved from VirusTotal for the given analysis_id - + * @deprecated */ + @Deprecated public ApiResponse getVtDataWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { okhttp3.Call localVarCall = getVtDataValidateBeforeCall(analysisId, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -338,7 +354,9 @@ public ApiResponse getVtDataWithHttpInfo(@javax.an 422 Invalid request parameters - 404 No data retrieved from VirusTotal for the given analysis_id - + * @deprecated */ + @Deprecated public okhttp3.Call getVtDataAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getVtDataValidateBeforeCall(analysisId, _callback); @@ -359,7 +377,9 @@ public okhttp3.Call getVtDataAsync(@javax.annotation.Nonnull Integer analysisId, 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getVtTaskStatusCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -405,6 +425,7 @@ public okhttp3.Call getVtTaskStatusCall(@javax.annotation.Nonnull Integer analys return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getVtTaskStatusValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set @@ -429,7 +450,9 @@ private okhttp3.Call getVtTaskStatusValidateBeforeCall(@javax.annotation.Nonnull 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public BaseResponseTaskResponse getVtTaskStatus(@javax.annotation.Nonnull Integer analysisId) throws ApiException { ApiResponse localVarResp = getVtTaskStatusWithHttpInfo(analysisId); return localVarResp.getData(); @@ -448,7 +471,9 @@ public BaseResponseTaskResponse getVtTaskStatus(@javax.annotation.Nonnull Intege 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public ApiResponse getVtTaskStatusWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { okhttp3.Call localVarCall = getVtTaskStatusValidateBeforeCall(analysisId, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -469,7 +494,9 @@ public ApiResponse getVtTaskStatusWithHttpInfo(@javax. 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getVtTaskStatusAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getVtTaskStatusValidateBeforeCall(analysisId, _callback); diff --git a/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java b/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java index 04923e1..cb37a2a 100644 --- a/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java +++ b/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java @@ -853,7 +853,9 @@ public okhttp3.Call getAiDecompilationInlineCommentsStatusAsync(@javax.annotatio 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getAiDecompilationRatingCall(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -899,6 +901,7 @@ public okhttp3.Call getAiDecompilationRatingCall(@javax.annotation.Nonnull Long return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getAiDecompilationRatingValidateBeforeCall(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set @@ -923,7 +926,9 @@ private okhttp3.Call getAiDecompilationRatingValidateBeforeCall(@javax.annotatio 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public BaseResponseUnionGetAiDecompilationRatingResponseNoneType getAiDecompilationRating(@javax.annotation.Nonnull Long functionId) throws ApiException { ApiResponse localVarResp = getAiDecompilationRatingWithHttpInfo(functionId); return localVarResp.getData(); @@ -942,7 +947,9 @@ public BaseResponseUnionGetAiDecompilationRatingResponseNoneType getAiDecompilat 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public ApiResponse getAiDecompilationRatingWithHttpInfo(@javax.annotation.Nonnull Long functionId) throws ApiException { okhttp3.Call localVarCall = getAiDecompilationRatingValidateBeforeCall(functionId, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -963,7 +970,9 @@ public ApiResponse ge 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getAiDecompilationRatingAsync(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAiDecompilationRatingValidateBeforeCall(functionId, _callback); @@ -1997,7 +2006,9 @@ public okhttp3.Call streamAiDecompilationAsync(@javax.annotation.Nonnull Long fu 201 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call upsertAiDecompilationRatingCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -2044,6 +2055,7 @@ public okhttp3.Call upsertAiDecompilationRatingCall(@javax.annotation.Nonnull Lo return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") 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 @@ -2074,7 +2086,9 @@ private okhttp3.Call upsertAiDecompilationRatingValidateBeforeCall(@javax.annota 201 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public BaseResponse upsertAiDecompilationRating(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest) throws ApiException { ApiResponse localVarResp = upsertAiDecompilationRatingWithHttpInfo(functionId, upsertAiDecomplationRatingRequest); return localVarResp.getData(); @@ -2094,7 +2108,9 @@ public BaseResponse upsertAiDecompilationRating(@javax.annotation.Nonnull Long f 201 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated 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(); @@ -2116,7 +2132,9 @@ public ApiResponse upsertAiDecompilationRatingWithHttpInfo(@javax. 201 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated 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); diff --git a/src/main/java/ai/reveng/api/SearchApi.java b/src/main/java/ai/reveng/api/SearchApi.java index 4863508..1a68c78 100644 --- a/src/main/java/ai/reveng/api/SearchApi.java +++ b/src/main/java/ai/reveng/api/SearchApi.java @@ -99,7 +99,9 @@ public void setCustomBaseUrl(String customBaseUrl) { 200 Successful Response - 422 You must provide at least one of the filters; partial_name, partial_sha256, tags or model_name to search - + * @deprecated */ + @Deprecated 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 @@ -180,6 +182,7 @@ public okhttp3.Call searchBinariesCall(@javax.annotation.Nullable Integer page, return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @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, @javax.annotation.Nullable List userIds, final ApiCallback _callback) throws ApiException { return searchBinariesCall(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, excludeBinaryId, userIds, _callback); @@ -207,7 +210,9 @@ private okhttp3.Call searchBinariesValidateBeforeCall(@javax.annotation.Nullable 200 Successful Response - 422 You must provide at least one of the filters; partial_name, partial_sha256, tags or model_name to search - + * @deprecated */ + @Deprecated 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(); @@ -234,7 +239,9 @@ public BaseResponseBinarySearchResponse searchBinaries(@javax.annotation.Nullabl 200 Successful Response - 422 You must provide at least one of the filters; partial_name, partial_sha256, tags or model_name to search - + * @deprecated */ + @Deprecated 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(); @@ -263,7 +270,9 @@ public ApiResponse searchBinariesWithHttpInfo( 200 Successful Response - 422 You must provide at least one of the filters; partial_name, partial_sha256, tags or model_name to search - + * @deprecated */ + @Deprecated 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, userIds, _callback); @@ -293,7 +302,9 @@ public okhttp3.Call searchBinariesAsync(@javax.annotation.Nullable Integer page, 200 Successful Response - 422 You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256 or tags to search - + * @deprecated */ + @Deprecated 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 @@ -378,6 +389,7 @@ public okhttp3.Call searchCollectionsCall(@javax.annotation.Nullable Integer pag return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @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, @javax.annotation.Nullable List userIds, final ApiCallback _callback) throws ApiException { return searchCollectionsCall(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection, userIds, _callback); @@ -406,7 +418,9 @@ private okhttp3.Call searchCollectionsValidateBeforeCall(@javax.annotation.Nulla 200 Successful Response - 422 You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256 or tags to search - + * @deprecated */ + @Deprecated 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(); @@ -434,7 +448,9 @@ public BaseResponseCollectionSearchResponse searchCollections(@javax.annotation. 200 Successful Response - 422 You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256 or tags to search - + * @deprecated */ + @Deprecated 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(); @@ -464,7 +480,9 @@ public ApiResponse searchCollectionsWithHt 200 Successful Response - 422 You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256 or tags to search - + * @deprecated */ + @Deprecated 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, userIds, _callback); @@ -488,7 +506,9 @@ public okhttp3.Call searchCollectionsAsync(@javax.annotation.Nullable Integer pa 200 Successful Response - 422 You must provide at least one of the filters; partial_name, or model_name to search - + * @deprecated */ + @Deprecated public okhttp3.Call searchFunctionsCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String modelName, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -549,6 +569,7 @@ public okhttp3.Call searchFunctionsCall(@javax.annotation.Nullable Integer page, return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call searchFunctionsValidateBeforeCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String modelName, final ApiCallback _callback) throws ApiException { return searchFunctionsCall(page, pageSize, partialName, modelName, _callback); @@ -571,7 +592,9 @@ private okhttp3.Call searchFunctionsValidateBeforeCall(@javax.annotation.Nullabl 200 Successful Response - 422 You must provide at least one of the filters; partial_name, or model_name to search - + * @deprecated */ + @Deprecated public BaseResponseFunctionSearchResponse searchFunctions(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String modelName) throws ApiException { ApiResponse localVarResp = searchFunctionsWithHttpInfo(page, pageSize, partialName, modelName); return localVarResp.getData(); @@ -593,7 +616,9 @@ public BaseResponseFunctionSearchResponse searchFunctions(@javax.annotation.Null 200 Successful Response - 422 You must provide at least one of the filters; partial_name, or model_name to search - + * @deprecated */ + @Deprecated public ApiResponse searchFunctionsWithHttpInfo(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String modelName) throws ApiException { okhttp3.Call localVarCall = searchFunctionsValidateBeforeCall(page, pageSize, partialName, modelName, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -617,7 +642,9 @@ public ApiResponse searchFunctionsWithHttpIn 200 Successful Response - 422 You must provide at least one of the filters; partial_name, or model_name to search - + * @deprecated */ + @Deprecated public okhttp3.Call searchFunctionsAsync(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String modelName, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchFunctionsValidateBeforeCall(page, pageSize, partialName, modelName, _callback); @@ -640,7 +667,9 @@ public okhttp3.Call searchFunctionsAsync(@javax.annotation.Nullable Integer page 200 Successful Response - 422 You must provide a partial_name to search and it must be greater than 3 characters - + * @deprecated */ + @Deprecated public okhttp3.Call searchTagsCall(@javax.annotation.Nonnull String partialName, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -697,6 +726,7 @@ public okhttp3.Call searchTagsCall(@javax.annotation.Nonnull String partialName, return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call searchTagsValidateBeforeCall(@javax.annotation.Nonnull String partialName, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { // verify the required parameter 'partialName' is set @@ -723,7 +753,9 @@ private okhttp3.Call searchTagsValidateBeforeCall(@javax.annotation.Nonnull Stri 200 Successful Response - 422 You must provide a partial_name to search and it must be greater than 3 characters - + * @deprecated */ + @Deprecated public BaseResponseTagSearchResponse searchTags(@javax.annotation.Nonnull String partialName, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { ApiResponse localVarResp = searchTagsWithHttpInfo(partialName, page, pageSize); return localVarResp.getData(); @@ -744,7 +776,9 @@ public BaseResponseTagSearchResponse searchTags(@javax.annotation.Nonnull String 200 Successful Response - 422 You must provide a partial_name to search and it must be greater than 3 characters - + * @deprecated */ + @Deprecated public ApiResponse searchTagsWithHttpInfo(@javax.annotation.Nonnull String partialName, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { okhttp3.Call localVarCall = searchTagsValidateBeforeCall(partialName, page, pageSize, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -767,7 +801,9 @@ public ApiResponse searchTagsWithHttpInfo(@javax. 200 Successful Response - 422 You must provide a partial_name to search and it must be greater than 3 characters - + * @deprecated */ + @Deprecated public okhttp3.Call searchTagsAsync(@javax.annotation.Nonnull String partialName, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchTagsValidateBeforeCall(partialName, page, pageSize, _callback); diff --git a/src/main/java/ai/reveng/invoker/ApiClient.java b/src/main/java/ai/reveng/invoker/ApiClient.java index 2c9b11f..194614e 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/4.64.0/java"); + setUserAgent("OpenAPI-Generator/4.67.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 5816783..dbe27a0 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 = "4.64.0"; + public static final String VERSION = "4.67.1"; private static final AtomicReference defaultApiClient = new AtomicReference<>(); private static volatile Supplier apiClientFactory = ApiClient::new; diff --git a/src/main/java/ai/reveng/invoker/JSON.java b/src/main/java/ai/reveng/invoker/JSON.java index 6b4e346..63cac34 100644 --- a/src/main/java/ai/reveng/invoker/JSON.java +++ b/src/main/java/ai/reveng/invoker/JSON.java @@ -441,6 +441,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.DisassemblyOutputBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.DnsQuery.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.DrakvufFileMetadata.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.DynamicExecutionMetadata.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.DynamicExecutionStatusResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.ELFImportModel.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.ELFModel.CustomTypeAdapterFactory()); @@ -639,10 +640,12 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.NetworkingScanResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.NetworkingVerification.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.OIDCCallbackInputBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.OperandXref.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.OperationBinaryExportMetadataBinaryExportResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.OperationCreateMetadataCreateResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.OperationCryptoExplainMetadataCryptoExplainResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.OperationCryptoScanMetadataCryptoScanResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.OperationDynamicExecutionMetadataDynamicExecutionResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.OperationExecutionExplainMetadataExecutionExplainResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.OperationExecutionScanMetadataExecutionScanResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.OperationFilesystemAnalyseMetadataFilesystemAnalyseResult.CustomTypeAdapterFactory()); @@ -720,6 +723,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.ResolvedEntity.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.ResultBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.RevokeBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.RunDynamicExecutionInputBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.SSOProvider.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.SSOProvidersOutputBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.SandboxConfig.CustomTypeAdapterFactory()); diff --git a/src/main/java/ai/reveng/model/DisassemblyOutputBody.java b/src/main/java/ai/reveng/model/DisassemblyOutputBody.java index bd38072..4be494a 100644 --- a/src/main/java/ai/reveng/model/DisassemblyOutputBody.java +++ b/src/main/java/ai/reveng/model/DisassemblyOutputBody.java @@ -13,13 +13,16 @@ package ai.reveng.model; import java.util.Objects; +import ai.reveng.model.OperandXref; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; +import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -70,6 +73,11 @@ public class DisassemblyOutputBody { @javax.annotation.Nullable private Object localVariables = null; + public static final String SERIALIZED_NAME_OPERAND_XREFS = "operand_xrefs"; + @SerializedName(SERIALIZED_NAME_OPERAND_XREFS) + @javax.annotation.Nullable + private List operandXrefs; + public static final String SERIALIZED_NAME_PARAMS = "params"; @SerializedName(SERIALIZED_NAME_PARAMS) @javax.annotation.Nullable @@ -164,6 +172,33 @@ public void setLocalVariables(@javax.annotation.Nullable Object localVariables) } + public DisassemblyOutputBody operandXrefs(@javax.annotation.Nullable List operandXrefs) { + this.operandXrefs = operandXrefs; + return this; + } + + public DisassemblyOutputBody addOperandXrefsItem(OperandXref operandXrefsItem) { + if (this.operandXrefs == null) { + this.operandXrefs = new ArrayList<>(); + } + this.operandXrefs.add(operandXrefsItem); + return this; + } + + /** + * Instruction operands that reference a pointer slot, sorted by instruction_vaddr, target_vaddr, pointed_vaddr. + * @return operandXrefs + */ + @javax.annotation.Nullable + public List getOperandXrefs() { + return operandXrefs; + } + + public void setOperandXrefs(@javax.annotation.Nullable List operandXrefs) { + this.operandXrefs = operandXrefs; + } + + public DisassemblyOutputBody params(@javax.annotation.Nullable Object params) { this.params = params; return this; @@ -279,6 +314,7 @@ public boolean equals(Object o) { Objects.equals(this.functionId, disassemblyOutputBody.functionId) && Objects.equals(this.globalVariables, disassemblyOutputBody.globalVariables) && Objects.equals(this.localVariables, disassemblyOutputBody.localVariables) && + Objects.equals(this.operandXrefs, disassemblyOutputBody.operandXrefs) && Objects.equals(this.params, disassemblyOutputBody.params) && Objects.equals(this.returnType, disassemblyOutputBody.returnType) && Objects.equals(this.returns, disassemblyOutputBody.returns)&& @@ -291,7 +327,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(basicBlocks, functionId, globalVariables, localVariables, params, returnType, returns, additionalProperties); + return Objects.hash(basicBlocks, functionId, globalVariables, localVariables, operandXrefs, params, returnType, returns, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -309,6 +345,7 @@ public String toString() { sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); sb.append(" globalVariables: ").append(toIndentedString(globalVariables)).append("\n"); sb.append(" localVariables: ").append(toIndentedString(localVariables)).append("\n"); + sb.append(" operandXrefs: ").append(toIndentedString(operandXrefs)).append("\n"); sb.append(" params: ").append(toIndentedString(params)).append("\n"); sb.append(" returnType: ").append(toIndentedString(returnType)).append("\n"); sb.append(" returns: ").append(toIndentedString(returns)).append("\n"); @@ -331,7 +368,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("basic_blocks", "function_id", "global_variables", "local_variables", "params", "return_type", "returns")); + openapiFields = new HashSet(Arrays.asList("basic_blocks", "function_id", "global_variables", "local_variables", "operand_xrefs", "params", "return_type", "returns")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("function_id", "returns")); @@ -357,6 +394,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("operand_xrefs") != null && !jsonObj.get("operand_xrefs").isJsonNull() && !jsonObj.get("operand_xrefs").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `operand_xrefs` to be an array in the JSON string but got `%s`", jsonObj.get("operand_xrefs").toString())); + } if ((jsonObj.get("return_type") != null && !jsonObj.get("return_type").isJsonNull()) && !jsonObj.get("return_type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `return_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("return_type").toString())); } diff --git a/src/main/java/ai/reveng/model/DynamicExecutionMetadata.java b/src/main/java/ai/reveng/model/DynamicExecutionMetadata.java new file mode 100644 index 0000000..a59105d --- /dev/null +++ b/src/main/java/ai/reveng/model/DynamicExecutionMetadata.java @@ -0,0 +1,378 @@ +/* + * RevEng.AI API + * RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package ai.reveng.model; + +import java.util.Objects; +import ai.reveng.model.AnalysisLogs; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import ai.reveng.invoker.JSON; + +/** + * DynamicExecutionMetadata + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class DynamicExecutionMetadata { + public static final String SERIALIZED_NAME_LOGS = "logs"; + @SerializedName(SERIALIZED_NAME_LOGS) + @javax.annotation.Nonnull + private AnalysisLogs logs; + + /** + * Run status. UNINITIALISED means this analysis has never had a run triggered. + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + UNINITIALISED("UNINITIALISED"), + + PENDING("PENDING"), + + RUNNING("RUNNING"), + + COMPLETED("COMPLETED"), + + FAILED("FAILED"), + + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return UNKNOWN_DEFAULT_OPEN_API; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + StatusEnum.fromValue(value); + } + } + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private StatusEnum status; + + public DynamicExecutionMetadata() { + } + + public DynamicExecutionMetadata logs(@javax.annotation.Nonnull AnalysisLogs logs) { + this.logs = logs; + return this; + } + + /** + * Sandbox status log messages captured during the run. Empty when none have been captured yet. + * @return logs + */ + @javax.annotation.Nonnull + public AnalysisLogs getLogs() { + return logs; + } + + public void setLogs(@javax.annotation.Nonnull AnalysisLogs logs) { + this.logs = logs; + } + + + public DynamicExecutionMetadata status(@javax.annotation.Nonnull StatusEnum status) { + this.status = status; + return this; + } + + /** + * Run status. UNINITIALISED means this analysis has never had a run triggered. + * @return status + */ + @javax.annotation.Nonnull + public StatusEnum getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull StatusEnum status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the DynamicExecutionMetadata instance itself + */ + public DynamicExecutionMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DynamicExecutionMetadata dynamicExecutionMetadata = (DynamicExecutionMetadata) o; + return Objects.equals(this.logs, dynamicExecutionMetadata.logs) && + Objects.equals(this.status, dynamicExecutionMetadata.status)&& + Objects.equals(this.additionalProperties, dynamicExecutionMetadata.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(logs, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DynamicExecutionMetadata {\n"); + sb.append(" logs: ").append(toIndentedString(logs)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("logs", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("logs", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to DynamicExecutionMetadata + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!DynamicExecutionMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in DynamicExecutionMetadata is not found in the empty JSON string", DynamicExecutionMetadata.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DynamicExecutionMetadata.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + // validate the required field `status` + StatusEnum.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DynamicExecutionMetadata.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DynamicExecutionMetadata' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DynamicExecutionMetadata.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DynamicExecutionMetadata value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public DynamicExecutionMetadata read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + DynamicExecutionMetadata instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of DynamicExecutionMetadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of DynamicExecutionMetadata + * @throws IOException if the JSON string is invalid with respect to DynamicExecutionMetadata + */ + public static DynamicExecutionMetadata fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DynamicExecutionMetadata.class); + } + + /** + * Convert an instance of DynamicExecutionMetadata to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/ai/reveng/model/OperandXref.java b/src/main/java/ai/reveng/model/OperandXref.java new file mode 100644 index 0000000..f129dff --- /dev/null +++ b/src/main/java/ai/reveng/model/OperandXref.java @@ -0,0 +1,338 @@ +/* + * RevEng.AI API + * RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package ai.reveng.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import ai.reveng.invoker.JSON; + +/** + * OperandXref + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class OperandXref { + public static final String SERIALIZED_NAME_INSTRUCTION_VADDR = "instruction_vaddr"; + @SerializedName(SERIALIZED_NAME_INSTRUCTION_VADDR) + @javax.annotation.Nonnull + private Long instructionVaddr; + + public static final String SERIALIZED_NAME_POINTED_VADDR = "pointed_vaddr"; + @SerializedName(SERIALIZED_NAME_POINTED_VADDR) + @javax.annotation.Nonnull + private Long pointedVaddr; + + public static final String SERIALIZED_NAME_TARGET_VADDR = "target_vaddr"; + @SerializedName(SERIALIZED_NAME_TARGET_VADDR) + @javax.annotation.Nonnull + private Long targetVaddr; + + public OperandXref() { + } + + public OperandXref instructionVaddr(@javax.annotation.Nonnull Long instructionVaddr) { + this.instructionVaddr = instructionVaddr; + return this; + } + + /** + * Vaddr of the instruction containing the operand. + * @return instructionVaddr + */ + @javax.annotation.Nonnull + public Long getInstructionVaddr() { + return instructionVaddr; + } + + public void setInstructionVaddr(@javax.annotation.Nonnull Long instructionVaddr) { + this.instructionVaddr = instructionVaddr; + } + + + public OperandXref pointedVaddr(@javax.annotation.Nonnull Long pointedVaddr) { + this.pointedVaddr = pointedVaddr; + return this; + } + + /** + * Address stored in the pointer slot. Resolve this to a function, import or global to name the reference. + * @return pointedVaddr + */ + @javax.annotation.Nonnull + public Long getPointedVaddr() { + return pointedVaddr; + } + + public void setPointedVaddr(@javax.annotation.Nonnull Long pointedVaddr) { + this.pointedVaddr = pointedVaddr; + } + + + public OperandXref targetVaddr(@javax.annotation.Nonnull Long targetVaddr) { + this.targetVaddr = targetVaddr; + return this; + } + + /** + * Vaddr of the pointer slot the operand references. + * @return targetVaddr + */ + @javax.annotation.Nonnull + public Long getTargetVaddr() { + return targetVaddr; + } + + public void setTargetVaddr(@javax.annotation.Nonnull Long targetVaddr) { + this.targetVaddr = targetVaddr; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the OperandXref instance itself + */ + public OperandXref putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperandXref operandXref = (OperandXref) o; + return Objects.equals(this.instructionVaddr, operandXref.instructionVaddr) && + Objects.equals(this.pointedVaddr, operandXref.pointedVaddr) && + Objects.equals(this.targetVaddr, operandXref.targetVaddr)&& + Objects.equals(this.additionalProperties, operandXref.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(instructionVaddr, pointedVaddr, targetVaddr, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperandXref {\n"); + sb.append(" instructionVaddr: ").append(toIndentedString(instructionVaddr)).append("\n"); + sb.append(" pointedVaddr: ").append(toIndentedString(pointedVaddr)).append("\n"); + sb.append(" targetVaddr: ").append(toIndentedString(targetVaddr)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("instruction_vaddr", "pointed_vaddr", "target_vaddr")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("instruction_vaddr", "pointed_vaddr", "target_vaddr")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to OperandXref + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!OperandXref.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in OperandXref is not found in the empty JSON string", OperandXref.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : OperandXref.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!OperandXref.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OperandXref' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OperandXref.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OperandXref value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public OperandXref read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + OperandXref instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of OperandXref given an JSON string + * + * @param jsonString JSON string + * @return An instance of OperandXref + * @throws IOException if the JSON string is invalid with respect to OperandXref + */ + public static OperandXref fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, OperandXref.class); + } + + /** + * Convert an instance of OperandXref to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/ai/reveng/model/OperationDynamicExecutionMetadataDynamicExecutionResult.java b/src/main/java/ai/reveng/model/OperationDynamicExecutionMetadataDynamicExecutionResult.java new file mode 100644 index 0000000..6eddb1d --- /dev/null +++ b/src/main/java/ai/reveng/model/OperationDynamicExecutionMetadataDynamicExecutionResult.java @@ -0,0 +1,395 @@ +/* + * RevEng.AI API + * RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package ai.reveng.model; + +import java.util.Objects; +import ai.reveng.model.DynamicExecutionMetadata; +import ai.reveng.model.Status; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import ai.reveng.invoker.JSON; + +/** + * OperationDynamicExecutionMetadataDynamicExecutionResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class OperationDynamicExecutionMetadataDynamicExecutionResult { + public static final String SERIALIZED_NAME_DONE = "done"; + @SerializedName(SERIALIZED_NAME_DONE) + @javax.annotation.Nonnull + private Boolean done; + + public static final String SERIALIZED_NAME_ERROR = "error"; + @SerializedName(SERIALIZED_NAME_ERROR) + @javax.annotation.Nullable + private Status error; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + @javax.annotation.Nullable + private DynamicExecutionMetadata metadata; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_RESPONSE = "response"; + @SerializedName(SERIALIZED_NAME_RESPONSE) + @javax.annotation.Nullable + private Object response; + + public OperationDynamicExecutionMetadataDynamicExecutionResult() { + } + + public OperationDynamicExecutionMetadataDynamicExecutionResult done(@javax.annotation.Nonnull Boolean done) { + this.done = done; + return this; + } + + /** + * Whether the operation has reached a terminal state. + * @return done + */ + @javax.annotation.Nonnull + public Boolean getDone() { + return done; + } + + public void setDone(@javax.annotation.Nonnull Boolean done) { + this.done = done; + } + + + public OperationDynamicExecutionMetadataDynamicExecutionResult error(@javax.annotation.Nullable Status error) { + this.error = error; + return this; + } + + /** + * Failure detail, populated only when done is true and the operation failed. + * @return error + */ + @javax.annotation.Nullable + public Status getError() { + return error; + } + + public void setError(@javax.annotation.Nullable Status error) { + this.error = error; + } + + + public OperationDynamicExecutionMetadataDynamicExecutionResult metadata(@javax.annotation.Nullable DynamicExecutionMetadata metadata) { + this.metadata = metadata; + return this; + } + + /** + * In-flight information and details. + * @return metadata + */ + @javax.annotation.Nullable + public DynamicExecutionMetadata getMetadata() { + return metadata; + } + + public void setMetadata(@javax.annotation.Nullable DynamicExecutionMetadata metadata) { + this.metadata = metadata; + } + + + public OperationDynamicExecutionMetadataDynamicExecutionResult name(@javax.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * API resource name. + * @return name + */ + @javax.annotation.Nonnull + public String getName() { + return name; + } + + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; + } + + + public OperationDynamicExecutionMetadataDynamicExecutionResult response(@javax.annotation.Nullable Object response) { + this.response = response; + return this; + } + + /** + * Result, set only when done is true and the operation succeeded. + * @return response + */ + @javax.annotation.Nullable + public Object getResponse() { + return response; + } + + public void setResponse(@javax.annotation.Nullable Object response) { + this.response = response; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the OperationDynamicExecutionMetadataDynamicExecutionResult instance itself + */ + public OperationDynamicExecutionMetadataDynamicExecutionResult putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationDynamicExecutionMetadataDynamicExecutionResult operationDynamicExecutionMetadataDynamicExecutionResult = (OperationDynamicExecutionMetadataDynamicExecutionResult) o; + return Objects.equals(this.done, operationDynamicExecutionMetadataDynamicExecutionResult.done) && + Objects.equals(this.error, operationDynamicExecutionMetadataDynamicExecutionResult.error) && + Objects.equals(this.metadata, operationDynamicExecutionMetadataDynamicExecutionResult.metadata) && + Objects.equals(this.name, operationDynamicExecutionMetadataDynamicExecutionResult.name) && + Objects.equals(this.response, operationDynamicExecutionMetadataDynamicExecutionResult.response)&& + Objects.equals(this.additionalProperties, operationDynamicExecutionMetadataDynamicExecutionResult.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(done, error, metadata, name, response, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationDynamicExecutionMetadataDynamicExecutionResult {\n"); + sb.append(" done: ").append(toIndentedString(done)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" response: ").append(toIndentedString(response)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("done", "error", "metadata", "name", "response")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("done", "name")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to OperationDynamicExecutionMetadataDynamicExecutionResult + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!OperationDynamicExecutionMetadataDynamicExecutionResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in OperationDynamicExecutionMetadataDynamicExecutionResult is not found in the empty JSON string", OperationDynamicExecutionMetadataDynamicExecutionResult.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : OperationDynamicExecutionMetadataDynamicExecutionResult.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!OperationDynamicExecutionMetadataDynamicExecutionResult.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OperationDynamicExecutionMetadataDynamicExecutionResult' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OperationDynamicExecutionMetadataDynamicExecutionResult.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OperationDynamicExecutionMetadataDynamicExecutionResult value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public OperationDynamicExecutionMetadataDynamicExecutionResult read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + OperationDynamicExecutionMetadataDynamicExecutionResult instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of OperationDynamicExecutionMetadataDynamicExecutionResult given an JSON string + * + * @param jsonString JSON string + * @return An instance of OperationDynamicExecutionMetadataDynamicExecutionResult + * @throws IOException if the JSON string is invalid with respect to OperationDynamicExecutionMetadataDynamicExecutionResult + */ + public static OperationDynamicExecutionMetadataDynamicExecutionResult fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, OperationDynamicExecutionMetadataDynamicExecutionResult.class); + } + + /** + * Convert an instance of OperationDynamicExecutionMetadataDynamicExecutionResult to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/ai/reveng/model/RunDynamicExecutionInputBody.java b/src/main/java/ai/reveng/model/RunDynamicExecutionInputBody.java new file mode 100644 index 0000000..c740e33 --- /dev/null +++ b/src/main/java/ai/reveng/model/RunDynamicExecutionInputBody.java @@ -0,0 +1,544 @@ +/* + * RevEng.AI API + * RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package ai.reveng.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import ai.reveng.invoker.JSON; + +/** + * RunDynamicExecutionInputBody + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RunDynamicExecutionInputBody { + public static final String SERIALIZED_NAME_ARCHIVE_ENTRY_PATH = "archive_entry_path"; + @SerializedName(SERIALIZED_NAME_ARCHIVE_ENTRY_PATH) + @javax.annotation.Nullable + private String archiveEntryPath; + + public static final String SERIALIZED_NAME_ARCHIVE_PASSWORD = "archive_password"; + @SerializedName(SERIALIZED_NAME_ARCHIVE_PASSWORD) + @javax.annotation.Nullable + private String archivePassword; + + public static final String SERIALIZED_NAME_ARCHIVE_SHA256_HASH = "archive_sha_256_hash"; + @SerializedName(SERIALIZED_NAME_ARCHIVE_SHA256_HASH) + @javax.annotation.Nullable + private String archiveSha256Hash; + + public static final String SERIALIZED_NAME_COMMAND_LINE_ARGS = "command_line_args"; + @SerializedName(SERIALIZED_NAME_COMMAND_LINE_ARGS) + @javax.annotation.Nullable + private String commandLineArgs; + + /** + * How the sandbox launches the sample. Defaults to the sandbox's standard behaviour when omitted. + */ + @JsonAdapter(StartMethodEnum.Adapter.class) + public enum StartMethodEnum { + STANDARD_USER_PROCESS("standard_user_process"), + + ADMINISTRATOR_PROCESS("administrator_process"), + + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); + + private String value; + + StartMethodEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StartMethodEnum fromValue(String value) { + for (StartMethodEnum b : StartMethodEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return UNKNOWN_DEFAULT_OPEN_API; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StartMethodEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StartMethodEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StartMethodEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + StartMethodEnum.fromValue(value); + } + } + + public static final String SERIALIZED_NAME_START_METHOD = "start_method"; + @SerializedName(SERIALIZED_NAME_START_METHOD) + @javax.annotation.Nullable + private StartMethodEnum startMethod; + + /** + * Maximum sandbox execution time in seconds + */ + @JsonAdapter(TimeoutEnum.Adapter.class) + public enum TimeoutEnum { + NUMBER_120(120l), + + NUMBER_180(180l), + + NUMBER_300(300l), + + NUMBER_600(600l), + + NUMBER_unknown_default_open_api(11184809l); + + private Long value; + + TimeoutEnum(Long value) { + this.value = value; + } + + public Long getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TimeoutEnum fromValue(Long value) { + for (TimeoutEnum b : TimeoutEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return NUMBER_unknown_default_open_api; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TimeoutEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TimeoutEnum read(final JsonReader jsonReader) throws IOException { + Long value = jsonReader.nextLong(); + return TimeoutEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + Long value = jsonElement.getAsLong(); + TimeoutEnum.fromValue(value); + } + } + + public static final String SERIALIZED_NAME_TIMEOUT = "timeout"; + @SerializedName(SERIALIZED_NAME_TIMEOUT) + @javax.annotation.Nullable + private TimeoutEnum timeout = TimeoutEnum.NUMBER_120; + + public RunDynamicExecutionInputBody() { + } + + public RunDynamicExecutionInputBody archiveEntryPath(@javax.annotation.Nullable String archiveEntryPath) { + this.archiveEntryPath = archiveEntryPath; + return this; + } + + /** + * Relative path of the entry inside the archive to execute + * @return archiveEntryPath + */ + @javax.annotation.Nullable + public String getArchiveEntryPath() { + return archiveEntryPath; + } + + public void setArchiveEntryPath(@javax.annotation.Nullable String archiveEntryPath) { + this.archiveEntryPath = archiveEntryPath; + } + + + public RunDynamicExecutionInputBody archivePassword(@javax.annotation.Nullable String archivePassword) { + this.archivePassword = archivePassword; + return this; + } + + /** + * Password for an encrypted archive + * @return archivePassword + */ + @javax.annotation.Nullable + public String getArchivePassword() { + return archivePassword; + } + + public void setArchivePassword(@javax.annotation.Nullable String archivePassword) { + this.archivePassword = archivePassword; + } + + + public RunDynamicExecutionInputBody archiveSha256Hash(@javax.annotation.Nullable String archiveSha256Hash) { + this.archiveSha256Hash = archiveSha256Hash; + return this; + } + + /** + * SHA-256 of the archive object to send to the sandbox instead of the analysed binary + * @return archiveSha256Hash + */ + @javax.annotation.Nullable + public String getArchiveSha256Hash() { + return archiveSha256Hash; + } + + public void setArchiveSha256Hash(@javax.annotation.Nullable String archiveSha256Hash) { + this.archiveSha256Hash = archiveSha256Hash; + } + + + public RunDynamicExecutionInputBody commandLineArgs(@javax.annotation.Nullable String commandLineArgs) { + this.commandLineArgs = commandLineArgs; + return this; + } + + /** + * Command-line arguments passed to the sample when the sandbox launches it + * @return commandLineArgs + */ + @javax.annotation.Nullable + public String getCommandLineArgs() { + return commandLineArgs; + } + + public void setCommandLineArgs(@javax.annotation.Nullable String commandLineArgs) { + this.commandLineArgs = commandLineArgs; + } + + + public RunDynamicExecutionInputBody startMethod(@javax.annotation.Nullable StartMethodEnum startMethod) { + this.startMethod = startMethod; + return this; + } + + /** + * How the sandbox launches the sample. Defaults to the sandbox's standard behaviour when omitted. + * @return startMethod + */ + @javax.annotation.Nullable + public StartMethodEnum getStartMethod() { + return startMethod; + } + + public void setStartMethod(@javax.annotation.Nullable StartMethodEnum startMethod) { + this.startMethod = startMethod; + } + + + public RunDynamicExecutionInputBody timeout(@javax.annotation.Nullable TimeoutEnum timeout) { + this.timeout = timeout; + return this; + } + + /** + * Maximum sandbox execution time in seconds + * @return timeout + */ + @javax.annotation.Nullable + public TimeoutEnum getTimeout() { + return timeout; + } + + public void setTimeout(@javax.annotation.Nullable TimeoutEnum timeout) { + this.timeout = timeout; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RunDynamicExecutionInputBody instance itself + */ + public RunDynamicExecutionInputBody putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RunDynamicExecutionInputBody runDynamicExecutionInputBody = (RunDynamicExecutionInputBody) o; + return Objects.equals(this.archiveEntryPath, runDynamicExecutionInputBody.archiveEntryPath) && + Objects.equals(this.archivePassword, runDynamicExecutionInputBody.archivePassword) && + Objects.equals(this.archiveSha256Hash, runDynamicExecutionInputBody.archiveSha256Hash) && + Objects.equals(this.commandLineArgs, runDynamicExecutionInputBody.commandLineArgs) && + Objects.equals(this.startMethod, runDynamicExecutionInputBody.startMethod) && + Objects.equals(this.timeout, runDynamicExecutionInputBody.timeout)&& + Objects.equals(this.additionalProperties, runDynamicExecutionInputBody.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(archiveEntryPath, archivePassword, archiveSha256Hash, commandLineArgs, startMethod, timeout, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RunDynamicExecutionInputBody {\n"); + sb.append(" archiveEntryPath: ").append(toIndentedString(archiveEntryPath)).append("\n"); + sb.append(" archivePassword: ").append(toIndentedString(archivePassword)).append("\n"); + sb.append(" archiveSha256Hash: ").append(toIndentedString(archiveSha256Hash)).append("\n"); + sb.append(" commandLineArgs: ").append(toIndentedString(commandLineArgs)).append("\n"); + sb.append(" startMethod: ").append(toIndentedString(startMethod)).append("\n"); + sb.append(" timeout: ").append(toIndentedString(timeout)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("archive_entry_path", "archive_password", "archive_sha_256_hash", "command_line_args", "start_method", "timeout")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to RunDynamicExecutionInputBody + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!RunDynamicExecutionInputBody.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in RunDynamicExecutionInputBody is not found in the empty JSON string", RunDynamicExecutionInputBody.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("archive_entry_path") != null && !jsonObj.get("archive_entry_path").isJsonNull()) && !jsonObj.get("archive_entry_path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `archive_entry_path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("archive_entry_path").toString())); + } + if ((jsonObj.get("archive_password") != null && !jsonObj.get("archive_password").isJsonNull()) && !jsonObj.get("archive_password").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `archive_password` to be a primitive type in the JSON string but got `%s`", jsonObj.get("archive_password").toString())); + } + if ((jsonObj.get("archive_sha_256_hash") != null && !jsonObj.get("archive_sha_256_hash").isJsonNull()) && !jsonObj.get("archive_sha_256_hash").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `archive_sha_256_hash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("archive_sha_256_hash").toString())); + } + if ((jsonObj.get("command_line_args") != null && !jsonObj.get("command_line_args").isJsonNull()) && !jsonObj.get("command_line_args").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `command_line_args` to be a primitive type in the JSON string but got `%s`", jsonObj.get("command_line_args").toString())); + } + if ((jsonObj.get("start_method") != null && !jsonObj.get("start_method").isJsonNull()) && !jsonObj.get("start_method").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `start_method` to be a primitive type in the JSON string but got `%s`", jsonObj.get("start_method").toString())); + } + // validate the optional field `start_method` + if (jsonObj.get("start_method") != null && !jsonObj.get("start_method").isJsonNull()) { + StartMethodEnum.validateJsonElement(jsonObj.get("start_method")); + } + // validate the optional field `timeout` + if (jsonObj.get("timeout") != null && !jsonObj.get("timeout").isJsonNull()) { + TimeoutEnum.validateJsonElement(jsonObj.get("timeout")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RunDynamicExecutionInputBody.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RunDynamicExecutionInputBody' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RunDynamicExecutionInputBody.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RunDynamicExecutionInputBody value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RunDynamicExecutionInputBody read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + RunDynamicExecutionInputBody instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RunDynamicExecutionInputBody given an JSON string + * + * @param jsonString JSON string + * @return An instance of RunDynamicExecutionInputBody + * @throws IOException if the JSON string is invalid with respect to RunDynamicExecutionInputBody + */ + public static RunDynamicExecutionInputBody fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RunDynamicExecutionInputBody.class); + } + + /** + * Convert an instance of RunDynamicExecutionInputBody to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} +