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 @@
v3.55.2
v3.56.0
4 changes: 2 additions & 2 deletions docs/AnalysisCreateRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**filename** | **str** | The name of the file |
**sha_256_hash** | **str** | The name of the file |
**tags** | [**List[Tag]**](Tag.md) | List of community tags to assign to an analysis | [optional] [default to []]
**sha_256_hash** | **str** | The sha256 hash of the file |
**tags** | [**List[Tag]**](Tag.md) | List of tags to assign to an analysis | [optional] [default to []]
**analysis_scope** | [**AnalysisScope**](AnalysisScope.md) | The scope of the analysis determines who can access it | [optional]
**symbols** | [**Symbols**](Symbols.md) | | [optional]
**debug_hash** | **str** | | [optional]
Expand Down
2 changes: 0 additions & 2 deletions docs/AppApiRestV2FunctionsTypesFunction.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ Name | Type | Description | Notes
**function_vaddr** | **int** | Function virtual address |
**function_size** | **int** | Function size |
**debug** | **bool** | Whether the function is debug |
**embedding_3d** | **List[float]** | | [optional]
**embedding_1d** | **List[float]** | | [optional]

## Example

Expand Down
2 changes: 0 additions & 2 deletions docs/FunctionsDetailResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ Name | Type | Description | Notes
**sha_256_hash** | **str** | |
**debug_hash** | **str** | |
**debug** | **bool** | |
**embedding_3d** | **List[float]** | | [optional]
**embedding_1d** | **List[float]** | | [optional]

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

