Skip to content

Commit 24c8d01

Browse files
authored
Merge pull request #111 from RevEngAI/sdk-update-v3.34.0
🤖 Update SDK to version v3.34.0
2 parents b187e87 + 6f6fcd7 commit 24c8d01

17 files changed

Lines changed: 620 additions & 7 deletions

.sdk-version

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

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ Class | Method | HTTP request | Description
126126
*FunctionsCoreApi* | [**get_analysis_strings_status**](docs/FunctionsCoreApi.md#get_analysis_strings_status) | **GET** /v2/analyses/{analysis_id}/functions/strings/status | Get string processing state for the Analysis
127127
*FunctionsCoreApi* | [**get_function_blocks**](docs/FunctionsCoreApi.md#get_function_blocks) | **GET** /v2/functions/{function_id}/blocks | Get disassembly blocks related to the function
128128
*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
129+
*FunctionsCoreApi* | [**get_function_callees_callers_bulk**](docs/FunctionsCoreApi.md#get_function_callees_callers_bulk) | **GET** /v2/functions/callees_callers | Get list of functions that call or are called for a list of functions
129130
*FunctionsCoreApi* | [**get_function_capabilities**](docs/FunctionsCoreApi.md#get_function_capabilities) | **GET** /v2/functions/{function_id}/capabilities | Retrieve a functions capabilities
130131
*FunctionsCoreApi* | [**get_function_details**](docs/FunctionsCoreApi.md#get_function_details) | **GET** /v2/functions/{function_id} | Get function details
131132
*FunctionsCoreApi* | [**get_function_strings**](docs/FunctionsCoreApi.md#get_function_strings) | **GET** /v2/functions/{function_id}/strings | Get string information found in the function
@@ -237,6 +238,7 @@ Class | Method | HTTP request | Description
237238
- [BaseResponseGetAiDecompilationTask](docs/BaseResponseGetAiDecompilationTask.md)
238239
- [BaseResponseGetMeResponse](docs/BaseResponseGetMeResponse.md)
239240
- [BaseResponseGetPublicUserResponse](docs/BaseResponseGetPublicUserResponse.md)
241+
- [BaseResponseListCalleesCallerFunctionsResponse](docs/BaseResponseListCalleesCallerFunctionsResponse.md)
240242
- [BaseResponseListCollectionResults](docs/BaseResponseListCollectionResults.md)
241243
- [BaseResponseListCommentResponse](docs/BaseResponseListCommentResponse.md)
242244
- [BaseResponseListDieMatch](docs/BaseResponseListDieMatch.md)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# BaseResponseListCalleesCallerFunctionsResponse
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True]
9+
**data** | [**List[CalleesCallerFunctionsResponse]**](CalleesCallerFunctionsResponse.md) | | [optional]
10+
**message** | **str** | | [optional]
11+
**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional]
12+
**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional]
13+
14+
## Example
15+
16+
```python
17+
from revengai.models.base_response_list_callees_caller_functions_response import BaseResponseListCalleesCallerFunctionsResponse
18+
19+
# TODO update the JSON string below
20+
json = "{}"
21+
# create an instance of BaseResponseListCalleesCallerFunctionsResponse from a JSON string
22+
base_response_list_callees_caller_functions_response_instance = BaseResponseListCalleesCallerFunctionsResponse.from_json(json)
23+
# print the JSON string representation of the object
24+
print(BaseResponseListCalleesCallerFunctionsResponse.to_json())
25+
26+
# convert the object into a dict
27+
base_response_list_callees_caller_functions_response_dict = base_response_list_callees_caller_functions_response_instance.to_dict()
28+
# create an instance of BaseResponseListCalleesCallerFunctionsResponse from a dict
29+
base_response_list_callees_caller_functions_response_from_dict = BaseResponseListCalleesCallerFunctionsResponse.from_dict(base_response_list_callees_caller_functions_response_dict)
30+
```
31+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
32+
33+

docs/FunctionMatchingFilters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**binary_ids** | **List[int]** | ID's of binaries to limit the search to, if empty, search all scoped binaries | [optional] [default to []]
99
**collection_ids** | **List[int]** | ID's of collections to limit the search to, if empty, search all scoped collections | [optional] [default to []]
1010
**function_ids** | **List[int]** | ID's of functions to limit the search to, if empty, search all scoped functions | [optional] [default to []]
11+
**user_ids** | **List[int]** | ID's of users to limit the search to, if empty, search all scoped users | [optional] [default to []]
1112
**debug_types** | **List[str]** | Limit the search to specific debug types, if empty, search all scoped debug & non-debug functions | [optional] [default to []]
1213

1314
## Example

docs/FunctionsCoreApi.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Method | HTTP request | Description
1414
[**get_analysis_strings_status**](FunctionsCoreApi.md#get_analysis_strings_status) | **GET** /v2/analyses/{analysis_id}/functions/strings/status | Get string processing state for the Analysis
1515
[**get_function_blocks**](FunctionsCoreApi.md#get_function_blocks) | **GET** /v2/functions/{function_id}/blocks | Get disassembly blocks related to the function
1616
[**get_function_callees_callers**](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
17+
[**get_function_callees_callers_bulk**](FunctionsCoreApi.md#get_function_callees_callers_bulk) | **GET** /v2/functions/callees_callers | Get list of functions that call or are called for a list of functions
1718
[**get_function_capabilities**](FunctionsCoreApi.md#get_function_capabilities) | **GET** /v2/functions/{function_id}/capabilities | Retrieve a functions capabilities
1819
[**get_function_details**](FunctionsCoreApi.md#get_function_details) | **GET** /v2/functions/{function_id} | Get function details
1920
[**get_function_strings**](FunctionsCoreApi.md#get_function_strings) | **GET** /v2/functions/{function_id}/strings | Get string information found in the function
@@ -840,6 +841,84 @@ Name | Type | Description | Notes
840841

841842
[[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)
842843

844+
# **get_function_callees_callers_bulk**
845+
> BaseResponseListCalleesCallerFunctionsResponse get_function_callees_callers_bulk(function_ids)
846+
847+
Get list of functions that call or are called for a list of functions
848+
849+
### Example
850+
851+
* Api Key Authentication (APIKey):
852+
853+
```python
854+
import revengai
855+
from revengai.models.base_response_list_callees_caller_functions_response import BaseResponseListCalleesCallerFunctionsResponse
856+
from revengai.rest import ApiException
857+
from pprint import pprint
858+
859+
# Defining the host is optional and defaults to https://api.reveng.ai
860+
# See configuration.py for a list of all supported configuration parameters.
861+
configuration = revengai.Configuration(
862+
host = "https://api.reveng.ai"
863+
)
864+
865+
# The client must configure the authentication and authorization parameters
866+
# in accordance with the API server security policy.
867+
# Examples for each auth method are provided below, use the example that
868+
# satisfies your auth use case.
869+
870+
# Configure API key authorization: APIKey
871+
configuration.api_key['APIKey'] = os.environ["API_KEY"]
872+
873+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
874+
# configuration.api_key_prefix['APIKey'] = 'Bearer'
875+
876+
# Enter a context with an instance of the API client
877+
with revengai.ApiClient(configuration) as api_client:
878+
# Create an instance of the API class
879+
api_instance = revengai.FunctionsCoreApi(api_client)
880+
function_ids = [56] # List[Optional[int]] |
881+
882+
try:
883+
# Get list of functions that call or are called for a list of functions
884+
api_response = api_instance.get_function_callees_callers_bulk(function_ids)
885+
print("The response of FunctionsCoreApi->get_function_callees_callers_bulk:\n")
886+
pprint(api_response)
887+
except Exception as e:
888+
print("Exception when calling FunctionsCoreApi->get_function_callees_callers_bulk: %s\n" % e)
889+
```
890+
891+
892+
893+
### Parameters
894+
895+
896+
Name | Type | Description | Notes
897+
------------- | ------------- | ------------- | -------------
898+
**function_ids** | [**List[Optional[int]]**](int.md)| |
899+
900+
### Return type
901+
902+
[**BaseResponseListCalleesCallerFunctionsResponse**](BaseResponseListCalleesCallerFunctionsResponse.md)
903+
904+
### Authorization
905+
906+
[APIKey](../README.md#APIKey)
907+
908+
### HTTP request headers
909+
910+
- **Content-Type**: Not defined
911+
- **Accept**: application/json
912+
913+
### HTTP response details
914+
915+
| Status code | Description | Response headers |
916+
|-------------|-------------|------------------|
917+
**200** | Successful Response | - |
918+
**422** | Invalid request parameters | - |
919+
920+
[[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)
921+
843922
# **get_function_capabilities**
844923
> BaseResponseFunctionCapabilityResponse get_function_capabilities(function_id)
845924

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.32.0"
16+
__version__ = "v3.34.0"
1717

1818
# Define package exports
1919
__all__ = [
@@ -130,6 +130,7 @@
130130
"BaseResponseGetAiDecompilationTask",
131131
"BaseResponseGetMeResponse",
132132
"BaseResponseGetPublicUserResponse",
133+
"BaseResponseListCalleesCallerFunctionsResponse",
133134
"BaseResponseListCollectionResults",
134135
"BaseResponseListCommentResponse",
135136
"BaseResponseListDieMatch",
@@ -465,6 +466,7 @@
465466
from revengai.models.base_response_get_ai_decompilation_task import BaseResponseGetAiDecompilationTask as BaseResponseGetAiDecompilationTask
466467
from revengai.models.base_response_get_me_response import BaseResponseGetMeResponse as BaseResponseGetMeResponse
467468
from revengai.models.base_response_get_public_user_response import BaseResponseGetPublicUserResponse as BaseResponseGetPublicUserResponse
469+
from revengai.models.base_response_list_callees_caller_functions_response import BaseResponseListCalleesCallerFunctionsResponse as BaseResponseListCalleesCallerFunctionsResponse
468470
from revengai.models.base_response_list_collection_results import BaseResponseListCollectionResults as BaseResponseListCollectionResults
469471
from revengai.models.base_response_list_comment_response import BaseResponseListCommentResponse as BaseResponseListCommentResponse
470472
from revengai.models.base_response_list_die_match import BaseResponseListDieMatch as BaseResponseListDieMatch

0 commit comments

Comments
 (0)