From ef3a227ac769f6f84c50d3c8c7ff4dfb9f2d725b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 10 Feb 2026 06:33:19 +0000 Subject: [PATCH] Update SDK to version v3.8.0 - Generated from OpenAPI spec version v3.8.0 - Auto-generated by GitHub Actions --- .sdk-version | 2 +- docs/Basic.md | 2 ++ revengai/__init__.py | 2 +- revengai/api_client.py | 2 +- revengai/configuration.py | 4 ++-- revengai/models/basic.py | 18 ++++++++++++++++-- test/test_base_response_basic.py | 4 +++- test/test_basic.py | 4 +++- 8 files changed, 29 insertions(+), 9 deletions(-) diff --git a/.sdk-version b/.sdk-version index 130165b..40c06cc 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v3.6.0 +v3.8.0 diff --git a/docs/Basic.md b/docs/Basic.md index 60e9e89..1333295 100644 --- a/docs/Basic.md +++ b/docs/Basic.md @@ -19,6 +19,8 @@ Name | Type | Description | Notes **function_count** | **int** | The number of functions in the binary | **is_advanced** | **bool** | Whether the analysis was advanced | **base_address** | **int** | | +**binary_uuid** | **str** | | [optional] +**sequencer_version** | **str** | | [optional] ## Example diff --git a/revengai/__init__.py b/revengai/__init__.py index 72980a0..297cba1 100644 --- a/revengai/__init__.py +++ b/revengai/__init__.py @@ -13,7 +13,7 @@ """ # noqa: E501 -__version__ = "v3.6.0" +__version__ = "v3.8.0" # Define package exports __all__ = [ diff --git a/revengai/api_client.py b/revengai/api_client.py index 1729809..6169dff 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.6.0/python' + self.user_agent = 'OpenAPI-Generator/v3.8.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/revengai/configuration.py b/revengai/configuration.py index 565b7bb..ca2828c 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.6.0\n"\ - "SDK Package Version: v3.6.0".\ + "Version of the API: v3.8.0\n"\ + "SDK Package Version: v3.8.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/revengai/models/basic.py b/revengai/models/basic.py index 6d67aa4..1b0d0dd 100644 --- a/revengai/models/basic.py +++ b/revengai/models/basic.py @@ -40,7 +40,9 @@ class Basic(BaseModel): function_count: StrictInt = Field(description="The number of functions in the binary") is_advanced: StrictBool = Field(description="Whether the analysis was advanced") base_address: Optional[StrictInt] - __properties: ClassVar[List[str]] = ["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: Optional[StrictStr] = None + sequencer_version: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["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"] model_config = ConfigDict( populate_by_name=True, @@ -86,6 +88,16 @@ def to_dict(self) -> Dict[str, Any]: if self.base_address is None and "base_address" in self.model_fields_set: _dict['base_address'] = None + # set to None if binary_uuid (nullable) is None + # and model_fields_set contains the field + if self.binary_uuid is None and "binary_uuid" in self.model_fields_set: + _dict['binary_uuid'] = None + + # set to None if sequencer_version (nullable) is None + # and model_fields_set contains the field + if self.sequencer_version is None and "sequencer_version" in self.model_fields_set: + _dict['sequencer_version'] = None + return _dict @classmethod @@ -111,7 +123,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "debug": obj.get("debug"), "function_count": obj.get("function_count"), "is_advanced": obj.get("is_advanced"), - "base_address": obj.get("base_address") + "base_address": obj.get("base_address"), + "binary_uuid": obj.get("binary_uuid"), + "sequencer_version": obj.get("sequencer_version") }) return _obj diff --git a/test/test_base_response_basic.py b/test/test_base_response_basic.py index f6e40e4..90c572a 100644 --- a/test/test_base_response_basic.py +++ b/test/test_base_response_basic.py @@ -49,7 +49,9 @@ def make_instance(self, include_optional) -> BaseResponseBasic: debug = True, function_count = 56, is_advanced = True, - base_address = 56, ), + base_address = 56, + binary_uuid = '', + sequencer_version = '', ), message = '', errors = [ revengai.models.error_model.ErrorModel( diff --git a/test/test_basic.py b/test/test_basic.py index b605328..a0933c2 100644 --- a/test/test_basic.py +++ b/test/test_basic.py @@ -47,7 +47,9 @@ def make_instance(self, include_optional) -> Basic: debug = True, function_count = 56, is_advanced = True, - base_address = 56 + base_address = 56, + binary_uuid = '', + sequencer_version = '' ) else: return Basic(