def get_host_settings(self) -> List[HostSetting]:
Expand Down
4 changes: 2 additions & 2 deletions revengai/models/analysis_create_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class AnalysisCreateRequest(BaseModel):
AnalysisCreateRequest
""" # noqa: E501
filename: StrictStr = Field(description="The name of the file")
sha_256_hash: StrictStr = Field(description="The name of the file")
tags: Optional[List[Tag]] = Field(default=None, description="List of community tags to assign to an analysis")
sha_256_hash: StrictStr = Field(description="The sha256 hash of the file")
tags: Optional[List[Tag]] = Field(default=None, description="List of tags to assign to an analysis")
analysis_scope: Optional[AnalysisScope] = Field(default=None, description="The scope of the analysis determines who can access it")
symbols: Optional[Symbols] = None
debug_hash: Optional[StrictStr] = None
Expand Down
22 changes: 4 additions & 18 deletions revengai/models/app_api_rest_v2_functions_types_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import re # noqa: F401
import json

from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional, Union
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 @@ -31,9 +31,7 @@ class AppApiRestV2FunctionsTypesFunction(BaseModel):
function_vaddr: StrictInt = Field(description="Function virtual address")
function_size: StrictInt = Field(description="Function size")
debug: StrictBool = Field(description="Whether the function is debug")
embedding_3d: Optional[List[Union[StrictFloat, StrictInt]]] = None
embedding_1d: Optional[List[Union[StrictFloat, StrictInt]]] = None
__properties: ClassVar[List[str]] = ["function_id", "function_name", "function_mangled_name", "function_vaddr", "function_size", "debug", "embedding_3d", "embedding_1d"]
__properties: ClassVar[List[str]] = ["function_id", "function_name", "function_mangled_name", "function_vaddr", "function_size", "debug"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -74,16 +72,6 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
# set to None if embedding_3d (nullable) is None
# and model_fields_set contains the field
if self.embedding_3d is None and "embedding_3d" in self.model_fields_set:
_dict['embedding_3d'] = None

# set to None if embedding_1d (nullable) is None
# and model_fields_set contains the field
if self.embedding_1d is None and "embedding_1d" in self.model_fields_set:
_dict['embedding_1d'] = None

return _dict

@classmethod
Expand All @@ -101,9 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"function_mangled_name": obj.get("function_mangled_name"),
"function_vaddr": obj.get("function_vaddr"),
"function_size": obj.get("function_size"),
"debug": obj.get("debug"),
"embedding_3d": obj.get("embedding_3d"),
"embedding_1d": obj.get("embedding_1d")
"debug": obj.get("debug")
})
return _obj

Expand Down
22 changes: 4 additions & 18 deletions revengai/models/functions_detail_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import re # noqa: F401
import json

from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional, Union
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing_extensions import Self

Expand All @@ -36,9 +36,7 @@ class FunctionsDetailResponse(BaseModel):
sha_256_hash: StrictStr
debug_hash: Optional[StrictStr]
debug: StrictBool
embedding_3d: Optional[List[Union[StrictFloat, StrictInt]]] = None
embedding_1d: Optional[List[Union[StrictFloat, StrictInt]]] = None
__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"]
__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"]

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

# set to None if embedding_3d (nullable) is None
# and model_fields_set contains the field
if self.embedding_3d is None and "embedding_3d" in self.model_fields_set:
_dict['embedding_3d'] = None

# set to None if embedding_1d (nullable) is None
# and model_fields_set contains the field
if self.embedding_1d is None and "embedding_1d" in self.model_fields_set:
_dict['embedding_1d'] = None

return _dict

@classmethod
Expand All @@ -116,9 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"binary_name": obj.get("binary_name"),
"sha_256_hash": obj.get("sha_256_hash"),
"debug_hash": obj.get("debug_hash"),
"debug": obj.get("debug"),
"embedding_3d": obj.get("embedding_3d"),
"embedding_1d": obj.get("embedding_1d")
"debug": obj.get("debug")
})
return _obj

Expand Down
16 changes: 2 additions & 14 deletions test/test_analysis_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,7 @@ def make_instance(self, include_optional) -> AnalysisFunctions:
function_mangled_name = '',
function_vaddr = 56,
function_size = 56,
debug = True,
embedding_3d = [
1.337
],
embedding_1d = [
1.337
], )
debug = True, )
]
)
else:
Expand All @@ -59,13 +53,7 @@ def make_instance(self, include_optional) -> AnalysisFunctions:
function_mangled_name = '',
function_vaddr = 56,
function_size = 56,
debug = True,
embedding_3d = [
1.337
],
embedding_1d = [
1.337
], )
debug = True, )
],
)
"""
Expand Down
8 changes: 1 addition & 7 deletions test/test_app_api_rest_v2_functions_types_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,7 @@ def make_instance(self, include_optional) -> AppApiRestV2FunctionsTypesFunction:
function_mangled_name = '',
function_vaddr = 56,
function_size = 56,
debug = True,
embedding_3d = [
1.337
],
embedding_1d = [
1.337
]
debug = True
)
else:
return AppApiRestV2FunctionsTypesFunction(
Expand Down
8 changes: 1 addition & 7 deletions test/test_base_response_analysis_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,7 @@ def make_instance(self, include_optional) -> BaseResponseAnalysisFunctions:
function_mangled_name = '',
function_vaddr = 56,
function_size = 56,
debug = True,
embedding_3d = [
1.337
],
embedding_1d = [
1.337
], )
debug = True, )
], ),
message = '',
errors = [
Expand Down
8 changes: 1 addition & 7 deletions test/test_base_response_functions_detail_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,7 @@ def make_instance(self, include_optional) -> BaseResponseFunctionsDetailResponse
binary_name = '',
sha_256_hash = '',
debug_hash = '',
debug = True,
embedding_3d = [
1.337
],
embedding_1d = [
1.337
], ),
debug = True, ),
message = '',
errors = [
revengai.models.error_model.ErrorModel(
Expand Down
8 changes: 1 addition & 7 deletions test/test_functions_detail_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,7 @@ def make_instance(self, include_optional) -> FunctionsDetailResponse:
binary_name = '',
sha_256_hash = '',
debug_hash = '',
debug = True,
embedding_3d = [
1.337
],
embedding_1d = [
1.337
]
debug = True
)
else:
return FunctionsDetailResponse(
Expand Down