Skip to content

Commit 8d7d37d

Browse files
authored
Merge pull request #60 from RevEngAI/sdk-update-v2.51.0
🤖 Update SDK to version v2.51.0
2 parents 02e9341 + 02a1512 commit 8d7d37d

8 files changed

Lines changed: 19 additions & 9 deletions

.sdk-version

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

docs/GetAiDecompilationTask.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
1313
**summary** | **str** | | [optional]
1414
**ai_summary** | **str** | | [optional]
1515
**raw_ai_summary** | **str** | | [optional]
16+
**predicted_function_name** | **str** | | [optional]
1617

1718
## Example
1819

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

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

revengai/models/get_ai_decompilation_task.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ class GetAiDecompilationTask(BaseModel):
3535
summary: Optional[StrictStr] = None
3636
ai_summary: Optional[StrictStr] = None
3737
raw_ai_summary: Optional[StrictStr] = None
38-
__properties: ClassVar[List[str]] = ["status", "decompilation", "raw_decompilation", "function_mapping", "function_mapping_full", "summary", "ai_summary", "raw_ai_summary"]
38+
predicted_function_name: Optional[StrictStr] = None
39+
__properties: ClassVar[List[str]] = ["status", "decompilation", "raw_decompilation", "function_mapping", "function_mapping_full", "summary", "ai_summary", "raw_ai_summary", "predicted_function_name"]
3940

4041
model_config = ConfigDict(
4142
populate_by_name=True,
@@ -121,6 +122,11 @@ def to_dict(self) -> Dict[str, Any]:
121122
if self.raw_ai_summary is None and "raw_ai_summary" in self.model_fields_set:
122123
_dict['raw_ai_summary'] = None
123124

125+
# set to None if predicted_function_name (nullable) is None
126+
# and model_fields_set contains the field
127+
if self.predicted_function_name is None and "predicted_function_name" in self.model_fields_set:
128+
_dict['predicted_function_name'] = None
129+
124130
return _dict
125131

126132
@classmethod
@@ -145,7 +151,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
145151
"function_mapping_full": FunctionMappingFull.from_dict(obj["function_mapping_full"]) if obj.get("function_mapping_full") is not None else None,
146152
"summary": obj.get("summary"),
147153
"ai_summary": obj.get("ai_summary"),
148-
"raw_ai_summary": obj.get("raw_ai_summary")
154+
"raw_ai_summary": obj.get("raw_ai_summary"),
155+
"predicted_function_name": obj.get("predicted_function_name")
149156
})
150157
return _obj
151158

test/test_base_response_get_ai_decompilation_task.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ def make_instance(self, include_optional) -> BaseResponseGetAiDecompilationTask:
9696
}, ),
9797
summary = '',
9898
ai_summary = '',
99-
raw_ai_summary = '', ),
99+
raw_ai_summary = '',
100+
predicted_function_name = '', ),
100101
message = '',
101102
errors = [
102103
revengai.models.error_model.ErrorModel(

test/test_get_ai_decompilation_task.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ def make_instance(self, include_optional) -> GetAiDecompilationTask:
9494
}, ),
9595
summary = '',
9696
ai_summary = '',
97-
raw_ai_summary = ''
97+
raw_ai_summary = '',
98+
predicted_function_name = ''
9899
)
99100
else:
100101
return GetAiDecompilationTask(

0 commit comments

Comments
 (0)