Skip to content

Commit cc2bcab

Browse files
authored
Merge pull request #88 from RevEngAI/sdk-update-v2.90.1
🤖 Update SDK to version v2.90.1
2 parents d12e4ad + c02f6bd commit cc2bcab

24 files changed

Lines changed: 1050 additions & 6 deletions

.sdk-version

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

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ Class | Method | HTTP request | Description
9696
*CollectionsApi* | [**update_collection**](docs/CollectionsApi.md#update_collection) | **PATCH** /v2/collections/{collection_id} | Updates a collection
9797
*CollectionsApi* | [**update_collection_binaries**](docs/CollectionsApi.md#update_collection_binaries) | **PATCH** /v2/collections/{collection_id}/binaries | Updates a collection binaries
9898
*CollectionsApi* | [**update_collection_tags**](docs/CollectionsApi.md#update_collection_tags) | **PATCH** /v2/collections/{collection_id}/tags | Updates a collection tags
99+
*ConfigApi* | [**get_config**](docs/ConfigApi.md#get_config) | **GET** /v2/config | Get Config
99100
*ExternalSourcesApi* | [**create_external_task_vt**](docs/ExternalSourcesApi.md#create_external_task_vt) | **POST** /v2/analysis/{analysis_id}/external/vt | Pulls data from VirusTotal
100101
*ExternalSourcesApi* | [**get_vt_data**](docs/ExternalSourcesApi.md#get_vt_data) | **GET** /v2/analysis/{analysis_id}/external/vt | Get VirusTotal data
101102
*ExternalSourcesApi* | [**get_vt_task_status**](docs/ExternalSourcesApi.md#get_vt_task_status) | **GET** /v2/analysis/{analysis_id}/external/vt/status | Check the status of VirusTotal data retrieval
@@ -209,6 +210,7 @@ Class | Method | HTTP request | Description
209210
- [BaseResponseCollectionTagsUpdateResponse](docs/BaseResponseCollectionTagsUpdateResponse.md)
210211
- [BaseResponseCommentResponse](docs/BaseResponseCommentResponse.md)
211212
- [BaseResponseCommunities](docs/BaseResponseCommunities.md)
213+
- [BaseResponseConfigResponse](docs/BaseResponseConfigResponse.md)
212214
- [BaseResponseCreated](docs/BaseResponseCreated.md)
213215
- [BaseResponseDict](docs/BaseResponseDict.md)
214216
- [BaseResponseDynamicExecutionStatus](docs/BaseResponseDynamicExecutionStatus.md)
@@ -291,6 +293,7 @@ Class | Method | HTTP request | Description
291293
- [Communities](docs/Communities.md)
292294
- [CommunityMatchPercentages](docs/CommunityMatchPercentages.md)
293295
- [ConfidenceType](docs/ConfidenceType.md)
296+
- [ConfigResponse](docs/ConfigResponse.md)
294297
- [Context](docs/Context.md)
295298
- [Created](docs/Created.md)
296299
- [DecompilationCommentContext](docs/DecompilationCommentContext.md)
@@ -374,6 +377,7 @@ Class | Method | HTTP request | Description
374377
- [ModelName](docs/ModelName.md)
375378
- [ModelsResponse](docs/ModelsResponse.md)
376379
- [NameConfidence](docs/NameConfidence.md)
380+
- [NameSourceType](docs/NameSourceType.md)
377381
- [NetworkOverviewDns](docs/NetworkOverviewDns.md)
378382
- [NetworkOverviewDnsAnswer](docs/NetworkOverviewDnsAnswer.md)
379383
- [NetworkOverviewMetadata](docs/NetworkOverviewMetadata.md)

docs/BaseResponseConfigResponse.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# BaseResponseConfigResponse
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** | [**ConfigResponse**](ConfigResponse.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_config_response import BaseResponseConfigResponse
18+
19+
# TODO update the JSON string below
20+
json = "{}"
21+
# create an instance of BaseResponseConfigResponse from a JSON string
22+
base_response_config_response_instance = BaseResponseConfigResponse.from_json(json)
23+
# print the JSON string representation of the object
24+
print(BaseResponseConfigResponse.to_json())
25+
26+
# convert the object into a dict
27+
base_response_config_response_dict = base_response_config_response_instance.to_dict()
28+
# create an instance of BaseResponseConfigResponse from a dict
29+
base_response_config_response_from_dict = BaseResponseConfigResponse.from_dict(base_response_config_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/ConfigApi.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# revengai.ConfigApi
2+
3+
All URIs are relative to *https://api.reveng.ai*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**get_config**](ConfigApi.md#get_config) | **GET** /v2/config | Get Config
8+
9+
10+
# **get_config**
11+
> BaseResponseConfigResponse get_config()
12+
13+
Get Config
14+
15+
General configuration endpoint
16+
17+
### Example
18+
19+
* Api Key Authentication (APIKey):
20+
21+
```python
22+
import revengai
23+
from revengai.models.base_response_config_response import BaseResponseConfigResponse
24+
from revengai.rest import ApiException
25+
from pprint import pprint
26+
27+
# Defining the host is optional and defaults to https://api.reveng.ai
28+
# See configuration.py for a list of all supported configuration parameters.
29+
configuration = revengai.Configuration(
30+
host = "https://api.reveng.ai"
31+
)
32+
33+
# The client must configure the authentication and authorization parameters
34+
# in accordance with the API server security policy.
35+
# Examples for each auth method are provided below, use the example that
36+
# satisfies your auth use case.
37+
38+
# Configure API key authorization: APIKey
39+
configuration.api_key['APIKey'] = os.environ["API_KEY"]
40+
41+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
42+
# configuration.api_key_prefix['APIKey'] = 'Bearer'
43+
44+
# Enter a context with an instance of the API client
45+
with revengai.ApiClient(configuration) as api_client:
46+
# Create an instance of the API class
47+
api_instance = revengai.ConfigApi(api_client)
48+
49+
try:
50+
# Get Config
51+
api_response = api_instance.get_config()
52+
print("The response of ConfigApi->get_config:\n")
53+
pprint(api_response)
54+
except Exception as e:
55+
print("Exception when calling ConfigApi->get_config: %s\n" % e)
56+
```
57+
58+
59+
60+
### Parameters
61+
62+
This endpoint does not need any parameter.
63+
64+
### Return type
65+
66+
[**BaseResponseConfigResponse**](BaseResponseConfigResponse.md)
67+
68+
### Authorization
69+
70+
[APIKey](../README.md#APIKey)
71+
72+
### HTTP request headers
73+
74+
- **Content-Type**: Not defined
75+
- **Accept**: application/json
76+
77+
### HTTP response details
78+
79+
| Status code | Description | Response headers |
80+
|-------------|-------------|------------------|
81+
**200** | Successful Response | - |
82+
**422** | Invalid request parameters | - |
83+
84+
[[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)
85+

docs/ConfigResponse.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# ConfigResponse
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**dashboard_url** | **str** | The domain of the RevEng.AI platform you are connected to | [optional] [default to '']
9+
**max_file_size_bytes** | **int** | Maximum file size (in bytes) that can be uploaded for analysis |
10+
**ai_decompiler_unsupported_languages** | **List[str]** | List of programming languages that are not supported for AI decompilation |
11+
12+
## Example
13+
14+
```python
15+
from revengai.models.config_response import ConfigResponse
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of ConfigResponse from a JSON string
20+
config_response_instance = ConfigResponse.from_json(json)
21+
# print the JSON string representation of the object
22+
print(ConfigResponse.to_json())
23+
24+
# convert the object into a dict
25+
config_response_dict = config_response_instance.to_dict()
26+
# create an instance of ConfigResponse from a dict
27+
config_response_from_dict = ConfigResponse.from_dict(config_response_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+

docs/FunctionListItem.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**id** | **int** | Function id |
99
**name** | **str** | Name of the function |
1010
**name_source_type** | **str** | The source (process) the function name came from |
11+
**name_source** | [**NameSourceType**](NameSourceType.md) | The source of the current function name. |
1112
**mangled_name** | **str** | Mangled name of the function |
1213
**vaddr** | **int** | Function virtual address |
1314
**size** | **int** | Function size in bytes |

docs/NameSourceType.md

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

revengai/__init__.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
""" # noqa: E501
1414

1515

16-
__version__ = "v2.88.6"
16+
__version__ = "v2.90.1"
1717

1818
# Define package exports
1919
__all__ = [
@@ -25,6 +25,7 @@
2525
"AuthenticationUsersApi",
2626
"BinariesApi",
2727
"CollectionsApi",
28+
"ConfigApi",
2829
"ExternalSourcesApi",
2930
"FirmwareApi",
3031
"FunctionsAIDecompilationApi",
@@ -104,6 +105,7 @@
104105
"BaseResponseCollectionTagsUpdateResponse",
105106
"BaseResponseCommentResponse",
106107
"BaseResponseCommunities",
108+
"BaseResponseConfigResponse",
107109
"BaseResponseCreated",
108110
"BaseResponseDict",
109111
"BaseResponseDynamicExecutionStatus",
@@ -186,6 +188,7 @@
186188
"Communities",
187189
"CommunityMatchPercentages",
188190
"ConfidenceType",
191+
"ConfigResponse",
189192
"Context",
190193
"Created",
191194
"DecompilationCommentContext",
@@ -269,6 +272,7 @@
269272
"ModelName",
270273
"ModelsResponse",
271274
"NameConfidence",
275+
"NameSourceType",
272276
"NetworkOverviewDns",
273277
"NetworkOverviewDnsAnswer",
274278
"NetworkOverviewMetadata",
@@ -345,6 +349,7 @@
345349
from revengai.api.authentication_users_api import AuthenticationUsersApi as AuthenticationUsersApi
346350
from revengai.api.binaries_api import BinariesApi as BinariesApi
347351
from revengai.api.collections_api import CollectionsApi as CollectionsApi
352+
from revengai.api.config_api import ConfigApi as ConfigApi
348353
from revengai.api.external_sources_api import ExternalSourcesApi as ExternalSourcesApi
349354
from revengai.api.firmware_api import FirmwareApi as FirmwareApi
350355
from revengai.api.functions_ai_decompilation_api import FunctionsAIDecompilationApi as FunctionsAIDecompilationApi
@@ -428,6 +433,7 @@
428433
from revengai.models.base_response_collection_tags_update_response import BaseResponseCollectionTagsUpdateResponse as BaseResponseCollectionTagsUpdateResponse
429434
from revengai.models.base_response_comment_response import BaseResponseCommentResponse as BaseResponseCommentResponse
430435
from revengai.models.base_response_communities import BaseResponseCommunities as BaseResponseCommunities
436+
from revengai.models.base_response_config_response import BaseResponseConfigResponse as BaseResponseConfigResponse
431437
from revengai.models.base_response_created import BaseResponseCreated as BaseResponseCreated
432438
from revengai.models.base_response_dict import BaseResponseDict as BaseResponseDict
433439
from revengai.models.base_response_dynamic_execution_status import BaseResponseDynamicExecutionStatus as BaseResponseDynamicExecutionStatus
@@ -510,6 +516,7 @@
510516
from revengai.models.communities import Communities as Communities
511517
from revengai.models.community_match_percentages import CommunityMatchPercentages as CommunityMatchPercentages
512518
from revengai.models.confidence_type import ConfidenceType as ConfidenceType
519+
from revengai.models.config_response import ConfigResponse as ConfigResponse
513520
from revengai.models.context import Context as Context
514521
from revengai.models.created import Created as Created
515522
from revengai.models.decompilation_comment_context import DecompilationCommentContext as DecompilationCommentContext
@@ -593,6 +600,7 @@
593600
from revengai.models.model_name import ModelName as ModelName
594601
from revengai.models.models_response import ModelsResponse as ModelsResponse
595602
from revengai.models.name_confidence import NameConfidence as NameConfidence
603+
from revengai.models.name_source_type import NameSourceType as NameSourceType
596604
from revengai.models.network_overview_dns import NetworkOverviewDns as NetworkOverviewDns
597605
from revengai.models.network_overview_dns_answer import NetworkOverviewDnsAnswer as NetworkOverviewDnsAnswer
598606
from revengai.models.network_overview_metadata import NetworkOverviewMetadata as NetworkOverviewMetadata

revengai/api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from revengai.api.authentication_users_api import AuthenticationUsersApi
1010
from revengai.api.binaries_api import BinariesApi
1111
from revengai.api.collections_api import CollectionsApi
12+
from revengai.api.config_api import ConfigApi
1213
from revengai.api.external_sources_api import ExternalSourcesApi
1314
from revengai.api.firmware_api import FirmwareApi
1415
from revengai.api.functions_ai_decompilation_api import FunctionsAIDecompilationApi

0 commit comments

Comments
 (0)