diff --git a/.sdk-version b/.sdk-version index 017d61f..64d4aab 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v3.13.0 +v3.15.0 diff --git a/revengai/__init__.py b/revengai/__init__.py index 55f7e2a..2a93962 100644 --- a/revengai/__init__.py +++ b/revengai/__init__.py @@ -13,7 +13,7 @@ """ # noqa: E501 -__version__ = "v3.13.0" +__version__ = "v3.15.0" # Define package exports __all__ = [ diff --git a/revengai/api_client.py b/revengai/api_client.py index b050d03..b274393 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.13.0/python' + self.user_agent = 'OpenAPI-Generator/v3.15.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/revengai/configuration.py b/revengai/configuration.py index 516a8fb..372bb91 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.13.0\n"\ - "SDK Package Version: v3.13.0".\ + "Version of the API: v3.15.0\n"\ + "SDK Package Version: v3.15.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/revengai/models/binary_details_response.py b/revengai/models/binary_details_response.py index 308844e..1878c34 100644 --- a/revengai/models/binary_details_response.py +++ b/revengai/models/binary_details_response.py @@ -18,7 +18,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Union +from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self @@ -38,7 +38,7 @@ class BinaryDetailsResponse(BaseModel): os: StrictStr = Field(description="OS target of the binary") sha1: StrictStr = Field(description="SHA1 hash of the binary") sha256: StrictStr = Field(description="SHA256 hash of the binary") - ssdeep: StrictStr + ssdeep: Optional[StrictStr] static: StrictBool stripped: StrictBool sub_sys: StrictStr @@ -87,6 +87,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if ssdeep (nullable) is None + # and model_fields_set contains the field + if self.ssdeep is None and "ssdeep" in self.model_fields_set: + _dict['ssdeep'] = None + return _dict @classmethod