Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .sdk-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.78.1
v2.80.0
1 change: 1 addition & 0 deletions docs/Basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
1 change: 1 addition & 0 deletions docs/CollectionBinaryResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions docs/CollectionResponseBinariesInner.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion revengai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
""" # noqa: E501


__version__ = "v2.78.1"
__version__ = "v2.80.0"

# Define package exports
__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion revengai/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions revengai/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down
4 changes: 3 additions & 1 deletion revengai/models/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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"),
Expand Down
8 changes: 5 additions & 3 deletions revengai/models/collection_binary_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions test/test_base_response_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 2 additions & 0 deletions test/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
6 changes: 4 additions & 2 deletions test/test_collection_binaries_update_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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, )
],
)
"""
Expand Down
4 changes: 3 additions & 1 deletion test/test_collection_binary_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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,
)
"""

Expand Down
4 changes: 3 additions & 1 deletion test/test_collection_response_binaries_inner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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,
)
"""

Expand Down