Skip to content

Commit 5ba8334

Browse files
authored
Merge pull request #42 from RevEngAI/sdk-update-v2.18.2
🤖 Update SDK to version v2.18.2
2 parents d289ebc + 1a863aa commit 5ba8334

17 files changed

Lines changed: 125 additions & 1593 deletions

.sdk-version

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

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,9 @@ Class | Method | HTTP request | Description
133133
*FunctionsDataTypesApi* | [**list_function_data_types_for_analysis**](docs/FunctionsDataTypesApi.md#list_function_data_types_for_analysis) | **GET** /v2/analyses/{analysis_id}/functions/data_types | List Function Data Types
134134
*FunctionsDataTypesApi* | [**list_function_data_types_for_functions**](docs/FunctionsDataTypesApi.md#list_function_data_types_for_functions) | **GET** /v2/functions/data_types | List Function Data Types
135135
*FunctionsDataTypesApi* | [**update_function_data_types**](docs/FunctionsDataTypesApi.md#update_function_data_types) | **PUT** /v2/analyses/{analysis_id}/functions/{function_id}/data_types | Update Function Data Types
136-
*FunctionsDecompilationApi* | [**check_function_decompilation_task**](docs/FunctionsDecompilationApi.md#check_function_decompilation_task) | **GET** /v2/functions/{function_id}/decompilation/status | Check the status of a function decompilation
137136
*FunctionsDecompilationApi* | [**create_decompilation_comment**](docs/FunctionsDecompilationApi.md#create_decompilation_comment) | **POST** /v2/functions/{function_id}/decompilation/comments | Create a comment for this function
138-
*FunctionsDecompilationApi* | [**create_function_decompilation_task**](docs/FunctionsDecompilationApi.md#create_function_decompilation_task) | **POST** /v2/functions/{function_id}/decompilation | Queues a function decompilation
139137
*FunctionsDecompilationApi* | [**delete_decompilation_comment**](docs/FunctionsDecompilationApi.md#delete_decompilation_comment) | **DELETE** /v2/functions/{function_id}/decompilation/comments/{comment_id} | Delete a comment
140138
*FunctionsDecompilationApi* | [**get_decompilation_comments**](docs/FunctionsDecompilationApi.md#get_decompilation_comments) | **GET** /v2/functions/{function_id}/decompilation/comments | Get comments for this function
141-
*FunctionsDecompilationApi* | [**get_function_decompilation**](docs/FunctionsDecompilationApi.md#get_function_decompilation) | **GET** /v2/functions/{function_id}/decompilation | Get decompilation result
142139
*FunctionsDecompilationApi* | [**update_decompilation_comment**](docs/FunctionsDecompilationApi.md#update_decompilation_comment) | **PATCH** /v2/functions/{function_id}/decompilation/comments/{comment_id} | Update a comment
143140
*FunctionsRenamingHistoryApi* | [**batch_rename_function**](docs/FunctionsRenamingHistoryApi.md#batch_rename_function) | **POST** /v2/functions/rename/batch | Batch Rename Functions
144141
*FunctionsRenamingHistoryApi* | [**get_function_name_history**](docs/FunctionsRenamingHistoryApi.md#get_function_name_history) | **GET** /v2/functions/history/{function_id} | Get Function Name History
@@ -210,7 +207,6 @@ Class | Method | HTTP request | Description
210207
- [BaseResponseCommentResponse](docs/BaseResponseCommentResponse.md)
211208
- [BaseResponseCommunities](docs/BaseResponseCommunities.md)
212209
- [BaseResponseCreated](docs/BaseResponseCreated.md)
213-
- [BaseResponseDecompilationResponse](docs/BaseResponseDecompilationResponse.md)
214210
- [BaseResponseDict](docs/BaseResponseDict.md)
215211
- [BaseResponseDynamicExecutionStatus](docs/BaseResponseDynamicExecutionStatus.md)
216212
- [BaseResponseExternalResponse](docs/BaseResponseExternalResponse.md)
@@ -297,7 +293,6 @@ Class | Method | HTTP request | Description
297293
- [Context](docs/Context.md)
298294
- [Created](docs/Created.md)
299295
- [DecompilationCommentContext](docs/DecompilationCommentContext.md)
300-
- [DecompilationResponse](docs/DecompilationResponse.md)
301296
- [DieMatch](docs/DieMatch.md)
302297
- [DynamicExecutionStatusInput](docs/DynamicExecutionStatusInput.md)
303298
- [ELFImportModel](docs/ELFImportModel.md)

docs/BaseResponseDecompilationResponse.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

docs/DecompilationResponse.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

docs/FunctionsDecompilationApi.md

Lines changed: 0 additions & 239 deletions
Original file line numberDiff line numberDiff line change
@@ -4,93 +4,12 @@ All URIs are relative to *https://api.reveng.ai*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**check_function_decompilation_task**](FunctionsDecompilationApi.md#check_function_decompilation_task) | **GET** /v2/functions/{function_id}/decompilation/status | Check the status of a function decompilation
87
[**create_decompilation_comment**](FunctionsDecompilationApi.md#create_decompilation_comment) | **POST** /v2/functions/{function_id}/decompilation/comments | Create a comment for this function
9-
[**create_function_decompilation_task**](FunctionsDecompilationApi.md#create_function_decompilation_task) | **POST** /v2/functions/{function_id}/decompilation | Queues a function decompilation
108
[**delete_decompilation_comment**](FunctionsDecompilationApi.md#delete_decompilation_comment) | **DELETE** /v2/functions/{function_id}/decompilation/comments/{comment_id} | Delete a comment
119
[**get_decompilation_comments**](FunctionsDecompilationApi.md#get_decompilation_comments) | **GET** /v2/functions/{function_id}/decompilation/comments | Get comments for this function
12-
[**get_function_decompilation**](FunctionsDecompilationApi.md#get_function_decompilation) | **GET** /v2/functions/{function_id}/decompilation | Get decompilation result
1310
[**update_decompilation_comment**](FunctionsDecompilationApi.md#update_decompilation_comment) | **PATCH** /v2/functions/{function_id}/decompilation/comments/{comment_id} | Update a comment
1411

1512

16-
# **check_function_decompilation_task**
17-
> BaseResponseFunctionTaskResponse check_function_decompilation_task(function_id)
18-
19-
Check the status of a function decompilation
20-
21-
### Example
22-
23-
* Api Key Authentication (APIKey):
24-
25-
```python
26-
import revengai
27-
from revengai.models.base_response_function_task_response import BaseResponseFunctionTaskResponse
28-
from revengai.rest import ApiException
29-
from pprint import pprint
30-
31-
# Defining the host is optional and defaults to https://api.reveng.ai
32-
# See configuration.py for a list of all supported configuration parameters.
33-
configuration = revengai.Configuration(
34-
host = "https://api.reveng.ai"
35-
)
36-
37-
# The client must configure the authentication and authorization parameters
38-
# in accordance with the API server security policy.
39-
# Examples for each auth method are provided below, use the example that
40-
# satisfies your auth use case.
41-
42-
# Configure API key authorization: APIKey
43-
configuration.api_key['APIKey'] = os.environ["API_KEY"]
44-
45-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
46-
# configuration.api_key_prefix['APIKey'] = 'Bearer'
47-
48-
# Enter a context with an instance of the API client
49-
with revengai.ApiClient(configuration) as api_client:
50-
# Create an instance of the API class
51-
api_instance = revengai.FunctionsDecompilationApi(api_client)
52-
function_id = 56 # int |
53-
54-
try:
55-
# Check the status of a function decompilation
56-
api_response = api_instance.check_function_decompilation_task(function_id)
57-
print("The response of FunctionsDecompilationApi->check_function_decompilation_task:\n")
58-
pprint(api_response)
59-
except Exception as e:
60-
print("Exception when calling FunctionsDecompilationApi->check_function_decompilation_task: %s\n" % e)
61-
```
62-
63-
64-
65-
### Parameters
66-
67-
68-
Name | Type | Description | Notes
69-
------------- | ------------- | ------------- | -------------
70-
**function_id** | **int**| |
71-
72-
### Return type
73-
74-
[**BaseResponseFunctionTaskResponse**](BaseResponseFunctionTaskResponse.md)
75-
76-
### Authorization
77-
78-
[APIKey](../README.md#APIKey)
79-
80-
### HTTP request headers
81-
82-
- **Content-Type**: Not defined
83-
- **Accept**: application/json
84-
85-
### HTTP response details
86-
87-
| Status code | Description | Response headers |
88-
|-------------|-------------|------------------|
89-
**200** | Successful Response | - |
90-
**422** | Invalid request parameters | - |
91-
92-
[[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)
93-
9413
# **create_decompilation_comment**
9514
> BaseResponseCommentResponse create_decompilation_comment(function_id, function_comment_create_request)
9615
@@ -175,85 +94,6 @@ Name | Type | Description | Notes
17594

17695
[[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)
17796

178-
# **create_function_decompilation_task**
179-
> BaseResponseStr create_function_decompilation_task(function_id)
180-
181-
Queues a function decompilation
182-
183-
### Example
184-
185-
* Api Key Authentication (APIKey):
186-
187-
```python
188-
import revengai
189-
from revengai.models.base_response_str import BaseResponseStr
190-
from revengai.rest import ApiException
191-
from pprint import pprint
192-
193-
# Defining the host is optional and defaults to https://api.reveng.ai
194-
# See configuration.py for a list of all supported configuration parameters.
195-
configuration = revengai.Configuration(
196-
host = "https://api.reveng.ai"
197-
)
198-
199-
# The client must configure the authentication and authorization parameters
200-
# in accordance with the API server security policy.
201-
# Examples for each auth method are provided below, use the example that
202-
# satisfies your auth use case.
203-
204-
# Configure API key authorization: APIKey
205-
configuration.api_key['APIKey'] = os.environ["API_KEY"]
206-
207-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
208-
# configuration.api_key_prefix['APIKey'] = 'Bearer'
209-
210-
# Enter a context with an instance of the API client
211-
with revengai.ApiClient(configuration) as api_client:
212-
# Create an instance of the API class
213-
api_instance = revengai.FunctionsDecompilationApi(api_client)
214-
function_id = 56 # int |
215-
216-
try:
217-
# Queues a function decompilation
218-
api_response = api_instance.create_function_decompilation_task(function_id)
219-
print("The response of FunctionsDecompilationApi->create_function_decompilation_task:\n")
220-
pprint(api_response)
221-
except Exception as e:
222-
print("Exception when calling FunctionsDecompilationApi->create_function_decompilation_task: %s\n" % e)
223-
```
224-
225-
226-
227-
### Parameters
228-
229-
230-
Name | Type | Description | Notes
231-
------------- | ------------- | ------------- | -------------
232-
**function_id** | **int**| |
233-
234-
### Return type
235-
236-
[**BaseResponseStr**](BaseResponseStr.md)
237-
238-
### Authorization
239-
240-
[APIKey](../README.md#APIKey)
241-
242-
### HTTP request headers
243-
244-
- **Content-Type**: Not defined
245-
- **Accept**: application/json
246-
247-
### HTTP response details
248-
249-
| Status code | Description | Response headers |
250-
|-------------|-------------|------------------|
251-
**202** | Successful Response | - |
252-
**422** | Invalid request parameters | - |
253-
**409** | Security checks already extracted or queued | - |
254-
255-
[[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)
256-
25797
# **delete_decompilation_comment**
25898
> BaseResponseBool delete_decompilation_comment(comment_id, function_id)
25999
@@ -418,85 +258,6 @@ Name | Type | Description | Notes
418258

419259
[[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)
420260

421-
# **get_function_decompilation**
422-
> BaseResponseDecompilationResponse get_function_decompilation(function_id)
423-
424-
Get decompilation result
425-
426-
### Example
427-
428-
* Api Key Authentication (APIKey):
429-
430-
```python
431-
import revengai
432-
from revengai.models.base_response_decompilation_response import BaseResponseDecompilationResponse
433-
from revengai.rest import ApiException
434-
from pprint import pprint
435-
436-
# Defining the host is optional and defaults to https://api.reveng.ai
437-
# See configuration.py for a list of all supported configuration parameters.
438-
configuration = revengai.Configuration(
439-
host = "https://api.reveng.ai"
440-
)
441-
442-
# The client must configure the authentication and authorization parameters
443-
# in accordance with the API server security policy.
444-
# Examples for each auth method are provided below, use the example that
445-
# satisfies your auth use case.
446-
447-
# Configure API key authorization: APIKey
448-
configuration.api_key['APIKey'] = os.environ["API_KEY"]
449-
450-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
451-
# configuration.api_key_prefix['APIKey'] = 'Bearer'
452-
453-
# Enter a context with an instance of the API client
454-
with revengai.ApiClient(configuration) as api_client:
455-
# Create an instance of the API class
456-
api_instance = revengai.FunctionsDecompilationApi(api_client)
457-
function_id = 56 # int |
458-
459-
try:
460-
# Get decompilation result
461-
api_response = api_instance.get_function_decompilation(function_id)
462-
print("The response of FunctionsDecompilationApi->get_function_decompilation:\n")
463-
pprint(api_response)
464-
except Exception as e:
465-
print("Exception when calling FunctionsDecompilationApi->get_function_decompilation: %s\n" % e)
466-
```
467-
468-
469-
470-
### Parameters
471-
472-
473-
Name | Type | Description | Notes
474-
------------- | ------------- | ------------- | -------------
475-
**function_id** | **int**| |
476-
477-
### Return type
478-
479-
[**BaseResponseDecompilationResponse**](BaseResponseDecompilationResponse.md)
480-
481-
### Authorization
482-
483-
[APIKey](../README.md#APIKey)
484-
485-
### HTTP request headers
486-
487-
- **Content-Type**: Not defined
488-
- **Accept**: application/json
489-
490-
### HTTP response details
491-
492-
| Status code | Description | Response headers |
493-
|-------------|-------------|------------------|
494-
**200** | Successful Response | - |
495-
**422** | Invalid request parameters | - |
496-
**404** | Unable to find a decompilation for the function_id given | - |
497-
498-
[[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)
499-
500261
# **update_decompilation_comment**
501262
> BaseResponseCommentResponse update_decompilation_comment(comment_id, function_id, comment_update_request)
502263

docs/ModelName.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,17 @@ Custom enum for the model name
44

55
## Enum
66

7-
* `BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_WINDOWS` (value: `'binnet-0.5-x86-windows'`)
7+
* `BINNET_MINUS_0_DOT_7_MINUS_X86_MINUS_64_MINUS_WINDOWS` (value: `'binnet-0.7-x86-64-windows'`)
88

9-
* `BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_LINUX` (value: `'binnet-0.5-x86-linux'`)
9+
* `BINNET_MINUS_0_DOT_7_MINUS_X86_MINUS_64_MINUS_LINUX` (value: `'binnet-0.7-x86-64-linux'`)
1010

11-
* `BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_MACOS` (value: `'binnet-0.5-x86-macos'`)
11+
* `BINNET_MINUS_0_DOT_7_MINUS_X86_MINUS_32_MINUS_WINDOWS` (value: `'binnet-0.7-x86-32-windows'`)
1212

13-
* `BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_ANDROID` (value: `'binnet-0.5-x86-android'`)
13+
* `BINNET_MINUS_0_DOT_7_MINUS_X86_MINUS_32_MINUS_LINUX` (value: `'binnet-0.7-x86-32-linux'`)
1414

15-
* `BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_32_MINUS_WINDOWS` (value: `'binnet-0.5-x86-32-windows'`)
15+
* `BINNET_MINUS_0_DOT_7_MINUS_ARM_MINUS_64_MINUS_WINDOWS` (value: `'binnet-0.7-arm-64-windows'`)
1616

17-
* `BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_32_MINUS_LINUX` (value: `'binnet-0.5-x86-32-linux'`)
18-
19-
* `BINNET_MINUS_0_DOT_5_MINUS_ARM_MINUS_64_MINUS_WINDOWS` (value: `'binnet-0.5-arm-64-windows'`)
20-
21-
* `BINNET_MINUS_0_DOT_5_MINUS_ARM_MINUS_64_MINUS_LINUX` (value: `'binnet-0.5-arm-64-linux'`)
17+
* `BINNET_MINUS_0_DOT_7_MINUS_ARM_MINUS_64_MINUS_LINUX` (value: `'binnet-0.7-arm-64-linux'`)
2218

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

0 commit comments

Comments
 (0)