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.70.2
v3.72.0
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ Class | Method | HTTP request | Description
- [QueuedWorkflowTaskResponse](docs/QueuedWorkflowTaskResponse.md)
- [ReAnalysisForm](docs/ReAnalysisForm.md)
- [Recent](docs/Recent.md)
- [RegenerateTarget](docs/RegenerateTarget.md)
- [Registry](docs/Registry.md)
- [RelativeBinaryResponse](docs/RelativeBinaryResponse.md)
- [ReportAnalysisResponse](docs/ReportAnalysisResponse.md)
Expand Down
4 changes: 2 additions & 2 deletions docs/AnalysesCoreApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ with revengai.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = revengai.AnalysesCoreApi(api_client)
upload_file_type = revengai.UploadFileType() # UploadFileType |
file = None # bytearray |
file = 'file_example' # str |
packed_password = 'packed_password_example' # str | (optional)
endpoint_url = 'endpoint_url_example' # str | (optional)
local_cache_dir = 'local_cache_dir_example' # str | (optional)
Expand All @@ -1365,7 +1365,7 @@ with revengai.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**upload_file_type** | [**UploadFileType**](UploadFileType.md)| |
**file** | **bytearray**| |
**file** | **str**| |
**packed_password** | **str**| | [optional]
**endpoint_url** | **str**| | [optional]
**local_cache_dir** | **str**| | [optional]
Expand Down
4 changes: 2 additions & 2 deletions docs/FirmwareApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ configuration.api_key['APIKey'] = os.environ["API_KEY"]
with revengai.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = revengai.FirmwareApi(api_client)
file = None # bytearray |
file = 'file_example' # str |
endpoint_url = 'endpoint_url_example' # str | (optional)
local_cache_dir = 'local_cache_dir_example' # str | (optional)
local_cache_max_size_mb = 56 # int | (optional)
Expand All @@ -149,7 +149,7 @@ with revengai.ApiClient(configuration) as api_client:

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**file** | **bytearray**| |
**file** | **str**| |
**endpoint_url** | **str**| | [optional]
**local_cache_dir** | **str**| | [optional]
**local_cache_max_size_mb** | **int**| | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/FunctionMappingFull.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Name | Type | Description | Notes
**unmatched_global_vars** | [**Dict[str, InverseValue]**](InverseValue.md) | |
**fields** | **Dict[str, Dict[str, InverseValue]]** | |
**unmatched_external_vars** | [**Dict[str, InverseValue]**](InverseValue.md) | No longer provided. | [optional]
**user_override_mappings** | **Dict[str, str]** | | [optional]

## Example

