Skip to content

Commit 8f666db

Browse files
authored
Merge pull request #135 from RevEngAI/sdk-update-v3.72.0
🤖 Update SDK to version v3.72.0
2 parents d264d20 + 0c61a26 commit 8f666db

20 files changed

Lines changed: 154 additions & 33 deletions

.sdk-version

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

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ Class | Method | HTTP request | Description
421421
- [QueuedWorkflowTaskResponse](docs/QueuedWorkflowTaskResponse.md)
422422
- [ReAnalysisForm](docs/ReAnalysisForm.md)
423423
- [Recent](docs/Recent.md)
424+
- [RegenerateTarget](docs/RegenerateTarget.md)
424425
- [Registry](docs/Registry.md)
425426
- [RelativeBinaryResponse](docs/RelativeBinaryResponse.md)
426427
- [ReportAnalysisResponse](docs/ReportAnalysisResponse.md)

docs/AnalysesCoreApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,7 @@ with revengai.ApiClient(configuration) as api_client:
13381338
# Create an instance of the API class
13391339
api_instance = revengai.AnalysesCoreApi(api_client)
13401340
upload_file_type = revengai.UploadFileType() # UploadFileType |
1341-
file = None # bytearray |
1341+
file = 'file_example' # str |
13421342
packed_password = 'packed_password_example' # str | (optional)
13431343
endpoint_url = 'endpoint_url_example' # str | (optional)
13441344
local_cache_dir = 'local_cache_dir_example' # str | (optional)
@@ -1365,7 +1365,7 @@ with revengai.ApiClient(configuration) as api_client:
13651365
Name | Type | Description | Notes
13661366
------------- | ------------- | ------------- | -------------
13671367
**upload_file_type** | [**UploadFileType**](UploadFileType.md)| |
1368-
**file** | **bytearray**| |
1368+
**file** | **str**| |
13691369
**packed_password** | **str**| | [optional]
13701370
**endpoint_url** | **str**| | [optional]
13711371
**local_cache_dir** | **str**| | [optional]

docs/FirmwareApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ configuration.api_key['APIKey'] = os.environ["API_KEY"]
124124
with revengai.ApiClient(configuration) as api_client:
125125
# Create an instance of the API class
126126
api_instance = revengai.FirmwareApi(api_client)
127-
file = None # bytearray |
127+
file = 'file_example' # str |
128128
endpoint_url = 'endpoint_url_example' # str | (optional)
129129
local_cache_dir = 'local_cache_dir_example' # str | (optional)
130130
local_cache_max_size_mb = 56 # int | (optional)
@@ -149,7 +149,7 @@ with revengai.ApiClient(configuration) as api_client:
149149

150150
Name | Type | Description | Notes
151151
------------- | ------------- | ------------- | -------------
152-
**file** | **bytearray**| |
152+
**file** | **str**| |
153153
**endpoint_url** | **str**| | [optional]
154154
**local_cache_dir** | **str**| | [optional]
155155
**local_cache_max_size_mb** | **int**| | [optional]

docs/FunctionMappingFull.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
1818
**unmatched_global_vars** | [**Dict[str, InverseValue]**](InverseValue.md) | |
1919
**fields** | **Dict[str, Dict[str, InverseValue]]** | |
2020
**unmatched_external_vars** | [**Dict[str, InverseValue]**](InverseValue.md) | No longer provided. | [optional]
21+
**user_override_mappings** | **Dict[str, str]** | | [optional]
2122

2223
## Example
2324

docs/FunctionsAIDecompilationApi.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ Name | Type | Description | Notes
462462
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
463463

464464
# **get_ai_decompilation_task_result**
465-
> BaseResponseGetAiDecompilationTask get_ai_decompilation_task_result(function_id, summarise=summarise, generate_inline_comments=generate_inline_comments)
465+
> BaseResponseGetAiDecompilationTask get_ai_decompilation_task_result(function_id, summarise=summarise, generate_inline_comments=generate_inline_comments, force_regenerate=force_regenerate)
466466
467467
Polls AI Decompilation Process
468468

@@ -475,6 +475,7 @@ Polls the AI Decompilation Process
475475
```python
476476
import revengai
477477
from revengai.models.base_response_get_ai_decompilation_task import BaseResponseGetAiDecompilationTask
478+
from revengai.models.regenerate_target import RegenerateTarget
478479
from revengai.rest import ApiException
479480
from pprint import pprint
480481

@@ -502,10 +503,11 @@ with revengai.ApiClient(configuration) as api_client:
502503
function_id = 56 # int | The ID of the function being decompiled
503504
summarise = True # bool | Generate a summary for the decompilation (optional) (default to True)
504505
generate_inline_comments = True # bool | Generate inline comments for the decompilation (optional) (default to True)
506+
force_regenerate = [] # List[RegenerateTarget] | Force regeneration of summary and/or comments. (optional) (default to [])
505507

506508
try:
507509
# Polls AI Decompilation Process
508-
api_response = api_instance.get_ai_decompilation_task_result(function_id, summarise=summarise, generate_inline_comments=generate_inline_comments)
510+
api_response = api_instance.get_ai_decompilation_task_result(function_id, summarise=summarise, generate_inline_comments=generate_inline_comments, force_regenerate=force_regenerate)
509511
print("The response of FunctionsAIDecompilationApi->get_ai_decompilation_task_result:\n")
510512
pprint(api_response)
511513
except Exception as e:
@@ -522,6 +524,7 @@ Name | Type | Description | Notes
522524
**function_id** | **int**| The ID of the function being decompiled |
523525
**summarise** | **bool**| Generate a summary for the decompilation | [optional] [default to True]
524526
**generate_inline_comments** | **bool**| Generate inline comments for the decompilation | [optional] [default to True]
527+
**force_regenerate** | [**List[RegenerateTarget]**](RegenerateTarget.md)| Force regeneration of summary and/or comments. | [optional] [default to []]
525528

526529
### Return type
527530

docs/RegenerateTarget.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# RegenerateTarget
2+
3+
4+
## Enum
5+
6+
* `SUMMARY` (value: `'summary'`)
7+
8+
* `COMMENTS` (value: `'comments'`)
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+

revengai/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
""" # noqa: E501
1414

1515

16-
__version__ = "v3.70.2"
16+
__version__ = "v3.72.0"
1717

1818
# Define package exports
1919
__all__ = [
@@ -310,6 +310,7 @@
310310
"QueuedWorkflowTaskResponse",
311311
"ReAnalysisForm",
312312
"Recent",
313+
"RegenerateTarget",
313314
"Registry",
314315
"RelativeBinaryResponse",
315316
"ReportAnalysisResponse",
@@ -663,6 +664,7 @@
663664
from revengai.models.queued_workflow_task_response import QueuedWorkflowTaskResponse as QueuedWorkflowTaskResponse
664665
from revengai.models.re_analysis_form import ReAnalysisForm as ReAnalysisForm
665666
from revengai.models.recent import Recent as Recent
667+
from revengai.models.regenerate_target import RegenerateTarget as RegenerateTarget
666668
from revengai.models.registry import Registry as Registry
667669
from revengai.models.relative_binary_response import RelativeBinaryResponse as RelativeBinaryResponse
668670
from revengai.models.report_analysis_response import ReportAnalysisResponse as ReportAnalysisResponse

revengai/api/analyses_core_api.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
from typing import Any, Dict, List, Optional, Tuple, Union
1616
from typing_extensions import Annotated
1717

18-
from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr
19-
from typing import Any, List, Optional, Tuple, Union
18+
from pydantic import Field, StrictBool, StrictInt, StrictStr
19+
from typing import Any, List, Optional
2020
from typing_extensions import Annotated
2121
from revengai.models.analysis_create_request import AnalysisCreateRequest
2222
from revengai.models.analysis_update_request import AnalysisUpdateRequest
@@ -5058,7 +5058,7 @@ def _update_analysis_tags_serialize(
50585058
def upload_file(
50595059
self,
50605060
upload_file_type: UploadFileType,
5061-
file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
5061+
file: StrictStr,
50625062
packed_password: Optional[StrictStr] = None,
50635063
endpoint_url: Optional[StrictStr] = None,
50645064
local_cache_dir: Optional[StrictStr] = None,
@@ -5086,7 +5086,7 @@ def upload_file(
50865086
:param upload_file_type: (required)
50875087
:type upload_file_type: UploadFileType
50885088
:param file: (required)
5089-
:type file: bytearray
5089+
:type file: str
50905090
:param packed_password:
50915091
:type packed_password: str
50925092
:param endpoint_url:
@@ -5161,7 +5161,7 @@ def upload_file(
51615161
def upload_file_with_http_info(
51625162
self,
51635163
upload_file_type: UploadFileType,
5164-
file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
5164+
file: StrictStr,
51655165
packed_password: Optional[StrictStr] = None,
51665166
endpoint_url: Optional[StrictStr] = None,
51675167
local_cache_dir: Optional[StrictStr] = None,
@@ -5189,7 +5189,7 @@ def upload_file_with_http_info(
51895189
:param upload_file_type: (required)
51905190
:type upload_file_type: UploadFileType
51915191
:param file: (required)
5192-
:type file: bytearray
5192+
:type file: str
51935193
:param packed_password:
51945194
:type packed_password: str
51955195
:param endpoint_url:
@@ -5264,7 +5264,7 @@ def upload_file_with_http_info(
52645264
def upload_file_without_preload_content(
52655265
self,
52665266
upload_file_type: UploadFileType,
5267-
file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
5267+
file: StrictStr,
52685268
packed_password: Optional[StrictStr] = None,
52695269
endpoint_url: Optional[StrictStr] = None,
52705270
local_cache_dir: Optional[StrictStr] = None,
@@ -5292,7 +5292,7 @@ def upload_file_without_preload_content(
52925292
:param upload_file_type: (required)
52935293
:type upload_file_type: UploadFileType
52945294
:param file: (required)
5295-
:type file: bytearray
5295+
:type file: str
52965296
:param packed_password:
52975297
:type packed_password: str
52985298
:param endpoint_url:
@@ -5426,7 +5426,7 @@ def _upload_file_serialize(
54265426
if upload_file_type is not None:
54275427
_form_params.append(('upload_file_type', upload_file_type))
54285428
if file is not None:
5429-
_files['file'] = file
5429+
_form_params.append(('file', file))
54305430
if force_overwrite is not None:
54315431
_form_params.append(('force_overwrite', force_overwrite))
54325432
# process the body parameter

revengai/api/firmware_api.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
from typing import Any, Dict, List, Optional, Tuple, Union
1616
from typing_extensions import Annotated
1717

18-
from pydantic import StrictBytes, StrictInt, StrictStr
19-
from typing import Any, Optional, Tuple, Union
18+
from pydantic import StrictInt, StrictStr
19+
from typing import Any, Optional
2020

2121
from revengai.api_client import ApiClient, RequestSerialized
2222
from revengai.api_response import ApiResponse
@@ -303,7 +303,7 @@ def _get_binaries_for_firmware_task_serialize(
303303
@validate_call
304304
def upload_firmware(
305305
self,
306-
file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
306+
file: StrictStr,
307307
endpoint_url: Optional[StrictStr] = None,
308308
local_cache_dir: Optional[StrictStr] = None,
309309
local_cache_max_size_mb: Optional[StrictInt] = None,
@@ -329,7 +329,7 @@ def upload_firmware(
329329
Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response.
330330
331331
:param file: (required)
332-
:type file: bytearray
332+
:type file: str
333333
:param endpoint_url:
334334
:type endpoint_url: str
335335
:param local_cache_dir:
@@ -400,7 +400,7 @@ def upload_firmware(
400400
@validate_call
401401
def upload_firmware_with_http_info(
402402
self,
403-
file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
403+
file: StrictStr,
404404
endpoint_url: Optional[StrictStr] = None,
405405
local_cache_dir: Optional[StrictStr] = None,
406406
local_cache_max_size_mb: Optional[StrictInt] = None,
@@ -426,7 +426,7 @@ def upload_firmware_with_http_info(
426426
Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response.
427427
428428
:param file: (required)
429-
:type file: bytearray
429+
:type file: str
430430
:param endpoint_url:
431431
:type endpoint_url: str
432432
:param local_cache_dir:
@@ -497,7 +497,7 @@ def upload_firmware_with_http_info(
497497
@validate_call
498498
def upload_firmware_without_preload_content(
499499
self,
500-
file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
500+
file: StrictStr,
501501
endpoint_url: Optional[StrictStr] = None,
502502
local_cache_dir: Optional[StrictStr] = None,
503503
local_cache_max_size_mb: Optional[StrictInt] = None,
@@ -523,7 +523,7 @@ def upload_firmware_without_preload_content(
523523
Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response.
524524
525525
:param file: (required)
526-
:type file: bytearray
526+
:type file: str
527527
:param endpoint_url:
528528
:type endpoint_url: str
529529
:param local_cache_dir:
@@ -646,7 +646,7 @@ def _upload_firmware_serialize(
646646
# process the header parameters
647647
# process the form parameters
648648
if file is not None:
649-
_files['file'] = file
649+
_form_params.append(('file', file))
650650
if password is not None:
651651
_form_params.append(('password', password))
652652
# process the body parameter

0 commit comments

Comments
 (0)