From c9836f8617057ec6ac6bf27af41a085e48cce4df Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 16 Apr 2026 06:47:50 +0000 Subject: [PATCH] Update SDK to version v3.67.0 - Generated from OpenAPI spec version v3.67.0 - Auto-generated by GitHub Actions --- .sdk-version | 2 +- README.md | 14 - docs/AnalysesSecurityChecksApi.md | 252 ----- ...ResponseCheckSecurityChecksTaskResponse.md | 33 - ...esponseQueuedSecurityChecksTaskResponse.md | 33 - docs/BaseResponseSecurityChecksResponse.md | 33 - docs/BinaryTaskStatus.md | 18 - docs/CheckSecurityChecksTaskResponse.md | 29 - docs/ConfidenceType.md | 18 - docs/QueuedSecurityChecksTaskResponse.md | 29 - docs/SecurityChecksResponse.md | 31 - docs/SecurityChecksResult.md | 36 - docs/SeverityType.md | 20 - docs/VulnerabilityType.md | 20 - revengai/__init__.py | 26 +- revengai/api/__init__.py | 1 - revengai/api/analyses_security_checks_api.py | 862 ------------------ revengai/api_client.py | 2 +- revengai/configuration.py | 4 +- revengai/models/__init__.py | 11 - ...nse_check_security_checks_task_response.py | 125 --- ...se_queued_security_checks_task_response.py | 125 --- .../base_response_security_checks_response.py | 125 --- revengai/models/binary_task_status.py | 39 - .../check_security_checks_task_response.py | 87 -- revengai/models/confidence_type.py | 39 - .../queued_security_checks_task_response.py | 86 -- revengai/models/security_checks_response.py | 98 -- revengai/models/security_checks_result.py | 103 --- revengai/models/severity_type.py | 40 - revengai/models/vulnerability_type.py | 40 - test/test_analyses_security_checks_api.py | 51 -- ...nse_check_security_checks_task_response.py | 63 -- ...se_queued_security_checks_task_response.py | 63 -- ..._base_response_security_checks_response.py | 75 -- test/test_binary_task_status.py | 32 - ...est_check_security_checks_task_response.py | 51 -- test/test_confidence_type.py | 32 - ...st_queued_security_checks_task_response.py | 51 -- test/test_security_checks_response.py | 75 -- test/test_security_checks_result.py | 65 -- test/test_severity_type.py | 32 - test/test_vulnerability_type.py | 32 - 43 files changed, 5 insertions(+), 2998 deletions(-) delete mode 100644 docs/AnalysesSecurityChecksApi.md delete mode 100644 docs/BaseResponseCheckSecurityChecksTaskResponse.md delete mode 100644 docs/BaseResponseQueuedSecurityChecksTaskResponse.md delete mode 100644 docs/BaseResponseSecurityChecksResponse.md delete mode 100644 docs/BinaryTaskStatus.md delete mode 100644 docs/CheckSecurityChecksTaskResponse.md delete mode 100644 docs/ConfidenceType.md delete mode 100644 docs/QueuedSecurityChecksTaskResponse.md delete mode 100644 docs/SecurityChecksResponse.md delete mode 100644 docs/SecurityChecksResult.md delete mode 100644 docs/SeverityType.md delete mode 100644 docs/VulnerabilityType.md delete mode 100644 revengai/api/analyses_security_checks_api.py delete mode 100644 revengai/models/base_response_check_security_checks_task_response.py delete mode 100644 revengai/models/base_response_queued_security_checks_task_response.py delete mode 100644 revengai/models/base_response_security_checks_response.py delete mode 100644 revengai/models/binary_task_status.py delete mode 100644 revengai/models/check_security_checks_task_response.py delete mode 100644 revengai/models/confidence_type.py delete mode 100644 revengai/models/queued_security_checks_task_response.py delete mode 100644 revengai/models/security_checks_response.py delete mode 100644 revengai/models/security_checks_result.py delete mode 100644 revengai/models/severity_type.py delete mode 100644 revengai/models/vulnerability_type.py delete mode 100644 test/test_analyses_security_checks_api.py delete mode 100644 test/test_base_response_check_security_checks_task_response.py delete mode 100644 test/test_base_response_queued_security_checks_task_response.py delete mode 100644 test/test_base_response_security_checks_response.py delete mode 100644 test/test_binary_task_status.py delete mode 100644 test/test_check_security_checks_task_response.py delete mode 100644 test/test_confidence_type.py delete mode 100644 test/test_queued_security_checks_task_response.py delete mode 100644 test/test_security_checks_response.py delete mode 100644 test/test_security_checks_result.py delete mode 100644 test/test_severity_type.py delete mode 100644 test/test_vulnerability_type.py diff --git a/.sdk-version b/.sdk-version index 5d3a7e6..0217dae 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v3.65.0 +v3.67.0 diff --git a/README.md b/README.md index 222cfff..b87006b 100644 --- a/README.md +++ b/README.md @@ -76,9 +76,6 @@ Class | Method | HTTP request | Description *AnalysesResultsMetadataApi* | [**get_sbom**](docs/AnalysesResultsMetadataApi.md#get_sbom) | **GET** /v2/analyses/{analysis_id}/sbom | Gets the software-bill-of-materials (SBOM) found in the analysis *AnalysesResultsMetadataApi* | [**get_tags**](docs/AnalysesResultsMetadataApi.md#get_tags) | **GET** /v2/analyses/{analysis_id}/tags | Get function tags with maliciousness score *AnalysesResultsMetadataApi* | [**get_vulnerabilities**](docs/AnalysesResultsMetadataApi.md#get_vulnerabilities) | **GET** /v2/analyses/{analysis_id}/vulnerabilities | Gets the vulnerabilities found in the analysis -*AnalysesSecurityChecksApi* | [**create_scurity_checks_task**](docs/AnalysesSecurityChecksApi.md#create_scurity_checks_task) | **POST** /v2/analyses/{analysis_id}/security-checks | Queues a security check process -*AnalysesSecurityChecksApi* | [**get_security_checks**](docs/AnalysesSecurityChecksApi.md#get_security_checks) | **GET** /v2/analyses/{analysis_id}/security-checks | Get Security Checks -*AnalysesSecurityChecksApi* | [**get_security_checks_task_status**](docs/AnalysesSecurityChecksApi.md#get_security_checks_task_status) | **GET** /v2/analyses/{analysis_id}/security-checks/status | Check the status of a security check process *AnalysesXRefsApi* | [**get_xref_by_vaddr**](docs/AnalysesXRefsApi.md#get_xref_by_vaddr) | **GET** /v2/analyses/{analysis_id}/xrefs/{vaddr} | [Beta] Look up xrefs by virtual address *AnalysisStagesApi* | [**get_analysis_stages**](docs/AnalysisStagesApi.md#get_analysis_stages) | **GET** /v2/analysis-stages/{analysis_id} | Get Analysis Stages *AnalysisStagesApi* | [**get_pipeline_status**](docs/AnalysisStagesApi.md#get_pipeline_status) | **GET** /v2/analysis-stages/{analysis_id}/pipeline-status | Get Pipeline Status @@ -212,7 +209,6 @@ Class | Method | HTTP request | Description - [BaseResponseBool](docs/BaseResponseBool.md) - [BaseResponseCalleesCallerFunctionsResponse](docs/BaseResponseCalleesCallerFunctionsResponse.md) - [BaseResponseCapabilities](docs/BaseResponseCapabilities.md) - - [BaseResponseCheckSecurityChecksTaskResponse](docs/BaseResponseCheckSecurityChecksTaskResponse.md) - [BaseResponseChildBinariesResponse](docs/BaseResponseChildBinariesResponse.md) - [BaseResponseCollectionBinariesUpdateResponse](docs/BaseResponseCollectionBinariesUpdateResponse.md) - [BaseResponseCollectionResponse](docs/BaseResponseCollectionResponse.md) @@ -253,9 +249,7 @@ Class | Method | HTTP request | Description - [BaseResponseProcessDumps](docs/BaseResponseProcessDumps.md) - [BaseResponseProcessRegistry](docs/BaseResponseProcessRegistry.md) - [BaseResponseProcessTree](docs/BaseResponseProcessTree.md) - - [BaseResponseQueuedSecurityChecksTaskResponse](docs/BaseResponseQueuedSecurityChecksTaskResponse.md) - [BaseResponseRecent](docs/BaseResponseRecent.md) - - [BaseResponseSecurityChecksResponse](docs/BaseResponseSecurityChecksResponse.md) - [BaseResponseStatus](docs/BaseResponseStatus.md) - [BaseResponseStr](docs/BaseResponseStr.md) - [BaseResponseTTPS](docs/BaseResponseTTPS.md) @@ -275,14 +269,12 @@ Class | Method | HTTP request | Description - [BinaryExternalsResponse](docs/BinaryExternalsResponse.md) - [BinarySearchResponse](docs/BinarySearchResponse.md) - [BinarySearchResult](docs/BinarySearchResult.md) - - [BinaryTaskStatus](docs/BinaryTaskStatus.md) - [BulkDeleteAnalysesRequest](docs/BulkDeleteAnalysesRequest.md) - [CalleeFunctionInfo](docs/CalleeFunctionInfo.md) - [CalleesCallerFunctionsResponse](docs/CalleesCallerFunctionsResponse.md) - [CallerFunctionInfo](docs/CallerFunctionInfo.md) - [Capabilities](docs/Capabilities.md) - [Capability](docs/Capability.md) - - [CheckSecurityChecksTaskResponse](docs/CheckSecurityChecksTaskResponse.md) - [ChildBinariesResponse](docs/ChildBinariesResponse.md) - [CodeSignatureModel](docs/CodeSignatureModel.md) - [CollectionBinariesUpdateRequest](docs/CollectionBinariesUpdateRequest.md) @@ -301,7 +293,6 @@ Class | Method | HTTP request | Description - [CommentBase](docs/CommentBase.md) - [CommentResponse](docs/CommentResponse.md) - [CommentUpdateRequest](docs/CommentUpdateRequest.md) - - [ConfidenceType](docs/ConfidenceType.md) - [ConfigResponse](docs/ConfigResponse.md) - [Context](docs/Context.md) - [Created](docs/Created.md) @@ -408,7 +399,6 @@ Class | Method | HTTP request | Description - [ProcessRegistry](docs/ProcessRegistry.md) - [ProcessTree](docs/ProcessTree.md) - [PutAnalysisStringsRequest](docs/PutAnalysisStringsRequest.md) - - [QueuedSecurityChecksTaskResponse](docs/QueuedSecurityChecksTaskResponse.md) - [ReAnalysisForm](docs/ReAnalysisForm.md) - [Recent](docs/Recent.md) - [Registry](docs/Registry.md) @@ -418,11 +408,8 @@ Class | Method | HTTP request | Description - [SandboxOptions](docs/SandboxOptions.md) - [ScrapeThirdPartyConfig](docs/ScrapeThirdPartyConfig.md) - [SectionModel](docs/SectionModel.md) - - [SecurityChecksResponse](docs/SecurityChecksResponse.md) - - [SecurityChecksResult](docs/SecurityChecksResult.md) - [SecurityModel](docs/SecurityModel.md) - [SegmentInfo](docs/SegmentInfo.md) - - [SeverityType](docs/SeverityType.md) - [SingleCodeCertificateModel](docs/SingleCodeCertificateModel.md) - [SingleCodeSignatureModel](docs/SingleCodeSignatureModel.md) - [SinglePDBEntryModel](docs/SinglePDBEntryModel.md) @@ -459,7 +446,6 @@ Class | Method | HTTP request | Description - [UserActivityResponse](docs/UserActivityResponse.md) - [Vulnerabilities](docs/Vulnerabilities.md) - [Vulnerability](docs/Vulnerability.md) - - [VulnerabilityType](docs/VulnerabilityType.md) - [Workspace](docs/Workspace.md) - [XrefFromResponse](docs/XrefFromResponse.md) - [XrefResponse](docs/XrefResponse.md) diff --git a/docs/AnalysesSecurityChecksApi.md b/docs/AnalysesSecurityChecksApi.md deleted file mode 100644 index 81c008a..0000000 --- a/docs/AnalysesSecurityChecksApi.md +++ /dev/null @@ -1,252 +0,0 @@ -# revengai.AnalysesSecurityChecksApi - -All URIs are relative to *https://api.reveng.ai* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_scurity_checks_task**](AnalysesSecurityChecksApi.md#create_scurity_checks_task) | **POST** /v2/analyses/{analysis_id}/security-checks | Queues a security check process -[**get_security_checks**](AnalysesSecurityChecksApi.md#get_security_checks) | **GET** /v2/analyses/{analysis_id}/security-checks | Get Security Checks -[**get_security_checks_task_status**](AnalysesSecurityChecksApi.md#get_security_checks_task_status) | **GET** /v2/analyses/{analysis_id}/security-checks/status | Check the status of a security check process - - -# **create_scurity_checks_task** -> QueuedSecurityChecksTaskResponse create_scurity_checks_task(analysis_id) - -Queues a security check process - -### Example - -* Api Key Authentication (APIKey): - -```python -import revengai -from revengai.models.queued_security_checks_task_response import QueuedSecurityChecksTaskResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesSecurityChecksApi(api_client) - analysis_id = 56 # int | - - try: - # Queues a security check process - api_response = api_instance.create_scurity_checks_task(analysis_id) - print("The response of AnalysesSecurityChecksApi->create_scurity_checks_task:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesSecurityChecksApi->create_scurity_checks_task: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**QueuedSecurityChecksTaskResponse**](QueuedSecurityChecksTaskResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**202** | Successful Response | - | -**422** | Invalid request parameters | - | -**409** | Security checks already extracted or queued | - | - -[[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) - -# **get_security_checks** -> BaseResponseSecurityChecksResponse get_security_checks(analysis_id, page, page_size) - -Get Security Checks - -Retrieve security checks results with pagination. - -### Example - -* Api Key Authentication (APIKey): - -```python -import revengai -from revengai.models.base_response_security_checks_response import BaseResponseSecurityChecksResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesSecurityChecksApi(api_client) - analysis_id = 56 # int | - page = 56 # int | The page number to retrieve. - page_size = 56 # int | Number of items per page. - - try: - # Get Security Checks - api_response = api_instance.get_security_checks(analysis_id, page, page_size) - print("The response of AnalysesSecurityChecksApi->get_security_checks:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesSecurityChecksApi->get_security_checks: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - **page** | **int**| The page number to retrieve. | - **page_size** | **int**| Number of items per page. | - -### Return type - -[**BaseResponseSecurityChecksResponse**](BaseResponseSecurityChecksResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[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) - -# **get_security_checks_task_status** -> CheckSecurityChecksTaskResponse get_security_checks_task_status(analysis_id) - -Check the status of a security check process - -### Example - -* Api Key Authentication (APIKey): - -```python -import revengai -from revengai.models.check_security_checks_task_response import CheckSecurityChecksTaskResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesSecurityChecksApi(api_client) - analysis_id = 56 # int | - - try: - # Check the status of a security check process - api_response = api_instance.get_security_checks_task_status(analysis_id) - print("The response of AnalysesSecurityChecksApi->get_security_checks_task_status:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesSecurityChecksApi->get_security_checks_task_status: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**CheckSecurityChecksTaskResponse**](CheckSecurityChecksTaskResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[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) - diff --git a/docs/BaseResponseCheckSecurityChecksTaskResponse.md b/docs/BaseResponseCheckSecurityChecksTaskResponse.md deleted file mode 100644 index b162d95..0000000 --- a/docs/BaseResponseCheckSecurityChecksTaskResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseCheckSecurityChecksTaskResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**CheckSecurityChecksTaskResponse**](CheckSecurityChecksTaskResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_check_security_checks_task_response import BaseResponseCheckSecurityChecksTaskResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseCheckSecurityChecksTaskResponse from a JSON string -base_response_check_security_checks_task_response_instance = BaseResponseCheckSecurityChecksTaskResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseCheckSecurityChecksTaskResponse.to_json()) - -# convert the object into a dict -base_response_check_security_checks_task_response_dict = base_response_check_security_checks_task_response_instance.to_dict() -# create an instance of BaseResponseCheckSecurityChecksTaskResponse from a dict -base_response_check_security_checks_task_response_from_dict = BaseResponseCheckSecurityChecksTaskResponse.from_dict(base_response_check_security_checks_task_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/BaseResponseQueuedSecurityChecksTaskResponse.md b/docs/BaseResponseQueuedSecurityChecksTaskResponse.md deleted file mode 100644 index d6419ee..0000000 --- a/docs/BaseResponseQueuedSecurityChecksTaskResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseQueuedSecurityChecksTaskResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**QueuedSecurityChecksTaskResponse**](QueuedSecurityChecksTaskResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_queued_security_checks_task_response import BaseResponseQueuedSecurityChecksTaskResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseQueuedSecurityChecksTaskResponse from a JSON string -base_response_queued_security_checks_task_response_instance = BaseResponseQueuedSecurityChecksTaskResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseQueuedSecurityChecksTaskResponse.to_json()) - -# convert the object into a dict -base_response_queued_security_checks_task_response_dict = base_response_queued_security_checks_task_response_instance.to_dict() -# create an instance of BaseResponseQueuedSecurityChecksTaskResponse from a dict -base_response_queued_security_checks_task_response_from_dict = BaseResponseQueuedSecurityChecksTaskResponse.from_dict(base_response_queued_security_checks_task_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/BaseResponseSecurityChecksResponse.md b/docs/BaseResponseSecurityChecksResponse.md deleted file mode 100644 index 99af4dc..0000000 --- a/docs/BaseResponseSecurityChecksResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseSecurityChecksResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**SecurityChecksResponse**](SecurityChecksResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_security_checks_response import BaseResponseSecurityChecksResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseSecurityChecksResponse from a JSON string -base_response_security_checks_response_instance = BaseResponseSecurityChecksResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseSecurityChecksResponse.to_json()) - -# convert the object into a dict -base_response_security_checks_response_dict = base_response_security_checks_response_instance.to_dict() -# create an instance of BaseResponseSecurityChecksResponse from a dict -base_response_security_checks_response_from_dict = BaseResponseSecurityChecksResponse.from_dict(base_response_security_checks_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/BinaryTaskStatus.md b/docs/BinaryTaskStatus.md deleted file mode 100644 index 77688a0..0000000 --- a/docs/BinaryTaskStatus.md +++ /dev/null @@ -1,18 +0,0 @@ -# BinaryTaskStatus - - -## Enum - -* `UNINITIALISED` (value: `'UNINITIALISED'`) - -* `PENDING` (value: `'PENDING'`) - -* `RUNNING` (value: `'RUNNING'`) - -* `COMPLETED` (value: `'COMPLETED'`) - -* `FAILED` (value: `'FAILED'`) - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CheckSecurityChecksTaskResponse.md b/docs/CheckSecurityChecksTaskResponse.md deleted file mode 100644 index fa742ff..0000000 --- a/docs/CheckSecurityChecksTaskResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# CheckSecurityChecksTaskResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**BinaryTaskStatus**](BinaryTaskStatus.md) | | - -## Example - -```python -from revengai.models.check_security_checks_task_response import CheckSecurityChecksTaskResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of CheckSecurityChecksTaskResponse from a JSON string -check_security_checks_task_response_instance = CheckSecurityChecksTaskResponse.from_json(json) -# print the JSON string representation of the object -print(CheckSecurityChecksTaskResponse.to_json()) - -# convert the object into a dict -check_security_checks_task_response_dict = check_security_checks_task_response_instance.to_dict() -# create an instance of CheckSecurityChecksTaskResponse from a dict -check_security_checks_task_response_from_dict = CheckSecurityChecksTaskResponse.from_dict(check_security_checks_task_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ConfidenceType.md b/docs/ConfidenceType.md deleted file mode 100644 index 596ce94..0000000 --- a/docs/ConfidenceType.md +++ /dev/null @@ -1,18 +0,0 @@ -# ConfidenceType - - -## Enum - -* `FALSE_POSITIVE` (value: `'FALSE_POSITIVE'`) - -* `SIGNATURE` (value: `'SIGNATURE'`) - -* `HEURISTIC` (value: `'HEURISTIC'`) - -* `LIKELY_VULNERABLE` (value: `'LIKELY_VULNERABLE'`) - -* `VULNERABLE` (value: `'VULNERABLE'`) - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/QueuedSecurityChecksTaskResponse.md b/docs/QueuedSecurityChecksTaskResponse.md deleted file mode 100644 index 2599588..0000000 --- a/docs/QueuedSecurityChecksTaskResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# QueuedSecurityChecksTaskResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**task_id** | **str** | | - -## Example - -```python -from revengai.models.queued_security_checks_task_response import QueuedSecurityChecksTaskResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of QueuedSecurityChecksTaskResponse from a JSON string -queued_security_checks_task_response_instance = QueuedSecurityChecksTaskResponse.from_json(json) -# print the JSON string representation of the object -print(QueuedSecurityChecksTaskResponse.to_json()) - -# convert the object into a dict -queued_security_checks_task_response_dict = queued_security_checks_task_response_instance.to_dict() -# create an instance of QueuedSecurityChecksTaskResponse from a dict -queued_security_checks_task_response_from_dict = QueuedSecurityChecksTaskResponse.from_dict(queued_security_checks_task_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SecurityChecksResponse.md b/docs/SecurityChecksResponse.md deleted file mode 100644 index 3a47e4e..0000000 --- a/docs/SecurityChecksResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# SecurityChecksResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**binary_id** | **int** | | -**total_results** | **int** | | -**results** | [**List[SecurityChecksResult]**](SecurityChecksResult.md) | | - -## Example - -```python -from revengai.models.security_checks_response import SecurityChecksResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of SecurityChecksResponse from a JSON string -security_checks_response_instance = SecurityChecksResponse.from_json(json) -# print the JSON string representation of the object -print(SecurityChecksResponse.to_json()) - -# convert the object into a dict -security_checks_response_dict = security_checks_response_instance.to_dict() -# create an instance of SecurityChecksResponse from a dict -security_checks_response_from_dict = SecurityChecksResponse.from_dict(security_checks_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SecurityChecksResult.md b/docs/SecurityChecksResult.md deleted file mode 100644 index 7db22a3..0000000 --- a/docs/SecurityChecksResult.md +++ /dev/null @@ -1,36 +0,0 @@ -# SecurityChecksResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**function_id** | **int** | | -**function_name** | **str** | | -**name** | **str** | | -**vuln_class** | [**VulnerabilityType**](VulnerabilityType.md) | | -**description** | **str** | | -**remediation** | **str** | | -**confidence** | [**ConfidenceType**](ConfidenceType.md) | | -**severity** | [**SeverityType**](SeverityType.md) | | - -## Example - -```python -from revengai.models.security_checks_result import SecurityChecksResult - -# TODO update the JSON string below -json = "{}" -# create an instance of SecurityChecksResult from a JSON string -security_checks_result_instance = SecurityChecksResult.from_json(json) -# print the JSON string representation of the object -print(SecurityChecksResult.to_json()) - -# convert the object into a dict -security_checks_result_dict = security_checks_result_instance.to_dict() -# create an instance of SecurityChecksResult from a dict -security_checks_result_from_dict = SecurityChecksResult.from_dict(security_checks_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SeverityType.md b/docs/SeverityType.md deleted file mode 100644 index 9f6fb69..0000000 --- a/docs/SeverityType.md +++ /dev/null @@ -1,20 +0,0 @@ -# SeverityType - - -## Enum - -* `CRITICAL` (value: `'CRITICAL'`) - -* `HIGH` (value: `'HIGH'`) - -* `MEDIUM` (value: `'MEDIUM'`) - -* `LOW` (value: `'LOW'`) - -* `INFO` (value: `'INFO'`) - -* `NONE` (value: `'NONE'`) - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/VulnerabilityType.md b/docs/VulnerabilityType.md deleted file mode 100644 index 010d957..0000000 --- a/docs/VulnerabilityType.md +++ /dev/null @@ -1,20 +0,0 @@ -# VulnerabilityType - - -## Enum - -* `UNSAFE_FUNCTIONS` (value: `'UNSAFE_FUNCTIONS'`) - -* `MEMORY_CORRUPTION` (value: `'MEMORY_CORRUPTION'`) - -* `INJECTION_ATTACK` (value: `'INJECTION_ATTACK'`) - -* `MISCONFIGURATION` (value: `'MISCONFIGURATION'`) - -* `DEBUG` (value: `'DEBUG'`) - -* `HARDCODED_SECRET` (value: `'HARDCODED_SECRET'`) - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/revengai/__init__.py b/revengai/__init__.py index a41f889..211ff9c 100644 --- a/revengai/__init__.py +++ b/revengai/__init__.py @@ -13,7 +13,7 @@ """ # noqa: E501 -__version__ = "v3.65.0" +__version__ = "v3.67.0" # Define package exports __all__ = [ @@ -21,7 +21,6 @@ "AnalysesCoreApi", "AnalysesDynamicExecutionApi", "AnalysesResultsMetadataApi", - "AnalysesSecurityChecksApi", "AnalysesXRefsApi", "AnalysisStagesApi", "AuthenticationUsersApi", @@ -106,7 +105,6 @@ "BaseResponseBool", "BaseResponseCalleesCallerFunctionsResponse", "BaseResponseCapabilities", - "BaseResponseCheckSecurityChecksTaskResponse", "BaseResponseChildBinariesResponse", "BaseResponseCollectionBinariesUpdateResponse", "BaseResponseCollectionResponse", @@ -147,9 +145,7 @@ "BaseResponseProcessDumps", "BaseResponseProcessRegistry", "BaseResponseProcessTree", - "BaseResponseQueuedSecurityChecksTaskResponse", "BaseResponseRecent", - "BaseResponseSecurityChecksResponse", "BaseResponseStatus", "BaseResponseStr", "BaseResponseTTPS", @@ -169,14 +165,12 @@ "BinaryExternalsResponse", "BinarySearchResponse", "BinarySearchResult", - "BinaryTaskStatus", "BulkDeleteAnalysesRequest", "CalleeFunctionInfo", "CalleesCallerFunctionsResponse", "CallerFunctionInfo", "Capabilities", "Capability", - "CheckSecurityChecksTaskResponse", "ChildBinariesResponse", "CodeSignatureModel", "CollectionBinariesUpdateRequest", @@ -195,7 +189,6 @@ "CommentBase", "CommentResponse", "CommentUpdateRequest", - "ConfidenceType", "ConfigResponse", "Context", "Created", @@ -302,7 +295,6 @@ "ProcessRegistry", "ProcessTree", "PutAnalysisStringsRequest", - "QueuedSecurityChecksTaskResponse", "ReAnalysisForm", "Recent", "Registry", @@ -312,11 +304,8 @@ "SandboxOptions", "ScrapeThirdPartyConfig", "SectionModel", - "SecurityChecksResponse", - "SecurityChecksResult", "SecurityModel", "SegmentInfo", - "SeverityType", "SingleCodeCertificateModel", "SingleCodeSignatureModel", "SinglePDBEntryModel", @@ -353,7 +342,6 @@ "UserActivityResponse", "Vulnerabilities", "Vulnerability", - "VulnerabilityType", "Workspace", "XrefFromResponse", "XrefResponse", @@ -365,7 +353,6 @@ from revengai.api.analyses_core_api import AnalysesCoreApi as AnalysesCoreApi from revengai.api.analyses_dynamic_execution_api import AnalysesDynamicExecutionApi as AnalysesDynamicExecutionApi from revengai.api.analyses_results_metadata_api import AnalysesResultsMetadataApi as AnalysesResultsMetadataApi -from revengai.api.analyses_security_checks_api import AnalysesSecurityChecksApi as AnalysesSecurityChecksApi from revengai.api.analyses_x_refs_api import AnalysesXRefsApi as AnalysesXRefsApi from revengai.api.analysis_stages_api import AnalysisStagesApi as AnalysisStagesApi from revengai.api.authentication_users_api import AuthenticationUsersApi as AuthenticationUsersApi @@ -454,7 +441,6 @@ from revengai.models.base_response_bool import BaseResponseBool as BaseResponseBool from revengai.models.base_response_callees_caller_functions_response import BaseResponseCalleesCallerFunctionsResponse as BaseResponseCalleesCallerFunctionsResponse from revengai.models.base_response_capabilities import BaseResponseCapabilities as BaseResponseCapabilities -from revengai.models.base_response_check_security_checks_task_response import BaseResponseCheckSecurityChecksTaskResponse as BaseResponseCheckSecurityChecksTaskResponse from revengai.models.base_response_child_binaries_response import BaseResponseChildBinariesResponse as BaseResponseChildBinariesResponse from revengai.models.base_response_collection_binaries_update_response import BaseResponseCollectionBinariesUpdateResponse as BaseResponseCollectionBinariesUpdateResponse from revengai.models.base_response_collection_response import BaseResponseCollectionResponse as BaseResponseCollectionResponse @@ -495,9 +481,7 @@ from revengai.models.base_response_process_dumps import BaseResponseProcessDumps as BaseResponseProcessDumps from revengai.models.base_response_process_registry import BaseResponseProcessRegistry as BaseResponseProcessRegistry from revengai.models.base_response_process_tree import BaseResponseProcessTree as BaseResponseProcessTree -from revengai.models.base_response_queued_security_checks_task_response import BaseResponseQueuedSecurityChecksTaskResponse as BaseResponseQueuedSecurityChecksTaskResponse from revengai.models.base_response_recent import BaseResponseRecent as BaseResponseRecent -from revengai.models.base_response_security_checks_response import BaseResponseSecurityChecksResponse as BaseResponseSecurityChecksResponse from revengai.models.base_response_status import BaseResponseStatus as BaseResponseStatus from revengai.models.base_response_str import BaseResponseStr as BaseResponseStr from revengai.models.base_response_ttps import BaseResponseTTPS as BaseResponseTTPS @@ -517,14 +501,12 @@ from revengai.models.binary_externals_response import BinaryExternalsResponse as BinaryExternalsResponse from revengai.models.binary_search_response import BinarySearchResponse as BinarySearchResponse from revengai.models.binary_search_result import BinarySearchResult as BinarySearchResult -from revengai.models.binary_task_status import BinaryTaskStatus as BinaryTaskStatus from revengai.models.bulk_delete_analyses_request import BulkDeleteAnalysesRequest as BulkDeleteAnalysesRequest from revengai.models.callee_function_info import CalleeFunctionInfo as CalleeFunctionInfo from revengai.models.callees_caller_functions_response import CalleesCallerFunctionsResponse as CalleesCallerFunctionsResponse from revengai.models.caller_function_info import CallerFunctionInfo as CallerFunctionInfo from revengai.models.capabilities import Capabilities as Capabilities from revengai.models.capability import Capability as Capability -from revengai.models.check_security_checks_task_response import CheckSecurityChecksTaskResponse as CheckSecurityChecksTaskResponse from revengai.models.child_binaries_response import ChildBinariesResponse as ChildBinariesResponse from revengai.models.code_signature_model import CodeSignatureModel as CodeSignatureModel from revengai.models.collection_binaries_update_request import CollectionBinariesUpdateRequest as CollectionBinariesUpdateRequest @@ -543,7 +525,6 @@ from revengai.models.comment_base import CommentBase as CommentBase from revengai.models.comment_response import CommentResponse as CommentResponse from revengai.models.comment_update_request import CommentUpdateRequest as CommentUpdateRequest -from revengai.models.confidence_type import ConfidenceType as ConfidenceType from revengai.models.config_response import ConfigResponse as ConfigResponse from revengai.models.context import Context as Context from revengai.models.created import Created as Created @@ -650,7 +631,6 @@ from revengai.models.process_registry import ProcessRegistry as ProcessRegistry from revengai.models.process_tree import ProcessTree as ProcessTree from revengai.models.put_analysis_strings_request import PutAnalysisStringsRequest as PutAnalysisStringsRequest -from revengai.models.queued_security_checks_task_response import QueuedSecurityChecksTaskResponse as QueuedSecurityChecksTaskResponse from revengai.models.re_analysis_form import ReAnalysisForm as ReAnalysisForm from revengai.models.recent import Recent as Recent from revengai.models.registry import Registry as Registry @@ -660,11 +640,8 @@ from revengai.models.sandbox_options import SandboxOptions as SandboxOptions from revengai.models.scrape_third_party_config import ScrapeThirdPartyConfig as ScrapeThirdPartyConfig from revengai.models.section_model import SectionModel as SectionModel -from revengai.models.security_checks_response import SecurityChecksResponse as SecurityChecksResponse -from revengai.models.security_checks_result import SecurityChecksResult as SecurityChecksResult from revengai.models.security_model import SecurityModel as SecurityModel from revengai.models.segment_info import SegmentInfo as SegmentInfo -from revengai.models.severity_type import SeverityType as SeverityType from revengai.models.single_code_certificate_model import SingleCodeCertificateModel as SingleCodeCertificateModel from revengai.models.single_code_signature_model import SingleCodeSignatureModel as SingleCodeSignatureModel from revengai.models.single_pdb_entry_model import SinglePDBEntryModel as SinglePDBEntryModel @@ -701,7 +678,6 @@ from revengai.models.user_activity_response import UserActivityResponse as UserActivityResponse from revengai.models.vulnerabilities import Vulnerabilities as Vulnerabilities from revengai.models.vulnerability import Vulnerability as Vulnerability -from revengai.models.vulnerability_type import VulnerabilityType as VulnerabilityType from revengai.models.workspace import Workspace as Workspace from revengai.models.xref_from_response import XrefFromResponse as XrefFromResponse from revengai.models.xref_response import XrefResponse as XrefResponse diff --git a/revengai/api/__init__.py b/revengai/api/__init__.py index a7cf63f..b2542d8 100644 --- a/revengai/api/__init__.py +++ b/revengai/api/__init__.py @@ -5,7 +5,6 @@ from revengai.api.analyses_core_api import AnalysesCoreApi from revengai.api.analyses_dynamic_execution_api import AnalysesDynamicExecutionApi from revengai.api.analyses_results_metadata_api import AnalysesResultsMetadataApi -from revengai.api.analyses_security_checks_api import AnalysesSecurityChecksApi from revengai.api.analyses_x_refs_api import AnalysesXRefsApi from revengai.api.analysis_stages_api import AnalysisStagesApi from revengai.api.authentication_users_api import AuthenticationUsersApi diff --git a/revengai/api/analyses_security_checks_api.py b/revengai/api/analyses_security_checks_api.py deleted file mode 100644 index d71f412..0000000 --- a/revengai/api/analyses_security_checks_api.py +++ /dev/null @@ -1,862 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import Field, StrictInt -from typing_extensions import Annotated -from revengai.models.base_response_security_checks_response import BaseResponseSecurityChecksResponse -from revengai.models.check_security_checks_task_response import CheckSecurityChecksTaskResponse -from revengai.models.queued_security_checks_task_response import QueuedSecurityChecksTaskResponse - -from revengai.api_client import ApiClient, RequestSerialized -from revengai.api_response import ApiResponse -from revengai.rest import RESTResponseType - - -class AnalysesSecurityChecksApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def create_scurity_checks_task( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> QueuedSecurityChecksTaskResponse: - """Queues a security check process - - - :param analysis_id: (required) - :type analysis_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_scurity_checks_task_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "QueuedSecurityChecksTaskResponse", - '422': "BaseResponse", - '409': "ErrorModel", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_scurity_checks_task_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[QueuedSecurityChecksTaskResponse]: - """Queues a security check process - - - :param analysis_id: (required) - :type analysis_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_scurity_checks_task_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "QueuedSecurityChecksTaskResponse", - '422': "BaseResponse", - '409': "ErrorModel", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_scurity_checks_task_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Queues a security check process - - - :param analysis_id: (required) - :type analysis_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_scurity_checks_task_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "QueuedSecurityChecksTaskResponse", - '422': "BaseResponse", - '409': "ErrorModel", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_scurity_checks_task_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v2/analyses/{analysis_id}/security-checks', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_security_checks( - self, - analysis_id: StrictInt, - page: Annotated[int, Field(le=100000, strict=True, ge=1, description="The page number to retrieve.")], - page_size: Annotated[int, Field(strict=True, ge=1, description="Number of items per page.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseSecurityChecksResponse: - """Get Security Checks - - Retrieve security checks results with pagination. - - :param analysis_id: (required) - :type analysis_id: int - :param page: The page number to retrieve. (required) - :type page: int - :param page_size: Number of items per page. (required) - :type page_size: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_security_checks_serialize( - analysis_id=analysis_id, - page=page, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseSecurityChecksResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_security_checks_with_http_info( - self, - analysis_id: StrictInt, - page: Annotated[int, Field(le=100000, strict=True, ge=1, description="The page number to retrieve.")], - page_size: Annotated[int, Field(strict=True, ge=1, description="Number of items per page.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseSecurityChecksResponse]: - """Get Security Checks - - Retrieve security checks results with pagination. - - :param analysis_id: (required) - :type analysis_id: int - :param page: The page number to retrieve. (required) - :type page: int - :param page_size: Number of items per page. (required) - :type page_size: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_security_checks_serialize( - analysis_id=analysis_id, - page=page, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseSecurityChecksResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_security_checks_without_preload_content( - self, - analysis_id: StrictInt, - page: Annotated[int, Field(le=100000, strict=True, ge=1, description="The page number to retrieve.")], - page_size: Annotated[int, Field(strict=True, ge=1, description="Number of items per page.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get Security Checks - - Retrieve security checks results with pagination. - - :param analysis_id: (required) - :type analysis_id: int - :param page: The page number to retrieve. (required) - :type page: int - :param page_size: Number of items per page. (required) - :type page_size: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_security_checks_serialize( - analysis_id=analysis_id, - page=page, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseSecurityChecksResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_security_checks_serialize( - self, - analysis_id, - page, - page_size, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/security-checks', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_security_checks_task_status( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CheckSecurityChecksTaskResponse: - """Check the status of a security check process - - - :param analysis_id: (required) - :type analysis_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_security_checks_task_status_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CheckSecurityChecksTaskResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_security_checks_task_status_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CheckSecurityChecksTaskResponse]: - """Check the status of a security check process - - - :param analysis_id: (required) - :type analysis_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_security_checks_task_status_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CheckSecurityChecksTaskResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_security_checks_task_status_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Check the status of a security check process - - - :param analysis_id: (required) - :type analysis_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_security_checks_task_status_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CheckSecurityChecksTaskResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_security_checks_task_status_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/security-checks/status', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/revengai/api_client.py b/revengai/api_client.py index c922072..6e2bb90 100644 --- a/revengai/api_client.py +++ b/revengai/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/v3.65.0/python' + self.user_agent = 'OpenAPI-Generator/v3.67.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/revengai/configuration.py b/revengai/configuration.py index 79e178d..3e83ca4 100644 --- a/revengai/configuration.py +++ b/revengai/configuration.py @@ -533,8 +533,8 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: v3.65.0\n"\ - "SDK Package Version: v3.65.0".\ + "Version of the API: v3.67.0\n"\ + "SDK Package Version: v3.67.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/revengai/models/__init__.py b/revengai/models/__init__.py index 40001df..3c1cd66 100644 --- a/revengai/models/__init__.py +++ b/revengai/models/__init__.py @@ -73,7 +73,6 @@ from revengai.models.base_response_bool import BaseResponseBool from revengai.models.base_response_callees_caller_functions_response import BaseResponseCalleesCallerFunctionsResponse from revengai.models.base_response_capabilities import BaseResponseCapabilities -from revengai.models.base_response_check_security_checks_task_response import BaseResponseCheckSecurityChecksTaskResponse from revengai.models.base_response_child_binaries_response import BaseResponseChildBinariesResponse from revengai.models.base_response_collection_binaries_update_response import BaseResponseCollectionBinariesUpdateResponse from revengai.models.base_response_collection_response import BaseResponseCollectionResponse @@ -114,9 +113,7 @@ from revengai.models.base_response_process_dumps import BaseResponseProcessDumps from revengai.models.base_response_process_registry import BaseResponseProcessRegistry from revengai.models.base_response_process_tree import BaseResponseProcessTree -from revengai.models.base_response_queued_security_checks_task_response import BaseResponseQueuedSecurityChecksTaskResponse from revengai.models.base_response_recent import BaseResponseRecent -from revengai.models.base_response_security_checks_response import BaseResponseSecurityChecksResponse from revengai.models.base_response_status import BaseResponseStatus from revengai.models.base_response_str import BaseResponseStr from revengai.models.base_response_ttps import BaseResponseTTPS @@ -136,14 +133,12 @@ from revengai.models.binary_externals_response import BinaryExternalsResponse from revengai.models.binary_search_response import BinarySearchResponse from revengai.models.binary_search_result import BinarySearchResult -from revengai.models.binary_task_status import BinaryTaskStatus from revengai.models.bulk_delete_analyses_request import BulkDeleteAnalysesRequest from revengai.models.callee_function_info import CalleeFunctionInfo from revengai.models.callees_caller_functions_response import CalleesCallerFunctionsResponse from revengai.models.caller_function_info import CallerFunctionInfo from revengai.models.capabilities import Capabilities from revengai.models.capability import Capability -from revengai.models.check_security_checks_task_response import CheckSecurityChecksTaskResponse from revengai.models.child_binaries_response import ChildBinariesResponse from revengai.models.code_signature_model import CodeSignatureModel from revengai.models.collection_binaries_update_request import CollectionBinariesUpdateRequest @@ -162,7 +157,6 @@ from revengai.models.comment_base import CommentBase from revengai.models.comment_response import CommentResponse from revengai.models.comment_update_request import CommentUpdateRequest -from revengai.models.confidence_type import ConfidenceType from revengai.models.config_response import ConfigResponse from revengai.models.context import Context from revengai.models.created import Created @@ -269,7 +263,6 @@ from revengai.models.process_registry import ProcessRegistry from revengai.models.process_tree import ProcessTree from revengai.models.put_analysis_strings_request import PutAnalysisStringsRequest -from revengai.models.queued_security_checks_task_response import QueuedSecurityChecksTaskResponse from revengai.models.re_analysis_form import ReAnalysisForm from revengai.models.recent import Recent from revengai.models.registry import Registry @@ -279,11 +272,8 @@ from revengai.models.sandbox_options import SandboxOptions from revengai.models.scrape_third_party_config import ScrapeThirdPartyConfig from revengai.models.section_model import SectionModel -from revengai.models.security_checks_response import SecurityChecksResponse -from revengai.models.security_checks_result import SecurityChecksResult from revengai.models.security_model import SecurityModel from revengai.models.segment_info import SegmentInfo -from revengai.models.severity_type import SeverityType from revengai.models.single_code_certificate_model import SingleCodeCertificateModel from revengai.models.single_code_signature_model import SingleCodeSignatureModel from revengai.models.single_pdb_entry_model import SinglePDBEntryModel @@ -320,7 +310,6 @@ from revengai.models.user_activity_response import UserActivityResponse from revengai.models.vulnerabilities import Vulnerabilities from revengai.models.vulnerability import Vulnerability -from revengai.models.vulnerability_type import VulnerabilityType from revengai.models.workspace import Workspace from revengai.models.xref_from_response import XrefFromResponse from revengai.models.xref_response import XrefResponse diff --git a/revengai/models/base_response_check_security_checks_task_response.py b/revengai/models/base_response_check_security_checks_task_response.py deleted file mode 100644 index c5a094a..0000000 --- a/revengai/models/base_response_check_security_checks_task_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.check_security_checks_task_response import CheckSecurityChecksTaskResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseCheckSecurityChecksTaskResponse(BaseModel): - """ - BaseResponseCheckSecurityChecksTaskResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[CheckSecurityChecksTaskResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseCheckSecurityChecksTaskResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseCheckSecurityChecksTaskResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": CheckSecurityChecksTaskResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_queued_security_checks_task_response.py b/revengai/models/base_response_queued_security_checks_task_response.py deleted file mode 100644 index ac84453..0000000 --- a/revengai/models/base_response_queued_security_checks_task_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from revengai.models.queued_security_checks_task_response import QueuedSecurityChecksTaskResponse -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseQueuedSecurityChecksTaskResponse(BaseModel): - """ - BaseResponseQueuedSecurityChecksTaskResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[QueuedSecurityChecksTaskResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseQueuedSecurityChecksTaskResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseQueuedSecurityChecksTaskResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": QueuedSecurityChecksTaskResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_security_checks_response.py b/revengai/models/base_response_security_checks_response.py deleted file mode 100644 index ba31d1b..0000000 --- a/revengai/models/base_response_security_checks_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from revengai.models.security_checks_response import SecurityChecksResponse -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseSecurityChecksResponse(BaseModel): - """ - BaseResponseSecurityChecksResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[SecurityChecksResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseSecurityChecksResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseSecurityChecksResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": SecurityChecksResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/binary_task_status.py b/revengai/models/binary_task_status.py deleted file mode 100644 index c6b9c4b..0000000 --- a/revengai/models/binary_task_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class BinaryTaskStatus(str, Enum): - """ - BinaryTaskStatus - """ - - """ - allowed enum values - """ - UNINITIALISED = 'UNINITIALISED' - PENDING = 'PENDING' - RUNNING = 'RUNNING' - COMPLETED = 'COMPLETED' - FAILED = 'FAILED' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of BinaryTaskStatus from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/revengai/models/check_security_checks_task_response.py b/revengai/models/check_security_checks_task_response.py deleted file mode 100644 index 6d8a281..0000000 --- a/revengai/models/check_security_checks_task_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from revengai.models.binary_task_status import BinaryTaskStatus -from typing import Optional, Set -from typing_extensions import Self - -class CheckSecurityChecksTaskResponse(BaseModel): - """ - CheckSecurityChecksTaskResponse - """ # noqa: E501 - status: BinaryTaskStatus - __properties: ClassVar[List[str]] = ["status"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CheckSecurityChecksTaskResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CheckSecurityChecksTaskResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") - }) - return _obj - - diff --git a/revengai/models/confidence_type.py b/revengai/models/confidence_type.py deleted file mode 100644 index 29d48e4..0000000 --- a/revengai/models/confidence_type.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class ConfidenceType(str, Enum): - """ - ConfidenceType - """ - - """ - allowed enum values - """ - FALSE_POSITIVE = 'FALSE_POSITIVE' - SIGNATURE = 'SIGNATURE' - HEURISTIC = 'HEURISTIC' - LIKELY_VULNERABLE = 'LIKELY_VULNERABLE' - VULNERABLE = 'VULNERABLE' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ConfidenceType from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/revengai/models/queued_security_checks_task_response.py b/revengai/models/queued_security_checks_task_response.py deleted file mode 100644 index f9cb09c..0000000 --- a/revengai/models/queued_security_checks_task_response.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class QueuedSecurityChecksTaskResponse(BaseModel): - """ - QueuedSecurityChecksTaskResponse - """ # noqa: E501 - task_id: StrictStr - __properties: ClassVar[List[str]] = ["task_id"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of QueuedSecurityChecksTaskResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QueuedSecurityChecksTaskResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "task_id": obj.get("task_id") - }) - return _obj - - diff --git a/revengai/models/security_checks_response.py b/revengai/models/security_checks_response.py deleted file mode 100644 index 785b215..0000000 --- a/revengai/models/security_checks_response.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List -from revengai.models.security_checks_result import SecurityChecksResult -from typing import Optional, Set -from typing_extensions import Self - -class SecurityChecksResponse(BaseModel): - """ - SecurityChecksResponse - """ # noqa: E501 - binary_id: StrictInt - total_results: StrictInt - results: List[SecurityChecksResult] - __properties: ClassVar[List[str]] = ["binary_id", "total_results", "results"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SecurityChecksResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in results (list) - _items = [] - if self.results: - for _item_results in self.results: - if _item_results: - _items.append(_item_results.to_dict()) - _dict['results'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SecurityChecksResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "binary_id": obj.get("binary_id"), - "total_results": obj.get("total_results"), - "results": [SecurityChecksResult.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None - }) - return _obj - - diff --git a/revengai/models/security_checks_result.py b/revengai/models/security_checks_result.py deleted file mode 100644 index 1c7f411..0000000 --- a/revengai/models/security_checks_result.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from revengai.models.confidence_type import ConfidenceType -from revengai.models.severity_type import SeverityType -from revengai.models.vulnerability_type import VulnerabilityType -from typing import Optional, Set -from typing_extensions import Self - -class SecurityChecksResult(BaseModel): - """ - SecurityChecksResult - """ # noqa: E501 - function_id: StrictInt - function_name: StrictStr - name: StrictStr - vuln_class: VulnerabilityType - description: StrictStr - remediation: StrictStr - confidence: ConfidenceType - severity: SeverityType - __properties: ClassVar[List[str]] = ["function_id", "function_name", "name", "vuln_class", "description", "remediation", "confidence", "severity"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SecurityChecksResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SecurityChecksResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "function_id": obj.get("function_id"), - "function_name": obj.get("function_name"), - "name": obj.get("name"), - "vuln_class": obj.get("vuln_class"), - "description": obj.get("description"), - "remediation": obj.get("remediation"), - "confidence": obj.get("confidence"), - "severity": obj.get("severity") - }) - return _obj - - diff --git a/revengai/models/severity_type.py b/revengai/models/severity_type.py deleted file mode 100644 index 45f8dc5..0000000 --- a/revengai/models/severity_type.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class SeverityType(str, Enum): - """ - SeverityType - """ - - """ - allowed enum values - """ - CRITICAL = 'CRITICAL' - HIGH = 'HIGH' - MEDIUM = 'MEDIUM' - LOW = 'LOW' - INFO = 'INFO' - NONE = 'NONE' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SeverityType from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/revengai/models/vulnerability_type.py b/revengai/models/vulnerability_type.py deleted file mode 100644 index 64250b1..0000000 --- a/revengai/models/vulnerability_type.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class VulnerabilityType(str, Enum): - """ - VulnerabilityType - """ - - """ - allowed enum values - """ - UNSAFE_FUNCTIONS = 'UNSAFE_FUNCTIONS' - MEMORY_CORRUPTION = 'MEMORY_CORRUPTION' - INJECTION_ATTACK = 'INJECTION_ATTACK' - MISCONFIGURATION = 'MISCONFIGURATION' - DEBUG = 'DEBUG' - HARDCODED_SECRET = 'HARDCODED_SECRET' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of VulnerabilityType from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/test/test_analyses_security_checks_api.py b/test/test_analyses_security_checks_api.py deleted file mode 100644 index f866274..0000000 --- a/test/test_analyses_security_checks_api.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.analyses_security_checks_api import AnalysesSecurityChecksApi - - -class TestAnalysesSecurityChecksApi(unittest.TestCase): - """AnalysesSecurityChecksApi unit test stubs""" - - def setUp(self) -> None: - self.api = AnalysesSecurityChecksApi() - - def tearDown(self) -> None: - pass - - def test_create_scurity_checks_task(self) -> None: - """Test case for create_scurity_checks_task - - Queues a security check process - """ - pass - - def test_get_security_checks(self) -> None: - """Test case for get_security_checks - - Get Security Checks - """ - pass - - def test_get_security_checks_task_status(self) -> None: - """Test case for get_security_checks_task_status - - Check the status of a security check process - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_base_response_check_security_checks_task_response.py b/test/test_base_response_check_security_checks_task_response.py deleted file mode 100644 index 968a482..0000000 --- a/test/test_base_response_check_security_checks_task_response.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_check_security_checks_task_response import BaseResponseCheckSecurityChecksTaskResponse - -class TestBaseResponseCheckSecurityChecksTaskResponse(unittest.TestCase): - """BaseResponseCheckSecurityChecksTaskResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseCheckSecurityChecksTaskResponse: - """Test BaseResponseCheckSecurityChecksTaskResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseCheckSecurityChecksTaskResponse` - """ - model = BaseResponseCheckSecurityChecksTaskResponse() - if include_optional: - return BaseResponseCheckSecurityChecksTaskResponse( - status = True, - data = revengai.models.check_security_checks_task_response.CheckSecurityChecksTaskResponse( - status = 'UNINITIALISED', ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseCheckSecurityChecksTaskResponse( - ) - """ - - def testBaseResponseCheckSecurityChecksTaskResponse(self): - """Test BaseResponseCheckSecurityChecksTaskResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_base_response_queued_security_checks_task_response.py b/test/test_base_response_queued_security_checks_task_response.py deleted file mode 100644 index 469e315..0000000 --- a/test/test_base_response_queued_security_checks_task_response.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_queued_security_checks_task_response import BaseResponseQueuedSecurityChecksTaskResponse - -class TestBaseResponseQueuedSecurityChecksTaskResponse(unittest.TestCase): - """BaseResponseQueuedSecurityChecksTaskResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseQueuedSecurityChecksTaskResponse: - """Test BaseResponseQueuedSecurityChecksTaskResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseQueuedSecurityChecksTaskResponse` - """ - model = BaseResponseQueuedSecurityChecksTaskResponse() - if include_optional: - return BaseResponseQueuedSecurityChecksTaskResponse( - status = True, - data = revengai.models.queued_security_checks_task_response.QueuedSecurityChecksTaskResponse( - task_id = '', ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseQueuedSecurityChecksTaskResponse( - ) - """ - - def testBaseResponseQueuedSecurityChecksTaskResponse(self): - """Test BaseResponseQueuedSecurityChecksTaskResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_base_response_security_checks_response.py b/test/test_base_response_security_checks_response.py deleted file mode 100644 index 1f29ce1..0000000 --- a/test/test_base_response_security_checks_response.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_security_checks_response import BaseResponseSecurityChecksResponse - -class TestBaseResponseSecurityChecksResponse(unittest.TestCase): - """BaseResponseSecurityChecksResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseSecurityChecksResponse: - """Test BaseResponseSecurityChecksResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseSecurityChecksResponse` - """ - model = BaseResponseSecurityChecksResponse() - if include_optional: - return BaseResponseSecurityChecksResponse( - status = True, - data = revengai.models.security_checks_response.SecurityChecksResponse( - binary_id = 56, - total_results = 56, - results = [ - revengai.models.security_checks_result.SecurityChecksResult( - function_id = 56, - function_name = '', - name = '', - vuln_class = 'UNSAFE_FUNCTIONS', - description = '', - remediation = '', - confidence = 'FALSE_POSITIVE', - severity = 'CRITICAL', ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseSecurityChecksResponse( - ) - """ - - def testBaseResponseSecurityChecksResponse(self): - """Test BaseResponseSecurityChecksResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_binary_task_status.py b/test/test_binary_task_status.py deleted file mode 100644 index 0bf0b42..0000000 --- a/test/test_binary_task_status.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.binary_task_status import BinaryTaskStatus - -class TestBinaryTaskStatus(unittest.TestCase): - """BinaryTaskStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testBinaryTaskStatus(self): - """Test BinaryTaskStatus""" - # inst = BinaryTaskStatus() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_check_security_checks_task_response.py b/test/test_check_security_checks_task_response.py deleted file mode 100644 index f3f4a79..0000000 --- a/test/test_check_security_checks_task_response.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.check_security_checks_task_response import CheckSecurityChecksTaskResponse - -class TestCheckSecurityChecksTaskResponse(unittest.TestCase): - """CheckSecurityChecksTaskResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CheckSecurityChecksTaskResponse: - """Test CheckSecurityChecksTaskResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CheckSecurityChecksTaskResponse` - """ - model = CheckSecurityChecksTaskResponse() - if include_optional: - return CheckSecurityChecksTaskResponse( - status = 'UNINITIALISED' - ) - else: - return CheckSecurityChecksTaskResponse( - status = 'UNINITIALISED', - ) - """ - - def testCheckSecurityChecksTaskResponse(self): - """Test CheckSecurityChecksTaskResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_confidence_type.py b/test/test_confidence_type.py deleted file mode 100644 index 2c579ac..0000000 --- a/test/test_confidence_type.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.confidence_type import ConfidenceType - -class TestConfidenceType(unittest.TestCase): - """ConfidenceType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testConfidenceType(self): - """Test ConfidenceType""" - # inst = ConfidenceType() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_queued_security_checks_task_response.py b/test/test_queued_security_checks_task_response.py deleted file mode 100644 index c8efff0..0000000 --- a/test/test_queued_security_checks_task_response.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.queued_security_checks_task_response import QueuedSecurityChecksTaskResponse - -class TestQueuedSecurityChecksTaskResponse(unittest.TestCase): - """QueuedSecurityChecksTaskResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QueuedSecurityChecksTaskResponse: - """Test QueuedSecurityChecksTaskResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `QueuedSecurityChecksTaskResponse` - """ - model = QueuedSecurityChecksTaskResponse() - if include_optional: - return QueuedSecurityChecksTaskResponse( - task_id = '' - ) - else: - return QueuedSecurityChecksTaskResponse( - task_id = '', - ) - """ - - def testQueuedSecurityChecksTaskResponse(self): - """Test QueuedSecurityChecksTaskResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_security_checks_response.py b/test/test_security_checks_response.py deleted file mode 100644 index b14c9c6..0000000 --- a/test/test_security_checks_response.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.security_checks_response import SecurityChecksResponse - -class TestSecurityChecksResponse(unittest.TestCase): - """SecurityChecksResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SecurityChecksResponse: - """Test SecurityChecksResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SecurityChecksResponse` - """ - model = SecurityChecksResponse() - if include_optional: - return SecurityChecksResponse( - binary_id = 56, - total_results = 56, - results = [ - revengai.models.security_checks_result.SecurityChecksResult( - function_id = 56, - function_name = '', - name = '', - vuln_class = 'UNSAFE_FUNCTIONS', - description = '', - remediation = '', - confidence = 'FALSE_POSITIVE', - severity = 'CRITICAL', ) - ] - ) - else: - return SecurityChecksResponse( - binary_id = 56, - total_results = 56, - results = [ - revengai.models.security_checks_result.SecurityChecksResult( - function_id = 56, - function_name = '', - name = '', - vuln_class = 'UNSAFE_FUNCTIONS', - description = '', - remediation = '', - confidence = 'FALSE_POSITIVE', - severity = 'CRITICAL', ) - ], - ) - """ - - def testSecurityChecksResponse(self): - """Test SecurityChecksResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_security_checks_result.py b/test/test_security_checks_result.py deleted file mode 100644 index 564c88d..0000000 --- a/test/test_security_checks_result.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.security_checks_result import SecurityChecksResult - -class TestSecurityChecksResult(unittest.TestCase): - """SecurityChecksResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SecurityChecksResult: - """Test SecurityChecksResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SecurityChecksResult` - """ - model = SecurityChecksResult() - if include_optional: - return SecurityChecksResult( - function_id = 56, - function_name = '', - name = '', - vuln_class = 'UNSAFE_FUNCTIONS', - description = '', - remediation = '', - confidence = 'FALSE_POSITIVE', - severity = 'CRITICAL' - ) - else: - return SecurityChecksResult( - function_id = 56, - function_name = '', - name = '', - vuln_class = 'UNSAFE_FUNCTIONS', - description = '', - remediation = '', - confidence = 'FALSE_POSITIVE', - severity = 'CRITICAL', - ) - """ - - def testSecurityChecksResult(self): - """Test SecurityChecksResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_severity_type.py b/test/test_severity_type.py deleted file mode 100644 index f2c7467..0000000 --- a/test/test_severity_type.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.severity_type import SeverityType - -class TestSeverityType(unittest.TestCase): - """SeverityType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSeverityType(self): - """Test SeverityType""" - # inst = SeverityType() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_vulnerability_type.py b/test/test_vulnerability_type.py deleted file mode 100644 index f510239..0000000 --- a/test/test_vulnerability_type.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.vulnerability_type import VulnerabilityType - -class TestVulnerabilityType(unittest.TestCase): - """VulnerabilityType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testVulnerabilityType(self): - """Test VulnerabilityType""" - # inst = VulnerabilityType() - -if __name__ == '__main__': - unittest.main()