Skip to content

Commit 085fea2

Browse files
authored
Merge pull request #33 from RevEngAI/sdk-update-v2.11.0
🤖 Update SDK to version v2.11.0
2 parents 534d96a + 68d0674 commit 085fea2

14 files changed

Lines changed: 28 additions & 28 deletions

.sdk-version

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

docs/Basic.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**creation** | **datetime** | When the binary was uploaded |
1111
**sha_256_hash** | **str** | The hash of the binary uploaded |
1212
**model_name** | **str** | The model name used for analysis |
13+
**model_id** | **int** | The model ID used for analysis |
1314
**owner_username** | **str** | The name of the owner of the binary |
1415
**analysis_scope** | **str** | The scope of the analysis |
1516
**is_owner** | **bool** | Whether the current user is the owner |

docs/FunctionRename.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**new_name** | **str** | The new name for the function | [optional] [default to '']
9-
**new_mangled_name** | **str** | | [optional]
8+
**new_name** | **str** | The new name for the function |
9+
**new_mangled_name** | **str** | The new mangled name for the function |
1010

1111
## Example
1212

docs/FunctionRenameMap.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**function_id** | **int** | The ID of the function to rename |
9-
**new_name** | **str** | The new name for the function | [optional] [default to '']
10-
**new_mangled_name** | **str** | | [optional]
9+
**new_name** | **str** | The new name for the function |
10+
**new_mangled_name** | **str** | The new mangled name for the function |
1111

1212
## Example
1313

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.9.1"
16+
__version__ = "v2.11.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.9.1/python'
93+
self.user_agent = 'OpenAPI-Generator/v2.11.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
@@ -529,8 +529,8 @@ def to_debug_report(self) -> str:
529529
return "Python SDK Debug Report:\n"\
530530
"OS: {env}\n"\
531531
"Python Version: {pyversion}\n"\
532-
"Version of the API: v2.9.1\n"\
533-
"SDK Package Version: v2.9.1".\
532+
"Version of the API: v2.11.0\n"\
533+
"SDK Package Version: v2.11.0".\
534534
format(env=sys.platform, pyversion=sys.version)
535535

536536
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
@@ -31,14 +31,15 @@ class Basic(BaseModel):
3131
creation: datetime = Field(description="When the binary was uploaded")
3232
sha_256_hash: StrictStr = Field(description="The hash of the binary uploaded")
3333
model_name: StrictStr = Field(description="The model name used for analysis")
34+
model_id: StrictInt = Field(description="The model ID used for analysis")
3435
owner_username: StrictStr = Field(description="The name of the owner of the binary")
3536
analysis_scope: StrictStr = Field(description="The scope of the analysis")
3637
is_owner: StrictBool = Field(description="Whether the current user is the owner")
3738
debug: StrictBool = Field(description="Whether the current analysis was analysed with debug symbols")
3839
function_count: StrictInt = Field(description="The number of functions in the binary")
3940
is_advanced: StrictBool = Field(description="Whether the analysis was advanced")
4041
base_address: Optional[StrictInt]
41-
__properties: ClassVar[List[str]] = ["binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "owner_username", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address"]
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"]
4243

4344
model_config = ConfigDict(
4445
populate_by_name=True,
@@ -101,6 +102,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
101102
"creation": obj.get("creation"),
102103
"sha_256_hash": obj.get("sha_256_hash"),
103104
"model_name": obj.get("model_name"),
105+
"model_id": obj.get("model_id"),
104106
"owner_username": obj.get("owner_username"),
105107
"analysis_scope": obj.get("analysis_scope"),
106108
"is_owner": obj.get("is_owner"),

revengai/models/function_rename.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@
1717
import json
1818

1919
from pydantic import BaseModel, ConfigDict, Field, StrictStr
20-
from typing import Any, ClassVar, Dict, List, Optional
20+
from typing import Any, ClassVar, Dict, List
2121
from typing import Optional, Set
2222
from typing_extensions import Self
2323

2424
class FunctionRename(BaseModel):
2525
"""
2626
FunctionRename
2727
""" # noqa: E501
28-
new_name: Optional[StrictStr] = Field(default='', description="The new name for the function")
29-
new_mangled_name: Optional[StrictStr] = None
28+
new_name: StrictStr = Field(description="The new name for the function")
29+
new_mangled_name: StrictStr = Field(description="The new mangled name for the function")
3030
__properties: ClassVar[List[str]] = ["new_name", "new_mangled_name"]
3131

3232
model_config = ConfigDict(
@@ -68,11 +68,6 @@ def to_dict(self) -> Dict[str, Any]:
6868
exclude=excluded_fields,
6969
exclude_none=True,
7070
)
71-
# set to None if new_mangled_name (nullable) is None
72-
# and model_fields_set contains the field
73-
if self.new_mangled_name is None and "new_mangled_name" in self.model_fields_set:
74-
_dict['new_mangled_name'] = None
75-
7671
return _dict
7772

7873
@classmethod
@@ -85,7 +80,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8580
return cls.model_validate(obj)
8681

8782
_obj = cls.model_validate({
88-
"new_name": obj.get("new_name") if obj.get("new_name") is not None else '',
83+
"new_name": obj.get("new_name"),
8984
"new_mangled_name": obj.get("new_mangled_name")
9085
})
9186
return _obj

revengai/models/function_rename_map.py

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

1919
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
20-
from typing import Any, ClassVar, Dict, List, Optional
20+
from typing import Any, ClassVar, Dict, List
2121
from typing import Optional, Set
2222
from typing_extensions import Self
2323

@@ -26,8 +26,8 @@ class FunctionRenameMap(BaseModel):
2626
FunctionRenameMap
2727
""" # noqa: E501
2828
function_id: StrictInt = Field(description="The ID of the function to rename")
29-
new_name: Optional[StrictStr] = Field(default='', description="The new name for the function")
30-
new_mangled_name: Optional[StrictStr] = None
29+
new_name: StrictStr = Field(description="The new name for the function")
30+
new_mangled_name: StrictStr = Field(description="The new mangled name for the function")
3131
__properties: ClassVar[List[str]] = ["function_id", "new_name", "new_mangled_name"]
3232

3333
model_config = ConfigDict(
@@ -69,11 +69,6 @@ def to_dict(self) -> Dict[str, Any]:
6969
exclude=excluded_fields,
7070
exclude_none=True,
7171
)
72-
# set to None if new_mangled_name (nullable) is None
73-
# and model_fields_set contains the field
74-
if self.new_mangled_name is None and "new_mangled_name" in self.model_fields_set:
75-
_dict['new_mangled_name'] = None
76-
7772
return _dict
7873

7974
@classmethod
@@ -87,7 +82,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8782

8883
_obj = cls.model_validate({
8984
"function_id": obj.get("function_id"),
90-
"new_name": obj.get("new_name") if obj.get("new_name") is not None else '',
85+
"new_name": obj.get("new_name"),
9186
"new_mangled_name": obj.get("new_mangled_name")
9287
})
9388
return _obj

0 commit comments

Comments
 (0)