From 104dec751524e616de5515b92539fbcef6833e2d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 10 Oct 2025 06:11:27 +0000 Subject: [PATCH] Update SDK to version v2.0.4 - Generated from OpenAPI spec version v2.0.4 - Auto-generated by GitHub Actions --- .sdk-version | 2 +- docs/AnalysesCoreApi.md | 2 +- revengai/__init__.py | 2 +- revengai/api/analyses_core_api.py | 6 +++--- revengai/api_client.py | 2 +- revengai/configuration.py | 4 ++-- revengai/models/matched_function.py | 7 +------ 7 files changed, 10 insertions(+), 15 deletions(-) diff --git a/.sdk-version b/.sdk-version index 46b105a..8a5b818 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v2.0.0 +v2.0.4 diff --git a/docs/AnalysesCoreApi.md b/docs/AnalysesCoreApi.md index 3e5f4ed..5aadf91 100644 --- a/docs/AnalysesCoreApi.md +++ b/docs/AnalysesCoreApi.md @@ -274,7 +274,7 @@ Name | Type | Description | Notes Gets basic analysis information -Just a random placeholder for now +Returns basic analysis information for an analysis ### Example diff --git a/revengai/__init__.py b/revengai/__init__.py index e76853c..a67dd84 100644 --- a/revengai/__init__.py +++ b/revengai/__init__.py @@ -13,7 +13,7 @@ """ # noqa: E501 -__version__ = "v2.0.0" +__version__ = "v2.0.4" # Define package exports __all__ = [ diff --git a/revengai/api/analyses_core_api.py b/revengai/api/analyses_core_api.py index 89b0df0..6e734bc 100644 --- a/revengai/api/analyses_core_api.py +++ b/revengai/api/analyses_core_api.py @@ -928,7 +928,7 @@ def get_analysis_basic_info( ) -> BaseResponseBasic: """Gets basic analysis information - Just a random placeholder for now + Returns basic analysis information for an analysis :param analysis_id: (required) :type analysis_id: int @@ -996,7 +996,7 @@ def get_analysis_basic_info_with_http_info( ) -> ApiResponse[BaseResponseBasic]: """Gets basic analysis information - Just a random placeholder for now + Returns basic analysis information for an analysis :param analysis_id: (required) :type analysis_id: int @@ -1064,7 +1064,7 @@ def get_analysis_basic_info_without_preload_content( ) -> RESTResponseType: """Gets basic analysis information - Just a random placeholder for now + Returns basic analysis information for an analysis :param analysis_id: (required) :type analysis_id: int diff --git a/revengai/api_client.py b/revengai/api_client.py index 8917cdb..695967e 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/v2.0.0/python' + self.user_agent = 'OpenAPI-Generator/v2.0.4/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/revengai/configuration.py b/revengai/configuration.py index e67bd64..2773af6 100644 --- a/revengai/configuration.py +++ b/revengai/configuration.py @@ -529,8 +529,8 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: v2.0.0\n"\ - "SDK Package Version: v2.0.0".\ + "Version of the API: v2.0.4\n"\ + "SDK Package Version: v2.0.4".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/revengai/models/matched_function.py b/revengai/models/matched_function.py index 38feca9..c639c2f 100644 --- a/revengai/models/matched_function.py +++ b/revengai/models/matched_function.py @@ -29,7 +29,7 @@ class MatchedFunction(BaseModel): binary_id: StrictInt function_name: StrictStr function_vaddr: StrictInt - mangled_name: Optional[StrictStr] + mangled_name: StrictStr debug: StrictBool binary_name: StrictStr sha_256_hash: StrictStr @@ -77,11 +77,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if mangled_name (nullable) is None - # and model_fields_set contains the field - if self.mangled_name is None and "mangled_name" in self.model_fields_set: - _dict['mangled_name'] = None - # set to None if similarity (nullable) is None # and model_fields_set contains the field if self.similarity is None and "similarity" in self.model_fields_set: