diff --git a/.sdk-version b/.sdk-version index f9627db..338a4a1 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v3.82.2 +v3.84.0 diff --git a/README.md b/README.md index 0cb97ce..4611f93 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,6 @@ Class | Method | HTTP request | Description *AnalysesResultsMetadataApi* | [**get_analysis_functions_paginated**](docs/AnalysesResultsMetadataApi.md#get_analysis_functions_paginated) | **GET** /v2/analyses/{analysis_id}/functions | Get functions from analysis *AnalysesResultsMetadataApi* | [**get_capabilities**](docs/AnalysesResultsMetadataApi.md#get_capabilities) | **GET** /v2/analyses/{analysis_id}/capabilities | Gets the capabilities from the analysis *AnalysesResultsMetadataApi* | [**get_functions_list**](docs/AnalysesResultsMetadataApi.md#get_functions_list) | **GET** /v2/analyses/{analysis_id}/functions/list | Gets functions from analysis -*AnalysesResultsMetadataApi* | [**get_pdf**](docs/AnalysesResultsMetadataApi.md#get_pdf) | **GET** /v2/analyses/{analysis_id}/pdf | Gets the PDF found in the analysis *AnalysesResultsMetadataApi* | [**get_sbom**](docs/AnalysesResultsMetadataApi.md#get_sbom) | **GET** /v2/analyses/{analysis_id}/sbom | Gets the software-bill-of-materials (SBOM) found in the analysis *AnalysesResultsMetadataApi* | [**get_tags**](docs/AnalysesResultsMetadataApi.md#get_tags) | **GET** /v2/analyses/{analysis_id}/tags | Get function tags with maliciousness score *AnalysesResultsMetadataApi* | [**get_vulnerabilities**](docs/AnalysesResultsMetadataApi.md#get_vulnerabilities) | **GET** /v2/analyses/{analysis_id}/vulnerabilities | Gets the vulnerabilities found in the analysis @@ -472,7 +471,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/docs/APIError.md b/docs/APIError.md index bd2bed5..88fc64c 100644 --- a/docs/APIError.md +++ b/docs/APIError.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **error** | [**ErrorBody**](ErrorBody.md) | | ## Example diff --git a/docs/AnalysesResultsMetadataApi.md b/docs/AnalysesResultsMetadataApi.md index d547e07..fefc2c3 100644 --- a/docs/AnalysesResultsMetadataApi.md +++ b/docs/AnalysesResultsMetadataApi.md @@ -7,7 +7,6 @@ Method | HTTP request | Description [**get_analysis_functions_paginated**](AnalysesResultsMetadataApi.md#get_analysis_functions_paginated) | **GET** /v2/analyses/{analysis_id}/functions | Get functions from analysis [**get_capabilities**](AnalysesResultsMetadataApi.md#get_capabilities) | **GET** /v2/analyses/{analysis_id}/capabilities | Gets the capabilities from the analysis [**get_functions_list**](AnalysesResultsMetadataApi.md#get_functions_list) | **GET** /v2/analyses/{analysis_id}/functions/list | Gets functions from analysis -[**get_pdf**](AnalysesResultsMetadataApi.md#get_pdf) | **GET** /v2/analyses/{analysis_id}/pdf | Gets the PDF found in the analysis [**get_sbom**](AnalysesResultsMetadataApi.md#get_sbom) | **GET** /v2/analyses/{analysis_id}/sbom | Gets the software-bill-of-materials (SBOM) found in the analysis [**get_tags**](AnalysesResultsMetadataApi.md#get_tags) | **GET** /v2/analyses/{analysis_id}/tags | Get function tags with maliciousness score [**get_vulnerabilities**](AnalysesResultsMetadataApi.md#get_vulnerabilities) | **GET** /v2/analyses/{analysis_id}/vulnerabilities | Gets the vulnerabilities found in the analysis @@ -267,83 +266,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_pdf** -> object get_pdf(analysis_id) - -Gets the PDF found in the analysis - -### Example - -* Api Key Authentication (APIKey): - -```python -import revengai -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesResultsMetadataApi(api_client) - analysis_id = 56 # int | - - try: - # Gets the PDF found in the analysis - api_response = api_instance.get_pdf(analysis_id) - print("The response of AnalysesResultsMetadataApi->get_pdf:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesResultsMetadataApi->get_pdf: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### 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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **get_sbom** > BaseResponseListSBOM get_sbom(analysis_id) diff --git a/docs/Basic.md b/docs/Basic.md index 3532b10..56bd078 100644 --- a/docs/Basic.md +++ b/docs/Basic.md @@ -22,6 +22,7 @@ Name | Type | Description | Notes **base_address** | **int** | | **binary_uuid** | **str** | | [optional] **sequencer_version** | **str** | | [optional] +**team_id** | **int** | The team ID of the analysis | ## Example diff --git a/docs/BatchRenameInputBody.md b/docs/BatchRenameInputBody.md index e720638..a9ad260 100644 --- a/docs/BatchRenameInputBody.md +++ b/docs/BatchRenameInputBody.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **functions** | [**List[BatchRenameItem]**](BatchRenameItem.md) | List of functions to rename | ## Example diff --git a/docs/BatchRenameOutputBody.md b/docs/BatchRenameOutputBody.md index 12a4ecf..06ab0d0 100644 --- a/docs/BatchRenameOutputBody.md +++ b/docs/BatchRenameOutputBody.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **renamed_count** | **int** | Number of functions renamed | ## Example diff --git a/docs/CommentsData.md b/docs/CommentsData.md index 3bfffa2..7b2871a 100644 --- a/docs/CommentsData.md +++ b/docs/CommentsData.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **inline_comments** | [**List[InlineComment]**](InlineComment.md) | Structured inline comments with line numbers | **task_status** | **str** | Task status | diff --git a/docs/ConfirmToolInputBody.md b/docs/ConfirmToolInputBody.md index 97ead6a..05fd787 100644 --- a/docs/ConfirmToolInputBody.md +++ b/docs/ConfirmToolInputBody.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **approved** | **bool** | Whether the user approves the pending tool call. | ## Example diff --git a/docs/Conversation.md b/docs/Conversation.md index ed7ae0f..35b628c 100644 --- a/docs/Conversation.md +++ b/docs/Conversation.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **context** | **object** | | [optional] **conversation_uuid** | **str** | | **created_at** | **datetime** | | diff --git a/docs/ConversationWithEvents.md b/docs/ConversationWithEvents.md index 1a1ab2d..7ca4a15 100644 --- a/docs/ConversationWithEvents.md +++ b/docs/ConversationWithEvents.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **context** | **object** | | [optional] **conversation_uuid** | **str** | | **created_at** | **datetime** | | diff --git a/docs/CreateAIDecompOutputBody.md b/docs/CreateAIDecompOutputBody.md index ad46330..36c238c 100644 --- a/docs/CreateAIDecompOutputBody.md +++ b/docs/CreateAIDecompOutputBody.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **status** | **bool** | | ## Example diff --git a/docs/CreateConversationRequest.md b/docs/CreateConversationRequest.md index 9e3d0f9..b3b4eff 100644 --- a/docs/CreateConversationRequest.md +++ b/docs/CreateConversationRequest.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **context** | [**ConversationContext**](ConversationContext.md) | | [optional] **title** | **str** | | [optional] diff --git a/docs/DecompilationData.md b/docs/DecompilationData.md index 7ac4ee9..cf77ccb 100644 --- a/docs/DecompilationData.md +++ b/docs/DecompilationData.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **decompilation** | **str** | Source code with placeholders replaced | [optional] **status** | **str** | Task status | diff --git a/docs/FunctionsRenamingHistoryApi.md b/docs/FunctionsRenamingHistoryApi.md index 57d32bb..2c778df 100644 --- a/docs/FunctionsRenamingHistoryApi.md +++ b/docs/FunctionsRenamingHistoryApi.md @@ -608,7 +608,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **revert_function_name_0** -> RevertOutputBody revert_function_name_0(function_id, history_id) +> Dict[str, object] revert_function_name_0(function_id, history_id) Revert function name @@ -624,7 +624,6 @@ Reverts a function's name to a previous value from its history. ```python import revengai -from revengai.models.revert_output_body import RevertOutputBody from revengai.rest import ApiException from pprint import pprint @@ -673,7 +672,7 @@ Name | Type | Description | Notes ### Return type -[**RevertOutputBody**](RevertOutputBody.md) +**Dict[str, object]** ### Authorization diff --git a/docs/GeneratePDFOutputBody.md b/docs/GeneratePDFOutputBody.md index 5088c2b..c56bd1c 100644 --- a/docs/GeneratePDFOutputBody.md +++ b/docs/GeneratePDFOutputBody.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **already_running** | **bool** | True when an existing PDF generation is in progress for this analysis and user | [optional] **task_id** | **str** | Workflow task ID — use to poll status and download the PDF | diff --git a/docs/QueuePositionResponse.md b/docs/QueuePositionResponse.md index c41a5dc..023d1c0 100644 --- a/docs/QueuePositionResponse.md +++ b/docs/QueuePositionResponse.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **queue_position** | **int** | 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. | ## Example diff --git a/docs/RegenerateOutputBody.md b/docs/RegenerateOutputBody.md index 2cb8e95..2549abd 100644 --- a/docs/RegenerateOutputBody.md +++ b/docs/RegenerateOutputBody.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **status** | **bool** | | ## Example diff --git a/docs/RenameInputBody.md b/docs/RenameInputBody.md index ab12261..2b18113 100644 --- a/docs/RenameInputBody.md +++ b/docs/RenameInputBody.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **new_mangled_name** | **str** | New mangled function name | [optional] **new_name** | **str** | New function name | diff --git a/docs/RenameOutputBody.md b/docs/RenameOutputBody.md index c6707c5..6417fb2 100644 --- a/docs/RenameOutputBody.md +++ b/docs/RenameOutputBody.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **renamed_count** | **int** | Number of functions renamed | ## Example diff --git a/docs/RevertOutputBody.md b/docs/RevertOutputBody.md deleted file mode 100644 index 3941a3d..0000000 --- a/docs/RevertOutputBody.md +++ /dev/null @@ -1,29 +0,0 @@ -# RevertOutputBody - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] - -## Example - -```python -from revengai.models.revert_output_body import RevertOutputBody - -# TODO update the JSON string below -json = "{}" -# create an instance of RevertOutputBody from a JSON string -revert_output_body_instance = RevertOutputBody.from_json(json) -# print the JSON string representation of the object -print(RevertOutputBody.to_json()) - -# convert the object into a dict -revert_output_body_dict = revert_output_body_instance.to_dict() -# create an instance of RevertOutputBody from a dict -revert_output_body_from_dict = RevertOutputBody.from_dict(revert_output_body_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SendMessageRequest.md b/docs/SendMessageRequest.md index 007efc2..ab58594 100644 --- a/docs/SendMessageRequest.md +++ b/docs/SendMessageRequest.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **content** | **str** | | **context** | [**ConversationContext**](ConversationContext.md) | | [optional] diff --git a/docs/StatusResponse.md b/docs/StatusResponse.md index c2cd50e..bc9c632 100644 --- a/docs/StatusResponse.md +++ b/docs/StatusResponse.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **conversation_uuid** | **str** | | **status** | **str** | | **trace_id** | **str** | 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 33a0162..4c63899 100644 --- a/docs/SummaryData.md +++ b/docs/SummaryData.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **ai_summary** | **str** | Summary with code tags removed | **summary** | **str** | Raw summary from the model | **task_status** | **str** | Task status | diff --git a/docs/TokenisedData.md b/docs/TokenisedData.md index 3aff4db..ed14821 100644 --- a/docs/TokenisedData.md +++ b/docs/TokenisedData.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **function_mapping** | [**FunctionMapping**](FunctionMapping.md) | Complete mapping data for token resolution | [optional] **predicted_function_name** | **str** | Predicted function name from the AI model | [optional] **status** | **str** | Task status | diff --git a/docs/UpsertOverridesData.md b/docs/UpsertOverridesData.md index c8251ae..7fe350e 100644 --- a/docs/UpsertOverridesData.md +++ b/docs/UpsertOverridesData.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **user_override_mappings** | **Dict[str, str]** | Merged override mappings after applying changes | ## Example diff --git a/docs/UpsertOverridesInputBody.md b/docs/UpsertOverridesInputBody.md index 97da860..f94d55d 100644 --- a/docs/UpsertOverridesInputBody.md +++ b/docs/UpsertOverridesInputBody.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **overrides** | **Dict[str, str]** | Token to name mappings. Empty string removes the override. | ## Example diff --git a/docs/WorkflowProgress.md b/docs/WorkflowProgress.md index e74888d..301b3fb 100644 --- a/docs/WorkflowProgress.md +++ b/docs/WorkflowProgress.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**var_schema** | **str** | A URL to the JSON Schema for this object. | [optional] [readonly] **messages** | [**List[ProgressMessage]**](ProgressMessage.md) | Log messages emitted during execution | **status** | **str** | Current workflow status | **step** | **str** | Name of the current step | diff --git a/revengai/__init__.py b/revengai/__init__.py index 5e2ca8d..e4002ab 100644 --- a/revengai/__init__.py +++ b/revengai/__init__.py @@ -13,7 +13,7 @@ """ # noqa: E501 -__version__ = "v3.82.2" +__version__ = "v3.84.0" # Define package exports __all__ = [ @@ -345,7 +345,6 @@ "ReportEvent", "ReportInfo", "ReportOptions", - "RevertOutputBody", "SBOM", "SBOMPackage", "SandboxOptions", @@ -754,7 +753,6 @@ from revengai.models.report_event import ReportEvent as ReportEvent from revengai.models.report_info import ReportInfo as ReportInfo from revengai.models.report_options import ReportOptions as ReportOptions -from revengai.models.revert_output_body import RevertOutputBody as RevertOutputBody from revengai.models.sbom import SBOM as SBOM from revengai.models.sbom_package import SBOMPackage as SBOMPackage from revengai.models.sandbox_options import SandboxOptions as SandboxOptions diff --git a/revengai/api/analyses_results_metadata_api.py b/revengai/api/analyses_results_metadata_api.py index 71f51a9..8093223 100644 --- a/revengai/api/analyses_results_metadata_api.py +++ b/revengai/api/analyses_results_metadata_api.py @@ -16,7 +16,7 @@ from typing_extensions import Annotated from pydantic import Field, StrictBool, StrictInt, StrictStr -from typing import Any, Optional +from typing import Optional from typing_extensions import Annotated from revengai.models.base_response_analysis_functions import BaseResponseAnalysisFunctions from revengai.models.base_response_analysis_functions_list import BaseResponseAnalysisFunctionsList @@ -971,267 +971,6 @@ def _get_functions_list_serialize( - @validate_call - def get_pdf( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """Gets the PDF found in the analysis - - - :param analysis_id: (required) - :type analysis_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_pdf_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_pdf_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: - """Gets the PDF found in the analysis - - - :param analysis_id: (required) - :type analysis_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_pdf_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_pdf_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Gets the PDF found in the analysis - - - :param analysis_id: (required) - :type analysis_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_pdf_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_pdf_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/pdf', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - @validate_call def get_sbom( self, diff --git a/revengai/api/functions_ai_decompilation_api.py b/revengai/api/functions_ai_decompilation_api.py index c3a9eb9..152209c 100644 --- a/revengai/api/functions_ai_decompilation_api.py +++ b/revengai/api/functions_ai_decompilation_api.py @@ -679,7 +679,7 @@ def create_ai_decompilation_task( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BaseResponse: - """Begins AI Decompilation Process + """(Deprecated) Begins AI Decompilation Process Begins the AI Decompilation Process @@ -706,6 +706,7 @@ def create_ai_decompilation_task( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 + warnings.warn("POST /v2/functions/{function_id}/ai-decompilation is deprecated.", DeprecationWarning) _param = self._create_ai_decompilation_task_serialize( function_id=function_id, @@ -751,7 +752,7 @@ def create_ai_decompilation_task_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[BaseResponse]: - """Begins AI Decompilation Process + """(Deprecated) Begins AI Decompilation Process Begins the AI Decompilation Process @@ -778,6 +779,7 @@ def create_ai_decompilation_task_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 + warnings.warn("POST /v2/functions/{function_id}/ai-decompilation is deprecated.", DeprecationWarning) _param = self._create_ai_decompilation_task_serialize( function_id=function_id, @@ -823,7 +825,7 @@ def create_ai_decompilation_task_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Begins AI Decompilation Process + """(Deprecated) Begins AI Decompilation Process Begins the AI Decompilation Process @@ -850,6 +852,7 @@ def create_ai_decompilation_task_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 + warnings.warn("POST /v2/functions/{function_id}/ai-decompilation is deprecated.", DeprecationWarning) _param = self._create_ai_decompilation_task_serialize( function_id=function_id, @@ -3406,7 +3409,7 @@ def get_ai_decompilation_task_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BaseResponseGetAiDecompilationTask: - """Polls AI Decompilation Process + """(Deprecated) Polls AI Decompilation Process Polls the AI Decompilation Process @@ -3439,6 +3442,7 @@ def get_ai_decompilation_task_result( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 + warnings.warn("GET /v2/functions/{function_id}/ai-decompilation is deprecated.", DeprecationWarning) _param = self._get_ai_decompilation_task_result_serialize( function_id=function_id, @@ -3487,7 +3491,7 @@ def get_ai_decompilation_task_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[BaseResponseGetAiDecompilationTask]: - """Polls AI Decompilation Process + """(Deprecated) Polls AI Decompilation Process Polls the AI Decompilation Process @@ -3520,6 +3524,7 @@ def get_ai_decompilation_task_result_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 + warnings.warn("GET /v2/functions/{function_id}/ai-decompilation is deprecated.", DeprecationWarning) _param = self._get_ai_decompilation_task_result_serialize( function_id=function_id, @@ -3568,7 +3573,7 @@ def get_ai_decompilation_task_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Polls AI Decompilation Process + """(Deprecated) Polls AI Decompilation Process Polls the AI Decompilation Process @@ -3601,6 +3606,7 @@ def get_ai_decompilation_task_result_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 + warnings.warn("GET /v2/functions/{function_id}/ai-decompilation is deprecated.", DeprecationWarning) _param = self._get_ai_decompilation_task_result_serialize( function_id=function_id, @@ -3722,7 +3728,7 @@ def get_ai_decompilation_task_status( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BaseResponseFunctionTaskResponse: - """Check the status of a function ai decompilation + """(Deprecated) Check the status of a function ai decompilation :param function_id: The ID of the function being checked (required) @@ -3748,6 +3754,7 @@ def get_ai_decompilation_task_status( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 + warnings.warn("GET /v2/functions/{function_id}/ai-decompilation/status is deprecated.", DeprecationWarning) _param = self._get_ai_decompilation_task_status_serialize( function_id=function_id, @@ -3789,7 +3796,7 @@ def get_ai_decompilation_task_status_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[BaseResponseFunctionTaskResponse]: - """Check the status of a function ai decompilation + """(Deprecated) Check the status of a function ai decompilation :param function_id: The ID of the function being checked (required) @@ -3815,6 +3822,7 @@ def get_ai_decompilation_task_status_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 + warnings.warn("GET /v2/functions/{function_id}/ai-decompilation/status is deprecated.", DeprecationWarning) _param = self._get_ai_decompilation_task_status_serialize( function_id=function_id, @@ -3856,7 +3864,7 @@ def get_ai_decompilation_task_status_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Check the status of a function ai decompilation + """(Deprecated) Check the status of a function ai decompilation :param function_id: The ID of the function being checked (required) @@ -3882,6 +3890,7 @@ def get_ai_decompilation_task_status_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 + warnings.warn("GET /v2/functions/{function_id}/ai-decompilation/status is deprecated.", DeprecationWarning) _param = self._get_ai_decompilation_task_status_serialize( function_id=function_id, diff --git a/revengai/api/functions_renaming_history_api.py b/revengai/api/functions_renaming_history_api.py index e53140d..739ffd5 100644 --- a/revengai/api/functions_renaming_history_api.py +++ b/revengai/api/functions_renaming_history_api.py @@ -16,7 +16,7 @@ from typing_extensions import Annotated from pydantic import Field, StrictInt -from typing import List +from typing import Any, Dict, List from typing_extensions import Annotated from revengai.models.base_response import BaseResponse from revengai.models.base_response_list_function_name_history import BaseResponseListFunctionNameHistory @@ -27,7 +27,6 @@ from revengai.models.history_entry import HistoryEntry from revengai.models.rename_input_body import RenameInputBody from revengai.models.rename_output_body import RenameOutputBody -from revengai.models.revert_output_body import RevertOutputBody from revengai.api_client import ApiClient, RequestSerialized from revengai.api_response import ApiResponse @@ -2036,7 +2035,7 @@ def revert_function_name_0( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RevertOutputBody: + ) -> Dict[str, object]: """Revert function name 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 @@ -2077,7 +2076,7 @@ def revert_function_name_0( ) _response_types_map: Dict[str, Optional[str]] = { - '204': "RevertOutputBody", + '204': "Dict[str, object]", '403': "APIError", '404': "APIError", '422': "APIError", @@ -2111,7 +2110,7 @@ def revert_function_name_0_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[RevertOutputBody]: + ) -> ApiResponse[Dict[str, object]]: """Revert function name 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 @@ -2152,7 +2151,7 @@ def revert_function_name_0_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': "RevertOutputBody", + '204': "Dict[str, object]", '403': "APIError", '404': "APIError", '422': "APIError", @@ -2227,7 +2226,7 @@ def revert_function_name_0_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': "RevertOutputBody", + '204': "Dict[str, object]", '403': "APIError", '404': "APIError", '422': "APIError", diff --git a/revengai/api_client.py b/revengai/api_client.py index 87a4af7..d8605d7 100644 --- a/revengai/api_client.py +++ b/revengai/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/v3.82.2/python' + self.user_agent = 'OpenAPI-Generator/v3.84.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/revengai/configuration.py b/revengai/configuration.py index 155b430..71dd2a5 100644 --- a/revengai/configuration.py +++ b/revengai/configuration.py @@ -533,8 +533,8 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: v3.82.2\n"\ - "SDK Package Version: v3.82.2".\ + "Version of the API: v3.84.0\n"\ + "SDK Package Version: v3.84.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/revengai/models/__init__.py b/revengai/models/__init__.py index 930a188..0f601ec 100644 --- a/revengai/models/__init__.py +++ b/revengai/models/__init__.py @@ -311,7 +311,6 @@ from revengai.models.report_event import ReportEvent from revengai.models.report_info import ReportInfo from revengai.models.report_options import ReportOptions -from revengai.models.revert_output_body import RevertOutputBody from revengai.models.sbom import SBOM from revengai.models.sbom_package import SBOMPackage from revengai.models.sandbox_options import SandboxOptions diff --git a/revengai/models/api_error.py b/revengai/models/api_error.py index 2c878e9..fd630e0 100644 --- a/revengai/models/api_error.py +++ b/revengai/models/api_error.py @@ -16,8 +16,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List from revengai.models.error_body import ErrorBody from typing import Optional, Set from typing_extensions import Self @@ -26,10 +26,9 @@ class APIError(BaseModel): """ APIError """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") error: ErrorBody additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "error"] + __properties: ClassVar[List[str]] = ["error"] model_config = ConfigDict( populate_by_name=True, @@ -61,11 +60,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -94,7 +91,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "error": ErrorBody.from_dict(obj["error"]) if obj.get("error") is not None else None }) # store additional fields in additional_properties diff --git a/revengai/models/basic.py b/revengai/models/basic.py index 72c4cf0..5bc6eca 100644 --- a/revengai/models/basic.py +++ b/revengai/models/basic.py @@ -43,7 +43,8 @@ class Basic(BaseModel): base_address: Optional[StrictInt] binary_uuid: Optional[StrictStr] = None sequencer_version: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["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: StrictInt = Field(description="The team ID of the analysis") + __properties: ClassVar[List[str]] = ["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"] model_config = ConfigDict( populate_by_name=True, @@ -127,7 +128,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "is_advanced": obj.get("is_advanced"), "base_address": obj.get("base_address"), "binary_uuid": obj.get("binary_uuid"), - "sequencer_version": obj.get("sequencer_version") + "sequencer_version": obj.get("sequencer_version"), + "team_id": obj.get("team_id") }) return _obj diff --git a/revengai/models/batch_rename_input_body.py b/revengai/models/batch_rename_input_body.py index 68533dc..a389c4f 100644 --- a/revengai/models/batch_rename_input_body.py +++ b/revengai/models/batch_rename_input_body.py @@ -16,7 +16,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from revengai.models.batch_rename_item import BatchRenameItem @@ -27,10 +27,9 @@ class BatchRenameInputBody(BaseModel): """ BatchRenameInputBody """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") functions: Optional[Annotated[List[BatchRenameItem], Field(min_length=1, max_length=1000)]] = Field(description="List of functions to rename") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "functions"] + __properties: ClassVar[List[str]] = ["functions"] model_config = ConfigDict( populate_by_name=True, @@ -62,11 +61,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -104,7 +101,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "functions": [BatchRenameItem.from_dict(_item) for _item in obj["functions"]] if obj.get("functions") is not None else None }) # store additional fields in additional_properties diff --git a/revengai/models/batch_rename_output_body.py b/revengai/models/batch_rename_output_body.py index 340537a..a0633a7 100644 --- a/revengai/models/batch_rename_output_body.py +++ b/revengai/models/batch_rename_output_body.py @@ -16,8 +16,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -25,10 +25,9 @@ class BatchRenameOutputBody(BaseModel): """ BatchRenameOutputBody """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") renamed_count: StrictInt = Field(description="Number of functions renamed") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "renamed_count"] + __properties: ClassVar[List[str]] = ["renamed_count"] model_config = ConfigDict( populate_by_name=True, @@ -60,11 +59,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -90,7 +87,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "renamed_count": obj.get("renamed_count") }) # store additional fields in additional_properties diff --git a/revengai/models/comments_data.py b/revengai/models/comments_data.py index 76c3edc..4841c80 100644 --- a/revengai/models/comments_data.py +++ b/revengai/models/comments_data.py @@ -26,11 +26,10 @@ class CommentsData(BaseModel): """ CommentsData """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") inline_comments: Optional[List[InlineComment]] = Field(description="Structured inline comments with line numbers") task_status: StrictStr = Field(description="Task status") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "inline_comments", "task_status"] + __properties: ClassVar[List[str]] = ["inline_comments", "task_status"] @field_validator('task_status') def task_status_validate_enum(cls, value): @@ -69,11 +68,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -111,7 +108,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "inline_comments": [InlineComment.from_dict(_item) for _item in obj["inline_comments"]] if obj.get("inline_comments") is not None else None, "task_status": obj.get("task_status") }) diff --git a/revengai/models/confirm_tool_input_body.py b/revengai/models/confirm_tool_input_body.py index 0293d6b..150a92e 100644 --- a/revengai/models/confirm_tool_input_body.py +++ b/revengai/models/confirm_tool_input_body.py @@ -16,8 +16,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -25,10 +25,9 @@ class ConfirmToolInputBody(BaseModel): """ ConfirmToolInputBody """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") approved: StrictBool = Field(description="Whether the user approves the pending tool call.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "approved"] + __properties: ClassVar[List[str]] = ["approved"] model_config = ConfigDict( populate_by_name=True, @@ -60,11 +59,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -90,7 +87,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "approved": obj.get("approved") }) # store additional fields in additional_properties diff --git a/revengai/models/conversation.py b/revengai/models/conversation.py index be65bf4..8b3dabf 100644 --- a/revengai/models/conversation.py +++ b/revengai/models/conversation.py @@ -17,7 +17,7 @@ import json from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,6 @@ class Conversation(BaseModel): """ Conversation """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") context: Optional[Any] = None conversation_uuid: StrictStr created_at: datetime @@ -34,7 +33,7 @@ class Conversation(BaseModel): updated_at: datetime user_id: StrictInt additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "context", "conversation_uuid", "created_at", "title", "updated_at", "user_id"] + __properties: ClassVar[List[str]] = ["context", "conversation_uuid", "created_at", "title", "updated_at", "user_id"] model_config = ConfigDict( populate_by_name=True, @@ -66,11 +65,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -101,7 +98,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "context": obj.get("context"), "conversation_uuid": obj.get("conversation_uuid"), "created_at": obj.get("created_at"), diff --git a/revengai/models/conversation_with_events.py b/revengai/models/conversation_with_events.py index f9df4d1..d9c3d98 100644 --- a/revengai/models/conversation_with_events.py +++ b/revengai/models/conversation_with_events.py @@ -17,7 +17,7 @@ import json from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from revengai.models.event import Event from typing import Optional, Set @@ -27,7 +27,6 @@ class ConversationWithEvents(BaseModel): """ ConversationWithEvents """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") context: Optional[Any] = None conversation_uuid: StrictStr created_at: datetime @@ -36,7 +35,7 @@ class ConversationWithEvents(BaseModel): updated_at: datetime user_id: StrictInt additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "context", "conversation_uuid", "created_at", "events", "title", "updated_at", "user_id"] + __properties: ClassVar[List[str]] = ["context", "conversation_uuid", "created_at", "events", "title", "updated_at", "user_id"] model_config = ConfigDict( populate_by_name=True, @@ -68,11 +67,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -115,7 +112,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "context": obj.get("context"), "conversation_uuid": obj.get("conversation_uuid"), "created_at": obj.get("created_at"), diff --git a/revengai/models/create_ai_decomp_output_body.py b/revengai/models/create_ai_decomp_output_body.py index b5f1d24..19da0fe 100644 --- a/revengai/models/create_ai_decomp_output_body.py +++ b/revengai/models/create_ai_decomp_output_body.py @@ -16,8 +16,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -25,10 +25,9 @@ class CreateAIDecompOutputBody(BaseModel): """ CreateAIDecompOutputBody """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") status: StrictBool additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "status"] + __properties: ClassVar[List[str]] = ["status"] model_config = ConfigDict( populate_by_name=True, @@ -60,11 +59,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -90,7 +87,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "status": obj.get("status") }) # store additional fields in additional_properties diff --git a/revengai/models/create_conversation_request.py b/revengai/models/create_conversation_request.py index a08ab5c..997b477 100644 --- a/revengai/models/create_conversation_request.py +++ b/revengai/models/create_conversation_request.py @@ -16,7 +16,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from revengai.models.conversation_context import ConversationContext from typing import Optional, Set @@ -26,11 +26,10 @@ class CreateConversationRequest(BaseModel): """ CreateConversationRequest """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") context: Optional[ConversationContext] = None title: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "context", "title"] + __properties: ClassVar[List[str]] = ["context", "title"] model_config = ConfigDict( populate_by_name=True, @@ -62,11 +61,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -95,7 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "context": ConversationContext.from_dict(obj["context"]) if obj.get("context") is not None else None, "title": obj.get("title") }) diff --git a/revengai/models/decompilation_data.py b/revengai/models/decompilation_data.py index bca9ffe..8b996f2 100644 --- a/revengai/models/decompilation_data.py +++ b/revengai/models/decompilation_data.py @@ -25,11 +25,10 @@ class DecompilationData(BaseModel): """ DecompilationData """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") decompilation: Optional[StrictStr] = Field(default=None, description="Source code with placeholders replaced") status: StrictStr = Field(description="Task status") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "decompilation", "status"] + __properties: ClassVar[List[str]] = ["decompilation", "status"] @field_validator('status') def status_validate_enum(cls, value): @@ -68,11 +67,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -98,7 +95,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "decompilation": obj.get("decompilation"), "status": obj.get("status") }) diff --git a/revengai/models/generate_pdf_output_body.py b/revengai/models/generate_pdf_output_body.py index ae9a250..4b0243a 100644 --- a/revengai/models/generate_pdf_output_body.py +++ b/revengai/models/generate_pdf_output_body.py @@ -25,11 +25,10 @@ class GeneratePDFOutputBody(BaseModel): """ GeneratePDFOutputBody """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") already_running: Optional[StrictBool] = Field(default=None, description="True when an existing PDF generation is in progress for this analysis and user") task_id: StrictStr = Field(description="Workflow task ID — use to poll status and download the PDF") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "already_running", "task_id"] + __properties: ClassVar[List[str]] = ["already_running", "task_id"] model_config = ConfigDict( populate_by_name=True, @@ -61,11 +60,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -91,7 +88,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "already_running": obj.get("already_running"), "task_id": obj.get("task_id") }) diff --git a/revengai/models/queue_position_response.py b/revengai/models/queue_position_response.py index 15c367e..bf4e883 100644 --- a/revengai/models/queue_position_response.py +++ b/revengai/models/queue_position_response.py @@ -16,8 +16,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -25,10 +25,9 @@ class QueuePositionResponse(BaseModel): """ QueuePositionResponse """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") queue_position: StrictInt = Field(description="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.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "queue_position"] + __properties: ClassVar[List[str]] = ["queue_position"] model_config = ConfigDict( populate_by_name=True, @@ -60,11 +59,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -90,7 +87,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "queue_position": obj.get("queue_position") }) # store additional fields in additional_properties diff --git a/revengai/models/regenerate_output_body.py b/revengai/models/regenerate_output_body.py index 7dce5fe..b44c6e0 100644 --- a/revengai/models/regenerate_output_body.py +++ b/revengai/models/regenerate_output_body.py @@ -16,8 +16,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -25,10 +25,9 @@ class RegenerateOutputBody(BaseModel): """ RegenerateOutputBody """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") status: StrictBool additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "status"] + __properties: ClassVar[List[str]] = ["status"] model_config = ConfigDict( populate_by_name=True, @@ -60,11 +59,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -90,7 +87,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "status": obj.get("status") }) # store additional fields in additional_properties diff --git a/revengai/models/rename_input_body.py b/revengai/models/rename_input_body.py index a9ce3e1..e6448a9 100644 --- a/revengai/models/rename_input_body.py +++ b/revengai/models/rename_input_body.py @@ -16,7 +16,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from typing import Optional, Set @@ -26,11 +26,10 @@ class RenameInputBody(BaseModel): """ RenameInputBody """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") new_mangled_name: Optional[Annotated[str, Field(strict=True, max_length=512)]] = Field(default=None, description="New mangled function name") new_name: Annotated[str, Field(min_length=1, strict=True, max_length=512)] = Field(description="New function name") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "new_mangled_name", "new_name"] + __properties: ClassVar[List[str]] = ["new_mangled_name", "new_name"] model_config = ConfigDict( populate_by_name=True, @@ -62,11 +61,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -92,7 +89,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "new_mangled_name": obj.get("new_mangled_name"), "new_name": obj.get("new_name") }) diff --git a/revengai/models/rename_output_body.py b/revengai/models/rename_output_body.py index 3b6ba53..d0e9139 100644 --- a/revengai/models/rename_output_body.py +++ b/revengai/models/rename_output_body.py @@ -16,8 +16,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -25,10 +25,9 @@ class RenameOutputBody(BaseModel): """ RenameOutputBody """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") renamed_count: StrictInt = Field(description="Number of functions renamed") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "renamed_count"] + __properties: ClassVar[List[str]] = ["renamed_count"] model_config = ConfigDict( populate_by_name=True, @@ -60,11 +59,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -90,7 +87,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "renamed_count": obj.get("renamed_count") }) # store additional fields in additional_properties diff --git a/revengai/models/revert_output_body.py b/revengai/models/revert_output_body.py deleted file mode 100644 index 806215f..0000000 --- a/revengai/models/revert_output_body.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - 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. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class RevertOutputBody(BaseModel): - """ - RevertOutputBody - """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of RevertOutputBody from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - * OpenAPI `readOnly` fields are excluded. - * Fields in `self.additional_properties` are added to the output dict. - """ - excluded_fields: Set[str] = set([ - "var_schema", - "additional_properties", - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of RevertOutputBody from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "$schema": obj.get("$schema") - }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - - return _obj - - diff --git a/revengai/models/send_message_request.py b/revengai/models/send_message_request.py index c135e89..fada5d6 100644 --- a/revengai/models/send_message_request.py +++ b/revengai/models/send_message_request.py @@ -16,7 +16,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from revengai.models.conversation_context import ConversationContext from typing import Optional, Set @@ -26,11 +26,10 @@ class SendMessageRequest(BaseModel): """ SendMessageRequest """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") content: StrictStr context: Optional[ConversationContext] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "content", "context"] + __properties: ClassVar[List[str]] = ["content", "context"] model_config = ConfigDict( populate_by_name=True, @@ -62,11 +61,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -95,7 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "content": obj.get("content"), "context": ConversationContext.from_dict(obj["context"]) if obj.get("context") is not None else None }) diff --git a/revengai/models/status_response.py b/revengai/models/status_response.py index 4e14de2..6575b45 100644 --- a/revengai/models/status_response.py +++ b/revengai/models/status_response.py @@ -26,12 +26,11 @@ class StatusResponse(BaseModel): """ StatusResponse """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") conversation_uuid: UUID status: StrictStr trace_id: Optional[StrictStr] = Field(default=None, description="OpenTelemetry trace ID for this run. Use this to look up tool call spans in your trace backend.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "conversation_uuid", "status", "trace_id"] + __properties: ClassVar[List[str]] = ["conversation_uuid", "status", "trace_id"] model_config = ConfigDict( populate_by_name=True, @@ -63,11 +62,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -93,7 +90,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "conversation_uuid": obj.get("conversation_uuid"), "status": obj.get("status"), "trace_id": obj.get("trace_id") diff --git a/revengai/models/summary_data.py b/revengai/models/summary_data.py index d8d42c0..2d0c98f 100644 --- a/revengai/models/summary_data.py +++ b/revengai/models/summary_data.py @@ -17,7 +17,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -25,12 +25,11 @@ class SummaryData(BaseModel): """ SummaryData """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") ai_summary: StrictStr = Field(description="Summary with code tags removed") summary: StrictStr = Field(description="Raw summary from the model") task_status: StrictStr = Field(description="Task status") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "ai_summary", "summary", "task_status"] + __properties: ClassVar[List[str]] = ["ai_summary", "summary", "task_status"] @field_validator('task_status') def task_status_validate_enum(cls, value): @@ -69,11 +68,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -99,7 +96,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "ai_summary": obj.get("ai_summary"), "summary": obj.get("summary"), "task_status": obj.get("task_status") diff --git a/revengai/models/tokenised_data.py b/revengai/models/tokenised_data.py index 9013717..05f8f03 100644 --- a/revengai/models/tokenised_data.py +++ b/revengai/models/tokenised_data.py @@ -26,13 +26,12 @@ class TokenisedData(BaseModel): """ TokenisedData """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") function_mapping: Optional[FunctionMapping] = Field(default=None, description="Complete mapping data for token resolution") predicted_function_name: Optional[StrictStr] = Field(default=None, description="Predicted function name from the AI model") status: StrictStr = Field(description="Task status") tokenised_decompilation: Optional[StrictStr] = Field(default=None, description="Source code with placeholder tokens") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "function_mapping", "predicted_function_name", "status", "tokenised_decompilation"] + __properties: ClassVar[List[str]] = ["function_mapping", "predicted_function_name", "status", "tokenised_decompilation"] @field_validator('status') def status_validate_enum(cls, value): @@ -71,11 +70,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -104,7 +101,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "function_mapping": FunctionMapping.from_dict(obj["function_mapping"]) if obj.get("function_mapping") is not None else None, "predicted_function_name": obj.get("predicted_function_name"), "status": obj.get("status"), diff --git a/revengai/models/upsert_overrides_data.py b/revengai/models/upsert_overrides_data.py index 838e066..55be081 100644 --- a/revengai/models/upsert_overrides_data.py +++ b/revengai/models/upsert_overrides_data.py @@ -17,7 +17,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -25,10 +25,9 @@ class UpsertOverridesData(BaseModel): """ UpsertOverridesData """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") user_override_mappings: Dict[str, StrictStr] = Field(description="Merged override mappings after applying changes") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "user_override_mappings"] + __properties: ClassVar[List[str]] = ["user_override_mappings"] model_config = ConfigDict( populate_by_name=True, @@ -60,11 +59,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -90,7 +87,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "user_override_mappings": obj.get("user_override_mappings") }) # store additional fields in additional_properties diff --git a/revengai/models/upsert_overrides_input_body.py b/revengai/models/upsert_overrides_input_body.py index 39dbd91..42aa9a2 100644 --- a/revengai/models/upsert_overrides_input_body.py +++ b/revengai/models/upsert_overrides_input_body.py @@ -17,7 +17,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -25,10 +25,9 @@ class UpsertOverridesInputBody(BaseModel): """ UpsertOverridesInputBody """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") overrides: Dict[str, StrictStr] = Field(description="Token to name mappings. Empty string removes the override.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "overrides"] + __properties: ClassVar[List[str]] = ["overrides"] model_config = ConfigDict( populate_by_name=True, @@ -60,11 +59,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -90,7 +87,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "overrides": obj.get("overrides") }) # store additional fields in additional_properties diff --git a/revengai/models/workflow_progress.py b/revengai/models/workflow_progress.py index 7dc641d..96ca584 100644 --- a/revengai/models/workflow_progress.py +++ b/revengai/models/workflow_progress.py @@ -26,14 +26,13 @@ class WorkflowProgress(BaseModel): """ WorkflowProgress """ # noqa: E501 - var_schema: Optional[StrictStr] = Field(default=None, description="A URL to the JSON Schema for this object.", alias="$schema") messages: Optional[List[ProgressMessage]] = Field(description="Log messages emitted during execution") status: StrictStr = Field(description="Current workflow status") step: StrictStr = Field(description="Name of the current step") step_index: StrictInt = Field(description="Zero-based index of the current step") steps_total: StrictInt = Field(description="Total number of steps in the workflow") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$schema", "messages", "status", "step", "step_index", "steps_total"] + __properties: ClassVar[List[str]] = ["messages", "status", "step", "step_index", "steps_total"] @field_validator('status') def status_validate_enum(cls, value): @@ -72,11 +71,9 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "var_schema", "additional_properties", ]) @@ -114,7 +111,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$schema": obj.get("$schema"), "messages": [ProgressMessage.from_dict(_item) for _item in obj["messages"]] if obj.get("messages") is not None else None, "status": obj.get("status"), "step": obj.get("step"),