Expand Down
7 changes: 5 additions & 2 deletions docs/FunctionsAIDecompilationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ Name | Type | Description | Notes
[[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)

# **get_ai_decompilation_task_result**
> BaseResponseGetAiDecompilationTask get_ai_decompilation_task_result(function_id, summarise=summarise, generate_inline_comments=generate_inline_comments)
> BaseResponseGetAiDecompilationTask get_ai_decompilation_task_result(function_id, summarise=summarise, generate_inline_comments=generate_inline_comments, force_regenerate=force_regenerate)

Polls AI Decompilation Process

Expand All @@ -475,6 +475,7 @@ Polls the AI Decompilation Process
```python
import revengai
from revengai.models.base_response_get_ai_decompilation_task import BaseResponseGetAiDecompilationTask
from revengai.models.regenerate_target import RegenerateTarget
from revengai.rest import ApiException
from pprint import pprint

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

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

### Return type

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


## Enum

* `SUMMARY` (value: `'summary'`)

* `COMMENTS` (value: `'comments'`)

[[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__ = "v3.70.2"
__version__ = "v3.72.0"

# Define package exports
__all__ = [
Expand Down Expand Up @@ -310,6 +310,7 @@
"QueuedWorkflowTaskResponse",
"ReAnalysisForm",
"Recent",
"RegenerateTarget",
"Registry",
"RelativeBinaryResponse",
"ReportAnalysisResponse",
Expand Down Expand Up @@ -663,6 +664,7 @@
from revengai.models.queued_workflow_task_response import QueuedWorkflowTaskResponse as QueuedWorkflowTaskResponse
from revengai.models.re_analysis_form import ReAnalysisForm as ReAnalysisForm
from revengai.models.recent import Recent as Recent
from revengai.models.regenerate_target import RegenerateTarget as RegenerateTarget
from revengai.models.registry import Registry as Registry
from revengai.models.relative_binary_response import RelativeBinaryResponse as RelativeBinaryResponse
from revengai.models.report_analysis_response import ReportAnalysisResponse as ReportAnalysisResponse
Expand Down
18 changes: 9 additions & 9 deletions revengai/api/analyses_core_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated

from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr
from typing import Any, List, Optional, Tuple, Union
from pydantic import Field, StrictBool, StrictInt, StrictStr
from typing import Any, List, Optional
from typing_extensions import Annotated
from revengai.models.analysis_create_request import AnalysisCreateRequest
from revengai.models.analysis_update_request import AnalysisUpdateRequest
Expand Down Expand Up @@ -5058,7 +5058,7 @@ def _update_analysis_tags_serialize(
def upload_file(
self,
upload_file_type: UploadFileType,
file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
file: StrictStr,
packed_password: Optional[StrictStr] = None,
endpoint_url: Optional[StrictStr] = None,
local_cache_dir: Optional[StrictStr] = None,
Expand Down Expand Up @@ -5086,7 +5086,7 @@ def upload_file(
:param upload_file_type: (required)
:type upload_file_type: UploadFileType
:param file: (required)
:type file: bytearray
:type file: str
:param packed_password:
:type packed_password: str
:param endpoint_url:
Expand Down Expand Up @@ -5161,7 +5161,7 @@ def upload_file(
def upload_file_with_http_info(
self,
upload_file_type: UploadFileType,
file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
file: StrictStr,
packed_password: Optional[StrictStr] = None,
endpoint_url: Optional[StrictStr] = None,
local_cache_dir: Optional[StrictStr] = None,
Expand Down Expand Up @@ -5189,7 +5189,7 @@ def upload_file_with_http_info(
:param upload_file_type: (required)
:type upload_file_type: UploadFileType
:param file: (required)
:type file: bytearray
:type file: str
:param packed_password:
:type packed_password: str
:param endpoint_url:
Expand Down Expand Up @@ -5264,7 +5264,7 @@ def upload_file_with_http_info(
def upload_file_without_preload_content(
self,
upload_file_type: UploadFileType,
file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
file: StrictStr,
packed_password: Optional[StrictStr] = None,
endpoint_url: Optional[StrictStr] = None,
local_cache_dir: Optional[StrictStr] = None,
Expand Down Expand Up @@ -5292,7 +5292,7 @@ def upload_file_without_preload_content(
:param upload_file_type: (required)
:type upload_file_type: UploadFileType
:param file: (required)
:type file: bytearray
:type file: str
:param packed_password:
:type packed_password: str
:param endpoint_url:
Expand Down Expand Up @@ -5426,7 +5426,7 @@ def _upload_file_serialize(
if upload_file_type is not None:
_form_params.append(('upload_file_type', upload_file_type))
if file is not None:
_files['file'] = file
_form_params.append(('file', file))
if force_overwrite is not None:
_form_params.append(('force_overwrite', force_overwrite))
# process the body parameter
Expand Down
18 changes: 9 additions & 9 deletions revengai/api/firmware_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated

from pydantic import StrictBytes, StrictInt, StrictStr
from typing import Any, Optional, Tuple, Union
from pydantic import StrictInt, StrictStr
from typing import Any, Optional

from revengai.api_client import ApiClient, RequestSerialized
from revengai.api_response import ApiResponse
Expand Down Expand Up @@ -303,7 +303,7 @@ def _get_binaries_for_firmware_task_serialize(
@validate_call
def upload_firmware(
self,
file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
file: StrictStr,
endpoint_url: Optional[StrictStr] = None,
local_cache_dir: Optional[StrictStr] = None,
local_cache_max_size_mb: Optional[StrictInt] = None,
Expand All @@ -329,7 +329,7 @@ def upload_firmware(
Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response.

:param file: (required)
:type file: bytearray
:type file: str
:param endpoint_url:
:type endpoint_url: str
:param local_cache_dir:
Expand Down Expand Up @@ -400,7 +400,7 @@ def upload_firmware(
@validate_call
def upload_firmware_with_http_info(
self,
file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
file: StrictStr,
endpoint_url: Optional[StrictStr] = None,
local_cache_dir: Optional[StrictStr] = None,
local_cache_max_size_mb: Optional[StrictInt] = None,
Expand All @@ -426,7 +426,7 @@ def upload_firmware_with_http_info(
Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response.

:param file: (required)
:type file: bytearray
:type file: str
:param endpoint_url:
:type endpoint_url: str
:param local_cache_dir:
Expand Down Expand Up @@ -497,7 +497,7 @@ def upload_firmware_with_http_info(
@validate_call
def upload_firmware_without_preload_content(
self,
file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
file: StrictStr,
endpoint_url: Optional[StrictStr] = None,
local_cache_dir: Optional[StrictStr] = None,
local_cache_max_size_mb: Optional[StrictInt] = None,
Expand All @@ -523,7 +523,7 @@ def upload_firmware_without_preload_content(
Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response.

:param file: (required)
:type file: bytearray
:type file: str
:param endpoint_url:
:type endpoint_url: str
:param local_cache_dir:
Expand Down Expand Up @@ -646,7 +646,7 @@ def _upload_firmware_serialize(
# process the header parameters
# process the form parameters
if file is not None:
_files['file'] = file
_form_params.append(('file', file))
if password is not None:
_form_params.append(('password', password))
# process the body parameter
Expand Down
21 changes: 20 additions & 1 deletion revengai/api/functions_ai_decompilation_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from typing_extensions import Annotated

from pydantic import Field, StrictBool, StrictInt, StrictStr
from typing import Optional
from typing import List, Optional
from typing_extensions import Annotated
from revengai.models.base_response import BaseResponse
from revengai.models.base_response_bool import BaseResponseBool
Expand All @@ -27,6 +27,7 @@
from revengai.models.base_response_union_get_ai_decompilation_rating_response_none_type import BaseResponseUnionGetAiDecompilationRatingResponseNoneType
from revengai.models.comment_update_request import CommentUpdateRequest
from revengai.models.function_comment_create_request import FunctionCommentCreateRequest
from revengai.models.regenerate_target import RegenerateTarget
from revengai.models.upsert_ai_decomplation_rating_request import UpsertAiDecomplationRatingRequest

from revengai.api_client import ApiClient, RequestSerialized
Expand Down Expand Up @@ -1740,6 +1741,7 @@ def get_ai_decompilation_task_result(
function_id: Annotated[StrictInt, Field(description="The ID of the function being decompiled")],
summarise: Annotated[Optional[StrictBool], Field(description="Generate a summary for the decompilation")] = None,
generate_inline_comments: Annotated[Optional[StrictBool], Field(description="Generate inline comments for the decompilation")] = None,
force_regenerate: Annotated[Optional[List[RegenerateTarget]], Field(description="Force regeneration of summary and/or comments.")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -1763,6 +1765,8 @@ def get_ai_decompilation_task_result(
:type summarise: bool
:param generate_inline_comments: Generate inline comments for the decompilation
:type generate_inline_comments: bool
:param force_regenerate: Force regeneration of summary and/or comments.
:type force_regenerate: List[RegenerateTarget]
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand All @@ -1789,6 +1793,7 @@ def get_ai_decompilation_task_result(
function_id=function_id,
summarise=summarise,
generate_inline_comments=generate_inline_comments,
force_regenerate=force_regenerate,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand Down Expand Up @@ -1817,6 +1822,7 @@ def get_ai_decompilation_task_result_with_http_info(
function_id: Annotated[StrictInt, Field(description="The ID of the function being decompiled")],
summarise: Annotated[Optional[StrictBool], Field(description="Generate a summary for the decompilation")] = None,
generate_inline_comments: Annotated[Optional[StrictBool], Field(description="Generate inline comments for the decompilation")] = None,
force_regenerate: Annotated[Optional[List[RegenerateTarget]], Field(description="Force regeneration of summary and/or comments.")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -1840,6 +1846,8 @@ def get_ai_decompilation_task_result_with_http_info(
:type summarise: bool
:param generate_inline_comments: Generate inline comments for the decompilation
:type generate_inline_comments: bool
:param force_regenerate: Force regeneration of summary and/or comments.
:type force_regenerate: List[RegenerateTarget]
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand All @@ -1866,6 +1874,7 @@ def get_ai_decompilation_task_result_with_http_info(
function_id=function_id,
summarise=summarise,
generate_inline_comments=generate_inline_comments,
force_regenerate=force_regenerate,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand Down Expand Up @@ -1894,6 +1903,7 @@ def get_ai_decompilation_task_result_without_preload_content(
function_id: Annotated[StrictInt, Field(description="The ID of the function being decompiled")],
summarise: Annotated[Optional[StrictBool], Field(description="Generate a summary for the decompilation")] = None,
generate_inline_comments: Annotated[Optional[StrictBool], Field(description="Generate inline comments for the decompilation")] = None,
force_regenerate: Annotated[Optional[List[RegenerateTarget]], Field(description="Force regeneration of summary and/or comments.")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -1917,6 +1927,8 @@ def get_ai_decompilation_task_result_without_preload_content(
:type summarise: bool
:param generate_inline_comments: Generate inline comments for the decompilation
:type generate_inline_comments: bool
:param force_regenerate: Force regeneration of summary and/or comments.
:type force_regenerate: List[RegenerateTarget]
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand All @@ -1943,6 +1955,7 @@ def get_ai_decompilation_task_result_without_preload_content(
function_id=function_id,
summarise=summarise,
generate_inline_comments=generate_inline_comments,
force_regenerate=force_regenerate,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -1966,6 +1979,7 @@ def _get_ai_decompilation_task_result_serialize(
function_id,
summarise,
generate_inline_comments,
force_regenerate,
_request_auth,
_content_type,
_headers,
Expand All @@ -1975,6 +1989,7 @@ def _get_ai_decompilation_task_result_serialize(
_host = None

_collection_formats: Dict[str, str] = {
'force_regenerate': 'multi',
}

_path_params: Dict[str, str] = {}
Expand All @@ -1998,6 +2013,10 @@ def _get_ai_decompilation_task_result_serialize(

_query_params.append(('generate_inline_comments', generate_inline_comments))

if force_regenerate is not None:

_query_params.append(('force_regenerate', force_regenerate))

# process the header parameters
# process the form parameters
# process the body parameter
Expand Down
Loading