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.12.1
v2.13.0
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ Class | Method | HTTP request | Description
- [FunctionRenameMap](docs/FunctionRenameMap.md)
- [FunctionSearchResponse](docs/FunctionSearchResponse.md)
- [FunctionSearchResult](docs/FunctionSearchResult.md)
- [FunctionSourceType](docs/FunctionSourceType.md)
- [FunctionString](docs/FunctionString.md)
- [FunctionStringsResponse](docs/FunctionStringsResponse.md)
- [FunctionTaskResponse](docs/FunctionTaskResponse.md)
Expand Down
3 changes: 2 additions & 1 deletion docs/FunctionNameHistory.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ Name | Type | Description | Notes
**history_id** | **int** | The ID of the history record |
**change_made_by** | **str** | The user who made the change |
**function_name** | **str** | The name of the function |
**mangled_name** | **str** | The mangled name of the function |
**is_debug** | **bool** | Whether the function is debugged |
**source_type** | **str** | The source type of the function |
**source_type** | [**FunctionSourceType**](FunctionSourceType.md) | The source type of the function |
**created_at** | **str** | The timestamp when the function name was created |

## Example
Expand Down
18 changes: 18 additions & 0 deletions docs/FunctionSourceType.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# FunctionSourceType


## Enum

* `SYSTEM` (value: `'SYSTEM'`)

* `USER` (value: `'USER'`)

* `EXTERNAL` (value: `'EXTERNAL'`)

* `AUTO_UNSTRIP` (value: `'AUTO_UNSTRIP'`)

* `AI_UNSTRIP` (value: `'AI_UNSTRIP'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


4 changes: 3 additions & 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.12.1"
__version__ = "v2.13.0"

# Define package exports
__all__ = [
Expand Down Expand Up @@ -238,6 +238,7 @@
"FunctionRenameMap",
"FunctionSearchResponse",
"FunctionSearchResult",
"FunctionSourceType",
"FunctionString",
"FunctionStringsResponse",
"FunctionTaskResponse",
Expand Down Expand Up @@ -565,6 +566,7 @@
from revengai.models.function_rename_map import FunctionRenameMap as FunctionRenameMap
from revengai.models.function_search_response import FunctionSearchResponse as FunctionSearchResponse
from revengai.models.function_search_result import FunctionSearchResult as FunctionSearchResult
from revengai.models.function_source_type import FunctionSourceType as FunctionSourceType
from revengai.models.function_string import FunctionString as FunctionString
from revengai.models.function_strings_response import FunctionStringsResponse as FunctionStringsResponse
from revengai.models.function_task_response import FunctionTaskResponse as FunctionTaskResponse
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.12.1/python'
self.user_agent = 'OpenAPI-Generator/v2.13.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 @@ -529,8 +529,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.12.1\n"\
"SDK Package Version: v2.12.1".\
"Version of the API: v2.13.0\n"\
"SDK Package Version: v2.13.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
1 change: 1 addition & 0 deletions revengai/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
from revengai.models.function_rename_map import FunctionRenameMap
from revengai.models.function_search_response import FunctionSearchResponse
from revengai.models.function_search_result import FunctionSearchResult
from revengai.models.function_source_type import FunctionSourceType
from revengai.models.function_string import FunctionString
from revengai.models.function_strings_response import FunctionStringsResponse
from revengai.models.function_task_response import FunctionTaskResponse
Expand Down
7 changes: 5 additions & 2 deletions revengai/models/function_name_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List
from revengai.models.function_source_type import FunctionSourceType
from typing import Optional, Set
from typing_extensions import Self

Expand All @@ -28,10 +29,11 @@ class FunctionNameHistory(BaseModel):
history_id: StrictInt = Field(description="The ID of the history record")
change_made_by: StrictStr = Field(description="The user who made the change")
function_name: StrictStr = Field(description="The name of the function")
mangled_name: StrictStr = Field(description="The mangled name of the function")
is_debug: StrictBool = Field(description="Whether the function is debugged")
source_type: StrictStr = Field(description="The source type of the function")
source_type: FunctionSourceType = Field(description="The source type of the function")
created_at: StrictStr = Field(description="The timestamp when the function name was created")
__properties: ClassVar[List[str]] = ["history_id", "change_made_by", "function_name", "is_debug", "source_type", "created_at"]
__properties: ClassVar[List[str]] = ["history_id", "change_made_by", "function_name", "mangled_name", "is_debug", "source_type", "created_at"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -87,6 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"history_id": obj.get("history_id"),
"change_made_by": obj.get("change_made_by"),
"function_name": obj.get("function_name"),
"mangled_name": obj.get("mangled_name"),
"is_debug": obj.get("is_debug"),
"source_type": obj.get("source_type"),
"created_at": obj.get("created_at")
Expand Down
39 changes: 39 additions & 0 deletions revengai/models/function_source_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# coding: utf-8

"""
RevEng.AI API

RevEng.AI is Similarity Search Engine for executable binaries

Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self


class FunctionSourceType(str, Enum):
"""
FunctionSourceType
"""

"""
allowed enum values
"""
SYSTEM = 'SYSTEM'
USER = 'USER'
EXTERNAL = 'EXTERNAL'
AUTO_UNSTRIP = 'AUTO_UNSTRIP'
AI_UNSTRIP = 'AI_UNSTRIP'

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of FunctionSourceType from a JSON string"""
return cls(json.loads(json_str))


3 changes: 2 additions & 1 deletion test/test_base_response_list_function_name_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ def make_instance(self, include_optional) -> BaseResponseListFunctionNameHistory
history_id = 56,
change_made_by = '',
function_name = '',
mangled_name = '',
is_debug = True,
source_type = '',
source_type = 'SYSTEM',
created_at = '', )
],
message = '',
Expand Down
6 changes: 4 additions & 2 deletions test/test_function_name_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,19 @@ def make_instance(self, include_optional) -> FunctionNameHistory:
history_id = 56,
change_made_by = '',
function_name = '',
mangled_name = '',
is_debug = True,
source_type = '',
source_type = 'SYSTEM',
created_at = ''
)
else:
return FunctionNameHistory(
history_id = 56,
change_made_by = '',
function_name = '',
mangled_name = '',
is_debug = True,
source_type = '',
source_type = 'SYSTEM',
created_at = '',
)
"""
Expand Down
32 changes: 32 additions & 0 deletions test/test_function_source_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# coding: utf-8

"""
RevEng.AI API

RevEng.AI is Similarity Search Engine for executable binaries

Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


import unittest

from revengai.models.function_source_type import FunctionSourceType

class TestFunctionSourceType(unittest.TestCase):
"""FunctionSourceType unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def testFunctionSourceType(self):
"""Test FunctionSourceType"""
# inst = FunctionSourceType()

if __name__ == '__main__':
unittest.main()