Skip to content

Commit d64e8af

Browse files
Update SDK to version v1.72.0
- Generated from OpenAPI spec version v1.72.0 - Auto-generated by GitHub Actions
1 parent 0821c2e commit d64e8af

1,098 files changed

Lines changed: 4902 additions & 35537 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ Class | Method | HTTP request | Description
5959
*AnalysesCoreApi* | [**requeue_analysis**](docs/AnalysesCoreApi.md#requeue_analysis) | **POST** /v2/analyses/{analysis_id}/requeue | Requeue Analysis
6060
*AnalysesCoreApi* | [**update_analysis**](docs/AnalysesCoreApi.md#update_analysis) | **PATCH** /v2/analyses/{analysis_id} | Update Analysis
6161
*AnalysesCoreApi* | [**update_analysis_tags**](docs/AnalysesCoreApi.md#update_analysis_tags) | **PATCH** /v2/analyses/{analysis_id}/tags | Update Analysis Tags
62+
*AnalysesCoreApi* | [**upload_file**](docs/AnalysesCoreApi.md#upload_file) | **POST** /v2/upload | Upload File
6263
*AnalysesDynamicExecutionApi* | [**get_dynamic_execution_status**](docs/AnalysesDynamicExecutionApi.md#get_dynamic_execution_status) | **GET** /v2/analyses/{analysis_id}/dynamic-execution/status | Get the status of a dynamic execution task
6364
*AnalysesDynamicExecutionApi* | [**get_network_overview**](docs/AnalysesDynamicExecutionApi.md#get_network_overview) | **GET** /v2/analyses/{analysis_id}/dynamic-execution/network-overview | Get the dynamic execution results for network overview
6465
*AnalysesDynamicExecutionApi* | [**get_process_dump**](docs/AnalysesDynamicExecutionApi.md#get_process_dump) | **GET** /v2/analyses/{analysis_id}/dynamic-execution/process-dumps/{dump_name} | Get the dynamic execution results for a specific process dump
@@ -119,13 +120,18 @@ Class | Method | HTTP request | Description
119120
*FunctionsBlockCommentsApi* | [**generate_block_comments_for_block_in_function**](docs/FunctionsBlockCommentsApi.md#generate_block_comments_for_block_in_function) | **POST** /v2/functions/{function_id}/block-comments/single | Generate block comments for a specific block in a function
120121
*FunctionsBlockCommentsApi* | [**generate_block_comments_for_function**](docs/FunctionsBlockCommentsApi.md#generate_block_comments_for_function) | **POST** /v2/functions/{function_id}/block-comments | Generate block comments for a function
121122
*FunctionsBlockCommentsApi* | [**generate_overview_comment_for_function**](docs/FunctionsBlockCommentsApi.md#generate_overview_comment_for_function) | **POST** /v2/functions/{function_id}/block-comments/overview | Generate overview comment for a function
123+
*FunctionsCoreApi* | [**ai_unstrip**](docs/FunctionsCoreApi.md#ai_unstrip) | **POST** /v2/analyses/{analysis_id}/functions/ai-unstrip | Performs matching and auto-unstrip for an analysis and its functions
124+
*FunctionsCoreApi* | [**auto_unstrip**](docs/FunctionsCoreApi.md#auto_unstrip) | **POST** /v2/analyses/{analysis_id}/functions/auto-unstrip | Performs matching and auto-unstrip for an analysis and its functions
125+
*FunctionsCoreApi* | [**cancel_ai_unstrip**](docs/FunctionsCoreApi.md#cancel_ai_unstrip) | **DELETE** /v2/analyses/{analysis_id}/functions/ai-unstrip/cancel | Cancels a running ai-unstrip
126+
*FunctionsCoreApi* | [**cancel_auto_unstrip**](docs/FunctionsCoreApi.md#cancel_auto_unstrip) | **DELETE** /v2/analyses/{analysis_id}/functions/unstrip/cancel | Cancels a running auto-unstrip
122127
*FunctionsCoreApi* | [**get_analysis_strings**](docs/FunctionsCoreApi.md#get_analysis_strings) | **GET** /v2/analyses/{analysis_id}/functions/strings | Get string information found in the Analysis
123128
*FunctionsCoreApi* | [**get_function_blocks**](docs/FunctionsCoreApi.md#get_function_blocks) | **GET** /v2/functions/{function_id}/blocks | Get disassembly blocks related to the function
124129
*FunctionsCoreApi* | [**get_function_callees_callers**](docs/FunctionsCoreApi.md#get_function_callees_callers) | **GET** /v2/functions/{function_id}/callees_callers | Get list of functions that call or are called by the specified function
125130
*FunctionsCoreApi* | [**get_function_capabilities**](docs/FunctionsCoreApi.md#get_function_capabilities) | **GET** /v2/functions/{function_id}/capabilities | Retrieve a functions capabilities
126131
*FunctionsCoreApi* | [**get_function_details**](docs/FunctionsCoreApi.md#get_function_details) | **GET** /v2/functions/{function_id} | Get function details
127132
*FunctionsCoreApi* | [**get_function_strings**](docs/FunctionsCoreApi.md#get_function_strings) | **GET** /v2/functions/{function_id}/strings | Get string information found in the function
128133
*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
129135
*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
130136
*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
131137
*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
@@ -157,6 +163,7 @@ Class | Method | HTTP request | Description
157163
- [ANNFunction](docs/ANNFunction.md)
158164
- [Addr](docs/Addr.md)
159165
- [AiDecompilationRating](docs/AiDecompilationRating.md)
166+
- [AiUnstripRequest](docs/AiUnstripRequest.md)
160167
- [AnalysisAccessInfo](docs/AnalysisAccessInfo.md)
161168
- [AnalysisConfig](docs/AnalysisConfig.md)
162169
- [AnalysisCreateRequest](docs/AnalysisCreateRequest.md)
@@ -166,28 +173,29 @@ Class | Method | HTTP request | Description
166173
- [AnalysisRecord](docs/AnalysisRecord.md)
167174
- [AnalysisScope](docs/AnalysisScope.md)
168175
- [AnalysisStringsResponse](docs/AnalysisStringsResponse.md)
176+
- [AnalysisTags](docs/AnalysisTags.md)
169177
- [AnalysisThreatScoreData](docs/AnalysisThreatScoreData.md)
170178
- [AnalysisUpdateRequest](docs/AnalysisUpdateRequest.md)
171179
- [AnalysisUpdateTagsRequest](docs/AnalysisUpdateTagsRequest.md)
172180
- [AnalysisUpdateTagsResponse](docs/AnalysisUpdateTagsResponse.md)
173181
- [AppApiRestV2AnalysesEnumsDynamicExecutionStatus](docs/AppApiRestV2AnalysesEnumsDynamicExecutionStatus.md)
174182
- [AppApiRestV2AnalysesEnumsOrderBy](docs/AppApiRestV2AnalysesEnumsOrderBy.md)
175-
- [AppApiRestV2AnalysesResponsesAnalysisTags](docs/AppApiRestV2AnalysesResponsesAnalysisTags.md)
176183
- [AppApiRestV2AnalysesResponsesTagItem](docs/AppApiRestV2AnalysesResponsesTagItem.md)
177184
- [AppApiRestV2CollectionsEnumsOrderBy](docs/AppApiRestV2CollectionsEnumsOrderBy.md)
178185
- [AppApiRestV2FunctionsResponsesFunction](docs/AppApiRestV2FunctionsResponsesFunction.md)
179186
- [AppApiRestV2FunctionsTypesFunction](docs/AppApiRestV2FunctionsTypesFunction.md)
180-
- [AppApiRestV2InfoResponsesAnalysisTags](docs/AppApiRestV2InfoResponsesAnalysisTags.md)
181-
- [AppCoreResponsesBaseBaseResponseAnalysisTags1](docs/AppCoreResponsesBaseBaseResponseAnalysisTags1.md)
182-
- [AppCoreResponsesBaseBaseResponseAnalysisTags2](docs/AppCoreResponsesBaseBaseResponseAnalysisTags2.md)
183187
- [AppServicesBinaryAnnSchemaTagItem](docs/AppServicesBinaryAnnSchemaTagItem.md)
184188
- [AppServicesDynamicExecutionSchemasDynamicExecutionStatus](docs/AppServicesDynamicExecutionSchemasDynamicExecutionStatus.md)
185189
- [Argument](docs/Argument.md)
190+
- [AutoUnstripByGroupResponse](docs/AutoUnstripByGroupResponse.md)
191+
- [AutoUnstripRequest](docs/AutoUnstripRequest.md)
192+
- [AutoUnstripResponse](docs/AutoUnstripResponse.md)
186193
- [BaseResponse](docs/BaseResponse.md)
187194
- [BaseResponseAnalysisCreateResponse](docs/BaseResponseAnalysisCreateResponse.md)
188195
- [BaseResponseAnalysisDetailResponse](docs/BaseResponseAnalysisDetailResponse.md)
189196
- [BaseResponseAnalysisFunctions](docs/BaseResponseAnalysisFunctions.md)
190197
- [BaseResponseAnalysisStringsResponse](docs/BaseResponseAnalysisStringsResponse.md)
198+
- [BaseResponseAnalysisTags](docs/BaseResponseAnalysisTags.md)
191199
- [BaseResponseAnalysisThreatScoreData](docs/BaseResponseAnalysisThreatScoreData.md)
192200
- [BaseResponseAnalysisUpdateTagsResponse](docs/BaseResponseAnalysisUpdateTagsResponse.md)
193201
- [BaseResponseBasic](docs/BaseResponseBasic.md)
@@ -258,6 +266,7 @@ Class | Method | HTTP request | Description
258266
- [BaseResponseTTPS](docs/BaseResponseTTPS.md)
259267
- [BaseResponseTagSearchResponse](docs/BaseResponseTagSearchResponse.md)
260268
- [BaseResponseTaskResponse](docs/BaseResponseTaskResponse.md)
269+
- [BaseResponseUploadResponse](docs/BaseResponseUploadResponse.md)
261270
- [BaseResponseVulnerabilities](docs/BaseResponseVulnerabilities.md)
262271
- [Basic](docs/Basic.md)
263272
- [BinaryAdditionalDetailsDataResponse](docs/BinaryAdditionalDetailsDataResponse.md)
@@ -378,6 +387,8 @@ Class | Method | HTTP request | Description
378387
- [LoginRequest](docs/LoginRequest.md)
379388
- [LoginResponse](docs/LoginResponse.md)
380389
- [Logs](docs/Logs.md)
390+
- [MatchedFunctionGroup](docs/MatchedFunctionGroup.md)
391+
- [MatchedFunctionSuggestion](docs/MatchedFunctionSuggestion.md)
381392
- [MetaModel](docs/MetaModel.md)
382393
- [ModelName](docs/ModelName.md)
383394
- [ModelsResponse](docs/ModelsResponse.md)
@@ -434,10 +445,9 @@ Class | Method | HTTP request | Description
434445
- [TTPSData](docs/TTPSData.md)
435446
- [TTPSElement](docs/TTPSElement.md)
436447
- [TTPSOccurance](docs/TTPSOccurance.md)
448+
- [Tag](docs/Tag.md)
437449
- [TagConfidenceBody](docs/TagConfidenceBody.md)
438-
- [TagInput](docs/TagInput.md)
439450
- [TagOriginBoxPlotConfidence](docs/TagOriginBoxPlotConfidence.md)
440-
- [TagOutput](docs/TagOutput.md)
441451
- [TagResponse](docs/TagResponse.md)
442452
- [TagSearchResponse](docs/TagSearchResponse.md)
443453
- [TagSearchResult](docs/TagSearchResult.md)
@@ -447,7 +457,10 @@ Class | Method | HTTP request | Description
447457
- [ThreatScoreFunctionBody](docs/ThreatScoreFunctionBody.md)
448458
- [TimestampModel](docs/TimestampModel.md)
449459
- [TypeDefinition](docs/TypeDefinition.md)
460+
- [UnstripRequest](docs/UnstripRequest.md)
450461
- [UpdateFunctionDataTypes](docs/UpdateFunctionDataTypes.md)
462+
- [UploadFileType](docs/UploadFileType.md)
463+
- [UploadResponse](docs/UploadResponse.md)
451464
- [UpsertAiDecomplationRatingRequest](docs/UpsertAiDecomplationRatingRequest.md)
452465
- [UserActivityResponse](docs/UserActivityResponse.md)
453466
- [Vulnerabilities](docs/Vulnerabilities.md)

docs/ANNFunction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**limit** | **int** | The amount of neighbours per function ID | [optional] [default to 5]
99
**distance** | **float** | The distance between two neighbours | [optional] [default to 0.1]
10-
**analysis_search_ids** | **List[Optional[int]]** | Perform a search on functions within a list of analyses | [optional] [default to []]
11-
**collection_search_ids** | **List[Optional[int]]** | Search only within these collections | [optional] [default to []]
10+
**analysis_search_ids** | **List[int]** | Perform a search on functions within a list of analyses | [optional] [default to []]
11+
**collection_search_ids** | **List[int]** | Search only within these collections | [optional] [default to []]
1212
**search_binary_ids** | [**SearchBinaryIds**](SearchBinaryIds.md) | | [optional]
1313
**search_function_ids** | [**SearchFunctionIds**](SearchFunctionIds.md) | | [optional]
1414
**debug_only** | **bool** | Searches for only functions which are debug | [optional] [default to False]

docs/AiUnstripRequest.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# AiUnstripRequest
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**apply** | **bool** | Whether to apply the suggested function names to the target functions, default is False | [optional] [default to False]
9+
10+
## Example
11+
12+
```python
13+
from revengai.models.ai_unstrip_request import AiUnstripRequest
14+
15+
# TODO update the JSON string below
16+
json = "{}"
17+
# create an instance of AiUnstripRequest from a JSON string
18+
ai_unstrip_request_instance = AiUnstripRequest.from_json(json)
19+
# print the JSON string representation of the object
20+
print(AiUnstripRequest.to_json())
21+
22+
# convert the object into a dict
23+
ai_unstrip_request_dict = ai_unstrip_request_instance.to_dict()
24+
# create an instance of AiUnstripRequest from a dict
25+
ai_unstrip_request_from_dict = AiUnstripRequest.from_dict(ai_unstrip_request_dict)
26+
```
27+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
28+
29+

docs/AnalysesCoreApi.md

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Method | HTTP request | Description
1818
[**requeue_analysis**](AnalysesCoreApi.md#requeue_analysis) | **POST** /v2/analyses/{analysis_id}/requeue | Requeue Analysis
1919
[**update_analysis**](AnalysesCoreApi.md#update_analysis) | **PATCH** /v2/analyses/{analysis_id} | Update Analysis
2020
[**update_analysis_tags**](AnalysesCoreApi.md#update_analysis_tags) | **PATCH** /v2/analyses/{analysis_id}/tags | Update Analysis Tags
21+
[**upload_file**](AnalysesCoreApi.md#upload_file) | **POST** /v2/upload | Upload File
2122

2223

2324
# **create_analysis**
@@ -1215,3 +1216,90 @@ Name | Type | Description | Notes
12151216

12161217
[[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)
12171218

1219+
# **upload_file**
1220+
> BaseResponseUploadResponse upload_file(upload_file_type, file, packed_password=packed_password, authorization=authorization, force_overwrite=force_overwrite)
1221+
1222+
Upload File
1223+
1224+
### Example
1225+
1226+
* Api Key Authentication (APIKey):
1227+
1228+
```python
1229+
import revengai
1230+
from revengai.models.base_response_upload_response import BaseResponseUploadResponse
1231+
from revengai.models.upload_file_type import UploadFileType
1232+
from revengai.rest import ApiException
1233+
from pprint import pprint
1234+
1235+
# Defining the host is optional and defaults to https://api.reveng.ai
1236+
# See configuration.py for a list of all supported configuration parameters.
1237+
configuration = revengai.Configuration(
1238+
host = "https://api.reveng.ai"
1239+
)
1240+
1241+
# The client must configure the authentication and authorization parameters
1242+
# in accordance with the API server security policy.
1243+
# Examples for each auth method are provided below, use the example that
1244+
# satisfies your auth use case.
1245+
1246+
# Configure API key authorization: APIKey
1247+
configuration.api_key['APIKey'] = os.environ["API_KEY"]
1248+
1249+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
1250+
# configuration.api_key_prefix['APIKey'] = 'Bearer'
1251+
1252+
# Enter a context with an instance of the API client
1253+
with revengai.ApiClient(configuration) as api_client:
1254+
# Create an instance of the API class
1255+
api_instance = revengai.AnalysesCoreApi(api_client)
1256+
upload_file_type = revengai.UploadFileType() # UploadFileType |
1257+
file = None # bytearray |
1258+
packed_password = 'packed_password_example' # str | (optional)
1259+
authorization = 'authorization_example' # str | API Key bearer token (optional)
1260+
force_overwrite = False # bool | (optional) (default to False)
1261+
1262+
try:
1263+
# Upload File
1264+
api_response = api_instance.upload_file(upload_file_type, file, packed_password=packed_password, authorization=authorization, force_overwrite=force_overwrite)
1265+
print("The response of AnalysesCoreApi->upload_file:\n")
1266+
pprint(api_response)
1267+
except Exception as e:
1268+
print("Exception when calling AnalysesCoreApi->upload_file: %s\n" % e)
1269+
```
1270+
1271+
1272+
1273+
### Parameters
1274+
1275+
1276+
Name | Type | Description | Notes
1277+
------------- | ------------- | ------------- | -------------
1278+
**upload_file_type** | [**UploadFileType**](UploadFileType.md)| |
1279+
**file** | **bytearray**| |
1280+
**packed_password** | **str**| | [optional]
1281+
**authorization** | **str**| API Key bearer token | [optional]
1282+
**force_overwrite** | **bool**| | [optional] [default to False]
1283+
1284+
### Return type
1285+
1286+
[**BaseResponseUploadResponse**](BaseResponseUploadResponse.md)
1287+
1288+
### Authorization
1289+
1290+
[APIKey](../README.md#APIKey)
1291+
1292+
### HTTP request headers
1293+
1294+
- **Content-Type**: multipart/form-data
1295+
- **Accept**: application/json
1296+
1297+
### HTTP response details
1298+
1299+
| Status code | Description | Response headers |
1300+
|-------------|-------------|------------------|
1301+
**200** | Successful Response | - |
1302+
**422** | Invalid request parameters | - |
1303+
1304+
[[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)
1305+

docs/AnalysesResultsMetadataApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ Name | Type | Description | Notes
424424
[[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)
425425

426426
# **get_tags**
427-
> AppCoreResponsesBaseBaseResponseAnalysisTags2 get_tags(analysis_id, authorization=authorization)
427+
> BaseResponseAnalysisTags get_tags(analysis_id, authorization=authorization)
428428
429429
Get function tags with maliciousness score
430430

@@ -434,7 +434,7 @@ Get function tags with maliciousness score
434434

435435
```python
436436
import revengai
437-
from revengai.models.app_core_responses_base_base_response_analysis_tags2 import AppCoreResponsesBaseBaseResponseAnalysisTags2
437+
from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags
438438
from revengai.rest import ApiException
439439
from pprint import pprint
440440

@@ -483,7 +483,7 @@ Name | Type | Description | Notes
483483

484484
### Return type
485485

486-
[**AppCoreResponsesBaseBaseResponseAnalysisTags2**](AppCoreResponsesBaseBaseResponseAnalysisTags2.md)
486+
[**BaseResponseAnalysisTags**](BaseResponseAnalysisTags.md)
487487

488488
### Authorization
489489

docs/AnalysisCreateRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**filename** | **str** | The name of the file |
99
**sha_256_hash** | **str** | The name of the file |
10-
**tags** | [**List[TagInput]**](TagInput.md) | List of community tags to assign to an analysis | [optional] [default to []]
10+
**tags** | [**List[Tag]**](Tag.md) | List of community tags to assign to an analysis | [optional] [default to []]
1111
**analysis_scope** | [**AnalysisScope**](AnalysisScope.md) | The scope of the analysis determines who can access it | [optional]
1212
**symbols** | [**Symbols**](Symbols.md) | | [optional]
1313
**debug_hash** | **str** | | [optional]

docs/AnalysisTags.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# AnalysisTags
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**analysis_tags** | [**List[AppApiRestV2AnalysesResponsesTagItem]**](AppApiRestV2AnalysesResponsesTagItem.md) | |
9+
**suggested_tags** | [**List[AppApiRestV2AnalysesResponsesTagItem]**](AppApiRestV2AnalysesResponsesTagItem.md) | |
10+
11+
## Example
12+
13+
```python
14+
from revengai.models.analysis_tags import AnalysisTags
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of AnalysisTags from a JSON string
19+
analysis_tags_instance = AnalysisTags.from_json(json)
20+
# print the JSON string representation of the object
21+
print(AnalysisTags.to_json())
22+
23+
# convert the object into a dict
24+
analysis_tags_dict = analysis_tags_instance.to_dict()
25+
# create an instance of AnalysisTags from a dict
26+
analysis_tags_from_dict = AnalysisTags.from_dict(analysis_tags_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

0 commit comments

Comments
 (0)