Skip to content

Commit 539ae1d

Browse files
authored
Merge pull request #13 from RevEngAI/sdk-update-v1.84.0
🤖 Update SDK to version v1.84.0
2 parents 141d37b + 84a62ea commit 539ae1d

38 files changed

+98
-1020
lines changed

.sdk-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.81.2
1+
v1.84.0

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ Class | Method | HTTP request | Description
131131
*FunctionsCoreApi* | [**get_function_details**](docs/FunctionsCoreApi.md#get_function_details) | **GET** /v2/functions/{function_id} | Get function details
132132
*FunctionsCoreApi* | [**get_function_strings**](docs/FunctionsCoreApi.md#get_function_strings) | **GET** /v2/functions/{function_id}/strings | Get string information found in the function
133133
*FunctionsCoreApi* | [**get_similar_functions**](docs/FunctionsCoreApi.md#get_similar_functions) | **GET** /v2/functions/{function_id}/similar-functions | Get list of similar functions
134-
*FunctionsCoreApi* | [**unstrip**](docs/FunctionsCoreApi.md#unstrip) | **POST** /v2/analyses/{analysis_id}/functions/unstrip | Performs matching and auto-unstrip for an analysis and its functions
135134
*FunctionsDataTypesApi* | [**generate_function_data_types_for_analysis**](docs/FunctionsDataTypesApi.md#generate_function_data_types_for_analysis) | **POST** /v2/analyses/{analysis_id}/functions/data_types | Generate Function Data Types
136135
*FunctionsDataTypesApi* | [**generate_function_data_types_for_functions**](docs/FunctionsDataTypesApi.md#generate_function_data_types_for_functions) | **POST** /v2/functions/data_types | Generate Function Data Types for an arbitrary list of functions
137136
*FunctionsDataTypesApi* | [**get_function_data_types**](docs/FunctionsDataTypesApi.md#get_function_data_types) | **GET** /v2/analyses/{analysis_id}/functions/{function_id}/data_types | Get Function Data Types
@@ -188,7 +187,6 @@ Class | Method | HTTP request | Description
188187
- [AppServicesBinaryAnnSchemaTagItem](docs/AppServicesBinaryAnnSchemaTagItem.md)
189188
- [AppServicesDynamicExecutionSchemasDynamicExecutionStatus](docs/AppServicesDynamicExecutionSchemasDynamicExecutionStatus.md)
190189
- [Argument](docs/Argument.md)
191-
- [AutoUnstripByGroupResponse](docs/AutoUnstripByGroupResponse.md)
192190
- [AutoUnstripRequest](docs/AutoUnstripRequest.md)
193191
- [AutoUnstripResponse](docs/AutoUnstripResponse.md)
194192
- [BaseResponse](docs/BaseResponse.md)
@@ -388,7 +386,6 @@ Class | Method | HTTP request | Description
388386
- [LoginRequest](docs/LoginRequest.md)
389387
- [LoginResponse](docs/LoginResponse.md)
390388
- [Logs](docs/Logs.md)
391-
- [MatchedFunctionGroup](docs/MatchedFunctionGroup.md)
392389
- [MatchedFunctionSuggestion](docs/MatchedFunctionSuggestion.md)
393390
- [MetaModel](docs/MetaModel.md)
394391
- [ModelName](docs/ModelName.md)
@@ -457,7 +454,6 @@ Class | Method | HTTP request | Description
457454
- [ThreatScoreFunctionBody](docs/ThreatScoreFunctionBody.md)
458455
- [TimestampModel](docs/TimestampModel.md)
459456
- [TypeDefinition](docs/TypeDefinition.md)
460-
- [UnstripRequest](docs/UnstripRequest.md)
461457
- [UpdateFunctionDataTypes](docs/UpdateFunctionDataTypes.md)
462458
- [UploadFileType](docs/UploadFileType.md)
463459
- [UploadResponse](docs/UploadResponse.md)

docs/AiDecompilationRating.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
* `NEGATIVE` (value: `'NEGATIVE'`)
99

10+
* `NEUTRAL` (value: `'NEUTRAL'`)
11+
1012
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1113

1214

docs/AnalysesCoreApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ Name | Type | Description | Notes
771771
[[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)
772772

773773
# **list_analyses**
774-
> BaseResponseRecent list_analyses(search_term=search_term, workspace=workspace, status=status, model_name=model_name, dynamic_execution_status=dynamic_execution_status, usernames=usernames, limit=limit, offset=offset, order_by=order_by, order=order, authorization=authorization)
774+
> BaseResponseRecent list_analyses(search_term=search_term, workspace=workspace, status=status, model_name=model_name, dynamic_execution_status=dynamic_execution_status, usernames=usernames, sha256_hash=sha256_hash, limit=limit, offset=offset, order_by=order_by, order=order, authorization=authorization)
775775
776776
Gets the most recent analyses
777777

@@ -820,6 +820,7 @@ with revengai.ApiClient(configuration) as api_client:
820820
model_name = [revengai.ModelName()] # List[ModelName] | Show analysis belonging to the model (optional)
821821
dynamic_execution_status = revengai.DynamicExecutionStatusInput() # DynamicExecutionStatusInput | Show analysis that have a dynamic execution with the given status (optional)
822822
usernames = [] # List[Optional[str]] | Show analysis belonging to the user (optional) (default to [])
823+
sha256_hash = 'sha256_hash_example' # str | (optional)
823824
limit = 20 # int | (optional) (default to 20)
824825
offset = 0 # int | (optional) (default to 0)
825826
order_by = revengai.AppApiRestV2AnalysesEnumsOrderBy() # AppApiRestV2AnalysesEnumsOrderBy | (optional)
@@ -828,7 +829,7 @@ with revengai.ApiClient(configuration) as api_client:
828829

829830
try:
830831
# Gets the most recent analyses
831-
api_response = api_instance.list_analyses(search_term=search_term, workspace=workspace, status=status, model_name=model_name, dynamic_execution_status=dynamic_execution_status, usernames=usernames, limit=limit, offset=offset, order_by=order_by, order=order, authorization=authorization)
832+
api_response = api_instance.list_analyses(search_term=search_term, workspace=workspace, status=status, model_name=model_name, dynamic_execution_status=dynamic_execution_status, usernames=usernames, sha256_hash=sha256_hash, limit=limit, offset=offset, order_by=order_by, order=order, authorization=authorization)
832833
print("The response of AnalysesCoreApi->list_analyses:\n")
833834
pprint(api_response)
834835
except Exception as e:
@@ -848,6 +849,7 @@ Name | Type | Description | Notes
848849
**model_name** | [**List[ModelName]**](ModelName.md)| Show analysis belonging to the model | [optional]
849850
**dynamic_execution_status** | [**DynamicExecutionStatusInput**](.md)| Show analysis that have a dynamic execution with the given status | [optional]
850851
**usernames** | [**List[Optional[str]]**](str.md)| Show analysis belonging to the user | [optional] [default to []]
852+
**sha256_hash** | **str**| | [optional]
851853
**limit** | **int**| | [optional] [default to 20]
852854
**offset** | **int**| | [optional] [default to 0]
853855
**order_by** | [**AppApiRestV2AnalysesEnumsOrderBy**](.md)| | [optional]

docs/AnalysisRecord.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ Name | Type | Description | Notes
99
**analysis_scope** | **str** | Scope of the analysis |
1010
**binary_id** | **int** | ID to identify the binary analyse |
1111
**model_id** | **int** | ID to identify the model used for analysis |
12+
**model_name** | **str** | Name of the model used for analysis |
1213
**status** | **str** | The current status of analysis |
1314
**creation** | **datetime** | The current status of analysis |
1415
**is_owner** | **bool** | Whether the current user is the owner of a binary |
1516
**binary_name** | **str** | The name of the file uploaded |
1617
**sha_256_hash** | **str** | The hash of the binary |
18+
**function_boundaries_hash** | **str** | The hash of the function boundaries |
1719
**binary_size** | **int** | The size of the binary |
1820
**username** | **str** | The username of the analysis owner |
1921
**dynamic_execution_status** | [**AppApiRestV2AnalysesEnumsDynamicExecutionStatus**](AppApiRestV2AnalysesEnumsDynamicExecutionStatus.md) | | [optional]
2022
**dynamic_execution_task_id** | **int** | | [optional]
23+
**base_address** | **int** | The base address of the binary |
2124

2225
## Example
2326

docs/AutoUnstripByGroupResponse.md

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

docs/FunctionsAIDecompilationApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ Name | Type | Description | Notes
769769

770770
| Status code | Description | Response headers |
771771
|-------------|-------------|------------------|
772-
**200** | Successful Response | - |
772+
**201** | Successful Response | - |
773773
**422** | Invalid request parameters | - |
774774

775775
[[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)

docs/FunctionsCoreApi.md

Lines changed: 0 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Method | HTTP request | Description
1515
[**get_function_details**](FunctionsCoreApi.md#get_function_details) | **GET** /v2/functions/{function_id} | Get function details
1616
[**get_function_strings**](FunctionsCoreApi.md#get_function_strings) | **GET** /v2/functions/{function_id}/strings | Get string information found in the function
1717
[**get_similar_functions**](FunctionsCoreApi.md#get_similar_functions) | **GET** /v2/functions/{function_id}/similar-functions | Get list of similar functions
18-
[**unstrip**](FunctionsCoreApi.md#unstrip) | **POST** /v2/analyses/{analysis_id}/functions/unstrip | Performs matching and auto-unstrip for an analysis and its functions
1918

2019

2120
# **ai_unstrip**
@@ -946,88 +945,3 @@ Name | Type | Description | Notes
946945

947946
[[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)
948947

949-
# **unstrip**
950-
> AutoUnstripByGroupResponse unstrip(analysis_id, unstrip_request, authorization=authorization)
951-
952-
Performs matching and auto-unstrip for an analysis and its functions
953-
954-
Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system
955-
956-
### Example
957-
958-
* Api Key Authentication (APIKey):
959-
960-
```python
961-
import revengai
962-
from revengai.models.auto_unstrip_by_group_response import AutoUnstripByGroupResponse
963-
from revengai.models.unstrip_request import UnstripRequest
964-
from revengai.rest import ApiException
965-
from pprint import pprint
966-
967-
# Defining the host is optional and defaults to https://api.reveng.ai
968-
# See configuration.py for a list of all supported configuration parameters.
969-
configuration = revengai.Configuration(
970-
host = "https://api.reveng.ai"
971-
)
972-
973-
# The client must configure the authentication and authorization parameters
974-
# in accordance with the API server security policy.
975-
# Examples for each auth method are provided below, use the example that
976-
# satisfies your auth use case.
977-
978-
# Configure API key authorization: APIKey
979-
configuration.api_key['APIKey'] = os.environ["API_KEY"]
980-
981-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
982-
# configuration.api_key_prefix['APIKey'] = 'Bearer'
983-
984-
# Enter a context with an instance of the API client
985-
with revengai.ApiClient(configuration) as api_client:
986-
# Create an instance of the API class
987-
api_instance = revengai.FunctionsCoreApi(api_client)
988-
analysis_id = 56 # int |
989-
unstrip_request = revengai.UnstripRequest() # UnstripRequest |
990-
authorization = 'authorization_example' # str | API Key bearer token (optional)
991-
992-
try:
993-
# Performs matching and auto-unstrip for an analysis and its functions
994-
api_response = api_instance.unstrip(analysis_id, unstrip_request, authorization=authorization)
995-
print("The response of FunctionsCoreApi->unstrip:\n")
996-
pprint(api_response)
997-
except Exception as e:
998-
print("Exception when calling FunctionsCoreApi->unstrip: %s\n" % e)
999-
```
1000-
1001-
1002-
1003-
### Parameters
1004-
1005-
1006-
Name | Type | Description | Notes
1007-
------------- | ------------- | ------------- | -------------
1008-
**analysis_id** | **int**| |
1009-
**unstrip_request** | [**UnstripRequest**](UnstripRequest.md)| |
1010-
**authorization** | **str**| API Key bearer token | [optional]
1011-
1012-
### Return type
1013-
1014-
[**AutoUnstripByGroupResponse**](AutoUnstripByGroupResponse.md)
1015-
1016-
### Authorization
1017-
1018-
[APIKey](../README.md#APIKey)
1019-
1020-
### HTTP request headers
1021-
1022-
- **Content-Type**: application/json
1023-
- **Accept**: application/json
1024-
1025-
### HTTP response details
1026-
1027-
| Status code | Description | Response headers |
1028-
|-------------|-------------|------------------|
1029-
**200** | Successful Response | - |
1030-
**422** | Invalid request parameters | - |
1031-
1032-
[[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)
1033-

docs/GetAiDecompilationRatingResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**rating** | [**AiDecompilationRating**](AiDecompilationRating.md) | The rating the user has given to the AI decompilation response |
9+
**reason** | **str** | |
910

1011
## Example
1112

docs/MatchedFunctionGroup.md

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

0 commit comments

Comments
 (0)