diff --git a/.sdk-version b/.sdk-version index cdb3376..e2edebe 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v2.78.1 +v2.80.0 diff --git a/docs/Basic.md b/docs/Basic.md index 9b0d3de..60e9e89 100644 --- a/docs/Basic.md +++ b/docs/Basic.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **model_name** | **str** | The model name used for analysis | **model_id** | **int** | The model ID used for analysis | **owner_username** | **str** | The name of the owner of the binary | +**is_system** | **bool** | Whether the analysis is a system analysis | **analysis_scope** | **str** | The scope of the analysis | **is_owner** | **bool** | Whether the current user is the owner | **debug** | **bool** | Whether the current analysis was analysed with debug symbols | diff --git a/docs/CollectionBinaryResponse.md b/docs/CollectionBinaryResponse.md index 6d9379e..50b2e06 100644 --- a/docs/CollectionBinaryResponse.md +++ b/docs/CollectionBinaryResponse.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **owner_id** | **int** | Binary owner | **sha_256_hash** | **str** | Binary SHA-256 hash | **created_at** | **datetime** | Binary creation date | +**is_system_analysis** | **bool** | Is the analysis owned by a RevEng.AI account | ## Example diff --git a/docs/CollectionResponseBinariesInner.md b/docs/CollectionResponseBinariesInner.md index b19ee7d..b8bfd04 100644 --- a/docs/CollectionResponseBinariesInner.md +++ b/docs/CollectionResponseBinariesInner.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **owner_id** | **int** | Binary owner | **sha_256_hash** | **str** | Binary SHA-256 hash | **created_at** | **datetime** | Binary creation date | +**is_system_analysis** | **bool** | Is the analysis owned by a RevEng.AI account | ## Example diff --git a/revengai/__init__.py b/revengai/__init__.py index 64a27f5..c51cf27 100644 --- a/revengai/__init__.py +++ b/revengai/__init__.py @@ -13,7 +13,7 @@ """ # noqa: E501 -__version__ = "v2.78.1" +__version__ = "v2.80.0" # Define package exports __all__ = [ diff --git a/revengai/api_client.py b/revengai/api_client.py index 8f22609..f8cc71c 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.78.1/python' + self.user_agent = 'OpenAPI-Generator/v2.80.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/revengai/configuration.py b/revengai/configuration.py index 561e6bc..8e0b2fc 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.78.1\n"\ - "SDK Package Version: v2.78.1".\ + "Version of the API: v2.80.0\n"\ + "SDK Package Version: v2.80.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 635a6f6..6d67aa4 100644 --- a/revengai/models/basic.py +++ b/revengai/models/basic.py @@ -33,13 +33,14 @@ class Basic(BaseModel): model_name: StrictStr = Field(description="The model name used for analysis") model_id: StrictInt = Field(description="The model ID used for analysis") owner_username: StrictStr = Field(description="The name of the owner of the binary") + is_system: StrictBool = Field(description="Whether the analysis is a system analysis") analysis_scope: StrictStr = Field(description="The scope of the analysis") is_owner: StrictBool = Field(description="Whether the current user is the owner") debug: StrictBool = Field(description="Whether the current analysis was analysed with debug symbols") 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", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address"] + __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"] model_config = ConfigDict( populate_by_name=True, @@ -104,6 +105,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "model_name": obj.get("model_name"), "model_id": obj.get("model_id"), "owner_username": obj.get("owner_username"), + "is_system": obj.get("is_system"), "analysis_scope": obj.get("analysis_scope"), "is_owner": obj.get("is_owner"), "debug": obj.get("debug"), diff --git a/revengai/models/collection_binary_response.py b/revengai/models/collection_binary_response.py index e331bd8..c21e1dc 100644 --- a/revengai/models/collection_binary_response.py +++ b/revengai/models/collection_binary_response.py @@ -17,7 +17,7 @@ import json from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -32,7 +32,8 @@ class CollectionBinaryResponse(BaseModel): owner_id: StrictInt = Field(description="Binary owner") sha_256_hash: StrictStr = Field(description="Binary SHA-256 hash") created_at: datetime = Field(description="Binary creation date") - __properties: ClassVar[List[str]] = ["analysis_id", "binary_id", "binary_name", "owner_id", "sha_256_hash", "created_at"] + is_system_analysis: StrictBool = Field(description="Is the analysis owned by a RevEng.AI account") + __properties: ClassVar[List[str]] = ["analysis_id", "binary_id", "binary_name", "owner_id", "sha_256_hash", "created_at", "is_system_analysis"] model_config = ConfigDict( populate_by_name=True, @@ -90,7 +91,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "binary_name": obj.get("binary_name"), "owner_id": obj.get("owner_id"), "sha_256_hash": obj.get("sha_256_hash"), - "created_at": obj.get("created_at") + "created_at": obj.get("created_at"), + "is_system_analysis": obj.get("is_system_analysis") }) return _obj diff --git a/test/test_base_response_basic.py b/test/test_base_response_basic.py index 12f120c..f6e40e4 100644 --- a/test/test_base_response_basic.py +++ b/test/test_base_response_basic.py @@ -43,6 +43,7 @@ def make_instance(self, include_optional) -> BaseResponseBasic: model_name = '', model_id = 56, owner_username = '', + is_system = True, analysis_scope = '', is_owner = True, debug = True, diff --git a/test/test_base_response_collection_binaries_update_response.py b/test/test_base_response_collection_binaries_update_response.py index 0c75d42..2b64ad5 100644 --- a/test/test_base_response_collection_binaries_update_response.py +++ b/test/test_base_response_collection_binaries_update_response.py @@ -43,7 +43,8 @@ def make_instance(self, include_optional) -> BaseResponseCollectionBinariesUpdat binary_name = '', owner_id = 56, sha_256_hash = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + is_system_analysis = True, ) ], ), message = '', errors = [ diff --git a/test/test_basic.py b/test/test_basic.py index 993bfba..b605328 100644 --- a/test/test_basic.py +++ b/test/test_basic.py @@ -41,6 +41,7 @@ def make_instance(self, include_optional) -> Basic: model_name = '', model_id = 56, owner_username = '', + is_system = True, analysis_scope = '', is_owner = True, debug = True, @@ -57,6 +58,7 @@ def make_instance(self, include_optional) -> Basic: model_name = '', model_id = 56, owner_username = '', + is_system = True, analysis_scope = '', is_owner = True, debug = True, diff --git a/test/test_collection_binaries_update_response.py b/test/test_collection_binaries_update_response.py index 48fb38b..4e36962 100644 --- a/test/test_collection_binaries_update_response.py +++ b/test/test_collection_binaries_update_response.py @@ -41,7 +41,8 @@ def make_instance(self, include_optional) -> CollectionBinariesUpdateResponse: binary_name = '', owner_id = 56, sha_256_hash = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + is_system_analysis = True, ) ] ) else: @@ -53,7 +54,8 @@ def make_instance(self, include_optional) -> CollectionBinariesUpdateResponse: binary_name = '', owner_id = 56, sha_256_hash = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + is_system_analysis = True, ) ], ) """ diff --git a/test/test_collection_binary_response.py b/test/test_collection_binary_response.py index 4195dff..6f0e73c 100644 --- a/test/test_collection_binary_response.py +++ b/test/test_collection_binary_response.py @@ -39,7 +39,8 @@ def make_instance(self, include_optional) -> CollectionBinaryResponse: binary_name = '', owner_id = 56, sha_256_hash = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + is_system_analysis = True ) else: return CollectionBinaryResponse( @@ -49,6 +50,7 @@ def make_instance(self, include_optional) -> CollectionBinaryResponse: owner_id = 56, sha_256_hash = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + is_system_analysis = True, ) """ diff --git a/test/test_collection_response_binaries_inner.py b/test/test_collection_response_binaries_inner.py index 7dd4d7b..558e8b5 100644 --- a/test/test_collection_response_binaries_inner.py +++ b/test/test_collection_response_binaries_inner.py @@ -39,7 +39,8 @@ def make_instance(self, include_optional) -> CollectionResponseBinariesInner: binary_name = '', owner_id = 56, sha_256_hash = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + is_system_analysis = True ) else: return CollectionResponseBinariesInner( @@ -49,6 +50,7 @@ def make_instance(self, include_optional) -> CollectionResponseBinariesInner: owner_id = 56, sha_256_hash = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + is_system_analysis = True, ) """