Skip to content

Commit bbb7569

Browse files
authored
Merge pull request #123 from RevEngAI/sdk-update-v3.56.0
🤖 Update SDK to version v3.56.0
2 parents 123ed1b + ed4ce13 commit bbb7569

15 files changed

Lines changed: 23 additions & 91 deletions

.sdk-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v3.55.2
1+
v3.56.0

docs/AnalysisCreateRequest.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
**filename** | **str** | The name of the file |
9-
**sha_256_hash** | **str** | The name of the file |
10-
**tags** | [**List[Tag]**](Tag.md) | List of community tags to assign to an analysis | [optional] [default to []]
9+
**sha_256_hash** | **str** | The sha256 hash of the file |
10+
**tags** | [**List[Tag]**](Tag.md) | List of tags to assign to an analysis | [optional] [default to []]
1111
**analysis_scope** | [**AnalysisScope**](AnalysisScope.md) | The scope of the analysis determines who can access it | [optional]
1212
**symbols** | [**Symbols**](Symbols.md) | | [optional]
1313
**debug_hash** | **str** | | [optional]

docs/AppApiRestV2FunctionsTypesFunction.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ Name | Type | Description | Notes
1111
**function_vaddr** | **int** | Function virtual address |
1212
**function_size** | **int** | Function size |
1313
**debug** | **bool** | Whether the function is debug |
14-
**embedding_3d** | **List[float]** | | [optional]
15-
**embedding_1d** | **List[float]** | | [optional]
1614

1715
## Example
1816

docs/FunctionsDetailResponse.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ Name | Type | Description | Notes
1616
**sha_256_hash** | **str** | |
1717
**debug_hash** | **str** | |
1818
**debug** | **bool** | |
19-
**embedding_3d** | **List[float]** | | [optional]
20-
**embedding_1d** | **List[float]** | | [optional]
2119

2220
## Example
2321

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__ = "v3.55.2"
16+
__version__ = "v3.56.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/v3.55.2/python'
93+
self.user_agent = 'OpenAPI-Generator/v3.56.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: v3.55.2\n"\
537-
"SDK Package Version: v3.55.2".\
536+
"Version of the API: v3.56.0\n"\
537+
"SDK Package Version: v3.56.0".\
538538
format(env=sys.platform, pyversion=sys.version)
539539

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

revengai/models/analysis_create_request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class AnalysisCreateRequest(BaseModel):
3232
AnalysisCreateRequest
3333
""" # noqa: E501
3434
filename: StrictStr = Field(description="The name of the file")
35-
sha_256_hash: StrictStr = Field(description="The name of the file")
36-
tags: Optional[List[Tag]] = Field(default=None, description="List of community tags to assign to an analysis")
35+
sha_256_hash: StrictStr = Field(description="The sha256 hash of the file")
36+
tags: Optional[List[Tag]] = Field(default=None, description="List of tags to assign to an analysis")
3737
analysis_scope: Optional[AnalysisScope] = Field(default=None, description="The scope of the analysis determines who can access it")
3838
symbols: Optional[Symbols] = None
3939
debug_hash: Optional[StrictStr] = None

revengai/models/app_api_rest_v2_functions_types_function.py

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
import re # noqa: F401
1717
import json
1818

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

@@ -31,9 +31,7 @@ class AppApiRestV2FunctionsTypesFunction(BaseModel):
3131
function_vaddr: StrictInt = Field(description="Function virtual address")
3232
function_size: StrictInt = Field(description="Function size")
3333
debug: StrictBool = Field(description="Whether the function is debug")
34-
embedding_3d: Optional[List[Union[StrictFloat, StrictInt]]] = None
35-
embedding_1d: Optional[List[Union[StrictFloat, StrictInt]]] = None
36-
__properties: ClassVar[List[str]] = ["function_id", "function_name", "function_mangled_name", "function_vaddr", "function_size", "debug", "embedding_3d", "embedding_1d"]
34+
__properties: ClassVar[List[str]] = ["function_id", "function_name", "function_mangled_name", "function_vaddr", "function_size", "debug"]
3735

3836
model_config = ConfigDict(
3937
populate_by_name=True,
@@ -74,16 +72,6 @@ def to_dict(self) -> Dict[str, Any]:
7472
exclude=excluded_fields,
7573
exclude_none=True,
7674
)
77-
# set to None if embedding_3d (nullable) is None
78-
# and model_fields_set contains the field
79-
if self.embedding_3d is None and "embedding_3d" in self.model_fields_set:
80-
_dict['embedding_3d'] = None
81-
82-
# set to None if embedding_1d (nullable) is None
83-
# and model_fields_set contains the field
84-
if self.embedding_1d is None and "embedding_1d" in self.model_fields_set:
85-
_dict['embedding_1d'] = None
86-
8775
return _dict
8876

8977
@classmethod
@@ -101,9 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
10189
"function_mangled_name": obj.get("function_mangled_name"),
10290
"function_vaddr": obj.get("function_vaddr"),
10391
"function_size": obj.get("function_size"),
104-
"debug": obj.get("debug"),
105-
"embedding_3d": obj.get("embedding_3d"),
106-
"embedding_1d": obj.get("embedding_1d")
92+
"debug": obj.get("debug")
10793
})
10894
return _obj
10995

revengai/models/functions_detail_response.py

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
import re # noqa: F401
1717
import json
1818

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

@@ -36,9 +36,7 @@ class FunctionsDetailResponse(BaseModel):
3636
sha_256_hash: StrictStr
3737
debug_hash: Optional[StrictStr]
3838
debug: StrictBool
39-
embedding_3d: Optional[List[Union[StrictFloat, StrictInt]]] = None
40-
embedding_1d: Optional[List[Union[StrictFloat, StrictInt]]] = None
41-
__properties: ClassVar[List[str]] = ["function_id", "function_name", "function_name_mangled", "function_vaddr", "function_size", "analysis_id", "binary_id", "binary_name", "sha_256_hash", "debug_hash", "debug", "embedding_3d", "embedding_1d"]
39+
__properties: ClassVar[List[str]] = ["function_id", "function_name", "function_name_mangled", "function_vaddr", "function_size", "analysis_id", "binary_id", "binary_name", "sha_256_hash", "debug_hash", "debug"]
4240

4341
model_config = ConfigDict(
4442
populate_by_name=True,
@@ -84,16 +82,6 @@ def to_dict(self) -> Dict[str, Any]:
8482
if self.debug_hash is None and "debug_hash" in self.model_fields_set:
8583
_dict['debug_hash'] = None
8684

87-
# set to None if embedding_3d (nullable) is None
88-
# and model_fields_set contains the field
89-
if self.embedding_3d is None and "embedding_3d" in self.model_fields_set:
90-
_dict['embedding_3d'] = None
91-
92-
# set to None if embedding_1d (nullable) is None
93-
# and model_fields_set contains the field
94-
if self.embedding_1d is None and "embedding_1d" in self.model_fields_set:
95-
_dict['embedding_1d'] = None
96-
9785
return _dict
9886

9987
@classmethod
@@ -116,9 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
116104
"binary_name": obj.get("binary_name"),
117105
"sha_256_hash": obj.get("sha_256_hash"),
118106
"debug_hash": obj.get("debug_hash"),
119-
"debug": obj.get("debug"),
120-
"embedding_3d": obj.get("embedding_3d"),
121-
"embedding_1d": obj.get("embedding_1d")
107+
"debug": obj.get("debug")
122108
})
123109
return _obj
124110

0 commit comments

Comments
 (0)