From 710b29e6dc6a1b18b2b4cba7a4923407f02cc491 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 15 May 2026 07:59:09 +0000 Subject: [PATCH] Update SDK to version v3.84.0 - Generated from OpenAPI spec version v3.84.0 - Auto-generated by GitHub Actions --- .sdk-version | 2 +- README.md | 6 +- build.gradle | 4 +- build.sbt | 2 +- docs/APIError.md | 1 - docs/AnalysesResultsMetadataApi.md | 69 ----- docs/Basic.md | 1 + docs/BatchRenameInputBody.md | 1 - docs/BatchRenameOutputBody.md | 1 - docs/CommentsData.md | 1 - docs/ConfirmToolInputBody.md | 1 - docs/Conversation.md | 1 - docs/ConversationWithEvents.md | 1 - docs/CreateAIDecompOutputBody.md | 1 - docs/CreateConversationRequest.md | 1 - docs/DecompilationData.md | 1 - docs/FunctionsRenamingHistoryApi.md | 6 +- docs/GeneratePDFOutputBody.md | 1 - docs/QueuePositionResponse.md | 1 - docs/RegenerateOutputBody.md | 1 - docs/RenameInputBody.md | 1 - docs/RenameOutputBody.md | 1 - docs/RevertOutputBody.md | 13 - docs/SendMessageRequest.md | 1 - docs/StatusResponse.md | 1 - docs/SummaryData.md | 1 - docs/TokenisedData.md | 1 - docs/UpsertOverridesData.md | 1 - docs/UpsertOverridesInputBody.md | 1 - docs/WorkflowProgress.md | 1 - pom.xml | 2 +- .../api/AnalysesResultsMetadataApi.java | 131 -------- .../api/FunctionsAiDecompilationApi.java | 27 ++ .../api/FunctionsRenamingHistoryApi.java | 17 +- .../java/ai/reveng/invoker/ApiClient.java | 2 +- .../java/ai/reveng/invoker/Configuration.java | 2 +- src/main/java/ai/reveng/invoker/JSON.java | 1 - src/main/java/ai/reveng/model/APIError.java | 35 +-- src/main/java/ai/reveng/model/Basic.java | 34 ++- .../ai/reveng/model/BatchRenameInputBody.java | 35 +-- .../reveng/model/BatchRenameOutputBody.java | 35 +-- .../java/ai/reveng/model/CommentsData.java | 35 +-- .../ai/reveng/model/ConfirmToolInputBody.java | 35 +-- .../java/ai/reveng/model/Conversation.java | 35 +-- .../reveng/model/ConversationWithEvents.java | 35 +-- .../model/CreateAIDecompOutputBody.java | 35 +-- .../model/CreateConversationRequest.java | 35 +-- .../ai/reveng/model/DecompilationData.java | 35 +-- .../reveng/model/GeneratePDFOutputBody.java | 35 +-- .../reveng/model/QueuePositionResponse.java | 35 +-- .../ai/reveng/model/RegenerateOutputBody.java | 35 +-- .../java/ai/reveng/model/RenameInputBody.java | 35 +-- .../ai/reveng/model/RenameOutputBody.java | 35 +-- .../ai/reveng/model/RevertOutputBody.java | 287 ------------------ .../ai/reveng/model/SendMessageRequest.java | 35 +-- .../java/ai/reveng/model/StatusResponse.java | 35 +-- .../java/ai/reveng/model/SummaryData.java | 35 +-- .../java/ai/reveng/model/TokenisedData.java | 35 +-- .../ai/reveng/model/UpsertOverridesData.java | 35 +-- .../model/UpsertOverridesInputBody.java | 35 +-- .../ai/reveng/model/WorkflowProgress.java | 35 +-- 61 files changed, 144 insertions(+), 1254 deletions(-) delete mode 100644 docs/RevertOutputBody.md delete mode 100644 src/main/java/ai/reveng/model/RevertOutputBody.java diff --git a/.sdk-version b/.sdk-version index f9627dba..338a4a18 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v3.82.2 +v3.84.0 diff --git a/README.md b/README.md index 494ebdb8..cb79ef85 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Add this dependency to your project's POM: ai.reveng sdk - 3.82.2 + 3.84.0 compile ``` @@ -31,7 +31,7 @@ repositories { } dependencies { - implementation "ai.reveng:sdk:3.82.2" + implementation "ai.reveng:sdk:3.84.0" } ``` @@ -110,7 +110,6 @@ Class | Method | HTTP request | Description *AnalysesResultsMetadataApi* | [**getAnalysisFunctionsPaginated**](docs/AnalysesResultsMetadataApi.md#getAnalysisFunctionsPaginated) | **GET** /v2/analyses/{analysis_id}/functions | Get functions from analysis *AnalysesResultsMetadataApi* | [**getCapabilities**](docs/AnalysesResultsMetadataApi.md#getCapabilities) | **GET** /v2/analyses/{analysis_id}/capabilities | Gets the capabilities from the analysis *AnalysesResultsMetadataApi* | [**getFunctionsList**](docs/AnalysesResultsMetadataApi.md#getFunctionsList) | **GET** /v2/analyses/{analysis_id}/functions/list | Gets functions from analysis -*AnalysesResultsMetadataApi* | [**getPdf**](docs/AnalysesResultsMetadataApi.md#getPdf) | **GET** /v2/analyses/{analysis_id}/pdf | Gets the PDF found in the analysis *AnalysesResultsMetadataApi* | [**getSbom**](docs/AnalysesResultsMetadataApi.md#getSbom) | **GET** /v2/analyses/{analysis_id}/sbom | Gets the software-bill-of-materials (SBOM) found in the analysis *AnalysesResultsMetadataApi* | [**getTags**](docs/AnalysesResultsMetadataApi.md#getTags) | **GET** /v2/analyses/{analysis_id}/tags | Get function tags with maliciousness score *AnalysesResultsMetadataApi* | [**getVulnerabilities**](docs/AnalysesResultsMetadataApi.md#getVulnerabilities) | **GET** /v2/analyses/{analysis_id}/vulnerabilities | Gets the vulnerabilities found in the analysis @@ -507,7 +506,6 @@ Class | Method | HTTP request | Description - [ReportEvent](docs/ReportEvent.md) - [ReportInfo](docs/ReportInfo.md) - [ReportOptions](docs/ReportOptions.md) - - [RevertOutputBody](docs/RevertOutputBody.md) - [SBOM](docs/SBOM.md) - [SBOMPackage](docs/SBOMPackage.md) - [SandboxOptions](docs/SandboxOptions.md) diff --git a/build.gradle b/build.gradle index 67f4ac40..df632a92 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'ai.reveng' -version = '3.82.2' +version = '3.84.0' @@ -171,7 +171,7 @@ mavenPublishing { publishToMavenCentral(true) signAllPublications() - coordinates("ai.reveng", "sdk", "3.82.2") + coordinates("ai.reveng", "sdk", "3.84.0") pom { name = "sdk" diff --git a/build.sbt b/build.sbt index 00486175..d82582e8 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "ai.reveng", name := "sdk", - version := "3.82.2", + version := "3.84.0", scalaVersion := "2.11.12", scalacOptions ++= Seq("-feature"), compile / javacOptions ++= Seq("-Xlint:deprecation"), diff --git a/docs/APIError.md b/docs/APIError.md index c331f8b4..55b5b075 100644 --- a/docs/APIError.md +++ b/docs/APIError.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**error** | **ErrorBody** | | | diff --git a/docs/AnalysesResultsMetadataApi.md b/docs/AnalysesResultsMetadataApi.md index 562ad359..5f8a4875 100644 --- a/docs/AnalysesResultsMetadataApi.md +++ b/docs/AnalysesResultsMetadataApi.md @@ -7,7 +7,6 @@ All URIs are relative to *https://api.reveng.ai* | [**getAnalysisFunctionsPaginated**](AnalysesResultsMetadataApi.md#getAnalysisFunctionsPaginated) | **GET** /v2/analyses/{analysis_id}/functions | Get functions from analysis | | [**getCapabilities**](AnalysesResultsMetadataApi.md#getCapabilities) | **GET** /v2/analyses/{analysis_id}/capabilities | Gets the capabilities from the analysis | | [**getFunctionsList**](AnalysesResultsMetadataApi.md#getFunctionsList) | **GET** /v2/analyses/{analysis_id}/functions/list | Gets functions from analysis | -| [**getPdf**](AnalysesResultsMetadataApi.md#getPdf) | **GET** /v2/analyses/{analysis_id}/pdf | Gets the PDF found in the analysis | | [**getSbom**](AnalysesResultsMetadataApi.md#getSbom) | **GET** /v2/analyses/{analysis_id}/sbom | Gets the software-bill-of-materials (SBOM) found in the analysis | | [**getTags**](AnalysesResultsMetadataApi.md#getTags) | **GET** /v2/analyses/{analysis_id}/tags | Get function tags with maliciousness score | | [**getVulnerabilities**](AnalysesResultsMetadataApi.md#getVulnerabilities) | **GET** /v2/analyses/{analysis_id}/vulnerabilities | Gets the vulnerabilities found in the analysis | @@ -237,74 +236,6 @@ public class Example { | **200** | Successful Response | - | | **422** | Invalid request parameters | - | - -# **getPdf** -> Object getPdf(analysisId) - -Gets the PDF found in the analysis - -### Example -```java -// Import classes: -import ai.reveng.invoker.ApiClient; -import ai.reveng.invoker.ApiException; -import ai.reveng.invoker.Configuration; -import ai.reveng.invoker.auth.*; -import ai.reveng.invoker.models.*; -import ai.reveng.api.AnalysesResultsMetadataApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.reveng.ai"); - - // Configure API key authorization: APIKey - ApiKeyAuth APIKey = (ApiKeyAuth) defaultClient.getAuthentication("APIKey"); - APIKey.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKey.setApiKeyPrefix("Token"); - - AnalysesResultsMetadataApi apiInstance = new AnalysesResultsMetadataApi(defaultClient); - Integer analysisId = 56; // Integer | - try { - Object result = apiInstance.getPdf(analysisId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AnalysesResultsMetadataApi#getPdf"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **analysisId** | **Integer**| | | - -### Return type - -**Object** - -### Authorization - -[APIKey](../README.md#APIKey) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Invalid request parameters | - | - # **getSbom** > BaseResponseListSBOM getSbom(analysisId) diff --git a/docs/Basic.md b/docs/Basic.md index 5b1951aa..cb24fc9f 100644 --- a/docs/Basic.md +++ b/docs/Basic.md @@ -24,6 +24,7 @@ |**baseAddress** | **Integer** | | | |**binaryUuid** | **String** | | [optional] | |**sequencerVersion** | **String** | | [optional] | +|**teamId** | **Integer** | The team ID of the analysis | | diff --git a/docs/BatchRenameInputBody.md b/docs/BatchRenameInputBody.md index c7c25f99..4d7ac679 100644 --- a/docs/BatchRenameInputBody.md +++ b/docs/BatchRenameInputBody.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**functions** | **List<BatchRenameItem>** | List of functions to rename | | diff --git a/docs/BatchRenameOutputBody.md b/docs/BatchRenameOutputBody.md index 201cf91f..0ad69e6c 100644 --- a/docs/BatchRenameOutputBody.md +++ b/docs/BatchRenameOutputBody.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**renamedCount** | **Long** | Number of functions renamed | | diff --git a/docs/CommentsData.md b/docs/CommentsData.md index bb24da4e..38f9136e 100644 --- a/docs/CommentsData.md +++ b/docs/CommentsData.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**inlineComments** | **List<InlineComment>** | Structured inline comments with line numbers | | |**taskStatus** | [**TaskStatusEnum**](#TaskStatusEnum) | Task status | | diff --git a/docs/ConfirmToolInputBody.md b/docs/ConfirmToolInputBody.md index 799662d6..fd7c9238 100644 --- a/docs/ConfirmToolInputBody.md +++ b/docs/ConfirmToolInputBody.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**approved** | **Boolean** | Whether the user approves the pending tool call. | | diff --git a/docs/Conversation.md b/docs/Conversation.md index 7d47f96e..8c8ce086 100644 --- a/docs/Conversation.md +++ b/docs/Conversation.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**context** | **Object** | | [optional] | |**conversationUuid** | **String** | | | |**createdAt** | **OffsetDateTime** | | | diff --git a/docs/ConversationWithEvents.md b/docs/ConversationWithEvents.md index 00802fa5..d570b0ef 100644 --- a/docs/ConversationWithEvents.md +++ b/docs/ConversationWithEvents.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**context** | **Object** | | [optional] | |**conversationUuid** | **String** | | | |**createdAt** | **OffsetDateTime** | | | diff --git a/docs/CreateAIDecompOutputBody.md b/docs/CreateAIDecompOutputBody.md index f48efefd..44e5f964 100644 --- a/docs/CreateAIDecompOutputBody.md +++ b/docs/CreateAIDecompOutputBody.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**status** | **Boolean** | | | diff --git a/docs/CreateConversationRequest.md b/docs/CreateConversationRequest.md index 8a5f8442..cdacf9ad 100644 --- a/docs/CreateConversationRequest.md +++ b/docs/CreateConversationRequest.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**context** | **ConversationContext** | | [optional] | |**title** | **String** | | [optional] | diff --git a/docs/DecompilationData.md b/docs/DecompilationData.md index 49d78ecd..ff4ef451 100644 --- a/docs/DecompilationData.md +++ b/docs/DecompilationData.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**decompilation** | **String** | Source code with placeholders replaced | [optional] | |**status** | [**StatusEnum**](#StatusEnum) | Task status | | diff --git a/docs/FunctionsRenamingHistoryApi.md b/docs/FunctionsRenamingHistoryApi.md index 7dc14595..5003a54c 100644 --- a/docs/FunctionsRenamingHistoryApi.md +++ b/docs/FunctionsRenamingHistoryApi.md @@ -521,7 +521,7 @@ public class Example { # **revertFunctionName_0** -> RevertOutputBody revertFunctionName_0(functionId, historyId) +> Map<String, Object> revertFunctionName_0(functionId, historyId) Revert function name @@ -552,7 +552,7 @@ public class Example { Long functionId = 56L; // Long | Function ID Long historyId = 56L; // Long | History ID to revert to try { - RevertOutputBody result = apiInstance.revertFunctionName_0(functionId, historyId); + Map result = apiInstance.revertFunctionName_0(functionId, historyId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsRenamingHistoryApi#revertFunctionName_0"); @@ -574,7 +574,7 @@ public class Example { ### Return type -[**RevertOutputBody**](RevertOutputBody.md) +**Map<String, Object>** ### Authorization diff --git a/docs/GeneratePDFOutputBody.md b/docs/GeneratePDFOutputBody.md index a5a06f58..f5a89ed6 100644 --- a/docs/GeneratePDFOutputBody.md +++ b/docs/GeneratePDFOutputBody.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**alreadyRunning** | **Boolean** | True when an existing PDF generation is in progress for this analysis and user | [optional] | |**taskId** | **String** | Workflow task ID — use to poll status and download the PDF | | diff --git a/docs/QueuePositionResponse.md b/docs/QueuePositionResponse.md index 56718100..d7643c66 100644 --- a/docs/QueuePositionResponse.md +++ b/docs/QueuePositionResponse.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**queuePosition** | **Long** | Number of Processing analyses ahead of this one in the queue. 0 if this analysis is not Processing or has no analyses ahead of it. | | diff --git a/docs/RegenerateOutputBody.md b/docs/RegenerateOutputBody.md index 973fc474..d90d95fe 100644 --- a/docs/RegenerateOutputBody.md +++ b/docs/RegenerateOutputBody.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**status** | **Boolean** | | | diff --git a/docs/RenameInputBody.md b/docs/RenameInputBody.md index ec86cecb..7c16cff4 100644 --- a/docs/RenameInputBody.md +++ b/docs/RenameInputBody.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**newMangledName** | **String** | New mangled function name | [optional] | |**newName** | **String** | New function name | | diff --git a/docs/RenameOutputBody.md b/docs/RenameOutputBody.md index f40e1b6e..c47b8dfa 100644 --- a/docs/RenameOutputBody.md +++ b/docs/RenameOutputBody.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**renamedCount** | **Long** | Number of functions renamed | | diff --git a/docs/RevertOutputBody.md b/docs/RevertOutputBody.md deleted file mode 100644 index ac413b14..00000000 --- a/docs/RevertOutputBody.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# RevertOutputBody - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | - - - diff --git a/docs/SendMessageRequest.md b/docs/SendMessageRequest.md index 05e66182..5994244d 100644 --- a/docs/SendMessageRequest.md +++ b/docs/SendMessageRequest.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**content** | **String** | | | |**context** | **ConversationContext** | | [optional] | diff --git a/docs/StatusResponse.md b/docs/StatusResponse.md index b3c7f7a9..6b2fb3b3 100644 --- a/docs/StatusResponse.md +++ b/docs/StatusResponse.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**conversationUuid** | **UUID** | | | |**status** | **String** | | | |**traceId** | **String** | OpenTelemetry trace ID for this run. Use this to look up tool call spans in your trace backend. | [optional] | diff --git a/docs/SummaryData.md b/docs/SummaryData.md index 5aed8654..5363dff7 100644 --- a/docs/SummaryData.md +++ b/docs/SummaryData.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**aiSummary** | **String** | Summary with code tags removed | | |**summary** | **String** | Raw summary from the model | | |**taskStatus** | [**TaskStatusEnum**](#TaskStatusEnum) | Task status | | diff --git a/docs/TokenisedData.md b/docs/TokenisedData.md index dbeeab42..b1eee434 100644 --- a/docs/TokenisedData.md +++ b/docs/TokenisedData.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**functionMapping** | [**FunctionMapping**](FunctionMapping.md) | Complete mapping data for token resolution | [optional] | |**predictedFunctionName** | **String** | Predicted function name from the AI model | [optional] | |**status** | [**StatusEnum**](#StatusEnum) | Task status | | diff --git a/docs/UpsertOverridesData.md b/docs/UpsertOverridesData.md index 37618324..4c0d7705 100644 --- a/docs/UpsertOverridesData.md +++ b/docs/UpsertOverridesData.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**userOverrideMappings** | **Map<String, String>** | Merged override mappings after applying changes | | diff --git a/docs/UpsertOverridesInputBody.md b/docs/UpsertOverridesInputBody.md index 330e0c99..52446a34 100644 --- a/docs/UpsertOverridesInputBody.md +++ b/docs/UpsertOverridesInputBody.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**overrides** | **Map<String, String>** | Token to name mappings. Empty string removes the override. | | diff --git a/docs/WorkflowProgress.md b/docs/WorkflowProgress.md index db0366a0..18ec6d13 100644 --- a/docs/WorkflowProgress.md +++ b/docs/WorkflowProgress.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**$schema** | **URI** | A URL to the JSON Schema for this object. | [optional] [readonly] | |**messages** | **List<ProgressMessage>** | Log messages emitted during execution | | |**status** | [**StatusEnum**](#StatusEnum) | Current workflow status | | |**step** | **String** | Name of the current step | | diff --git a/pom.xml b/pom.xml index 6d2998f1..4d024a2a 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ sdk jar sdk - 3.82.2 + 3.84.0 https://github.com/RevEngAI/sdk-java Java SDK for the RevEng.AI API diff --git a/src/main/java/ai/reveng/api/AnalysesResultsMetadataApi.java b/src/main/java/ai/reveng/api/AnalysesResultsMetadataApi.java index ca6f3858..77b4a37f 100644 --- a/src/main/java/ai/reveng/api/AnalysesResultsMetadataApi.java +++ b/src/main/java/ai/reveng/api/AnalysesResultsMetadataApi.java @@ -543,137 +543,6 @@ public okhttp3.Call getFunctionsListAsync(@javax.annotation.Nonnull Integer anal localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - /** - * Build call for getPdf - * @param analysisId (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Invalid request parameters -
- */ - public okhttp3.Call getPdfCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/v2/analyses/{analysis_id}/pdf" - .replace("{" + "analysis_id" + "}", localVarApiClient.escapeString(analysisId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "APIKey" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getPdfValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'analysisId' is set - if (analysisId == null) { - throw new ApiException("Missing the required parameter 'analysisId' when calling getPdf(Async)"); - } - - return getPdfCall(analysisId, _callback); - - } - - /** - * Gets the PDF found in the analysis - * - * @param analysisId (required) - * @return Object - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Invalid request parameters -
- */ - public Object getPdf(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getPdfWithHttpInfo(analysisId); - return localVarResp.getData(); - } - - /** - * Gets the PDF found in the analysis - * - * @param analysisId (required) - * @return ApiResponse<Object> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Invalid request parameters -
- */ - public ApiResponse getPdfWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getPdfValidateBeforeCall(analysisId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Gets the PDF found in the analysis (asynchronously) - * - * @param analysisId (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Invalid request parameters -
- */ - public okhttp3.Call getPdfAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getPdfValidateBeforeCall(analysisId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } /** * Build call for getSbom * @param analysisId (required) diff --git a/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java b/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java index 82ee0b30..601578a1 100644 --- a/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java +++ b/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java @@ -416,7 +416,9 @@ public okhttp3.Call createAiDecompilationCommentAsync(@javax.annotation.Nonnull 409 Conflict - 400 Bad Request - + * @deprecated */ + @Deprecated public okhttp3.Call createAiDecompilationTaskCall(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -462,6 +464,7 @@ public okhttp3.Call createAiDecompilationTaskCall(@javax.annotation.Nonnull Long return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call createAiDecompilationTaskValidateBeforeCall(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set @@ -490,7 +493,9 @@ private okhttp3.Call createAiDecompilationTaskValidateBeforeCall(@javax.annotati 409 Conflict - 400 Bad Request - + * @deprecated */ + @Deprecated public BaseResponse createAiDecompilationTask(@javax.annotation.Nonnull Long functionId) throws ApiException { ApiResponse localVarResp = createAiDecompilationTaskWithHttpInfo(functionId); return localVarResp.getData(); @@ -513,7 +518,9 @@ public BaseResponse createAiDecompilationTask(@javax.annotation.Nonnull Long fun 409 Conflict - 400 Bad Request - + * @deprecated */ + @Deprecated public ApiResponse createAiDecompilationTaskWithHttpInfo(@javax.annotation.Nonnull Long functionId) throws ApiException { okhttp3.Call localVarCall = createAiDecompilationTaskValidateBeforeCall(functionId, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -538,7 +545,9 @@ public ApiResponse createAiDecompilationTaskWithHttpInfo(@javax.an 409 Conflict - 400 Bad Request - + * @deprecated */ + @Deprecated public okhttp3.Call createAiDecompilationTaskAsync(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createAiDecompilationTaskValidateBeforeCall(functionId, _callback); @@ -1832,7 +1841,9 @@ public okhttp3.Call getAiDecompilationSummaryStatusAsync(@javax.annotation.Nonnu 422 Invalid request parameters - 403 Forbidden - + * @deprecated */ + @Deprecated public okhttp3.Call getAiDecompilationTaskResultCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments, @javax.annotation.Nullable List forceRegenerate, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -1890,6 +1901,7 @@ public okhttp3.Call getAiDecompilationTaskResultCall(@javax.annotation.Nonnull L return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getAiDecompilationTaskResultValidateBeforeCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments, @javax.annotation.Nullable List forceRegenerate, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set @@ -1918,7 +1930,9 @@ private okhttp3.Call getAiDecompilationTaskResultValidateBeforeCall(@javax.annot 422 Invalid request parameters - 403 Forbidden - + * @deprecated */ + @Deprecated public BaseResponseGetAiDecompilationTask getAiDecompilationTaskResult(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments, @javax.annotation.Nullable List forceRegenerate) throws ApiException { ApiResponse localVarResp = getAiDecompilationTaskResultWithHttpInfo(functionId, summarise, generateInlineComments, forceRegenerate); return localVarResp.getData(); @@ -1941,7 +1955,9 @@ public BaseResponseGetAiDecompilationTask getAiDecompilationTaskResult(@javax.an 422 Invalid request parameters - 403 Forbidden - + * @deprecated */ + @Deprecated public ApiResponse getAiDecompilationTaskResultWithHttpInfo(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments, @javax.annotation.Nullable List forceRegenerate) throws ApiException { okhttp3.Call localVarCall = getAiDecompilationTaskResultValidateBeforeCall(functionId, summarise, generateInlineComments, forceRegenerate, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1966,7 +1982,9 @@ public ApiResponse getAiDecompilationTaskRes 422 Invalid request parameters - 403 Forbidden - + * @deprecated */ + @Deprecated public okhttp3.Call getAiDecompilationTaskResultAsync(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments, @javax.annotation.Nullable List forceRegenerate, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAiDecompilationTaskResultValidateBeforeCall(functionId, summarise, generateInlineComments, forceRegenerate, _callback); @@ -1987,7 +2005,9 @@ public okhttp3.Call getAiDecompilationTaskResultAsync(@javax.annotation.Nonnull 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getAiDecompilationTaskStatusCall(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -2033,6 +2053,7 @@ public okhttp3.Call getAiDecompilationTaskStatusCall(@javax.annotation.Nonnull L return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getAiDecompilationTaskStatusValidateBeforeCall(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set @@ -2057,7 +2078,9 @@ private okhttp3.Call getAiDecompilationTaskStatusValidateBeforeCall(@javax.annot 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public BaseResponseFunctionTaskResponse getAiDecompilationTaskStatus(@javax.annotation.Nonnull Long functionId) throws ApiException { ApiResponse localVarResp = getAiDecompilationTaskStatusWithHttpInfo(functionId); return localVarResp.getData(); @@ -2076,7 +2099,9 @@ public BaseResponseFunctionTaskResponse getAiDecompilationTaskStatus(@javax.anno 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public ApiResponse getAiDecompilationTaskStatusWithHttpInfo(@javax.annotation.Nonnull Long functionId) throws ApiException { okhttp3.Call localVarCall = getAiDecompilationTaskStatusValidateBeforeCall(functionId, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2097,7 +2122,9 @@ public ApiResponse getAiDecompilationTaskStatu 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getAiDecompilationTaskStatusAsync(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAiDecompilationTaskStatusValidateBeforeCall(functionId, _callback); diff --git a/src/main/java/ai/reveng/api/FunctionsRenamingHistoryApi.java b/src/main/java/ai/reveng/api/FunctionsRenamingHistoryApi.java index 97ee3a7a..6dc7ef6d 100644 --- a/src/main/java/ai/reveng/api/FunctionsRenamingHistoryApi.java +++ b/src/main/java/ai/reveng/api/FunctionsRenamingHistoryApi.java @@ -36,7 +36,6 @@ import ai.reveng.model.HistoryEntry; import ai.reveng.model.RenameInputBody; import ai.reveng.model.RenameOutputBody; -import ai.reveng.model.RevertOutputBody; import java.lang.reflect.Type; import java.util.ArrayList; @@ -1149,7 +1148,7 @@ private okhttp3.Call revertFunctionName_0ValidateBeforeCall(@javax.annotation.No * Reverts a function's name to a previous value from its history. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found * @param functionId Function ID (required) * @param historyId History ID to revert to (required) - * @return RevertOutputBody + * @return Map<String, Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1162,8 +1161,8 @@ private okhttp3.Call revertFunctionName_0ValidateBeforeCall(@javax.annotation.No
500 Internal Server Error -
*/ - public RevertOutputBody revertFunctionName_0(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull Long historyId) throws ApiException { - ApiResponse localVarResp = revertFunctionName_0WithHttpInfo(functionId, historyId); + public Map revertFunctionName_0(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull Long historyId) throws ApiException { + ApiResponse> localVarResp = revertFunctionName_0WithHttpInfo(functionId, historyId); return localVarResp.getData(); } @@ -1172,7 +1171,7 @@ public RevertOutputBody revertFunctionName_0(@javax.annotation.Nonnull Long func * Reverts a function's name to a previous value from its history. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found * @param functionId Function ID (required) * @param historyId History ID to revert to (required) - * @return ApiResponse<RevertOutputBody> + * @return ApiResponse<Map<String, Object>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1185,9 +1184,9 @@ public RevertOutputBody revertFunctionName_0(@javax.annotation.Nonnull Long func
500 Internal Server Error -
*/ - public ApiResponse revertFunctionName_0WithHttpInfo(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull Long historyId) throws ApiException { + public ApiResponse> revertFunctionName_0WithHttpInfo(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull Long historyId) throws ApiException { okhttp3.Call localVarCall = revertFunctionName_0ValidateBeforeCall(functionId, historyId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1210,10 +1209,10 @@ public ApiResponse revertFunctionName_0WithHttpInfo(@javax.ann 500 Internal Server Error - */ - public okhttp3.Call revertFunctionName_0Async(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull Long historyId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call revertFunctionName_0Async(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull Long historyId, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = revertFunctionName_0ValidateBeforeCall(functionId, historyId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/src/main/java/ai/reveng/invoker/ApiClient.java b/src/main/java/ai/reveng/invoker/ApiClient.java index 6ff7bd51..70d47325 100644 --- a/src/main/java/ai/reveng/invoker/ApiClient.java +++ b/src/main/java/ai/reveng/invoker/ApiClient.java @@ -146,7 +146,7 @@ protected void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/3.82.2/java"); + setUserAgent("OpenAPI-Generator/3.84.0/java"); authentications = new HashMap(); } diff --git a/src/main/java/ai/reveng/invoker/Configuration.java b/src/main/java/ai/reveng/invoker/Configuration.java index 893603d6..9cff67dc 100644 --- a/src/main/java/ai/reveng/invoker/Configuration.java +++ b/src/main/java/ai/reveng/invoker/Configuration.java @@ -18,7 +18,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Configuration { - public static final String VERSION = "3.82.2"; + public static final String VERSION = "3.84.0"; 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 cc278d14..0c610798 100644 --- a/src/main/java/ai/reveng/invoker/JSON.java +++ b/src/main/java/ai/reveng/invoker/JSON.java @@ -379,7 +379,6 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.ReportEvent.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.ReportInfo.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.ReportOptions.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.RevertOutputBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.SBOM.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.SBOMPackage.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.SandboxOptions.CustomTypeAdapterFactory()); diff --git a/src/main/java/ai/reveng/model/APIError.java b/src/main/java/ai/reveng/model/APIError.java index 4c7944b2..21b2f986 100644 --- a/src/main/java/ai/reveng/model/APIError.java +++ b/src/main/java/ai/reveng/model/APIError.java @@ -21,7 +21,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.util.Arrays; import com.google.gson.Gson; @@ -53,11 +52,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class APIError { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) @javax.annotation.Nonnull @@ -66,24 +60,6 @@ public class APIError { public APIError() { } - public APIError( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public APIError error(@javax.annotation.Nonnull ErrorBody error) { this.error = error; return this; @@ -157,21 +133,19 @@ public boolean equals(Object o) { return false; } APIError apIError = (APIError) o; - return Objects.equals(this.$schema, apIError.$schema) && - Objects.equals(this.error, apIError.error)&& + return Objects.equals(this.error, apIError.error)&& Objects.equals(this.additionalProperties, apIError.additionalProperties); } @Override public int hashCode() { - return Objects.hash($schema, error, additionalProperties); + return Objects.hash(error, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class APIError {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -195,7 +169,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "error")); + openapiFields = new HashSet(Arrays.asList("error")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("error")); @@ -221,9 +195,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/Basic.java b/src/main/java/ai/reveng/model/Basic.java index e512b682..e3749794 100644 --- a/src/main/java/ai/reveng/model/Basic.java +++ b/src/main/java/ai/reveng/model/Basic.java @@ -138,6 +138,11 @@ public class Basic { @javax.annotation.Nullable private String sequencerVersion; + public static final String SERIALIZED_NAME_TEAM_ID = "team_id"; + @SerializedName(SERIALIZED_NAME_TEAM_ID) + @javax.annotation.Nonnull + private Integer teamId; + public Basic() { } @@ -463,6 +468,25 @@ public void setSequencerVersion(@javax.annotation.Nullable String sequencerVersi this.sequencerVersion = sequencerVersion; } + + public Basic teamId(@javax.annotation.Nonnull Integer teamId) { + this.teamId = teamId; + return this; + } + + /** + * The team ID of the analysis + * @return teamId + */ + @javax.annotation.Nonnull + public Integer getTeamId() { + return teamId; + } + + public void setTeamId(@javax.annotation.Nonnull Integer teamId) { + this.teamId = teamId; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -534,7 +558,8 @@ public boolean equals(Object o) { Objects.equals(this.isAdvanced, basic.isAdvanced) && Objects.equals(this.baseAddress, basic.baseAddress) && Objects.equals(this.binaryUuid, basic.binaryUuid) && - Objects.equals(this.sequencerVersion, basic.sequencerVersion)&& + Objects.equals(this.sequencerVersion, basic.sequencerVersion) && + Objects.equals(this.teamId, basic.teamId)&& Objects.equals(this.additionalProperties, basic.additionalProperties); } @@ -544,7 +569,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(binaryId, binaryName, binarySize, creation, sha256Hash, modelName, modelId, ownerUsername, isSystem, analysisScope, isOwner, debug, functionCount, isAdvanced, baseAddress, binaryUuid, sequencerVersion, additionalProperties); + return Objects.hash(binaryId, binaryName, binarySize, creation, sha256Hash, modelName, modelId, ownerUsername, isSystem, analysisScope, isOwner, debug, functionCount, isAdvanced, baseAddress, binaryUuid, sequencerVersion, teamId, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -575,6 +600,7 @@ public String toString() { sb.append(" baseAddress: ").append(toIndentedString(baseAddress)).append("\n"); sb.append(" binaryUuid: ").append(toIndentedString(binaryUuid)).append("\n"); sb.append(" sequencerVersion: ").append(toIndentedString(sequencerVersion)).append("\n"); + sb.append(" teamId: ").append(toIndentedString(teamId)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -597,10 +623,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("binary_id", "binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "model_id", "owner_username", "is_system", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address", "binary_uuid", "sequencer_version")); + openapiFields = new HashSet(Arrays.asList("binary_id", "binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "model_id", "owner_username", "is_system", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address", "binary_uuid", "sequencer_version", "team_id")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("binary_id", "binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "model_id", "owner_username", "is_system", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address")); + openapiRequiredFields = new HashSet(Arrays.asList("binary_id", "binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "model_id", "owner_username", "is_system", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address", "team_id")); } /** diff --git a/src/main/java/ai/reveng/model/BatchRenameInputBody.java b/src/main/java/ai/reveng/model/BatchRenameInputBody.java index 6bad4a82..d6a5a9da 100644 --- a/src/main/java/ai/reveng/model/BatchRenameInputBody.java +++ b/src/main/java/ai/reveng/model/BatchRenameInputBody.java @@ -21,7 +21,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -55,11 +54,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BatchRenameInputBody { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_FUNCTIONS = "functions"; @SerializedName(SERIALIZED_NAME_FUNCTIONS) @javax.annotation.Nullable @@ -68,24 +62,6 @@ public class BatchRenameInputBody { public BatchRenameInputBody() { } - public BatchRenameInputBody( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public BatchRenameInputBody functions(@javax.annotation.Nullable List functions) { this.functions = functions; return this; @@ -167,21 +143,19 @@ public boolean equals(Object o) { return false; } BatchRenameInputBody batchRenameInputBody = (BatchRenameInputBody) o; - return Objects.equals(this.$schema, batchRenameInputBody.$schema) && - Objects.equals(this.functions, batchRenameInputBody.functions)&& + return Objects.equals(this.functions, batchRenameInputBody.functions)&& Objects.equals(this.additionalProperties, batchRenameInputBody.additionalProperties); } @Override public int hashCode() { - return Objects.hash($schema, functions, additionalProperties); + return Objects.hash(functions, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BatchRenameInputBody {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" functions: ").append(toIndentedString(functions)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -205,7 +179,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "functions")); + openapiFields = new HashSet(Arrays.asList("functions")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("functions")); @@ -231,9 +205,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } // ensure the required json array is present if (jsonObj.get("functions") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); diff --git a/src/main/java/ai/reveng/model/BatchRenameOutputBody.java b/src/main/java/ai/reveng/model/BatchRenameOutputBody.java index 626efeb1..b8f7cae9 100644 --- a/src/main/java/ai/reveng/model/BatchRenameOutputBody.java +++ b/src/main/java/ai/reveng/model/BatchRenameOutputBody.java @@ -20,7 +20,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.util.Arrays; import com.google.gson.Gson; @@ -52,11 +51,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BatchRenameOutputBody { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_RENAMED_COUNT = "renamed_count"; @SerializedName(SERIALIZED_NAME_RENAMED_COUNT) @javax.annotation.Nonnull @@ -65,24 +59,6 @@ public class BatchRenameOutputBody { public BatchRenameOutputBody() { } - public BatchRenameOutputBody( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public BatchRenameOutputBody renamedCount(@javax.annotation.Nonnull Long renamedCount) { this.renamedCount = renamedCount; return this; @@ -156,21 +132,19 @@ public boolean equals(Object o) { return false; } BatchRenameOutputBody batchRenameOutputBody = (BatchRenameOutputBody) o; - return Objects.equals(this.$schema, batchRenameOutputBody.$schema) && - Objects.equals(this.renamedCount, batchRenameOutputBody.renamedCount)&& + return Objects.equals(this.renamedCount, batchRenameOutputBody.renamedCount)&& Objects.equals(this.additionalProperties, batchRenameOutputBody.additionalProperties); } @Override public int hashCode() { - return Objects.hash($schema, renamedCount, additionalProperties); + return Objects.hash(renamedCount, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BatchRenameOutputBody {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" renamedCount: ").append(toIndentedString(renamedCount)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -194,7 +168,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "renamed_count")); + openapiFields = new HashSet(Arrays.asList("renamed_count")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("renamed_count")); @@ -220,9 +194,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/CommentsData.java b/src/main/java/ai/reveng/model/CommentsData.java index 43b3a925..fda10805 100644 --- a/src/main/java/ai/reveng/model/CommentsData.java +++ b/src/main/java/ai/reveng/model/CommentsData.java @@ -21,7 +21,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -55,11 +54,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class CommentsData { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_INLINE_COMMENTS = "inline_comments"; @SerializedName(SERIALIZED_NAME_INLINE_COMMENTS) @javax.annotation.Nullable @@ -129,24 +123,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public CommentsData() { } - public CommentsData( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public CommentsData inlineComments(@javax.annotation.Nullable List inlineComments) { this.inlineComments = inlineComments; return this; @@ -247,22 +223,20 @@ public boolean equals(Object o) { return false; } CommentsData commentsData = (CommentsData) o; - return Objects.equals(this.$schema, commentsData.$schema) && - Objects.equals(this.inlineComments, commentsData.inlineComments) && + return Objects.equals(this.inlineComments, commentsData.inlineComments) && Objects.equals(this.taskStatus, commentsData.taskStatus)&& Objects.equals(this.additionalProperties, commentsData.additionalProperties); } @Override public int hashCode() { - return Objects.hash($schema, inlineComments, taskStatus, additionalProperties); + return Objects.hash(inlineComments, taskStatus, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CommentsData {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" inlineComments: ").append(toIndentedString(inlineComments)).append("\n"); sb.append(" taskStatus: ").append(toIndentedString(taskStatus)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -287,7 +261,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "inline_comments", "task_status")); + openapiFields = new HashSet(Arrays.asList("inline_comments", "task_status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("inline_comments", "task_status")); @@ -313,9 +287,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } // ensure the required json array is present if (jsonObj.get("inline_comments") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); diff --git a/src/main/java/ai/reveng/model/ConfirmToolInputBody.java b/src/main/java/ai/reveng/model/ConfirmToolInputBody.java index 75fe8368..8dd5f91e 100644 --- a/src/main/java/ai/reveng/model/ConfirmToolInputBody.java +++ b/src/main/java/ai/reveng/model/ConfirmToolInputBody.java @@ -20,7 +20,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.util.Arrays; import com.google.gson.Gson; @@ -52,11 +51,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ConfirmToolInputBody { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_APPROVED = "approved"; @SerializedName(SERIALIZED_NAME_APPROVED) @javax.annotation.Nonnull @@ -65,24 +59,6 @@ public class ConfirmToolInputBody { public ConfirmToolInputBody() { } - public ConfirmToolInputBody( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public ConfirmToolInputBody approved(@javax.annotation.Nonnull Boolean approved) { this.approved = approved; return this; @@ -156,21 +132,19 @@ public boolean equals(Object o) { return false; } ConfirmToolInputBody confirmToolInputBody = (ConfirmToolInputBody) o; - return Objects.equals(this.$schema, confirmToolInputBody.$schema) && - Objects.equals(this.approved, confirmToolInputBody.approved)&& + return Objects.equals(this.approved, confirmToolInputBody.approved)&& Objects.equals(this.additionalProperties, confirmToolInputBody.additionalProperties); } @Override public int hashCode() { - return Objects.hash($schema, approved, additionalProperties); + return Objects.hash(approved, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConfirmToolInputBody {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" approved: ").append(toIndentedString(approved)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -194,7 +168,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "approved")); + openapiFields = new HashSet(Arrays.asList("approved")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("approved")); @@ -220,9 +194,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/Conversation.java b/src/main/java/ai/reveng/model/Conversation.java index 59214f91..5d7d57de 100644 --- a/src/main/java/ai/reveng/model/Conversation.java +++ b/src/main/java/ai/reveng/model/Conversation.java @@ -20,7 +20,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.time.OffsetDateTime; import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; @@ -54,11 +53,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Conversation { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_CONTEXT = "context"; @SerializedName(SERIALIZED_NAME_CONTEXT) @javax.annotation.Nullable @@ -92,24 +86,6 @@ public class Conversation { public Conversation() { } - public Conversation( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public Conversation context(@javax.annotation.Nullable Object context) { this.context = context; return this; @@ -278,8 +254,7 @@ public boolean equals(Object o) { return false; } Conversation conversation = (Conversation) o; - return Objects.equals(this.$schema, conversation.$schema) && - Objects.equals(this.context, conversation.context) && + return Objects.equals(this.context, conversation.context) && Objects.equals(this.conversationUuid, conversation.conversationUuid) && Objects.equals(this.createdAt, conversation.createdAt) && Objects.equals(this.title, conversation.title) && @@ -294,7 +269,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash($schema, context, conversationUuid, createdAt, title, updatedAt, userId, additionalProperties); + return Objects.hash(context, conversationUuid, createdAt, title, updatedAt, userId, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -308,7 +283,6 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Conversation {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" conversationUuid: ").append(toIndentedString(conversationUuid)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); @@ -337,7 +311,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "context", "conversation_uuid", "created_at", "title", "updated_at", "user_id")); + openapiFields = new HashSet(Arrays.asList("context", "conversation_uuid", "created_at", "title", "updated_at", "user_id")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("conversation_uuid", "created_at", "title", "updated_at", "user_id")); @@ -363,9 +337,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } if (!jsonObj.get("conversation_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `conversation_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("conversation_uuid").toString())); } diff --git a/src/main/java/ai/reveng/model/ConversationWithEvents.java b/src/main/java/ai/reveng/model/ConversationWithEvents.java index f5efa7d0..39dc4bd2 100644 --- a/src/main/java/ai/reveng/model/ConversationWithEvents.java +++ b/src/main/java/ai/reveng/model/ConversationWithEvents.java @@ -21,7 +21,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; @@ -57,11 +56,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ConversationWithEvents { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_CONTEXT = "context"; @SerializedName(SERIALIZED_NAME_CONTEXT) @javax.annotation.Nullable @@ -100,24 +94,6 @@ public class ConversationWithEvents { public ConversationWithEvents() { } - public ConversationWithEvents( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public ConversationWithEvents context(@javax.annotation.Nullable Object context) { this.context = context; return this; @@ -313,8 +289,7 @@ public boolean equals(Object o) { return false; } ConversationWithEvents conversationWithEvents = (ConversationWithEvents) o; - return Objects.equals(this.$schema, conversationWithEvents.$schema) && - Objects.equals(this.context, conversationWithEvents.context) && + return Objects.equals(this.context, conversationWithEvents.context) && Objects.equals(this.conversationUuid, conversationWithEvents.conversationUuid) && Objects.equals(this.createdAt, conversationWithEvents.createdAt) && Objects.equals(this.events, conversationWithEvents.events) && @@ -330,7 +305,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash($schema, context, conversationUuid, createdAt, events, title, updatedAt, userId, additionalProperties); + return Objects.hash(context, conversationUuid, createdAt, events, title, updatedAt, userId, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -344,7 +319,6 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConversationWithEvents {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" conversationUuid: ").append(toIndentedString(conversationUuid)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); @@ -374,7 +348,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "context", "conversation_uuid", "created_at", "events", "title", "updated_at", "user_id")); + openapiFields = new HashSet(Arrays.asList("context", "conversation_uuid", "created_at", "events", "title", "updated_at", "user_id")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("conversation_uuid", "created_at", "events", "title", "updated_at", "user_id")); @@ -400,9 +374,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } if (!jsonObj.get("conversation_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `conversation_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("conversation_uuid").toString())); } diff --git a/src/main/java/ai/reveng/model/CreateAIDecompOutputBody.java b/src/main/java/ai/reveng/model/CreateAIDecompOutputBody.java index 15991496..b809ae23 100644 --- a/src/main/java/ai/reveng/model/CreateAIDecompOutputBody.java +++ b/src/main/java/ai/reveng/model/CreateAIDecompOutputBody.java @@ -20,7 +20,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.util.Arrays; import com.google.gson.Gson; @@ -52,11 +51,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class CreateAIDecompOutputBody { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nonnull @@ -65,24 +59,6 @@ public class CreateAIDecompOutputBody { public CreateAIDecompOutputBody() { } - public CreateAIDecompOutputBody( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public CreateAIDecompOutputBody status(@javax.annotation.Nonnull Boolean status) { this.status = status; return this; @@ -156,21 +132,19 @@ public boolean equals(Object o) { return false; } CreateAIDecompOutputBody createAIDecompOutputBody = (CreateAIDecompOutputBody) o; - return Objects.equals(this.$schema, createAIDecompOutputBody.$schema) && - Objects.equals(this.status, createAIDecompOutputBody.status)&& + return Objects.equals(this.status, createAIDecompOutputBody.status)&& Objects.equals(this.additionalProperties, createAIDecompOutputBody.additionalProperties); } @Override public int hashCode() { - return Objects.hash($schema, status, additionalProperties); + return Objects.hash(status, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateAIDecompOutputBody {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -194,7 +168,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "status")); + openapiFields = new HashSet(Arrays.asList("status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("status")); @@ -220,9 +194,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/CreateConversationRequest.java b/src/main/java/ai/reveng/model/CreateConversationRequest.java index 4103095e..29d0a762 100644 --- a/src/main/java/ai/reveng/model/CreateConversationRequest.java +++ b/src/main/java/ai/reveng/model/CreateConversationRequest.java @@ -21,7 +21,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.util.Arrays; import com.google.gson.Gson; @@ -53,11 +52,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class CreateConversationRequest { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_CONTEXT = "context"; @SerializedName(SERIALIZED_NAME_CONTEXT) @javax.annotation.Nullable @@ -71,24 +65,6 @@ public class CreateConversationRequest { public CreateConversationRequest() { } - public CreateConversationRequest( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public CreateConversationRequest context(@javax.annotation.Nullable ConversationContext context) { this.context = context; return this; @@ -181,22 +157,20 @@ public boolean equals(Object o) { return false; } CreateConversationRequest createConversationRequest = (CreateConversationRequest) o; - return Objects.equals(this.$schema, createConversationRequest.$schema) && - Objects.equals(this.context, createConversationRequest.context) && + return Objects.equals(this.context, createConversationRequest.context) && Objects.equals(this.title, createConversationRequest.title)&& Objects.equals(this.additionalProperties, createConversationRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash($schema, context, title, additionalProperties); + return Objects.hash(context, title, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateConversationRequest {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -221,7 +195,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "context", "title")); + openapiFields = new HashSet(Arrays.asList("context", "title")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -240,9 +214,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) && !jsonObj.get("title").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString())); } diff --git a/src/main/java/ai/reveng/model/DecompilationData.java b/src/main/java/ai/reveng/model/DecompilationData.java index f4a3fedd..c40a30fc 100644 --- a/src/main/java/ai/reveng/model/DecompilationData.java +++ b/src/main/java/ai/reveng/model/DecompilationData.java @@ -20,7 +20,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.util.Arrays; import com.google.gson.Gson; @@ -52,11 +51,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class DecompilationData { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_DECOMPILATION = "decompilation"; @SerializedName(SERIALIZED_NAME_DECOMPILATION) @javax.annotation.Nullable @@ -130,24 +124,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public DecompilationData() { } - public DecompilationData( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public DecompilationData decompilation(@javax.annotation.Nullable String decompilation) { this.decompilation = decompilation; return this; @@ -240,22 +216,20 @@ public boolean equals(Object o) { return false; } DecompilationData decompilationData = (DecompilationData) o; - return Objects.equals(this.$schema, decompilationData.$schema) && - Objects.equals(this.decompilation, decompilationData.decompilation) && + return Objects.equals(this.decompilation, decompilationData.decompilation) && Objects.equals(this.status, decompilationData.status)&& Objects.equals(this.additionalProperties, decompilationData.additionalProperties); } @Override public int hashCode() { - return Objects.hash($schema, decompilation, status, additionalProperties); + return Objects.hash(decompilation, status, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DecompilationData {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" decompilation: ").append(toIndentedString(decompilation)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -280,7 +254,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "decompilation", "status")); + openapiFields = new HashSet(Arrays.asList("decompilation", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("status")); @@ -306,9 +280,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } if ((jsonObj.get("decompilation") != null && !jsonObj.get("decompilation").isJsonNull()) && !jsonObj.get("decompilation").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `decompilation` to be a primitive type in the JSON string but got `%s`", jsonObj.get("decompilation").toString())); } diff --git a/src/main/java/ai/reveng/model/GeneratePDFOutputBody.java b/src/main/java/ai/reveng/model/GeneratePDFOutputBody.java index 6c7faffd..fa75c295 100644 --- a/src/main/java/ai/reveng/model/GeneratePDFOutputBody.java +++ b/src/main/java/ai/reveng/model/GeneratePDFOutputBody.java @@ -20,7 +20,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.util.Arrays; import com.google.gson.Gson; @@ -52,11 +51,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class GeneratePDFOutputBody { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_ALREADY_RUNNING = "already_running"; @SerializedName(SERIALIZED_NAME_ALREADY_RUNNING) @javax.annotation.Nullable @@ -70,24 +64,6 @@ public class GeneratePDFOutputBody { public GeneratePDFOutputBody() { } - public GeneratePDFOutputBody( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public GeneratePDFOutputBody alreadyRunning(@javax.annotation.Nullable Boolean alreadyRunning) { this.alreadyRunning = alreadyRunning; return this; @@ -180,22 +156,20 @@ public boolean equals(Object o) { return false; } GeneratePDFOutputBody generatePDFOutputBody = (GeneratePDFOutputBody) o; - return Objects.equals(this.$schema, generatePDFOutputBody.$schema) && - Objects.equals(this.alreadyRunning, generatePDFOutputBody.alreadyRunning) && + return Objects.equals(this.alreadyRunning, generatePDFOutputBody.alreadyRunning) && Objects.equals(this.taskId, generatePDFOutputBody.taskId)&& Objects.equals(this.additionalProperties, generatePDFOutputBody.additionalProperties); } @Override public int hashCode() { - return Objects.hash($schema, alreadyRunning, taskId, additionalProperties); + return Objects.hash(alreadyRunning, taskId, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GeneratePDFOutputBody {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" alreadyRunning: ").append(toIndentedString(alreadyRunning)).append("\n"); sb.append(" taskId: ").append(toIndentedString(taskId)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -220,7 +194,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "already_running", "task_id")); + openapiFields = new HashSet(Arrays.asList("already_running", "task_id")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("task_id")); @@ -246,9 +220,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } if (!jsonObj.get("task_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `task_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("task_id").toString())); } diff --git a/src/main/java/ai/reveng/model/QueuePositionResponse.java b/src/main/java/ai/reveng/model/QueuePositionResponse.java index 2413cff4..c8850779 100644 --- a/src/main/java/ai/reveng/model/QueuePositionResponse.java +++ b/src/main/java/ai/reveng/model/QueuePositionResponse.java @@ -20,7 +20,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.util.Arrays; import com.google.gson.Gson; @@ -52,11 +51,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class QueuePositionResponse { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_QUEUE_POSITION = "queue_position"; @SerializedName(SERIALIZED_NAME_QUEUE_POSITION) @javax.annotation.Nonnull @@ -65,24 +59,6 @@ public class QueuePositionResponse { public QueuePositionResponse() { } - public QueuePositionResponse( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public QueuePositionResponse queuePosition(@javax.annotation.Nonnull Long queuePosition) { this.queuePosition = queuePosition; return this; @@ -156,21 +132,19 @@ public boolean equals(Object o) { return false; } QueuePositionResponse queuePositionResponse = (QueuePositionResponse) o; - return Objects.equals(this.$schema, queuePositionResponse.$schema) && - Objects.equals(this.queuePosition, queuePositionResponse.queuePosition)&& + return Objects.equals(this.queuePosition, queuePositionResponse.queuePosition)&& Objects.equals(this.additionalProperties, queuePositionResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash($schema, queuePosition, additionalProperties); + return Objects.hash(queuePosition, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class QueuePositionResponse {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" queuePosition: ").append(toIndentedString(queuePosition)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -194,7 +168,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "queue_position")); + openapiFields = new HashSet(Arrays.asList("queue_position")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("queue_position")); @@ -220,9 +194,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/RegenerateOutputBody.java b/src/main/java/ai/reveng/model/RegenerateOutputBody.java index 27e4ea84..c90dcc29 100644 --- a/src/main/java/ai/reveng/model/RegenerateOutputBody.java +++ b/src/main/java/ai/reveng/model/RegenerateOutputBody.java @@ -20,7 +20,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.util.Arrays; import com.google.gson.Gson; @@ -52,11 +51,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RegenerateOutputBody { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nonnull @@ -65,24 +59,6 @@ public class RegenerateOutputBody { public RegenerateOutputBody() { } - public RegenerateOutputBody( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public RegenerateOutputBody status(@javax.annotation.Nonnull Boolean status) { this.status = status; return this; @@ -156,21 +132,19 @@ public boolean equals(Object o) { return false; } RegenerateOutputBody regenerateOutputBody = (RegenerateOutputBody) o; - return Objects.equals(this.$schema, regenerateOutputBody.$schema) && - Objects.equals(this.status, regenerateOutputBody.status)&& + return Objects.equals(this.status, regenerateOutputBody.status)&& Objects.equals(this.additionalProperties, regenerateOutputBody.additionalProperties); } @Override public int hashCode() { - return Objects.hash($schema, status, additionalProperties); + return Objects.hash(status, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RegenerateOutputBody {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -194,7 +168,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "status")); + openapiFields = new HashSet(Arrays.asList("status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("status")); @@ -220,9 +194,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/RenameInputBody.java b/src/main/java/ai/reveng/model/RenameInputBody.java index 00c21539..ea204996 100644 --- a/src/main/java/ai/reveng/model/RenameInputBody.java +++ b/src/main/java/ai/reveng/model/RenameInputBody.java @@ -20,7 +20,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.util.Arrays; import com.google.gson.Gson; @@ -52,11 +51,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RenameInputBody { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_NEW_MANGLED_NAME = "new_mangled_name"; @SerializedName(SERIALIZED_NAME_NEW_MANGLED_NAME) @javax.annotation.Nullable @@ -70,24 +64,6 @@ public class RenameInputBody { public RenameInputBody() { } - public RenameInputBody( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public RenameInputBody newMangledName(@javax.annotation.Nullable String newMangledName) { this.newMangledName = newMangledName; return this; @@ -180,22 +156,20 @@ public boolean equals(Object o) { return false; } RenameInputBody renameInputBody = (RenameInputBody) o; - return Objects.equals(this.$schema, renameInputBody.$schema) && - Objects.equals(this.newMangledName, renameInputBody.newMangledName) && + return Objects.equals(this.newMangledName, renameInputBody.newMangledName) && Objects.equals(this.newName, renameInputBody.newName)&& Objects.equals(this.additionalProperties, renameInputBody.additionalProperties); } @Override public int hashCode() { - return Objects.hash($schema, newMangledName, newName, additionalProperties); + return Objects.hash(newMangledName, newName, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RenameInputBody {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" newMangledName: ").append(toIndentedString(newMangledName)).append("\n"); sb.append(" newName: ").append(toIndentedString(newName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -220,7 +194,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "new_mangled_name", "new_name")); + openapiFields = new HashSet(Arrays.asList("new_mangled_name", "new_name")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("new_name")); @@ -246,9 +220,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } if ((jsonObj.get("new_mangled_name") != null && !jsonObj.get("new_mangled_name").isJsonNull()) && !jsonObj.get("new_mangled_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `new_mangled_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("new_mangled_name").toString())); } diff --git a/src/main/java/ai/reveng/model/RenameOutputBody.java b/src/main/java/ai/reveng/model/RenameOutputBody.java index e3cd0277..0c713bca 100644 --- a/src/main/java/ai/reveng/model/RenameOutputBody.java +++ b/src/main/java/ai/reveng/model/RenameOutputBody.java @@ -20,7 +20,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.util.Arrays; import com.google.gson.Gson; @@ -52,11 +51,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RenameOutputBody { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_RENAMED_COUNT = "renamed_count"; @SerializedName(SERIALIZED_NAME_RENAMED_COUNT) @javax.annotation.Nonnull @@ -65,24 +59,6 @@ public class RenameOutputBody { public RenameOutputBody() { } - public RenameOutputBody( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public RenameOutputBody renamedCount(@javax.annotation.Nonnull Long renamedCount) { this.renamedCount = renamedCount; return this; @@ -156,21 +132,19 @@ public boolean equals(Object o) { return false; } RenameOutputBody renameOutputBody = (RenameOutputBody) o; - return Objects.equals(this.$schema, renameOutputBody.$schema) && - Objects.equals(this.renamedCount, renameOutputBody.renamedCount)&& + return Objects.equals(this.renamedCount, renameOutputBody.renamedCount)&& Objects.equals(this.additionalProperties, renameOutputBody.additionalProperties); } @Override public int hashCode() { - return Objects.hash($schema, renamedCount, additionalProperties); + return Objects.hash(renamedCount, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RenameOutputBody {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" renamedCount: ").append(toIndentedString(renamedCount)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -194,7 +168,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "renamed_count")); + openapiFields = new HashSet(Arrays.asList("renamed_count")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("renamed_count")); @@ -220,9 +194,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/RevertOutputBody.java b/src/main/java/ai/reveng/model/RevertOutputBody.java deleted file mode 100644 index fb8be84b..00000000 --- a/src/main/java/ai/reveng/model/RevertOutputBody.java +++ /dev/null @@ -1,287 +0,0 @@ -/* - * 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 java.util.Locale; -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.net.URI; -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 java.util.Locale; - -import ai.reveng.invoker.JSON; - -/** - * RevertOutputBody - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RevertOutputBody { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - - public RevertOutputBody() { - } - - public RevertOutputBody( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - /** - * 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 RevertOutputBody instance itself - */ - public RevertOutputBody 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; - } - RevertOutputBody revertOutputBody = (RevertOutputBody) o; - return Objects.equals(this.$schema, revertOutputBody.$schema)&& - Objects.equals(this.additionalProperties, revertOutputBody.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash($schema, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RevertOutputBody {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).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) { - if (o == null) { - return "null"; - } - return 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("$schema")); - - // 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 RevertOutputBody - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!RevertOutputBody.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RevertOutputBody is not found in the empty JSON string", RevertOutputBody.openapiRequiredFields.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RevertOutputBody.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RevertOutputBody' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RevertOutputBody.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RevertOutputBody 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 RevertOutputBody read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - RevertOutputBody 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(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 RevertOutputBody given an JSON string - * - * @param jsonString JSON string - * @return An instance of RevertOutputBody - * @throws IOException if the JSON string is invalid with respect to RevertOutputBody - */ - public static RevertOutputBody fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RevertOutputBody.class); - } - - /** - * Convert an instance of RevertOutputBody to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/ai/reveng/model/SendMessageRequest.java b/src/main/java/ai/reveng/model/SendMessageRequest.java index 50e1bea1..45b680c8 100644 --- a/src/main/java/ai/reveng/model/SendMessageRequest.java +++ b/src/main/java/ai/reveng/model/SendMessageRequest.java @@ -21,7 +21,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.util.Arrays; import com.google.gson.Gson; @@ -53,11 +52,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SendMessageRequest { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_CONTENT = "content"; @SerializedName(SERIALIZED_NAME_CONTENT) @javax.annotation.Nonnull @@ -71,24 +65,6 @@ public class SendMessageRequest { public SendMessageRequest() { } - public SendMessageRequest( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public SendMessageRequest content(@javax.annotation.Nonnull String content) { this.content = content; return this; @@ -181,22 +157,20 @@ public boolean equals(Object o) { return false; } SendMessageRequest sendMessageRequest = (SendMessageRequest) o; - return Objects.equals(this.$schema, sendMessageRequest.$schema) && - Objects.equals(this.content, sendMessageRequest.content) && + return Objects.equals(this.content, sendMessageRequest.content) && Objects.equals(this.context, sendMessageRequest.context)&& Objects.equals(this.additionalProperties, sendMessageRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash($schema, content, context, additionalProperties); + return Objects.hash(content, context, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SendMessageRequest {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" content: ").append(toIndentedString(content)).append("\n"); sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -221,7 +195,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "content", "context")); + openapiFields = new HashSet(Arrays.asList("content", "context")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("content")); @@ -247,9 +221,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } if (!jsonObj.get("content").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); } diff --git a/src/main/java/ai/reveng/model/StatusResponse.java b/src/main/java/ai/reveng/model/StatusResponse.java index 21eec0cd..d58aeb83 100644 --- a/src/main/java/ai/reveng/model/StatusResponse.java +++ b/src/main/java/ai/reveng/model/StatusResponse.java @@ -20,7 +20,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.util.Arrays; import java.util.UUID; @@ -53,11 +52,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class StatusResponse { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_CONVERSATION_UUID = "conversation_uuid"; @SerializedName(SERIALIZED_NAME_CONVERSATION_UUID) @javax.annotation.Nonnull @@ -76,24 +70,6 @@ public class StatusResponse { public StatusResponse() { } - public StatusResponse( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public StatusResponse conversationUuid(@javax.annotation.Nonnull UUID conversationUuid) { this.conversationUuid = conversationUuid; return this; @@ -205,8 +181,7 @@ public boolean equals(Object o) { return false; } StatusResponse statusResponse = (StatusResponse) o; - return Objects.equals(this.$schema, statusResponse.$schema) && - Objects.equals(this.conversationUuid, statusResponse.conversationUuid) && + return Objects.equals(this.conversationUuid, statusResponse.conversationUuid) && Objects.equals(this.status, statusResponse.status) && Objects.equals(this.traceId, statusResponse.traceId)&& Objects.equals(this.additionalProperties, statusResponse.additionalProperties); @@ -214,14 +189,13 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash($schema, conversationUuid, status, traceId, additionalProperties); + return Objects.hash(conversationUuid, status, traceId, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class StatusResponse {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" conversationUuid: ").append(toIndentedString(conversationUuid)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" traceId: ").append(toIndentedString(traceId)).append("\n"); @@ -247,7 +221,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "conversation_uuid", "status", "trace_id")); + openapiFields = new HashSet(Arrays.asList("conversation_uuid", "status", "trace_id")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("conversation_uuid", "status")); @@ -273,9 +247,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } if (!jsonObj.get("conversation_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `conversation_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("conversation_uuid").toString())); } diff --git a/src/main/java/ai/reveng/model/SummaryData.java b/src/main/java/ai/reveng/model/SummaryData.java index e58b998e..4f983567 100644 --- a/src/main/java/ai/reveng/model/SummaryData.java +++ b/src/main/java/ai/reveng/model/SummaryData.java @@ -20,7 +20,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.util.Arrays; import com.google.gson.Gson; @@ -52,11 +51,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SummaryData { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_AI_SUMMARY = "ai_summary"; @SerializedName(SERIALIZED_NAME_AI_SUMMARY) @javax.annotation.Nonnull @@ -131,24 +125,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public SummaryData() { } - public SummaryData( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public SummaryData aiSummary(@javax.annotation.Nonnull String aiSummary) { this.aiSummary = aiSummary; return this; @@ -260,8 +236,7 @@ public boolean equals(Object o) { return false; } SummaryData summaryData = (SummaryData) o; - return Objects.equals(this.$schema, summaryData.$schema) && - Objects.equals(this.aiSummary, summaryData.aiSummary) && + return Objects.equals(this.aiSummary, summaryData.aiSummary) && Objects.equals(this.summary, summaryData.summary) && Objects.equals(this.taskStatus, summaryData.taskStatus)&& Objects.equals(this.additionalProperties, summaryData.additionalProperties); @@ -269,14 +244,13 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash($schema, aiSummary, summary, taskStatus, additionalProperties); + return Objects.hash(aiSummary, summary, taskStatus, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SummaryData {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" aiSummary: ").append(toIndentedString(aiSummary)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" taskStatus: ").append(toIndentedString(taskStatus)).append("\n"); @@ -302,7 +276,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "ai_summary", "summary", "task_status")); + openapiFields = new HashSet(Arrays.asList("ai_summary", "summary", "task_status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("ai_summary", "summary", "task_status")); @@ -328,9 +302,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } if (!jsonObj.get("ai_summary").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ai_summary` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ai_summary").toString())); } diff --git a/src/main/java/ai/reveng/model/TokenisedData.java b/src/main/java/ai/reveng/model/TokenisedData.java index ceb33226..246eebc7 100644 --- a/src/main/java/ai/reveng/model/TokenisedData.java +++ b/src/main/java/ai/reveng/model/TokenisedData.java @@ -21,7 +21,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.util.Arrays; import com.google.gson.Gson; @@ -53,11 +52,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class TokenisedData { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_FUNCTION_MAPPING = "function_mapping"; @SerializedName(SERIALIZED_NAME_FUNCTION_MAPPING) @javax.annotation.Nullable @@ -141,24 +135,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public TokenisedData() { } - public TokenisedData( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public TokenisedData functionMapping(@javax.annotation.Nullable FunctionMapping functionMapping) { this.functionMapping = functionMapping; return this; @@ -289,8 +265,7 @@ public boolean equals(Object o) { return false; } TokenisedData tokenisedData = (TokenisedData) o; - return Objects.equals(this.$schema, tokenisedData.$schema) && - Objects.equals(this.functionMapping, tokenisedData.functionMapping) && + return Objects.equals(this.functionMapping, tokenisedData.functionMapping) && Objects.equals(this.predictedFunctionName, tokenisedData.predictedFunctionName) && Objects.equals(this.status, tokenisedData.status) && Objects.equals(this.tokenisedDecompilation, tokenisedData.tokenisedDecompilation)&& @@ -299,14 +274,13 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash($schema, functionMapping, predictedFunctionName, status, tokenisedDecompilation, additionalProperties); + return Objects.hash(functionMapping, predictedFunctionName, status, tokenisedDecompilation, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TokenisedData {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" functionMapping: ").append(toIndentedString(functionMapping)).append("\n"); sb.append(" predictedFunctionName: ").append(toIndentedString(predictedFunctionName)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); @@ -333,7 +307,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "function_mapping", "predicted_function_name", "status", "tokenised_decompilation")); + openapiFields = new HashSet(Arrays.asList("function_mapping", "predicted_function_name", "status", "tokenised_decompilation")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("status")); @@ -359,9 +333,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } // validate the optional field `function_mapping` if (jsonObj.get("function_mapping") != null && !jsonObj.get("function_mapping").isJsonNull()) { FunctionMapping.validateJsonElement(jsonObj.get("function_mapping")); diff --git a/src/main/java/ai/reveng/model/UpsertOverridesData.java b/src/main/java/ai/reveng/model/UpsertOverridesData.java index 5702f1b7..f2605a53 100644 --- a/src/main/java/ai/reveng/model/UpsertOverridesData.java +++ b/src/main/java/ai/reveng/model/UpsertOverridesData.java @@ -20,7 +20,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -54,11 +53,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class UpsertOverridesData { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_USER_OVERRIDE_MAPPINGS = "user_override_mappings"; @SerializedName(SERIALIZED_NAME_USER_OVERRIDE_MAPPINGS) @javax.annotation.Nonnull @@ -67,24 +61,6 @@ public class UpsertOverridesData { public UpsertOverridesData() { } - public UpsertOverridesData( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public UpsertOverridesData userOverrideMappings(@javax.annotation.Nonnull Map userOverrideMappings) { this.userOverrideMappings = userOverrideMappings; return this; @@ -166,21 +142,19 @@ public boolean equals(Object o) { return false; } UpsertOverridesData upsertOverridesData = (UpsertOverridesData) o; - return Objects.equals(this.$schema, upsertOverridesData.$schema) && - Objects.equals(this.userOverrideMappings, upsertOverridesData.userOverrideMappings)&& + return Objects.equals(this.userOverrideMappings, upsertOverridesData.userOverrideMappings)&& Objects.equals(this.additionalProperties, upsertOverridesData.additionalProperties); } @Override public int hashCode() { - return Objects.hash($schema, userOverrideMappings, additionalProperties); + return Objects.hash(userOverrideMappings, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpsertOverridesData {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" userOverrideMappings: ").append(toIndentedString(userOverrideMappings)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -204,7 +178,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "user_override_mappings")); + openapiFields = new HashSet(Arrays.asList("user_override_mappings")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("user_override_mappings")); @@ -230,9 +204,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/UpsertOverridesInputBody.java b/src/main/java/ai/reveng/model/UpsertOverridesInputBody.java index db67cbcf..44bcc966 100644 --- a/src/main/java/ai/reveng/model/UpsertOverridesInputBody.java +++ b/src/main/java/ai/reveng/model/UpsertOverridesInputBody.java @@ -20,7 +20,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -54,11 +53,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class UpsertOverridesInputBody { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_OVERRIDES = "overrides"; @SerializedName(SERIALIZED_NAME_OVERRIDES) @javax.annotation.Nonnull @@ -67,24 +61,6 @@ public class UpsertOverridesInputBody { public UpsertOverridesInputBody() { } - public UpsertOverridesInputBody( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public UpsertOverridesInputBody overrides(@javax.annotation.Nonnull Map overrides) { this.overrides = overrides; return this; @@ -166,21 +142,19 @@ public boolean equals(Object o) { return false; } UpsertOverridesInputBody upsertOverridesInputBody = (UpsertOverridesInputBody) o; - return Objects.equals(this.$schema, upsertOverridesInputBody.$schema) && - Objects.equals(this.overrides, upsertOverridesInputBody.overrides)&& + return Objects.equals(this.overrides, upsertOverridesInputBody.overrides)&& Objects.equals(this.additionalProperties, upsertOverridesInputBody.additionalProperties); } @Override public int hashCode() { - return Objects.hash($schema, overrides, additionalProperties); + return Objects.hash(overrides, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpsertOverridesInputBody {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" overrides: ").append(toIndentedString(overrides)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -204,7 +178,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "overrides")); + openapiFields = new HashSet(Arrays.asList("overrides")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("overrides")); @@ -230,9 +204,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/WorkflowProgress.java b/src/main/java/ai/reveng/model/WorkflowProgress.java index 7bc078f5..72637c34 100644 --- a/src/main/java/ai/reveng/model/WorkflowProgress.java +++ b/src/main/java/ai/reveng/model/WorkflowProgress.java @@ -21,7 +21,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.net.URI; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -55,11 +54,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class WorkflowProgress { - public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; - @SerializedName(SERIALIZED_NAME_$_SCHEMA) - @javax.annotation.Nullable - private URI $schema; - public static final String SERIALIZED_NAME_MESSAGES = "messages"; @SerializedName(SERIALIZED_NAME_MESSAGES) @javax.annotation.Nullable @@ -148,24 +142,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public WorkflowProgress() { } - public WorkflowProgress( - URI $schema - ) { - this(); - this.$schema = $schema; - } - - /** - * A URL to the JSON Schema for this object. - * @return $schema - */ - @javax.annotation.Nullable - public URI get$Schema() { - return $schema; - } - - - public WorkflowProgress messages(@javax.annotation.Nullable List messages) { this.messages = messages; return this; @@ -323,8 +299,7 @@ public boolean equals(Object o) { return false; } WorkflowProgress workflowProgress = (WorkflowProgress) o; - return Objects.equals(this.$schema, workflowProgress.$schema) && - Objects.equals(this.messages, workflowProgress.messages) && + return Objects.equals(this.messages, workflowProgress.messages) && Objects.equals(this.status, workflowProgress.status) && Objects.equals(this.step, workflowProgress.step) && Objects.equals(this.stepIndex, workflowProgress.stepIndex) && @@ -334,14 +309,13 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash($schema, messages, status, step, stepIndex, stepsTotal, additionalProperties); + return Objects.hash(messages, status, step, stepIndex, stepsTotal, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class WorkflowProgress {\n"); - sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" messages: ").append(toIndentedString(messages)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" step: ").append(toIndentedString(step)).append("\n"); @@ -369,7 +343,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("$schema", "messages", "status", "step", "step_index", "steps_total")); + openapiFields = new HashSet(Arrays.asList("messages", "status", "step", "step_index", "steps_total")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("messages", "status", "step", "step_index", "steps_total")); @@ -395,9 +369,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); - } // ensure the required json array is present if (jsonObj.get("messages") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`");