Skip to content

Commit 7ac7294

Browse files
authored
Merge pull request #76 from RevEngAI/sdk-update-v2.80.0
🤖 Update SDK to version v2.80.0
2 parents 357c307 + 255965d commit 7ac7294

15 files changed

Lines changed: 31 additions & 14 deletions

.sdk-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2.78.1
1+
v2.80.0

docs/Basic.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**model_name** | **str** | The model name used for analysis |
1313
**model_id** | **int** | The model ID used for analysis |
1414
**owner_username** | **str** | The name of the owner of the binary |
15+
**is_system** | **bool** | Whether the analysis is a system analysis |
1516
**analysis_scope** | **str** | The scope of the analysis |
1617
**is_owner** | **bool** | Whether the current user is the owner |
1718
**debug** | **bool** | Whether the current analysis was analysed with debug symbols |

docs/CollectionBinaryResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**owner_id** | **int** | Binary owner |
1212
**sha_256_hash** | **str** | Binary SHA-256 hash |
1313
**created_at** | **datetime** | Binary creation date |
14+
**is_system_analysis** | **bool** | Is the analysis owned by a RevEng.AI account |
1415

1516
## Example
1617

docs/CollectionResponseBinariesInner.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**owner_id** | **int** | Binary owner |
1212
**sha_256_hash** | **str** | Binary SHA-256 hash |
1313
**created_at** | **datetime** | Binary creation date |
14+
**is_system_analysis** | **bool** | Is the analysis owned by a RevEng.AI account |
1415

1516
## Example
1617

revengai/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
""" # noqa: E501
1414

1515

16-
__version__ = "v2.78.1"
16+
__version__ = "v2.80.0"
1717

1818
# Define package exports
1919
__all__ = [

revengai/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self.default_headers[header_name] = header_value
9191
self.cookie = cookie
9292
# Set default User-Agent.
93-
self.user_agent = 'OpenAPI-Generator/v2.78.1/python'
93+
self.user_agent = 'OpenAPI-Generator/v2.80.0/python'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
def __enter__(self):

revengai/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,8 @@ def to_debug_report(self) -> str:
533533
return "Python SDK Debug Report:\n"\
534534
"OS: {env}\n"\
535535
"Python Version: {pyversion}\n"\
536-
"Version of the API: v2.78.1\n"\
537-
"SDK Package Version: v2.78.1".\
536+
"Version of the API: v2.80.0\n"\
537+
"SDK Package Version: v2.80.0".\
538538
format(env=sys.platform, pyversion=sys.version)
539539

540540
def get_host_settings(self) -> List[HostSetting]:

revengai/models/basic.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@ class Basic(BaseModel):
3333
model_name: StrictStr = Field(description="The model name used for analysis")
3434
model_id: StrictInt = Field(description="The model ID used for analysis")
3535
owner_username: StrictStr = Field(description="The name of the owner of the binary")
36+
is_system: StrictBool = Field(description="Whether the analysis is a system analysis")
3637
analysis_scope: StrictStr = Field(description="The scope of the analysis")
3738
is_owner: StrictBool = Field(description="Whether the current user is the owner")
3839
debug: StrictBool = Field(description="Whether the current analysis was analysed with debug symbols")
3940
function_count: StrictInt = Field(description="The number of functions in the binary")
4041
is_advanced: StrictBool = Field(description="Whether the analysis was advanced")
4142
base_address: Optional[StrictInt]
42-
__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"]
43+
__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"]
4344

4445
model_config = ConfigDict(
4546
populate_by_name=True,
@@ -104,6 +105,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
104105
"model_name": obj.get("model_name"),
105106
"model_id": obj.get("model_id"),
106107
"owner_username": obj.get("owner_username"),
108+
"is_system": obj.get("is_system"),
107109
"analysis_scope": obj.get("analysis_scope"),
108110
"is_owner": obj.get("is_owner"),
109111
"debug": obj.get("debug"),

revengai/models/collection_binary_response.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import json
1818

1919
from datetime import datetime
20-
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
20+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
2121
from typing import Any, ClassVar, Dict, List
2222
from typing import Optional, Set
2323
from typing_extensions import Self
@@ -32,7 +32,8 @@ class CollectionBinaryResponse(BaseModel):
3232
owner_id: StrictInt = Field(description="Binary owner")
3333
sha_256_hash: StrictStr = Field(description="Binary SHA-256 hash")
3434
created_at: datetime = Field(description="Binary creation date")
35-
__properties: ClassVar[List[str]] = ["analysis_id", "binary_id", "binary_name", "owner_id", "sha_256_hash", "created_at"]
35+
is_system_analysis: StrictBool = Field(description="Is the analysis owned by a RevEng.AI account")
36+
__properties: ClassVar[List[str]] = ["analysis_id", "binary_id", "binary_name", "owner_id", "sha_256_hash", "created_at", "is_system_analysis"]
3637

3738
model_config = ConfigDict(
3839
populate_by_name=True,
@@ -90,7 +91,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
9091
"binary_name": obj.get("binary_name"),
9192
"owner_id": obj.get("owner_id"),
9293
"sha_256_hash": obj.get("sha_256_hash"),
93-
"created_at": obj.get("created_at")
94+
"created_at": obj.get("created_at"),
95+
"is_system_analysis": obj.get("is_system_analysis")
9496
})
9597
return _obj
9698

test/test_base_response_basic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def make_instance(self, include_optional) -> BaseResponseBasic:
4343
model_name = '',
4444
model_id = 56,
4545
owner_username = '',
46+
is_system = True,
4647
analysis_scope = '',
4748
is_owner = True,
4849
debug = True,

0 commit comments

Comments
 (0)