From 97cb73c8f3dad69895be41493038193d34f5e015 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 21 Nov 2025 14:55:37 +0000 Subject: [PATCH] Update SDK to version v2.42.0 - Generated from OpenAPI spec version v2.42.0 - Auto-generated by GitHub Actions --- .sdk-version | 2 +- docs/FunctionsDetailResponse.md | 1 + revengai/__init__.py | 2 +- revengai/api_client.py | 2 +- revengai/configuration.py | 4 ++-- revengai/exceptions.py | 7 ++----- revengai/models/functions_detail_response.py | 4 +++- test/test_base_response_functions_detail_response.py | 1 + test/test_functions_detail_response.py | 2 ++ 9 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.sdk-version b/.sdk-version index 9b8a6e4..b73a4f7 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v2.37.4 +v2.42.0 diff --git a/docs/FunctionsDetailResponse.md b/docs/FunctionsDetailResponse.md index ba30a90..1e23b1e 100644 --- a/docs/FunctionsDetailResponse.md +++ b/docs/FunctionsDetailResponse.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **function_id** | **int** | Function id | **function_name** | **str** | | +**function_name_mangled** | **str** | | **function_vaddr** | **int** | | **function_size** | **int** | | **analysis_id** | **int** | | diff --git a/revengai/__init__.py b/revengai/__init__.py index 1448b66..bab8d73 100644 --- a/revengai/__init__.py +++ b/revengai/__init__.py @@ -13,7 +13,7 @@ """ # noqa: E501 -__version__ = "v2.37.4" +__version__ = "v2.42.0" # Define package exports __all__ = [ diff --git a/revengai/api_client.py b/revengai/api_client.py index ec1eeb0..98521f7 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.37.4/python' + self.user_agent = 'OpenAPI-Generator/v2.42.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/revengai/configuration.py b/revengai/configuration.py index 5c6d65f..edc2ec0 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: v2.37.4\n"\ - "SDK Package Version: v2.37.4".\ + "Version of the API: v2.42.0\n"\ + "SDK Package Version: v2.42.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/revengai/exceptions.py b/revengai/exceptions.py index 99eea4b..d510c88 100644 --- a/revengai/exceptions.py +++ b/revengai/exceptions.py @@ -168,11 +168,8 @@ def __str__(self): error_message += "HTTP response headers: {0}\n".format( self.headers) - if self.body: - error_message += "HTTP response body: {0}\n".format(self.body) - - if self.data: - error_message += "HTTP response data: {0}\n".format(self.data) + if self.data or self.body: + error_message += "HTTP response body: {0}\n".format(self.data or self.body) return error_message diff --git a/revengai/models/functions_detail_response.py b/revengai/models/functions_detail_response.py index c4f4cfe..64fa670 100644 --- a/revengai/models/functions_detail_response.py +++ b/revengai/models/functions_detail_response.py @@ -27,6 +27,7 @@ class FunctionsDetailResponse(BaseModel): """ # noqa: E501 function_id: StrictInt = Field(description="Function id") function_name: StrictStr + function_name_mangled: StrictStr function_vaddr: StrictInt function_size: StrictInt analysis_id: StrictInt @@ -37,7 +38,7 @@ class FunctionsDetailResponse(BaseModel): debug: StrictBool embedding_3d: Optional[List[Union[StrictFloat, StrictInt]]] = None embedding_1d: Optional[List[Union[StrictFloat, StrictInt]]] = None - __properties: ClassVar[List[str]] = ["function_id", "function_name", "function_vaddr", "function_size", "analysis_id", "binary_id", "binary_name", "sha_256_hash", "debug_hash", "debug", "embedding_3d", "embedding_1d"] + __properties: ClassVar[List[str]] = ["function_id", "function_name", "function_name_mangled", "function_vaddr", "function_size", "analysis_id", "binary_id", "binary_name", "sha_256_hash", "debug_hash", "debug", "embedding_3d", "embedding_1d"] model_config = ConfigDict( populate_by_name=True, @@ -107,6 +108,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "function_id": obj.get("function_id"), "function_name": obj.get("function_name"), + "function_name_mangled": obj.get("function_name_mangled"), "function_vaddr": obj.get("function_vaddr"), "function_size": obj.get("function_size"), "analysis_id": obj.get("analysis_id"), diff --git a/test/test_base_response_functions_detail_response.py b/test/test_base_response_functions_detail_response.py index 0571b09..0cc740a 100644 --- a/test/test_base_response_functions_detail_response.py +++ b/test/test_base_response_functions_detail_response.py @@ -38,6 +38,7 @@ def make_instance(self, include_optional) -> BaseResponseFunctionsDetailResponse data = revengai.models.functions_detail_response.FunctionsDetailResponse( function_id = 56, function_name = '', + function_name_mangled = '', function_vaddr = 56, function_size = 56, analysis_id = 56, diff --git a/test/test_functions_detail_response.py b/test/test_functions_detail_response.py index b6e8080..9647aaa 100644 --- a/test/test_functions_detail_response.py +++ b/test/test_functions_detail_response.py @@ -36,6 +36,7 @@ def make_instance(self, include_optional) -> FunctionsDetailResponse: return FunctionsDetailResponse( function_id = 56, function_name = '', + function_name_mangled = '', function_vaddr = 56, function_size = 56, analysis_id = 56, @@ -55,6 +56,7 @@ def make_instance(self, include_optional) -> FunctionsDetailResponse: return FunctionsDetailResponse( function_id = 56, function_name = '', + function_name_mangled = '', function_vaddr = 56, function_size = 56, analysis_id = 56,