diff --git a/.sdk-version b/.sdk-version index 100a28e..304e303 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v3.51.0 +v3.55.0 diff --git a/README.md b/README.md index 95350b8..867fda5 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ Class | Method | HTTP request | Description *AnalysesCoreApi* | [**insert_analysis_log**](docs/AnalysesCoreApi.md#insert_analysis_log) | **POST** /v2/analyses/{analysis_id}/logs | Insert a log entry for an analysis *AnalysesCoreApi* | [**list_analyses**](docs/AnalysesCoreApi.md#list_analyses) | **GET** /v2/analyses/list | Gets the most recent analyses *AnalysesCoreApi* | [**lookup_binary_id**](docs/AnalysesCoreApi.md#lookup_binary_id) | **GET** /v2/analyses/lookup/{binary_id} | Gets the analysis ID from binary ID +*AnalysesCoreApi* | [**put_analysis_strings**](docs/AnalysesCoreApi.md#put_analysis_strings) | **PUT** /v2/analyses/{analysis_id}/strings | Add strings to the analysis *AnalysesCoreApi* | [**requeue_analysis**](docs/AnalysesCoreApi.md#requeue_analysis) | **POST** /v2/analyses/{analysis_id}/requeue | Requeue Analysis *AnalysesCoreApi* | [**update_analysis**](docs/AnalysesCoreApi.md#update_analysis) | **PATCH** /v2/analyses/{analysis_id} | Update Analysis *AnalysesCoreApi* | [**update_analysis_tags**](docs/AnalysesCoreApi.md#update_analysis_tags) | **PATCH** /v2/analyses/{analysis_id}/tags | Update Analysis Tags @@ -178,6 +179,7 @@ Class | Method | HTTP request | Description - [AnalysisStage](docs/AnalysisStage.md) - [AnalysisStageStatus](docs/AnalysisStageStatus.md) - [AnalysisStagesResponse](docs/AnalysisStagesResponse.md) + - [AnalysisStringInput](docs/AnalysisStringInput.md) - [AnalysisStringsResponse](docs/AnalysisStringsResponse.md) - [AnalysisStringsStatusResponse](docs/AnalysisStringsStatusResponse.md) - [AnalysisTags](docs/AnalysisTags.md) @@ -417,6 +419,7 @@ Class | Method | HTTP request | Description - [ProcessDumpsData](docs/ProcessDumpsData.md) - [ProcessRegistry](docs/ProcessRegistry.md) - [ProcessTree](docs/ProcessTree.md) + - [PutAnalysisStringsRequest](docs/PutAnalysisStringsRequest.md) - [QueuedSecurityChecksTaskResponse](docs/QueuedSecurityChecksTaskResponse.md) - [ReAnalysisForm](docs/ReAnalysisForm.md) - [Recent](docs/Recent.md) @@ -442,6 +445,7 @@ Class | Method | HTTP request | Description - [StatusInput](docs/StatusInput.md) - [StatusOutput](docs/StatusOutput.md) - [StringFunctions](docs/StringFunctions.md) + - [StringSource](docs/StringSource.md) - [Structure](docs/Structure.md) - [StructureMember](docs/StructureMember.md) - [Symbols](docs/Symbols.md) diff --git a/docs/AnalysesCommentsApi.md b/docs/AnalysesCommentsApi.md index efd4245..da12be7 100644 --- a/docs/AnalysesCommentsApi.md +++ b/docs/AnalysesCommentsApi.md @@ -89,8 +89,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **201** | Successful Response | - | -**422** | Invalid request parameters | - | **400** | Bad Request | - | +**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) @@ -172,9 +172,9 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | -**422** | Invalid request parameters | - | -**403** | You can only delete your own comments | - | **400** | Bad Request | - | +**403** | You can only delete your own comments | - | +**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) @@ -339,9 +339,9 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | -**422** | Invalid request parameters | - | -**403** | You can only update your own comments | - | **400** | Bad Request | - | +**403** | You can only update your own comments | - | +**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/AnalysesCoreApi.md b/docs/AnalysesCoreApi.md index 683cf81..b20849a 100644 --- a/docs/AnalysesCoreApi.md +++ b/docs/AnalysesCoreApi.md @@ -15,6 +15,7 @@ Method | HTTP request | Description [**insert_analysis_log**](AnalysesCoreApi.md#insert_analysis_log) | **POST** /v2/analyses/{analysis_id}/logs | Insert a log entry for an analysis [**list_analyses**](AnalysesCoreApi.md#list_analyses) | **GET** /v2/analyses/list | Gets the most recent analyses [**lookup_binary_id**](AnalysesCoreApi.md#lookup_binary_id) | **GET** /v2/analyses/lookup/{binary_id} | Gets the analysis ID from binary ID +[**put_analysis_strings**](AnalysesCoreApi.md#put_analysis_strings) | **PUT** /v2/analyses/{analysis_id}/strings | Add strings to the analysis [**requeue_analysis**](AnalysesCoreApi.md#requeue_analysis) | **POST** /v2/analyses/{analysis_id}/requeue | Requeue Analysis [**update_analysis**](AnalysesCoreApi.md#update_analysis) | **PATCH** /v2/analyses/{analysis_id} | Update Analysis [**update_analysis_tags**](AnalysesCoreApi.md#update_analysis_tags) | **PATCH** /v2/analyses/{analysis_id}/tags | Update Analysis Tags @@ -181,9 +182,9 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **201** | Successful Response | - | -**422** | Invalid request parameters | - | -**404** | Not Found | - | **400** | Bad Request | - | +**404** | Not Found | - | +**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) @@ -263,9 +264,9 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | -**422** | Invalid request parameters | - | -**404** | Not Found | - | **403** | Forbidden | - | +**404** | Not Found | - | +**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) @@ -937,6 +938,89 @@ Name | Type | Description | Notes [[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) +# **put_analysis_strings** +> BaseResponse put_analysis_strings(analysis_id, put_analysis_strings_request) + +Add strings to the analysis + +Add strings to the analysis. Rejects if any string already exists at the given vaddr. + +### Example + +* Api Key Authentication (APIKey): + +```python +import revengai +from revengai.models.base_response import BaseResponse +from revengai.models.put_analysis_strings_request import PutAnalysisStringsRequest +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.AnalysesCoreApi(api_client) + analysis_id = 56 # int | + put_analysis_strings_request = revengai.PutAnalysisStringsRequest() # PutAnalysisStringsRequest | + + try: + # Add strings to the analysis + api_response = api_instance.put_analysis_strings(analysis_id, put_analysis_strings_request) + print("The response of AnalysesCoreApi->put_analysis_strings:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AnalysesCoreApi->put_analysis_strings: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **analysis_id** | **int**| | + **put_analysis_strings_request** | [**PutAnalysisStringsRequest**](PutAnalysisStringsRequest.md)| | + +### Return type + +[**BaseResponse**](BaseResponse.md) + +### Authorization + +[APIKey](../README.md#APIKey) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | 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) + # **requeue_analysis** > BaseResponseCreated requeue_analysis(analysis_id, re_analysis_form, x_rev_eng_application=x_rev_eng_application) @@ -1018,9 +1102,9 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **201** | Successful Response | - | -**422** | Invalid request parameters | - | -**404** | Not Found | - | **400** | Bad Request | - | +**404** | Not Found | - | +**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) @@ -1191,7 +1275,7 @@ Name | Type | Description | Notes [[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) # **upload_file** -> BaseResponseUploadResponse upload_file(upload_file_type, file, packed_password=packed_password, force_overwrite=force_overwrite) +> BaseResponseUploadResponse upload_file(file, upload_file_type, packed_password=packed_password, force_overwrite=force_overwrite) Upload File @@ -1227,14 +1311,14 @@ configuration.api_key['APIKey'] = os.environ["API_KEY"] with revengai.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = revengai.AnalysesCoreApi(api_client) - upload_file_type = revengai.UploadFileType() # UploadFileType | file = None # bytearray | + upload_file_type = revengai.UploadFileType() # UploadFileType | packed_password = 'packed_password_example' # str | (optional) force_overwrite = False # bool | (optional) (default to False) try: # Upload File - api_response = api_instance.upload_file(upload_file_type, file, packed_password=packed_password, force_overwrite=force_overwrite) + api_response = api_instance.upload_file(file, upload_file_type, packed_password=packed_password, force_overwrite=force_overwrite) print("The response of AnalysesCoreApi->upload_file:\n") pprint(api_response) except Exception as e: @@ -1248,8 +1332,8 @@ with revengai.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **upload_file_type** | [**UploadFileType**](UploadFileType.md)| | **file** | **bytearray**| | + **upload_file_type** | [**UploadFileType**](UploadFileType.md)| | **packed_password** | **str**| | [optional] **force_overwrite** | **bool**| | [optional] [default to False] diff --git a/docs/AnalysesSecurityChecksApi.md b/docs/AnalysesSecurityChecksApi.md index 81c008a..06536ca 100644 --- a/docs/AnalysesSecurityChecksApi.md +++ b/docs/AnalysesSecurityChecksApi.md @@ -83,8 +83,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **202** | Successful Response | - | -**422** | Invalid request parameters | - | **409** | Security checks already extracted or queued | - | +**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/AnalysesXRefsApi.md b/docs/AnalysesXRefsApi.md index db3e3db..6f60dd2 100644 --- a/docs/AnalysesXRefsApi.md +++ b/docs/AnalysesXRefsApi.md @@ -85,8 +85,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | -**422** | Invalid request parameters | - | **404** | Xref or analysis cache not found | - | +**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/AnalysisBulkAddTagsRequest.md b/docs/AnalysisBulkAddTagsRequest.md index 237af51..cc7d532 100644 --- a/docs/AnalysisBulkAddTagsRequest.md +++ b/docs/AnalysisBulkAddTagsRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**tags** | **List[str]** | | **analysis_ids** | **List[int]** | | +**tags** | **List[str]** | | ## Example diff --git a/docs/AnalysisBulkAddTagsResponseItem.md b/docs/AnalysisBulkAddTagsResponseItem.md index 0659c0a..dfed041 100644 --- a/docs/AnalysisBulkAddTagsResponseItem.md +++ b/docs/AnalysisBulkAddTagsResponseItem.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **analysis_id** | **int** | | -**message** | **str** | | **error** | **str** | | [optional] +**message** | **str** | | ## Example diff --git a/docs/AnalysisConfig.md b/docs/AnalysisConfig.md index 540f94c..9fb7b7a 100644 --- a/docs/AnalysisConfig.md +++ b/docs/AnalysisConfig.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**scrape_third_party_config** | [**ScrapeThirdPartyConfig**](ScrapeThirdPartyConfig.md) | Settings to scrape third party sources | [optional] +**advanced_analysis** | **bool** | Enables an advanced security analysis. | [optional] [default to False] +**generate_capabilities** | **bool** | A configuration option for generating capabilities of a binary | [optional] [default to False] **generate_cves** | **bool** | A configuration option for fetching CVEs data. | [optional] [default to False] **generate_sbom** | **bool** | A configuration option for generating software bill of materials data. | [optional] [default to False] -**generate_capabilities** | **bool** | A configuration option for generating capabilities of a binary | [optional] [default to False] **no_cache** | **bool** | When enabled, skips using cached data within the processing. | [optional] [default to False] -**advanced_analysis** | **bool** | Enables an advanced security analysis. | [optional] [default to False] **sandbox_config** | [**SandboxOptions**](SandboxOptions.md) | Including a sandbox config enables the dynamic execution sandbox | [optional] +**scrape_third_party_config** | [**ScrapeThirdPartyConfig**](ScrapeThirdPartyConfig.md) | Settings to scrape third party sources | [optional] ## Example diff --git a/docs/AnalysisCreateRequest.md b/docs/AnalysisCreateRequest.md index 5d35eb9..a14a556 100644 --- a/docs/AnalysisCreateRequest.md +++ b/docs/AnalysisCreateRequest.md @@ -5,15 +5,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**analysis_config** | [**AnalysisConfig**](AnalysisConfig.md) | The analysis config enables the configuration of optional analysis stages | [optional] +**analysis_scope** | [**AnalysisScope**](AnalysisScope.md) | The scope of the analysis determines who can access it | [optional] +**auto_run_agents** | [**AutoRunAgents**](AutoRunAgents.md) | | [optional] +**binary_config** | [**BinaryConfig**](BinaryConfig.md) | The binary config can override automatically determined values such as ISA, Platform, File Format, etc | [optional] +**debug_hash** | **str** | | [optional] **filename** | **str** | The name of the file | **sha_256_hash** | **str** | The name of the file | -**tags** | [**List[Tag]**](Tag.md) | List of community tags to assign to an analysis | [optional] [default to []] -**analysis_scope** | [**AnalysisScope**](AnalysisScope.md) | The scope of the analysis determines who can access it | [optional] **symbols** | [**Symbols**](Symbols.md) | | [optional] -**debug_hash** | **str** | | [optional] -**analysis_config** | [**AnalysisConfig**](AnalysisConfig.md) | The analysis config enables the configuration of optional analysis stages | [optional] -**binary_config** | [**BinaryConfig**](BinaryConfig.md) | The binary config can override automatically determined values such as ISA, Platform, File Format, etc | [optional] -**auto_run_agents** | [**AutoRunAgents**](AutoRunAgents.md) | | [optional] +**tags** | [**List[Tag]**](Tag.md) | List of community tags to assign to an analysis | [optional] [default to []] ## Example diff --git a/docs/AnalysisDetailResponse.md b/docs/AnalysisDetailResponse.md index 0f2ede9..9d3f4fe 100644 --- a/docs/AnalysisDetailResponse.md +++ b/docs/AnalysisDetailResponse.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **analysis_id** | **int** | | **analysis_scope** | **str** | | **architecture** | **str** | | +**auto_run_agents** | [**AutoRunAgents**](AutoRunAgents.md) | | **binary_dynamic** | **bool** | | **binary_format** | **str** | | **binary_name** | **str** | | @@ -20,7 +21,6 @@ Name | Type | Description | Notes **model_name** | **str** | | **sbom** | **Dict[str, object]** | | [optional] **sha_256_hash** | **str** | | -**auto_run_agents** | [**AutoRunAgents**](AutoRunAgents.md) | | ## Example diff --git a/docs/AnalysisFunctionMatchingRequest.md b/docs/AnalysisFunctionMatchingRequest.md index d14ad97..771a281 100644 --- a/docs/AnalysisFunctionMatchingRequest.md +++ b/docs/AnalysisFunctionMatchingRequest.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**min_similarity** | **float** | Minimum similarity expected for a match as a percentage, default is 90 | [optional] [default to 90.0] **filters** | [**FunctionMatchingFilters**](FunctionMatchingFilters.md) | | [optional] -**results_per_function** | **int** | Maximum number of matches to return per function, default is 1, max is 10 | [optional] [default to 1] +**min_similarity** | **float** | Minimum similarity expected for a match as a percentage, default is 90 | [optional] [default to 90] +**no_cache** | **bool** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] [default to False] **page** | **int** | Page number for paginated results, default is 1 (first page) | [optional] [default to 1] **page_size** | **int** | Number of functions to return per page, default is 0 (all functions), max is 1000 | [optional] [default to 0] +**results_per_function** | **int** | Maximum number of matches to return per function, default is 1, max is 10 | [optional] [default to 1] **status_only** | **bool** | If set to true, only returns the status of the matching operation without the actual results | [optional] [default to False] -**no_cache** | **bool** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] [default to False] **use_canonical_names** | **bool** | Whether to use canonical function names during function matching for confidence results, default is False | [optional] [default to False] ## Example diff --git a/docs/AnalysisRecord.md b/docs/AnalysisRecord.md index d3e0501..86ed40c 100644 --- a/docs/AnalysisRecord.md +++ b/docs/AnalysisRecord.md @@ -7,21 +7,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **analysis_id** | **int** | ID to identify analysis | **analysis_scope** | **str** | Scope of the analysis | +**base_address** | **int** | The base address of the binary | **binary_id** | **int** | ID to identify the binary analyse | -**model_id** | **int** | ID to identify the model used for analysis | -**model_name** | **str** | Name of the model used for analysis | -**status** | **str** | The current status of analysis | -**creation** | **datetime** | The datetime of when the analysis was created | -**is_owner** | **bool** | Whether the current user is the owner of a binary | **binary_name** | **str** | The name of the file uploaded | -**sha_256_hash** | **str** | The hash of the binary | -**function_boundaries_hash** | **str** | The hash of the function boundaries | **binary_size** | **int** | The size of the binary | -**username** | **str** | The username of the analysis owner | +**creation** | **datetime** | The datetime of when the analysis was created | **dynamic_execution_status** | [**AppApiRestV2AnalysesEnumsDynamicExecutionStatus**](AppApiRestV2AnalysesEnumsDynamicExecutionStatus.md) | | [optional] **dynamic_execution_task_id** | **int** | | [optional] -**base_address** | **int** | The base address of the binary | +**function_boundaries_hash** | **str** | The hash of the function boundaries | +**is_owner** | **bool** | Whether the current user is the owner of a binary | +**model_id** | **int** | ID to identify the model used for analysis | +**model_name** | **str** | Name of the model used for analysis | +**sha_256_hash** | **str** | The hash of the binary | +**status** | **str** | The current status of analysis | **tags** | [**List[TagItem]**](TagItem.md) | List of tags associated with the analysis | [optional] +**username** | **str** | The username of the analysis owner | ## Example diff --git a/docs/AnalysisStringInput.md b/docs/AnalysisStringInput.md new file mode 100644 index 0000000..6780156 --- /dev/null +++ b/docs/AnalysisStringInput.md @@ -0,0 +1,32 @@ +# AnalysisStringInput + +Input model for inserting a string into an analysis. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**source** | [**StringSource**](StringSource.md) | The source of the string | +**vaddr** | **int** | The virtual address of the string | +**value** | **str** | The string literal value | + +## Example + +```python +from revengai.models.analysis_string_input import AnalysisStringInput + +# TODO update the JSON string below +json = "{}" +# create an instance of AnalysisStringInput from a JSON string +analysis_string_input_instance = AnalysisStringInput.from_json(json) +# print the JSON string representation of the object +print(AnalysisStringInput.to_json()) + +# convert the object into a dict +analysis_string_input_dict = analysis_string_input_instance.to_dict() +# create an instance of AnalysisStringInput from a dict +analysis_string_input_from_dict = AnalysisStringInput.from_dict(analysis_string_input_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/AnalysisUpdateRequest.md b/docs/AnalysisUpdateRequest.md index 7679903..9a99913 100644 --- a/docs/AnalysisUpdateRequest.md +++ b/docs/AnalysisUpdateRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**binary_name** | **str** | | [optional] **analysis_scope** | **str** | | [optional] +**binary_name** | **str** | | [optional] ## Example diff --git a/docs/AppApiRestV2FunctionsTypesFunction.md b/docs/AppApiRestV2FunctionsTypesFunction.md index e708c7e..56d757f 100644 --- a/docs/AppApiRestV2FunctionsTypesFunction.md +++ b/docs/AppApiRestV2FunctionsTypesFunction.md @@ -5,14 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**debug** | **bool** | Whether the function is debug | +**embedding_1d** | **List[float]** | | [optional] +**embedding_3d** | **List[float]** | | [optional] **function_id** | **int** | Function id | -**function_name** | **str** | Demangled name of the function | **function_mangled_name** | **str** | Mangled name of the function | -**function_vaddr** | **int** | Function virtual address | +**function_name** | **str** | Demangled name of the function | **function_size** | **int** | Function size | -**debug** | **bool** | Whether the function is debug | -**embedding_3d** | **List[float]** | | [optional] -**embedding_1d** | **List[float]** | | [optional] +**function_vaddr** | **int** | Function virtual address | ## Example diff --git a/docs/Argument.md b/docs/Argument.md index 7de2bec..eea1bed 100644 --- a/docs/Argument.md +++ b/docs/Argument.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **last_change** | **str** | | [optional] -**offset** | **int** | Offset of the argument in the function signature | **name** | **str** | Name of the argument | -**type** | **str** | Data type of the argument | +**offset** | **int** | Offset of the argument in the function signature | **size** | **int** | Size of the argument in bytes | +**type** | **str** | Data type of the argument | ## Example diff --git a/docs/AuthenticationUsersApi.md b/docs/AuthenticationUsersApi.md index 36d5d73..149ab82 100644 --- a/docs/AuthenticationUsersApi.md +++ b/docs/AuthenticationUsersApi.md @@ -390,8 +390,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | -**422** | Invalid request parameters | - | **401** | Invalid credentials | - | +**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/AutoUnstripRequest.md b/docs/AutoUnstripRequest.md index 731818f..18dabb6 100644 --- a/docs/AutoUnstripRequest.md +++ b/docs/AutoUnstripRequest.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**min_similarity** | **float** | Minimum similarity expected for a match as a percentage, default is 90 | [optional] [default to 90.0] **apply** | **bool** | Whether to apply the matched function names to the target binary, default is False | [optional] [default to False] -**confidence_threshold** | **float** | Confidence threshold for applying function names as a percentage, default is 90 | [optional] [default to 90.0] +**confidence_threshold** | **float** | Confidence threshold for applying function names as a percentage, default is 90 | [optional] [default to 90] **min_group_size** | **int** | Minimum number of matching functions required to consider for a match, default is 10 | [optional] [default to 10] -**status_only** | **bool** | If set to true, only returns the status of the auto-unstrip operation without the actual results | [optional] [default to False] +**min_similarity** | **float** | Minimum similarity expected for a match as a percentage, default is 90 | [optional] [default to 90] **no_cache** | **bool** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] [default to False] +**status_only** | **bool** | If set to true, only returns the status of the auto-unstrip operation without the actual results | [optional] [default to False] **use_canonical_names** | **bool** | Whether to use canonical function names during matching for auto-unstrip, default is False | [optional] [default to False] ## Example diff --git a/docs/AutoUnstripResponse.md b/docs/AutoUnstripResponse.md index 374310d..bf384c4 100644 --- a/docs/AutoUnstripResponse.md +++ b/docs/AutoUnstripResponse.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**applied** | **bool** | | [optional] +**error_message** | **str** | | [optional] +**matches** | [**List[MatchedFunctionSuggestion]**](MatchedFunctionSuggestion.md) | | [optional] **progress** | **int** | Progress of the auto-unstrip operation, represented as a percentage | [optional] [default to 0] **status** | **str** | | [optional] **total_time** | **int** | | [optional] -**matches** | [**List[MatchedFunctionSuggestion]**](MatchedFunctionSuggestion.md) | | [optional] -**applied** | **bool** | | [optional] -**error_message** | **str** | | [optional] ## Example diff --git a/docs/BaseResponse.md b/docs/BaseResponse.md index 219e865..5c0aca4 100644 --- a/docs/BaseResponse.md +++ b/docs/BaseResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | **object** | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseAdditionalDetailsStatusResponse.md b/docs/BaseResponseAdditionalDetailsStatusResponse.md index 021f0cb..35d6dfe 100644 --- a/docs/BaseResponseAdditionalDetailsStatusResponse.md +++ b/docs/BaseResponseAdditionalDetailsStatusResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**AdditionalDetailsStatusResponse**](AdditionalDetailsStatusResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseAnalysisBulkAddTagsResponse.md b/docs/BaseResponseAnalysisBulkAddTagsResponse.md index ff005d8..8809594 100644 --- a/docs/BaseResponseAnalysisBulkAddTagsResponse.md +++ b/docs/BaseResponseAnalysisBulkAddTagsResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**AnalysisBulkAddTagsResponse**](AnalysisBulkAddTagsResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseAnalysisCreateResponse.md b/docs/BaseResponseAnalysisCreateResponse.md index 93f0097..e8c0a0a 100644 --- a/docs/BaseResponseAnalysisCreateResponse.md +++ b/docs/BaseResponseAnalysisCreateResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**AnalysisCreateResponse**](AnalysisCreateResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseAnalysisDetailResponse.md b/docs/BaseResponseAnalysisDetailResponse.md index 23fa95e..2a06707 100644 --- a/docs/BaseResponseAnalysisDetailResponse.md +++ b/docs/BaseResponseAnalysisDetailResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**AnalysisDetailResponse**](AnalysisDetailResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseAnalysisFunctionMapping.md b/docs/BaseResponseAnalysisFunctionMapping.md index 524e0f9..b89cc07 100644 --- a/docs/BaseResponseAnalysisFunctionMapping.md +++ b/docs/BaseResponseAnalysisFunctionMapping.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**AnalysisFunctionMapping**](AnalysisFunctionMapping.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseAnalysisFunctions.md b/docs/BaseResponseAnalysisFunctions.md index 99b6512..02ccf83 100644 --- a/docs/BaseResponseAnalysisFunctions.md +++ b/docs/BaseResponseAnalysisFunctions.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**AnalysisFunctions**](AnalysisFunctions.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseAnalysisFunctionsList.md b/docs/BaseResponseAnalysisFunctionsList.md index f116d31..85d7a59 100644 --- a/docs/BaseResponseAnalysisFunctionsList.md +++ b/docs/BaseResponseAnalysisFunctionsList.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**AnalysisFunctionsList**](AnalysisFunctionsList.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseAnalysisStagesResponse.md b/docs/BaseResponseAnalysisStagesResponse.md index 7570c60..ebc7ad7 100644 --- a/docs/BaseResponseAnalysisStagesResponse.md +++ b/docs/BaseResponseAnalysisStagesResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**AnalysisStagesResponse**](AnalysisStagesResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseAnalysisStringsResponse.md b/docs/BaseResponseAnalysisStringsResponse.md index da37b43..9a96f9d 100644 --- a/docs/BaseResponseAnalysisStringsResponse.md +++ b/docs/BaseResponseAnalysisStringsResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**AnalysisStringsResponse**](AnalysisStringsResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseAnalysisStringsStatusResponse.md b/docs/BaseResponseAnalysisStringsStatusResponse.md index 529a501..9811dc3 100644 --- a/docs/BaseResponseAnalysisStringsStatusResponse.md +++ b/docs/BaseResponseAnalysisStringsStatusResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**AnalysisStringsStatusResponse**](AnalysisStringsStatusResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseAnalysisTags.md b/docs/BaseResponseAnalysisTags.md index 2ac24b8..2e03718 100644 --- a/docs/BaseResponseAnalysisTags.md +++ b/docs/BaseResponseAnalysisTags.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**AnalysisTags**](AnalysisTags.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseAnalysisUpdateTagsResponse.md b/docs/BaseResponseAnalysisUpdateTagsResponse.md index d02ca02..7708885 100644 --- a/docs/BaseResponseAnalysisUpdateTagsResponse.md +++ b/docs/BaseResponseAnalysisUpdateTagsResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**AnalysisUpdateTagsResponse**](AnalysisUpdateTagsResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseBasic.md b/docs/BaseResponseBasic.md index 5015627..76fe3c8 100644 --- a/docs/BaseResponseBasic.md +++ b/docs/BaseResponseBasic.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**Basic**](Basic.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseBinariesRelatedStatusResponse.md b/docs/BaseResponseBinariesRelatedStatusResponse.md index 61a3e2b..40ba860 100644 --- a/docs/BaseResponseBinariesRelatedStatusResponse.md +++ b/docs/BaseResponseBinariesRelatedStatusResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**BinariesRelatedStatusResponse**](BinariesRelatedStatusResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseBinaryAdditionalResponse.md b/docs/BaseResponseBinaryAdditionalResponse.md index 8f65a69..9c9de3b 100644 --- a/docs/BaseResponseBinaryAdditionalResponse.md +++ b/docs/BaseResponseBinaryAdditionalResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**BinaryAdditionalResponse**](BinaryAdditionalResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseBinaryDetailsResponse.md b/docs/BaseResponseBinaryDetailsResponse.md index ef9e4c9..d75b65b 100644 --- a/docs/BaseResponseBinaryDetailsResponse.md +++ b/docs/BaseResponseBinaryDetailsResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**BinaryDetailsResponse**](BinaryDetailsResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseBinaryExternalsResponse.md b/docs/BaseResponseBinaryExternalsResponse.md index f2f60a1..526608a 100644 --- a/docs/BaseResponseBinaryExternalsResponse.md +++ b/docs/BaseResponseBinaryExternalsResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**BinaryExternalsResponse**](BinaryExternalsResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseBinarySearchResponse.md b/docs/BaseResponseBinarySearchResponse.md index 00254bf..3f8b87d 100644 --- a/docs/BaseResponseBinarySearchResponse.md +++ b/docs/BaseResponseBinarySearchResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**BinarySearchResponse**](BinarySearchResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseBlockCommentsGenerationForFunctionResponse.md b/docs/BaseResponseBlockCommentsGenerationForFunctionResponse.md index dbe3c85..c88ba2a 100644 --- a/docs/BaseResponseBlockCommentsGenerationForFunctionResponse.md +++ b/docs/BaseResponseBlockCommentsGenerationForFunctionResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**BlockCommentsGenerationForFunctionResponse**](BlockCommentsGenerationForFunctionResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseBlockCommentsOverviewGenerationResponse.md b/docs/BaseResponseBlockCommentsOverviewGenerationResponse.md index f5cd89b..bb81df4 100644 --- a/docs/BaseResponseBlockCommentsOverviewGenerationResponse.md +++ b/docs/BaseResponseBlockCommentsOverviewGenerationResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | **object** | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseBool.md b/docs/BaseResponseBool.md index b81b2d9..040db91 100644 --- a/docs/BaseResponseBool.md +++ b/docs/BaseResponseBool.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | **bool** | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseCalleesCallerFunctionsResponse.md b/docs/BaseResponseCalleesCallerFunctionsResponse.md index 4edde2a..c1c70c7 100644 --- a/docs/BaseResponseCalleesCallerFunctionsResponse.md +++ b/docs/BaseResponseCalleesCallerFunctionsResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**CalleesCallerFunctionsResponse**](CalleesCallerFunctionsResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseCapabilities.md b/docs/BaseResponseCapabilities.md index 2009b57..f6a9115 100644 --- a/docs/BaseResponseCapabilities.md +++ b/docs/BaseResponseCapabilities.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**Capabilities**](Capabilities.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseCheckSecurityChecksTaskResponse.md b/docs/BaseResponseCheckSecurityChecksTaskResponse.md index b162d95..fef8caa 100644 --- a/docs/BaseResponseCheckSecurityChecksTaskResponse.md +++ b/docs/BaseResponseCheckSecurityChecksTaskResponse.md @@ -5,11 +5,11 @@ 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] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseChildBinariesResponse.md b/docs/BaseResponseChildBinariesResponse.md index 02b5207..de6d33b 100644 --- a/docs/BaseResponseChildBinariesResponse.md +++ b/docs/BaseResponseChildBinariesResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**ChildBinariesResponse**](ChildBinariesResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseCollectionBinariesUpdateResponse.md b/docs/BaseResponseCollectionBinariesUpdateResponse.md index 2244ac3..04cfcae 100644 --- a/docs/BaseResponseCollectionBinariesUpdateResponse.md +++ b/docs/BaseResponseCollectionBinariesUpdateResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**CollectionBinariesUpdateResponse**](CollectionBinariesUpdateResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseCollectionResponse.md b/docs/BaseResponseCollectionResponse.md index 9a243db..bb36a16 100644 --- a/docs/BaseResponseCollectionResponse.md +++ b/docs/BaseResponseCollectionResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**CollectionResponse**](CollectionResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseCollectionSearchResponse.md b/docs/BaseResponseCollectionSearchResponse.md index c3d501b..2eb72b4 100644 --- a/docs/BaseResponseCollectionSearchResponse.md +++ b/docs/BaseResponseCollectionSearchResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**CollectionSearchResponse**](CollectionSearchResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseCollectionTagsUpdateResponse.md b/docs/BaseResponseCollectionTagsUpdateResponse.md index deff6af..1973980 100644 --- a/docs/BaseResponseCollectionTagsUpdateResponse.md +++ b/docs/BaseResponseCollectionTagsUpdateResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**CollectionTagsUpdateResponse**](CollectionTagsUpdateResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseCommentResponse.md b/docs/BaseResponseCommentResponse.md index 03e1958..0694113 100644 --- a/docs/BaseResponseCommentResponse.md +++ b/docs/BaseResponseCommentResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**CommentResponse**](CommentResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseCommunities.md b/docs/BaseResponseCommunities.md index 4021629..c190ef1 100644 --- a/docs/BaseResponseCommunities.md +++ b/docs/BaseResponseCommunities.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**Communities**](Communities.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseConfigResponse.md b/docs/BaseResponseConfigResponse.md index de1aeb8..c23f959 100644 --- a/docs/BaseResponseConfigResponse.md +++ b/docs/BaseResponseConfigResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**ConfigResponse**](ConfigResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseCreated.md b/docs/BaseResponseCreated.md index f6f19eb..eca4fdd 100644 --- a/docs/BaseResponseCreated.md +++ b/docs/BaseResponseCreated.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**Created**](Created.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseDict.md b/docs/BaseResponseDict.md index a81c6de..d72c313 100644 --- a/docs/BaseResponseDict.md +++ b/docs/BaseResponseDict.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | **Dict[str, object]** | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseDynamicExecutionStatus.md b/docs/BaseResponseDynamicExecutionStatus.md index 50e6a09..7f996e2 100644 --- a/docs/BaseResponseDynamicExecutionStatus.md +++ b/docs/BaseResponseDynamicExecutionStatus.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**AppServicesDynamicExecutionSchemasDynamicExecutionStatus**](AppServicesDynamicExecutionSchemasDynamicExecutionStatus.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseExternalResponse.md b/docs/BaseResponseExternalResponse.md index 0e99a0c..482a3fe 100644 --- a/docs/BaseResponseExternalResponse.md +++ b/docs/BaseResponseExternalResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**ExternalResponse**](ExternalResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseFunctionBlocksResponse.md b/docs/BaseResponseFunctionBlocksResponse.md index 44bae60..472e40d 100644 --- a/docs/BaseResponseFunctionBlocksResponse.md +++ b/docs/BaseResponseFunctionBlocksResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**FunctionBlocksResponse**](FunctionBlocksResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseFunctionCapabilityResponse.md b/docs/BaseResponseFunctionCapabilityResponse.md index fce8ac0..96c50b1 100644 --- a/docs/BaseResponseFunctionCapabilityResponse.md +++ b/docs/BaseResponseFunctionCapabilityResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**FunctionCapabilityResponse**](FunctionCapabilityResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseFunctionDataTypes.md b/docs/BaseResponseFunctionDataTypes.md index f0bc91e..40fdb04 100644 --- a/docs/BaseResponseFunctionDataTypes.md +++ b/docs/BaseResponseFunctionDataTypes.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**FunctionDataTypes**](FunctionDataTypes.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseFunctionDataTypesList.md b/docs/BaseResponseFunctionDataTypesList.md index b399140..b4c8727 100644 --- a/docs/BaseResponseFunctionDataTypesList.md +++ b/docs/BaseResponseFunctionDataTypesList.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**FunctionDataTypesList**](FunctionDataTypesList.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseFunctionSearchResponse.md b/docs/BaseResponseFunctionSearchResponse.md index c868a83..f4e0506 100644 --- a/docs/BaseResponseFunctionSearchResponse.md +++ b/docs/BaseResponseFunctionSearchResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**FunctionSearchResponse**](FunctionSearchResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseFunctionStringsResponse.md b/docs/BaseResponseFunctionStringsResponse.md index c1ef50b..9072cc5 100644 --- a/docs/BaseResponseFunctionStringsResponse.md +++ b/docs/BaseResponseFunctionStringsResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**FunctionStringsResponse**](FunctionStringsResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseFunctionTaskResponse.md b/docs/BaseResponseFunctionTaskResponse.md index 72b78c2..e20d6a7 100644 --- a/docs/BaseResponseFunctionTaskResponse.md +++ b/docs/BaseResponseFunctionTaskResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**FunctionTaskResponse**](FunctionTaskResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseFunctionsDetailResponse.md b/docs/BaseResponseFunctionsDetailResponse.md index cdfae9a..9b8c645 100644 --- a/docs/BaseResponseFunctionsDetailResponse.md +++ b/docs/BaseResponseFunctionsDetailResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**FunctionsDetailResponse**](FunctionsDetailResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseGenerateFunctionDataTypes.md b/docs/BaseResponseGenerateFunctionDataTypes.md index 2d74b8e..753f6f2 100644 --- a/docs/BaseResponseGenerateFunctionDataTypes.md +++ b/docs/BaseResponseGenerateFunctionDataTypes.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**GenerateFunctionDataTypes**](GenerateFunctionDataTypes.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseGenerationStatusList.md b/docs/BaseResponseGenerationStatusList.md index d2e7600..c1f709e 100644 --- a/docs/BaseResponseGenerationStatusList.md +++ b/docs/BaseResponseGenerationStatusList.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**GenerationStatusList**](GenerationStatusList.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseGetAiDecompilationRatingResponse.md b/docs/BaseResponseGetAiDecompilationRatingResponse.md index 26e9f15..ce8d001 100644 --- a/docs/BaseResponseGetAiDecompilationRatingResponse.md +++ b/docs/BaseResponseGetAiDecompilationRatingResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**GetAiDecompilationRatingResponse**](GetAiDecompilationRatingResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseGetAiDecompilationTask.md b/docs/BaseResponseGetAiDecompilationTask.md index ebd36f7..859eb77 100644 --- a/docs/BaseResponseGetAiDecompilationTask.md +++ b/docs/BaseResponseGetAiDecompilationTask.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**GetAiDecompilationTask**](GetAiDecompilationTask.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseGetMeResponse.md b/docs/BaseResponseGetMeResponse.md index da9a532..844d376 100644 --- a/docs/BaseResponseGetMeResponse.md +++ b/docs/BaseResponseGetMeResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**GetMeResponse**](GetMeResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseGetPublicUserResponse.md b/docs/BaseResponseGetPublicUserResponse.md index 9eb3808..6e650c3 100644 --- a/docs/BaseResponseGetPublicUserResponse.md +++ b/docs/BaseResponseGetPublicUserResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**GetPublicUserResponse**](GetPublicUserResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseListCalleesCallerFunctionsResponse.md b/docs/BaseResponseListCalleesCallerFunctionsResponse.md index 8efc2ee..89c2e43 100644 --- a/docs/BaseResponseListCalleesCallerFunctionsResponse.md +++ b/docs/BaseResponseListCalleesCallerFunctionsResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**List[CalleesCallerFunctionsResponse]**](CalleesCallerFunctionsResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseListCollectionResults.md b/docs/BaseResponseListCollectionResults.md index ede746f..86547f8 100644 --- a/docs/BaseResponseListCollectionResults.md +++ b/docs/BaseResponseListCollectionResults.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**ListCollectionResults**](ListCollectionResults.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseListCommentResponse.md b/docs/BaseResponseListCommentResponse.md index da2e08b..55e5437 100644 --- a/docs/BaseResponseListCommentResponse.md +++ b/docs/BaseResponseListCommentResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**List[CommentResponse]**](CommentResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseListDieMatch.md b/docs/BaseResponseListDieMatch.md index 134de33..1440185 100644 --- a/docs/BaseResponseListDieMatch.md +++ b/docs/BaseResponseListDieMatch.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**List[DieMatch]**](DieMatch.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseListFunctionNameHistory.md b/docs/BaseResponseListFunctionNameHistory.md index e79ba2c..cf0884f 100644 --- a/docs/BaseResponseListFunctionNameHistory.md +++ b/docs/BaseResponseListFunctionNameHistory.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**List[FunctionNameHistory]**](FunctionNameHistory.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseListSBOM.md b/docs/BaseResponseListSBOM.md index d210c5e..c466668 100644 --- a/docs/BaseResponseListSBOM.md +++ b/docs/BaseResponseListSBOM.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**List[SBOM]**](SBOM.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseListUserActivityResponse.md b/docs/BaseResponseListUserActivityResponse.md index a2846d2..7ab5e64 100644 --- a/docs/BaseResponseListUserActivityResponse.md +++ b/docs/BaseResponseListUserActivityResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**List[UserActivityResponse]**](UserActivityResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseLoginResponse.md b/docs/BaseResponseLoginResponse.md index bc053d2..f8efb48 100644 --- a/docs/BaseResponseLoginResponse.md +++ b/docs/BaseResponseLoginResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**LoginResponse**](LoginResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseLogs.md b/docs/BaseResponseLogs.md index 608297d..c71051d 100644 --- a/docs/BaseResponseLogs.md +++ b/docs/BaseResponseLogs.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**Logs**](Logs.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseModelsResponse.md b/docs/BaseResponseModelsResponse.md index 8d8a035..1f196d4 100644 --- a/docs/BaseResponseModelsResponse.md +++ b/docs/BaseResponseModelsResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**ModelsResponse**](ModelsResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseNetworkOverviewResponse.md b/docs/BaseResponseNetworkOverviewResponse.md index e749d9b..f4b3ff3 100644 --- a/docs/BaseResponseNetworkOverviewResponse.md +++ b/docs/BaseResponseNetworkOverviewResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**NetworkOverviewResponse**](NetworkOverviewResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseParams.md b/docs/BaseResponseParams.md index 9cc7db9..d785cf3 100644 --- a/docs/BaseResponseParams.md +++ b/docs/BaseResponseParams.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**Params**](Params.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponsePipelineStatusResponse.md b/docs/BaseResponsePipelineStatusResponse.md index a934895..16eb235 100644 --- a/docs/BaseResponsePipelineStatusResponse.md +++ b/docs/BaseResponsePipelineStatusResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**PipelineStatusResponse**](PipelineStatusResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseProcessDumps.md b/docs/BaseResponseProcessDumps.md index 2e6257b..69c7efe 100644 --- a/docs/BaseResponseProcessDumps.md +++ b/docs/BaseResponseProcessDumps.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**ProcessDumps**](ProcessDumps.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseProcessRegistry.md b/docs/BaseResponseProcessRegistry.md index 47975ab..2247d38 100644 --- a/docs/BaseResponseProcessRegistry.md +++ b/docs/BaseResponseProcessRegistry.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**ProcessRegistry**](ProcessRegistry.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseProcessTree.md b/docs/BaseResponseProcessTree.md index 2c4e2eb..dc1730e 100644 --- a/docs/BaseResponseProcessTree.md +++ b/docs/BaseResponseProcessTree.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**ProcessTree**](ProcessTree.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseQueuedSecurityChecksTaskResponse.md b/docs/BaseResponseQueuedSecurityChecksTaskResponse.md index d6419ee..7fe7160 100644 --- a/docs/BaseResponseQueuedSecurityChecksTaskResponse.md +++ b/docs/BaseResponseQueuedSecurityChecksTaskResponse.md @@ -5,11 +5,11 @@ 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] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseRecent.md b/docs/BaseResponseRecent.md index 8d0fb0e..fe0c6d9 100644 --- a/docs/BaseResponseRecent.md +++ b/docs/BaseResponseRecent.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**Recent**](Recent.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseSecurityChecksResponse.md b/docs/BaseResponseSecurityChecksResponse.md index 99af4dc..1b55812 100644 --- a/docs/BaseResponseSecurityChecksResponse.md +++ b/docs/BaseResponseSecurityChecksResponse.md @@ -5,11 +5,11 @@ 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] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseStatus.md b/docs/BaseResponseStatus.md index e1bc794..1fea1f5 100644 --- a/docs/BaseResponseStatus.md +++ b/docs/BaseResponseStatus.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**StatusOutput**](StatusOutput.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseStr.md b/docs/BaseResponseStr.md index 746258b..fbf38ea 100644 --- a/docs/BaseResponseStr.md +++ b/docs/BaseResponseStr.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | **str** | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseTTPS.md b/docs/BaseResponseTTPS.md index 584f6c8..2c26534 100644 --- a/docs/BaseResponseTTPS.md +++ b/docs/BaseResponseTTPS.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**TTPS**](TTPS.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseTagSearchResponse.md b/docs/BaseResponseTagSearchResponse.md index e93abbe..25486f7 100644 --- a/docs/BaseResponseTagSearchResponse.md +++ b/docs/BaseResponseTagSearchResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**TagSearchResponse**](TagSearchResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseTaskResponse.md b/docs/BaseResponseTaskResponse.md index 471dabc..70402d0 100644 --- a/docs/BaseResponseTaskResponse.md +++ b/docs/BaseResponseTaskResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**TaskResponse**](TaskResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseUploadResponse.md b/docs/BaseResponseUploadResponse.md index 1c53476..07ac98c 100644 --- a/docs/BaseResponseUploadResponse.md +++ b/docs/BaseResponseUploadResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**UploadResponse**](UploadResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseVulnerabilities.md b/docs/BaseResponseVulnerabilities.md index 2461c0c..c40b354 100644 --- a/docs/BaseResponseVulnerabilities.md +++ b/docs/BaseResponseVulnerabilities.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**Vulnerabilities**](Vulnerabilities.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/BaseResponseXrefResponse.md b/docs/BaseResponseXrefResponse.md index 66fb9d4..5306be2 100644 --- a/docs/BaseResponseXrefResponse.md +++ b/docs/BaseResponseXrefResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] **data** | [**XrefResponse**](XrefResponse.md) | | [optional] -**message** | **str** | | [optional] **errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**message** | **str** | | [optional] **meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] ## Example diff --git a/docs/Basic.md b/docs/Basic.md index 3532b10..3143fbf 100644 --- a/docs/Basic.md +++ b/docs/Basic.md @@ -5,23 +5,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**analysis_scope** | **str** | The scope of the analysis | +**base_address** | **int** | | **binary_id** | **int** | The ID of the binary | **binary_name** | **str** | The name of the binary uploaded | **binary_size** | **int** | The size of the binary uploaded (bytes) | +**binary_uuid** | **str** | | [optional] **creation** | **datetime** | When the binary was uploaded | -**sha_256_hash** | **str** | The hash of the binary uploaded | -**model_name** | **str** | The model name used for analysis | -**model_id** | **int** | The model ID used for analysis | -**owner_username** | **str** | The name of the owner of the binary | -**is_system** | **bool** | Whether the analysis is a system analysis | -**analysis_scope** | **str** | The scope of the analysis | -**is_owner** | **bool** | Whether the current user is the owner | **debug** | **bool** | Whether the current analysis was analysed with debug symbols | **function_count** | **int** | The number of functions in the binary | **is_advanced** | **bool** | Whether the analysis was advanced | -**base_address** | **int** | | -**binary_uuid** | **str** | | [optional] +**is_owner** | **bool** | Whether the current user is the owner | +**is_system** | **bool** | Whether the analysis is a system analysis | +**model_id** | **int** | The model ID used for analysis | +**model_name** | **str** | The model name used for analysis | +**owner_username** | **str** | The name of the owner of the binary | **sequencer_version** | **str** | | [optional] +**sha_256_hash** | **str** | The hash of the binary uploaded | ## Example diff --git a/docs/BinariesApi.md b/docs/BinariesApi.md index d7b4504..23345df 100644 --- a/docs/BinariesApi.md +++ b/docs/BinariesApi.md @@ -633,8 +633,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | -**422** | Invalid request parameters | - | **403** | Forbidden | - | +**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/BinaryAdditionalDetailsDataResponse.md b/docs/BinaryAdditionalDetailsDataResponse.md index 45d20fe..f0511b3 100644 --- a/docs/BinaryAdditionalDetailsDataResponse.md +++ b/docs/BinaryAdditionalDetailsDataResponse.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**elf** | [**ELFModel**](ELFModel.md) | | [optional] **file** | [**FileMetadata**](FileMetadata.md) | | **pe** | [**PEModel**](PEModel.md) | | [optional] -**elf** | [**ELFModel**](ELFModel.md) | | [optional] ## Example diff --git a/docs/BinaryAdditionalResponse.md b/docs/BinaryAdditionalResponse.md index 5439b2d..e48b5c7 100644 --- a/docs/BinaryAdditionalResponse.md +++ b/docs/BinaryAdditionalResponse.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **binary_id** | **int** | | -**details** | [**BinaryAdditionalDetailsDataResponse**](BinaryAdditionalDetailsDataResponse.md) | | **creation** | **datetime** | | [optional] +**details** | [**BinaryAdditionalDetailsDataResponse**](BinaryAdditionalDetailsDataResponse.md) | | ## Example diff --git a/docs/BinaryConfig.md b/docs/BinaryConfig.md index 0a90a8b..0664494 100644 --- a/docs/BinaryConfig.md +++ b/docs/BinaryConfig.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**file_format** | [**FileFormat**](FileFormat.md) | | [optional] **isa** | [**ISA**](ISA.md) | | [optional] **platform** | [**Platform**](Platform.md) | | [optional] -**file_format** | [**FileFormat**](FileFormat.md) | | [optional] ## Example diff --git a/docs/BinaryDetailsResponse.md b/docs/BinaryDetailsResponse.md index 3f27967..3eefc4f 100644 --- a/docs/BinaryDetailsResponse.md +++ b/docs/BinaryDetailsResponse.md @@ -5,15 +5,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**var_class** | **str** | | **arch** | **str** | The architecture of the binary | **bits** | **int** | The size of the binary in bits | **crc32** | **str** | | -**var_class** | **str** | | +**debug** | **bool** | | **entropy** | **float** | | **file_size** | **int** | | +**first_seen** | **datetime** | | **language** | **str** | | -**md5** | **str** | | **machine** | **str** | | +**md5** | **str** | | **os** | **str** | OS target of the binary | **sha1** | **str** | SHA1 hash of the binary | **sha256** | **str** | SHA256 hash of the binary | @@ -23,8 +25,6 @@ Name | Type | Description | Notes **sub_sys** | **str** | | **tlsh** | **str** | | **type** | **str** | | -**debug** | **bool** | | -**first_seen** | **datetime** | | ## Example diff --git a/docs/BinaryExternalsResponse.md b/docs/BinaryExternalsResponse.md index 6eb0df6..99c8d2e 100644 --- a/docs/BinaryExternalsResponse.md +++ b/docs/BinaryExternalsResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**mb** | **Dict[str, object]** | MalwareBazaar information | +**mb_last_updated** | **datetime** | MalwareBazaar last updated date | **sha_256_hash** | **str** | SHA256 hash of the binary | **vt** | **Dict[str, object]** | VirusTotal information | **vt_last_updated** | **datetime** | VirusTotal last updated date | -**mb** | **Dict[str, object]** | MalwareBazaar information | -**mb_last_updated** | **datetime** | MalwareBazaar last updated date | ## Example diff --git a/docs/BinarySearchResult.md b/docs/BinarySearchResult.md index 2804867..ae3d2bb 100644 --- a/docs/BinarySearchResult.md +++ b/docs/BinarySearchResult.md @@ -5,15 +5,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**analysis_id** | **int** | The analysis ID | **binary_id** | **int** | The binary ID | **binary_name** | **str** | The name of the binary | -**analysis_id** | **int** | The analysis ID | -**sha_256_hash** | **str** | The SHA-256 hash of the binary | -**tags** | **List[str]** | | **created_at** | **datetime** | The creation date of the binary | **model_id** | **int** | The model ID of the binary | **model_name** | **str** | The name of the model | **owned_by** | **str** | The owner of the binary | +**sha_256_hash** | **str** | The SHA-256 hash of the binary | +**tags** | **List[str]** | | ## Example diff --git a/docs/CalleeFunctionInfo.md b/docs/CalleeFunctionInfo.md index 419844d..8520c34 100644 --- a/docs/CalleeFunctionInfo.md +++ b/docs/CalleeFunctionInfo.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**function_id** | **int** | Unique identifier of the function | -**matched_function_id** | **int** | | -**dashboard_url** | **str** | | -**is_external** | **bool** | Indicates if the function is external | [optional] [default to False] **callee_name** | **str** | Name of the called function | **callee_vaddr** | **str** | Virtual address of the called function | +**dashboard_url** | **str** | | +**function_id** | **int** | Unique identifier of the function | +**is_external** | **bool** | Indicates if the function is external | [optional] [default to False] +**matched_function_id** | **int** | | ## Example diff --git a/docs/CallerFunctionInfo.md b/docs/CallerFunctionInfo.md index 18822ef..e2b0241 100644 --- a/docs/CallerFunctionInfo.md +++ b/docs/CallerFunctionInfo.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**function_id** | **int** | Unique identifier of the function | -**matched_function_id** | **int** | | -**dashboard_url** | **str** | | -**is_external** | **bool** | Indicates if the function is external | [optional] [default to False] **caller_name** | **str** | Name of the calling function | **caller_vaddr** | **str** | Virtual address of the calling function | +**dashboard_url** | **str** | | +**function_id** | **int** | Unique identifier of the function | +**is_external** | **bool** | Indicates if the function is external | [optional] [default to False] +**matched_function_id** | **int** | | ## Example diff --git a/docs/Capability.md b/docs/Capability.md index dd222ff..a8357ab 100644 --- a/docs/Capability.md +++ b/docs/Capability.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**capabilities** | **List[str]** | The list of capabilities associated with the function | **function_name** | **str** | The name of the function with a capability | **function_vaddr** | **int** | The virtual address of the function where the capability comes from | -**capabilities** | **List[str]** | The list of capabilities associated with the function | ## Example diff --git a/docs/CodeSignatureModel.md b/docs/CodeSignatureModel.md index 778d585..ae53b7a 100644 --- a/docs/CodeSignatureModel.md +++ b/docs/CodeSignatureModel.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**signatures** | [**List[SingleCodeSignatureModel]**](SingleCodeSignatureModel.md) | | **signed** | **bool** | | **valid_signature** | **bool** | | -**signatures** | [**List[SingleCodeSignatureModel]**](SingleCodeSignatureModel.md) | | ## Example diff --git a/docs/CollectionBinaryResponse.md b/docs/CollectionBinaryResponse.md index 50b2e06..4552849 100644 --- a/docs/CollectionBinaryResponse.md +++ b/docs/CollectionBinaryResponse.md @@ -8,10 +8,10 @@ Name | Type | Description | Notes **analysis_id** | **int** | Analysis ID | **binary_id** | **int** | Binary ID | **binary_name** | **str** | Binary name | -**owner_id** | **int** | Binary owner | -**sha_256_hash** | **str** | Binary SHA-256 hash | **created_at** | **datetime** | Binary creation date | **is_system_analysis** | **bool** | Is the analysis owned by a RevEng.AI account | +**owner_id** | **int** | Binary owner | +**sha_256_hash** | **str** | Binary SHA-256 hash | ## Example diff --git a/docs/CollectionCreateRequest.md b/docs/CollectionCreateRequest.md index b2f2d67..baeb8b3 100644 --- a/docs/CollectionCreateRequest.md +++ b/docs/CollectionCreateRequest.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**binaries** | **List[int]** | | [optional] **collection_name** | **str** | | -**description** | **str** | | **collection_scope** | [**CollectionScope**](CollectionScope.md) | | [optional] -**tags** | **List[str]** | | [optional] -**binaries** | **List[int]** | | [optional] +**description** | **str** | | **model_id** | **int** | | +**tags** | **List[str]** | | [optional] ## Example diff --git a/docs/CollectionListItem.md b/docs/CollectionListItem.md index ca70790..749415e 100644 --- a/docs/CollectionListItem.md +++ b/docs/CollectionListItem.md @@ -5,16 +5,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**collection_id** | **int** | The ID of the collection | **collection_name** | **str** | The name of the collection | -**description** | **str** | The description of the collection | -**collection_scope** | **str** | The scope of the collection | **collection_owner** | **str** | The owner of the collection | -**official_collection** | **bool** | Whether the collection is maintained by RevEng.AI | -**collection_tags** | **List[str]** | The tags of the collection | [optional] [default to []] +**collection_scope** | **str** | The scope of the collection | **collection_size** | **int** | The size of the collection | -**collection_id** | **int** | The ID of the collection | +**collection_tags** | **List[str]** | The tags of the collection | [optional] [default to []] **creation** | **datetime** | The datetime of when the collection was created | +**description** | **str** | The description of the collection | **model_name** | **str** | The model being used for the collection | +**official_collection** | **bool** | Whether the collection is maintained by RevEng.AI | **team_id** | **int** | | [optional] ## Example diff --git a/docs/CollectionResponse.md b/docs/CollectionResponse.md index 4d22410..6eccce0 100644 --- a/docs/CollectionResponse.md +++ b/docs/CollectionResponse.md @@ -5,17 +5,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**binaries** | [**List[CollectionResponseBinariesInner]**](CollectionResponseBinariesInner.md) | | [optional] **collection_id** | **int** | Collection ID | **collection_name** | **str** | Collection name | +**collection_scope** | [**CollectionScope**](CollectionScope.md) | Collection public status | +**created_at** | **datetime** | Collection creation date | **description** | **str** | Collection description | **model_id** | **int** | Collection model ID | -**user_id** | **int** | Collection user ID | +**tags** | **List[str]** | | [optional] **team_id** | **int** | | [optional] -**collection_scope** | [**CollectionScope**](CollectionScope.md) | Collection public status | -**created_at** | **datetime** | Collection creation date | **updated_at** | **datetime** | Collection last update date | -**tags** | **List[str]** | | [optional] -**binaries** | [**List[CollectionResponseBinariesInner]**](CollectionResponseBinariesInner.md) | | [optional] +**user_id** | **int** | Collection user ID | ## Example diff --git a/docs/CollectionResponseBinariesInner.md b/docs/CollectionResponseBinariesInner.md index b8bfd04..5fa5711 100644 --- a/docs/CollectionResponseBinariesInner.md +++ b/docs/CollectionResponseBinariesInner.md @@ -8,10 +8,10 @@ Name | Type | Description | Notes **analysis_id** | **int** | Analysis ID | **binary_id** | **int** | Binary ID | **binary_name** | **str** | Binary name | -**owner_id** | **int** | Binary owner | -**sha_256_hash** | **str** | Binary SHA-256 hash | **created_at** | **datetime** | Binary creation date | **is_system_analysis** | **bool** | Is the analysis owned by a RevEng.AI account | +**owner_id** | **int** | Binary owner | +**sha_256_hash** | **str** | Binary SHA-256 hash | ## Example diff --git a/docs/CollectionSearchResult.md b/docs/CollectionSearchResult.md index 7d990dc..e5533fa 100644 --- a/docs/CollectionSearchResult.md +++ b/docs/CollectionSearchResult.md @@ -7,15 +7,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **collection_id** | **int** | The ID of the collection | **collection_name** | **str** | The name of the collection | -**scope** | **str** | The scope of the collection | -**last_updated_at** | **datetime** | The last update date of the collection | **created_at** | **datetime** | The creation date of the collection | +**description** | **str** | The description of the collection | +**last_updated_at** | **datetime** | The last update date of the collection | **model_id** | **int** | The model ID of the binary | **model_name** | **str** | The name of the model | **owned_by** | **str** | The owner of the collection | -**tags** | **List[str]** | | [optional] +**scope** | **str** | The scope of the collection | **size** | **int** | | [optional] -**description** | **str** | The description of the collection | +**tags** | **List[str]** | | [optional] **team_id** | **int** | | [optional] ## Example diff --git a/docs/CollectionUpdateRequest.md b/docs/CollectionUpdateRequest.md index 6339c99..dfc371d 100644 --- a/docs/CollectionUpdateRequest.md +++ b/docs/CollectionUpdateRequest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **collection_name** | **str** | | [optional] -**description** | **str** | | [optional] **collection_scope** | [**CollectionScope**](CollectionScope.md) | | [optional] +**description** | **str** | | [optional] ## Example diff --git a/docs/CommentResponse.md b/docs/CommentResponse.md index 46c926d..96ca04a 100644 --- a/docs/CommentResponse.md +++ b/docs/CommentResponse.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **content** | **str** | Comment text content | -**id** | **int** | | -**user_id** | **int** | | -**resource_type** | **str** | | -**resource_id** | **str** | | **context** | [**Context**](Context.md) | | [optional] **created_at** | **datetime** | | +**id** | **int** | | +**resource_id** | **str** | | +**resource_type** | **str** | | **updated_at** | **datetime** | | +**user_id** | **int** | | ## Example diff --git a/docs/Communities.md b/docs/Communities.md index 530ba5a..1220ff7 100644 --- a/docs/Communities.md +++ b/docs/Communities.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**total_functions** | **int** | The total number of matched community functions | -**total_matched_functions** | **int** | The total number of functions in the binary | **direct_community_match_percentages** | [**List[CommunityMatchPercentages]**](CommunityMatchPercentages.md) | The list of directly matched communities | **top_components** | **List[Dict[str, object]]** | The top components of the binary | +**total_functions** | **int** | The total number of matched community functions | +**total_matched_functions** | **int** | The total number of functions in the binary | ## Example diff --git a/docs/CommunityMatchPercentages.md b/docs/CommunityMatchPercentages.md index dbef60d..64e38b3 100644 --- a/docs/CommunityMatchPercentages.md +++ b/docs/CommunityMatchPercentages.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**binary_name** | **str** | | **binary_id** | **int** | | +**binary_name** | **str** | | **matched_communities_percent** | **float** | | **unmatched_communities_percent** | **float** | | diff --git a/docs/ConfigResponse.md b/docs/ConfigResponse.md index 7ef4619..2619be6 100644 --- a/docs/ConfigResponse.md +++ b/docs/ConfigResponse.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**ai_decompiler_supported_models** | **List[str]** | List of models that support AI decompilation | +**ai_decompiler_unsupported_languages** | **List[str]** | List of programming languages that are not supported for AI decompilation | **dashboard_url** | **str** | The domain of the RevEng.AI platform you are connected to | [optional] [default to ''] **max_file_size_bytes** | **int** | Maximum file size (in bytes) that can be uploaded for analysis | -**ai_decompiler_unsupported_languages** | **List[str]** | List of programming languages that are not supported for AI decompilation | -**ai_decompiler_supported_models** | **List[str]** | List of models that support AI decompilation | ## Example diff --git a/docs/Context.md b/docs/Context.md index e2cb61f..86da644 100644 --- a/docs/Context.md +++ b/docs/Context.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**start_line** | **int** | | **end_line** | **int** | | +**start_line** | **int** | | ## Example diff --git a/docs/DecompilationCommentContext.md b/docs/DecompilationCommentContext.md index 7088247..538265a 100644 --- a/docs/DecompilationCommentContext.md +++ b/docs/DecompilationCommentContext.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**start_line** | **int** | | **end_line** | **int** | | +**start_line** | **int** | | ## Example diff --git a/docs/DieMatch.md b/docs/DieMatch.md index eb88b3c..b19f70a 100644 --- a/docs/DieMatch.md +++ b/docs/DieMatch.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**display** | **str** | Human-readable description from DIE's 'string' field; suitable for UI/logs, not for parsing. | **name** | **str** | Canonical name of the matched signature/technology (e.g., 'UPX', 'GCC', 'MSVC'). | **type** | **str** | Category assigned by DIE for the match (e.g., 'compiler', 'packer', 'file'). | -**display** | **str** | Human-readable description from DIE's 'string' field; suitable for UI/logs, not for parsing. | **version** | **str** | Extracted version string when available; may be empty/None if unknown. | ## Example diff --git a/docs/ELFImportModel.md b/docs/ELFImportModel.md index 9ac0957..2973af1 100644 --- a/docs/ELFImportModel.md +++ b/docs/ELFImportModel.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**number_of_imports** | **int** | | **imports** | **List[str]** | | +**number_of_imports** | **int** | | ## Example diff --git a/docs/ELFModel.md b/docs/ELFModel.md index d899a07..708d3ac 100644 --- a/docs/ELFModel.md +++ b/docs/ELFModel.md @@ -5,25 +5,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**file_type** | **str** | | **architecture** | **str** | | +**build_id** | **str** | | +**debug_info** | **Dict[str, object]** | | +**dynamic_entries** | [**List[ElfDynamicEntry]**](ElfDynamicEntry.md) | | +**dynamic_symbols** | [**List[ELFSymbol]**](ELFSymbol.md) | | **endianness** | **str** | | **entry_point** | **int** | | **entry_point_bytes** | **str** | | -**import_hash** | **str** | | **export_hash** | **str** | | -**build_id** | **str** | | -**security** | [**ELFSecurity**](ELFSecurity.md) | | +**exported_functions** | **List[str]** | | +**file_type** | **str** | | +**import_hash** | **str** | | +**imports** | [**ELFImportModel**](ELFImportModel.md) | | +**notes** | **List[Dict[str, object]]** | | +**relocations** | [**List[ELFRelocation]**](ELFRelocation.md) | | **sections** | [**List[ELFSection]**](ELFSection.md) | | +**security** | [**ELFSecurity**](ELFSecurity.md) | | **segments** | [**List[ELFSegment]**](ELFSegment.md) | | **symbols** | [**List[ELFSymbol]**](ELFSymbol.md) | | -**dynamic_symbols** | [**List[ELFSymbol]**](ELFSymbol.md) | | -**relocations** | [**List[ELFRelocation]**](ELFRelocation.md) | | -**imports** | [**ELFImportModel**](ELFImportModel.md) | | -**exported_functions** | **List[str]** | | -**dynamic_entries** | [**List[ElfDynamicEntry]**](ElfDynamicEntry.md) | | -**notes** | **List[Dict[str, object]]** | | -**debug_info** | **Dict[str, object]** | | **version_info** | **Dict[str, object]** | | ## Example diff --git a/docs/ELFRelocation.md b/docs/ELFRelocation.md index eb57829..a04e138 100644 --- a/docs/ELFRelocation.md +++ b/docs/ELFRelocation.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**address** | **int** | | -**type** | **str** | | -**size** | **int** | | **addend** | **int** | | -**symbol_name** | **str** | | +**address** | **int** | | **is_dynamic** | **bool** | | **is_pltgot** | **bool** | | +**size** | **int** | | +**symbol_name** | **str** | | +**type** | **str** | | ## Example diff --git a/docs/ELFSection.md b/docs/ELFSection.md index 8229193..a5f08d6 100644 --- a/docs/ELFSection.md +++ b/docs/ELFSection.md @@ -5,16 +5,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**alignment** | **int** | | +**entropy** | **float** | | +**file_offset** | **int** | | +**flags** | **str** | | +**flags_raw** | **int** | | **name** | **str** | | +**raw_size** | **int** | | **type** | **str** | | **virtual_address** | **int** | | **virtual_size** | **int** | | -**raw_size** | **int** | | -**file_offset** | **int** | | -**flags** | **str** | | -**flags_raw** | **int** | | -**entropy** | **float** | | -**alignment** | **int** | | ## Example diff --git a/docs/ELFSecurity.md b/docs/ELFSecurity.md index 38e4d9b..d9457a2 100644 --- a/docs/ELFSecurity.md +++ b/docs/ELFSecurity.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**pie** | **bool** | | -**stripped** | **bool** | | **canary** | **bool** | | **nx** | **bool** | | +**pie** | **bool** | | **relo** | **bool** | | +**stripped** | **bool** | | ## Example diff --git a/docs/ELFSegment.md b/docs/ELFSegment.md index 5773c6c..a4d463c 100644 --- a/docs/ELFSegment.md +++ b/docs/ELFSegment.md @@ -5,15 +5,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | | -**virtual_address** | **int** | | -**virtual_size** | **int** | | -**physical_address** | **int** | | -**physical_size** | **int** | | +**alignment** | **int** | | **file_offset** | **int** | | **flags** | **str** | | **flags_raw** | **int** | | -**alignment** | **int** | | +**physical_address** | **int** | | +**physical_size** | **int** | | +**type** | **str** | | +**virtual_address** | **int** | | +**virtual_size** | **int** | | ## Example diff --git a/docs/ELFSymbol.md b/docs/ELFSymbol.md index 8fb9168..c2f3fc8 100644 --- a/docs/ELFSymbol.md +++ b/docs/ELFSymbol.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**binding** | **str** | | **name** | **str** | | -**value** | **int** | | +**section_index** | **int** | | **size** | **int** | | **type** | **str** | | -**binding** | **str** | | +**value** | **int** | | **visibility** | **str** | | -**section_index** | **int** | | ## Example diff --git a/docs/Enumeration.md b/docs/Enumeration.md index 6a9d022..f663baf 100644 --- a/docs/Enumeration.md +++ b/docs/Enumeration.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**artifact_type** | **str** | Type of artifact that the enumeration is associated with | [optional] **last_change** | **str** | | [optional] -**name** | **str** | Name of the enumeration | **members** | **Dict[str, int]** | Dictionary of enumeration members and their values | -**artifact_type** | **str** | Type of artifact that the enumeration is associated with | [optional] +**name** | **str** | Name of the enumeration | ## Example diff --git a/docs/ExportModel.md b/docs/ExportModel.md index 2b157d1..0b67477 100644 --- a/docs/ExportModel.md +++ b/docs/ExportModel.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**number_of_exports** | **int** | | **exports** | **List[Dict[str, int]]** | | +**number_of_exports** | **int** | | ## Example diff --git a/docs/ExternalResponse.md b/docs/ExternalResponse.md index 20de996..79aafa9 100644 --- a/docs/ExternalResponse.md +++ b/docs/ExternalResponse.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**sha_256_hash** | **str** | | **data** | **Dict[str, object]** | | **last_updated** | **datetime** | | +**sha_256_hash** | **str** | | ## Example diff --git a/docs/ExternalSourcesApi.md b/docs/ExternalSourcesApi.md index dbae590..7e78bc6 100644 --- a/docs/ExternalSourcesApi.md +++ b/docs/ExternalSourcesApi.md @@ -83,8 +83,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **202** | Successful Response | - | -**422** | Invalid request parameters | - | **409** | Request already queued | - | +**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) @@ -162,8 +162,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | -**422** | Invalid request parameters | - | **404** | No data retrieved from VirusTotal for the given analysis_id | - | +**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/FileHashes.md b/docs/FileHashes.md index 95e2ae1..19bb1f8 100644 --- a/docs/FileHashes.md +++ b/docs/FileHashes.md @@ -8,11 +8,11 @@ Name | Type | Description | Notes **md5** | **str** | | **sha1** | **str** | | **sha256** | **str** | | -**sha512** | **str** | | **sha3_224** | **str** | | **sha3_256** | **str** | | **sha3_384** | **str** | | **sha3_512** | **str** | | +**sha512** | **str** | | ## Example diff --git a/docs/FileMetadata.md b/docs/FileMetadata.md index 474856f..cbee5cf 100644 --- a/docs/FileMetadata.md +++ b/docs/FileMetadata.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**size** | **int** | | -**friendly_size** | **str** | | **entropy** | **float** | | +**friendly_size** | **str** | | **hashes** | [**FileHashes**](FileHashes.md) | | +**size** | **int** | | ## Example diff --git a/docs/FunctionBlockResponse.md b/docs/FunctionBlockResponse.md index 685704d..4698d3d 100644 --- a/docs/FunctionBlockResponse.md +++ b/docs/FunctionBlockResponse.md @@ -6,11 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **asm** | **List[str]** | The ordered assembly strings for this chunk | +**comment** | **str** | | [optional] +**destinations** | [**List[FunctionBlockDestinationResponse]**](FunctionBlockDestinationResponse.md) | The potential execution flow destinations from this block | **id** | **int** | ID of the block | -**min_addr** | **int** | The minimum vaddr of the block | **max_addr** | **int** | The maximum vaddr of the block | -**destinations** | [**List[FunctionBlockDestinationResponse]**](FunctionBlockDestinationResponse.md) | The potential execution flow destinations from this block | -**comment** | **str** | | [optional] +**min_addr** | **int** | The minimum vaddr of the block | ## Example diff --git a/docs/FunctionBlocksResponse.md b/docs/FunctionBlocksResponse.md index f22b327..203ae18 100644 --- a/docs/FunctionBlocksResponse.md +++ b/docs/FunctionBlocksResponse.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **blocks** | [**List[FunctionBlockResponse]**](FunctionBlockResponse.md) | Disassembly is broken into control flow blocks | **local_variables** | [**List[FunctionLocalVariableResponse]**](FunctionLocalVariableResponse.md) | Local variables associated with this function | -**params** | [**List[FunctionParamResponse]**](FunctionParamResponse.md) | Params associated with this function | **overview_comment** | **str** | | +**params** | [**List[FunctionParamResponse]**](FunctionParamResponse.md) | Params associated with this function | ## Example diff --git a/docs/FunctionBoundary.md b/docs/FunctionBoundary.md index d94f0b2..6f65db8 100644 --- a/docs/FunctionBoundary.md +++ b/docs/FunctionBoundary.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**mangled_name** | **str** | | -**start_address** | **int** | | **end_address** | **int** | | **include_in_analysis** | **bool** | | [optional] +**mangled_name** | **str** | | +**start_address** | **int** | | ## Example diff --git a/docs/FunctionDataTypes.md b/docs/FunctionDataTypes.md index 146896e..61b0712 100644 --- a/docs/FunctionDataTypes.md +++ b/docs/FunctionDataTypes.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **completed** | **bool** | Whether the service has completed data types generation | -**status** | **str** | The current status of the data types service | **data_types** | [**FunctionInfoOutput**](FunctionInfoOutput.md) | | [optional] **data_types_version** | **int** | | [optional] +**status** | **str** | The current status of the data types service | ## Example diff --git a/docs/FunctionDataTypesList.md b/docs/FunctionDataTypesList.md index 3153511..7ef6d1d 100644 --- a/docs/FunctionDataTypesList.md +++ b/docs/FunctionDataTypesList.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**items** | [**List[FunctionDataTypesListItem]**](FunctionDataTypesListItem.md) | List of function data types information | **total_count** | **int** | Total number of functions in analysis | [optional] [default to 0] **total_data_types_count** | **int** | Total number of functions with data types | [optional] [default to 0] -**items** | [**List[FunctionDataTypesListItem]**](FunctionDataTypesListItem.md) | List of function data types information | ## Example diff --git a/docs/FunctionDataTypesListItem.md b/docs/FunctionDataTypesListItem.md index 9daf757..c413676 100644 --- a/docs/FunctionDataTypesListItem.md +++ b/docs/FunctionDataTypesListItem.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **completed** | **bool** | Whether the service has completed data types generation | -**status** | **str** | The current status of the data types service | **data_types** | [**FunctionInfoOutput**](FunctionInfoOutput.md) | | [optional] **data_types_version** | **int** | | [optional] **function_id** | **int** | Function id | +**status** | **str** | The current status of the data types service | ## Example diff --git a/docs/FunctionDataTypesStatus.md b/docs/FunctionDataTypesStatus.md index c296426..c931257 100644 --- a/docs/FunctionDataTypesStatus.md +++ b/docs/FunctionDataTypesStatus.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**function_id** | **int** | Function id | **completed** | **bool** | Whether the service has completed data types generation | +**function_id** | **int** | Function id | **status** | **str** | The current status of the data types service | ## Example diff --git a/docs/FunctionHeader.md b/docs/FunctionHeader.md index e0f364e..3b2edec 100644 --- a/docs/FunctionHeader.md +++ b/docs/FunctionHeader.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**addr** | **int** | Memory address of the function | +**args** | [**Dict[str, Argument]**](Argument.md) | Dictionary of function arguments | **last_change** | **str** | | [optional] **name** | **str** | Name of the function | -**addr** | **int** | Memory address of the function | **type** | **str** | Return type of the function | -**args** | [**Dict[str, Argument]**](Argument.md) | Dictionary of function arguments | ## Example diff --git a/docs/FunctionInfoInput.md b/docs/FunctionInfoInput.md index 0b4e882..3275469 100644 --- a/docs/FunctionInfoInput.md +++ b/docs/FunctionInfoInput.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**func_types** | [**FunctionTypeInput**](FunctionTypeInput.md) | | [optional] **func_deps** | [**List[FunctionInfoInputFuncDepsInner]**](FunctionInfoInputFuncDepsInner.md) | List of function dependencies | +**func_types** | [**FunctionTypeInput**](FunctionTypeInput.md) | | [optional] ## Example diff --git a/docs/FunctionInfoInputFuncDepsInner.md b/docs/FunctionInfoInputFuncDepsInner.md index 7a431f1..4e919fa 100644 --- a/docs/FunctionInfoInputFuncDepsInner.md +++ b/docs/FunctionInfoInputFuncDepsInner.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**artifact_type** | **str** | Type of artifact that the global variable is associated with | [optional] **last_change** | **str** | | [optional] +**members** | **Dict[str, int]** | Dictionary of enumeration members and their values | **name** | **str** | Name of the global variable | **size** | **int** | Size of the global variable in bytes | -**members** | **Dict[str, int]** | Dictionary of enumeration members and their values | -**artifact_type** | **str** | Type of artifact that the global variable is associated with | [optional] **type** | **str** | Data type of the global variable | **addr** | **int** | Memory address of the global variable | diff --git a/docs/FunctionInfoOutput.md b/docs/FunctionInfoOutput.md index 4e73bb8..03dc924 100644 --- a/docs/FunctionInfoOutput.md +++ b/docs/FunctionInfoOutput.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**func_types** | [**FunctionTypeOutput**](FunctionTypeOutput.md) | | [optional] **func_deps** | [**List[FunctionInfoInputFuncDepsInner]**](FunctionInfoInputFuncDepsInner.md) | List of function dependencies | +**func_types** | [**FunctionTypeOutput**](FunctionTypeOutput.md) | | [optional] ## Example diff --git a/docs/FunctionListItem.md b/docs/FunctionListItem.md index 36df9b8..f890bc5 100644 --- a/docs/FunctionListItem.md +++ b/docs/FunctionListItem.md @@ -5,14 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**debug** | **bool** | Whether the function has debug information | **id** | **int** | Function id | +**mangled_name** | **str** | Mangled name of the function | **name** | **str** | Name of the function | -**name_source_type** | **str** | The source (process) the function name came from | **name_source** | [**NameSourceType**](NameSourceType.md) | The source of the current function name. | -**mangled_name** | **str** | Mangled name of the function | -**vaddr** | **int** | Function virtual address | +**name_source_type** | **str** | The source (process) the function name came from | **size** | **int** | Function size in bytes | -**debug** | **bool** | Whether the function has debug information | +**vaddr** | **int** | Function virtual address | ## Example diff --git a/docs/FunctionLocalVariableResponse.md b/docs/FunctionLocalVariableResponse.md index 9a967bd..fe23cab 100644 --- a/docs/FunctionLocalVariableResponse.md +++ b/docs/FunctionLocalVariableResponse.md @@ -7,9 +7,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **address** | **str** | | **d_type** | **str** | | -**size** | **int** | | **loc** | **str** | | **name** | **str** | | +**size** | **int** | | ## Example diff --git a/docs/FunctionMappingFull.md b/docs/FunctionMappingFull.md index 057aaa4..cebd0d2 100644 --- a/docs/FunctionMappingFull.md +++ b/docs/FunctionMappingFull.md @@ -5,19 +5,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**inverse_string_map** | [**Dict[str, InverseStringMapItem]**](InverseStringMapItem.md) | | +**fields** | **Dict[str, Dict[str, InverseValue]]** | | **inverse_function_map** | [**Dict[str, InverseFunctionMapItem]**](InverseFunctionMapItem.md) | | -**unmatched_functions** | [**Dict[str, InverseValue]**](InverseValue.md) | | -**unmatched_custom_types** | [**Dict[str, InverseValue]**](InverseValue.md) | | -**unmatched_strings** | [**Dict[str, InverseValue]**](InverseValue.md) | | -**unmatched_vars** | [**Dict[str, InverseValue]**](InverseValue.md) | | -**unmatched_go_to_labels** | [**Dict[str, InverseValue]**](InverseValue.md) | | +**inverse_string_map** | [**Dict[str, InverseStringMapItem]**](InverseStringMapItem.md) | | **unmatched_custom_function_pointers** | [**Dict[str, InverseValue]**](InverseValue.md) | | -**unmatched_variadic_lists** | [**Dict[str, InverseValue]**](InverseValue.md) | | +**unmatched_custom_types** | [**Dict[str, InverseValue]**](InverseValue.md) | | **unmatched_enums** | [**Dict[str, InverseValue]**](InverseValue.md) | | -**unmatched_global_vars** | [**Dict[str, InverseValue]**](InverseValue.md) | | -**fields** | **Dict[str, Dict[str, InverseValue]]** | | **unmatched_external_vars** | [**Dict[str, InverseValue]**](InverseValue.md) | No longer provided. | [optional] +**unmatched_functions** | [**Dict[str, InverseValue]**](InverseValue.md) | | +**unmatched_global_vars** | [**Dict[str, InverseValue]**](InverseValue.md) | | +**unmatched_go_to_labels** | [**Dict[str, InverseValue]**](InverseValue.md) | | +**unmatched_strings** | [**Dict[str, InverseValue]**](InverseValue.md) | | +**unmatched_variadic_lists** | [**Dict[str, InverseValue]**](InverseValue.md) | | +**unmatched_vars** | [**Dict[str, InverseValue]**](InverseValue.md) | | ## Example diff --git a/docs/FunctionMatch.md b/docs/FunctionMatch.md index 7cd06b3..ac65f0b 100644 --- a/docs/FunctionMatch.md +++ b/docs/FunctionMatch.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**confidences** | [**List[NameConfidence]**](NameConfidence.md) | | [optional] **function_id** | **int** | Unique identifier of the function | **matched_functions** | [**List[MatchedFunction]**](MatchedFunction.md) | | -**confidences** | [**List[NameConfidence]**](NameConfidence.md) | | [optional] ## Example diff --git a/docs/FunctionMatchingFilters.md b/docs/FunctionMatchingFilters.md index 5d22de5..72ccd82 100644 --- a/docs/FunctionMatchingFilters.md +++ b/docs/FunctionMatchingFilters.md @@ -7,9 +7,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **binary_ids** | **List[int]** | ID's of binaries to limit the search to, if empty, search all scoped binaries | [optional] [default to []] **collection_ids** | **List[int]** | ID's of collections to limit the search to, if empty, search all scoped collections | [optional] [default to []] +**debug_types** | **List[str]** | Limit the search to specific debug types, if empty, search all scoped debug & non-debug functions | [optional] [default to []] **function_ids** | **List[int]** | ID's of functions to limit the search to, if empty, search all scoped functions | [optional] [default to []] **user_ids** | **List[int]** | ID's of users to limit the search to, if empty, search all scoped users | [optional] [default to []] -**debug_types** | **List[str]** | Limit the search to specific debug types, if empty, search all scoped debug & non-debug functions | [optional] [default to []] ## Example diff --git a/docs/FunctionMatchingRequest.md b/docs/FunctionMatchingRequest.md index 6eba45f..7584ccc 100644 --- a/docs/FunctionMatchingRequest.md +++ b/docs/FunctionMatchingRequest.md @@ -5,15 +5,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**model_id** | **int** | ID of the model used for function matching, used to determine the embedding model | -**function_ids** | **List[int]** | ID's of functions to find matches for, must be at least one function ID | -**min_similarity** | **float** | Minimum similarity expected for a match as a percentage, default is 90 | [optional] [default to 90.0] **filters** | [**FunctionMatchingFilters**](FunctionMatchingFilters.md) | | [optional] -**results_per_function** | **int** | Maximum number of matches to return per function, default is 1, max is 50 | [optional] [default to 1] +**function_ids** | **List[int]** | ID's of functions to find matches for, must be at least one function ID | +**min_similarity** | **float** | Minimum similarity expected for a match as a percentage, default is 90 | [optional] [default to 90] +**model_id** | **int** | ID of the model used for function matching, used to determine the embedding model | +**no_cache** | **bool** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] [default to False] **page** | **int** | Page number for paginated results, default is 1 (first page) | [optional] [default to 1] **page_size** | **int** | Number of functions to return per page, default is 0 (all functions), max is 1000 | [optional] [default to 0] +**results_per_function** | **int** | Maximum number of matches to return per function, default is 1, max is 50 | [optional] [default to 1] **status_only** | **bool** | If set to true, only returns the status of the matching operation without the actual results | [optional] [default to False] -**no_cache** | **bool** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] [default to False] **use_canonical_names** | **bool** | Whether to use canonical function names during function matching for confidence results, default is False | [optional] [default to False] ## Example diff --git a/docs/FunctionMatchingResponse.md b/docs/FunctionMatchingResponse.md index 28b91ef..08f8252 100644 --- a/docs/FunctionMatchingResponse.md +++ b/docs/FunctionMatchingResponse.md @@ -5,15 +5,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**progress** | **int** | Progress of the matching operation, represented as a percentage | [optional] [default to 0] -**status** | **str** | | [optional] -**total_time** | **int** | | [optional] -**error_message** | **str** | | [optional] **current_page** | **int** | | [optional] -**total_pages** | **int** | | [optional] +**error_message** | **str** | | [optional] **matches** | [**List[FunctionMatch]**](FunctionMatch.md) | | [optional] -**num_matches** | **int** | | [optional] **num_debug_matches** | **int** | | [optional] +**num_matches** | **int** | | [optional] +**progress** | **int** | Progress of the matching operation, represented as a percentage | [optional] [default to 0] +**status** | **str** | | [optional] +**total_pages** | **int** | | [optional] +**total_time** | **int** | | [optional] **updated_at** | **str** | | [optional] ## Example diff --git a/docs/FunctionNameHistory.md b/docs/FunctionNameHistory.md index 72675b4..fe568c9 100644 --- a/docs/FunctionNameHistory.md +++ b/docs/FunctionNameHistory.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**history_id** | **int** | The ID of the history record | **change_made_by** | **str** | The user who made the change | +**created_at** | **str** | The timestamp when the function name was created | **function_name** | **str** | The name of the function | -**mangled_name** | **str** | The mangled name of the function | +**history_id** | **int** | The ID of the history record | **is_debug** | **bool** | Whether the function is debugged | +**mangled_name** | **str** | The mangled name of the function | **source_type** | [**FunctionSourceType**](FunctionSourceType.md) | The source type of the function | -**created_at** | **str** | The timestamp when the function name was created | ## Example diff --git a/docs/FunctionParamResponse.md b/docs/FunctionParamResponse.md index 2a156bb..b71d013 100644 --- a/docs/FunctionParamResponse.md +++ b/docs/FunctionParamResponse.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**d_type** | **str** | | -**loc** | **str** | | **addr** | **str** | | +**d_type** | **str** | | **length** | **int** | | +**loc** | **str** | | **name** | **str** | | ## Example diff --git a/docs/FunctionRename.md b/docs/FunctionRename.md index 482ac81..e3d7ee6 100644 --- a/docs/FunctionRename.md +++ b/docs/FunctionRename.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**new_name** | **str** | The new name for the function | **new_mangled_name** | **str** | The new mangled name for the function | +**new_name** | **str** | The new name for the function | ## Example diff --git a/docs/FunctionRenameMap.md b/docs/FunctionRenameMap.md index 3c21185..f81cfd7 100644 --- a/docs/FunctionRenameMap.md +++ b/docs/FunctionRenameMap.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **function_id** | **int** | The ID of the function to rename | -**new_name** | **str** | The new name for the function | **new_mangled_name** | **str** | The new mangled name for the function | +**new_name** | **str** | The new name for the function | ## Example diff --git a/docs/FunctionSearchResult.md b/docs/FunctionSearchResult.md index 92432f6..9d2acb2 100644 --- a/docs/FunctionSearchResult.md +++ b/docs/FunctionSearchResult.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**function_id** | **int** | The function ID | -**function_name** | **str** | The name of the function | **binary_name** | **str** | The name of the binary the function belongs to | **created_at** | **datetime** | The creation date of the function | +**function_id** | **int** | The function ID | +**function_name** | **str** | The name of the function | **model_id** | **int** | The model ID used to analyze the binary the function belongs to | **model_name** | **str** | The name of the model used to analyze the binary the function belongs to | **owned_by** | **str** | The owner of the binary the function belongs to | diff --git a/docs/FunctionString.md b/docs/FunctionString.md index 43384de..70927a8 100644 --- a/docs/FunctionString.md +++ b/docs/FunctionString.md @@ -5,8 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **str** | The value of the string literal | +**source** | [**StringSource**](StringSource.md) | The source of the string | [optional] **vaddr** | **int** | The vaddr of the string value | +**value** | **str** | The value of the string literal | ## Example diff --git a/docs/FunctionTaskResponse.md b/docs/FunctionTaskResponse.md index f063cf6..1bd989f 100644 --- a/docs/FunctionTaskResponse.md +++ b/docs/FunctionTaskResponse.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**FunctionTaskStatus**](FunctionTaskStatus.md) | | [optional] **error_message** | **str** | | [optional] +**status** | [**FunctionTaskStatus**](FunctionTaskStatus.md) | | [optional] ## Example diff --git a/docs/FunctionTypeInput.md b/docs/FunctionTypeInput.md index d3c937e..ff52a7c 100644 --- a/docs/FunctionTypeInput.md +++ b/docs/FunctionTypeInput.md @@ -5,14 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_change** | **str** | | [optional] **addr** | **int** | Memory address of the function | -**size** | **int** | Size of the function in bytes | +**artifact_type** | **str** | Type of artifact that the structure is associated with | [optional] [default to 'Function'] **header** | [**FunctionHeader**](FunctionHeader.md) | Function header information | -**stack_vars** | [**Dict[str, StackVariable]**](StackVariable.md) | | [optional] +**last_change** | **str** | | [optional] **name** | **str** | Name of the function | +**size** | **int** | Size of the function in bytes | +**stack_vars** | [**Dict[str, StackVariable]**](StackVariable.md) | | [optional] **type** | **str** | Return type of the function | -**artifact_type** | **str** | Type of artifact that the structure is associated with | [optional] [default to 'Function'] ## Example diff --git a/docs/FunctionTypeOutput.md b/docs/FunctionTypeOutput.md index 26a7039..9df7694 100644 --- a/docs/FunctionTypeOutput.md +++ b/docs/FunctionTypeOutput.md @@ -5,14 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_change** | **str** | | [optional] **addr** | **int** | Memory address of the function | -**size** | **int** | Size of the function in bytes | +**artifact_type** | **str** | Type of artifact that the structure is associated with | [optional] [default to 'Function'] **header** | [**FunctionHeader**](FunctionHeader.md) | Function header information | -**stack_vars** | [**Dict[str, StackVariable]**](StackVariable.md) | | [optional] +**last_change** | **str** | | [optional] **name** | **str** | Name of the function | +**size** | **int** | Size of the function in bytes | +**stack_vars** | [**Dict[str, StackVariable]**](StackVariable.md) | | [optional] **type** | **str** | Return type of the function | -**artifact_type** | **str** | Type of artifact that the structure is associated with | [optional] [default to 'Function'] ## Example diff --git a/docs/FunctionsAIDecompilationApi.md b/docs/FunctionsAIDecompilationApi.md index 2d9f89e..d80e30b 100644 --- a/docs/FunctionsAIDecompilationApi.md +++ b/docs/FunctionsAIDecompilationApi.md @@ -94,8 +94,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **201** | Successful Response | - | -**422** | Invalid request parameters | - | **400** | Bad Request | - | +**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) @@ -175,11 +175,11 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **201** | Successful Response | - | -**422** | Invalid request parameters | - | -**403** | Forbidden | - | +**400** | Bad Request | - | **402** | Payment Required | - | +**403** | Forbidden | - | **409** | Conflict | - | -**400** | Bad Request | - | +**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) @@ -261,9 +261,9 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | -**422** | Invalid request parameters | - | -**403** | You can only delete your own comments | - | **400** | Bad Request | - | +**403** | You can only delete your own comments | - | +**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) @@ -465,7 +465,7 @@ with revengai.ApiClient(configuration) as api_client: api_instance = revengai.FunctionsAIDecompilationApi(api_client) function_id = 56 # int | The ID of the function being decompiled summarise = True # bool | Generate a summary for the decompilation (optional) (default to True) - generate_inline_comments = True # bool | Generate inline comments for the decompilation (only works if summarise is enabled) (optional) (default to True) + generate_inline_comments = True # bool | Generate inline comments for the decompilation (optional) (default to True) try: # Polls AI Decompilation Process @@ -485,7 +485,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **function_id** | **int**| The ID of the function being decompiled | **summarise** | **bool**| Generate a summary for the decompilation | [optional] [default to True] - **generate_inline_comments** | **bool**| Generate inline comments for the decompilation (only works if summarise is enabled) | [optional] [default to True] + **generate_inline_comments** | **bool**| Generate inline comments for the decompilation | [optional] [default to True] ### Return type @@ -505,8 +505,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | -**422** | Invalid request parameters | - | **403** | Forbidden | - | +**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) @@ -669,9 +669,9 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | -**422** | Invalid request parameters | - | -**403** | You can only update your own comments | - | **400** | Bad Request | - | +**403** | You can only update your own comments | - | +**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/FunctionsCoreApi.md b/docs/FunctionsCoreApi.md index a802cda..b186cf8 100644 --- a/docs/FunctionsCoreApi.md +++ b/docs/FunctionsCoreApi.md @@ -758,8 +758,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | -**422** | Invalid request parameters | - | **404** | Not Found | - | +**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) @@ -993,8 +993,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | -**422** | Invalid request parameters | - | **404** | Not Found | - | +**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/FunctionsDecompilationApi.md b/docs/FunctionsDecompilationApi.md index 5550224..0a42bae 100644 --- a/docs/FunctionsDecompilationApi.md +++ b/docs/FunctionsDecompilationApi.md @@ -89,8 +89,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **201** | Successful Response | - | -**422** | Invalid request parameters | - | **400** | Bad Request | - | +**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) @@ -172,9 +172,9 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | -**422** | Invalid request parameters | - | -**403** | You can only delete your own comments | - | **400** | Bad Request | - | +**403** | You can only delete your own comments | - | +**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) @@ -339,9 +339,9 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | -**422** | Invalid request parameters | - | -**403** | You can only update your own comments | - | **400** | Bad Request | - | +**403** | You can only update your own comments | - | +**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/FunctionsDetailResponse.md b/docs/FunctionsDetailResponse.md index 1e23b1e..45c8420 100644 --- a/docs/FunctionsDetailResponse.md +++ b/docs/FunctionsDetailResponse.md @@ -5,19 +5,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**function_id** | **int** | Function id | -**function_name** | **str** | | -**function_name_mangled** | **str** | | -**function_vaddr** | **int** | | -**function_size** | **int** | | **analysis_id** | **int** | | **binary_id** | **int** | | **binary_name** | **str** | | -**sha_256_hash** | **str** | | -**debug_hash** | **str** | | **debug** | **bool** | | -**embedding_3d** | **List[float]** | | [optional] +**debug_hash** | **str** | | **embedding_1d** | **List[float]** | | [optional] +**embedding_3d** | **List[float]** | | [optional] +**function_id** | **int** | Function id | +**function_name** | **str** | | +**function_name_mangled** | **str** | | +**function_size** | **int** | | +**function_vaddr** | **int** | | +**sha_256_hash** | **str** | | ## Example diff --git a/docs/GenerateFunctionDataTypes.md b/docs/GenerateFunctionDataTypes.md index 9917d9a..d1b51d0 100644 --- a/docs/GenerateFunctionDataTypes.md +++ b/docs/GenerateFunctionDataTypes.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**data_types_list** | [**GenerationStatusList**](GenerationStatusList.md) | List of function data types information that are either already generated, or now queued for generation | **queued** | **bool** | [DEPRECATED] This value has been replaced with the `data_types_list` field | **reference** | **str** | [DEPRECATED] This value has been replaced with the `data_types_list` field | -**data_types_list** | [**GenerationStatusList**](GenerationStatusList.md) | List of function data types information that are either already generated, or now queued for generation | ## Example diff --git a/docs/GenerationStatusList.md b/docs/GenerationStatusList.md index 93266aa..7dad427 100644 --- a/docs/GenerationStatusList.md +++ b/docs/GenerationStatusList.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**items** | [**List[FunctionDataTypesStatus]**](FunctionDataTypesStatus.md) | List of function data types information | **total_count** | **int** | Total number of functions in analysis | [optional] [default to 0] **total_data_types_count** | **int** | Total number of functions with data types | [optional] [default to 0] -**items** | [**List[FunctionDataTypesStatus]**](FunctionDataTypesStatus.md) | List of function data types information | ## Example diff --git a/docs/GetAiDecompilationTask.md b/docs/GetAiDecompilationTask.md index 207afbb..1785d5e 100644 --- a/docs/GetAiDecompilationTask.md +++ b/docs/GetAiDecompilationTask.md @@ -5,15 +5,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**AiDecompilationTaskStatus**](AiDecompilationTaskStatus.md) | The status of the AI decompilation task | +**ai_summary** | **str** | | [optional] **decompilation** | **str** | | -**raw_decompilation** | **str** | | **function_mapping** | [**Dict[str, InverseFunctionMapItem]**](InverseFunctionMapItem.md) | | **function_mapping_full** | [**FunctionMappingFull**](FunctionMappingFull.md) | | -**summary** | **str** | | [optional] -**ai_summary** | **str** | | [optional] -**raw_ai_summary** | **str** | | [optional] **predicted_function_name** | **str** | | [optional] +**raw_ai_summary** | **str** | | [optional] +**raw_decompilation** | **str** | | +**status** | [**AiDecompilationTaskStatus**](AiDecompilationTaskStatus.md) | The status of the AI decompilation task | +**summary** | **str** | | [optional] ## Example diff --git a/docs/GetMeResponse.md b/docs/GetMeResponse.md index a855e5c..717465d 100644 --- a/docs/GetMeResponse.md +++ b/docs/GetMeResponse.md @@ -5,14 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**username** | **str** | | -**user_id** | **int** | | +**creation** | **datetime** | | +**email** | **str** | | **first_name** | **str** | | **last_name** | **str** | | -**email** | **str** | | -**creation** | **datetime** | | -**tutorial_seen** | **bool** | | **role** | **str** | | +**tutorial_seen** | **bool** | | +**user_id** | **int** | | +**username** | **str** | | ## Example diff --git a/docs/GetPublicUserResponse.md b/docs/GetPublicUserResponse.md index f20ba1c..6850391 100644 --- a/docs/GetPublicUserResponse.md +++ b/docs/GetPublicUserResponse.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**username** | **str** | | **user_id** | **int** | | +**username** | **str** | | ## Example diff --git a/docs/GlobalVariable.md b/docs/GlobalVariable.md index 4330569..2ad492f 100644 --- a/docs/GlobalVariable.md +++ b/docs/GlobalVariable.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_change** | **str** | | [optional] **addr** | **int** | Memory address of the global variable | +**artifact_type** | **str** | Type of artifact that the global variable is associated with | [optional] +**last_change** | **str** | | [optional] **name** | **str** | Name of the global variable | -**type** | **str** | Data type of the global variable | **size** | **int** | Size of the global variable in bytes | -**artifact_type** | **str** | Type of artifact that the global variable is associated with | [optional] +**type** | **str** | Data type of the global variable | ## Example diff --git a/docs/ImportModel.md b/docs/ImportModel.md index 38df16c..7b27ef3 100644 --- a/docs/ImportModel.md +++ b/docs/ImportModel.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**number_of_imports** | **int** | | **imports** | **List[Dict[str, Dict[str, int]]]** | | +**number_of_imports** | **int** | | ## Example diff --git a/docs/InverseFunctionMapItem.md b/docs/InverseFunctionMapItem.md index 7a8e212..2f37b6c 100644 --- a/docs/InverseFunctionMapItem.md +++ b/docs/InverseFunctionMapItem.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | | **addr** | [**Addr**](Addr.md) | | **is_external** | **bool** | | [optional] [default to False] +**name** | **str** | | ## Example diff --git a/docs/InverseStringMapItem.md b/docs/InverseStringMapItem.md index 83e3b47..3d70c74 100644 --- a/docs/InverseStringMapItem.md +++ b/docs/InverseStringMapItem.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**string** | **str** | | **addr** | **int** | | +**string** | **str** | | ## Example diff --git a/docs/LoginRequest.md b/docs/LoginRequest.md index d7f0729..0e88b91 100644 --- a/docs/LoginRequest.md +++ b/docs/LoginRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**username** | **str** | User's username or email | **password** | **str** | User's password | +**username** | **str** | User's username or email | ## Example diff --git a/docs/MatchedFunction.md b/docs/MatchedFunction.md index 0f9986b..33b6260 100644 --- a/docs/MatchedFunction.md +++ b/docs/MatchedFunction.md @@ -5,17 +5,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**function_id** | **int** | Unique identifier of the matched function | +**analysis_id** | **int** | | **binary_id** | **int** | | +**binary_name** | **str** | | +**confidence** | **float** | | [optional] +**debug** | **bool** | | +**function_id** | **int** | Unique identifier of the matched function | **function_name** | **str** | | **function_vaddr** | **int** | | **mangled_name** | **str** | | -**debug** | **bool** | | -**binary_name** | **str** | | **sha_256_hash** | **str** | | -**analysis_id** | **int** | | **similarity** | **float** | | [optional] -**confidence** | **float** | | [optional] ## Example diff --git a/docs/MatchedFunctionSuggestion.md b/docs/MatchedFunctionSuggestion.md index fc08b75..c39f6ec 100644 --- a/docs/MatchedFunctionSuggestion.md +++ b/docs/MatchedFunctionSuggestion.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **function_id** | **int** | Unique identifier of the matched function | **function_vaddr** | **int** | Virtual address of the matched function | -**suggested_name** | **str** | | [optional] **suggested_demangled_name** | **str** | De-mangled name of the function group that contains the matched functions | +**suggested_name** | **str** | | [optional] ## Example diff --git a/docs/NameConfidence.md b/docs/NameConfidence.md index 5b8342c..f68b1f4 100644 --- a/docs/NameConfidence.md +++ b/docs/NameConfidence.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | The suggested function name | **confidence** | **float** | Confidence score as a percentage | +**name** | **str** | The suggested function name | ## Example diff --git a/docs/NameSourceType.md b/docs/NameSourceType.md index 07cb20e..c2c5717 100644 --- a/docs/NameSourceType.md +++ b/docs/NameSourceType.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | The source (process) the function name came from | -**function_id** | **int** | | [optional] -**binary_id** | **int** | | [optional] **analysis_id** | **int** | | [optional] +**binary_id** | **int** | | [optional] +**function_id** | **int** | | [optional] +**type** | **str** | The source (process) the function name came from | ## Example diff --git a/docs/NetworkOverviewDns.md b/docs/NetworkOverviewDns.md index cb2cc83..631b192 100644 --- a/docs/NetworkOverviewDns.md +++ b/docs/NetworkOverviewDns.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**answers** | [**List[NetworkOverviewDnsAnswer]**](NetworkOverviewDnsAnswer.md) | | **host** | **str** | | **type** | **str** | | -**answers** | [**List[NetworkOverviewDnsAnswer]**](NetworkOverviewDnsAnswer.md) | | ## Example diff --git a/docs/NetworkOverviewDnsAnswer.md b/docs/NetworkOverviewDnsAnswer.md index 77a4835..020a6b5 100644 --- a/docs/NetworkOverviewDnsAnswer.md +++ b/docs/NetworkOverviewDnsAnswer.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | | **data** | **str** | | +**type** | **str** | | ## Example diff --git a/docs/NetworkOverviewMetadata.md b/docs/NetworkOverviewMetadata.md index 91fbfd1..552f5c4 100644 --- a/docs/NetworkOverviewMetadata.md +++ b/docs/NetworkOverviewMetadata.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**host** | **str** | | -**country_code** | **str** | | **asn** | **str** | | +**country_code** | **str** | | +**host** | **str** | | **type** | **str** | | ## Example diff --git a/docs/PEModel.md b/docs/PEModel.md index 33032c6..c5d5f57 100644 --- a/docs/PEModel.md +++ b/docs/PEModel.md @@ -5,26 +5,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | | -**timestamps** | [**TimestampModel**](TimestampModel.md) | | **architecture** | **str** | | **checksum** | **int** | | -**image_base** | **int** | | -**security** | [**SecurityModel**](SecurityModel.md) | | -**version_info** | **Dict[str, object]** | | **debug_info** | [**PDBDebugModel**](PDBDebugModel.md) | | -**number_of_resources** | **int** | | -**entry_point** | [**EntrypointModel**](EntrypointModel.md) | | -**signature** | [**CodeSignatureModel**](CodeSignatureModel.md) | | -**dotnet** | **bool** | | **debug_stripped** | **bool** | | -**import_hash** | **str** | | +**dotnet** | **bool** | | +**entry_point** | [**EntrypointModel**](EntrypointModel.md) | | **export_hash** | **str** | | -**rich_header_hash** | **str** | | -**sections** | [**SectionModel**](SectionModel.md) | | -**imports** | [**ImportModel**](ImportModel.md) | | **exports** | [**ExportModel**](ExportModel.md) | | **icon_data** | [**IconModel**](IconModel.md) | | +**image_base** | **int** | | +**import_hash** | **str** | | +**imports** | [**ImportModel**](ImportModel.md) | | +**number_of_resources** | **int** | | +**rich_header_hash** | **str** | | +**sections** | [**SectionModel**](SectionModel.md) | | +**security** | [**SecurityModel**](SecurityModel.md) | | +**signature** | [**CodeSignatureModel**](CodeSignatureModel.md) | | +**timestamps** | [**TimestampModel**](TimestampModel.md) | | +**type** | **str** | | +**version_info** | **Dict[str, object]** | | ## Example diff --git a/docs/PaginationModel.md b/docs/PaginationModel.md index 81b1f74..83d74eb 100644 --- a/docs/PaginationModel.md +++ b/docs/PaginationModel.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**page_size** | **int** | | -**page_number** | **int** | | **has_next_page** | **bool** | | +**page_number** | **int** | | +**page_size** | **int** | | ## Example diff --git a/docs/Params.md b/docs/Params.md index a24a867..e395ea8 100644 --- a/docs/Params.md +++ b/docs/Params.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**debug_hash** | **str** | | -**binary_size** | **int** | The size of the binary data | **architecture** | **str** | The architecture of the binary data | -**binary_type** | **str** | The type of binary data | -**binary_format** | **str** | The format of the binary data | **binary_dynamic** | **bool** | Whether the binary data is dynamic | +**binary_format** | **str** | The format of the binary data | +**binary_size** | **int** | The size of the binary data | +**binary_type** | **str** | The type of binary data | +**debug_hash** | **str** | | **model_name** | **str** | The name of the model | ## Example diff --git a/docs/Process.md b/docs/Process.md index a782602..46b96cd 100644 --- a/docs/Process.md +++ b/docs/Process.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**args** | **List[str]** | | +**children** | **List[object]** | | +**executable_name** | **str** | | **pid** | **int** | | **procname** | **str** | | -**executable_name** | **str** | | -**args** | **List[str]** | | **ts_from** | **float** | | **ts_to** | **float** | | -**children** | **List[object]** | | ## Example diff --git a/docs/ProcessDump.md b/docs/ProcessDump.md index d2d62bd..bbd051e 100644 --- a/docs/ProcessDump.md +++ b/docs/ProcessDump.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**base_address** | **int** | | **actual_filename** | **str** | | -**filename_friendly** | **str** | | +**base_address** | **int** | | **extended_metadata** | [**ProcessDumpMetadata**](ProcessDumpMetadata.md) | | +**filename_friendly** | **str** | | ## Example diff --git a/docs/ProcessDumpMetadata.md b/docs/ProcessDumpMetadata.md index 03a610c..95cb9bc 100644 --- a/docs/ProcessDumpMetadata.md +++ b/docs/ProcessDumpMetadata.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **sha256** | **str** | | -**type** | **str** | | **size** | **int** | | +**type** | **str** | | ## Example diff --git a/docs/ProcessDumps.md b/docs/ProcessDumps.md index c1413dc..c282d35 100644 --- a/docs/ProcessDumps.md +++ b/docs/ProcessDumps.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**success** | **bool** | | **data** | [**ProcessDumpsData**](ProcessDumpsData.md) | | +**success** | **bool** | | ## Example diff --git a/docs/ProcessRegistry.md b/docs/ProcessRegistry.md index af0cf3b..2cebdba 100644 --- a/docs/ProcessRegistry.md +++ b/docs/ProcessRegistry.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**success** | **bool** | | **data** | **Dict[str, List[Registry]]** | | +**success** | **bool** | | ## Example diff --git a/docs/ProcessTree.md b/docs/ProcessTree.md index b7c2b1f..9e1d4e4 100644 --- a/docs/ProcessTree.md +++ b/docs/ProcessTree.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**success** | **bool** | | **data** | [**List[Process]**](Process.md) | | +**success** | **bool** | | ## Example diff --git a/docs/PutAnalysisStringsRequest.md b/docs/PutAnalysisStringsRequest.md new file mode 100644 index 0000000..4180aad --- /dev/null +++ b/docs/PutAnalysisStringsRequest.md @@ -0,0 +1,29 @@ +# PutAnalysisStringsRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**strings** | [**List[AnalysisStringInput]**](AnalysisStringInput.md) | The strings to add to the analysis | + +## Example + +```python +from revengai.models.put_analysis_strings_request import PutAnalysisStringsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of PutAnalysisStringsRequest from a JSON string +put_analysis_strings_request_instance = PutAnalysisStringsRequest.from_json(json) +# print the JSON string representation of the object +print(PutAnalysisStringsRequest.to_json()) + +# convert the object into a dict +put_analysis_strings_request_dict = put_analysis_strings_request_instance.to_dict() +# create an instance of PutAnalysisStringsRequest from a dict +put_analysis_strings_request_from_dict = PutAnalysisStringsRequest.from_dict(put_analysis_strings_request_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/ReAnalysisForm.md b/docs/ReAnalysisForm.md index e6999f1..78904b9 100644 --- a/docs/ReAnalysisForm.md +++ b/docs/ReAnalysisForm.md @@ -6,12 +6,12 @@ Form Model for receiving the analysis request Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**tags** | **List[str]** | Tags associated with the analysis | [optional] [default to []] **command_line_args** | **str** | Command line arguments for dynamic execution | [optional] [default to ''] -**priority** | **int** | Priority of the analysis | [optional] [default to 0] **essential** | **bool** | Only runs essential parts of the analysis, skips tags/sbom/cves etc. | [optional] [default to True] **model_name** | **str** | | [optional] **no_cache** | **bool** | When enabled, skips using cached data within the processing. | [optional] [default to False] +**priority** | **int** | Priority of the analysis | [optional] [default to 0] +**tags** | **List[str]** | Tags associated with the analysis | [optional] [default to []] ## Example diff --git a/docs/Registry.md b/docs/Registry.md index 9c53505..6cb7afd 100644 --- a/docs/Registry.md +++ b/docs/Registry.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**method** | **str** | | **key** | **str** | | -**value_name** | **str** | | +**method** | **str** | | **value** | **str** | | +**value_name** | **str** | | ## Example diff --git a/docs/RelativeBinaryResponse.md b/docs/RelativeBinaryResponse.md index 2661900..a8c16ac 100644 --- a/docs/RelativeBinaryResponse.md +++ b/docs/RelativeBinaryResponse.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**binary_id** | **int** | ID of the relative binary | **analysis_id** | **int** | | [optional] +**binary_id** | **int** | ID of the relative binary | **name** | **str** | Name of the relative binary | **sha256** | **str** | SHA256 hash of the relative binary | diff --git a/docs/SBOM.md b/docs/SBOM.md index 0bb79a3..c3c6956 100644 --- a/docs/SBOM.md +++ b/docs/SBOM.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**packages** | [**List[SBOMPackage]**](SBOMPackage.md) | The packages found | **imported_libs** | **List[str]** | The import libraries found | +**packages** | [**List[SBOMPackage]**](SBOMPackage.md) | The packages found | ## Example diff --git a/docs/SandboxOptions.md b/docs/SandboxOptions.md index 0b79823..d7995d0 100644 --- a/docs/SandboxOptions.md +++ b/docs/SandboxOptions.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**enabled** | **bool** | | [optional] [default to False] **command_line_args** | **str** | The command line parameters to pass to the dynamic execution sandbox. Requires `sandbox` to be True. | [optional] [default to ''] +**enabled** | **bool** | | [optional] [default to False] ## Example diff --git a/docs/SearchApi.md b/docs/SearchApi.md index 6967efd..fb75acf 100644 --- a/docs/SearchApi.md +++ b/docs/SearchApi.md @@ -199,8 +199,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | -**422** | You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256, tags or model_name to search | - | **404** | The model name provided does not exist | - | +**422** | You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256, tags or model_name to search | - | [[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/SecurityChecksResponse.md b/docs/SecurityChecksResponse.md index 3a47e4e..ae002f5 100644 --- a/docs/SecurityChecksResponse.md +++ b/docs/SecurityChecksResponse.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **binary_id** | **int** | | -**total_results** | **int** | | **results** | [**List[SecurityChecksResult]**](SecurityChecksResult.md) | | +**total_results** | **int** | | ## Example diff --git a/docs/SecurityChecksResult.md b/docs/SecurityChecksResult.md index 7db22a3..290d754 100644 --- a/docs/SecurityChecksResult.md +++ b/docs/SecurityChecksResult.md @@ -5,14 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**confidence** | [**ConfidenceType**](ConfidenceType.md) | | +**description** | **str** | | **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) | | +**vuln_class** | [**VulnerabilityType**](VulnerabilityType.md) | | ## Example diff --git a/docs/SecurityModel.md b/docs/SecurityModel.md index 742bf98..2036322 100644 --- a/docs/SecurityModel.md +++ b/docs/SecurityModel.md @@ -5,17 +5,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**app_container** | **bool** | | **aslr** | **bool** | | -**dep** | **bool** | | +**bound_image** | **bool** | | **cfg** | **bool** | | -**driver_model** | **bool** | | -**app_container** | **bool** | | -**terminal_server_aware** | **bool** | | -**image_isolation** | **bool** | | **code_integrity** | **bool** | | +**dep** | **bool** | | +**driver_model** | **bool** | | **high_entropy** | **bool** | | +**image_isolation** | **bool** | | **seh** | **bool** | | -**bound_image** | **bool** | | +**terminal_server_aware** | **bool** | | ## Example diff --git a/docs/SegmentInfo.md b/docs/SegmentInfo.md index d4068bd..6e71931 100644 --- a/docs/SegmentInfo.md +++ b/docs/SegmentInfo.md @@ -6,12 +6,12 @@ Represents the information about a segment. Attributes: name: The name of t Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**end** | **int** | | [optional] [default to 0] **name** | **str** | | [optional] [default to ''] **r** | **bool** | | [optional] +**start** | **int** | | [optional] [default to 0] **w** | **bool** | | [optional] **x** | **bool** | | [optional] -**start** | **int** | | [optional] [default to 0] -**end** | **int** | | [optional] [default to 0] ## Example diff --git a/docs/SingleCodeCertificateModel.md b/docs/SingleCodeCertificateModel.md index 4999931..d89bfa1 100644 --- a/docs/SingleCodeCertificateModel.md +++ b/docs/SingleCodeCertificateModel.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**version** | **int** | | -**issued_on** | **str** | | **expires_on** | **str** | | +**issued_on** | **str** | | **issuer_name** | **str** | | **serial_number** | **str** | | **subject_name** | **str** | | +**version** | **int** | | ## Example diff --git a/docs/SingleCodeSignatureModel.md b/docs/SingleCodeSignatureModel.md index 4c81a22..57d4459 100644 --- a/docs/SingleCodeSignatureModel.md +++ b/docs/SingleCodeSignatureModel.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**certificates** | [**List[SingleCodeCertificateModel]**](SingleCodeCertificateModel.md) | | **authenticode_digest** | **str** | | +**certificates** | [**List[SingleCodeCertificateModel]**](SingleCodeCertificateModel.md) | | ## Example diff --git a/docs/SinglePDBEntryModel.md b/docs/SinglePDBEntryModel.md index d453362..180f4b8 100644 --- a/docs/SinglePDBEntryModel.md +++ b/docs/SinglePDBEntryModel.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**guid** | **str** | | **age** | **int** | | +**guid** | **str** | | **path** | **str** | | ## Example diff --git a/docs/SingleSectionModel.md b/docs/SingleSectionModel.md index f8c82da..e1d3dc7 100644 --- a/docs/SingleSectionModel.md +++ b/docs/SingleSectionModel.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | | -**virtual_address** | **int** | | -**virtual_size** | **int** | | **characteristics** | **str** | | -**raw_size** | **int** | | **entropy** | **float** | | +**name** | **str** | | +**raw_size** | **int** | | **sha3_256** | **str** | | +**virtual_address** | **int** | | +**virtual_size** | **int** | | ## Example diff --git a/docs/StackVariable.md b/docs/StackVariable.md index 4d78f8e..d42fef9 100644 --- a/docs/StackVariable.md +++ b/docs/StackVariable.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**addr** | **int** | Memory address of the stack variable | **last_change** | **str** | | [optional] -**offset** | **int** | Offset of the stack variable | **name** | **str** | Name of the stack variable | -**type** | **str** | Data type of the stack variable | +**offset** | **int** | Offset of the stack variable | **size** | **int** | Size of the stack variable in bytes | -**addr** | **int** | Memory address of the stack variable | +**type** | **str** | Data type of the stack variable | ## Example diff --git a/docs/StageStatus.md b/docs/StageStatus.md index 607d1b3..f06f244 100644 --- a/docs/StageStatus.md +++ b/docs/StageStatus.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**num_ahead** | **int** | | **stage** | [**AnalysisStage**](AnalysisStage.md) | | **status** | [**PipelineStageStatus**](PipelineStageStatus.md) | | -**num_ahead** | **int** | | ## Example diff --git a/docs/StringFunctions.md b/docs/StringFunctions.md index 04fc697..bbddfd5 100644 --- a/docs/StringFunctions.md +++ b/docs/StringFunctions.md @@ -6,8 +6,9 @@ This is a string with the functions where the string is used. A function string Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **str** | The value of the string literal | **functions** | [**List[AppApiRestV2FunctionsResponsesFunction]**](AppApiRestV2FunctionsResponsesFunction.md) | The function ids the string literal was found within | +**source** | [**StringSource**](StringSource.md) | The source of the string | [optional] +**value** | **str** | The value of the string literal | ## Example diff --git a/docs/StringSource.md b/docs/StringSource.md new file mode 100644 index 0000000..34f7cd4 --- /dev/null +++ b/docs/StringSource.md @@ -0,0 +1,14 @@ +# StringSource + + +## Enum + +* `SYSTEM` (value: `'SYSTEM'`) + +* `USER` (value: `'USER'`) + +* `AI_AGENT` (value: `'AI_AGENT'`) + +[[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/Structure.md b/docs/Structure.md index faf87db..e5bb192 100644 --- a/docs/Structure.md +++ b/docs/Structure.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**artifact_type** | **str** | Type of artifact that the structure is associated with | [optional] **last_change** | **str** | | [optional] +**members** | [**Dict[str, StructureMember]**](StructureMember.md) | Dictionary of structure members | **name** | **str** | Name of the structure | **size** | **int** | | [optional] -**members** | [**Dict[str, StructureMember]**](StructureMember.md) | Dictionary of structure members | -**artifact_type** | **str** | Type of artifact that the structure is associated with | [optional] ## Example diff --git a/docs/StructureMember.md b/docs/StructureMember.md index ff94d50..6dd98f1 100644 --- a/docs/StructureMember.md +++ b/docs/StructureMember.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes **last_change** | **str** | | [optional] **name** | **str** | Name of the structure member | **offset** | **int** | Offset of the member within the structure | -**type** | **str** | Data type of the structure member | **size** | **int** | Size of the structure member in bytes | +**type** | **str** | Data type of the structure member | ## Example diff --git a/docs/TTPS.md b/docs/TTPS.md index 9fa74b9..d6ca24f 100644 --- a/docs/TTPS.md +++ b/docs/TTPS.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**success** | **bool** | | **data** | [**TTPSData**](TTPSData.md) | | +**success** | **bool** | | ## Example diff --git a/docs/TTPSElement.md b/docs/TTPSElement.md index 12c160c..0e70105 100644 --- a/docs/TTPSElement.md +++ b/docs/TTPSElement.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | | **attack** | [**List[TTPSAttack]**](TTPSAttack.md) | | +**name** | **str** | | **occurrences** | [**List[TTPSOccurance]**](TTPSOccurance.md) | | **score** | **int** | | diff --git a/docs/TTPSOccurance.md b/docs/TTPSOccurance.md index 8ba44be..4d89180 100644 --- a/docs/TTPSOccurance.md +++ b/docs/TTPSOccurance.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ppid** | **int** | | **pid** | **int** | | +**ppid** | **int** | | ## Example diff --git a/docs/TagItem.md b/docs/TagItem.md index ff7945d..05ec860 100644 --- a/docs/TagItem.md +++ b/docs/TagItem.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**collection_id** | **int** | | [optional] **name** | **str** | | **origin** | **str** | | -**collection_id** | **int** | | [optional] ## Example diff --git a/docs/TagSearchResult.md b/docs/TagSearchResult.md index 4fdb824..34d5d94 100644 --- a/docs/TagSearchResult.md +++ b/docs/TagSearchResult.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**tag_id** | **int** | The ID of the tag | **tag** | **str** | The name of the tag | +**tag_id** | **int** | The ID of the tag | ## Example diff --git a/docs/TaskResponse.md b/docs/TaskResponse.md index e9612fd..1a14011 100644 --- a/docs/TaskResponse.md +++ b/docs/TaskResponse.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**TaskStatus**](TaskStatus.md) | | [optional] **error_message** | **str** | | [optional] +**status** | [**TaskStatus**](TaskStatus.md) | | [optional] ## Example diff --git a/docs/TimestampModel.md b/docs/TimestampModel.md index f0ed185..1304060 100644 --- a/docs/TimestampModel.md +++ b/docs/TimestampModel.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**pe_timestamp** | **int** | | -**export_timestamp** | **int** | | **debug_timestamp** | **int** | | +**export_timestamp** | **int** | | +**pe_timestamp** | **int** | | ## Example diff --git a/docs/TypeDefinition.md b/docs/TypeDefinition.md index d64f983..f735266 100644 --- a/docs/TypeDefinition.md +++ b/docs/TypeDefinition.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**artifact_type** | **str** | Type of artifact the type definition is associated with | [optional] **last_change** | **str** | | [optional] **name** | **str** | Name of the type definition | **type** | **str** | Underlying type of the type definition | -**artifact_type** | **str** | Type of artifact the type definition is associated with | [optional] ## Example diff --git a/docs/UpdateFunctionDataTypes.md b/docs/UpdateFunctionDataTypes.md index 97dcf0e..2226c72 100644 --- a/docs/UpdateFunctionDataTypes.md +++ b/docs/UpdateFunctionDataTypes.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data_types_version** | **int** | Version of the function data types, used to check this update is not overwriting a newer one | **data_types** | [**FunctionInfoInput**](FunctionInfoInput.md) | Function data types information to update | +**data_types_version** | **int** | Version of the function data types, used to check this update is not overwriting a newer one | ## Example diff --git a/docs/UploadResponse.md b/docs/UploadResponse.md index db62cd8..641efa3 100644 --- a/docs/UploadResponse.md +++ b/docs/UploadResponse.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**sha_256_hash** | **str** | | **file_type** | [**UploadFileType**](UploadFileType.md) | | **filename** | **str** | | +**sha_256_hash** | **str** | | ## Example diff --git a/docs/Vulnerability.md b/docs/Vulnerability.md index c7cab31..a8dbf69 100644 --- a/docs/Vulnerability.md +++ b/docs/Vulnerability.md @@ -5,17 +5,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**vendor** | **str** | | -**product** | **str** | | -**version** | **str** | | **cve_number** | **str** | | -**severity** | **str** | | -**source** | **str** | | -**cvss_version** | **str** | | **cvss_vector** | **str** | | +**cvss_version** | **str** | | +**is_unknown** | **bool** | | [optional] [default to False] +**product** | **str** | | **remarks** | **str** | | **score** | **float** | | -**is_unknown** | **bool** | | [optional] [default to False] +**severity** | **str** | | +**source** | **str** | | +**vendor** | **str** | | +**version** | **str** | | ## Example diff --git a/docs/XrefFromResponse.md b/docs/XrefFromResponse.md index b06c89e..442b32a 100644 --- a/docs/XrefFromResponse.md +++ b/docs/XrefFromResponse.md @@ -5,14 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **str** | | -**is_scalar** | **bool** | | [optional] **is_call** | **bool** | | [optional] **is_data** | **bool** | | [optional] +**is_scalar** | **bool** | | [optional] **is_string** | **bool** | | [optional] +**orig_str_encoding** | **str** | | [optional] **raw_data** | **str** | | [optional] **segment** | [**SegmentInfo**](SegmentInfo.md) | | [optional] -**orig_str_encoding** | **str** | | [optional] +**value** | **str** | | **xref_to** | **str** | | ## Example diff --git a/docs/XrefResponse.md b/docs/XrefResponse.md index f9a7e47..d6dbce5 100644 --- a/docs/XrefResponse.md +++ b/docs/XrefResponse.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**xref_to_list** | [**List[XrefToResponse]**](XrefToResponse.md) | | **xref_from_list** | [**List[XrefFromResponse]**](XrefFromResponse.md) | | +**xref_to_list** | [**List[XrefToResponse]**](XrefToResponse.md) | | ## Example diff --git a/docs/XrefToResponse.md b/docs/XrefToResponse.md index 91b3bc3..3c2f941 100644 --- a/docs/XrefToResponse.md +++ b/docs/XrefToResponse.md @@ -5,14 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **str** | | -**is_scalar** | **bool** | | [optional] **is_call** | **bool** | | [optional] **is_data** | **bool** | | [optional] +**is_scalar** | **bool** | | [optional] **is_string** | **bool** | | [optional] +**orig_str_encoding** | **str** | | [optional] **raw_data** | **str** | | [optional] **segment** | [**SegmentInfo**](SegmentInfo.md) | | [optional] -**orig_str_encoding** | **str** | | [optional] +**value** | **str** | | **xref_from** | **str** | | ## Example diff --git a/revengai/__init__.py b/revengai/__init__.py index 2e54b01..2a5af21 100644 --- a/revengai/__init__.py +++ b/revengai/__init__.py @@ -13,7 +13,7 @@ """ # noqa: E501 -__version__ = "v3.51.0" +__version__ = "v3.55.0" # Define package exports __all__ = [ @@ -69,6 +69,7 @@ "AnalysisStage", "AnalysisStageStatus", "AnalysisStagesResponse", + "AnalysisStringInput", "AnalysisStringsResponse", "AnalysisStringsStatusResponse", "AnalysisTags", @@ -308,6 +309,7 @@ "ProcessDumpsData", "ProcessRegistry", "ProcessTree", + "PutAnalysisStringsRequest", "QueuedSecurityChecksTaskResponse", "ReAnalysisForm", "Recent", @@ -333,6 +335,7 @@ "StatusInput", "StatusOutput", "StringFunctions", + "StringSource", "Structure", "StructureMember", "Symbols", @@ -421,6 +424,7 @@ from revengai.models.analysis_stage import AnalysisStage as AnalysisStage from revengai.models.analysis_stage_status import AnalysisStageStatus as AnalysisStageStatus from revengai.models.analysis_stages_response import AnalysisStagesResponse as AnalysisStagesResponse +from revengai.models.analysis_string_input import AnalysisStringInput as AnalysisStringInput from revengai.models.analysis_strings_response import AnalysisStringsResponse as AnalysisStringsResponse from revengai.models.analysis_strings_status_response import AnalysisStringsStatusResponse as AnalysisStringsStatusResponse from revengai.models.analysis_tags import AnalysisTags as AnalysisTags @@ -660,6 +664,7 @@ from revengai.models.process_dumps_data import ProcessDumpsData as ProcessDumpsData 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 @@ -685,6 +690,7 @@ from revengai.models.status_input import StatusInput as StatusInput from revengai.models.status_output import StatusOutput as StatusOutput from revengai.models.string_functions import StringFunctions as StringFunctions +from revengai.models.string_source import StringSource as StringSource from revengai.models.structure import Structure as Structure from revengai.models.structure_member import StructureMember as StructureMember from revengai.models.symbols import Symbols as Symbols diff --git a/revengai/api/analyses_comments_api.py b/revengai/api/analyses_comments_api.py index 9445dcd..2b4ccaf 100644 --- a/revengai/api/analyses_comments_api.py +++ b/revengai/api/analyses_comments_api.py @@ -100,8 +100,8 @@ def create_analysis_comment( _response_types_map: Dict[str, Optional[str]] = { '201': "BaseResponseCommentResponse", - '422': "BaseResponse", '400': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -173,8 +173,8 @@ def create_analysis_comment_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '201': "BaseResponseCommentResponse", - '422': "BaseResponse", '400': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -246,8 +246,8 @@ def create_analysis_comment_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '201': "BaseResponseCommentResponse", - '422': "BaseResponse", '400': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -395,9 +395,9 @@ def delete_analysis_comment( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseBool", - '422': "BaseResponse", - '403': "BaseResponse", '400': "BaseResponse", + '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -469,9 +469,9 @@ def delete_analysis_comment_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseBool", - '422': "BaseResponse", - '403': "BaseResponse", '400': "BaseResponse", + '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -543,9 +543,9 @@ def delete_analysis_comment_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseBool", - '422': "BaseResponse", - '403': "BaseResponse", '400': "BaseResponse", + '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -948,9 +948,9 @@ def update_analysis_comment( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseCommentResponse", - '422': "BaseResponse", - '403': "BaseResponse", '400': "BaseResponse", + '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1026,9 +1026,9 @@ def update_analysis_comment_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseCommentResponse", - '422': "BaseResponse", - '403': "BaseResponse", '400': "BaseResponse", + '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1104,9 +1104,9 @@ def update_analysis_comment_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseCommentResponse", - '422': "BaseResponse", - '403': "BaseResponse", '400': "BaseResponse", + '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, diff --git a/revengai/api/analyses_core_api.py b/revengai/api/analyses_core_api.py index 63e9479..d7d48dc 100644 --- a/revengai/api/analyses_core_api.py +++ b/revengai/api/analyses_core_api.py @@ -41,6 +41,7 @@ from revengai.models.insert_analysis_log_request import InsertAnalysisLogRequest from revengai.models.model_name import ModelName from revengai.models.order import Order +from revengai.models.put_analysis_strings_request import PutAnalysisStringsRequest from revengai.models.re_analysis_form import ReAnalysisForm from revengai.models.status_input import StatusInput from revengai.models.upload_file_type import UploadFileType @@ -400,9 +401,9 @@ def create_analysis( _response_types_map: Dict[str, Optional[str]] = { '201': "BaseResponseAnalysisCreateResponse", - '422': "BaseResponse", - '404': "BaseResponse", '400': "BaseResponse", + '404': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -474,9 +475,9 @@ def create_analysis_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '201': "BaseResponseAnalysisCreateResponse", - '422': "BaseResponse", - '404': "BaseResponse", '400': "BaseResponse", + '404': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -548,9 +549,9 @@ def create_analysis_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '201': "BaseResponseAnalysisCreateResponse", - '422': "BaseResponse", - '404': "BaseResponse", '400': "BaseResponse", + '404': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -694,9 +695,9 @@ def delete_analysis( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseDict", - '422': "BaseResponse", - '404': "BaseResponse", '403': "BaseResponse", + '404': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -764,9 +765,9 @@ def delete_analysis_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseDict", - '422': "BaseResponse", - '404': "BaseResponse", '403': "BaseResponse", + '404': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -834,9 +835,9 @@ def delete_analysis_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseDict", - '422': "BaseResponse", - '404': "BaseResponse", '403': "BaseResponse", + '404': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -3225,6 +3226,298 @@ def _lookup_binary_id_serialize( + @validate_call + def put_analysis_strings( + self, + analysis_id: StrictInt, + put_analysis_strings_request: PutAnalysisStringsRequest, + _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, + ) -> BaseResponse: + """Add strings to the analysis + + Add strings to the analysis. Rejects if any string already exists at the given vaddr. + + :param analysis_id: (required) + :type analysis_id: int + :param put_analysis_strings_request: (required) + :type put_analysis_strings_request: PutAnalysisStringsRequest + :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._put_analysis_strings_serialize( + analysis_id=analysis_id, + put_analysis_strings_request=put_analysis_strings_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "BaseResponse", + '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 put_analysis_strings_with_http_info( + self, + analysis_id: StrictInt, + put_analysis_strings_request: PutAnalysisStringsRequest, + _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[BaseResponse]: + """Add strings to the analysis + + Add strings to the analysis. Rejects if any string already exists at the given vaddr. + + :param analysis_id: (required) + :type analysis_id: int + :param put_analysis_strings_request: (required) + :type put_analysis_strings_request: PutAnalysisStringsRequest + :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._put_analysis_strings_serialize( + analysis_id=analysis_id, + put_analysis_strings_request=put_analysis_strings_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "BaseResponse", + '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 put_analysis_strings_without_preload_content( + self, + analysis_id: StrictInt, + put_analysis_strings_request: PutAnalysisStringsRequest, + _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: + """Add strings to the analysis + + Add strings to the analysis. Rejects if any string already exists at the given vaddr. + + :param analysis_id: (required) + :type analysis_id: int + :param put_analysis_strings_request: (required) + :type put_analysis_strings_request: PutAnalysisStringsRequest + :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._put_analysis_strings_serialize( + analysis_id=analysis_id, + put_analysis_strings_request=put_analysis_strings_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "BaseResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_analysis_strings_serialize( + self, + analysis_id, + put_analysis_strings_request, + _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 + if put_analysis_strings_request is not None: + _body_params = put_analysis_strings_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'APIKey' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/v2/analyses/{analysis_id}/strings', + 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 requeue_analysis( self, @@ -3288,9 +3581,9 @@ def requeue_analysis( _response_types_map: Dict[str, Optional[str]] = { '201': "BaseResponseCreated", - '422': "BaseResponse", - '404': "BaseResponse", '400': "BaseResponse", + '404': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -3366,9 +3659,9 @@ def requeue_analysis_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '201': "BaseResponseCreated", - '422': "BaseResponse", - '404': "BaseResponse", '400': "BaseResponse", + '404': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -3444,9 +3737,9 @@ def requeue_analysis_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '201': "BaseResponseCreated", - '422': "BaseResponse", - '404': "BaseResponse", '400': "BaseResponse", + '404': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -4125,8 +4418,8 @@ def _update_analysis_tags_serialize( @validate_call def upload_file( self, - upload_file_type: UploadFileType, file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], + upload_file_type: UploadFileType, packed_password: Optional[StrictStr] = None, force_overwrite: Optional[StrictBool] = None, _request_timeout: Union[ @@ -4145,10 +4438,10 @@ def upload_file( """Upload File - :param upload_file_type: (required) - :type upload_file_type: UploadFileType :param file: (required) :type file: bytearray + :param upload_file_type: (required) + :type upload_file_type: UploadFileType :param packed_password: :type packed_password: str :param force_overwrite: @@ -4176,8 +4469,8 @@ def upload_file( """ # noqa: E501 _param = self._upload_file_serialize( - upload_file_type=upload_file_type, file=file, + upload_file_type=upload_file_type, packed_password=packed_password, force_overwrite=force_overwrite, _request_auth=_request_auth, @@ -4204,8 +4497,8 @@ def upload_file( @validate_call def upload_file_with_http_info( self, - upload_file_type: UploadFileType, file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], + upload_file_type: UploadFileType, packed_password: Optional[StrictStr] = None, force_overwrite: Optional[StrictBool] = None, _request_timeout: Union[ @@ -4224,10 +4517,10 @@ def upload_file_with_http_info( """Upload File - :param upload_file_type: (required) - :type upload_file_type: UploadFileType :param file: (required) :type file: bytearray + :param upload_file_type: (required) + :type upload_file_type: UploadFileType :param packed_password: :type packed_password: str :param force_overwrite: @@ -4255,8 +4548,8 @@ def upload_file_with_http_info( """ # noqa: E501 _param = self._upload_file_serialize( - upload_file_type=upload_file_type, file=file, + upload_file_type=upload_file_type, packed_password=packed_password, force_overwrite=force_overwrite, _request_auth=_request_auth, @@ -4283,8 +4576,8 @@ def upload_file_with_http_info( @validate_call def upload_file_without_preload_content( self, - upload_file_type: UploadFileType, file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], + upload_file_type: UploadFileType, packed_password: Optional[StrictStr] = None, force_overwrite: Optional[StrictBool] = None, _request_timeout: Union[ @@ -4303,10 +4596,10 @@ def upload_file_without_preload_content( """Upload File - :param upload_file_type: (required) - :type upload_file_type: UploadFileType :param file: (required) :type file: bytearray + :param upload_file_type: (required) + :type upload_file_type: UploadFileType :param packed_password: :type packed_password: str :param force_overwrite: @@ -4334,8 +4627,8 @@ def upload_file_without_preload_content( """ # noqa: E501 _param = self._upload_file_serialize( - upload_file_type=upload_file_type, file=file, + upload_file_type=upload_file_type, packed_password=packed_password, force_overwrite=force_overwrite, _request_auth=_request_auth, @@ -4357,8 +4650,8 @@ def upload_file_without_preload_content( def _upload_file_serialize( self, - upload_file_type, file, + upload_file_type, packed_password, force_overwrite, _request_auth, @@ -4389,12 +4682,12 @@ def _upload_file_serialize( # process the header parameters # process the form parameters - if upload_file_type is not None: - _form_params.append(('upload_file_type', upload_file_type)) if file is not None: _files['file'] = file if force_overwrite is not None: _form_params.append(('force_overwrite', force_overwrite)) + if upload_file_type is not None: + _form_params.append(('upload_file_type', upload_file_type)) # process the body parameter diff --git a/revengai/api/analyses_security_checks_api.py b/revengai/api/analyses_security_checks_api.py index d71f412..cf4a09f 100644 --- a/revengai/api/analyses_security_checks_api.py +++ b/revengai/api/analyses_security_checks_api.py @@ -93,8 +93,8 @@ def create_scurity_checks_task( _response_types_map: Dict[str, Optional[str]] = { '202': "QueuedSecurityChecksTaskResponse", - '422': "BaseResponse", '409': "ErrorModel", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -161,8 +161,8 @@ def create_scurity_checks_task_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '202': "QueuedSecurityChecksTaskResponse", - '422': "BaseResponse", '409': "ErrorModel", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -229,8 +229,8 @@ def create_scurity_checks_task_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '202': "QueuedSecurityChecksTaskResponse", - '422': "BaseResponse", '409': "ErrorModel", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, diff --git a/revengai/api/analyses_x_refs_api.py b/revengai/api/analyses_x_refs_api.py index d6ad56c..17d9f58 100644 --- a/revengai/api/analyses_x_refs_api.py +++ b/revengai/api/analyses_x_refs_api.py @@ -96,8 +96,8 @@ def get_xref_by_vaddr( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseXrefResponse", - '422': "BaseResponse", '404': "ErrorModel", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -169,8 +169,8 @@ def get_xref_by_vaddr_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseXrefResponse", - '422': "BaseResponse", '404': "ErrorModel", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -242,8 +242,8 @@ def get_xref_by_vaddr_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseXrefResponse", - '422': "BaseResponse", '404': "ErrorModel", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, diff --git a/revengai/api/authentication_users_api.py b/revengai/api/authentication_users_api.py index 759b09a..02ee8dd 100644 --- a/revengai/api/authentication_users_api.py +++ b/revengai/api/authentication_users_api.py @@ -1098,8 +1098,8 @@ def login_user( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseLoginResponse", - '422': "BaseResponse", '401': None, + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1167,8 +1167,8 @@ def login_user_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseLoginResponse", - '422': "BaseResponse", '401': None, + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1236,8 +1236,8 @@ def login_user_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseLoginResponse", - '422': "BaseResponse", '401': None, + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, diff --git a/revengai/api/binaries_api.py b/revengai/api/binaries_api.py index 356fb18..cb4a43b 100644 --- a/revengai/api/binaries_api.py +++ b/revengai/api/binaries_api.py @@ -1925,8 +1925,8 @@ def get_related_binaries( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseChildBinariesResponse", - '422': "BaseResponse", '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1993,8 +1993,8 @@ def get_related_binaries_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseChildBinariesResponse", - '422': "BaseResponse", '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -2061,8 +2061,8 @@ def get_related_binaries_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseChildBinariesResponse", - '422': "BaseResponse", '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, diff --git a/revengai/api/external_sources_api.py b/revengai/api/external_sources_api.py index 5c483a3..b2e59a9 100644 --- a/revengai/api/external_sources_api.py +++ b/revengai/api/external_sources_api.py @@ -92,8 +92,8 @@ def create_external_task_vt( _response_types_map: Dict[str, Optional[str]] = { '202': "BaseResponseStr", - '422': "BaseResponse", '409': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -160,8 +160,8 @@ def create_external_task_vt_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '202': "BaseResponseStr", - '422': "BaseResponse", '409': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -228,8 +228,8 @@ def create_external_task_vt_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '202': "BaseResponseStr", - '422': "BaseResponse", '409': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -356,8 +356,8 @@ def get_vt_data( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseExternalResponse", - '422': "BaseResponse", '404': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -424,8 +424,8 @@ def get_vt_data_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseExternalResponse", - '422': "BaseResponse", '404': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -492,8 +492,8 @@ def get_vt_data_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseExternalResponse", - '422': "BaseResponse", '404': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, diff --git a/revengai/api/functions_ai_decompilation_api.py b/revengai/api/functions_ai_decompilation_api.py index a9be921..7304a36 100644 --- a/revengai/api/functions_ai_decompilation_api.py +++ b/revengai/api/functions_ai_decompilation_api.py @@ -106,8 +106,8 @@ def create_ai_decompilation_comment( _response_types_map: Dict[str, Optional[str]] = { '201': "BaseResponseCommentResponse", - '422': "BaseResponse", '400': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -179,8 +179,8 @@ def create_ai_decompilation_comment_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '201': "BaseResponseCommentResponse", - '422': "BaseResponse", '400': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -252,8 +252,8 @@ def create_ai_decompilation_comment_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '201': "BaseResponseCommentResponse", - '422': "BaseResponse", '400': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -397,11 +397,11 @@ def create_ai_decompilation_task( _response_types_map: Dict[str, Optional[str]] = { '201': "BaseResponse", - '422': "BaseResponse", - '403': "BaseResponse", + '400': "BaseResponse", '402': "BaseResponse", + '403': "BaseResponse", '409': "BaseResponse", - '400': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -469,11 +469,11 @@ def create_ai_decompilation_task_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '201': "BaseResponse", - '422': "BaseResponse", - '403': "BaseResponse", + '400': "BaseResponse", '402': "BaseResponse", + '403': "BaseResponse", '409': "BaseResponse", - '400': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -541,11 +541,11 @@ def create_ai_decompilation_task_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '201': "BaseResponse", - '422': "BaseResponse", - '403': "BaseResponse", + '400': "BaseResponse", '402': "BaseResponse", + '403': "BaseResponse", '409': "BaseResponse", - '400': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -677,9 +677,9 @@ def delete_ai_decompilation_comment( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseBool", - '422': "BaseResponse", - '403': "BaseResponse", '400': "BaseResponse", + '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -751,9 +751,9 @@ def delete_ai_decompilation_comment_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseBool", - '422': "BaseResponse", - '403': "BaseResponse", '400': "BaseResponse", + '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -825,9 +825,9 @@ def delete_ai_decompilation_comment_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseBool", - '422': "BaseResponse", - '403': "BaseResponse", '400': "BaseResponse", + '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1433,7 +1433,7 @@ def get_ai_decompilation_task_result( self, function_id: Annotated[StrictInt, Field(description="The ID of the function being decompiled")], summarise: Annotated[Optional[StrictBool], Field(description="Generate a summary for the decompilation")] = None, - generate_inline_comments: Annotated[Optional[StrictBool], Field(description="Generate inline comments for the decompilation (only works if summarise is enabled)")] = None, + generate_inline_comments: Annotated[Optional[StrictBool], Field(description="Generate inline comments for the decompilation")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1455,7 +1455,7 @@ def get_ai_decompilation_task_result( :type function_id: int :param summarise: Generate a summary for the decompilation :type summarise: bool - :param generate_inline_comments: Generate inline comments for the decompilation (only works if summarise is enabled) + :param generate_inline_comments: Generate inline comments for the decompilation :type generate_inline_comments: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1491,8 +1491,8 @@ def get_ai_decompilation_task_result( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseGetAiDecompilationTask", - '422': "BaseResponse", '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1510,7 +1510,7 @@ def get_ai_decompilation_task_result_with_http_info( self, function_id: Annotated[StrictInt, Field(description="The ID of the function being decompiled")], summarise: Annotated[Optional[StrictBool], Field(description="Generate a summary for the decompilation")] = None, - generate_inline_comments: Annotated[Optional[StrictBool], Field(description="Generate inline comments for the decompilation (only works if summarise is enabled)")] = None, + generate_inline_comments: Annotated[Optional[StrictBool], Field(description="Generate inline comments for the decompilation")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1532,7 +1532,7 @@ def get_ai_decompilation_task_result_with_http_info( :type function_id: int :param summarise: Generate a summary for the decompilation :type summarise: bool - :param generate_inline_comments: Generate inline comments for the decompilation (only works if summarise is enabled) + :param generate_inline_comments: Generate inline comments for the decompilation :type generate_inline_comments: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1568,8 +1568,8 @@ def get_ai_decompilation_task_result_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseGetAiDecompilationTask", - '422': "BaseResponse", '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1587,7 +1587,7 @@ def get_ai_decompilation_task_result_without_preload_content( self, function_id: Annotated[StrictInt, Field(description="The ID of the function being decompiled")], summarise: Annotated[Optional[StrictBool], Field(description="Generate a summary for the decompilation")] = None, - generate_inline_comments: Annotated[Optional[StrictBool], Field(description="Generate inline comments for the decompilation (only works if summarise is enabled)")] = None, + generate_inline_comments: Annotated[Optional[StrictBool], Field(description="Generate inline comments for the decompilation")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1609,7 +1609,7 @@ def get_ai_decompilation_task_result_without_preload_content( :type function_id: int :param summarise: Generate a summary for the decompilation :type summarise: bool - :param generate_inline_comments: Generate inline comments for the decompilation (only works if summarise is enabled) + :param generate_inline_comments: Generate inline comments for the decompilation :type generate_inline_comments: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1645,8 +1645,8 @@ def get_ai_decompilation_task_result_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseGetAiDecompilationTask", - '422': "BaseResponse", '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -2053,9 +2053,9 @@ def update_ai_decompilation_comment( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseCommentResponse", - '422': "BaseResponse", - '403': "BaseResponse", '400': "BaseResponse", + '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -2131,9 +2131,9 @@ def update_ai_decompilation_comment_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseCommentResponse", - '422': "BaseResponse", - '403': "BaseResponse", '400': "BaseResponse", + '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -2209,9 +2209,9 @@ def update_ai_decompilation_comment_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseCommentResponse", - '422': "BaseResponse", - '403': "BaseResponse", '400': "BaseResponse", + '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, diff --git a/revengai/api/functions_core_api.py b/revengai/api/functions_core_api.py index b4afdd9..deca87c 100644 --- a/revengai/api/functions_core_api.py +++ b/revengai/api/functions_core_api.py @@ -2417,8 +2417,8 @@ def get_function_blocks( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseFunctionBlocksResponse", - '422': "BaseResponse", '404': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -2486,8 +2486,8 @@ def get_function_blocks_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseFunctionBlocksResponse", - '422': "BaseResponse", '404': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -2555,8 +2555,8 @@ def get_function_blocks_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseFunctionBlocksResponse", - '422': "BaseResponse", '404': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -3208,8 +3208,8 @@ def get_function_capabilities( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseFunctionCapabilityResponse", - '422': "BaseResponse", '404': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -3276,8 +3276,8 @@ def get_function_capabilities_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseFunctionCapabilityResponse", - '422': "BaseResponse", '404': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -3344,8 +3344,8 @@ def get_function_capabilities_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseFunctionCapabilityResponse", - '422': "BaseResponse", '404': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, diff --git a/revengai/api/functions_decompilation_api.py b/revengai/api/functions_decompilation_api.py index 08c78ad..f3ae428 100644 --- a/revengai/api/functions_decompilation_api.py +++ b/revengai/api/functions_decompilation_api.py @@ -100,8 +100,8 @@ def create_decompilation_comment( _response_types_map: Dict[str, Optional[str]] = { '201': "BaseResponseCommentResponse", - '422': "BaseResponse", '400': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -173,8 +173,8 @@ def create_decompilation_comment_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '201': "BaseResponseCommentResponse", - '422': "BaseResponse", '400': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -246,8 +246,8 @@ def create_decompilation_comment_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '201': "BaseResponseCommentResponse", - '422': "BaseResponse", '400': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -395,9 +395,9 @@ def delete_decompilation_comment( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseBool", - '422': "BaseResponse", - '403': "BaseResponse", '400': "BaseResponse", + '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -469,9 +469,9 @@ def delete_decompilation_comment_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseBool", - '422': "BaseResponse", - '403': "BaseResponse", '400': "BaseResponse", + '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -543,9 +543,9 @@ def delete_decompilation_comment_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseBool", - '422': "BaseResponse", - '403': "BaseResponse", '400': "BaseResponse", + '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -948,9 +948,9 @@ def update_decompilation_comment( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseCommentResponse", - '422': "BaseResponse", - '403': "BaseResponse", '400': "BaseResponse", + '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1026,9 +1026,9 @@ def update_decompilation_comment_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseCommentResponse", - '422': "BaseResponse", - '403': "BaseResponse", '400': "BaseResponse", + '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1104,9 +1104,9 @@ def update_decompilation_comment_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseCommentResponse", - '422': "BaseResponse", - '403': "BaseResponse", '400': "BaseResponse", + '403': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, diff --git a/revengai/api/search_api.py b/revengai/api/search_api.py index 62451e2..77d10fb 100644 --- a/revengai/api/search_api.py +++ b/revengai/api/search_api.py @@ -504,8 +504,8 @@ def search_collections( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseCollectionSearchResponse", - '422': "BaseResponse", '404': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -609,8 +609,8 @@ def search_collections_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseCollectionSearchResponse", - '422': "BaseResponse", '404': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -714,8 +714,8 @@ def search_collections_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "BaseResponseCollectionSearchResponse", - '422': "BaseResponse", '404': "BaseResponse", + '422': "BaseResponse", } response_data = self.api_client.call_api( *_param, diff --git a/revengai/api_client.py b/revengai/api_client.py index 1b03b6f..384fe70 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.51.0/python' + self.user_agent = 'OpenAPI-Generator/v3.55.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/revengai/configuration.py b/revengai/configuration.py index 4ccfb14..093243b 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.51.0\n"\ - "SDK Package Version: v3.51.0".\ + "Version of the API: v3.55.0\n"\ + "SDK Package Version: v3.55.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 9685658..362d9d7 100644 --- a/revengai/models/__init__.py +++ b/revengai/models/__init__.py @@ -34,6 +34,7 @@ from revengai.models.analysis_stage import AnalysisStage from revengai.models.analysis_stage_status import AnalysisStageStatus from revengai.models.analysis_stages_response import AnalysisStagesResponse +from revengai.models.analysis_string_input import AnalysisStringInput from revengai.models.analysis_strings_response import AnalysisStringsResponse from revengai.models.analysis_strings_status_response import AnalysisStringsStatusResponse from revengai.models.analysis_tags import AnalysisTags @@ -273,6 +274,7 @@ from revengai.models.process_dumps_data import ProcessDumpsData 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 @@ -298,6 +300,7 @@ from revengai.models.status_input import StatusInput from revengai.models.status_output import StatusOutput from revengai.models.string_functions import StringFunctions +from revengai.models.string_source import StringSource from revengai.models.structure import Structure from revengai.models.structure_member import StructureMember from revengai.models.symbols import Symbols diff --git a/revengai/models/analysis_bulk_add_tags_request.py b/revengai/models/analysis_bulk_add_tags_request.py index 4f57e37..8464c4b 100644 --- a/revengai/models/analysis_bulk_add_tags_request.py +++ b/revengai/models/analysis_bulk_add_tags_request.py @@ -25,9 +25,9 @@ class AnalysisBulkAddTagsRequest(BaseModel): """ AnalysisBulkAddTagsRequest """ # noqa: E501 - tags: List[StrictStr] analysis_ids: List[StrictInt] - __properties: ClassVar[List[str]] = ["tags", "analysis_ids"] + tags: List[StrictStr] + __properties: ClassVar[List[str]] = ["analysis_ids", "tags"] model_config = ConfigDict( populate_by_name=True, @@ -80,8 +80,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "tags": obj.get("tags"), - "analysis_ids": obj.get("analysis_ids") + "analysis_ids": obj.get("analysis_ids"), + "tags": obj.get("tags") }) return _obj diff --git a/revengai/models/analysis_bulk_add_tags_response_item.py b/revengai/models/analysis_bulk_add_tags_response_item.py index fcd9738..a056a98 100644 --- a/revengai/models/analysis_bulk_add_tags_response_item.py +++ b/revengai/models/analysis_bulk_add_tags_response_item.py @@ -26,9 +26,9 @@ class AnalysisBulkAddTagsResponseItem(BaseModel): AnalysisBulkAddTagsResponseItem """ # noqa: E501 analysis_id: StrictInt - message: Optional[StrictStr] error: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["analysis_id", "message", "error"] + message: Optional[StrictStr] + __properties: ClassVar[List[str]] = ["analysis_id", "error", "message"] model_config = ConfigDict( populate_by_name=True, @@ -69,16 +69,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # 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 error (nullable) is None # and model_fields_set contains the field if self.error is None and "error" in self.model_fields_set: _dict['error'] = 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 + return _dict @classmethod @@ -92,8 +92,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "analysis_id": obj.get("analysis_id"), - "message": obj.get("message"), - "error": obj.get("error") + "error": obj.get("error"), + "message": obj.get("message") }) return _obj diff --git a/revengai/models/analysis_config.py b/revengai/models/analysis_config.py index dafd4a1..8ff01ce 100644 --- a/revengai/models/analysis_config.py +++ b/revengai/models/analysis_config.py @@ -27,14 +27,14 @@ class AnalysisConfig(BaseModel): """ AnalysisConfig """ # noqa: E501 - scrape_third_party_config: Optional[ScrapeThirdPartyConfig] = Field(default=None, description="Settings to scrape third party sources") + advanced_analysis: Optional[StrictBool] = Field(default=False, description="Enables an advanced security analysis.") + generate_capabilities: Optional[StrictBool] = Field(default=False, description="A configuration option for generating capabilities of a binary") generate_cves: Optional[StrictBool] = Field(default=False, description="A configuration option for fetching CVEs data.") generate_sbom: Optional[StrictBool] = Field(default=False, description="A configuration option for generating software bill of materials data.") - generate_capabilities: Optional[StrictBool] = Field(default=False, description="A configuration option for generating capabilities of a binary") no_cache: Optional[StrictBool] = Field(default=False, description="When enabled, skips using cached data within the processing.") - advanced_analysis: Optional[StrictBool] = Field(default=False, description="Enables an advanced security analysis.") sandbox_config: Optional[SandboxOptions] = Field(default=None, description="Including a sandbox config enables the dynamic execution sandbox") - __properties: ClassVar[List[str]] = ["scrape_third_party_config", "generate_cves", "generate_sbom", "generate_capabilities", "no_cache", "advanced_analysis", "sandbox_config"] + scrape_third_party_config: Optional[ScrapeThirdPartyConfig] = Field(default=None, description="Settings to scrape third party sources") + __properties: ClassVar[List[str]] = ["advanced_analysis", "generate_capabilities", "generate_cves", "generate_sbom", "no_cache", "sandbox_config", "scrape_third_party_config"] model_config = ConfigDict( populate_by_name=True, @@ -75,12 +75,12 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of scrape_third_party_config - if self.scrape_third_party_config: - _dict['scrape_third_party_config'] = self.scrape_third_party_config.to_dict() # override the default output from pydantic by calling `to_dict()` of sandbox_config if self.sandbox_config: _dict['sandbox_config'] = self.sandbox_config.to_dict() + # override the default output from pydantic by calling `to_dict()` of scrape_third_party_config + if self.scrape_third_party_config: + _dict['scrape_third_party_config'] = self.scrape_third_party_config.to_dict() return _dict @classmethod @@ -93,13 +93,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "scrape_third_party_config": ScrapeThirdPartyConfig.from_dict(obj["scrape_third_party_config"]) if obj.get("scrape_third_party_config") is not None else None, + "advanced_analysis": obj.get("advanced_analysis") if obj.get("advanced_analysis") is not None else False, + "generate_capabilities": obj.get("generate_capabilities") if obj.get("generate_capabilities") is not None else False, "generate_cves": obj.get("generate_cves") if obj.get("generate_cves") is not None else False, "generate_sbom": obj.get("generate_sbom") if obj.get("generate_sbom") is not None else False, - "generate_capabilities": obj.get("generate_capabilities") if obj.get("generate_capabilities") is not None else False, "no_cache": obj.get("no_cache") if obj.get("no_cache") is not None else False, - "advanced_analysis": obj.get("advanced_analysis") if obj.get("advanced_analysis") is not None else False, - "sandbox_config": SandboxOptions.from_dict(obj["sandbox_config"]) if obj.get("sandbox_config") is not None else None + "sandbox_config": SandboxOptions.from_dict(obj["sandbox_config"]) if obj.get("sandbox_config") is not None else None, + "scrape_third_party_config": ScrapeThirdPartyConfig.from_dict(obj["scrape_third_party_config"]) if obj.get("scrape_third_party_config") is not None else None }) return _obj diff --git a/revengai/models/analysis_create_request.py b/revengai/models/analysis_create_request.py index b0502b1..1c53606 100644 --- a/revengai/models/analysis_create_request.py +++ b/revengai/models/analysis_create_request.py @@ -31,16 +31,16 @@ class AnalysisCreateRequest(BaseModel): """ AnalysisCreateRequest """ # noqa: E501 + analysis_config: Optional[AnalysisConfig] = Field(default=None, description="The analysis config enables the configuration of optional analysis stages") + analysis_scope: Optional[AnalysisScope] = Field(default=None, description="The scope of the analysis determines who can access it") + auto_run_agents: Optional[AutoRunAgents] = None + binary_config: Optional[BinaryConfig] = Field(default=None, description="The binary config can override automatically determined values such as ISA, Platform, File Format, etc") + debug_hash: Optional[StrictStr] = None filename: StrictStr = Field(description="The name of the file") sha_256_hash: StrictStr = Field(description="The name of the file") - tags: Optional[List[Tag]] = Field(default=None, description="List of community tags to assign to an analysis") - analysis_scope: Optional[AnalysisScope] = Field(default=None, description="The scope of the analysis determines who can access it") symbols: Optional[Symbols] = None - debug_hash: Optional[StrictStr] = None - analysis_config: Optional[AnalysisConfig] = Field(default=None, description="The analysis config enables the configuration of optional analysis stages") - binary_config: Optional[BinaryConfig] = Field(default=None, description="The binary config can override automatically determined values such as ISA, Platform, File Format, etc") - auto_run_agents: Optional[AutoRunAgents] = None - __properties: ClassVar[List[str]] = ["filename", "sha_256_hash", "tags", "analysis_scope", "symbols", "debug_hash", "analysis_config", "binary_config", "auto_run_agents"] + tags: Optional[List[Tag]] = Field(default=None, description="List of community tags to assign to an analysis") + __properties: ClassVar[List[str]] = ["analysis_config", "analysis_scope", "auto_run_agents", "binary_config", "debug_hash", "filename", "sha_256_hash", "symbols", "tags"] model_config = ConfigDict( populate_by_name=True, @@ -81,6 +81,18 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of analysis_config + if self.analysis_config: + _dict['analysis_config'] = self.analysis_config.to_dict() + # override the default output from pydantic by calling `to_dict()` of auto_run_agents + if self.auto_run_agents: + _dict['auto_run_agents'] = self.auto_run_agents.to_dict() + # override the default output from pydantic by calling `to_dict()` of binary_config + if self.binary_config: + _dict['binary_config'] = self.binary_config.to_dict() + # override the default output from pydantic by calling `to_dict()` of symbols + if self.symbols: + _dict['symbols'] = self.symbols.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in tags (list) _items = [] if self.tags: @@ -88,28 +100,16 @@ def to_dict(self) -> Dict[str, Any]: if _item_tags: _items.append(_item_tags.to_dict()) _dict['tags'] = _items - # override the default output from pydantic by calling `to_dict()` of symbols - if self.symbols: - _dict['symbols'] = self.symbols.to_dict() - # override the default output from pydantic by calling `to_dict()` of analysis_config - if self.analysis_config: - _dict['analysis_config'] = self.analysis_config.to_dict() - # override the default output from pydantic by calling `to_dict()` of binary_config - if self.binary_config: - _dict['binary_config'] = self.binary_config.to_dict() - # override the default output from pydantic by calling `to_dict()` of auto_run_agents - if self.auto_run_agents: - _dict['auto_run_agents'] = self.auto_run_agents.to_dict() - # set to None if symbols (nullable) is None - # and model_fields_set contains the field - if self.symbols is None and "symbols" in self.model_fields_set: - _dict['symbols'] = None - # set to None if debug_hash (nullable) is None # and model_fields_set contains the field if self.debug_hash is None and "debug_hash" in self.model_fields_set: _dict['debug_hash'] = None + # set to None if symbols (nullable) is None + # and model_fields_set contains the field + if self.symbols is None and "symbols" in self.model_fields_set: + _dict['symbols'] = None + return _dict @classmethod @@ -122,15 +122,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "analysis_config": AnalysisConfig.from_dict(obj["analysis_config"]) if obj.get("analysis_config") is not None else None, + "analysis_scope": obj.get("analysis_scope"), + "auto_run_agents": AutoRunAgents.from_dict(obj["auto_run_agents"]) if obj.get("auto_run_agents") is not None else None, + "binary_config": BinaryConfig.from_dict(obj["binary_config"]) if obj.get("binary_config") is not None else None, + "debug_hash": obj.get("debug_hash"), "filename": obj.get("filename"), "sha_256_hash": obj.get("sha_256_hash"), - "tags": [Tag.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None, - "analysis_scope": obj.get("analysis_scope"), "symbols": Symbols.from_dict(obj["symbols"]) if obj.get("symbols") is not None else None, - "debug_hash": obj.get("debug_hash"), - "analysis_config": AnalysisConfig.from_dict(obj["analysis_config"]) if obj.get("analysis_config") is not None else None, - "binary_config": BinaryConfig.from_dict(obj["binary_config"]) if obj.get("binary_config") is not None else None, - "auto_run_agents": AutoRunAgents.from_dict(obj["auto_run_agents"]) if obj.get("auto_run_agents") is not None else None + "tags": [Tag.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None }) return _obj diff --git a/revengai/models/analysis_detail_response.py b/revengai/models/analysis_detail_response.py index f34b955..f2bd753 100644 --- a/revengai/models/analysis_detail_response.py +++ b/revengai/models/analysis_detail_response.py @@ -31,6 +31,7 @@ class AnalysisDetailResponse(BaseModel): analysis_id: StrictInt analysis_scope: StrictStr architecture: StrictStr + auto_run_agents: AutoRunAgents binary_dynamic: StrictBool binary_format: StrictStr binary_name: StrictStr @@ -42,8 +43,7 @@ class AnalysisDetailResponse(BaseModel): model_name: StrictStr sbom: Optional[Dict[str, Any]] = None sha_256_hash: StrictStr - auto_run_agents: AutoRunAgents - __properties: ClassVar[List[str]] = ["access", "analysis_id", "analysis_scope", "architecture", "binary_dynamic", "binary_format", "binary_name", "binary_size", "binary_type", "creation", "dashboard_url", "debug", "model_name", "sbom", "sha_256_hash", "auto_run_agents"] + __properties: ClassVar[List[str]] = ["access", "analysis_id", "analysis_scope", "architecture", "auto_run_agents", "binary_dynamic", "binary_format", "binary_name", "binary_size", "binary_type", "creation", "dashboard_url", "debug", "model_name", "sbom", "sha_256_hash"] model_config = ConfigDict( populate_by_name=True, @@ -111,6 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "analysis_id": obj.get("analysis_id"), "analysis_scope": obj.get("analysis_scope"), "architecture": obj.get("architecture"), + "auto_run_agents": AutoRunAgents.from_dict(obj["auto_run_agents"]) if obj.get("auto_run_agents") is not None else None, "binary_dynamic": obj.get("binary_dynamic"), "binary_format": obj.get("binary_format"), "binary_name": obj.get("binary_name"), @@ -121,8 +122,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "debug": obj.get("debug"), "model_name": obj.get("model_name"), "sbom": obj.get("sbom"), - "sha_256_hash": obj.get("sha_256_hash"), - "auto_run_agents": AutoRunAgents.from_dict(obj["auto_run_agents"]) if obj.get("auto_run_agents") is not None else None + "sha_256_hash": obj.get("sha_256_hash") }) return _obj diff --git a/revengai/models/analysis_function_matching_request.py b/revengai/models/analysis_function_matching_request.py index fc43078..8174a90 100644 --- a/revengai/models/analysis_function_matching_request.py +++ b/revengai/models/analysis_function_matching_request.py @@ -27,15 +27,15 @@ class AnalysisFunctionMatchingRequest(BaseModel): """ AnalysisFunctionMatchingRequest """ # noqa: E501 - min_similarity: Optional[Union[Annotated[float, Field(le=100.0, strict=True, ge=0.0)], Annotated[int, Field(le=100, strict=True, ge=0)]]] = Field(default=90.0, description="Minimum similarity expected for a match as a percentage, default is 90") filters: Optional[FunctionMatchingFilters] = None - results_per_function: Optional[Annotated[int, Field(le=10, strict=True, ge=1)]] = Field(default=1, description="Maximum number of matches to return per function, default is 1, max is 10") + min_similarity: Optional[Union[Annotated[float, Field(le=100, strict=True, ge=0)], Annotated[int, Field(le=100, strict=True, ge=0)]]] = Field(default=90, description="Minimum similarity expected for a match as a percentage, default is 90") + no_cache: Optional[StrictBool] = Field(default=False, description="If set to true, forces the system to bypass any cached results and perform a fresh computation") page: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=1, description="Page number for paginated results, default is 1 (first page)") page_size: Optional[Annotated[int, Field(le=1000, strict=True, ge=0)]] = Field(default=0, description="Number of functions to return per page, default is 0 (all functions), max is 1000") + results_per_function: Optional[Annotated[int, Field(le=10, strict=True, ge=1)]] = Field(default=1, description="Maximum number of matches to return per function, default is 1, max is 10") status_only: Optional[StrictBool] = Field(default=False, description="If set to true, only returns the status of the matching operation without the actual results") - no_cache: Optional[StrictBool] = Field(default=False, description="If set to true, forces the system to bypass any cached results and perform a fresh computation") use_canonical_names: Optional[StrictBool] = Field(default=False, description="Whether to use canonical function names during function matching for confidence results, default is False") - __properties: ClassVar[List[str]] = ["min_similarity", "filters", "results_per_function", "page", "page_size", "status_only", "no_cache", "use_canonical_names"] + __properties: ClassVar[List[str]] = ["filters", "min_similarity", "no_cache", "page", "page_size", "results_per_function", "status_only", "use_canonical_names"] model_config = ConfigDict( populate_by_name=True, @@ -96,13 +96,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "min_similarity": obj.get("min_similarity") if obj.get("min_similarity") is not None else 90.0, "filters": FunctionMatchingFilters.from_dict(obj["filters"]) if obj.get("filters") is not None else None, - "results_per_function": obj.get("results_per_function") if obj.get("results_per_function") is not None else 1, + "min_similarity": obj.get("min_similarity") if obj.get("min_similarity") is not None else 90, + "no_cache": obj.get("no_cache") if obj.get("no_cache") is not None else False, "page": obj.get("page") if obj.get("page") is not None else 1, "page_size": obj.get("page_size") if obj.get("page_size") is not None else 0, + "results_per_function": obj.get("results_per_function") if obj.get("results_per_function") is not None else 1, "status_only": obj.get("status_only") if obj.get("status_only") is not None else False, - "no_cache": obj.get("no_cache") if obj.get("no_cache") is not None else False, "use_canonical_names": obj.get("use_canonical_names") if obj.get("use_canonical_names") is not None else False }) return _obj diff --git a/revengai/models/analysis_record.py b/revengai/models/analysis_record.py index f957108..fc7ce0e 100644 --- a/revengai/models/analysis_record.py +++ b/revengai/models/analysis_record.py @@ -30,22 +30,22 @@ class AnalysisRecord(BaseModel): """ # noqa: E501 analysis_id: StrictInt = Field(description="ID to identify analysis") analysis_scope: StrictStr = Field(description="Scope of the analysis") + base_address: StrictInt = Field(description="The base address of the binary") binary_id: StrictInt = Field(description="ID to identify the binary analyse") - model_id: StrictInt = Field(description="ID to identify the model used for analysis") - model_name: StrictStr = Field(description="Name of the model used for analysis") - status: StrictStr = Field(description="The current status of analysis") - creation: datetime = Field(description="The datetime of when the analysis was created") - is_owner: StrictBool = Field(description="Whether the current user is the owner of a binary") binary_name: StrictStr = Field(description="The name of the file uploaded") - sha_256_hash: StrictStr = Field(description="The hash of the binary") - function_boundaries_hash: StrictStr = Field(description="The hash of the function boundaries") binary_size: StrictInt = Field(description="The size of the binary") - username: StrictStr = Field(description="The username of the analysis owner") + creation: datetime = Field(description="The datetime of when the analysis was created") dynamic_execution_status: Optional[AppApiRestV2AnalysesEnumsDynamicExecutionStatus] = None dynamic_execution_task_id: Optional[StrictInt] = None - base_address: StrictInt = Field(description="The base address of the binary") + function_boundaries_hash: StrictStr = Field(description="The hash of the function boundaries") + is_owner: StrictBool = Field(description="Whether the current user is the owner of a binary") + model_id: StrictInt = Field(description="ID to identify the model used for analysis") + model_name: StrictStr = Field(description="Name of the model used for analysis") + sha_256_hash: StrictStr = Field(description="The hash of the binary") + status: StrictStr = Field(description="The current status of analysis") tags: Optional[List[TagItem]] = Field(default=None, description="List of tags associated with the analysis") - __properties: ClassVar[List[str]] = ["analysis_id", "analysis_scope", "binary_id", "model_id", "model_name", "status", "creation", "is_owner", "binary_name", "sha_256_hash", "function_boundaries_hash", "binary_size", "username", "dynamic_execution_status", "dynamic_execution_task_id", "base_address", "tags"] + username: StrictStr = Field(description="The username of the analysis owner") + __properties: ClassVar[List[str]] = ["analysis_id", "analysis_scope", "base_address", "binary_id", "binary_name", "binary_size", "creation", "dynamic_execution_status", "dynamic_execution_task_id", "function_boundaries_hash", "is_owner", "model_id", "model_name", "sha_256_hash", "status", "tags", "username"] model_config = ConfigDict( populate_by_name=True, @@ -117,21 +117,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "analysis_id": obj.get("analysis_id"), "analysis_scope": obj.get("analysis_scope"), + "base_address": obj.get("base_address"), "binary_id": obj.get("binary_id"), - "model_id": obj.get("model_id"), - "model_name": obj.get("model_name"), - "status": obj.get("status"), - "creation": obj.get("creation"), - "is_owner": obj.get("is_owner"), "binary_name": obj.get("binary_name"), - "sha_256_hash": obj.get("sha_256_hash"), - "function_boundaries_hash": obj.get("function_boundaries_hash"), "binary_size": obj.get("binary_size"), - "username": obj.get("username"), + "creation": obj.get("creation"), "dynamic_execution_status": obj.get("dynamic_execution_status"), "dynamic_execution_task_id": obj.get("dynamic_execution_task_id"), - "base_address": obj.get("base_address"), - "tags": [TagItem.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None + "function_boundaries_hash": obj.get("function_boundaries_hash"), + "is_owner": obj.get("is_owner"), + "model_id": obj.get("model_id"), + "model_name": obj.get("model_name"), + "sha_256_hash": obj.get("sha_256_hash"), + "status": obj.get("status"), + "tags": [TagItem.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None, + "username": obj.get("username") }) return _obj diff --git a/revengai/models/analysis_string_input.py b/revengai/models/analysis_string_input.py new file mode 100644 index 0000000..051ac64 --- /dev/null +++ b/revengai/models/analysis_string_input.py @@ -0,0 +1,91 @@ +# 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, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from revengai.models.string_source import StringSource +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisStringInput(BaseModel): + """ + Input model for inserting a string into an analysis. + """ # noqa: E501 + source: StringSource = Field(description="The source of the string") + vaddr: StrictInt = Field(description="The virtual address of the string") + value: StrictStr = Field(description="The string literal value") + __properties: ClassVar[List[str]] = ["source", "vaddr", "value"] + + 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 AnalysisStringInput 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 AnalysisStringInput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "source": obj.get("source"), + "vaddr": obj.get("vaddr"), + "value": obj.get("value") + }) + return _obj + + diff --git a/revengai/models/analysis_update_request.py b/revengai/models/analysis_update_request.py index 1c3db89..a482c64 100644 --- a/revengai/models/analysis_update_request.py +++ b/revengai/models/analysis_update_request.py @@ -25,9 +25,9 @@ class AnalysisUpdateRequest(BaseModel): """ AnalysisUpdateRequest """ # noqa: E501 - binary_name: Optional[StrictStr] = None analysis_scope: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["binary_name", "analysis_scope"] + binary_name: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["analysis_scope", "binary_name"] @field_validator('analysis_scope') def analysis_scope_validate_enum(cls, value): @@ -78,16 +78,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if binary_name (nullable) is None - # and model_fields_set contains the field - if self.binary_name is None and "binary_name" in self.model_fields_set: - _dict['binary_name'] = None - # set to None if analysis_scope (nullable) is None # and model_fields_set contains the field if self.analysis_scope is None and "analysis_scope" in self.model_fields_set: _dict['analysis_scope'] = None + # set to None if binary_name (nullable) is None + # and model_fields_set contains the field + if self.binary_name is None and "binary_name" in self.model_fields_set: + _dict['binary_name'] = None + return _dict @classmethod @@ -100,8 +100,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "binary_name": obj.get("binary_name"), - "analysis_scope": obj.get("analysis_scope") + "analysis_scope": obj.get("analysis_scope"), + "binary_name": obj.get("binary_name") }) return _obj diff --git a/revengai/models/app_api_rest_v2_functions_types_function.py b/revengai/models/app_api_rest_v2_functions_types_function.py index 3052b3c..5e5b0ed 100644 --- a/revengai/models/app_api_rest_v2_functions_types_function.py +++ b/revengai/models/app_api_rest_v2_functions_types_function.py @@ -25,15 +25,15 @@ class AppApiRestV2FunctionsTypesFunction(BaseModel): """ AppApiRestV2FunctionsTypesFunction """ # noqa: E501 + debug: StrictBool = Field(description="Whether the function is debug") + embedding_1d: Optional[List[Union[StrictFloat, StrictInt]]] = None + embedding_3d: Optional[List[Union[StrictFloat, StrictInt]]] = None function_id: StrictInt = Field(description="Function id") - function_name: StrictStr = Field(description="Demangled name of the function") function_mangled_name: StrictStr = Field(description="Mangled name of the function") - function_vaddr: StrictInt = Field(description="Function virtual address") + function_name: StrictStr = Field(description="Demangled name of the function") function_size: StrictInt = Field(description="Function size") - debug: StrictBool = Field(description="Whether the function is debug") - embedding_3d: Optional[List[Union[StrictFloat, StrictInt]]] = None - embedding_1d: Optional[List[Union[StrictFloat, StrictInt]]] = None - __properties: ClassVar[List[str]] = ["function_id", "function_name", "function_mangled_name", "function_vaddr", "function_size", "debug", "embedding_3d", "embedding_1d"] + function_vaddr: StrictInt = Field(description="Function virtual address") + __properties: ClassVar[List[str]] = ["debug", "embedding_1d", "embedding_3d", "function_id", "function_mangled_name", "function_name", "function_size", "function_vaddr"] model_config = ConfigDict( populate_by_name=True, @@ -74,16 +74,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if embedding_3d (nullable) is None - # and model_fields_set contains the field - if self.embedding_3d is None and "embedding_3d" in self.model_fields_set: - _dict['embedding_3d'] = None - # set to None if embedding_1d (nullable) is None # and model_fields_set contains the field if self.embedding_1d is None and "embedding_1d" in self.model_fields_set: _dict['embedding_1d'] = None + # set to None if embedding_3d (nullable) is None + # and model_fields_set contains the field + if self.embedding_3d is None and "embedding_3d" in self.model_fields_set: + _dict['embedding_3d'] = None + return _dict @classmethod @@ -96,14 +96,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "debug": obj.get("debug"), + "embedding_1d": obj.get("embedding_1d"), + "embedding_3d": obj.get("embedding_3d"), "function_id": obj.get("function_id"), - "function_name": obj.get("function_name"), "function_mangled_name": obj.get("function_mangled_name"), - "function_vaddr": obj.get("function_vaddr"), + "function_name": obj.get("function_name"), "function_size": obj.get("function_size"), - "debug": obj.get("debug"), - "embedding_3d": obj.get("embedding_3d"), - "embedding_1d": obj.get("embedding_1d") + "function_vaddr": obj.get("function_vaddr") }) return _obj diff --git a/revengai/models/argument.py b/revengai/models/argument.py index 451e5df..636fba0 100644 --- a/revengai/models/argument.py +++ b/revengai/models/argument.py @@ -26,11 +26,11 @@ class Argument(BaseModel): Argument """ # noqa: E501 last_change: Optional[StrictStr] = None - offset: StrictInt = Field(description="Offset of the argument in the function signature") name: StrictStr = Field(description="Name of the argument") - type: StrictStr = Field(description="Data type of the argument") + offset: StrictInt = Field(description="Offset of the argument in the function signature") size: StrictInt = Field(description="Size of the argument in bytes") - __properties: ClassVar[List[str]] = ["last_change", "offset", "name", "type", "size"] + type: StrictStr = Field(description="Data type of the argument") + __properties: ClassVar[List[str]] = ["last_change", "name", "offset", "size", "type"] model_config = ConfigDict( populate_by_name=True, @@ -89,10 +89,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "last_change": obj.get("last_change"), - "offset": obj.get("offset"), "name": obj.get("name"), - "type": obj.get("type"), - "size": obj.get("size") + "offset": obj.get("offset"), + "size": obj.get("size"), + "type": obj.get("type") }) return _obj diff --git a/revengai/models/auto_unstrip_request.py b/revengai/models/auto_unstrip_request.py index dfe9c19..f760b67 100644 --- a/revengai/models/auto_unstrip_request.py +++ b/revengai/models/auto_unstrip_request.py @@ -26,14 +26,14 @@ class AutoUnstripRequest(BaseModel): """ AutoUnstripRequest """ # noqa: E501 - min_similarity: Optional[Union[Annotated[float, Field(le=100.0, strict=True, ge=0.0)], Annotated[int, Field(le=100, strict=True, ge=0)]]] = Field(default=90.0, description="Minimum similarity expected for a match as a percentage, default is 90") apply: Optional[StrictBool] = Field(default=False, description="Whether to apply the matched function names to the target binary, default is False") - confidence_threshold: Optional[Union[Annotated[float, Field(le=100.0, strict=True, ge=0.0)], Annotated[int, Field(le=100, strict=True, ge=0)]]] = Field(default=90.0, description="Confidence threshold for applying function names as a percentage, default is 90") + confidence_threshold: Optional[Union[Annotated[float, Field(le=100, strict=True, ge=0)], Annotated[int, Field(le=100, strict=True, ge=0)]]] = Field(default=90, description="Confidence threshold for applying function names as a percentage, default is 90") min_group_size: Optional[Annotated[int, Field(le=20, strict=True, ge=1)]] = Field(default=10, description="Minimum number of matching functions required to consider for a match, default is 10") - status_only: Optional[StrictBool] = Field(default=False, description="If set to true, only returns the status of the auto-unstrip operation without the actual results") + min_similarity: Optional[Union[Annotated[float, Field(le=100, strict=True, ge=0)], Annotated[int, Field(le=100, strict=True, ge=0)]]] = Field(default=90, description="Minimum similarity expected for a match as a percentage, default is 90") no_cache: Optional[StrictBool] = Field(default=False, description="If set to true, forces the system to bypass any cached results and perform a fresh computation") + status_only: Optional[StrictBool] = Field(default=False, description="If set to true, only returns the status of the auto-unstrip operation without the actual results") use_canonical_names: Optional[StrictBool] = Field(default=False, description="Whether to use canonical function names during matching for auto-unstrip, default is False") - __properties: ClassVar[List[str]] = ["min_similarity", "apply", "confidence_threshold", "min_group_size", "status_only", "no_cache", "use_canonical_names"] + __properties: ClassVar[List[str]] = ["apply", "confidence_threshold", "min_group_size", "min_similarity", "no_cache", "status_only", "use_canonical_names"] model_config = ConfigDict( populate_by_name=True, @@ -86,12 +86,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "min_similarity": obj.get("min_similarity") if obj.get("min_similarity") is not None else 90.0, "apply": obj.get("apply") if obj.get("apply") is not None else False, - "confidence_threshold": obj.get("confidence_threshold") if obj.get("confidence_threshold") is not None else 90.0, + "confidence_threshold": obj.get("confidence_threshold") if obj.get("confidence_threshold") is not None else 90, "min_group_size": obj.get("min_group_size") if obj.get("min_group_size") is not None else 10, - "status_only": obj.get("status_only") if obj.get("status_only") is not None else False, + "min_similarity": obj.get("min_similarity") if obj.get("min_similarity") is not None else 90, "no_cache": obj.get("no_cache") if obj.get("no_cache") is not None else False, + "status_only": obj.get("status_only") if obj.get("status_only") is not None else False, "use_canonical_names": obj.get("use_canonical_names") if obj.get("use_canonical_names") is not None else False }) return _obj diff --git a/revengai/models/auto_unstrip_response.py b/revengai/models/auto_unstrip_response.py index 4f634eb..3860cc5 100644 --- a/revengai/models/auto_unstrip_response.py +++ b/revengai/models/auto_unstrip_response.py @@ -26,13 +26,13 @@ class AutoUnstripResponse(BaseModel): """ AutoUnstripResponse """ # noqa: E501 + applied: Optional[StrictBool] = None + error_message: Optional[StrictStr] = None + matches: Optional[List[MatchedFunctionSuggestion]] = None progress: Optional[StrictInt] = Field(default=0, description="Progress of the auto-unstrip operation, represented as a percentage") status: Optional[StrictStr] = None total_time: Optional[StrictInt] = None - matches: Optional[List[MatchedFunctionSuggestion]] = None - applied: Optional[StrictBool] = None - error_message: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["progress", "status", "total_time", "matches", "applied", "error_message"] + __properties: ClassVar[List[str]] = ["applied", "error_message", "matches", "progress", "status", "total_time"] model_config = ConfigDict( populate_by_name=True, @@ -80,30 +80,30 @@ def to_dict(self) -> Dict[str, Any]: if _item_matches: _items.append(_item_matches.to_dict()) _dict['matches'] = _items - # set to None if status (nullable) is None + # set to None if applied (nullable) is None # and model_fields_set contains the field - if self.status is None and "status" in self.model_fields_set: - _dict['status'] = None + if self.applied is None and "applied" in self.model_fields_set: + _dict['applied'] = None - # set to None if total_time (nullable) is None + # set to None if error_message (nullable) is None # and model_fields_set contains the field - if self.total_time is None and "total_time" in self.model_fields_set: - _dict['total_time'] = None + if self.error_message is None and "error_message" in self.model_fields_set: + _dict['error_message'] = None # set to None if matches (nullable) is None # and model_fields_set contains the field if self.matches is None and "matches" in self.model_fields_set: _dict['matches'] = None - # set to None if applied (nullable) is None + # set to None if status (nullable) is None # and model_fields_set contains the field - if self.applied is None and "applied" in self.model_fields_set: - _dict['applied'] = None + if self.status is None and "status" in self.model_fields_set: + _dict['status'] = None - # set to None if error_message (nullable) is None + # set to None if total_time (nullable) is None # and model_fields_set contains the field - if self.error_message is None and "error_message" in self.model_fields_set: - _dict['error_message'] = None + if self.total_time is None and "total_time" in self.model_fields_set: + _dict['total_time'] = None return _dict @@ -117,12 +117,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "applied": obj.get("applied"), + "error_message": obj.get("error_message"), + "matches": [MatchedFunctionSuggestion.from_dict(_item) for _item in obj["matches"]] if obj.get("matches") is not None else None, "progress": obj.get("progress") if obj.get("progress") is not None else 0, "status": obj.get("status"), - "total_time": obj.get("total_time"), - "matches": [MatchedFunctionSuggestion.from_dict(_item) for _item in obj["matches"]] if obj.get("matches") is not None else None, - "applied": obj.get("applied"), - "error_message": obj.get("error_message") + "total_time": obj.get("total_time") }) return _obj diff --git a/revengai/models/base_response.py b/revengai/models/base_response.py index 27d8e53..c3832c2 100644 --- a/revengai/models/base_response.py +++ b/revengai/models/base_response.py @@ -27,12 +27,12 @@ class BaseResponse(BaseModel): """ BaseResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[Dict[str, Any]] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -88,16 +88,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -110,11 +110,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": obj.get("data"), - "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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_additional_details_status_response.py b/revengai/models/base_response_additional_details_status_response.py index 632e714..7be5db2 100644 --- a/revengai/models/base_response_additional_details_status_response.py +++ b/revengai/models/base_response_additional_details_status_response.py @@ -28,12 +28,12 @@ class BaseResponseAdditionalDetailsStatusResponse(BaseModel): """ BaseResponseAdditionalDetailsStatusResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[AdditionalDetailsStatusResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": AdditionalDetailsStatusResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_analysis_bulk_add_tags_response.py b/revengai/models/base_response_analysis_bulk_add_tags_response.py index d14bfea..75a32f4 100644 --- a/revengai/models/base_response_analysis_bulk_add_tags_response.py +++ b/revengai/models/base_response_analysis_bulk_add_tags_response.py @@ -28,12 +28,12 @@ class BaseResponseAnalysisBulkAddTagsResponse(BaseModel): """ BaseResponseAnalysisBulkAddTagsResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[AnalysisBulkAddTagsResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": AnalysisBulkAddTagsResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_analysis_create_response.py b/revengai/models/base_response_analysis_create_response.py index 76856b2..9b0d061 100644 --- a/revengai/models/base_response_analysis_create_response.py +++ b/revengai/models/base_response_analysis_create_response.py @@ -28,12 +28,12 @@ class BaseResponseAnalysisCreateResponse(BaseModel): """ BaseResponseAnalysisCreateResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[AnalysisCreateResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": AnalysisCreateResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_analysis_detail_response.py b/revengai/models/base_response_analysis_detail_response.py index 9a2d294..ba340f5 100644 --- a/revengai/models/base_response_analysis_detail_response.py +++ b/revengai/models/base_response_analysis_detail_response.py @@ -28,12 +28,12 @@ class BaseResponseAnalysisDetailResponse(BaseModel): """ BaseResponseAnalysisDetailResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[AnalysisDetailResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": AnalysisDetailResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_analysis_function_mapping.py b/revengai/models/base_response_analysis_function_mapping.py index d716d85..c530def 100644 --- a/revengai/models/base_response_analysis_function_mapping.py +++ b/revengai/models/base_response_analysis_function_mapping.py @@ -28,12 +28,12 @@ class BaseResponseAnalysisFunctionMapping(BaseModel): """ BaseResponseAnalysisFunctionMapping """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[AnalysisFunctionMapping] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": AnalysisFunctionMapping.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_analysis_functions.py b/revengai/models/base_response_analysis_functions.py index e243c9c..6249e23 100644 --- a/revengai/models/base_response_analysis_functions.py +++ b/revengai/models/base_response_analysis_functions.py @@ -28,12 +28,12 @@ class BaseResponseAnalysisFunctions(BaseModel): """ BaseResponseAnalysisFunctions """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[AnalysisFunctions] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": AnalysisFunctions.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_analysis_functions_list.py b/revengai/models/base_response_analysis_functions_list.py index ee5e7fc..745d601 100644 --- a/revengai/models/base_response_analysis_functions_list.py +++ b/revengai/models/base_response_analysis_functions_list.py @@ -28,12 +28,12 @@ class BaseResponseAnalysisFunctionsList(BaseModel): """ BaseResponseAnalysisFunctionsList """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[AnalysisFunctionsList] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": AnalysisFunctionsList.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_analysis_stages_response.py b/revengai/models/base_response_analysis_stages_response.py index ac9b835..14053de 100644 --- a/revengai/models/base_response_analysis_stages_response.py +++ b/revengai/models/base_response_analysis_stages_response.py @@ -28,12 +28,12 @@ class BaseResponseAnalysisStagesResponse(BaseModel): """ BaseResponseAnalysisStagesResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[AnalysisStagesResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": AnalysisStagesResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_analysis_strings_response.py b/revengai/models/base_response_analysis_strings_response.py index e05091c..eb7a9bd 100644 --- a/revengai/models/base_response_analysis_strings_response.py +++ b/revengai/models/base_response_analysis_strings_response.py @@ -28,12 +28,12 @@ class BaseResponseAnalysisStringsResponse(BaseModel): """ BaseResponseAnalysisStringsResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[AnalysisStringsResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": AnalysisStringsResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_analysis_strings_status_response.py b/revengai/models/base_response_analysis_strings_status_response.py index f259f60..f8efe65 100644 --- a/revengai/models/base_response_analysis_strings_status_response.py +++ b/revengai/models/base_response_analysis_strings_status_response.py @@ -28,12 +28,12 @@ class BaseResponseAnalysisStringsStatusResponse(BaseModel): """ BaseResponseAnalysisStringsStatusResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[AnalysisStringsStatusResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": AnalysisStringsStatusResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_analysis_tags.py b/revengai/models/base_response_analysis_tags.py index 6b4ee41..98e413c 100644 --- a/revengai/models/base_response_analysis_tags.py +++ b/revengai/models/base_response_analysis_tags.py @@ -28,12 +28,12 @@ class BaseResponseAnalysisTags(BaseModel): """ BaseResponseAnalysisTags """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[AnalysisTags] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": AnalysisTags.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_analysis_update_tags_response.py b/revengai/models/base_response_analysis_update_tags_response.py index d068066..be2161e 100644 --- a/revengai/models/base_response_analysis_update_tags_response.py +++ b/revengai/models/base_response_analysis_update_tags_response.py @@ -28,12 +28,12 @@ class BaseResponseAnalysisUpdateTagsResponse(BaseModel): """ BaseResponseAnalysisUpdateTagsResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[AnalysisUpdateTagsResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": AnalysisUpdateTagsResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_basic.py b/revengai/models/base_response_basic.py index 2a10233..ac253cf 100644 --- a/revengai/models/base_response_basic.py +++ b/revengai/models/base_response_basic.py @@ -28,12 +28,12 @@ class BaseResponseBasic(BaseModel): """ BaseResponseBasic """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[Basic] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": Basic.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_binaries_related_status_response.py b/revengai/models/base_response_binaries_related_status_response.py index d99aced..f55fa33 100644 --- a/revengai/models/base_response_binaries_related_status_response.py +++ b/revengai/models/base_response_binaries_related_status_response.py @@ -28,12 +28,12 @@ class BaseResponseBinariesRelatedStatusResponse(BaseModel): """ BaseResponseBinariesRelatedStatusResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[BinariesRelatedStatusResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": BinariesRelatedStatusResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_binary_additional_response.py b/revengai/models/base_response_binary_additional_response.py index 0177cc7..901b75a 100644 --- a/revengai/models/base_response_binary_additional_response.py +++ b/revengai/models/base_response_binary_additional_response.py @@ -28,12 +28,12 @@ class BaseResponseBinaryAdditionalResponse(BaseModel): """ BaseResponseBinaryAdditionalResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[BinaryAdditionalResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": BinaryAdditionalResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_binary_details_response.py b/revengai/models/base_response_binary_details_response.py index 6710cea..36705a2 100644 --- a/revengai/models/base_response_binary_details_response.py +++ b/revengai/models/base_response_binary_details_response.py @@ -28,12 +28,12 @@ class BaseResponseBinaryDetailsResponse(BaseModel): """ BaseResponseBinaryDetailsResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[BinaryDetailsResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": BinaryDetailsResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_binary_externals_response.py b/revengai/models/base_response_binary_externals_response.py index 455cf62..117531c 100644 --- a/revengai/models/base_response_binary_externals_response.py +++ b/revengai/models/base_response_binary_externals_response.py @@ -28,12 +28,12 @@ class BaseResponseBinaryExternalsResponse(BaseModel): """ BaseResponseBinaryExternalsResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[BinaryExternalsResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": BinaryExternalsResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_binary_search_response.py b/revengai/models/base_response_binary_search_response.py index 673655f..9a8b4aa 100644 --- a/revengai/models/base_response_binary_search_response.py +++ b/revengai/models/base_response_binary_search_response.py @@ -28,12 +28,12 @@ class BaseResponseBinarySearchResponse(BaseModel): """ BaseResponseBinarySearchResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[BinarySearchResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": BinarySearchResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_block_comments_generation_for_function_response.py b/revengai/models/base_response_block_comments_generation_for_function_response.py index 5f7d136..81037a4 100644 --- a/revengai/models/base_response_block_comments_generation_for_function_response.py +++ b/revengai/models/base_response_block_comments_generation_for_function_response.py @@ -28,12 +28,12 @@ class BaseResponseBlockCommentsGenerationForFunctionResponse(BaseModel): """ BaseResponseBlockCommentsGenerationForFunctionResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[BlockCommentsGenerationForFunctionResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": BlockCommentsGenerationForFunctionResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_block_comments_overview_generation_response.py b/revengai/models/base_response_block_comments_overview_generation_response.py index 3b918b0..a8bcb69 100644 --- a/revengai/models/base_response_block_comments_overview_generation_response.py +++ b/revengai/models/base_response_block_comments_overview_generation_response.py @@ -27,12 +27,12 @@ class BaseResponseBlockCommentsOverviewGenerationResponse(BaseModel): """ BaseResponseBlockCommentsOverviewGenerationResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[Dict[str, Any]] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -83,16 +83,16 @@ def to_dict(self) -> Dict[str, Any]: # 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 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 + # 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 + return _dict @classmethod @@ -105,11 +105,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": obj.get("data"), - "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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_bool.py b/revengai/models/base_response_bool.py index d48ca77..a11b071 100644 --- a/revengai/models/base_response_bool.py +++ b/revengai/models/base_response_bool.py @@ -27,12 +27,12 @@ class BaseResponseBool(BaseModel): """ BaseResponseBool """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[StrictBool] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -88,16 +88,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -110,11 +110,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": obj.get("data"), - "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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_callees_caller_functions_response.py b/revengai/models/base_response_callees_caller_functions_response.py index deb9de8..f563281 100644 --- a/revengai/models/base_response_callees_caller_functions_response.py +++ b/revengai/models/base_response_callees_caller_functions_response.py @@ -28,12 +28,12 @@ class BaseResponseCalleesCallerFunctionsResponse(BaseModel): """ BaseResponseCalleesCallerFunctionsResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[CalleesCallerFunctionsResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": CalleesCallerFunctionsResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_capabilities.py b/revengai/models/base_response_capabilities.py index 420ad9d..9a30e53 100644 --- a/revengai/models/base_response_capabilities.py +++ b/revengai/models/base_response_capabilities.py @@ -28,12 +28,12 @@ class BaseResponseCapabilities(BaseModel): """ BaseResponseCapabilities """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[Capabilities] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": Capabilities.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_check_security_checks_task_response.py b/revengai/models/base_response_check_security_checks_task_response.py index c5a094a..59c0221 100644 --- a/revengai/models/base_response_check_security_checks_task_response.py +++ b/revengai/models/base_response_check_security_checks_task_response.py @@ -28,12 +28,12 @@ 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 + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_child_binaries_response.py b/revengai/models/base_response_child_binaries_response.py index cc56a7b..47659fd 100644 --- a/revengai/models/base_response_child_binaries_response.py +++ b/revengai/models/base_response_child_binaries_response.py @@ -28,12 +28,12 @@ class BaseResponseChildBinariesResponse(BaseModel): """ BaseResponseChildBinariesResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[ChildBinariesResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": ChildBinariesResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_collection_binaries_update_response.py b/revengai/models/base_response_collection_binaries_update_response.py index 7465c9a..34e3efd 100644 --- a/revengai/models/base_response_collection_binaries_update_response.py +++ b/revengai/models/base_response_collection_binaries_update_response.py @@ -28,12 +28,12 @@ class BaseResponseCollectionBinariesUpdateResponse(BaseModel): """ BaseResponseCollectionBinariesUpdateResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[CollectionBinariesUpdateResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": CollectionBinariesUpdateResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_collection_response.py b/revengai/models/base_response_collection_response.py index 770d149..cb77def 100644 --- a/revengai/models/base_response_collection_response.py +++ b/revengai/models/base_response_collection_response.py @@ -28,12 +28,12 @@ class BaseResponseCollectionResponse(BaseModel): """ BaseResponseCollectionResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[CollectionResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": CollectionResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_collection_search_response.py b/revengai/models/base_response_collection_search_response.py index 396dbf9..c103d10 100644 --- a/revengai/models/base_response_collection_search_response.py +++ b/revengai/models/base_response_collection_search_response.py @@ -28,12 +28,12 @@ class BaseResponseCollectionSearchResponse(BaseModel): """ BaseResponseCollectionSearchResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[CollectionSearchResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": CollectionSearchResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_collection_tags_update_response.py b/revengai/models/base_response_collection_tags_update_response.py index 54a8f66..8cf5670 100644 --- a/revengai/models/base_response_collection_tags_update_response.py +++ b/revengai/models/base_response_collection_tags_update_response.py @@ -28,12 +28,12 @@ class BaseResponseCollectionTagsUpdateResponse(BaseModel): """ BaseResponseCollectionTagsUpdateResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[CollectionTagsUpdateResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": CollectionTagsUpdateResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_comment_response.py b/revengai/models/base_response_comment_response.py index 08202a1..91d4f20 100644 --- a/revengai/models/base_response_comment_response.py +++ b/revengai/models/base_response_comment_response.py @@ -28,12 +28,12 @@ class BaseResponseCommentResponse(BaseModel): """ BaseResponseCommentResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[CommentResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": CommentResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_communities.py b/revengai/models/base_response_communities.py index a9cba9d..b2efe98 100644 --- a/revengai/models/base_response_communities.py +++ b/revengai/models/base_response_communities.py @@ -28,12 +28,12 @@ class BaseResponseCommunities(BaseModel): """ BaseResponseCommunities """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[Communities] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": Communities.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_config_response.py b/revengai/models/base_response_config_response.py index 4462283..5dd020f 100644 --- a/revengai/models/base_response_config_response.py +++ b/revengai/models/base_response_config_response.py @@ -28,12 +28,12 @@ class BaseResponseConfigResponse(BaseModel): """ BaseResponseConfigResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[ConfigResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": ConfigResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_created.py b/revengai/models/base_response_created.py index 2f8739d..b25bf83 100644 --- a/revengai/models/base_response_created.py +++ b/revengai/models/base_response_created.py @@ -28,12 +28,12 @@ class BaseResponseCreated(BaseModel): """ BaseResponseCreated """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[Created] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": Created.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_dict.py b/revengai/models/base_response_dict.py index 0cec332..f11cb6d 100644 --- a/revengai/models/base_response_dict.py +++ b/revengai/models/base_response_dict.py @@ -27,12 +27,12 @@ class BaseResponseDict(BaseModel): """ BaseResponseDict """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[Dict[str, Any]] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -88,16 +88,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -110,11 +110,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": obj.get("data"), - "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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_dynamic_execution_status.py b/revengai/models/base_response_dynamic_execution_status.py index f43bad1..e107266 100644 --- a/revengai/models/base_response_dynamic_execution_status.py +++ b/revengai/models/base_response_dynamic_execution_status.py @@ -28,12 +28,12 @@ class BaseResponseDynamicExecutionStatus(BaseModel): """ BaseResponseDynamicExecutionStatus """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[AppServicesDynamicExecutionSchemasDynamicExecutionStatus] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": AppServicesDynamicExecutionSchemasDynamicExecutionStatus.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_external_response.py b/revengai/models/base_response_external_response.py index 347989b..0aad0a0 100644 --- a/revengai/models/base_response_external_response.py +++ b/revengai/models/base_response_external_response.py @@ -28,12 +28,12 @@ class BaseResponseExternalResponse(BaseModel): """ BaseResponseExternalResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[ExternalResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": ExternalResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_function_blocks_response.py b/revengai/models/base_response_function_blocks_response.py index bc72948..5822370 100644 --- a/revengai/models/base_response_function_blocks_response.py +++ b/revengai/models/base_response_function_blocks_response.py @@ -28,12 +28,12 @@ class BaseResponseFunctionBlocksResponse(BaseModel): """ BaseResponseFunctionBlocksResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[FunctionBlocksResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": FunctionBlocksResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_function_capability_response.py b/revengai/models/base_response_function_capability_response.py index cacdf2f..8de3b8f 100644 --- a/revengai/models/base_response_function_capability_response.py +++ b/revengai/models/base_response_function_capability_response.py @@ -28,12 +28,12 @@ class BaseResponseFunctionCapabilityResponse(BaseModel): """ BaseResponseFunctionCapabilityResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[FunctionCapabilityResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": FunctionCapabilityResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_function_data_types.py b/revengai/models/base_response_function_data_types.py index 40151d0..36d7817 100644 --- a/revengai/models/base_response_function_data_types.py +++ b/revengai/models/base_response_function_data_types.py @@ -28,12 +28,12 @@ class BaseResponseFunctionDataTypes(BaseModel): """ BaseResponseFunctionDataTypes """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[FunctionDataTypes] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": FunctionDataTypes.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_function_data_types_list.py b/revengai/models/base_response_function_data_types_list.py index 2e5dcdf..f3f5908 100644 --- a/revengai/models/base_response_function_data_types_list.py +++ b/revengai/models/base_response_function_data_types_list.py @@ -28,12 +28,12 @@ class BaseResponseFunctionDataTypesList(BaseModel): """ BaseResponseFunctionDataTypesList """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[FunctionDataTypesList] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": FunctionDataTypesList.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_function_search_response.py b/revengai/models/base_response_function_search_response.py index 94795a4..4470fe2 100644 --- a/revengai/models/base_response_function_search_response.py +++ b/revengai/models/base_response_function_search_response.py @@ -28,12 +28,12 @@ class BaseResponseFunctionSearchResponse(BaseModel): """ BaseResponseFunctionSearchResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[FunctionSearchResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": FunctionSearchResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_function_strings_response.py b/revengai/models/base_response_function_strings_response.py index 83d13db..9635ef8 100644 --- a/revengai/models/base_response_function_strings_response.py +++ b/revengai/models/base_response_function_strings_response.py @@ -28,12 +28,12 @@ class BaseResponseFunctionStringsResponse(BaseModel): """ BaseResponseFunctionStringsResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[FunctionStringsResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": FunctionStringsResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_function_task_response.py b/revengai/models/base_response_function_task_response.py index 71378df..c6c423d 100644 --- a/revengai/models/base_response_function_task_response.py +++ b/revengai/models/base_response_function_task_response.py @@ -28,12 +28,12 @@ class BaseResponseFunctionTaskResponse(BaseModel): """ BaseResponseFunctionTaskResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[FunctionTaskResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": FunctionTaskResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_functions_detail_response.py b/revengai/models/base_response_functions_detail_response.py index 5533d5f..84f55dd 100644 --- a/revengai/models/base_response_functions_detail_response.py +++ b/revengai/models/base_response_functions_detail_response.py @@ -28,12 +28,12 @@ class BaseResponseFunctionsDetailResponse(BaseModel): """ BaseResponseFunctionsDetailResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[FunctionsDetailResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": FunctionsDetailResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_generate_function_data_types.py b/revengai/models/base_response_generate_function_data_types.py index 7316285..d90f4f1 100644 --- a/revengai/models/base_response_generate_function_data_types.py +++ b/revengai/models/base_response_generate_function_data_types.py @@ -28,12 +28,12 @@ class BaseResponseGenerateFunctionDataTypes(BaseModel): """ BaseResponseGenerateFunctionDataTypes """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[GenerateFunctionDataTypes] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": GenerateFunctionDataTypes.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_generation_status_list.py b/revengai/models/base_response_generation_status_list.py index 190f882..c658454 100644 --- a/revengai/models/base_response_generation_status_list.py +++ b/revengai/models/base_response_generation_status_list.py @@ -28,12 +28,12 @@ class BaseResponseGenerationStatusList(BaseModel): """ BaseResponseGenerationStatusList """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[GenerationStatusList] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": GenerationStatusList.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_get_ai_decompilation_rating_response.py b/revengai/models/base_response_get_ai_decompilation_rating_response.py index e872a68..1c00173 100644 --- a/revengai/models/base_response_get_ai_decompilation_rating_response.py +++ b/revengai/models/base_response_get_ai_decompilation_rating_response.py @@ -28,12 +28,12 @@ class BaseResponseGetAiDecompilationRatingResponse(BaseModel): """ BaseResponseGetAiDecompilationRatingResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[GetAiDecompilationRatingResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": GetAiDecompilationRatingResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_get_ai_decompilation_task.py b/revengai/models/base_response_get_ai_decompilation_task.py index 87fd5df..22417c9 100644 --- a/revengai/models/base_response_get_ai_decompilation_task.py +++ b/revengai/models/base_response_get_ai_decompilation_task.py @@ -28,12 +28,12 @@ class BaseResponseGetAiDecompilationTask(BaseModel): """ BaseResponseGetAiDecompilationTask """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[GetAiDecompilationTask] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": GetAiDecompilationTask.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_get_me_response.py b/revengai/models/base_response_get_me_response.py index b842e55..183f60d 100644 --- a/revengai/models/base_response_get_me_response.py +++ b/revengai/models/base_response_get_me_response.py @@ -28,12 +28,12 @@ class BaseResponseGetMeResponse(BaseModel): """ BaseResponseGetMeResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[GetMeResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": GetMeResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_get_public_user_response.py b/revengai/models/base_response_get_public_user_response.py index 5983c88..2de71b3 100644 --- a/revengai/models/base_response_get_public_user_response.py +++ b/revengai/models/base_response_get_public_user_response.py @@ -28,12 +28,12 @@ class BaseResponseGetPublicUserResponse(BaseModel): """ BaseResponseGetPublicUserResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[GetPublicUserResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": GetPublicUserResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_list_callees_caller_functions_response.py b/revengai/models/base_response_list_callees_caller_functions_response.py index 852a22f..5a148ed 100644 --- a/revengai/models/base_response_list_callees_caller_functions_response.py +++ b/revengai/models/base_response_list_callees_caller_functions_response.py @@ -28,12 +28,12 @@ class BaseResponseListCalleesCallerFunctionsResponse(BaseModel): """ BaseResponseListCalleesCallerFunctionsResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[List[CalleesCallerFunctionsResponse]] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -96,16 +96,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -118,11 +118,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": [CalleesCallerFunctionsResponse.from_dict(_item) for _item in 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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_list_collection_results.py b/revengai/models/base_response_list_collection_results.py index 366c231..3cfea07 100644 --- a/revengai/models/base_response_list_collection_results.py +++ b/revengai/models/base_response_list_collection_results.py @@ -28,12 +28,12 @@ class BaseResponseListCollectionResults(BaseModel): """ BaseResponseListCollectionResults """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[ListCollectionResults] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": ListCollectionResults.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_list_comment_response.py b/revengai/models/base_response_list_comment_response.py index f286316..9bd8049 100644 --- a/revengai/models/base_response_list_comment_response.py +++ b/revengai/models/base_response_list_comment_response.py @@ -28,12 +28,12 @@ class BaseResponseListCommentResponse(BaseModel): """ BaseResponseListCommentResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[List[CommentResponse]] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -96,16 +96,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -118,11 +118,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": [CommentResponse.from_dict(_item) for _item in 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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_list_die_match.py b/revengai/models/base_response_list_die_match.py index f91ae9c..5f3fa3d 100644 --- a/revengai/models/base_response_list_die_match.py +++ b/revengai/models/base_response_list_die_match.py @@ -28,12 +28,12 @@ class BaseResponseListDieMatch(BaseModel): """ BaseResponseListDieMatch """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[List[DieMatch]] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -96,16 +96,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -118,11 +118,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": [DieMatch.from_dict(_item) for _item in 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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_list_function_name_history.py b/revengai/models/base_response_list_function_name_history.py index 195c965..5f8fc8e 100644 --- a/revengai/models/base_response_list_function_name_history.py +++ b/revengai/models/base_response_list_function_name_history.py @@ -28,12 +28,12 @@ class BaseResponseListFunctionNameHistory(BaseModel): """ BaseResponseListFunctionNameHistory """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[List[FunctionNameHistory]] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -96,16 +96,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -118,11 +118,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": [FunctionNameHistory.from_dict(_item) for _item in 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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_list_sbom.py b/revengai/models/base_response_list_sbom.py index 52040b8..474bedf 100644 --- a/revengai/models/base_response_list_sbom.py +++ b/revengai/models/base_response_list_sbom.py @@ -28,12 +28,12 @@ class BaseResponseListSBOM(BaseModel): """ BaseResponseListSBOM """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[List[SBOM]] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -96,16 +96,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -118,11 +118,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": [SBOM.from_dict(_item) for _item in 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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_list_user_activity_response.py b/revengai/models/base_response_list_user_activity_response.py index 58352f4..0f70059 100644 --- a/revengai/models/base_response_list_user_activity_response.py +++ b/revengai/models/base_response_list_user_activity_response.py @@ -28,12 +28,12 @@ class BaseResponseListUserActivityResponse(BaseModel): """ BaseResponseListUserActivityResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[List[UserActivityResponse]] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -96,16 +96,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -118,11 +118,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": [UserActivityResponse.from_dict(_item) for _item in 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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_login_response.py b/revengai/models/base_response_login_response.py index 7206a37..fdd29b4 100644 --- a/revengai/models/base_response_login_response.py +++ b/revengai/models/base_response_login_response.py @@ -28,12 +28,12 @@ class BaseResponseLoginResponse(BaseModel): """ BaseResponseLoginResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[LoginResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": LoginResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_logs.py b/revengai/models/base_response_logs.py index e0d68ab..0c4e420 100644 --- a/revengai/models/base_response_logs.py +++ b/revengai/models/base_response_logs.py @@ -28,12 +28,12 @@ class BaseResponseLogs(BaseModel): """ BaseResponseLogs """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[Logs] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": Logs.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_models_response.py b/revengai/models/base_response_models_response.py index c509770..0bb470c 100644 --- a/revengai/models/base_response_models_response.py +++ b/revengai/models/base_response_models_response.py @@ -28,12 +28,12 @@ class BaseResponseModelsResponse(BaseModel): """ BaseResponseModelsResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[ModelsResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": ModelsResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_network_overview_response.py b/revengai/models/base_response_network_overview_response.py index a8fbaf8..8198001 100644 --- a/revengai/models/base_response_network_overview_response.py +++ b/revengai/models/base_response_network_overview_response.py @@ -28,12 +28,12 @@ class BaseResponseNetworkOverviewResponse(BaseModel): """ BaseResponseNetworkOverviewResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[NetworkOverviewResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": NetworkOverviewResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_params.py b/revengai/models/base_response_params.py index 1fdd8c8..252ad1b 100644 --- a/revengai/models/base_response_params.py +++ b/revengai/models/base_response_params.py @@ -28,12 +28,12 @@ class BaseResponseParams(BaseModel): """ BaseResponseParams """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[Params] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": Params.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_pipeline_status_response.py b/revengai/models/base_response_pipeline_status_response.py index f271af6..b095714 100644 --- a/revengai/models/base_response_pipeline_status_response.py +++ b/revengai/models/base_response_pipeline_status_response.py @@ -28,12 +28,12 @@ class BaseResponsePipelineStatusResponse(BaseModel): """ BaseResponsePipelineStatusResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[PipelineStatusResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": PipelineStatusResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_process_dumps.py b/revengai/models/base_response_process_dumps.py index 33fea7d..57a8a1c 100644 --- a/revengai/models/base_response_process_dumps.py +++ b/revengai/models/base_response_process_dumps.py @@ -28,12 +28,12 @@ class BaseResponseProcessDumps(BaseModel): """ BaseResponseProcessDumps """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[ProcessDumps] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": ProcessDumps.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_process_registry.py b/revengai/models/base_response_process_registry.py index 1c52f8b..054ace4 100644 --- a/revengai/models/base_response_process_registry.py +++ b/revengai/models/base_response_process_registry.py @@ -28,12 +28,12 @@ class BaseResponseProcessRegistry(BaseModel): """ BaseResponseProcessRegistry """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[ProcessRegistry] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": ProcessRegistry.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_process_tree.py b/revengai/models/base_response_process_tree.py index 269a5e0..c699813 100644 --- a/revengai/models/base_response_process_tree.py +++ b/revengai/models/base_response_process_tree.py @@ -28,12 +28,12 @@ class BaseResponseProcessTree(BaseModel): """ BaseResponseProcessTree """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[ProcessTree] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": ProcessTree.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) 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 index ac84453..f33edbe 100644 --- a/revengai/models/base_response_queued_security_checks_task_response.py +++ b/revengai/models/base_response_queued_security_checks_task_response.py @@ -28,12 +28,12 @@ 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 + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_recent.py b/revengai/models/base_response_recent.py index d770ad0..09d4e54 100644 --- a/revengai/models/base_response_recent.py +++ b/revengai/models/base_response_recent.py @@ -28,12 +28,12 @@ class BaseResponseRecent(BaseModel): """ BaseResponseRecent """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[Recent] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": Recent.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_security_checks_response.py b/revengai/models/base_response_security_checks_response.py index ba31d1b..d08e199 100644 --- a/revengai/models/base_response_security_checks_response.py +++ b/revengai/models/base_response_security_checks_response.py @@ -28,12 +28,12 @@ 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 + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_status.py b/revengai/models/base_response_status.py index 9b20217..c8ecfa4 100644 --- a/revengai/models/base_response_status.py +++ b/revengai/models/base_response_status.py @@ -28,12 +28,12 @@ class BaseResponseStatus(BaseModel): """ BaseResponseStatus """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[StatusOutput] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": StatusOutput.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_str.py b/revengai/models/base_response_str.py index 6e75df9..a3cfab1 100644 --- a/revengai/models/base_response_str.py +++ b/revengai/models/base_response_str.py @@ -27,12 +27,12 @@ class BaseResponseStr(BaseModel): """ BaseResponseStr """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[StrictStr] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -88,16 +88,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -110,11 +110,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": obj.get("data"), - "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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_tag_search_response.py b/revengai/models/base_response_tag_search_response.py index 28c7b1d..361f096 100644 --- a/revengai/models/base_response_tag_search_response.py +++ b/revengai/models/base_response_tag_search_response.py @@ -28,12 +28,12 @@ class BaseResponseTagSearchResponse(BaseModel): """ BaseResponseTagSearchResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[TagSearchResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": TagSearchResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_task_response.py b/revengai/models/base_response_task_response.py index b07a178..46e7b70 100644 --- a/revengai/models/base_response_task_response.py +++ b/revengai/models/base_response_task_response.py @@ -28,12 +28,12 @@ class BaseResponseTaskResponse(BaseModel): """ BaseResponseTaskResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[TaskResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": TaskResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_ttps.py b/revengai/models/base_response_ttps.py index 989ab85..3cad0f0 100644 --- a/revengai/models/base_response_ttps.py +++ b/revengai/models/base_response_ttps.py @@ -28,12 +28,12 @@ class BaseResponseTTPS(BaseModel): """ BaseResponseTTPS """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[TTPS] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": TTPS.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_upload_response.py b/revengai/models/base_response_upload_response.py index b92075c..467f088 100644 --- a/revengai/models/base_response_upload_response.py +++ b/revengai/models/base_response_upload_response.py @@ -28,12 +28,12 @@ class BaseResponseUploadResponse(BaseModel): """ BaseResponseUploadResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[UploadResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": UploadResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_vulnerabilities.py b/revengai/models/base_response_vulnerabilities.py index 3c1b7bc..0557dfb 100644 --- a/revengai/models/base_response_vulnerabilities.py +++ b/revengai/models/base_response_vulnerabilities.py @@ -28,12 +28,12 @@ class BaseResponseVulnerabilities(BaseModel): """ BaseResponseVulnerabilities """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[Vulnerabilities] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": Vulnerabilities.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/base_response_xref_response.py b/revengai/models/base_response_xref_response.py index a1424c9..4734635 100644 --- a/revengai/models/base_response_xref_response.py +++ b/revengai/models/base_response_xref_response.py @@ -28,12 +28,12 @@ class BaseResponseXrefResponse(BaseModel): """ BaseResponseXrefResponse """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") data: Optional[XrefResponse] = None - message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None + message: Optional[StrictStr] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] + status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") + __properties: ClassVar[List[str]] = ["data", "errors", "message", "meta", "status"] model_config = ConfigDict( populate_by_name=True, @@ -92,16 +92,16 @@ def to_dict(self) -> Dict[str, Any]: 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 + # 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 + return _dict @classmethod @@ -114,11 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, "data": XrefResponse.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 + "message": obj.get("message"), + "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else True }) return _obj diff --git a/revengai/models/basic.py b/revengai/models/basic.py index 72c4cf0..aa7d382 100644 --- a/revengai/models/basic.py +++ b/revengai/models/basic.py @@ -26,24 +26,24 @@ class Basic(BaseModel): """ Basic """ # noqa: E501 + analysis_scope: StrictStr = Field(description="The scope of the analysis") + base_address: Optional[StrictInt] binary_id: StrictInt = Field(description="The ID of the binary") binary_name: StrictStr = Field(description="The name of the binary uploaded") binary_size: StrictInt = Field(description="The size of the binary uploaded (bytes)") + binary_uuid: Optional[StrictStr] = None creation: datetime = Field(description="When the binary was uploaded") - sha_256_hash: StrictStr = Field(description="The hash of the binary uploaded") - model_name: StrictStr = Field(description="The model name used for analysis") - model_id: StrictInt = Field(description="The model ID used for analysis") - owner_username: StrictStr = Field(description="The name of the owner of the binary") - is_system: StrictBool = Field(description="Whether the analysis is a system analysis") - analysis_scope: StrictStr = Field(description="The scope of the analysis") - is_owner: StrictBool = Field(description="Whether the current user is the owner") debug: StrictBool = Field(description="Whether the current analysis was analysed with debug symbols") function_count: StrictInt = Field(description="The number of functions in the binary") is_advanced: StrictBool = Field(description="Whether the analysis was advanced") - base_address: Optional[StrictInt] - binary_uuid: Optional[StrictStr] = None + is_owner: StrictBool = Field(description="Whether the current user is the owner") + is_system: StrictBool = Field(description="Whether the analysis is a system analysis") + model_id: StrictInt = Field(description="The model ID used for analysis") + model_name: StrictStr = Field(description="The model name used for analysis") + owner_username: StrictStr = Field(description="The name of the owner of the binary") sequencer_version: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["binary_id", "binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "model_id", "owner_username", "is_system", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address", "binary_uuid", "sequencer_version"] + sha_256_hash: StrictStr = Field(description="The hash of the binary uploaded") + __properties: ClassVar[List[str]] = ["analysis_scope", "base_address", "binary_id", "binary_name", "binary_size", "binary_uuid", "creation", "debug", "function_count", "is_advanced", "is_owner", "is_system", "model_id", "model_name", "owner_username", "sequencer_version", "sha_256_hash"] model_config = ConfigDict( populate_by_name=True, @@ -111,23 +111,23 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "analysis_scope": obj.get("analysis_scope"), + "base_address": obj.get("base_address"), "binary_id": obj.get("binary_id"), "binary_name": obj.get("binary_name"), "binary_size": obj.get("binary_size"), + "binary_uuid": obj.get("binary_uuid"), "creation": obj.get("creation"), - "sha_256_hash": obj.get("sha_256_hash"), - "model_name": obj.get("model_name"), - "model_id": obj.get("model_id"), - "owner_username": obj.get("owner_username"), - "is_system": obj.get("is_system"), - "analysis_scope": obj.get("analysis_scope"), - "is_owner": obj.get("is_owner"), "debug": obj.get("debug"), "function_count": obj.get("function_count"), "is_advanced": obj.get("is_advanced"), - "base_address": obj.get("base_address"), - "binary_uuid": obj.get("binary_uuid"), - "sequencer_version": obj.get("sequencer_version") + "is_owner": obj.get("is_owner"), + "is_system": obj.get("is_system"), + "model_id": obj.get("model_id"), + "model_name": obj.get("model_name"), + "owner_username": obj.get("owner_username"), + "sequencer_version": obj.get("sequencer_version"), + "sha_256_hash": obj.get("sha_256_hash") }) return _obj diff --git a/revengai/models/binary_additional_details_data_response.py b/revengai/models/binary_additional_details_data_response.py index 94d566a..02a8d5a 100644 --- a/revengai/models/binary_additional_details_data_response.py +++ b/revengai/models/binary_additional_details_data_response.py @@ -28,10 +28,10 @@ class BinaryAdditionalDetailsDataResponse(BaseModel): """ BinaryAdditionalDetailsDataResponse """ # noqa: E501 + elf: Optional[ELFModel] = None file: FileMetadata pe: Optional[PEModel] = None - elf: Optional[ELFModel] = None - __properties: ClassVar[List[str]] = ["file", "pe", "elf"] + __properties: ClassVar[List[str]] = ["elf", "file", "pe"] model_config = ConfigDict( populate_by_name=True, @@ -72,25 +72,25 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of elf + if self.elf: + _dict['elf'] = self.elf.to_dict() # override the default output from pydantic by calling `to_dict()` of file if self.file: _dict['file'] = self.file.to_dict() # override the default output from pydantic by calling `to_dict()` of pe if self.pe: _dict['pe'] = self.pe.to_dict() - # override the default output from pydantic by calling `to_dict()` of elf - if self.elf: - _dict['elf'] = self.elf.to_dict() - # set to None if pe (nullable) is None - # and model_fields_set contains the field - if self.pe is None and "pe" in self.model_fields_set: - _dict['pe'] = None - # set to None if elf (nullable) is None # and model_fields_set contains the field if self.elf is None and "elf" in self.model_fields_set: _dict['elf'] = None + # set to None if pe (nullable) is None + # and model_fields_set contains the field + if self.pe is None and "pe" in self.model_fields_set: + _dict['pe'] = None + return _dict @classmethod @@ -103,9 +103,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "elf": ELFModel.from_dict(obj["elf"]) if obj.get("elf") is not None else None, "file": FileMetadata.from_dict(obj["file"]) if obj.get("file") is not None else None, - "pe": PEModel.from_dict(obj["pe"]) if obj.get("pe") is not None else None, - "elf": ELFModel.from_dict(obj["elf"]) if obj.get("elf") is not None else None + "pe": PEModel.from_dict(obj["pe"]) if obj.get("pe") is not None else None }) return _obj diff --git a/revengai/models/binary_additional_response.py b/revengai/models/binary_additional_response.py index a7684fb..c895429 100644 --- a/revengai/models/binary_additional_response.py +++ b/revengai/models/binary_additional_response.py @@ -28,9 +28,9 @@ class BinaryAdditionalResponse(BaseModel): BinaryAdditionalResponse """ # noqa: E501 binary_id: StrictInt - details: Optional[BinaryAdditionalDetailsDataResponse] creation: Optional[datetime] = None - __properties: ClassVar[List[str]] = ["binary_id", "details", "creation"] + details: Optional[BinaryAdditionalDetailsDataResponse] + __properties: ClassVar[List[str]] = ["binary_id", "creation", "details"] model_config = ConfigDict( populate_by_name=True, @@ -74,16 +74,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of details if self.details: _dict['details'] = self.details.to_dict() - # set to None if details (nullable) is None - # and model_fields_set contains the field - if self.details is None and "details" in self.model_fields_set: - _dict['details'] = None - # set to None if creation (nullable) is None # and model_fields_set contains the field if self.creation is None and "creation" in self.model_fields_set: _dict['creation'] = None + # set to None if details (nullable) is None + # and model_fields_set contains the field + if self.details is None and "details" in self.model_fields_set: + _dict['details'] = None + return _dict @classmethod @@ -97,8 +97,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "binary_id": obj.get("binary_id"), - "details": BinaryAdditionalDetailsDataResponse.from_dict(obj["details"]) if obj.get("details") is not None else None, - "creation": obj.get("creation") + "creation": obj.get("creation"), + "details": BinaryAdditionalDetailsDataResponse.from_dict(obj["details"]) if obj.get("details") is not None else None }) return _obj diff --git a/revengai/models/binary_config.py b/revengai/models/binary_config.py index 1a7dcb8..1e9e382 100644 --- a/revengai/models/binary_config.py +++ b/revengai/models/binary_config.py @@ -28,10 +28,10 @@ class BinaryConfig(BaseModel): """ BinaryConfig """ # noqa: E501 + file_format: Optional[FileFormat] = None isa: Optional[ISA] = None platform: Optional[Platform] = None - file_format: Optional[FileFormat] = None - __properties: ClassVar[List[str]] = ["isa", "platform", "file_format"] + __properties: ClassVar[List[str]] = ["file_format", "isa", "platform"] model_config = ConfigDict( populate_by_name=True, @@ -72,6 +72,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if file_format (nullable) is None + # and model_fields_set contains the field + if self.file_format is None and "file_format" in self.model_fields_set: + _dict['file_format'] = None + # set to None if isa (nullable) is None # and model_fields_set contains the field if self.isa is None and "isa" in self.model_fields_set: @@ -82,11 +87,6 @@ def to_dict(self) -> Dict[str, Any]: if self.platform is None and "platform" in self.model_fields_set: _dict['platform'] = None - # set to None if file_format (nullable) is None - # and model_fields_set contains the field - if self.file_format is None and "file_format" in self.model_fields_set: - _dict['file_format'] = None - return _dict @classmethod @@ -99,9 +99,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "file_format": obj.get("file_format"), "isa": obj.get("isa"), - "platform": obj.get("platform"), - "file_format": obj.get("file_format") + "platform": obj.get("platform") }) return _obj diff --git a/revengai/models/binary_details_response.py b/revengai/models/binary_details_response.py index 46ae956..c80ae57 100644 --- a/revengai/models/binary_details_response.py +++ b/revengai/models/binary_details_response.py @@ -26,15 +26,17 @@ class BinaryDetailsResponse(BaseModel): """ BinaryDetailsResponse """ # noqa: E501 + var_class: StrictStr = Field(alias="Class") arch: StrictStr = Field(description="The architecture of the binary") bits: StrictInt = Field(description="The size of the binary in bits") crc32: StrictStr - var_class: StrictStr = Field(alias="Class") + debug: StrictBool entropy: Union[StrictFloat, StrictInt] file_size: StrictInt + first_seen: datetime language: StrictStr - md5: StrictStr machine: StrictStr + md5: StrictStr os: StrictStr = Field(description="OS target of the binary") sha1: StrictStr = Field(description="SHA1 hash of the binary") sha256: StrictStr = Field(description="SHA256 hash of the binary") @@ -44,9 +46,7 @@ class BinaryDetailsResponse(BaseModel): sub_sys: StrictStr tlsh: StrictStr type: StrictStr - debug: StrictBool - first_seen: datetime - __properties: ClassVar[List[str]] = ["arch", "bits", "crc32", "Class", "entropy", "file_size", "language", "md5", "machine", "os", "sha1", "sha256", "ssdeep", "static", "stripped", "sub_sys", "tlsh", "type", "debug", "first_seen"] + __properties: ClassVar[List[str]] = ["Class", "arch", "bits", "crc32", "debug", "entropy", "file_size", "first_seen", "language", "machine", "md5", "os", "sha1", "sha256", "ssdeep", "static", "stripped", "sub_sys", "tlsh", "type"] model_config = ConfigDict( populate_by_name=True, @@ -104,15 +104,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "Class": obj.get("Class"), "arch": obj.get("arch"), "bits": obj.get("bits"), "crc32": obj.get("crc32"), - "Class": obj.get("Class"), + "debug": obj.get("debug"), "entropy": obj.get("entropy"), "file_size": obj.get("file_size"), + "first_seen": obj.get("first_seen"), "language": obj.get("language"), - "md5": obj.get("md5"), "machine": obj.get("machine"), + "md5": obj.get("md5"), "os": obj.get("os"), "sha1": obj.get("sha1"), "sha256": obj.get("sha256"), @@ -121,9 +123,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "stripped": obj.get("stripped"), "sub_sys": obj.get("sub_sys"), "tlsh": obj.get("tlsh"), - "type": obj.get("type"), - "debug": obj.get("debug"), - "first_seen": obj.get("first_seen") + "type": obj.get("type") }) return _obj diff --git a/revengai/models/binary_externals_response.py b/revengai/models/binary_externals_response.py index 5e57361..d5487e8 100644 --- a/revengai/models/binary_externals_response.py +++ b/revengai/models/binary_externals_response.py @@ -26,12 +26,12 @@ class BinaryExternalsResponse(BaseModel): """ BinaryExternalsResponse """ # noqa: E501 + mb: Dict[str, Any] = Field(description="MalwareBazaar information") + mb_last_updated: datetime = Field(description="MalwareBazaar last updated date") sha_256_hash: StrictStr = Field(description="SHA256 hash of the binary") vt: Dict[str, Any] = Field(description="VirusTotal information") vt_last_updated: datetime = Field(description="VirusTotal last updated date") - mb: Dict[str, Any] = Field(description="MalwareBazaar information") - mb_last_updated: datetime = Field(description="MalwareBazaar last updated date") - __properties: ClassVar[List[str]] = ["sha_256_hash", "vt", "vt_last_updated", "mb", "mb_last_updated"] + __properties: ClassVar[List[str]] = ["mb", "mb_last_updated", "sha_256_hash", "vt", "vt_last_updated"] model_config = ConfigDict( populate_by_name=True, @@ -84,11 +84,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "mb": obj.get("mb"), + "mb_last_updated": obj.get("mb_last_updated"), "sha_256_hash": obj.get("sha_256_hash"), "vt": obj.get("vt"), - "vt_last_updated": obj.get("vt_last_updated"), - "mb": obj.get("mb"), - "mb_last_updated": obj.get("mb_last_updated") + "vt_last_updated": obj.get("vt_last_updated") }) return _obj diff --git a/revengai/models/binary_search_result.py b/revengai/models/binary_search_result.py index c335ed3..e69e546 100644 --- a/revengai/models/binary_search_result.py +++ b/revengai/models/binary_search_result.py @@ -26,16 +26,16 @@ class BinarySearchResult(BaseModel): """ BinarySearchResult """ # noqa: E501 + analysis_id: StrictInt = Field(description="The analysis ID") binary_id: StrictInt = Field(description="The binary ID") binary_name: StrictStr = Field(description="The name of the binary") - analysis_id: StrictInt = Field(description="The analysis ID") - sha_256_hash: StrictStr = Field(description="The SHA-256 hash of the binary") - tags: Optional[List[StrictStr]] created_at: datetime = Field(description="The creation date of the binary") model_id: StrictInt = Field(description="The model ID of the binary") model_name: StrictStr = Field(description="The name of the model") owned_by: StrictStr = Field(description="The owner of the binary") - __properties: ClassVar[List[str]] = ["binary_id", "binary_name", "analysis_id", "sha_256_hash", "tags", "created_at", "model_id", "model_name", "owned_by"] + sha_256_hash: StrictStr = Field(description="The SHA-256 hash of the binary") + tags: Optional[List[StrictStr]] + __properties: ClassVar[List[str]] = ["analysis_id", "binary_id", "binary_name", "created_at", "model_id", "model_name", "owned_by", "sha_256_hash", "tags"] model_config = ConfigDict( populate_by_name=True, @@ -93,15 +93,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "analysis_id": obj.get("analysis_id"), "binary_id": obj.get("binary_id"), "binary_name": obj.get("binary_name"), - "analysis_id": obj.get("analysis_id"), - "sha_256_hash": obj.get("sha_256_hash"), - "tags": obj.get("tags"), "created_at": obj.get("created_at"), "model_id": obj.get("model_id"), "model_name": obj.get("model_name"), - "owned_by": obj.get("owned_by") + "owned_by": obj.get("owned_by"), + "sha_256_hash": obj.get("sha_256_hash"), + "tags": obj.get("tags") }) return _obj diff --git a/revengai/models/callee_function_info.py b/revengai/models/callee_function_info.py index a8e7f2f..d3a8422 100644 --- a/revengai/models/callee_function_info.py +++ b/revengai/models/callee_function_info.py @@ -25,13 +25,13 @@ class CalleeFunctionInfo(BaseModel): """ CalleeFunctionInfo """ # noqa: E501 - function_id: StrictInt = Field(description="Unique identifier of the function") - matched_function_id: Optional[StrictInt] - dashboard_url: Optional[StrictStr] - is_external: Optional[StrictBool] = Field(default=False, description="Indicates if the function is external") callee_name: StrictStr = Field(description="Name of the called function") callee_vaddr: StrictStr = Field(description="Virtual address of the called function") - __properties: ClassVar[List[str]] = ["function_id", "matched_function_id", "dashboard_url", "is_external", "callee_name", "callee_vaddr"] + dashboard_url: Optional[StrictStr] + function_id: StrictInt = Field(description="Unique identifier of the function") + is_external: Optional[StrictBool] = Field(default=False, description="Indicates if the function is external") + matched_function_id: Optional[StrictInt] + __properties: ClassVar[List[str]] = ["callee_name", "callee_vaddr", "dashboard_url", "function_id", "is_external", "matched_function_id"] model_config = ConfigDict( populate_by_name=True, @@ -72,16 +72,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if matched_function_id (nullable) is None - # and model_fields_set contains the field - if self.matched_function_id is None and "matched_function_id" in self.model_fields_set: - _dict['matched_function_id'] = None - # set to None if dashboard_url (nullable) is None # and model_fields_set contains the field if self.dashboard_url is None and "dashboard_url" in self.model_fields_set: _dict['dashboard_url'] = None + # set to None if matched_function_id (nullable) is None + # and model_fields_set contains the field + if self.matched_function_id is None and "matched_function_id" in self.model_fields_set: + _dict['matched_function_id'] = None + return _dict @classmethod @@ -94,12 +94,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "function_id": obj.get("function_id"), - "matched_function_id": obj.get("matched_function_id"), + "callee_name": obj.get("callee_name"), + "callee_vaddr": obj.get("callee_vaddr"), "dashboard_url": obj.get("dashboard_url"), + "function_id": obj.get("function_id"), "is_external": obj.get("is_external") if obj.get("is_external") is not None else False, - "callee_name": obj.get("callee_name"), - "callee_vaddr": obj.get("callee_vaddr") + "matched_function_id": obj.get("matched_function_id") }) return _obj diff --git a/revengai/models/caller_function_info.py b/revengai/models/caller_function_info.py index 109cd7d..d912912 100644 --- a/revengai/models/caller_function_info.py +++ b/revengai/models/caller_function_info.py @@ -25,13 +25,13 @@ class CallerFunctionInfo(BaseModel): """ CallerFunctionInfo """ # noqa: E501 - function_id: StrictInt = Field(description="Unique identifier of the function") - matched_function_id: Optional[StrictInt] - dashboard_url: Optional[StrictStr] - is_external: Optional[StrictBool] = Field(default=False, description="Indicates if the function is external") caller_name: StrictStr = Field(description="Name of the calling function") caller_vaddr: StrictStr = Field(description="Virtual address of the calling function") - __properties: ClassVar[List[str]] = ["function_id", "matched_function_id", "dashboard_url", "is_external", "caller_name", "caller_vaddr"] + dashboard_url: Optional[StrictStr] + function_id: StrictInt = Field(description="Unique identifier of the function") + is_external: Optional[StrictBool] = Field(default=False, description="Indicates if the function is external") + matched_function_id: Optional[StrictInt] + __properties: ClassVar[List[str]] = ["caller_name", "caller_vaddr", "dashboard_url", "function_id", "is_external", "matched_function_id"] model_config = ConfigDict( populate_by_name=True, @@ -72,16 +72,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if matched_function_id (nullable) is None - # and model_fields_set contains the field - if self.matched_function_id is None and "matched_function_id" in self.model_fields_set: - _dict['matched_function_id'] = None - # set to None if dashboard_url (nullable) is None # and model_fields_set contains the field if self.dashboard_url is None and "dashboard_url" in self.model_fields_set: _dict['dashboard_url'] = None + # set to None if matched_function_id (nullable) is None + # and model_fields_set contains the field + if self.matched_function_id is None and "matched_function_id" in self.model_fields_set: + _dict['matched_function_id'] = None + return _dict @classmethod @@ -94,12 +94,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "function_id": obj.get("function_id"), - "matched_function_id": obj.get("matched_function_id"), + "caller_name": obj.get("caller_name"), + "caller_vaddr": obj.get("caller_vaddr"), "dashboard_url": obj.get("dashboard_url"), + "function_id": obj.get("function_id"), "is_external": obj.get("is_external") if obj.get("is_external") is not None else False, - "caller_name": obj.get("caller_name"), - "caller_vaddr": obj.get("caller_vaddr") + "matched_function_id": obj.get("matched_function_id") }) return _obj diff --git a/revengai/models/capability.py b/revengai/models/capability.py index 57ff1ee..8499152 100644 --- a/revengai/models/capability.py +++ b/revengai/models/capability.py @@ -25,10 +25,10 @@ class Capability(BaseModel): """ Capability """ # noqa: E501 + capabilities: List[StrictStr] = Field(description="The list of capabilities associated with the function") function_name: StrictStr = Field(description="The name of the function with a capability") function_vaddr: StrictInt = Field(description="The virtual address of the function where the capability comes from") - capabilities: List[StrictStr] = Field(description="The list of capabilities associated with the function") - __properties: ClassVar[List[str]] = ["function_name", "function_vaddr", "capabilities"] + __properties: ClassVar[List[str]] = ["capabilities", "function_name", "function_vaddr"] model_config = ConfigDict( populate_by_name=True, @@ -81,9 +81,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "capabilities": obj.get("capabilities"), "function_name": obj.get("function_name"), - "function_vaddr": obj.get("function_vaddr"), - "capabilities": obj.get("capabilities") + "function_vaddr": obj.get("function_vaddr") }) return _obj diff --git a/revengai/models/code_signature_model.py b/revengai/models/code_signature_model.py index 6d4f180..189196d 100644 --- a/revengai/models/code_signature_model.py +++ b/revengai/models/code_signature_model.py @@ -26,10 +26,10 @@ class CodeSignatureModel(BaseModel): """ CodeSignatureModel """ # noqa: E501 + signatures: List[SingleCodeSignatureModel] signed: StrictBool valid_signature: StrictBool - signatures: List[SingleCodeSignatureModel] - __properties: ClassVar[List[str]] = ["signed", "valid_signature", "signatures"] + __properties: ClassVar[List[str]] = ["signatures", "signed", "valid_signature"] model_config = ConfigDict( populate_by_name=True, @@ -89,9 +89,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "signatures": [SingleCodeSignatureModel.from_dict(_item) for _item in obj["signatures"]] if obj.get("signatures") is not None else None, "signed": obj.get("signed"), - "valid_signature": obj.get("valid_signature"), - "signatures": [SingleCodeSignatureModel.from_dict(_item) for _item in obj["signatures"]] if obj.get("signatures") is not None else None + "valid_signature": obj.get("valid_signature") }) return _obj diff --git a/revengai/models/collection_binary_response.py b/revengai/models/collection_binary_response.py index bd2c867..fab87a0 100644 --- a/revengai/models/collection_binary_response.py +++ b/revengai/models/collection_binary_response.py @@ -29,11 +29,11 @@ class CollectionBinaryResponse(BaseModel): analysis_id: StrictInt = Field(description="Analysis ID") binary_id: StrictInt = Field(description="Binary ID") binary_name: StrictStr = Field(description="Binary name") - owner_id: StrictInt = Field(description="Binary owner") - sha_256_hash: StrictStr = Field(description="Binary SHA-256 hash") created_at: datetime = Field(description="Binary creation date") is_system_analysis: StrictBool = Field(description="Is the analysis owned by a RevEng.AI account") - __properties: ClassVar[List[str]] = ["analysis_id", "binary_id", "binary_name", "owner_id", "sha_256_hash", "created_at", "is_system_analysis"] + owner_id: StrictInt = Field(description="Binary owner") + sha_256_hash: StrictStr = Field(description="Binary SHA-256 hash") + __properties: ClassVar[List[str]] = ["analysis_id", "binary_id", "binary_name", "created_at", "is_system_analysis", "owner_id", "sha_256_hash"] model_config = ConfigDict( populate_by_name=True, @@ -89,10 +89,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "analysis_id": obj.get("analysis_id"), "binary_id": obj.get("binary_id"), "binary_name": obj.get("binary_name"), - "owner_id": obj.get("owner_id"), - "sha_256_hash": obj.get("sha_256_hash"), "created_at": obj.get("created_at"), - "is_system_analysis": obj.get("is_system_analysis") + "is_system_analysis": obj.get("is_system_analysis"), + "owner_id": obj.get("owner_id"), + "sha_256_hash": obj.get("sha_256_hash") }) return _obj diff --git a/revengai/models/collection_create_request.py b/revengai/models/collection_create_request.py index 63229eb..3f9f6bd 100644 --- a/revengai/models/collection_create_request.py +++ b/revengai/models/collection_create_request.py @@ -26,13 +26,13 @@ class CollectionCreateRequest(BaseModel): """ CollectionCreateRequest """ # noqa: E501 + binaries: Optional[List[StrictInt]] = None collection_name: StrictStr - description: StrictStr collection_scope: Optional[CollectionScope] = None - tags: Optional[List[StrictStr]] = None - binaries: Optional[List[StrictInt]] = None + description: StrictStr model_id: StrictInt - __properties: ClassVar[List[str]] = ["collection_name", "description", "collection_scope", "tags", "binaries", "model_id"] + tags: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["binaries", "collection_name", "collection_scope", "description", "model_id", "tags"] model_config = ConfigDict( populate_by_name=True, @@ -73,16 +73,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if tags (nullable) is None - # and model_fields_set contains the field - if self.tags is None and "tags" in self.model_fields_set: - _dict['tags'] = None - # set to None if binaries (nullable) is None # and model_fields_set contains the field if self.binaries is None and "binaries" in self.model_fields_set: _dict['binaries'] = None + # set to None if tags (nullable) is None + # and model_fields_set contains the field + if self.tags is None and "tags" in self.model_fields_set: + _dict['tags'] = None + return _dict @classmethod @@ -95,12 +95,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "binaries": obj.get("binaries"), "collection_name": obj.get("collection_name"), - "description": obj.get("description"), "collection_scope": obj.get("collection_scope"), - "tags": obj.get("tags"), - "binaries": obj.get("binaries"), - "model_id": obj.get("model_id") + "description": obj.get("description"), + "model_id": obj.get("model_id"), + "tags": obj.get("tags") }) return _obj diff --git a/revengai/models/collection_list_item.py b/revengai/models/collection_list_item.py index 697cabf..5cbb343 100644 --- a/revengai/models/collection_list_item.py +++ b/revengai/models/collection_list_item.py @@ -26,18 +26,18 @@ class CollectionListItem(BaseModel): """ CollectionListItem """ # noqa: E501 + collection_id: StrictInt = Field(description="The ID of the collection") collection_name: StrictStr = Field(description="The name of the collection") - description: StrictStr = Field(description="The description of the collection") - collection_scope: StrictStr = Field(description="The scope of the collection") collection_owner: StrictStr = Field(description="The owner of the collection") - official_collection: StrictBool = Field(description="Whether the collection is maintained by RevEng.AI") - collection_tags: Optional[List[StrictStr]] = Field(default=None, description="The tags of the collection") + collection_scope: StrictStr = Field(description="The scope of the collection") collection_size: StrictInt = Field(description="The size of the collection") - collection_id: StrictInt = Field(description="The ID of the collection") + collection_tags: Optional[List[StrictStr]] = Field(default=None, description="The tags of the collection") creation: datetime = Field(description="The datetime of when the collection was created") + description: StrictStr = Field(description="The description of the collection") model_name: StrictStr = Field(description="The model being used for the collection") + official_collection: StrictBool = Field(description="Whether the collection is maintained by RevEng.AI") team_id: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["collection_name", "description", "collection_scope", "collection_owner", "official_collection", "collection_tags", "collection_size", "collection_id", "creation", "model_name", "team_id"] + __properties: ClassVar[List[str]] = ["collection_id", "collection_name", "collection_owner", "collection_scope", "collection_size", "collection_tags", "creation", "description", "model_name", "official_collection", "team_id"] model_config = ConfigDict( populate_by_name=True, @@ -95,16 +95,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "collection_id": obj.get("collection_id"), "collection_name": obj.get("collection_name"), - "description": obj.get("description"), - "collection_scope": obj.get("collection_scope"), "collection_owner": obj.get("collection_owner"), - "official_collection": obj.get("official_collection"), - "collection_tags": obj.get("collection_tags"), + "collection_scope": obj.get("collection_scope"), "collection_size": obj.get("collection_size"), - "collection_id": obj.get("collection_id"), + "collection_tags": obj.get("collection_tags"), "creation": obj.get("creation"), + "description": obj.get("description"), "model_name": obj.get("model_name"), + "official_collection": obj.get("official_collection"), "team_id": obj.get("team_id") }) return _obj diff --git a/revengai/models/collection_response.py b/revengai/models/collection_response.py index 58e513e..d69d919 100644 --- a/revengai/models/collection_response.py +++ b/revengai/models/collection_response.py @@ -28,18 +28,18 @@ class CollectionResponse(BaseModel): """ CollectionResponse """ # noqa: E501 + binaries: Optional[List[CollectionResponseBinariesInner]] = None collection_id: StrictInt = Field(description="Collection ID") collection_name: StrictStr = Field(description="Collection name") + collection_scope: CollectionScope = Field(description="Collection public status") + created_at: datetime = Field(description="Collection creation date") description: StrictStr = Field(description="Collection description") model_id: StrictInt = Field(description="Collection model ID") - user_id: StrictInt = Field(description="Collection user ID") + tags: Optional[List[StrictStr]] = None team_id: Optional[StrictInt] = None - collection_scope: CollectionScope = Field(description="Collection public status") - created_at: datetime = Field(description="Collection creation date") updated_at: datetime = Field(description="Collection last update date") - tags: Optional[List[StrictStr]] = None - binaries: Optional[List[CollectionResponseBinariesInner]] = None - __properties: ClassVar[List[str]] = ["collection_id", "collection_name", "description", "model_id", "user_id", "team_id", "collection_scope", "created_at", "updated_at", "tags", "binaries"] + user_id: StrictInt = Field(description="Collection user ID") + __properties: ClassVar[List[str]] = ["binaries", "collection_id", "collection_name", "collection_scope", "created_at", "description", "model_id", "tags", "team_id", "updated_at", "user_id"] model_config = ConfigDict( populate_by_name=True, @@ -87,20 +87,20 @@ def to_dict(self) -> Dict[str, Any]: if _item_binaries: _items.append(_item_binaries.to_dict()) _dict['binaries'] = _items - # set to None if team_id (nullable) is None + # set to None if binaries (nullable) is None # and model_fields_set contains the field - if self.team_id is None and "team_id" in self.model_fields_set: - _dict['team_id'] = None + if self.binaries is None and "binaries" in self.model_fields_set: + _dict['binaries'] = None # set to None if tags (nullable) is None # and model_fields_set contains the field if self.tags is None and "tags" in self.model_fields_set: _dict['tags'] = None - # set to None if binaries (nullable) is None + # set to None if team_id (nullable) is None # and model_fields_set contains the field - if self.binaries is None and "binaries" in self.model_fields_set: - _dict['binaries'] = None + if self.team_id is None and "team_id" in self.model_fields_set: + _dict['team_id'] = None return _dict @@ -114,17 +114,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "binaries": [CollectionResponseBinariesInner.from_dict(_item) for _item in obj["binaries"]] if obj.get("binaries") is not None else None, "collection_id": obj.get("collection_id"), "collection_name": obj.get("collection_name"), + "collection_scope": obj.get("collection_scope"), + "created_at": obj.get("created_at"), "description": obj.get("description"), "model_id": obj.get("model_id"), - "user_id": obj.get("user_id"), + "tags": obj.get("tags"), "team_id": obj.get("team_id"), - "collection_scope": obj.get("collection_scope"), - "created_at": obj.get("created_at"), "updated_at": obj.get("updated_at"), - "tags": obj.get("tags"), - "binaries": [CollectionResponseBinariesInner.from_dict(_item) for _item in obj["binaries"]] if obj.get("binaries") is not None else None + "user_id": obj.get("user_id") }) return _obj diff --git a/revengai/models/collection_search_result.py b/revengai/models/collection_search_result.py index 1a7290e..ca4eeac 100644 --- a/revengai/models/collection_search_result.py +++ b/revengai/models/collection_search_result.py @@ -28,17 +28,17 @@ class CollectionSearchResult(BaseModel): """ # noqa: E501 collection_id: StrictInt = Field(description="The ID of the collection") collection_name: StrictStr = Field(description="The name of the collection") - scope: StrictStr = Field(description="The scope of the collection") - last_updated_at: datetime = Field(description="The last update date of the collection") created_at: datetime = Field(description="The creation date of the collection") + description: StrictStr = Field(description="The description of the collection") + last_updated_at: datetime = Field(description="The last update date of the collection") model_id: StrictInt = Field(description="The model ID of the binary") model_name: StrictStr = Field(description="The name of the model") owned_by: StrictStr = Field(description="The owner of the collection") - tags: Optional[List[StrictStr]] = None + scope: StrictStr = Field(description="The scope of the collection") size: Optional[StrictInt] = None - description: StrictStr = Field(description="The description of the collection") + tags: Optional[List[StrictStr]] = None team_id: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["collection_id", "collection_name", "scope", "last_updated_at", "created_at", "model_id", "model_name", "owned_by", "tags", "size", "description", "team_id"] + __properties: ClassVar[List[str]] = ["collection_id", "collection_name", "created_at", "description", "last_updated_at", "model_id", "model_name", "owned_by", "scope", "size", "tags", "team_id"] model_config = ConfigDict( populate_by_name=True, @@ -79,16 +79,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if tags (nullable) is None - # and model_fields_set contains the field - if self.tags is None and "tags" in self.model_fields_set: - _dict['tags'] = None - # set to None if size (nullable) is None # and model_fields_set contains the field if self.size is None and "size" in self.model_fields_set: _dict['size'] = None + # set to None if tags (nullable) is None + # and model_fields_set contains the field + if self.tags is None and "tags" in self.model_fields_set: + _dict['tags'] = None + # set to None if team_id (nullable) is None # and model_fields_set contains the field if self.team_id is None and "team_id" in self.model_fields_set: @@ -108,15 +108,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "collection_id": obj.get("collection_id"), "collection_name": obj.get("collection_name"), - "scope": obj.get("scope"), - "last_updated_at": obj.get("last_updated_at"), "created_at": obj.get("created_at"), + "description": obj.get("description"), + "last_updated_at": obj.get("last_updated_at"), "model_id": obj.get("model_id"), "model_name": obj.get("model_name"), "owned_by": obj.get("owned_by"), - "tags": obj.get("tags"), + "scope": obj.get("scope"), "size": obj.get("size"), - "description": obj.get("description"), + "tags": obj.get("tags"), "team_id": obj.get("team_id") }) return _obj diff --git a/revengai/models/collection_update_request.py b/revengai/models/collection_update_request.py index e31a2a2..d032598 100644 --- a/revengai/models/collection_update_request.py +++ b/revengai/models/collection_update_request.py @@ -27,9 +27,9 @@ class CollectionUpdateRequest(BaseModel): CollectionUpdateRequest """ # noqa: E501 collection_name: Optional[StrictStr] = None - description: Optional[StrictStr] = None collection_scope: Optional[CollectionScope] = None - __properties: ClassVar[List[str]] = ["collection_name", "description", "collection_scope"] + description: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["collection_name", "collection_scope", "description"] model_config = ConfigDict( populate_by_name=True, @@ -75,16 +75,16 @@ def to_dict(self) -> Dict[str, Any]: if self.collection_name is None and "collection_name" in self.model_fields_set: _dict['collection_name'] = None - # set to None if description (nullable) is None - # and model_fields_set contains the field - if self.description is None and "description" in self.model_fields_set: - _dict['description'] = None - # set to None if collection_scope (nullable) is None # and model_fields_set contains the field if self.collection_scope is None and "collection_scope" in self.model_fields_set: _dict['collection_scope'] = None + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + return _dict @classmethod @@ -98,8 +98,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "collection_name": obj.get("collection_name"), - "description": obj.get("description"), - "collection_scope": obj.get("collection_scope") + "collection_scope": obj.get("collection_scope"), + "description": obj.get("description") }) return _obj diff --git a/revengai/models/comment_response.py b/revengai/models/comment_response.py index 4c27726..60e1d55 100644 --- a/revengai/models/comment_response.py +++ b/revengai/models/comment_response.py @@ -28,14 +28,14 @@ class CommentResponse(BaseModel): CommentResponse """ # noqa: E501 content: StrictStr = Field(description="Comment text content") - id: StrictInt - user_id: StrictInt - resource_type: StrictStr - resource_id: StrictStr context: Optional[Context] = None created_at: datetime + id: StrictInt + resource_id: StrictStr + resource_type: StrictStr updated_at: datetime - __properties: ClassVar[List[str]] = ["content", "id", "user_id", "resource_type", "resource_id", "context", "created_at", "updated_at"] + user_id: StrictInt + __properties: ClassVar[List[str]] = ["content", "context", "created_at", "id", "resource_id", "resource_type", "updated_at", "user_id"] model_config = ConfigDict( populate_by_name=True, @@ -97,13 +97,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "content": obj.get("content"), - "id": obj.get("id"), - "user_id": obj.get("user_id"), - "resource_type": obj.get("resource_type"), - "resource_id": obj.get("resource_id"), "context": Context.from_dict(obj["context"]) if obj.get("context") is not None else None, "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at") + "id": obj.get("id"), + "resource_id": obj.get("resource_id"), + "resource_type": obj.get("resource_type"), + "updated_at": obj.get("updated_at"), + "user_id": obj.get("user_id") }) return _obj diff --git a/revengai/models/communities.py b/revengai/models/communities.py index 159c2e8..9c26ca7 100644 --- a/revengai/models/communities.py +++ b/revengai/models/communities.py @@ -26,11 +26,11 @@ class Communities(BaseModel): """ Communities """ # noqa: E501 - total_functions: StrictInt = Field(description="The total number of matched community functions") - total_matched_functions: StrictInt = Field(description="The total number of functions in the binary") direct_community_match_percentages: List[CommunityMatchPercentages] = Field(description="The list of directly matched communities") top_components: List[Dict[str, Any]] = Field(description="The top components of the binary") - __properties: ClassVar[List[str]] = ["total_functions", "total_matched_functions", "direct_community_match_percentages", "top_components"] + total_functions: StrictInt = Field(description="The total number of matched community functions") + total_matched_functions: StrictInt = Field(description="The total number of functions in the binary") + __properties: ClassVar[List[str]] = ["direct_community_match_percentages", "top_components", "total_functions", "total_matched_functions"] model_config = ConfigDict( populate_by_name=True, @@ -90,10 +90,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "total_functions": obj.get("total_functions"), - "total_matched_functions": obj.get("total_matched_functions"), "direct_community_match_percentages": [CommunityMatchPercentages.from_dict(_item) for _item in obj["direct_community_match_percentages"]] if obj.get("direct_community_match_percentages") is not None else None, - "top_components": obj.get("top_components") + "top_components": obj.get("top_components"), + "total_functions": obj.get("total_functions"), + "total_matched_functions": obj.get("total_matched_functions") }) return _obj diff --git a/revengai/models/community_match_percentages.py b/revengai/models/community_match_percentages.py index c5f38a1..ca74d33 100644 --- a/revengai/models/community_match_percentages.py +++ b/revengai/models/community_match_percentages.py @@ -25,11 +25,11 @@ class CommunityMatchPercentages(BaseModel): """ CommunityMatchPercentages """ # noqa: E501 - binary_name: StrictStr binary_id: StrictInt + binary_name: StrictStr matched_communities_percent: Union[StrictFloat, StrictInt] unmatched_communities_percent: Union[StrictFloat, StrictInt] - __properties: ClassVar[List[str]] = ["binary_name", "binary_id", "matched_communities_percent", "unmatched_communities_percent"] + __properties: ClassVar[List[str]] = ["binary_id", "binary_name", "matched_communities_percent", "unmatched_communities_percent"] model_config = ConfigDict( populate_by_name=True, @@ -82,8 +82,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "binary_name": obj.get("binary_name"), "binary_id": obj.get("binary_id"), + "binary_name": obj.get("binary_name"), "matched_communities_percent": obj.get("matched_communities_percent"), "unmatched_communities_percent": obj.get("unmatched_communities_percent") }) diff --git a/revengai/models/config_response.py b/revengai/models/config_response.py index ef409e8..c0005e9 100644 --- a/revengai/models/config_response.py +++ b/revengai/models/config_response.py @@ -25,11 +25,11 @@ class ConfigResponse(BaseModel): """ ConfigResponse """ # noqa: E501 + ai_decompiler_supported_models: List[StrictStr] = Field(description="List of models that support AI decompilation") + ai_decompiler_unsupported_languages: List[StrictStr] = Field(description="List of programming languages that are not supported for AI decompilation") dashboard_url: Optional[StrictStr] = Field(default='', description="The domain of the RevEng.AI platform you are connected to") max_file_size_bytes: StrictInt = Field(description="Maximum file size (in bytes) that can be uploaded for analysis") - ai_decompiler_unsupported_languages: List[StrictStr] = Field(description="List of programming languages that are not supported for AI decompilation") - ai_decompiler_supported_models: List[StrictStr] = Field(description="List of models that support AI decompilation") - __properties: ClassVar[List[str]] = ["dashboard_url", "max_file_size_bytes", "ai_decompiler_unsupported_languages", "ai_decompiler_supported_models"] + __properties: ClassVar[List[str]] = ["ai_decompiler_supported_models", "ai_decompiler_unsupported_languages", "dashboard_url", "max_file_size_bytes"] model_config = ConfigDict( populate_by_name=True, @@ -82,10 +82,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "dashboard_url": obj.get("dashboard_url") if obj.get("dashboard_url") is not None else '', - "max_file_size_bytes": obj.get("max_file_size_bytes"), + "ai_decompiler_supported_models": obj.get("ai_decompiler_supported_models"), "ai_decompiler_unsupported_languages": obj.get("ai_decompiler_unsupported_languages"), - "ai_decompiler_supported_models": obj.get("ai_decompiler_supported_models") + "dashboard_url": obj.get("dashboard_url") if obj.get("dashboard_url") is not None else '', + "max_file_size_bytes": obj.get("max_file_size_bytes") }) return _obj diff --git a/revengai/models/decompilation_comment_context.py b/revengai/models/decompilation_comment_context.py index 70e15c6..2e5bf96 100644 --- a/revengai/models/decompilation_comment_context.py +++ b/revengai/models/decompilation_comment_context.py @@ -25,9 +25,9 @@ class DecompilationCommentContext(BaseModel): """ DecompilationCommentContext """ # noqa: E501 - start_line: Optional[StrictInt] end_line: Optional[StrictInt] - __properties: ClassVar[List[str]] = ["start_line", "end_line"] + start_line: Optional[StrictInt] + __properties: ClassVar[List[str]] = ["end_line", "start_line"] model_config = ConfigDict( populate_by_name=True, @@ -68,16 +68,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if start_line (nullable) is None - # and model_fields_set contains the field - if self.start_line is None and "start_line" in self.model_fields_set: - _dict['start_line'] = None - # set to None if end_line (nullable) is None # and model_fields_set contains the field if self.end_line is None and "end_line" in self.model_fields_set: _dict['end_line'] = None + # set to None if start_line (nullable) is None + # and model_fields_set contains the field + if self.start_line is None and "start_line" in self.model_fields_set: + _dict['start_line'] = None + return _dict @classmethod @@ -90,8 +90,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "start_line": obj.get("start_line"), - "end_line": obj.get("end_line") + "end_line": obj.get("end_line"), + "start_line": obj.get("start_line") }) return _obj diff --git a/revengai/models/die_match.py b/revengai/models/die_match.py index 46d1dfa..3581656 100644 --- a/revengai/models/die_match.py +++ b/revengai/models/die_match.py @@ -25,11 +25,11 @@ class DieMatch(BaseModel): """ DieMatch """ # noqa: E501 + display: StrictStr = Field(description="Human-readable description from DIE's 'string' field; suitable for UI/logs, not for parsing.") name: StrictStr = Field(description="Canonical name of the matched signature/technology (e.g., 'UPX', 'GCC', 'MSVC').") type: StrictStr = Field(description="Category assigned by DIE for the match (e.g., 'compiler', 'packer', 'file').") - display: StrictStr = Field(description="Human-readable description from DIE's 'string' field; suitable for UI/logs, not for parsing.") version: StrictStr = Field(description="Extracted version string when available; may be empty/None if unknown.") - __properties: ClassVar[List[str]] = ["name", "type", "display", "version"] + __properties: ClassVar[List[str]] = ["display", "name", "type", "version"] model_config = ConfigDict( populate_by_name=True, @@ -82,9 +82,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "display": obj.get("display"), "name": obj.get("name"), "type": obj.get("type"), - "display": obj.get("display"), "version": obj.get("version") }) return _obj diff --git a/revengai/models/elf_import_model.py b/revengai/models/elf_import_model.py index 5042c1d..c230005 100644 --- a/revengai/models/elf_import_model.py +++ b/revengai/models/elf_import_model.py @@ -25,9 +25,9 @@ class ELFImportModel(BaseModel): """ ELFImportModel """ # noqa: E501 - number_of_imports: StrictInt imports: List[StrictStr] - __properties: ClassVar[List[str]] = ["number_of_imports", "imports"] + number_of_imports: StrictInt + __properties: ClassVar[List[str]] = ["imports", "number_of_imports"] model_config = ConfigDict( populate_by_name=True, @@ -80,8 +80,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "number_of_imports": obj.get("number_of_imports"), - "imports": obj.get("imports") + "imports": obj.get("imports"), + "number_of_imports": obj.get("number_of_imports") }) return _obj diff --git a/revengai/models/elf_model.py b/revengai/models/elf_model.py index 70fede4..b843b84 100644 --- a/revengai/models/elf_model.py +++ b/revengai/models/elf_model.py @@ -32,27 +32,27 @@ class ELFModel(BaseModel): """ ELFModel """ # noqa: E501 - file_type: StrictStr architecture: StrictStr + build_id: StrictStr + debug_info: Dict[str, Any] + dynamic_entries: List[ElfDynamicEntry] + dynamic_symbols: List[ELFSymbol] endianness: StrictStr entry_point: StrictInt entry_point_bytes: StrictStr - import_hash: StrictStr export_hash: StrictStr - build_id: StrictStr - security: ELFSecurity + exported_functions: List[StrictStr] + file_type: StrictStr + import_hash: StrictStr + imports: ELFImportModel + notes: List[Dict[str, Any]] + relocations: List[ELFRelocation] sections: List[ELFSection] + security: ELFSecurity segments: List[ELFSegment] symbols: List[ELFSymbol] - dynamic_symbols: List[ELFSymbol] - relocations: List[ELFRelocation] - imports: ELFImportModel - exported_functions: List[StrictStr] - dynamic_entries: List[ElfDynamicEntry] - notes: List[Dict[str, Any]] - debug_info: Dict[str, Any] version_info: Dict[str, Any] - __properties: ClassVar[List[str]] = ["file_type", "architecture", "endianness", "entry_point", "entry_point_bytes", "import_hash", "export_hash", "build_id", "security", "sections", "segments", "symbols", "dynamic_symbols", "relocations", "imports", "exported_functions", "dynamic_entries", "notes", "debug_info", "version_info"] + __properties: ClassVar[List[str]] = ["architecture", "build_id", "debug_info", "dynamic_entries", "dynamic_symbols", "endianness", "entry_point", "entry_point_bytes", "export_hash", "exported_functions", "file_type", "import_hash", "imports", "notes", "relocations", "sections", "security", "segments", "symbols", "version_info"] model_config = ConfigDict( populate_by_name=True, @@ -93,9 +93,30 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of security - if self.security: - _dict['security'] = self.security.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in dynamic_entries (list) + _items = [] + if self.dynamic_entries: + for _item_dynamic_entries in self.dynamic_entries: + if _item_dynamic_entries: + _items.append(_item_dynamic_entries.to_dict()) + _dict['dynamic_entries'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in dynamic_symbols (list) + _items = [] + if self.dynamic_symbols: + for _item_dynamic_symbols in self.dynamic_symbols: + if _item_dynamic_symbols: + _items.append(_item_dynamic_symbols.to_dict()) + _dict['dynamic_symbols'] = _items + # override the default output from pydantic by calling `to_dict()` of imports + if self.imports: + _dict['imports'] = self.imports.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in relocations (list) + _items = [] + if self.relocations: + for _item_relocations in self.relocations: + if _item_relocations: + _items.append(_item_relocations.to_dict()) + _dict['relocations'] = _items # override the default output from pydantic by calling `to_dict()` of each item in sections (list) _items = [] if self.sections: @@ -103,6 +124,9 @@ def to_dict(self) -> Dict[str, Any]: if _item_sections: _items.append(_item_sections.to_dict()) _dict['sections'] = _items + # override the default output from pydantic by calling `to_dict()` of security + if self.security: + _dict['security'] = self.security.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in segments (list) _items = [] if self.segments: @@ -117,30 +141,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_symbols: _items.append(_item_symbols.to_dict()) _dict['symbols'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in dynamic_symbols (list) - _items = [] - if self.dynamic_symbols: - for _item_dynamic_symbols in self.dynamic_symbols: - if _item_dynamic_symbols: - _items.append(_item_dynamic_symbols.to_dict()) - _dict['dynamic_symbols'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in relocations (list) - _items = [] - if self.relocations: - for _item_relocations in self.relocations: - if _item_relocations: - _items.append(_item_relocations.to_dict()) - _dict['relocations'] = _items - # override the default output from pydantic by calling `to_dict()` of imports - if self.imports: - _dict['imports'] = self.imports.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in dynamic_entries (list) - _items = [] - if self.dynamic_entries: - for _item_dynamic_entries in self.dynamic_entries: - if _item_dynamic_entries: - _items.append(_item_dynamic_entries.to_dict()) - _dict['dynamic_entries'] = _items return _dict @classmethod @@ -153,25 +153,25 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "file_type": obj.get("file_type"), "architecture": obj.get("architecture"), + "build_id": obj.get("build_id"), + "debug_info": obj.get("debug_info"), + "dynamic_entries": [ElfDynamicEntry.from_dict(_item) for _item in obj["dynamic_entries"]] if obj.get("dynamic_entries") is not None else None, + "dynamic_symbols": [ELFSymbol.from_dict(_item) for _item in obj["dynamic_symbols"]] if obj.get("dynamic_symbols") is not None else None, "endianness": obj.get("endianness"), "entry_point": obj.get("entry_point"), "entry_point_bytes": obj.get("entry_point_bytes"), - "import_hash": obj.get("import_hash"), "export_hash": obj.get("export_hash"), - "build_id": obj.get("build_id"), - "security": ELFSecurity.from_dict(obj["security"]) if obj.get("security") is not None else None, + "exported_functions": obj.get("exported_functions"), + "file_type": obj.get("file_type"), + "import_hash": obj.get("import_hash"), + "imports": ELFImportModel.from_dict(obj["imports"]) if obj.get("imports") is not None else None, + "notes": obj.get("notes"), + "relocations": [ELFRelocation.from_dict(_item) for _item in obj["relocations"]] if obj.get("relocations") is not None else None, "sections": [ELFSection.from_dict(_item) for _item in obj["sections"]] if obj.get("sections") is not None else None, + "security": ELFSecurity.from_dict(obj["security"]) if obj.get("security") is not None else None, "segments": [ELFSegment.from_dict(_item) for _item in obj["segments"]] if obj.get("segments") is not None else None, "symbols": [ELFSymbol.from_dict(_item) for _item in obj["symbols"]] if obj.get("symbols") is not None else None, - "dynamic_symbols": [ELFSymbol.from_dict(_item) for _item in obj["dynamic_symbols"]] if obj.get("dynamic_symbols") is not None else None, - "relocations": [ELFRelocation.from_dict(_item) for _item in obj["relocations"]] if obj.get("relocations") is not None else None, - "imports": ELFImportModel.from_dict(obj["imports"]) if obj.get("imports") is not None else None, - "exported_functions": obj.get("exported_functions"), - "dynamic_entries": [ElfDynamicEntry.from_dict(_item) for _item in obj["dynamic_entries"]] if obj.get("dynamic_entries") is not None else None, - "notes": obj.get("notes"), - "debug_info": obj.get("debug_info"), "version_info": obj.get("version_info") }) return _obj diff --git a/revengai/models/elf_relocation.py b/revengai/models/elf_relocation.py index a9eefc3..7988132 100644 --- a/revengai/models/elf_relocation.py +++ b/revengai/models/elf_relocation.py @@ -25,14 +25,14 @@ class ELFRelocation(BaseModel): """ ELFRelocation """ # noqa: E501 - address: StrictInt - type: StrictStr - size: StrictInt addend: StrictInt - symbol_name: StrictStr + address: StrictInt is_dynamic: StrictBool is_pltgot: StrictBool - __properties: ClassVar[List[str]] = ["address", "type", "size", "addend", "symbol_name", "is_dynamic", "is_pltgot"] + size: StrictInt + symbol_name: StrictStr + type: StrictStr + __properties: ClassVar[List[str]] = ["addend", "address", "is_dynamic", "is_pltgot", "size", "symbol_name", "type"] model_config = ConfigDict( populate_by_name=True, @@ -85,13 +85,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "addend": obj.get("addend"), "address": obj.get("address"), - "type": obj.get("type"), + "is_dynamic": obj.get("is_dynamic"), + "is_pltgot": obj.get("is_pltgot"), "size": obj.get("size"), - "addend": obj.get("addend"), "symbol_name": obj.get("symbol_name"), - "is_dynamic": obj.get("is_dynamic"), - "is_pltgot": obj.get("is_pltgot") + "type": obj.get("type") }) return _obj diff --git a/revengai/models/elf_section.py b/revengai/models/elf_section.py index 8546ad4..2277877 100644 --- a/revengai/models/elf_section.py +++ b/revengai/models/elf_section.py @@ -25,17 +25,17 @@ class ELFSection(BaseModel): """ ELFSection """ # noqa: E501 + alignment: StrictInt + entropy: Union[StrictFloat, StrictInt] + file_offset: StrictInt + flags: StrictStr + flags_raw: StrictInt name: StrictStr + raw_size: StrictInt type: StrictStr virtual_address: StrictInt virtual_size: StrictInt - raw_size: StrictInt - file_offset: StrictInt - flags: StrictStr - flags_raw: StrictInt - entropy: Union[StrictFloat, StrictInt] - alignment: StrictInt - __properties: ClassVar[List[str]] = ["name", "type", "virtual_address", "virtual_size", "raw_size", "file_offset", "flags", "flags_raw", "entropy", "alignment"] + __properties: ClassVar[List[str]] = ["alignment", "entropy", "file_offset", "flags", "flags_raw", "name", "raw_size", "type", "virtual_address", "virtual_size"] model_config = ConfigDict( populate_by_name=True, @@ -88,16 +88,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), - "type": obj.get("type"), - "virtual_address": obj.get("virtual_address"), - "virtual_size": obj.get("virtual_size"), - "raw_size": obj.get("raw_size"), + "alignment": obj.get("alignment"), + "entropy": obj.get("entropy"), "file_offset": obj.get("file_offset"), "flags": obj.get("flags"), "flags_raw": obj.get("flags_raw"), - "entropy": obj.get("entropy"), - "alignment": obj.get("alignment") + "name": obj.get("name"), + "raw_size": obj.get("raw_size"), + "type": obj.get("type"), + "virtual_address": obj.get("virtual_address"), + "virtual_size": obj.get("virtual_size") }) return _obj diff --git a/revengai/models/elf_security.py b/revengai/models/elf_security.py index fefb36d..29fbb02 100644 --- a/revengai/models/elf_security.py +++ b/revengai/models/elf_security.py @@ -25,12 +25,12 @@ class ELFSecurity(BaseModel): """ ELFSecurity """ # noqa: E501 - pie: StrictBool - stripped: StrictBool canary: StrictBool nx: StrictBool + pie: StrictBool relo: StrictBool - __properties: ClassVar[List[str]] = ["pie", "stripped", "canary", "nx", "relo"] + stripped: StrictBool + __properties: ClassVar[List[str]] = ["canary", "nx", "pie", "relo", "stripped"] model_config = ConfigDict( populate_by_name=True, @@ -83,11 +83,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "pie": obj.get("pie"), - "stripped": obj.get("stripped"), "canary": obj.get("canary"), "nx": obj.get("nx"), - "relo": obj.get("relo") + "pie": obj.get("pie"), + "relo": obj.get("relo"), + "stripped": obj.get("stripped") }) return _obj diff --git a/revengai/models/elf_segment.py b/revengai/models/elf_segment.py index 6b1b812..fa47853 100644 --- a/revengai/models/elf_segment.py +++ b/revengai/models/elf_segment.py @@ -25,16 +25,16 @@ class ELFSegment(BaseModel): """ ELFSegment """ # noqa: E501 - type: StrictStr - virtual_address: StrictInt - virtual_size: StrictInt - physical_address: StrictInt - physical_size: StrictInt + alignment: StrictInt file_offset: StrictInt flags: StrictStr flags_raw: StrictInt - alignment: StrictInt - __properties: ClassVar[List[str]] = ["type", "virtual_address", "virtual_size", "physical_address", "physical_size", "file_offset", "flags", "flags_raw", "alignment"] + physical_address: StrictInt + physical_size: StrictInt + type: StrictStr + virtual_address: StrictInt + virtual_size: StrictInt + __properties: ClassVar[List[str]] = ["alignment", "file_offset", "flags", "flags_raw", "physical_address", "physical_size", "type", "virtual_address", "virtual_size"] model_config = ConfigDict( populate_by_name=True, @@ -87,15 +87,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "type": obj.get("type"), - "virtual_address": obj.get("virtual_address"), - "virtual_size": obj.get("virtual_size"), - "physical_address": obj.get("physical_address"), - "physical_size": obj.get("physical_size"), + "alignment": obj.get("alignment"), "file_offset": obj.get("file_offset"), "flags": obj.get("flags"), "flags_raw": obj.get("flags_raw"), - "alignment": obj.get("alignment") + "physical_address": obj.get("physical_address"), + "physical_size": obj.get("physical_size"), + "type": obj.get("type"), + "virtual_address": obj.get("virtual_address"), + "virtual_size": obj.get("virtual_size") }) return _obj diff --git a/revengai/models/elf_symbol.py b/revengai/models/elf_symbol.py index 4d0afdb..688b105 100644 --- a/revengai/models/elf_symbol.py +++ b/revengai/models/elf_symbol.py @@ -25,14 +25,14 @@ class ELFSymbol(BaseModel): """ ELFSymbol """ # noqa: E501 + binding: StrictStr name: StrictStr - value: StrictInt + section_index: StrictInt size: StrictInt type: StrictStr - binding: StrictStr + value: StrictInt visibility: StrictStr - section_index: StrictInt - __properties: ClassVar[List[str]] = ["name", "value", "size", "type", "binding", "visibility", "section_index"] + __properties: ClassVar[List[str]] = ["binding", "name", "section_index", "size", "type", "value", "visibility"] model_config = ConfigDict( populate_by_name=True, @@ -85,13 +85,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "binding": obj.get("binding"), "name": obj.get("name"), - "value": obj.get("value"), + "section_index": obj.get("section_index"), "size": obj.get("size"), "type": obj.get("type"), - "binding": obj.get("binding"), - "visibility": obj.get("visibility"), - "section_index": obj.get("section_index") + "value": obj.get("value"), + "visibility": obj.get("visibility") }) return _obj diff --git a/revengai/models/enumeration.py b/revengai/models/enumeration.py index 0748ffb..b27311c 100644 --- a/revengai/models/enumeration.py +++ b/revengai/models/enumeration.py @@ -25,11 +25,11 @@ class Enumeration(BaseModel): """ Enumeration """ # noqa: E501 + artifact_type: Optional[StrictStr] = Field(default=None, description="Type of artifact that the enumeration is associated with") last_change: Optional[StrictStr] = None - name: StrictStr = Field(description="Name of the enumeration") members: Dict[str, StrictInt] = Field(description="Dictionary of enumeration members and their values") - artifact_type: Optional[StrictStr] = Field(default=None, description="Type of artifact that the enumeration is associated with") - __properties: ClassVar[List[str]] = ["last_change", "name", "members", "artifact_type"] + name: StrictStr = Field(description="Name of the enumeration") + __properties: ClassVar[List[str]] = ["artifact_type", "last_change", "members", "name"] model_config = ConfigDict( populate_by_name=True, @@ -87,10 +87,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "artifact_type": obj.get("artifact_type"), "last_change": obj.get("last_change"), - "name": obj.get("name"), "members": obj.get("members"), - "artifact_type": obj.get("artifact_type") + "name": obj.get("name") }) return _obj diff --git a/revengai/models/export_model.py b/revengai/models/export_model.py index edf8cf2..cfb120a 100644 --- a/revengai/models/export_model.py +++ b/revengai/models/export_model.py @@ -25,9 +25,9 @@ class ExportModel(BaseModel): """ ExportModel """ # noqa: E501 - number_of_exports: StrictInt exports: List[Dict[str, StrictInt]] - __properties: ClassVar[List[str]] = ["number_of_exports", "exports"] + number_of_exports: StrictInt + __properties: ClassVar[List[str]] = ["exports", "number_of_exports"] model_config = ConfigDict( populate_by_name=True, @@ -80,8 +80,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "number_of_exports": obj.get("number_of_exports"), - "exports": obj.get("exports") + "exports": obj.get("exports"), + "number_of_exports": obj.get("number_of_exports") }) return _obj diff --git a/revengai/models/external_response.py b/revengai/models/external_response.py index fe1d725..d1cbd44 100644 --- a/revengai/models/external_response.py +++ b/revengai/models/external_response.py @@ -26,10 +26,10 @@ class ExternalResponse(BaseModel): """ ExternalResponse """ # noqa: E501 - sha_256_hash: StrictStr data: Dict[str, Any] last_updated: datetime - __properties: ClassVar[List[str]] = ["sha_256_hash", "data", "last_updated"] + sha_256_hash: StrictStr + __properties: ClassVar[List[str]] = ["data", "last_updated", "sha_256_hash"] model_config = ConfigDict( populate_by_name=True, @@ -82,9 +82,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "sha_256_hash": obj.get("sha_256_hash"), "data": obj.get("data"), - "last_updated": obj.get("last_updated") + "last_updated": obj.get("last_updated"), + "sha_256_hash": obj.get("sha_256_hash") }) return _obj diff --git a/revengai/models/file_hashes.py b/revengai/models/file_hashes.py index a74d97f..c610ad7 100644 --- a/revengai/models/file_hashes.py +++ b/revengai/models/file_hashes.py @@ -28,12 +28,12 @@ class FileHashes(BaseModel): md5: Optional[StrictStr] sha1: Optional[StrictStr] sha256: Optional[StrictStr] - sha512: Optional[StrictStr] sha3_224: Optional[StrictStr] sha3_256: Optional[StrictStr] sha3_384: Optional[StrictStr] sha3_512: Optional[StrictStr] - __properties: ClassVar[List[str]] = ["md5", "sha1", "sha256", "sha512", "sha3_224", "sha3_256", "sha3_384", "sha3_512"] + sha512: Optional[StrictStr] + __properties: ClassVar[List[str]] = ["md5", "sha1", "sha256", "sha3_224", "sha3_256", "sha3_384", "sha3_512", "sha512"] model_config = ConfigDict( populate_by_name=True, @@ -89,11 +89,6 @@ def to_dict(self) -> Dict[str, Any]: if self.sha256 is None and "sha256" in self.model_fields_set: _dict['sha256'] = None - # set to None if sha512 (nullable) is None - # and model_fields_set contains the field - if self.sha512 is None and "sha512" in self.model_fields_set: - _dict['sha512'] = None - # set to None if sha3_224 (nullable) is None # and model_fields_set contains the field if self.sha3_224 is None and "sha3_224" in self.model_fields_set: @@ -114,6 +109,11 @@ def to_dict(self) -> Dict[str, Any]: if self.sha3_512 is None and "sha3_512" in self.model_fields_set: _dict['sha3_512'] = None + # set to None if sha512 (nullable) is None + # and model_fields_set contains the field + if self.sha512 is None and "sha512" in self.model_fields_set: + _dict['sha512'] = None + return _dict @classmethod @@ -129,11 +129,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "md5": obj.get("md5"), "sha1": obj.get("sha1"), "sha256": obj.get("sha256"), - "sha512": obj.get("sha512"), "sha3_224": obj.get("sha3_224"), "sha3_256": obj.get("sha3_256"), "sha3_384": obj.get("sha3_384"), - "sha3_512": obj.get("sha3_512") + "sha3_512": obj.get("sha3_512"), + "sha512": obj.get("sha512") }) return _obj diff --git a/revengai/models/file_metadata.py b/revengai/models/file_metadata.py index 112b72f..5a8fd70 100644 --- a/revengai/models/file_metadata.py +++ b/revengai/models/file_metadata.py @@ -26,11 +26,11 @@ class FileMetadata(BaseModel): """ FileMetadata """ # noqa: E501 - size: StrictInt - friendly_size: StrictStr entropy: Union[StrictFloat, StrictInt] + friendly_size: StrictStr hashes: FileHashes - __properties: ClassVar[List[str]] = ["size", "friendly_size", "entropy", "hashes"] + size: StrictInt + __properties: ClassVar[List[str]] = ["entropy", "friendly_size", "hashes", "size"] model_config = ConfigDict( populate_by_name=True, @@ -86,10 +86,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "size": obj.get("size"), - "friendly_size": obj.get("friendly_size"), "entropy": obj.get("entropy"), - "hashes": FileHashes.from_dict(obj["hashes"]) if obj.get("hashes") is not None else None + "friendly_size": obj.get("friendly_size"), + "hashes": FileHashes.from_dict(obj["hashes"]) if obj.get("hashes") is not None else None, + "size": obj.get("size") }) return _obj diff --git a/revengai/models/function_block_response.py b/revengai/models/function_block_response.py index cda2f5f..648a780 100644 --- a/revengai/models/function_block_response.py +++ b/revengai/models/function_block_response.py @@ -27,12 +27,12 @@ class FunctionBlockResponse(BaseModel): FunctionBlockResponse """ # noqa: E501 asm: List[StrictStr] = Field(description="The ordered assembly strings for this chunk") + comment: Optional[StrictStr] = None + destinations: List[FunctionBlockDestinationResponse] = Field(description="The potential execution flow destinations from this block") id: StrictInt = Field(description="ID of the block") - min_addr: StrictInt = Field(description="The minimum vaddr of the block") max_addr: StrictInt = Field(description="The maximum vaddr of the block") - destinations: List[FunctionBlockDestinationResponse] = Field(description="The potential execution flow destinations from this block") - comment: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["asm", "id", "min_addr", "max_addr", "destinations", "comment"] + min_addr: StrictInt = Field(description="The minimum vaddr of the block") + __properties: ClassVar[List[str]] = ["asm", "comment", "destinations", "id", "max_addr", "min_addr"] model_config = ConfigDict( populate_by_name=True, @@ -98,11 +98,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "asm": obj.get("asm"), + "comment": obj.get("comment"), + "destinations": [FunctionBlockDestinationResponse.from_dict(_item) for _item in obj["destinations"]] if obj.get("destinations") is not None else None, "id": obj.get("id"), - "min_addr": obj.get("min_addr"), "max_addr": obj.get("max_addr"), - "destinations": [FunctionBlockDestinationResponse.from_dict(_item) for _item in obj["destinations"]] if obj.get("destinations") is not None else None, - "comment": obj.get("comment") + "min_addr": obj.get("min_addr") }) return _obj diff --git a/revengai/models/function_blocks_response.py b/revengai/models/function_blocks_response.py index e5bbab4..5f8ff82 100644 --- a/revengai/models/function_blocks_response.py +++ b/revengai/models/function_blocks_response.py @@ -30,9 +30,9 @@ class FunctionBlocksResponse(BaseModel): """ # noqa: E501 blocks: List[FunctionBlockResponse] = Field(description="Disassembly is broken into control flow blocks") local_variables: List[FunctionLocalVariableResponse] = Field(description="Local variables associated with this function") - params: List[FunctionParamResponse] = Field(description="Params associated with this function") overview_comment: Optional[StrictStr] - __properties: ClassVar[List[str]] = ["blocks", "local_variables", "params", "overview_comment"] + params: List[FunctionParamResponse] = Field(description="Params associated with this function") + __properties: ClassVar[List[str]] = ["blocks", "local_variables", "overview_comment", "params"] model_config = ConfigDict( populate_by_name=True, @@ -113,8 +113,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "blocks": [FunctionBlockResponse.from_dict(_item) for _item in obj["blocks"]] if obj.get("blocks") is not None else None, "local_variables": [FunctionLocalVariableResponse.from_dict(_item) for _item in obj["local_variables"]] if obj.get("local_variables") is not None else None, - "params": [FunctionParamResponse.from_dict(_item) for _item in obj["params"]] if obj.get("params") is not None else None, - "overview_comment": obj.get("overview_comment") + "overview_comment": obj.get("overview_comment"), + "params": [FunctionParamResponse.from_dict(_item) for _item in obj["params"]] if obj.get("params") is not None else None }) return _obj diff --git a/revengai/models/function_boundary.py b/revengai/models/function_boundary.py index 2c66b7d..43fbc75 100644 --- a/revengai/models/function_boundary.py +++ b/revengai/models/function_boundary.py @@ -25,11 +25,11 @@ class FunctionBoundary(BaseModel): """ FunctionBoundary """ # noqa: E501 - mangled_name: StrictStr - start_address: StrictInt end_address: StrictInt include_in_analysis: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["mangled_name", "start_address", "end_address", "include_in_analysis"] + mangled_name: StrictStr + start_address: StrictInt + __properties: ClassVar[List[str]] = ["end_address", "include_in_analysis", "mangled_name", "start_address"] model_config = ConfigDict( populate_by_name=True, @@ -87,10 +87,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "mangled_name": obj.get("mangled_name"), - "start_address": obj.get("start_address"), "end_address": obj.get("end_address"), - "include_in_analysis": obj.get("include_in_analysis") + "include_in_analysis": obj.get("include_in_analysis"), + "mangled_name": obj.get("mangled_name"), + "start_address": obj.get("start_address") }) return _obj diff --git a/revengai/models/function_data_types.py b/revengai/models/function_data_types.py index f315075..c89cc45 100644 --- a/revengai/models/function_data_types.py +++ b/revengai/models/function_data_types.py @@ -27,10 +27,10 @@ class FunctionDataTypes(BaseModel): FunctionDataTypes """ # noqa: E501 completed: StrictBool = Field(description="Whether the service has completed data types generation") - status: StrictStr = Field(description="The current status of the data types service") data_types: Optional[FunctionInfoOutput] = None data_types_version: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["completed", "status", "data_types", "data_types_version"] + status: StrictStr = Field(description="The current status of the data types service") + __properties: ClassVar[List[str]] = ["completed", "data_types", "data_types_version", "status"] model_config = ConfigDict( populate_by_name=True, @@ -97,9 +97,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "completed": obj.get("completed"), - "status": obj.get("status"), "data_types": FunctionInfoOutput.from_dict(obj["data_types"]) if obj.get("data_types") is not None else None, - "data_types_version": obj.get("data_types_version") + "data_types_version": obj.get("data_types_version"), + "status": obj.get("status") }) return _obj diff --git a/revengai/models/function_data_types_list.py b/revengai/models/function_data_types_list.py index 14c9821..4a3e50e 100644 --- a/revengai/models/function_data_types_list.py +++ b/revengai/models/function_data_types_list.py @@ -26,10 +26,10 @@ class FunctionDataTypesList(BaseModel): """ FunctionDataTypesList """ # noqa: E501 + items: List[FunctionDataTypesListItem] = Field(description="List of function data types information") total_count: Optional[StrictInt] = Field(default=0, description="Total number of functions in analysis") total_data_types_count: Optional[StrictInt] = Field(default=0, description="Total number of functions with data types") - items: List[FunctionDataTypesListItem] = Field(description="List of function data types information") - __properties: ClassVar[List[str]] = ["total_count", "total_data_types_count", "items"] + __properties: ClassVar[List[str]] = ["items", "total_count", "total_data_types_count"] model_config = ConfigDict( populate_by_name=True, @@ -89,9 +89,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "items": [FunctionDataTypesListItem.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, "total_count": obj.get("total_count") if obj.get("total_count") is not None else 0, - "total_data_types_count": obj.get("total_data_types_count") if obj.get("total_data_types_count") is not None else 0, - "items": [FunctionDataTypesListItem.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None + "total_data_types_count": obj.get("total_data_types_count") if obj.get("total_data_types_count") is not None else 0 }) return _obj diff --git a/revengai/models/function_data_types_list_item.py b/revengai/models/function_data_types_list_item.py index b9e40ab..da77809 100644 --- a/revengai/models/function_data_types_list_item.py +++ b/revengai/models/function_data_types_list_item.py @@ -27,11 +27,11 @@ class FunctionDataTypesListItem(BaseModel): FunctionDataTypesListItem """ # noqa: E501 completed: StrictBool = Field(description="Whether the service has completed data types generation") - status: StrictStr = Field(description="The current status of the data types service") data_types: Optional[FunctionInfoOutput] = None data_types_version: Optional[StrictInt] = None function_id: StrictInt = Field(description="Function id") - __properties: ClassVar[List[str]] = ["completed", "status", "data_types", "data_types_version", "function_id"] + status: StrictStr = Field(description="The current status of the data types service") + __properties: ClassVar[List[str]] = ["completed", "data_types", "data_types_version", "function_id", "status"] model_config = ConfigDict( populate_by_name=True, @@ -98,10 +98,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "completed": obj.get("completed"), - "status": obj.get("status"), "data_types": FunctionInfoOutput.from_dict(obj["data_types"]) if obj.get("data_types") is not None else None, "data_types_version": obj.get("data_types_version"), - "function_id": obj.get("function_id") + "function_id": obj.get("function_id"), + "status": obj.get("status") }) return _obj diff --git a/revengai/models/function_data_types_status.py b/revengai/models/function_data_types_status.py index b6ba71d..10baefd 100644 --- a/revengai/models/function_data_types_status.py +++ b/revengai/models/function_data_types_status.py @@ -25,10 +25,10 @@ class FunctionDataTypesStatus(BaseModel): """ FunctionDataTypesStatus """ # noqa: E501 - function_id: StrictInt = Field(description="Function id") completed: StrictBool = Field(description="Whether the service has completed data types generation") + function_id: StrictInt = Field(description="Function id") status: StrictStr = Field(description="The current status of the data types service") - __properties: ClassVar[List[str]] = ["function_id", "completed", "status"] + __properties: ClassVar[List[str]] = ["completed", "function_id", "status"] model_config = ConfigDict( populate_by_name=True, @@ -81,8 +81,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "function_id": obj.get("function_id"), "completed": obj.get("completed"), + "function_id": obj.get("function_id"), "status": obj.get("status") }) return _obj diff --git a/revengai/models/function_header.py b/revengai/models/function_header.py index 74dd5ba..d741ee5 100644 --- a/revengai/models/function_header.py +++ b/revengai/models/function_header.py @@ -26,12 +26,12 @@ class FunctionHeader(BaseModel): """ FunctionHeader """ # noqa: E501 + addr: StrictInt = Field(description="Memory address of the function") + args: Dict[str, Argument] = Field(description="Dictionary of function arguments") last_change: Optional[StrictStr] = None name: StrictStr = Field(description="Name of the function") - addr: StrictInt = Field(description="Memory address of the function") type: StrictStr = Field(description="Return type of the function") - args: Dict[str, Argument] = Field(description="Dictionary of function arguments") - __properties: ClassVar[List[str]] = ["last_change", "name", "addr", "type", "args"] + __properties: ClassVar[List[str]] = ["addr", "args", "last_change", "name", "type"] model_config = ConfigDict( populate_by_name=True, @@ -96,16 +96,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "last_change": obj.get("last_change"), - "name": obj.get("name"), "addr": obj.get("addr"), - "type": obj.get("type"), "args": dict( (_k, Argument.from_dict(_v)) for _k, _v in obj["args"].items() ) if obj.get("args") is not None - else None + else None, + "last_change": obj.get("last_change"), + "name": obj.get("name"), + "type": obj.get("type") }) return _obj diff --git a/revengai/models/function_info_input.py b/revengai/models/function_info_input.py index cff53c7..9b5224f 100644 --- a/revengai/models/function_info_input.py +++ b/revengai/models/function_info_input.py @@ -27,9 +27,9 @@ class FunctionInfoInput(BaseModel): """ FunctionInfoInput """ # noqa: E501 - func_types: Optional[FunctionTypeInput] = None func_deps: List[FunctionInfoInputFuncDepsInner] = Field(description="List of function dependencies") - __properties: ClassVar[List[str]] = ["func_types", "func_deps"] + func_types: Optional[FunctionTypeInput] = None + __properties: ClassVar[List[str]] = ["func_deps", "func_types"] model_config = ConfigDict( populate_by_name=True, @@ -70,9 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of func_types - if self.func_types: - _dict['func_types'] = self.func_types.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in func_deps (list) _items = [] if self.func_deps: @@ -80,6 +77,9 @@ def to_dict(self) -> Dict[str, Any]: if _item_func_deps: _items.append(_item_func_deps.to_dict()) _dict['func_deps'] = _items + # override the default output from pydantic by calling `to_dict()` of func_types + if self.func_types: + _dict['func_types'] = self.func_types.to_dict() # set to None if func_types (nullable) is None # and model_fields_set contains the field if self.func_types is None and "func_types" in self.model_fields_set: @@ -97,8 +97,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "func_types": FunctionTypeInput.from_dict(obj["func_types"]) if obj.get("func_types") is not None else None, - "func_deps": [FunctionInfoInputFuncDepsInner.from_dict(_item) for _item in obj["func_deps"]] if obj.get("func_deps") is not None else None + "func_deps": [FunctionInfoInputFuncDepsInner.from_dict(_item) for _item in obj["func_deps"]] if obj.get("func_deps") is not None else None, + "func_types": FunctionTypeInput.from_dict(obj["func_types"]) if obj.get("func_types") is not None else None }) return _obj diff --git a/revengai/models/function_info_output.py b/revengai/models/function_info_output.py index d68f25e..169b1f4 100644 --- a/revengai/models/function_info_output.py +++ b/revengai/models/function_info_output.py @@ -27,9 +27,9 @@ class FunctionInfoOutput(BaseModel): """ FunctionInfoOutput """ # noqa: E501 - func_types: Optional[FunctionTypeOutput] = None func_deps: List[FunctionInfoInputFuncDepsInner] = Field(description="List of function dependencies") - __properties: ClassVar[List[str]] = ["func_types", "func_deps"] + func_types: Optional[FunctionTypeOutput] = None + __properties: ClassVar[List[str]] = ["func_deps", "func_types"] model_config = ConfigDict( populate_by_name=True, @@ -70,9 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of func_types - if self.func_types: - _dict['func_types'] = self.func_types.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in func_deps (list) _items = [] if self.func_deps: @@ -80,6 +77,9 @@ def to_dict(self) -> Dict[str, Any]: if _item_func_deps: _items.append(_item_func_deps.to_dict()) _dict['func_deps'] = _items + # override the default output from pydantic by calling `to_dict()` of func_types + if self.func_types: + _dict['func_types'] = self.func_types.to_dict() # set to None if func_types (nullable) is None # and model_fields_set contains the field if self.func_types is None and "func_types" in self.model_fields_set: @@ -97,8 +97,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "func_types": FunctionTypeOutput.from_dict(obj["func_types"]) if obj.get("func_types") is not None else None, - "func_deps": [FunctionInfoInputFuncDepsInner.from_dict(_item) for _item in obj["func_deps"]] if obj.get("func_deps") is not None else None + "func_deps": [FunctionInfoInputFuncDepsInner.from_dict(_item) for _item in obj["func_deps"]] if obj.get("func_deps") is not None else None, + "func_types": FunctionTypeOutput.from_dict(obj["func_types"]) if obj.get("func_types") is not None else None }) return _obj diff --git a/revengai/models/function_list_item.py b/revengai/models/function_list_item.py index 80af705..b4d376e 100644 --- a/revengai/models/function_list_item.py +++ b/revengai/models/function_list_item.py @@ -26,15 +26,15 @@ class FunctionListItem(BaseModel): """ FunctionListItem """ # noqa: E501 + debug: StrictBool = Field(description="Whether the function has debug information") id: StrictInt = Field(description="Function id") + mangled_name: StrictStr = Field(description="Mangled name of the function") name: StrictStr = Field(description="Name of the function") - name_source_type: StrictStr = Field(description="The source (process) the function name came from") name_source: NameSourceType = Field(description="The source of the current function name.") - mangled_name: StrictStr = Field(description="Mangled name of the function") - vaddr: StrictInt = Field(description="Function virtual address") + name_source_type: StrictStr = Field(description="The source (process) the function name came from") size: StrictInt = Field(description="Function size in bytes") - debug: StrictBool = Field(description="Whether the function has debug information") - __properties: ClassVar[List[str]] = ["id", "name", "name_source_type", "name_source", "mangled_name", "vaddr", "size", "debug"] + vaddr: StrictInt = Field(description="Function virtual address") + __properties: ClassVar[List[str]] = ["debug", "id", "mangled_name", "name", "name_source", "name_source_type", "size", "vaddr"] @field_validator('name_source_type') def name_source_type_validate_enum(cls, value): @@ -97,14 +97,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "debug": obj.get("debug"), "id": obj.get("id"), + "mangled_name": obj.get("mangled_name"), "name": obj.get("name"), - "name_source_type": obj.get("name_source_type"), "name_source": NameSourceType.from_dict(obj["name_source"]) if obj.get("name_source") is not None else None, - "mangled_name": obj.get("mangled_name"), - "vaddr": obj.get("vaddr"), + "name_source_type": obj.get("name_source_type"), "size": obj.get("size"), - "debug": obj.get("debug") + "vaddr": obj.get("vaddr") }) return _obj diff --git a/revengai/models/function_local_variable_response.py b/revengai/models/function_local_variable_response.py index bbe598a..559c2ce 100644 --- a/revengai/models/function_local_variable_response.py +++ b/revengai/models/function_local_variable_response.py @@ -27,10 +27,10 @@ class FunctionLocalVariableResponse(BaseModel): """ # noqa: E501 address: StrictStr d_type: StrictStr - size: StrictInt loc: StrictStr name: StrictStr - __properties: ClassVar[List[str]] = ["address", "d_type", "size", "loc", "name"] + size: StrictInt + __properties: ClassVar[List[str]] = ["address", "d_type", "loc", "name", "size"] model_config = ConfigDict( populate_by_name=True, @@ -85,9 +85,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "address": obj.get("address"), "d_type": obj.get("d_type"), - "size": obj.get("size"), "loc": obj.get("loc"), - "name": obj.get("name") + "name": obj.get("name"), + "size": obj.get("size") }) return _obj diff --git a/revengai/models/function_mapping_full.py b/revengai/models/function_mapping_full.py index 9a09144..77f85d6 100644 --- a/revengai/models/function_mapping_full.py +++ b/revengai/models/function_mapping_full.py @@ -28,20 +28,20 @@ class FunctionMappingFull(BaseModel): """ FunctionMappingFull """ # noqa: E501 - inverse_string_map: Dict[str, InverseStringMapItem] + fields: Dict[str, Dict[str, InverseValue]] inverse_function_map: Dict[str, InverseFunctionMapItem] - unmatched_functions: Dict[str, InverseValue] - unmatched_custom_types: Dict[str, InverseValue] - unmatched_strings: Dict[str, InverseValue] - unmatched_vars: Dict[str, InverseValue] - unmatched_go_to_labels: Dict[str, InverseValue] + inverse_string_map: Dict[str, InverseStringMapItem] unmatched_custom_function_pointers: Dict[str, InverseValue] - unmatched_variadic_lists: Dict[str, InverseValue] + unmatched_custom_types: Dict[str, InverseValue] unmatched_enums: Dict[str, InverseValue] - unmatched_global_vars: Dict[str, InverseValue] - fields: Dict[str, Dict[str, InverseValue]] unmatched_external_vars: Optional[Dict[str, InverseValue]] = Field(default=None, description="No longer provided.") - __properties: ClassVar[List[str]] = ["inverse_string_map", "inverse_function_map", "unmatched_functions", "unmatched_custom_types", "unmatched_strings", "unmatched_vars", "unmatched_go_to_labels", "unmatched_custom_function_pointers", "unmatched_variadic_lists", "unmatched_enums", "unmatched_global_vars", "fields", "unmatched_external_vars"] + unmatched_functions: Dict[str, InverseValue] + unmatched_global_vars: Dict[str, InverseValue] + unmatched_go_to_labels: Dict[str, InverseValue] + unmatched_strings: Dict[str, InverseValue] + unmatched_variadic_lists: Dict[str, InverseValue] + unmatched_vars: Dict[str, InverseValue] + __properties: ClassVar[List[str]] = ["fields", "inverse_function_map", "inverse_string_map", "unmatched_custom_function_pointers", "unmatched_custom_types", "unmatched_enums", "unmatched_external_vars", "unmatched_functions", "unmatched_global_vars", "unmatched_go_to_labels", "unmatched_strings", "unmatched_variadic_lists", "unmatched_vars"] model_config = ConfigDict( populate_by_name=True, @@ -82,13 +82,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each value in inverse_string_map (dict) + # override the default output from pydantic by calling `to_dict()` of each value in fields (dict) _field_dict = {} - if self.inverse_string_map: - for _key_inverse_string_map in self.inverse_string_map: - if self.inverse_string_map[_key_inverse_string_map]: - _field_dict[_key_inverse_string_map] = self.inverse_string_map[_key_inverse_string_map].to_dict() - _dict['inverse_string_map'] = _field_dict + if self.fields: + for _key_fields in self.fields: + if self.fields[_key_fields]: + _field_dict[_key_fields] = self.fields[_key_fields].to_dict() + _dict['fields'] = _field_dict # override the default output from pydantic by calling `to_dict()` of each value in inverse_function_map (dict) _field_dict = {} if self.inverse_function_map: @@ -96,13 +96,20 @@ def to_dict(self) -> Dict[str, Any]: if self.inverse_function_map[_key_inverse_function_map]: _field_dict[_key_inverse_function_map] = self.inverse_function_map[_key_inverse_function_map].to_dict() _dict['inverse_function_map'] = _field_dict - # override the default output from pydantic by calling `to_dict()` of each value in unmatched_functions (dict) + # override the default output from pydantic by calling `to_dict()` of each value in inverse_string_map (dict) _field_dict = {} - if self.unmatched_functions: - for _key_unmatched_functions in self.unmatched_functions: - if self.unmatched_functions[_key_unmatched_functions]: - _field_dict[_key_unmatched_functions] = self.unmatched_functions[_key_unmatched_functions].to_dict() - _dict['unmatched_functions'] = _field_dict + if self.inverse_string_map: + for _key_inverse_string_map in self.inverse_string_map: + if self.inverse_string_map[_key_inverse_string_map]: + _field_dict[_key_inverse_string_map] = self.inverse_string_map[_key_inverse_string_map].to_dict() + _dict['inverse_string_map'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of each value in unmatched_custom_function_pointers (dict) + _field_dict = {} + if self.unmatched_custom_function_pointers: + for _key_unmatched_custom_function_pointers in self.unmatched_custom_function_pointers: + if self.unmatched_custom_function_pointers[_key_unmatched_custom_function_pointers]: + _field_dict[_key_unmatched_custom_function_pointers] = self.unmatched_custom_function_pointers[_key_unmatched_custom_function_pointers].to_dict() + _dict['unmatched_custom_function_pointers'] = _field_dict # override the default output from pydantic by calling `to_dict()` of each value in unmatched_custom_types (dict) _field_dict = {} if self.unmatched_custom_types: @@ -110,20 +117,34 @@ def to_dict(self) -> Dict[str, Any]: if self.unmatched_custom_types[_key_unmatched_custom_types]: _field_dict[_key_unmatched_custom_types] = self.unmatched_custom_types[_key_unmatched_custom_types].to_dict() _dict['unmatched_custom_types'] = _field_dict - # override the default output from pydantic by calling `to_dict()` of each value in unmatched_strings (dict) + # override the default output from pydantic by calling `to_dict()` of each value in unmatched_enums (dict) _field_dict = {} - if self.unmatched_strings: - for _key_unmatched_strings in self.unmatched_strings: - if self.unmatched_strings[_key_unmatched_strings]: - _field_dict[_key_unmatched_strings] = self.unmatched_strings[_key_unmatched_strings].to_dict() - _dict['unmatched_strings'] = _field_dict - # override the default output from pydantic by calling `to_dict()` of each value in unmatched_vars (dict) + if self.unmatched_enums: + for _key_unmatched_enums in self.unmatched_enums: + if self.unmatched_enums[_key_unmatched_enums]: + _field_dict[_key_unmatched_enums] = self.unmatched_enums[_key_unmatched_enums].to_dict() + _dict['unmatched_enums'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of each value in unmatched_external_vars (dict) _field_dict = {} - if self.unmatched_vars: - for _key_unmatched_vars in self.unmatched_vars: - if self.unmatched_vars[_key_unmatched_vars]: - _field_dict[_key_unmatched_vars] = self.unmatched_vars[_key_unmatched_vars].to_dict() - _dict['unmatched_vars'] = _field_dict + if self.unmatched_external_vars: + for _key_unmatched_external_vars in self.unmatched_external_vars: + if self.unmatched_external_vars[_key_unmatched_external_vars]: + _field_dict[_key_unmatched_external_vars] = self.unmatched_external_vars[_key_unmatched_external_vars].to_dict() + _dict['unmatched_external_vars'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of each value in unmatched_functions (dict) + _field_dict = {} + if self.unmatched_functions: + for _key_unmatched_functions in self.unmatched_functions: + if self.unmatched_functions[_key_unmatched_functions]: + _field_dict[_key_unmatched_functions] = self.unmatched_functions[_key_unmatched_functions].to_dict() + _dict['unmatched_functions'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of each value in unmatched_global_vars (dict) + _field_dict = {} + if self.unmatched_global_vars: + for _key_unmatched_global_vars in self.unmatched_global_vars: + if self.unmatched_global_vars[_key_unmatched_global_vars]: + _field_dict[_key_unmatched_global_vars] = self.unmatched_global_vars[_key_unmatched_global_vars].to_dict() + _dict['unmatched_global_vars'] = _field_dict # override the default output from pydantic by calling `to_dict()` of each value in unmatched_go_to_labels (dict) _field_dict = {} if self.unmatched_go_to_labels: @@ -131,13 +152,13 @@ def to_dict(self) -> Dict[str, Any]: if self.unmatched_go_to_labels[_key_unmatched_go_to_labels]: _field_dict[_key_unmatched_go_to_labels] = self.unmatched_go_to_labels[_key_unmatched_go_to_labels].to_dict() _dict['unmatched_go_to_labels'] = _field_dict - # override the default output from pydantic by calling `to_dict()` of each value in unmatched_custom_function_pointers (dict) + # override the default output from pydantic by calling `to_dict()` of each value in unmatched_strings (dict) _field_dict = {} - if self.unmatched_custom_function_pointers: - for _key_unmatched_custom_function_pointers in self.unmatched_custom_function_pointers: - if self.unmatched_custom_function_pointers[_key_unmatched_custom_function_pointers]: - _field_dict[_key_unmatched_custom_function_pointers] = self.unmatched_custom_function_pointers[_key_unmatched_custom_function_pointers].to_dict() - _dict['unmatched_custom_function_pointers'] = _field_dict + if self.unmatched_strings: + for _key_unmatched_strings in self.unmatched_strings: + if self.unmatched_strings[_key_unmatched_strings]: + _field_dict[_key_unmatched_strings] = self.unmatched_strings[_key_unmatched_strings].to_dict() + _dict['unmatched_strings'] = _field_dict # override the default output from pydantic by calling `to_dict()` of each value in unmatched_variadic_lists (dict) _field_dict = {} if self.unmatched_variadic_lists: @@ -145,34 +166,13 @@ def to_dict(self) -> Dict[str, Any]: if self.unmatched_variadic_lists[_key_unmatched_variadic_lists]: _field_dict[_key_unmatched_variadic_lists] = self.unmatched_variadic_lists[_key_unmatched_variadic_lists].to_dict() _dict['unmatched_variadic_lists'] = _field_dict - # override the default output from pydantic by calling `to_dict()` of each value in unmatched_enums (dict) - _field_dict = {} - if self.unmatched_enums: - for _key_unmatched_enums in self.unmatched_enums: - if self.unmatched_enums[_key_unmatched_enums]: - _field_dict[_key_unmatched_enums] = self.unmatched_enums[_key_unmatched_enums].to_dict() - _dict['unmatched_enums'] = _field_dict - # override the default output from pydantic by calling `to_dict()` of each value in unmatched_global_vars (dict) - _field_dict = {} - if self.unmatched_global_vars: - for _key_unmatched_global_vars in self.unmatched_global_vars: - if self.unmatched_global_vars[_key_unmatched_global_vars]: - _field_dict[_key_unmatched_global_vars] = self.unmatched_global_vars[_key_unmatched_global_vars].to_dict() - _dict['unmatched_global_vars'] = _field_dict - # override the default output from pydantic by calling `to_dict()` of each value in fields (dict) - _field_dict = {} - if self.fields: - for _key_fields in self.fields: - if self.fields[_key_fields]: - _field_dict[_key_fields] = self.fields[_key_fields].to_dict() - _dict['fields'] = _field_dict - # override the default output from pydantic by calling `to_dict()` of each value in unmatched_external_vars (dict) + # override the default output from pydantic by calling `to_dict()` of each value in unmatched_vars (dict) _field_dict = {} - if self.unmatched_external_vars: - for _key_unmatched_external_vars in self.unmatched_external_vars: - if self.unmatched_external_vars[_key_unmatched_external_vars]: - _field_dict[_key_unmatched_external_vars] = self.unmatched_external_vars[_key_unmatched_external_vars].to_dict() - _dict['unmatched_external_vars'] = _field_dict + if self.unmatched_vars: + for _key_unmatched_vars in self.unmatched_vars: + if self.unmatched_vars[_key_unmatched_vars]: + _field_dict[_key_unmatched_vars] = self.unmatched_vars[_key_unmatched_vars].to_dict() + _dict['unmatched_vars'] = _field_dict return _dict @classmethod @@ -185,11 +185,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "inverse_string_map": dict( - (_k, InverseStringMapItem.from_dict(_v)) - for _k, _v in obj["inverse_string_map"].items() + "fields": dict( + (_k, dict( + (_ik, InverseValue.from_dict(_iv)) + for _ik, _iv in _v.items() + ) + if _v is not None + else None + ) + for _k, _v in obj.get("fields").items() ) - if obj.get("inverse_string_map") is not None + if obj.get("fields") is not None else None, "inverse_function_map": dict( (_k, InverseFunctionMapItem.from_dict(_v)) @@ -197,11 +203,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) if obj.get("inverse_function_map") is not None else None, - "unmatched_functions": dict( + "inverse_string_map": dict( + (_k, InverseStringMapItem.from_dict(_v)) + for _k, _v in obj["inverse_string_map"].items() + ) + if obj.get("inverse_string_map") is not None + else None, + "unmatched_custom_function_pointers": dict( (_k, InverseValue.from_dict(_v)) - for _k, _v in obj["unmatched_functions"].items() + for _k, _v in obj["unmatched_custom_function_pointers"].items() ) - if obj.get("unmatched_functions") is not None + if obj.get("unmatched_custom_function_pointers") is not None else None, "unmatched_custom_types": dict( (_k, InverseValue.from_dict(_v)) @@ -209,65 +221,53 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) if obj.get("unmatched_custom_types") is not None else None, - "unmatched_strings": dict( + "unmatched_enums": dict( (_k, InverseValue.from_dict(_v)) - for _k, _v in obj["unmatched_strings"].items() + for _k, _v in obj["unmatched_enums"].items() ) - if obj.get("unmatched_strings") is not None + if obj.get("unmatched_enums") is not None else None, - "unmatched_vars": dict( + "unmatched_external_vars": dict( (_k, InverseValue.from_dict(_v)) - for _k, _v in obj["unmatched_vars"].items() + for _k, _v in obj["unmatched_external_vars"].items() ) - if obj.get("unmatched_vars") is not None + if obj.get("unmatched_external_vars") is not None else None, - "unmatched_go_to_labels": dict( + "unmatched_functions": dict( (_k, InverseValue.from_dict(_v)) - for _k, _v in obj["unmatched_go_to_labels"].items() + for _k, _v in obj["unmatched_functions"].items() ) - if obj.get("unmatched_go_to_labels") is not None + if obj.get("unmatched_functions") is not None else None, - "unmatched_custom_function_pointers": dict( + "unmatched_global_vars": dict( (_k, InverseValue.from_dict(_v)) - for _k, _v in obj["unmatched_custom_function_pointers"].items() + for _k, _v in obj["unmatched_global_vars"].items() ) - if obj.get("unmatched_custom_function_pointers") is not None + if obj.get("unmatched_global_vars") is not None else None, - "unmatched_variadic_lists": dict( + "unmatched_go_to_labels": dict( (_k, InverseValue.from_dict(_v)) - for _k, _v in obj["unmatched_variadic_lists"].items() + for _k, _v in obj["unmatched_go_to_labels"].items() ) - if obj.get("unmatched_variadic_lists") is not None + if obj.get("unmatched_go_to_labels") is not None else None, - "unmatched_enums": dict( + "unmatched_strings": dict( (_k, InverseValue.from_dict(_v)) - for _k, _v in obj["unmatched_enums"].items() + for _k, _v in obj["unmatched_strings"].items() ) - if obj.get("unmatched_enums") is not None + if obj.get("unmatched_strings") is not None else None, - "unmatched_global_vars": dict( + "unmatched_variadic_lists": dict( (_k, InverseValue.from_dict(_v)) - for _k, _v in obj["unmatched_global_vars"].items() - ) - if obj.get("unmatched_global_vars") is not None - else None, - "fields": dict( - (_k, dict( - (_ik, InverseValue.from_dict(_iv)) - for _ik, _iv in _v.items() - ) - if _v is not None - else None - ) - for _k, _v in obj.get("fields").items() + for _k, _v in obj["unmatched_variadic_lists"].items() ) - if obj.get("fields") is not None + if obj.get("unmatched_variadic_lists") is not None else None, - "unmatched_external_vars": dict( + "unmatched_vars": dict( (_k, InverseValue.from_dict(_v)) - for _k, _v in obj["unmatched_external_vars"].items() + for _k, _v in obj["unmatched_vars"].items() ) - if obj.get("unmatched_external_vars") is not None + if obj.get("unmatched_vars") is not None else None }) return _obj diff --git a/revengai/models/function_match.py b/revengai/models/function_match.py index 3dc507a..17e76e8 100644 --- a/revengai/models/function_match.py +++ b/revengai/models/function_match.py @@ -27,10 +27,10 @@ class FunctionMatch(BaseModel): """ FunctionMatch """ # noqa: E501 + confidences: Optional[List[NameConfidence]] = None function_id: StrictInt = Field(description="Unique identifier of the function") matched_functions: List[MatchedFunction] - confidences: Optional[List[NameConfidence]] = None - __properties: ClassVar[List[str]] = ["function_id", "matched_functions", "confidences"] + __properties: ClassVar[List[str]] = ["confidences", "function_id", "matched_functions"] model_config = ConfigDict( populate_by_name=True, @@ -71,13 +71,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in matched_functions (list) - _items = [] - if self.matched_functions: - for _item_matched_functions in self.matched_functions: - if _item_matched_functions: - _items.append(_item_matched_functions.to_dict()) - _dict['matched_functions'] = _items # override the default output from pydantic by calling `to_dict()` of each item in confidences (list) _items = [] if self.confidences: @@ -85,6 +78,13 @@ def to_dict(self) -> Dict[str, Any]: if _item_confidences: _items.append(_item_confidences.to_dict()) _dict['confidences'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in matched_functions (list) + _items = [] + if self.matched_functions: + for _item_matched_functions in self.matched_functions: + if _item_matched_functions: + _items.append(_item_matched_functions.to_dict()) + _dict['matched_functions'] = _items # set to None if confidences (nullable) is None # and model_fields_set contains the field if self.confidences is None and "confidences" in self.model_fields_set: @@ -102,9 +102,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "confidences": [NameConfidence.from_dict(_item) for _item in obj["confidences"]] if obj.get("confidences") is not None else None, "function_id": obj.get("function_id"), - "matched_functions": [MatchedFunction.from_dict(_item) for _item in obj["matched_functions"]] if obj.get("matched_functions") is not None else None, - "confidences": [NameConfidence.from_dict(_item) for _item in obj["confidences"]] if obj.get("confidences") is not None else None + "matched_functions": [MatchedFunction.from_dict(_item) for _item in obj["matched_functions"]] if obj.get("matched_functions") is not None else None }) return _obj diff --git a/revengai/models/function_matching_filters.py b/revengai/models/function_matching_filters.py index 21b0102..0fb141d 100644 --- a/revengai/models/function_matching_filters.py +++ b/revengai/models/function_matching_filters.py @@ -27,10 +27,10 @@ class FunctionMatchingFilters(BaseModel): """ # noqa: E501 binary_ids: Optional[List[StrictInt]] = Field(default=None, description="ID's of binaries to limit the search to, if empty, search all scoped binaries") collection_ids: Optional[List[StrictInt]] = Field(default=None, description="ID's of collections to limit the search to, if empty, search all scoped collections") + debug_types: Optional[List[StrictStr]] = Field(default=None, description="Limit the search to specific debug types, if empty, search all scoped debug & non-debug functions") function_ids: Optional[List[StrictInt]] = Field(default=None, description="ID's of functions to limit the search to, if empty, search all scoped functions") user_ids: Optional[List[StrictInt]] = Field(default=None, description="ID's of users to limit the search to, if empty, search all scoped users") - debug_types: Optional[List[StrictStr]] = Field(default=None, description="Limit the search to specific debug types, if empty, search all scoped debug & non-debug functions") - __properties: ClassVar[List[str]] = ["binary_ids", "collection_ids", "function_ids", "user_ids", "debug_types"] + __properties: ClassVar[List[str]] = ["binary_ids", "collection_ids", "debug_types", "function_ids", "user_ids"] @field_validator('debug_types') def debug_types_validate_enum(cls, value): @@ -96,9 +96,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "binary_ids": obj.get("binary_ids"), "collection_ids": obj.get("collection_ids"), + "debug_types": obj.get("debug_types"), "function_ids": obj.get("function_ids"), - "user_ids": obj.get("user_ids"), - "debug_types": obj.get("debug_types") + "user_ids": obj.get("user_ids") }) return _obj diff --git a/revengai/models/function_matching_request.py b/revengai/models/function_matching_request.py index cc0b9f7..5220fdc 100644 --- a/revengai/models/function_matching_request.py +++ b/revengai/models/function_matching_request.py @@ -27,17 +27,17 @@ class FunctionMatchingRequest(BaseModel): """ FunctionMatchingRequest """ # noqa: E501 - model_id: StrictInt = Field(description="ID of the model used for function matching, used to determine the embedding model") - function_ids: List[StrictInt] = Field(description="ID's of functions to find matches for, must be at least one function ID") - min_similarity: Optional[Union[Annotated[float, Field(le=100.0, strict=True, ge=0.0)], Annotated[int, Field(le=100, strict=True, ge=0)]]] = Field(default=90.0, description="Minimum similarity expected for a match as a percentage, default is 90") filters: Optional[FunctionMatchingFilters] = None - results_per_function: Optional[Annotated[int, Field(le=50, strict=True, ge=1)]] = Field(default=1, description="Maximum number of matches to return per function, default is 1, max is 50") + function_ids: List[StrictInt] = Field(description="ID's of functions to find matches for, must be at least one function ID") + min_similarity: Optional[Union[Annotated[float, Field(le=100, strict=True, ge=0)], Annotated[int, Field(le=100, strict=True, ge=0)]]] = Field(default=90, description="Minimum similarity expected for a match as a percentage, default is 90") + model_id: StrictInt = Field(description="ID of the model used for function matching, used to determine the embedding model") + no_cache: Optional[StrictBool] = Field(default=False, description="If set to true, forces the system to bypass any cached results and perform a fresh computation") page: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=1, description="Page number for paginated results, default is 1 (first page)") page_size: Optional[Annotated[int, Field(le=1000, strict=True, ge=0)]] = Field(default=0, description="Number of functions to return per page, default is 0 (all functions), max is 1000") + results_per_function: Optional[Annotated[int, Field(le=50, strict=True, ge=1)]] = Field(default=1, description="Maximum number of matches to return per function, default is 1, max is 50") status_only: Optional[StrictBool] = Field(default=False, description="If set to true, only returns the status of the matching operation without the actual results") - no_cache: Optional[StrictBool] = Field(default=False, description="If set to true, forces the system to bypass any cached results and perform a fresh computation") use_canonical_names: Optional[StrictBool] = Field(default=False, description="Whether to use canonical function names during function matching for confidence results, default is False") - __properties: ClassVar[List[str]] = ["model_id", "function_ids", "min_similarity", "filters", "results_per_function", "page", "page_size", "status_only", "no_cache", "use_canonical_names"] + __properties: ClassVar[List[str]] = ["filters", "function_ids", "min_similarity", "model_id", "no_cache", "page", "page_size", "results_per_function", "status_only", "use_canonical_names"] model_config = ConfigDict( populate_by_name=True, @@ -98,15 +98,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "model_id": obj.get("model_id"), - "function_ids": obj.get("function_ids"), - "min_similarity": obj.get("min_similarity") if obj.get("min_similarity") is not None else 90.0, "filters": FunctionMatchingFilters.from_dict(obj["filters"]) if obj.get("filters") is not None else None, - "results_per_function": obj.get("results_per_function") if obj.get("results_per_function") is not None else 1, + "function_ids": obj.get("function_ids"), + "min_similarity": obj.get("min_similarity") if obj.get("min_similarity") is not None else 90, + "model_id": obj.get("model_id"), + "no_cache": obj.get("no_cache") if obj.get("no_cache") is not None else False, "page": obj.get("page") if obj.get("page") is not None else 1, "page_size": obj.get("page_size") if obj.get("page_size") is not None else 0, + "results_per_function": obj.get("results_per_function") if obj.get("results_per_function") is not None else 1, "status_only": obj.get("status_only") if obj.get("status_only") is not None else False, - "no_cache": obj.get("no_cache") if obj.get("no_cache") is not None else False, "use_canonical_names": obj.get("use_canonical_names") if obj.get("use_canonical_names") is not None else False }) return _obj diff --git a/revengai/models/function_matching_response.py b/revengai/models/function_matching_response.py index de3cf32..3283ad7 100644 --- a/revengai/models/function_matching_response.py +++ b/revengai/models/function_matching_response.py @@ -26,17 +26,17 @@ class FunctionMatchingResponse(BaseModel): """ FunctionMatchingResponse """ # noqa: E501 - progress: Optional[StrictInt] = Field(default=0, description="Progress of the matching operation, represented as a percentage") - status: Optional[StrictStr] = None - total_time: Optional[StrictInt] = None - error_message: Optional[StrictStr] = None current_page: Optional[StrictInt] = None - total_pages: Optional[StrictInt] = None + error_message: Optional[StrictStr] = None matches: Optional[List[FunctionMatch]] = None - num_matches: Optional[StrictInt] = None num_debug_matches: Optional[StrictInt] = None + num_matches: Optional[StrictInt] = None + progress: Optional[StrictInt] = Field(default=0, description="Progress of the matching operation, represented as a percentage") + status: Optional[StrictStr] = None + total_pages: Optional[StrictInt] = None + total_time: Optional[StrictInt] = None updated_at: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["progress", "status", "total_time", "error_message", "current_page", "total_pages", "matches", "num_matches", "num_debug_matches", "updated_at"] + __properties: ClassVar[List[str]] = ["current_page", "error_message", "matches", "num_debug_matches", "num_matches", "progress", "status", "total_pages", "total_time", "updated_at"] model_config = ConfigDict( populate_by_name=True, @@ -84,45 +84,45 @@ def to_dict(self) -> Dict[str, Any]: if _item_matches: _items.append(_item_matches.to_dict()) _dict['matches'] = _items - # set to None if status (nullable) is None - # and model_fields_set contains the field - if self.status is None and "status" in self.model_fields_set: - _dict['status'] = None - - # set to None if total_time (nullable) is None - # and model_fields_set contains the field - if self.total_time is None and "total_time" in self.model_fields_set: - _dict['total_time'] = None - - # set to None if error_message (nullable) is None - # and model_fields_set contains the field - if self.error_message is None and "error_message" in self.model_fields_set: - _dict['error_message'] = None - # set to None if current_page (nullable) is None # and model_fields_set contains the field if self.current_page is None and "current_page" in self.model_fields_set: _dict['current_page'] = None - # set to None if total_pages (nullable) is None + # set to None if error_message (nullable) is None # and model_fields_set contains the field - if self.total_pages is None and "total_pages" in self.model_fields_set: - _dict['total_pages'] = None + if self.error_message is None and "error_message" in self.model_fields_set: + _dict['error_message'] = None # set to None if matches (nullable) is None # and model_fields_set contains the field if self.matches is None and "matches" in self.model_fields_set: _dict['matches'] = None + # set to None if num_debug_matches (nullable) is None + # and model_fields_set contains the field + if self.num_debug_matches is None and "num_debug_matches" in self.model_fields_set: + _dict['num_debug_matches'] = None + # set to None if num_matches (nullable) is None # and model_fields_set contains the field if self.num_matches is None and "num_matches" in self.model_fields_set: _dict['num_matches'] = None - # set to None if num_debug_matches (nullable) is None + # set to None if status (nullable) is None # and model_fields_set contains the field - if self.num_debug_matches is None and "num_debug_matches" in self.model_fields_set: - _dict['num_debug_matches'] = None + if self.status is None and "status" in self.model_fields_set: + _dict['status'] = None + + # set to None if total_pages (nullable) is None + # and model_fields_set contains the field + if self.total_pages is None and "total_pages" in self.model_fields_set: + _dict['total_pages'] = None + + # set to None if total_time (nullable) is None + # and model_fields_set contains the field + if self.total_time is None and "total_time" in self.model_fields_set: + _dict['total_time'] = None # set to None if updated_at (nullable) is None # and model_fields_set contains the field @@ -141,15 +141,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "progress": obj.get("progress") if obj.get("progress") is not None else 0, - "status": obj.get("status"), - "total_time": obj.get("total_time"), - "error_message": obj.get("error_message"), "current_page": obj.get("current_page"), - "total_pages": obj.get("total_pages"), + "error_message": obj.get("error_message"), "matches": [FunctionMatch.from_dict(_item) for _item in obj["matches"]] if obj.get("matches") is not None else None, - "num_matches": obj.get("num_matches"), "num_debug_matches": obj.get("num_debug_matches"), + "num_matches": obj.get("num_matches"), + "progress": obj.get("progress") if obj.get("progress") is not None else 0, + "status": obj.get("status"), + "total_pages": obj.get("total_pages"), + "total_time": obj.get("total_time"), "updated_at": obj.get("updated_at") }) return _obj diff --git a/revengai/models/function_name_history.py b/revengai/models/function_name_history.py index e8d2ae6..e26c67c 100644 --- a/revengai/models/function_name_history.py +++ b/revengai/models/function_name_history.py @@ -26,14 +26,14 @@ class FunctionNameHistory(BaseModel): """ FunctionNameHistory """ # noqa: E501 - history_id: StrictInt = Field(description="The ID of the history record") change_made_by: StrictStr = Field(description="The user who made the change") + created_at: StrictStr = Field(description="The timestamp when the function name was created") function_name: StrictStr = Field(description="The name of the function") - mangled_name: StrictStr = Field(description="The mangled name of the function") + history_id: StrictInt = Field(description="The ID of the history record") is_debug: StrictBool = Field(description="Whether the function is debugged") + mangled_name: StrictStr = Field(description="The mangled name of the function") source_type: FunctionSourceType = Field(description="The source type of the function") - created_at: StrictStr = Field(description="The timestamp when the function name was created") - __properties: ClassVar[List[str]] = ["history_id", "change_made_by", "function_name", "mangled_name", "is_debug", "source_type", "created_at"] + __properties: ClassVar[List[str]] = ["change_made_by", "created_at", "function_name", "history_id", "is_debug", "mangled_name", "source_type"] model_config = ConfigDict( populate_by_name=True, @@ -86,13 +86,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "history_id": obj.get("history_id"), "change_made_by": obj.get("change_made_by"), + "created_at": obj.get("created_at"), "function_name": obj.get("function_name"), - "mangled_name": obj.get("mangled_name"), + "history_id": obj.get("history_id"), "is_debug": obj.get("is_debug"), - "source_type": obj.get("source_type"), - "created_at": obj.get("created_at") + "mangled_name": obj.get("mangled_name"), + "source_type": obj.get("source_type") }) return _obj diff --git a/revengai/models/function_param_response.py b/revengai/models/function_param_response.py index a3ae7f5..78289f5 100644 --- a/revengai/models/function_param_response.py +++ b/revengai/models/function_param_response.py @@ -25,12 +25,12 @@ class FunctionParamResponse(BaseModel): """ FunctionParamResponse """ # noqa: E501 - d_type: StrictStr - loc: StrictStr addr: StrictStr + d_type: StrictStr length: StrictInt + loc: StrictStr name: StrictStr - __properties: ClassVar[List[str]] = ["d_type", "loc", "addr", "length", "name"] + __properties: ClassVar[List[str]] = ["addr", "d_type", "length", "loc", "name"] model_config = ConfigDict( populate_by_name=True, @@ -83,10 +83,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "d_type": obj.get("d_type"), - "loc": obj.get("loc"), "addr": obj.get("addr"), + "d_type": obj.get("d_type"), "length": obj.get("length"), + "loc": obj.get("loc"), "name": obj.get("name") }) return _obj diff --git a/revengai/models/function_rename.py b/revengai/models/function_rename.py index e90cd21..3289413 100644 --- a/revengai/models/function_rename.py +++ b/revengai/models/function_rename.py @@ -25,9 +25,9 @@ class FunctionRename(BaseModel): """ FunctionRename """ # noqa: E501 - new_name: StrictStr = Field(description="The new name for the function") new_mangled_name: StrictStr = Field(description="The new mangled name for the function") - __properties: ClassVar[List[str]] = ["new_name", "new_mangled_name"] + new_name: StrictStr = Field(description="The new name for the function") + __properties: ClassVar[List[str]] = ["new_mangled_name", "new_name"] model_config = ConfigDict( populate_by_name=True, @@ -80,8 +80,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "new_name": obj.get("new_name"), - "new_mangled_name": obj.get("new_mangled_name") + "new_mangled_name": obj.get("new_mangled_name"), + "new_name": obj.get("new_name") }) return _obj diff --git a/revengai/models/function_rename_map.py b/revengai/models/function_rename_map.py index 17bc4ec..968dc61 100644 --- a/revengai/models/function_rename_map.py +++ b/revengai/models/function_rename_map.py @@ -26,9 +26,9 @@ class FunctionRenameMap(BaseModel): FunctionRenameMap """ # noqa: E501 function_id: StrictInt = Field(description="The ID of the function to rename") - new_name: StrictStr = Field(description="The new name for the function") new_mangled_name: StrictStr = Field(description="The new mangled name for the function") - __properties: ClassVar[List[str]] = ["function_id", "new_name", "new_mangled_name"] + new_name: StrictStr = Field(description="The new name for the function") + __properties: ClassVar[List[str]] = ["function_id", "new_mangled_name", "new_name"] model_config = ConfigDict( populate_by_name=True, @@ -82,8 +82,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "function_id": obj.get("function_id"), - "new_name": obj.get("new_name"), - "new_mangled_name": obj.get("new_mangled_name") + "new_mangled_name": obj.get("new_mangled_name"), + "new_name": obj.get("new_name") }) return _obj diff --git a/revengai/models/function_search_result.py b/revengai/models/function_search_result.py index 154b18d..d3a74e5 100644 --- a/revengai/models/function_search_result.py +++ b/revengai/models/function_search_result.py @@ -26,14 +26,14 @@ class FunctionSearchResult(BaseModel): """ FunctionSearchResult """ # noqa: E501 - function_id: StrictInt = Field(description="The function ID") - function_name: StrictStr = Field(description="The name of the function") binary_name: StrictStr = Field(description="The name of the binary the function belongs to") created_at: datetime = Field(description="The creation date of the function") + function_id: StrictInt = Field(description="The function ID") + function_name: StrictStr = Field(description="The name of the function") model_id: StrictInt = Field(description="The model ID used to analyze the binary the function belongs to") model_name: StrictStr = Field(description="The name of the model used to analyze the binary the function belongs to") owned_by: StrictStr = Field(description="The owner of the binary the function belongs to") - __properties: ClassVar[List[str]] = ["function_id", "function_name", "binary_name", "created_at", "model_id", "model_name", "owned_by"] + __properties: ClassVar[List[str]] = ["binary_name", "created_at", "function_id", "function_name", "model_id", "model_name", "owned_by"] model_config = ConfigDict( populate_by_name=True, @@ -86,10 +86,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "function_id": obj.get("function_id"), - "function_name": obj.get("function_name"), "binary_name": obj.get("binary_name"), "created_at": obj.get("created_at"), + "function_id": obj.get("function_id"), + "function_name": obj.get("function_name"), "model_id": obj.get("model_id"), "model_name": obj.get("model_name"), "owned_by": obj.get("owned_by") diff --git a/revengai/models/function_string.py b/revengai/models/function_string.py index 0bbfe00..f83169d 100644 --- a/revengai/models/function_string.py +++ b/revengai/models/function_string.py @@ -17,7 +17,8 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional +from revengai.models.string_source import StringSource from typing import Optional, Set from typing_extensions import Self @@ -25,9 +26,10 @@ class FunctionString(BaseModel): """ FunctionString """ # noqa: E501 - value: StrictStr = Field(description="The value of the string literal") + source: Optional[StringSource] = Field(default=None, description="The source of the string") vaddr: StrictInt = Field(description="The vaddr of the string value") - __properties: ClassVar[List[str]] = ["value", "vaddr"] + value: StrictStr = Field(description="The value of the string literal") + __properties: ClassVar[List[str]] = ["source", "vaddr", "value"] model_config = ConfigDict( populate_by_name=True, @@ -80,8 +82,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "value": obj.get("value"), - "vaddr": obj.get("vaddr") + "source": obj.get("source"), + "vaddr": obj.get("vaddr"), + "value": obj.get("value") }) return _obj diff --git a/revengai/models/function_task_response.py b/revengai/models/function_task_response.py index 25249e4..782f04a 100644 --- a/revengai/models/function_task_response.py +++ b/revengai/models/function_task_response.py @@ -26,9 +26,9 @@ class FunctionTaskResponse(BaseModel): """ FunctionTaskResponse """ # noqa: E501 - status: Optional[FunctionTaskStatus] = None error_message: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["status", "error_message"] + status: Optional[FunctionTaskStatus] = None + __properties: ClassVar[List[str]] = ["error_message", "status"] model_config = ConfigDict( populate_by_name=True, @@ -86,8 +86,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status"), - "error_message": obj.get("error_message") + "error_message": obj.get("error_message"), + "status": obj.get("status") }) return _obj diff --git a/revengai/models/function_type_input.py b/revengai/models/function_type_input.py index c09a4c8..a84cc2a 100644 --- a/revengai/models/function_type_input.py +++ b/revengai/models/function_type_input.py @@ -27,15 +27,15 @@ class FunctionTypeInput(BaseModel): """ FunctionTypeInput """ # noqa: E501 - last_change: Optional[StrictStr] = None addr: StrictInt = Field(description="Memory address of the function") - size: StrictInt = Field(description="Size of the function in bytes") + artifact_type: Optional[StrictStr] = Field(default='Function', description="Type of artifact that the structure is associated with") header: FunctionHeader = Field(description="Function header information") - stack_vars: Optional[Dict[str, StackVariable]] = None + last_change: Optional[StrictStr] = None name: StrictStr = Field(description="Name of the function") + size: StrictInt = Field(description="Size of the function in bytes") + stack_vars: Optional[Dict[str, StackVariable]] = None type: StrictStr = Field(description="Return type of the function") - artifact_type: Optional[StrictStr] = Field(default='Function', description="Type of artifact that the structure is associated with") - __properties: ClassVar[List[str]] = ["last_change", "addr", "size", "header", "stack_vars", "name", "type", "artifact_type"] + __properties: ClassVar[List[str]] = ["addr", "artifact_type", "header", "last_change", "name", "size", "stack_vars", "type"] model_config = ConfigDict( populate_by_name=True, @@ -108,19 +108,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "last_change": obj.get("last_change"), "addr": obj.get("addr"), - "size": obj.get("size"), + "artifact_type": obj.get("artifact_type") if obj.get("artifact_type") is not None else 'Function', "header": FunctionHeader.from_dict(obj["header"]) if obj.get("header") is not None else None, + "last_change": obj.get("last_change"), + "name": obj.get("name"), + "size": obj.get("size"), "stack_vars": dict( (_k, StackVariable.from_dict(_v)) for _k, _v in obj["stack_vars"].items() ) if obj.get("stack_vars") is not None else None, - "name": obj.get("name"), - "type": obj.get("type"), - "artifact_type": obj.get("artifact_type") if obj.get("artifact_type") is not None else 'Function' + "type": obj.get("type") }) return _obj diff --git a/revengai/models/function_type_output.py b/revengai/models/function_type_output.py index f32cc35..8edc7cc 100644 --- a/revengai/models/function_type_output.py +++ b/revengai/models/function_type_output.py @@ -27,15 +27,15 @@ class FunctionTypeOutput(BaseModel): """ FunctionTypeOutput """ # noqa: E501 - last_change: Optional[StrictStr] = None addr: StrictInt = Field(description="Memory address of the function") - size: StrictInt = Field(description="Size of the function in bytes") + artifact_type: Optional[StrictStr] = Field(default='Function', description="Type of artifact that the structure is associated with") header: FunctionHeader = Field(description="Function header information") - stack_vars: Optional[Dict[str, StackVariable]] = None + last_change: Optional[StrictStr] = None name: StrictStr = Field(description="Name of the function") + size: StrictInt = Field(description="Size of the function in bytes") + stack_vars: Optional[Dict[str, StackVariable]] = None type: StrictStr = Field(description="Return type of the function") - artifact_type: Optional[StrictStr] = Field(default='Function', description="Type of artifact that the structure is associated with") - __properties: ClassVar[List[str]] = ["last_change", "addr", "size", "header", "stack_vars", "name", "type", "artifact_type"] + __properties: ClassVar[List[str]] = ["addr", "artifact_type", "header", "last_change", "name", "size", "stack_vars", "type"] model_config = ConfigDict( populate_by_name=True, @@ -108,19 +108,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "last_change": obj.get("last_change"), "addr": obj.get("addr"), - "size": obj.get("size"), + "artifact_type": obj.get("artifact_type") if obj.get("artifact_type") is not None else 'Function', "header": FunctionHeader.from_dict(obj["header"]) if obj.get("header") is not None else None, + "last_change": obj.get("last_change"), + "name": obj.get("name"), + "size": obj.get("size"), "stack_vars": dict( (_k, StackVariable.from_dict(_v)) for _k, _v in obj["stack_vars"].items() ) if obj.get("stack_vars") is not None else None, - "name": obj.get("name"), - "type": obj.get("type"), - "artifact_type": obj.get("artifact_type") if obj.get("artifact_type") is not None else 'Function' + "type": obj.get("type") }) return _obj diff --git a/revengai/models/functions_detail_response.py b/revengai/models/functions_detail_response.py index 375b0d4..e892778 100644 --- a/revengai/models/functions_detail_response.py +++ b/revengai/models/functions_detail_response.py @@ -25,20 +25,20 @@ class FunctionsDetailResponse(BaseModel): """ FunctionsDetailResponse """ # noqa: E501 - function_id: StrictInt = Field(description="Function id") - function_name: StrictStr - function_name_mangled: StrictStr - function_vaddr: StrictInt - function_size: StrictInt analysis_id: StrictInt binary_id: StrictInt binary_name: StrictStr - sha_256_hash: StrictStr - debug_hash: Optional[StrictStr] debug: StrictBool - embedding_3d: Optional[List[Union[StrictFloat, StrictInt]]] = None + debug_hash: Optional[StrictStr] embedding_1d: Optional[List[Union[StrictFloat, StrictInt]]] = None - __properties: ClassVar[List[str]] = ["function_id", "function_name", "function_name_mangled", "function_vaddr", "function_size", "analysis_id", "binary_id", "binary_name", "sha_256_hash", "debug_hash", "debug", "embedding_3d", "embedding_1d"] + embedding_3d: Optional[List[Union[StrictFloat, StrictInt]]] = None + function_id: StrictInt = Field(description="Function id") + function_name: StrictStr + function_name_mangled: StrictStr + function_size: StrictInt + function_vaddr: StrictInt + sha_256_hash: StrictStr + __properties: ClassVar[List[str]] = ["analysis_id", "binary_id", "binary_name", "debug", "debug_hash", "embedding_1d", "embedding_3d", "function_id", "function_name", "function_name_mangled", "function_size", "function_vaddr", "sha_256_hash"] model_config = ConfigDict( populate_by_name=True, @@ -84,16 +84,16 @@ def to_dict(self) -> Dict[str, Any]: if self.debug_hash is None and "debug_hash" in self.model_fields_set: _dict['debug_hash'] = None - # set to None if embedding_3d (nullable) is None - # and model_fields_set contains the field - if self.embedding_3d is None and "embedding_3d" in self.model_fields_set: - _dict['embedding_3d'] = None - # set to None if embedding_1d (nullable) is None # and model_fields_set contains the field if self.embedding_1d is None and "embedding_1d" in self.model_fields_set: _dict['embedding_1d'] = None + # set to None if embedding_3d (nullable) is None + # and model_fields_set contains the field + if self.embedding_3d is None and "embedding_3d" in self.model_fields_set: + _dict['embedding_3d'] = None + return _dict @classmethod @@ -106,19 +106,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "function_id": obj.get("function_id"), - "function_name": obj.get("function_name"), - "function_name_mangled": obj.get("function_name_mangled"), - "function_vaddr": obj.get("function_vaddr"), - "function_size": obj.get("function_size"), "analysis_id": obj.get("analysis_id"), "binary_id": obj.get("binary_id"), "binary_name": obj.get("binary_name"), - "sha_256_hash": obj.get("sha_256_hash"), - "debug_hash": obj.get("debug_hash"), "debug": obj.get("debug"), + "debug_hash": obj.get("debug_hash"), + "embedding_1d": obj.get("embedding_1d"), "embedding_3d": obj.get("embedding_3d"), - "embedding_1d": obj.get("embedding_1d") + "function_id": obj.get("function_id"), + "function_name": obj.get("function_name"), + "function_name_mangled": obj.get("function_name_mangled"), + "function_size": obj.get("function_size"), + "function_vaddr": obj.get("function_vaddr"), + "sha_256_hash": obj.get("sha_256_hash") }) return _obj diff --git a/revengai/models/generate_function_data_types.py b/revengai/models/generate_function_data_types.py index 1beb0c6..2270bec 100644 --- a/revengai/models/generate_function_data_types.py +++ b/revengai/models/generate_function_data_types.py @@ -26,10 +26,10 @@ class GenerateFunctionDataTypes(BaseModel): """ GenerateFunctionDataTypes """ # noqa: E501 + data_types_list: GenerationStatusList = Field(description="List of function data types information that are either already generated, or now queued for generation") queued: StrictBool = Field(description="[DEPRECATED] This value has been replaced with the `data_types_list` field") reference: StrictStr = Field(description="[DEPRECATED] This value has been replaced with the `data_types_list` field") - data_types_list: GenerationStatusList = Field(description="List of function data types information that are either already generated, or now queued for generation") - __properties: ClassVar[List[str]] = ["queued", "reference", "data_types_list"] + __properties: ClassVar[List[str]] = ["data_types_list", "queued", "reference"] model_config = ConfigDict( populate_by_name=True, @@ -85,9 +85,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "data_types_list": GenerationStatusList.from_dict(obj["data_types_list"]) if obj.get("data_types_list") is not None else None, "queued": obj.get("queued"), - "reference": obj.get("reference"), - "data_types_list": GenerationStatusList.from_dict(obj["data_types_list"]) if obj.get("data_types_list") is not None else None + "reference": obj.get("reference") }) return _obj diff --git a/revengai/models/generation_status_list.py b/revengai/models/generation_status_list.py index ecad74d..c437e70 100644 --- a/revengai/models/generation_status_list.py +++ b/revengai/models/generation_status_list.py @@ -26,10 +26,10 @@ class GenerationStatusList(BaseModel): """ GenerationStatusList """ # noqa: E501 + items: List[FunctionDataTypesStatus] = Field(description="List of function data types information") total_count: Optional[StrictInt] = Field(default=0, description="Total number of functions in analysis") total_data_types_count: Optional[StrictInt] = Field(default=0, description="Total number of functions with data types") - items: List[FunctionDataTypesStatus] = Field(description="List of function data types information") - __properties: ClassVar[List[str]] = ["total_count", "total_data_types_count", "items"] + __properties: ClassVar[List[str]] = ["items", "total_count", "total_data_types_count"] model_config = ConfigDict( populate_by_name=True, @@ -89,9 +89,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "items": [FunctionDataTypesStatus.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, "total_count": obj.get("total_count") if obj.get("total_count") is not None else 0, - "total_data_types_count": obj.get("total_data_types_count") if obj.get("total_data_types_count") is not None else 0, - "items": [FunctionDataTypesStatus.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None + "total_data_types_count": obj.get("total_data_types_count") if obj.get("total_data_types_count") is not None else 0 }) return _obj diff --git a/revengai/models/get_ai_decompilation_task.py b/revengai/models/get_ai_decompilation_task.py index 9dba954..b84ee01 100644 --- a/revengai/models/get_ai_decompilation_task.py +++ b/revengai/models/get_ai_decompilation_task.py @@ -28,16 +28,16 @@ class GetAiDecompilationTask(BaseModel): """ GetAiDecompilationTask """ # noqa: E501 - status: AiDecompilationTaskStatus = Field(description="The status of the AI decompilation task") + ai_summary: Optional[StrictStr] = None decompilation: Optional[StrictStr] - raw_decompilation: Optional[StrictStr] function_mapping: Optional[Dict[str, InverseFunctionMapItem]] function_mapping_full: Optional[FunctionMappingFull] - summary: Optional[StrictStr] = None - ai_summary: Optional[StrictStr] = None - raw_ai_summary: Optional[StrictStr] = None predicted_function_name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["status", "decompilation", "raw_decompilation", "function_mapping", "function_mapping_full", "summary", "ai_summary", "raw_ai_summary", "predicted_function_name"] + raw_ai_summary: Optional[StrictStr] = None + raw_decompilation: Optional[StrictStr] + status: AiDecompilationTaskStatus = Field(description="The status of the AI decompilation task") + summary: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["ai_summary", "decompilation", "function_mapping", "function_mapping_full", "predicted_function_name", "raw_ai_summary", "raw_decompilation", "status", "summary"] model_config = ConfigDict( populate_by_name=True, @@ -88,16 +88,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of function_mapping_full if self.function_mapping_full: _dict['function_mapping_full'] = self.function_mapping_full.to_dict() + # set to None if ai_summary (nullable) is None + # and model_fields_set contains the field + if self.ai_summary is None and "ai_summary" in self.model_fields_set: + _dict['ai_summary'] = None + # set to None if decompilation (nullable) is None # and model_fields_set contains the field if self.decompilation is None and "decompilation" in self.model_fields_set: _dict['decompilation'] = None - # set to None if raw_decompilation (nullable) is None - # and model_fields_set contains the field - if self.raw_decompilation is None and "raw_decompilation" in self.model_fields_set: - _dict['raw_decompilation'] = None - # set to None if function_mapping (nullable) is None # and model_fields_set contains the field if self.function_mapping is None and "function_mapping" in self.model_fields_set: @@ -108,25 +108,25 @@ def to_dict(self) -> Dict[str, Any]: if self.function_mapping_full is None and "function_mapping_full" in self.model_fields_set: _dict['function_mapping_full'] = None - # set to None if summary (nullable) is None - # and model_fields_set contains the field - if self.summary is None and "summary" in self.model_fields_set: - _dict['summary'] = None - - # set to None if ai_summary (nullable) is None + # set to None if predicted_function_name (nullable) is None # and model_fields_set contains the field - if self.ai_summary is None and "ai_summary" in self.model_fields_set: - _dict['ai_summary'] = None + if self.predicted_function_name is None and "predicted_function_name" in self.model_fields_set: + _dict['predicted_function_name'] = None # set to None if raw_ai_summary (nullable) is None # and model_fields_set contains the field if self.raw_ai_summary is None and "raw_ai_summary" in self.model_fields_set: _dict['raw_ai_summary'] = None - # set to None if predicted_function_name (nullable) is None + # set to None if raw_decompilation (nullable) is None # and model_fields_set contains the field - if self.predicted_function_name is None and "predicted_function_name" in self.model_fields_set: - _dict['predicted_function_name'] = None + if self.raw_decompilation is None and "raw_decompilation" in self.model_fields_set: + _dict['raw_decompilation'] = None + + # set to None if summary (nullable) is None + # and model_fields_set contains the field + if self.summary is None and "summary" in self.model_fields_set: + _dict['summary'] = None return _dict @@ -140,9 +140,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status"), + "ai_summary": obj.get("ai_summary"), "decompilation": obj.get("decompilation"), - "raw_decompilation": obj.get("raw_decompilation"), "function_mapping": dict( (_k, InverseFunctionMapItem.from_dict(_v)) for _k, _v in obj["function_mapping"].items() @@ -150,10 +149,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("function_mapping") is not None else None, "function_mapping_full": FunctionMappingFull.from_dict(obj["function_mapping_full"]) if obj.get("function_mapping_full") is not None else None, - "summary": obj.get("summary"), - "ai_summary": obj.get("ai_summary"), + "predicted_function_name": obj.get("predicted_function_name"), "raw_ai_summary": obj.get("raw_ai_summary"), - "predicted_function_name": obj.get("predicted_function_name") + "raw_decompilation": obj.get("raw_decompilation"), + "status": obj.get("status"), + "summary": obj.get("summary") }) return _obj diff --git a/revengai/models/get_me_response.py b/revengai/models/get_me_response.py index 2f191f9..1b5c37d 100644 --- a/revengai/models/get_me_response.py +++ b/revengai/models/get_me_response.py @@ -26,15 +26,15 @@ class GetMeResponse(BaseModel): """ GetMeResponse """ # noqa: E501 - username: StrictStr - user_id: StrictInt + creation: datetime + email: StrictStr first_name: StrictStr last_name: StrictStr - email: StrictStr - creation: datetime - tutorial_seen: StrictBool role: StrictStr - __properties: ClassVar[List[str]] = ["username", "user_id", "first_name", "last_name", "email", "creation", "tutorial_seen", "role"] + tutorial_seen: StrictBool + user_id: StrictInt + username: StrictStr + __properties: ClassVar[List[str]] = ["creation", "email", "first_name", "last_name", "role", "tutorial_seen", "user_id", "username"] @field_validator('role') def role_validate_enum(cls, value): @@ -94,14 +94,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "username": obj.get("username"), - "user_id": obj.get("user_id"), + "creation": obj.get("creation"), + "email": obj.get("email"), "first_name": obj.get("first_name"), "last_name": obj.get("last_name"), - "email": obj.get("email"), - "creation": obj.get("creation"), + "role": obj.get("role"), "tutorial_seen": obj.get("tutorial_seen"), - "role": obj.get("role") + "user_id": obj.get("user_id"), + "username": obj.get("username") }) return _obj diff --git a/revengai/models/get_public_user_response.py b/revengai/models/get_public_user_response.py index 4c9e688..7935925 100644 --- a/revengai/models/get_public_user_response.py +++ b/revengai/models/get_public_user_response.py @@ -25,9 +25,9 @@ class GetPublicUserResponse(BaseModel): """ GetPublicUserResponse """ # noqa: E501 - username: StrictStr user_id: StrictInt - __properties: ClassVar[List[str]] = ["username", "user_id"] + username: StrictStr + __properties: ClassVar[List[str]] = ["user_id", "username"] model_config = ConfigDict( populate_by_name=True, @@ -80,8 +80,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "username": obj.get("username"), - "user_id": obj.get("user_id") + "user_id": obj.get("user_id"), + "username": obj.get("username") }) return _obj diff --git a/revengai/models/global_variable.py b/revengai/models/global_variable.py index 136d3d7..23c88d7 100644 --- a/revengai/models/global_variable.py +++ b/revengai/models/global_variable.py @@ -25,13 +25,13 @@ class GlobalVariable(BaseModel): """ GlobalVariable """ # noqa: E501 - last_change: Optional[StrictStr] = None addr: StrictInt = Field(description="Memory address of the global variable") + artifact_type: Optional[StrictStr] = Field(default=None, description="Type of artifact that the global variable is associated with") + last_change: Optional[StrictStr] = None name: StrictStr = Field(description="Name of the global variable") - type: StrictStr = Field(description="Data type of the global variable") size: StrictInt = Field(description="Size of the global variable in bytes") - artifact_type: Optional[StrictStr] = Field(default=None, description="Type of artifact that the global variable is associated with") - __properties: ClassVar[List[str]] = ["last_change", "addr", "name", "type", "size", "artifact_type"] + type: StrictStr = Field(description="Data type of the global variable") + __properties: ClassVar[List[str]] = ["addr", "artifact_type", "last_change", "name", "size", "type"] model_config = ConfigDict( populate_by_name=True, @@ -89,12 +89,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "last_change": obj.get("last_change"), "addr": obj.get("addr"), + "artifact_type": obj.get("artifact_type"), + "last_change": obj.get("last_change"), "name": obj.get("name"), - "type": obj.get("type"), "size": obj.get("size"), - "artifact_type": obj.get("artifact_type") + "type": obj.get("type") }) return _obj diff --git a/revengai/models/import_model.py b/revengai/models/import_model.py index bf4c061..74bc792 100644 --- a/revengai/models/import_model.py +++ b/revengai/models/import_model.py @@ -25,9 +25,9 @@ class ImportModel(BaseModel): """ ImportModel """ # noqa: E501 - number_of_imports: StrictInt imports: List[Dict[str, Dict[str, StrictInt]]] - __properties: ClassVar[List[str]] = ["number_of_imports", "imports"] + number_of_imports: StrictInt + __properties: ClassVar[List[str]] = ["imports", "number_of_imports"] model_config = ConfigDict( populate_by_name=True, @@ -80,8 +80,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "number_of_imports": obj.get("number_of_imports"), - "imports": obj.get("imports") + "imports": obj.get("imports"), + "number_of_imports": obj.get("number_of_imports") }) return _obj diff --git a/revengai/models/inverse_function_map_item.py b/revengai/models/inverse_function_map_item.py index 0d044c2..c0ef9a2 100644 --- a/revengai/models/inverse_function_map_item.py +++ b/revengai/models/inverse_function_map_item.py @@ -26,10 +26,10 @@ class InverseFunctionMapItem(BaseModel): """ InverseFunctionMapItem """ # noqa: E501 - name: StrictStr addr: Optional[Addr] is_external: Optional[StrictBool] = False - __properties: ClassVar[List[str]] = ["name", "addr", "is_external"] + name: StrictStr + __properties: ClassVar[List[str]] = ["addr", "is_external", "name"] model_config = ConfigDict( populate_by_name=True, @@ -90,9 +90,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "addr": Addr.from_dict(obj["addr"]) if obj.get("addr") is not None else None, - "is_external": obj.get("is_external") if obj.get("is_external") is not None else False + "is_external": obj.get("is_external") if obj.get("is_external") is not None else False, + "name": obj.get("name") }) return _obj diff --git a/revengai/models/inverse_string_map_item.py b/revengai/models/inverse_string_map_item.py index daabc4b..18f3081 100644 --- a/revengai/models/inverse_string_map_item.py +++ b/revengai/models/inverse_string_map_item.py @@ -25,9 +25,9 @@ class InverseStringMapItem(BaseModel): """ InverseStringMapItem """ # noqa: E501 - string: StrictStr addr: Optional[StrictInt] - __properties: ClassVar[List[str]] = ["string", "addr"] + string: StrictStr + __properties: ClassVar[List[str]] = ["addr", "string"] model_config = ConfigDict( populate_by_name=True, @@ -85,8 +85,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "string": obj.get("string"), - "addr": obj.get("addr") + "addr": obj.get("addr"), + "string": obj.get("string") }) return _obj diff --git a/revengai/models/login_request.py b/revengai/models/login_request.py index fb9b9ea..e9ea21e 100644 --- a/revengai/models/login_request.py +++ b/revengai/models/login_request.py @@ -26,9 +26,9 @@ class LoginRequest(BaseModel): """ LoginRequest """ # noqa: E501 - username: Annotated[str, Field(min_length=1, strict=True, max_length=255)] = Field(description="User's username or email") password: Annotated[str, Field(min_length=10, strict=True)] = Field(description="User's password") - __properties: ClassVar[List[str]] = ["username", "password"] + username: Annotated[str, Field(min_length=1, strict=True, max_length=255)] = Field(description="User's username or email") + __properties: ClassVar[List[str]] = ["password", "username"] model_config = ConfigDict( populate_by_name=True, @@ -81,8 +81,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "username": obj.get("username"), - "password": obj.get("password") + "password": obj.get("password"), + "username": obj.get("username") }) return _obj diff --git a/revengai/models/matched_function.py b/revengai/models/matched_function.py index 4e4bb06..70e73c4 100644 --- a/revengai/models/matched_function.py +++ b/revengai/models/matched_function.py @@ -25,18 +25,18 @@ class MatchedFunction(BaseModel): """ MatchedFunction """ # noqa: E501 - function_id: StrictInt = Field(description="Unique identifier of the matched function") + analysis_id: StrictInt binary_id: StrictInt + binary_name: StrictStr + confidence: Optional[Union[StrictFloat, StrictInt]] = None + debug: StrictBool + function_id: StrictInt = Field(description="Unique identifier of the matched function") function_name: StrictStr function_vaddr: StrictInt mangled_name: StrictStr - debug: StrictBool - binary_name: StrictStr sha_256_hash: StrictStr - analysis_id: StrictInt similarity: Optional[Union[StrictFloat, StrictInt]] = None - confidence: Optional[Union[StrictFloat, StrictInt]] = None - __properties: ClassVar[List[str]] = ["function_id", "binary_id", "function_name", "function_vaddr", "mangled_name", "debug", "binary_name", "sha_256_hash", "analysis_id", "similarity", "confidence"] + __properties: ClassVar[List[str]] = ["analysis_id", "binary_id", "binary_name", "confidence", "debug", "function_id", "function_name", "function_vaddr", "mangled_name", "sha_256_hash", "similarity"] model_config = ConfigDict( populate_by_name=True, @@ -77,16 +77,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if similarity (nullable) is None - # and model_fields_set contains the field - if self.similarity is None and "similarity" in self.model_fields_set: - _dict['similarity'] = None - # set to None if confidence (nullable) is None # and model_fields_set contains the field if self.confidence is None and "confidence" in self.model_fields_set: _dict['confidence'] = None + # set to None if similarity (nullable) is None + # and model_fields_set contains the field + if self.similarity is None and "similarity" in self.model_fields_set: + _dict['similarity'] = None + return _dict @classmethod @@ -99,17 +99,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "function_id": obj.get("function_id"), + "analysis_id": obj.get("analysis_id"), "binary_id": obj.get("binary_id"), + "binary_name": obj.get("binary_name"), + "confidence": obj.get("confidence"), + "debug": obj.get("debug"), + "function_id": obj.get("function_id"), "function_name": obj.get("function_name"), "function_vaddr": obj.get("function_vaddr"), "mangled_name": obj.get("mangled_name"), - "debug": obj.get("debug"), - "binary_name": obj.get("binary_name"), "sha_256_hash": obj.get("sha_256_hash"), - "analysis_id": obj.get("analysis_id"), - "similarity": obj.get("similarity"), - "confidence": obj.get("confidence") + "similarity": obj.get("similarity") }) return _obj diff --git a/revengai/models/matched_function_suggestion.py b/revengai/models/matched_function_suggestion.py index 5f6988f..edb4cfd 100644 --- a/revengai/models/matched_function_suggestion.py +++ b/revengai/models/matched_function_suggestion.py @@ -27,9 +27,9 @@ class MatchedFunctionSuggestion(BaseModel): """ # noqa: E501 function_id: StrictInt = Field(description="Unique identifier of the matched function") function_vaddr: StrictInt = Field(description="Virtual address of the matched function") - suggested_name: Optional[StrictStr] = None suggested_demangled_name: StrictStr = Field(description="De-mangled name of the function group that contains the matched functions") - __properties: ClassVar[List[str]] = ["function_id", "function_vaddr", "suggested_name", "suggested_demangled_name"] + suggested_name: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["function_id", "function_vaddr", "suggested_demangled_name", "suggested_name"] model_config = ConfigDict( populate_by_name=True, @@ -89,8 +89,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "function_id": obj.get("function_id"), "function_vaddr": obj.get("function_vaddr"), - "suggested_name": obj.get("suggested_name"), - "suggested_demangled_name": obj.get("suggested_demangled_name") + "suggested_demangled_name": obj.get("suggested_demangled_name"), + "suggested_name": obj.get("suggested_name") }) return _obj diff --git a/revengai/models/name_confidence.py b/revengai/models/name_confidence.py index f303ea2..46f5b08 100644 --- a/revengai/models/name_confidence.py +++ b/revengai/models/name_confidence.py @@ -26,9 +26,9 @@ class NameConfidence(BaseModel): """ NameConfidence """ # noqa: E501 + confidence: Union[Annotated[float, Field(le=100, strict=True, ge=0)], Annotated[int, Field(le=100, strict=True, ge=0)]] = Field(description="Confidence score as a percentage") name: StrictStr = Field(description="The suggested function name") - confidence: Union[Annotated[float, Field(le=100.0, strict=True, ge=0.0)], Annotated[int, Field(le=100, strict=True, ge=0)]] = Field(description="Confidence score as a percentage") - __properties: ClassVar[List[str]] = ["name", "confidence"] + __properties: ClassVar[List[str]] = ["confidence", "name"] model_config = ConfigDict( populate_by_name=True, @@ -81,8 +81,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), - "confidence": obj.get("confidence") + "confidence": obj.get("confidence"), + "name": obj.get("name") }) return _obj diff --git a/revengai/models/name_source_type.py b/revengai/models/name_source_type.py index 0a75b67..36ee7f1 100644 --- a/revengai/models/name_source_type.py +++ b/revengai/models/name_source_type.py @@ -25,11 +25,11 @@ class NameSourceType(BaseModel): """ NameSourceType """ # noqa: E501 - type: StrictStr = Field(description="The source (process) the function name came from") - function_id: Optional[StrictInt] = None - binary_id: Optional[StrictInt] = None analysis_id: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["type", "function_id", "binary_id", "analysis_id"] + binary_id: Optional[StrictInt] = None + function_id: Optional[StrictInt] = None + type: StrictStr = Field(description="The source (process) the function name came from") + __properties: ClassVar[List[str]] = ["analysis_id", "binary_id", "function_id", "type"] @field_validator('type') def type_validate_enum(cls, value): @@ -77,20 +77,20 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if function_id (nullable) is None + # set to None if analysis_id (nullable) is None # and model_fields_set contains the field - if self.function_id is None and "function_id" in self.model_fields_set: - _dict['function_id'] = None + if self.analysis_id is None and "analysis_id" in self.model_fields_set: + _dict['analysis_id'] = None # set to None if binary_id (nullable) is None # and model_fields_set contains the field if self.binary_id is None and "binary_id" in self.model_fields_set: _dict['binary_id'] = None - # set to None if analysis_id (nullable) is None + # set to None if function_id (nullable) is None # and model_fields_set contains the field - if self.analysis_id is None and "analysis_id" in self.model_fields_set: - _dict['analysis_id'] = None + if self.function_id is None and "function_id" in self.model_fields_set: + _dict['function_id'] = None return _dict @@ -104,10 +104,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "type": obj.get("type"), - "function_id": obj.get("function_id"), + "analysis_id": obj.get("analysis_id"), "binary_id": obj.get("binary_id"), - "analysis_id": obj.get("analysis_id") + "function_id": obj.get("function_id"), + "type": obj.get("type") }) return _obj diff --git a/revengai/models/network_overview_dns.py b/revengai/models/network_overview_dns.py index 9e67ae4..d3e56a8 100644 --- a/revengai/models/network_overview_dns.py +++ b/revengai/models/network_overview_dns.py @@ -26,10 +26,10 @@ class NetworkOverviewDns(BaseModel): """ NetworkOverviewDns """ # noqa: E501 + answers: List[NetworkOverviewDnsAnswer] host: StrictStr type: StrictStr - answers: List[NetworkOverviewDnsAnswer] - __properties: ClassVar[List[str]] = ["host", "type", "answers"] + __properties: ClassVar[List[str]] = ["answers", "host", "type"] model_config = ConfigDict( populate_by_name=True, @@ -89,9 +89,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "answers": [NetworkOverviewDnsAnswer.from_dict(_item) for _item in obj["answers"]] if obj.get("answers") is not None else None, "host": obj.get("host"), - "type": obj.get("type"), - "answers": [NetworkOverviewDnsAnswer.from_dict(_item) for _item in obj["answers"]] if obj.get("answers") is not None else None + "type": obj.get("type") }) return _obj diff --git a/revengai/models/network_overview_dns_answer.py b/revengai/models/network_overview_dns_answer.py index dcebfde..f7baff0 100644 --- a/revengai/models/network_overview_dns_answer.py +++ b/revengai/models/network_overview_dns_answer.py @@ -25,9 +25,9 @@ class NetworkOverviewDnsAnswer(BaseModel): """ NetworkOverviewDnsAnswer """ # noqa: E501 - type: StrictStr data: StrictStr - __properties: ClassVar[List[str]] = ["type", "data"] + type: StrictStr + __properties: ClassVar[List[str]] = ["data", "type"] model_config = ConfigDict( populate_by_name=True, @@ -80,8 +80,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "type": obj.get("type"), - "data": obj.get("data") + "data": obj.get("data"), + "type": obj.get("type") }) return _obj diff --git a/revengai/models/network_overview_metadata.py b/revengai/models/network_overview_metadata.py index 8df73c1..c4d093b 100644 --- a/revengai/models/network_overview_metadata.py +++ b/revengai/models/network_overview_metadata.py @@ -25,11 +25,11 @@ class NetworkOverviewMetadata(BaseModel): """ NetworkOverviewMetadata """ # noqa: E501 - host: StrictStr - country_code: StrictStr asn: StrictStr = Field(alias="ASN") + country_code: StrictStr + host: StrictStr type: StrictStr - __properties: ClassVar[List[str]] = ["host", "country_code", "ASN", "type"] + __properties: ClassVar[List[str]] = ["ASN", "country_code", "host", "type"] @field_validator('type') def type_validate_enum(cls, value): @@ -89,9 +89,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "host": obj.get("host"), - "country_code": obj.get("country_code"), "ASN": obj.get("ASN"), + "country_code": obj.get("country_code"), + "host": obj.get("host"), "type": obj.get("type") }) return _obj diff --git a/revengai/models/pagination_model.py b/revengai/models/pagination_model.py index 8541bc3..a462410 100644 --- a/revengai/models/pagination_model.py +++ b/revengai/models/pagination_model.py @@ -25,10 +25,10 @@ class PaginationModel(BaseModel): """ PaginationModel """ # noqa: E501 - page_size: StrictInt - page_number: StrictInt has_next_page: StrictBool - __properties: ClassVar[List[str]] = ["page_size", "page_number", "has_next_page"] + page_number: StrictInt + page_size: StrictInt + __properties: ClassVar[List[str]] = ["has_next_page", "page_number", "page_size"] model_config = ConfigDict( populate_by_name=True, @@ -81,9 +81,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "page_size": obj.get("page_size"), + "has_next_page": obj.get("has_next_page"), "page_number": obj.get("page_number"), - "has_next_page": obj.get("has_next_page") + "page_size": obj.get("page_size") }) return _obj diff --git a/revengai/models/params.py b/revengai/models/params.py index 8e41e5f..8b3a726 100644 --- a/revengai/models/params.py +++ b/revengai/models/params.py @@ -25,14 +25,14 @@ class Params(BaseModel): """ Params """ # noqa: E501 - debug_hash: Optional[StrictStr] - binary_size: StrictInt = Field(description="The size of the binary data") architecture: StrictStr = Field(description="The architecture of the binary data") - binary_type: StrictStr = Field(description="The type of binary data") - binary_format: StrictStr = Field(description="The format of the binary data") binary_dynamic: StrictBool = Field(description="Whether the binary data is dynamic") + binary_format: StrictStr = Field(description="The format of the binary data") + binary_size: StrictInt = Field(description="The size of the binary data") + binary_type: StrictStr = Field(description="The type of binary data") + debug_hash: Optional[StrictStr] model_name: StrictStr = Field(description="The name of the model") - __properties: ClassVar[List[str]] = ["debug_hash", "binary_size", "architecture", "binary_type", "binary_format", "binary_dynamic", "model_name"] + __properties: ClassVar[List[str]] = ["architecture", "binary_dynamic", "binary_format", "binary_size", "binary_type", "debug_hash", "model_name"] model_config = ConfigDict( populate_by_name=True, @@ -90,12 +90,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "debug_hash": obj.get("debug_hash"), - "binary_size": obj.get("binary_size"), "architecture": obj.get("architecture"), - "binary_type": obj.get("binary_type"), - "binary_format": obj.get("binary_format"), "binary_dynamic": obj.get("binary_dynamic"), + "binary_format": obj.get("binary_format"), + "binary_size": obj.get("binary_size"), + "binary_type": obj.get("binary_type"), + "debug_hash": obj.get("debug_hash"), "model_name": obj.get("model_name") }) return _obj diff --git a/revengai/models/pe_model.py b/revengai/models/pe_model.py index f5dea38..d8cf6e6 100644 --- a/revengai/models/pe_model.py +++ b/revengai/models/pe_model.py @@ -34,27 +34,27 @@ class PEModel(BaseModel): """ PEModel """ # noqa: E501 - type: StrictStr - timestamps: Optional[TimestampModel] architecture: StrictStr checksum: StrictInt - image_base: StrictInt - security: Optional[SecurityModel] - version_info: Optional[Dict[str, Any]] debug_info: Optional[PDBDebugModel] - number_of_resources: Optional[StrictInt] - entry_point: Optional[EntrypointModel] - signature: Optional[CodeSignatureModel] - dotnet: StrictBool debug_stripped: StrictBool - import_hash: StrictStr + dotnet: StrictBool + entry_point: Optional[EntrypointModel] export_hash: StrictStr - rich_header_hash: StrictStr - sections: Optional[SectionModel] - imports: Optional[ImportModel] exports: Optional[ExportModel] icon_data: Optional[IconModel] - __properties: ClassVar[List[str]] = ["type", "timestamps", "architecture", "checksum", "image_base", "security", "version_info", "debug_info", "number_of_resources", "entry_point", "signature", "dotnet", "debug_stripped", "import_hash", "export_hash", "rich_header_hash", "sections", "imports", "exports", "icon_data"] + image_base: StrictInt + import_hash: StrictStr + imports: Optional[ImportModel] + number_of_resources: Optional[StrictInt] + rich_header_hash: StrictStr + sections: Optional[SectionModel] + security: Optional[SecurityModel] + signature: Optional[CodeSignatureModel] + timestamps: Optional[TimestampModel] + type: StrictStr + version_info: Optional[Dict[str, Any]] + __properties: ClassVar[List[str]] = ["architecture", "checksum", "debug_info", "debug_stripped", "dotnet", "entry_point", "export_hash", "exports", "icon_data", "image_base", "import_hash", "imports", "number_of_resources", "rich_header_hash", "sections", "security", "signature", "timestamps", "type", "version_info"] model_config = ConfigDict( populate_by_name=True, @@ -95,87 +95,87 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of timestamps - if self.timestamps: - _dict['timestamps'] = self.timestamps.to_dict() - # override the default output from pydantic by calling `to_dict()` of security - if self.security: - _dict['security'] = self.security.to_dict() # override the default output from pydantic by calling `to_dict()` of debug_info if self.debug_info: _dict['debug_info'] = self.debug_info.to_dict() # override the default output from pydantic by calling `to_dict()` of entry_point if self.entry_point: _dict['entry_point'] = self.entry_point.to_dict() - # override the default output from pydantic by calling `to_dict()` of signature - if self.signature: - _dict['signature'] = self.signature.to_dict() - # override the default output from pydantic by calling `to_dict()` of sections - if self.sections: - _dict['sections'] = self.sections.to_dict() - # override the default output from pydantic by calling `to_dict()` of imports - if self.imports: - _dict['imports'] = self.imports.to_dict() # override the default output from pydantic by calling `to_dict()` of exports if self.exports: _dict['exports'] = self.exports.to_dict() # override the default output from pydantic by calling `to_dict()` of icon_data if self.icon_data: _dict['icon_data'] = self.icon_data.to_dict() - # set to None if timestamps (nullable) is None + # override the default output from pydantic by calling `to_dict()` of imports + if self.imports: + _dict['imports'] = self.imports.to_dict() + # override the default output from pydantic by calling `to_dict()` of sections + if self.sections: + _dict['sections'] = self.sections.to_dict() + # override the default output from pydantic by calling `to_dict()` of security + if self.security: + _dict['security'] = self.security.to_dict() + # override the default output from pydantic by calling `to_dict()` of signature + if self.signature: + _dict['signature'] = self.signature.to_dict() + # override the default output from pydantic by calling `to_dict()` of timestamps + if self.timestamps: + _dict['timestamps'] = self.timestamps.to_dict() + # set to None if debug_info (nullable) is None # and model_fields_set contains the field - if self.timestamps is None and "timestamps" in self.model_fields_set: - _dict['timestamps'] = None + if self.debug_info is None and "debug_info" in self.model_fields_set: + _dict['debug_info'] = None - # set to None if security (nullable) is None + # set to None if entry_point (nullable) is None # and model_fields_set contains the field - if self.security is None and "security" in self.model_fields_set: - _dict['security'] = None + if self.entry_point is None and "entry_point" in self.model_fields_set: + _dict['entry_point'] = None - # set to None if version_info (nullable) is None + # set to None if exports (nullable) is None # and model_fields_set contains the field - if self.version_info is None and "version_info" in self.model_fields_set: - _dict['version_info'] = None + if self.exports is None and "exports" in self.model_fields_set: + _dict['exports'] = None - # set to None if debug_info (nullable) is None + # set to None if icon_data (nullable) is None # and model_fields_set contains the field - if self.debug_info is None and "debug_info" in self.model_fields_set: - _dict['debug_info'] = None + if self.icon_data is None and "icon_data" in self.model_fields_set: + _dict['icon_data'] = None + + # set to None if imports (nullable) is None + # and model_fields_set contains the field + if self.imports is None and "imports" in self.model_fields_set: + _dict['imports'] = None # set to None if number_of_resources (nullable) is None # and model_fields_set contains the field if self.number_of_resources is None and "number_of_resources" in self.model_fields_set: _dict['number_of_resources'] = None - # set to None if entry_point (nullable) is None - # and model_fields_set contains the field - if self.entry_point is None and "entry_point" in self.model_fields_set: - _dict['entry_point'] = None - - # set to None if signature (nullable) is None - # and model_fields_set contains the field - if self.signature is None and "signature" in self.model_fields_set: - _dict['signature'] = None - # set to None if sections (nullable) is None # and model_fields_set contains the field if self.sections is None and "sections" in self.model_fields_set: _dict['sections'] = None - # set to None if imports (nullable) is None + # set to None if security (nullable) is None # and model_fields_set contains the field - if self.imports is None and "imports" in self.model_fields_set: - _dict['imports'] = None + if self.security is None and "security" in self.model_fields_set: + _dict['security'] = None - # set to None if exports (nullable) is None + # set to None if signature (nullable) is None # and model_fields_set contains the field - if self.exports is None and "exports" in self.model_fields_set: - _dict['exports'] = None + if self.signature is None and "signature" in self.model_fields_set: + _dict['signature'] = None - # set to None if icon_data (nullable) is None + # set to None if timestamps (nullable) is None # and model_fields_set contains the field - if self.icon_data is None and "icon_data" in self.model_fields_set: - _dict['icon_data'] = None + if self.timestamps is None and "timestamps" in self.model_fields_set: + _dict['timestamps'] = None + + # set to None if version_info (nullable) is None + # and model_fields_set contains the field + if self.version_info is None and "version_info" in self.model_fields_set: + _dict['version_info'] = None return _dict @@ -189,26 +189,26 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "type": obj.get("type"), - "timestamps": TimestampModel.from_dict(obj["timestamps"]) if obj.get("timestamps") is not None else None, "architecture": obj.get("architecture"), "checksum": obj.get("checksum"), - "image_base": obj.get("image_base"), - "security": SecurityModel.from_dict(obj["security"]) if obj.get("security") is not None else None, - "version_info": obj.get("version_info"), "debug_info": PDBDebugModel.from_dict(obj["debug_info"]) if obj.get("debug_info") is not None else None, - "number_of_resources": obj.get("number_of_resources"), - "entry_point": EntrypointModel.from_dict(obj["entry_point"]) if obj.get("entry_point") is not None else None, - "signature": CodeSignatureModel.from_dict(obj["signature"]) if obj.get("signature") is not None else None, - "dotnet": obj.get("dotnet"), "debug_stripped": obj.get("debug_stripped"), - "import_hash": obj.get("import_hash"), + "dotnet": obj.get("dotnet"), + "entry_point": EntrypointModel.from_dict(obj["entry_point"]) if obj.get("entry_point") is not None else None, "export_hash": obj.get("export_hash"), + "exports": ExportModel.from_dict(obj["exports"]) if obj.get("exports") is not None else None, + "icon_data": IconModel.from_dict(obj["icon_data"]) if obj.get("icon_data") is not None else None, + "image_base": obj.get("image_base"), + "import_hash": obj.get("import_hash"), + "imports": ImportModel.from_dict(obj["imports"]) if obj.get("imports") is not None else None, + "number_of_resources": obj.get("number_of_resources"), "rich_header_hash": obj.get("rich_header_hash"), "sections": SectionModel.from_dict(obj["sections"]) if obj.get("sections") is not None else None, - "imports": ImportModel.from_dict(obj["imports"]) if obj.get("imports") is not None else None, - "exports": ExportModel.from_dict(obj["exports"]) if obj.get("exports") is not None else None, - "icon_data": IconModel.from_dict(obj["icon_data"]) if obj.get("icon_data") is not None else None + "security": SecurityModel.from_dict(obj["security"]) if obj.get("security") is not None else None, + "signature": CodeSignatureModel.from_dict(obj["signature"]) if obj.get("signature") is not None else None, + "timestamps": TimestampModel.from_dict(obj["timestamps"]) if obj.get("timestamps") is not None else None, + "type": obj.get("type"), + "version_info": obj.get("version_info") }) return _obj diff --git a/revengai/models/process.py b/revengai/models/process.py index f8c4d8a..dfdc9ca 100644 --- a/revengai/models/process.py +++ b/revengai/models/process.py @@ -25,14 +25,14 @@ class Process(BaseModel): """ Process """ # noqa: E501 + args: List[StrictStr] + children: List[Any] + executable_name: StrictStr pid: StrictInt procname: StrictStr - executable_name: StrictStr - args: List[StrictStr] ts_from: Union[StrictFloat, StrictInt] ts_to: Optional[Union[StrictFloat, StrictInt]] - children: List[Any] - __properties: ClassVar[List[str]] = ["pid", "procname", "executable_name", "args", "ts_from", "ts_to", "children"] + __properties: ClassVar[List[str]] = ["args", "children", "executable_name", "pid", "procname", "ts_from", "ts_to"] model_config = ConfigDict( populate_by_name=True, @@ -90,13 +90,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "args": obj.get("args"), + "children": obj.get("children"), + "executable_name": obj.get("executable_name"), "pid": obj.get("pid"), "procname": obj.get("procname"), - "executable_name": obj.get("executable_name"), - "args": obj.get("args"), "ts_from": obj.get("ts_from"), - "ts_to": obj.get("ts_to"), - "children": obj.get("children") + "ts_to": obj.get("ts_to") }) return _obj diff --git a/revengai/models/process_dump.py b/revengai/models/process_dump.py index 18de30d..6da851f 100644 --- a/revengai/models/process_dump.py +++ b/revengai/models/process_dump.py @@ -26,11 +26,11 @@ class ProcessDump(BaseModel): """ ProcessDump """ # noqa: E501 - base_address: StrictInt actual_filename: StrictStr - filename_friendly: StrictStr + base_address: StrictInt extended_metadata: ProcessDumpMetadata - __properties: ClassVar[List[str]] = ["base_address", "actual_filename", "filename_friendly", "extended_metadata"] + filename_friendly: StrictStr + __properties: ClassVar[List[str]] = ["actual_filename", "base_address", "extended_metadata", "filename_friendly"] model_config = ConfigDict( populate_by_name=True, @@ -86,10 +86,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "base_address": obj.get("base_address"), "actual_filename": obj.get("actual_filename"), - "filename_friendly": obj.get("filename_friendly"), - "extended_metadata": ProcessDumpMetadata.from_dict(obj["extended_metadata"]) if obj.get("extended_metadata") is not None else None + "base_address": obj.get("base_address"), + "extended_metadata": ProcessDumpMetadata.from_dict(obj["extended_metadata"]) if obj.get("extended_metadata") is not None else None, + "filename_friendly": obj.get("filename_friendly") }) return _obj diff --git a/revengai/models/process_dump_metadata.py b/revengai/models/process_dump_metadata.py index c30a5de..b3f2ddb 100644 --- a/revengai/models/process_dump_metadata.py +++ b/revengai/models/process_dump_metadata.py @@ -26,9 +26,9 @@ class ProcessDumpMetadata(BaseModel): ProcessDumpMetadata """ # noqa: E501 sha256: StrictStr - type: StrictStr size: StrictInt - __properties: ClassVar[List[str]] = ["sha256", "type", "size"] + type: StrictStr + __properties: ClassVar[List[str]] = ["sha256", "size", "type"] model_config = ConfigDict( populate_by_name=True, @@ -82,8 +82,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "sha256": obj.get("sha256"), - "type": obj.get("type"), - "size": obj.get("size") + "size": obj.get("size"), + "type": obj.get("type") }) return _obj diff --git a/revengai/models/process_dumps.py b/revengai/models/process_dumps.py index 151dd80..c238faf 100644 --- a/revengai/models/process_dumps.py +++ b/revengai/models/process_dumps.py @@ -26,9 +26,9 @@ class ProcessDumps(BaseModel): """ ProcessDumps """ # noqa: E501 - success: StrictBool data: ProcessDumpsData - __properties: ClassVar[List[str]] = ["success", "data"] + success: StrictBool + __properties: ClassVar[List[str]] = ["data", "success"] model_config = ConfigDict( populate_by_name=True, @@ -84,8 +84,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "success": obj.get("success"), - "data": ProcessDumpsData.from_dict(obj["data"]) if obj.get("data") is not None else None + "data": ProcessDumpsData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "success": obj.get("success") }) return _obj diff --git a/revengai/models/process_registry.py b/revengai/models/process_registry.py index f51e589..7747990 100644 --- a/revengai/models/process_registry.py +++ b/revengai/models/process_registry.py @@ -26,9 +26,9 @@ class ProcessRegistry(BaseModel): """ ProcessRegistry """ # noqa: E501 - success: StrictBool data: Dict[str, List[Registry]] - __properties: ClassVar[List[str]] = ["success", "data"] + success: StrictBool + __properties: ClassVar[List[str]] = ["data", "success"] model_config = ConfigDict( populate_by_name=True, @@ -90,7 +90,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "success": obj.get("success"), "data": dict( (_k, [Registry.from_dict(_item) for _item in _v] @@ -98,7 +97,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: else None ) for _k, _v in obj.get("data", {}).items() - ) + ), + "success": obj.get("success") }) return _obj diff --git a/revengai/models/process_tree.py b/revengai/models/process_tree.py index b4b7692..5e83144 100644 --- a/revengai/models/process_tree.py +++ b/revengai/models/process_tree.py @@ -26,9 +26,9 @@ class ProcessTree(BaseModel): """ ProcessTree """ # noqa: E501 - success: StrictBool data: List[Process] - __properties: ClassVar[List[str]] = ["success", "data"] + success: StrictBool + __properties: ClassVar[List[str]] = ["data", "success"] model_config = ConfigDict( populate_by_name=True, @@ -88,8 +88,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "success": obj.get("success"), - "data": [Process.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + "data": [Process.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "success": obj.get("success") }) return _obj diff --git a/revengai/models/put_analysis_strings_request.py b/revengai/models/put_analysis_strings_request.py new file mode 100644 index 0000000..5fa3072 --- /dev/null +++ b/revengai/models/put_analysis_strings_request.py @@ -0,0 +1,94 @@ +# 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 +from typing import Any, ClassVar, Dict, List +from revengai.models.analysis_string_input import AnalysisStringInput +from typing import Optional, Set +from typing_extensions import Self + +class PutAnalysisStringsRequest(BaseModel): + """ + PutAnalysisStringsRequest + """ # noqa: E501 + strings: List[AnalysisStringInput] = Field(description="The strings to add to the analysis") + __properties: ClassVar[List[str]] = ["strings"] + + 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 PutAnalysisStringsRequest 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 strings (list) + _items = [] + if self.strings: + for _item_strings in self.strings: + if _item_strings: + _items.append(_item_strings.to_dict()) + _dict['strings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PutAnalysisStringsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "strings": [AnalysisStringInput.from_dict(_item) for _item in obj["strings"]] if obj.get("strings") is not None else None + }) + return _obj + + diff --git a/revengai/models/re_analysis_form.py b/revengai/models/re_analysis_form.py index 39f53b6..d84e0ee 100644 --- a/revengai/models/re_analysis_form.py +++ b/revengai/models/re_analysis_form.py @@ -25,13 +25,13 @@ class ReAnalysisForm(BaseModel): """ Form Model for receiving the analysis request """ # noqa: E501 - tags: Optional[List[StrictStr]] = Field(default=None, description="Tags associated with the analysis") command_line_args: Optional[StrictStr] = Field(default='', description="Command line arguments for dynamic execution") - priority: Optional[StrictInt] = Field(default=0, description="Priority of the analysis") essential: Optional[StrictBool] = Field(default=True, description="Only runs essential parts of the analysis, skips tags/sbom/cves etc.") model_name: Optional[StrictStr] = None no_cache: Optional[StrictBool] = Field(default=False, description="When enabled, skips using cached data within the processing.") - __properties: ClassVar[List[str]] = ["tags", "command_line_args", "priority", "essential", "model_name", "no_cache"] + priority: Optional[StrictInt] = Field(default=0, description="Priority of the analysis") + tags: Optional[List[StrictStr]] = Field(default=None, description="Tags associated with the analysis") + __properties: ClassVar[List[str]] = ["command_line_args", "essential", "model_name", "no_cache", "priority", "tags"] model_config = ConfigDict( populate_by_name=True, @@ -89,12 +89,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "tags": obj.get("tags"), "command_line_args": obj.get("command_line_args") if obj.get("command_line_args") is not None else '', - "priority": obj.get("priority") if obj.get("priority") is not None else 0, "essential": obj.get("essential") if obj.get("essential") is not None else True, "model_name": obj.get("model_name"), - "no_cache": obj.get("no_cache") if obj.get("no_cache") is not None else False + "no_cache": obj.get("no_cache") if obj.get("no_cache") is not None else False, + "priority": obj.get("priority") if obj.get("priority") is not None else 0, + "tags": obj.get("tags") }) return _obj diff --git a/revengai/models/registry.py b/revengai/models/registry.py index ad4bf00..c911a0e 100644 --- a/revengai/models/registry.py +++ b/revengai/models/registry.py @@ -25,11 +25,11 @@ class Registry(BaseModel): """ Registry """ # noqa: E501 - method: StrictStr key: StrictStr - value_name: Optional[StrictStr] + method: StrictStr value: Optional[StrictStr] - __properties: ClassVar[List[str]] = ["method", "key", "value_name", "value"] + value_name: Optional[StrictStr] + __properties: ClassVar[List[str]] = ["key", "method", "value", "value_name"] model_config = ConfigDict( populate_by_name=True, @@ -70,16 +70,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if value_name (nullable) is None - # and model_fields_set contains the field - if self.value_name is None and "value_name" in self.model_fields_set: - _dict['value_name'] = None - # set to None if value (nullable) is None # and model_fields_set contains the field if self.value is None and "value" in self.model_fields_set: _dict['value'] = None + # set to None if value_name (nullable) is None + # and model_fields_set contains the field + if self.value_name is None and "value_name" in self.model_fields_set: + _dict['value_name'] = None + return _dict @classmethod @@ -92,10 +92,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "method": obj.get("method"), "key": obj.get("key"), - "value_name": obj.get("value_name"), - "value": obj.get("value") + "method": obj.get("method"), + "value": obj.get("value"), + "value_name": obj.get("value_name") }) return _obj diff --git a/revengai/models/relative_binary_response.py b/revengai/models/relative_binary_response.py index 5e07eaf..acce66d 100644 --- a/revengai/models/relative_binary_response.py +++ b/revengai/models/relative_binary_response.py @@ -25,11 +25,11 @@ class RelativeBinaryResponse(BaseModel): """ RelativeBinaryResponse """ # noqa: E501 - binary_id: StrictInt = Field(description="ID of the relative binary") analysis_id: Optional[StrictInt] = None + binary_id: StrictInt = Field(description="ID of the relative binary") name: StrictStr = Field(description="Name of the relative binary") sha256: StrictStr = Field(description="SHA256 hash of the relative binary") - __properties: ClassVar[List[str]] = ["binary_id", "analysis_id", "name", "sha256"] + __properties: ClassVar[List[str]] = ["analysis_id", "binary_id", "name", "sha256"] model_config = ConfigDict( populate_by_name=True, @@ -87,8 +87,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "binary_id": obj.get("binary_id"), "analysis_id": obj.get("analysis_id"), + "binary_id": obj.get("binary_id"), "name": obj.get("name"), "sha256": obj.get("sha256") }) diff --git a/revengai/models/sandbox_options.py b/revengai/models/sandbox_options.py index aff7e44..abd57a4 100644 --- a/revengai/models/sandbox_options.py +++ b/revengai/models/sandbox_options.py @@ -25,9 +25,9 @@ class SandboxOptions(BaseModel): """ SandboxOptions """ # noqa: E501 - enabled: Optional[StrictBool] = False command_line_args: Optional[StrictStr] = Field(default='', description="The command line parameters to pass to the dynamic execution sandbox. Requires `sandbox` to be True.") - __properties: ClassVar[List[str]] = ["enabled", "command_line_args"] + enabled: Optional[StrictBool] = False + __properties: ClassVar[List[str]] = ["command_line_args", "enabled"] model_config = ConfigDict( populate_by_name=True, @@ -80,8 +80,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "enabled": obj.get("enabled") if obj.get("enabled") is not None else False, - "command_line_args": obj.get("command_line_args") if obj.get("command_line_args") is not None else '' + "command_line_args": obj.get("command_line_args") if obj.get("command_line_args") is not None else '', + "enabled": obj.get("enabled") if obj.get("enabled") is not None else False }) return _obj diff --git a/revengai/models/sbom.py b/revengai/models/sbom.py index 2b12c60..317b23d 100644 --- a/revengai/models/sbom.py +++ b/revengai/models/sbom.py @@ -26,9 +26,9 @@ class SBOM(BaseModel): """ SBOM """ # noqa: E501 - packages: List[SBOMPackage] = Field(description="The packages found") imported_libs: List[StrictStr] = Field(description="The import libraries found") - __properties: ClassVar[List[str]] = ["packages", "imported_libs"] + packages: List[SBOMPackage] = Field(description="The packages found") + __properties: ClassVar[List[str]] = ["imported_libs", "packages"] model_config = ConfigDict( populate_by_name=True, @@ -88,8 +88,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "packages": [SBOMPackage.from_dict(_item) for _item in obj["packages"]] if obj.get("packages") is not None else None, - "imported_libs": obj.get("imported_libs") + "imported_libs": obj.get("imported_libs"), + "packages": [SBOMPackage.from_dict(_item) for _item in obj["packages"]] if obj.get("packages") is not None else None }) return _obj diff --git a/revengai/models/security_checks_response.py b/revengai/models/security_checks_response.py index 785b215..7ba2b52 100644 --- a/revengai/models/security_checks_response.py +++ b/revengai/models/security_checks_response.py @@ -27,9 +27,9 @@ class SecurityChecksResponse(BaseModel): SecurityChecksResponse """ # noqa: E501 binary_id: StrictInt - total_results: StrictInt results: List[SecurityChecksResult] - __properties: ClassVar[List[str]] = ["binary_id", "total_results", "results"] + total_results: StrictInt + __properties: ClassVar[List[str]] = ["binary_id", "results", "total_results"] model_config = ConfigDict( populate_by_name=True, @@ -90,8 +90,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _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 + "results": [SecurityChecksResult.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None, + "total_results": obj.get("total_results") }) return _obj diff --git a/revengai/models/security_checks_result.py b/revengai/models/security_checks_result.py index 1c7f411..262e36b 100644 --- a/revengai/models/security_checks_result.py +++ b/revengai/models/security_checks_result.py @@ -28,15 +28,15 @@ class SecurityChecksResult(BaseModel): """ SecurityChecksResult """ # noqa: E501 + confidence: ConfidenceType + description: StrictStr 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"] + vuln_class: VulnerabilityType + __properties: ClassVar[List[str]] = ["confidence", "description", "function_id", "function_name", "name", "remediation", "severity", "vuln_class"] model_config = ConfigDict( populate_by_name=True, @@ -89,14 +89,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "confidence": obj.get("confidence"), + "description": obj.get("description"), "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") + "severity": obj.get("severity"), + "vuln_class": obj.get("vuln_class") }) return _obj diff --git a/revengai/models/security_model.py b/revengai/models/security_model.py index 8860f09..a4afe0c 100644 --- a/revengai/models/security_model.py +++ b/revengai/models/security_model.py @@ -25,18 +25,18 @@ class SecurityModel(BaseModel): """ SecurityModel """ # noqa: E501 + app_container: StrictBool aslr: StrictBool - dep: StrictBool + bound_image: StrictBool cfg: StrictBool - driver_model: StrictBool - app_container: StrictBool - terminal_server_aware: StrictBool - image_isolation: StrictBool code_integrity: StrictBool + dep: StrictBool + driver_model: StrictBool high_entropy: StrictBool + image_isolation: StrictBool seh: StrictBool - bound_image: StrictBool - __properties: ClassVar[List[str]] = ["aslr", "dep", "cfg", "driver_model", "app_container", "terminal_server_aware", "image_isolation", "code_integrity", "high_entropy", "seh", "bound_image"] + terminal_server_aware: StrictBool + __properties: ClassVar[List[str]] = ["app_container", "aslr", "bound_image", "cfg", "code_integrity", "dep", "driver_model", "high_entropy", "image_isolation", "seh", "terminal_server_aware"] model_config = ConfigDict( populate_by_name=True, @@ -89,17 +89,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "app_container": obj.get("app_container"), "aslr": obj.get("aslr"), - "dep": obj.get("dep"), + "bound_image": obj.get("bound_image"), "cfg": obj.get("cfg"), - "driver_model": obj.get("driver_model"), - "app_container": obj.get("app_container"), - "terminal_server_aware": obj.get("terminal_server_aware"), - "image_isolation": obj.get("image_isolation"), "code_integrity": obj.get("code_integrity"), + "dep": obj.get("dep"), + "driver_model": obj.get("driver_model"), "high_entropy": obj.get("high_entropy"), + "image_isolation": obj.get("image_isolation"), "seh": obj.get("seh"), - "bound_image": obj.get("bound_image") + "terminal_server_aware": obj.get("terminal_server_aware") }) return _obj diff --git a/revengai/models/segment_info.py b/revengai/models/segment_info.py index 89aaeef..a9eb877 100644 --- a/revengai/models/segment_info.py +++ b/revengai/models/segment_info.py @@ -25,13 +25,13 @@ class SegmentInfo(BaseModel): """ Represents the information about a segment. Attributes: name: The name of the segment. r: Determines if the segment has read permission. w: Determines if the segment has write permission. x: Determines if the segment has execute permission. start: The start address of the segment. end: The end address of the segment. """ # noqa: E501 + end: Optional[StrictInt] = 0 name: Optional[StrictStr] = '' r: Optional[StrictBool] = None + start: Optional[StrictInt] = 0 w: Optional[StrictBool] = None x: Optional[StrictBool] = None - start: Optional[StrictInt] = 0 - end: Optional[StrictInt] = 0 - __properties: ClassVar[List[str]] = ["name", "r", "w", "x", "start", "end"] + __properties: ClassVar[List[str]] = ["end", "name", "r", "start", "w", "x"] model_config = ConfigDict( populate_by_name=True, @@ -99,12 +99,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "end": obj.get("end") if obj.get("end") is not None else 0, "name": obj.get("name") if obj.get("name") is not None else '', "r": obj.get("r"), - "w": obj.get("w"), - "x": obj.get("x"), "start": obj.get("start") if obj.get("start") is not None else 0, - "end": obj.get("end") if obj.get("end") is not None else 0 + "w": obj.get("w"), + "x": obj.get("x") }) return _obj diff --git a/revengai/models/single_code_certificate_model.py b/revengai/models/single_code_certificate_model.py index beb0759..598a728 100644 --- a/revengai/models/single_code_certificate_model.py +++ b/revengai/models/single_code_certificate_model.py @@ -25,13 +25,13 @@ class SingleCodeCertificateModel(BaseModel): """ SingleCodeCertificateModel """ # noqa: E501 - version: StrictInt - issued_on: StrictStr expires_on: StrictStr + issued_on: StrictStr issuer_name: StrictStr serial_number: StrictStr subject_name: StrictStr - __properties: ClassVar[List[str]] = ["version", "issued_on", "expires_on", "issuer_name", "serial_number", "subject_name"] + version: StrictInt + __properties: ClassVar[List[str]] = ["expires_on", "issued_on", "issuer_name", "serial_number", "subject_name", "version"] model_config = ConfigDict( populate_by_name=True, @@ -84,12 +84,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "version": obj.get("version"), - "issued_on": obj.get("issued_on"), "expires_on": obj.get("expires_on"), + "issued_on": obj.get("issued_on"), "issuer_name": obj.get("issuer_name"), "serial_number": obj.get("serial_number"), - "subject_name": obj.get("subject_name") + "subject_name": obj.get("subject_name"), + "version": obj.get("version") }) return _obj diff --git a/revengai/models/single_code_signature_model.py b/revengai/models/single_code_signature_model.py index f9517f6..c47902a 100644 --- a/revengai/models/single_code_signature_model.py +++ b/revengai/models/single_code_signature_model.py @@ -26,9 +26,9 @@ class SingleCodeSignatureModel(BaseModel): """ SingleCodeSignatureModel """ # noqa: E501 - certificates: List[SingleCodeCertificateModel] authenticode_digest: StrictStr - __properties: ClassVar[List[str]] = ["certificates", "authenticode_digest"] + certificates: List[SingleCodeCertificateModel] + __properties: ClassVar[List[str]] = ["authenticode_digest", "certificates"] model_config = ConfigDict( populate_by_name=True, @@ -88,8 +88,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "certificates": [SingleCodeCertificateModel.from_dict(_item) for _item in obj["certificates"]] if obj.get("certificates") is not None else None, - "authenticode_digest": obj.get("authenticode_digest") + "authenticode_digest": obj.get("authenticode_digest"), + "certificates": [SingleCodeCertificateModel.from_dict(_item) for _item in obj["certificates"]] if obj.get("certificates") is not None else None }) return _obj diff --git a/revengai/models/single_pdb_entry_model.py b/revengai/models/single_pdb_entry_model.py index 6c7362f..6b8d07b 100644 --- a/revengai/models/single_pdb_entry_model.py +++ b/revengai/models/single_pdb_entry_model.py @@ -25,10 +25,10 @@ class SinglePDBEntryModel(BaseModel): """ SinglePDBEntryModel """ # noqa: E501 - guid: StrictStr age: StrictInt + guid: StrictStr path: StrictStr - __properties: ClassVar[List[str]] = ["guid", "age", "path"] + __properties: ClassVar[List[str]] = ["age", "guid", "path"] model_config = ConfigDict( populate_by_name=True, @@ -81,8 +81,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "guid": obj.get("guid"), "age": obj.get("age"), + "guid": obj.get("guid"), "path": obj.get("path") }) return _obj diff --git a/revengai/models/single_section_model.py b/revengai/models/single_section_model.py index 9216d31..24888e9 100644 --- a/revengai/models/single_section_model.py +++ b/revengai/models/single_section_model.py @@ -25,14 +25,14 @@ class SingleSectionModel(BaseModel): """ SingleSectionModel """ # noqa: E501 - name: StrictStr - virtual_address: StrictInt - virtual_size: StrictInt characteristics: StrictStr - raw_size: StrictInt entropy: Union[StrictFloat, StrictInt] + name: StrictStr + raw_size: StrictInt sha3_256: StrictStr - __properties: ClassVar[List[str]] = ["name", "virtual_address", "virtual_size", "characteristics", "raw_size", "entropy", "sha3_256"] + virtual_address: StrictInt + virtual_size: StrictInt + __properties: ClassVar[List[str]] = ["characteristics", "entropy", "name", "raw_size", "sha3_256", "virtual_address", "virtual_size"] model_config = ConfigDict( populate_by_name=True, @@ -85,13 +85,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), - "virtual_address": obj.get("virtual_address"), - "virtual_size": obj.get("virtual_size"), "characteristics": obj.get("characteristics"), - "raw_size": obj.get("raw_size"), "entropy": obj.get("entropy"), - "sha3_256": obj.get("sha3_256") + "name": obj.get("name"), + "raw_size": obj.get("raw_size"), + "sha3_256": obj.get("sha3_256"), + "virtual_address": obj.get("virtual_address"), + "virtual_size": obj.get("virtual_size") }) return _obj diff --git a/revengai/models/stack_variable.py b/revengai/models/stack_variable.py index 0316268..802391a 100644 --- a/revengai/models/stack_variable.py +++ b/revengai/models/stack_variable.py @@ -25,13 +25,13 @@ class StackVariable(BaseModel): """ StackVariable """ # noqa: E501 + addr: StrictInt = Field(description="Memory address of the stack variable") last_change: Optional[StrictStr] = None - offset: StrictInt = Field(description="Offset of the stack variable") name: StrictStr = Field(description="Name of the stack variable") - type: StrictStr = Field(description="Data type of the stack variable") + offset: StrictInt = Field(description="Offset of the stack variable") size: StrictInt = Field(description="Size of the stack variable in bytes") - addr: StrictInt = Field(description="Memory address of the stack variable") - __properties: ClassVar[List[str]] = ["last_change", "offset", "name", "type", "size", "addr"] + type: StrictStr = Field(description="Data type of the stack variable") + __properties: ClassVar[List[str]] = ["addr", "last_change", "name", "offset", "size", "type"] model_config = ConfigDict( populate_by_name=True, @@ -89,12 +89,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "addr": obj.get("addr"), "last_change": obj.get("last_change"), - "offset": obj.get("offset"), "name": obj.get("name"), - "type": obj.get("type"), + "offset": obj.get("offset"), "size": obj.get("size"), - "addr": obj.get("addr") + "type": obj.get("type") }) return _obj diff --git a/revengai/models/stage_status.py b/revengai/models/stage_status.py index 1daeef0..07736dc 100644 --- a/revengai/models/stage_status.py +++ b/revengai/models/stage_status.py @@ -27,10 +27,10 @@ class StageStatus(BaseModel): """ StageStatus """ # noqa: E501 + num_ahead: StrictInt stage: AnalysisStage status: PipelineStageStatus - num_ahead: StrictInt - __properties: ClassVar[List[str]] = ["stage", "status", "num_ahead"] + __properties: ClassVar[List[str]] = ["num_ahead", "stage", "status"] model_config = ConfigDict( populate_by_name=True, @@ -83,9 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "num_ahead": obj.get("num_ahead"), "stage": obj.get("stage"), - "status": obj.get("status"), - "num_ahead": obj.get("num_ahead") + "status": obj.get("status") }) return _obj diff --git a/revengai/models/string_functions.py b/revengai/models/string_functions.py index 5e89b47..7b186a6 100644 --- a/revengai/models/string_functions.py +++ b/revengai/models/string_functions.py @@ -17,8 +17,9 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from revengai.models.app_api_rest_v2_functions_responses_function import AppApiRestV2FunctionsResponsesFunction +from revengai.models.string_source import StringSource from typing import Optional, Set from typing_extensions import Self @@ -26,9 +27,10 @@ class StringFunctions(BaseModel): """ This is a string with the functions where the string is used. A function string is a string literal referenced within a function. When analyzing stripped or obfuscated binaries, function strings can help identify the function’s purpose. """ # noqa: E501 - value: StrictStr = Field(description="The value of the string literal") functions: List[AppApiRestV2FunctionsResponsesFunction] = Field(description="The function ids the string literal was found within") - __properties: ClassVar[List[str]] = ["value", "functions"] + source: Optional[StringSource] = Field(default=None, description="The source of the string") + value: StrictStr = Field(description="The value of the string literal") + __properties: ClassVar[List[str]] = ["functions", "source", "value"] model_config = ConfigDict( populate_by_name=True, @@ -88,8 +90,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "value": obj.get("value"), - "functions": [AppApiRestV2FunctionsResponsesFunction.from_dict(_item) for _item in obj["functions"]] if obj.get("functions") is not None else None + "functions": [AppApiRestV2FunctionsResponsesFunction.from_dict(_item) for _item in obj["functions"]] if obj.get("functions") is not None else None, + "source": obj.get("source"), + "value": obj.get("value") }) return _obj diff --git a/revengai/models/string_source.py b/revengai/models/string_source.py new file mode 100644 index 0000000..5fbdc5e --- /dev/null +++ b/revengai/models/string_source.py @@ -0,0 +1,37 @@ +# 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 StringSource(str, Enum): + """ + StringSource + """ + + """ + allowed enum values + """ + SYSTEM = 'SYSTEM' + USER = 'USER' + AI_AGENT = 'AI_AGENT' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of StringSource from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/revengai/models/structure.py b/revengai/models/structure.py index 9fb9159..7f61528 100644 --- a/revengai/models/structure.py +++ b/revengai/models/structure.py @@ -26,12 +26,12 @@ class Structure(BaseModel): """ Structure """ # noqa: E501 + artifact_type: Optional[StrictStr] = Field(default=None, description="Type of artifact that the structure is associated with") last_change: Optional[StrictStr] = None + members: Dict[str, StructureMember] = Field(description="Dictionary of structure members") name: StrictStr = Field(description="Name of the structure") size: Optional[StrictInt] = None - members: Dict[str, StructureMember] = Field(description="Dictionary of structure members") - artifact_type: Optional[StrictStr] = Field(default=None, description="Type of artifact that the structure is associated with") - __properties: ClassVar[List[str]] = ["last_change", "name", "size", "members", "artifact_type"] + __properties: ClassVar[List[str]] = ["artifact_type", "last_change", "members", "name", "size"] model_config = ConfigDict( populate_by_name=True, @@ -101,16 +101,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "artifact_type": obj.get("artifact_type"), "last_change": obj.get("last_change"), - "name": obj.get("name"), - "size": obj.get("size"), "members": dict( (_k, StructureMember.from_dict(_v)) for _k, _v in obj["members"].items() ) if obj.get("members") is not None else None, - "artifact_type": obj.get("artifact_type") + "name": obj.get("name"), + "size": obj.get("size") }) return _obj diff --git a/revengai/models/structure_member.py b/revengai/models/structure_member.py index ace2a47..50fbe81 100644 --- a/revengai/models/structure_member.py +++ b/revengai/models/structure_member.py @@ -28,9 +28,9 @@ class StructureMember(BaseModel): last_change: Optional[StrictStr] = None name: StrictStr = Field(description="Name of the structure member") offset: StrictInt = Field(description="Offset of the member within the structure") - type: StrictStr = Field(description="Data type of the structure member") size: StrictInt = Field(description="Size of the structure member in bytes") - __properties: ClassVar[List[str]] = ["last_change", "name", "offset", "type", "size"] + type: StrictStr = Field(description="Data type of the structure member") + __properties: ClassVar[List[str]] = ["last_change", "name", "offset", "size", "type"] model_config = ConfigDict( populate_by_name=True, @@ -91,8 +91,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "last_change": obj.get("last_change"), "name": obj.get("name"), "offset": obj.get("offset"), - "type": obj.get("type"), - "size": obj.get("size") + "size": obj.get("size"), + "type": obj.get("type") }) return _obj diff --git a/revengai/models/tag_item.py b/revengai/models/tag_item.py index 852a408..d00715c 100644 --- a/revengai/models/tag_item.py +++ b/revengai/models/tag_item.py @@ -25,10 +25,10 @@ class TagItem(BaseModel): """ TagItem """ # noqa: E501 + collection_id: Optional[StrictInt] = None name: StrictStr origin: StrictStr - collection_id: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["name", "origin", "collection_id"] + __properties: ClassVar[List[str]] = ["collection_id", "name", "origin"] model_config = ConfigDict( populate_by_name=True, @@ -86,9 +86,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "collection_id": obj.get("collection_id"), "name": obj.get("name"), - "origin": obj.get("origin"), - "collection_id": obj.get("collection_id") + "origin": obj.get("origin") }) return _obj diff --git a/revengai/models/tag_search_result.py b/revengai/models/tag_search_result.py index aed5136..619f80d 100644 --- a/revengai/models/tag_search_result.py +++ b/revengai/models/tag_search_result.py @@ -25,9 +25,9 @@ class TagSearchResult(BaseModel): """ TagSearchResult """ # noqa: E501 - tag_id: StrictInt = Field(description="The ID of the tag") tag: StrictStr = Field(description="The name of the tag") - __properties: ClassVar[List[str]] = ["tag_id", "tag"] + tag_id: StrictInt = Field(description="The ID of the tag") + __properties: ClassVar[List[str]] = ["tag", "tag_id"] model_config = ConfigDict( populate_by_name=True, @@ -80,8 +80,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "tag_id": obj.get("tag_id"), - "tag": obj.get("tag") + "tag": obj.get("tag"), + "tag_id": obj.get("tag_id") }) return _obj diff --git a/revengai/models/task_response.py b/revengai/models/task_response.py index cd1e5c4..86b2dde 100644 --- a/revengai/models/task_response.py +++ b/revengai/models/task_response.py @@ -26,9 +26,9 @@ class TaskResponse(BaseModel): """ TaskResponse """ # noqa: E501 - status: Optional[TaskStatus] = None error_message: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["status", "error_message"] + status: Optional[TaskStatus] = None + __properties: ClassVar[List[str]] = ["error_message", "status"] model_config = ConfigDict( populate_by_name=True, @@ -86,8 +86,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "status": obj.get("status"), - "error_message": obj.get("error_message") + "error_message": obj.get("error_message"), + "status": obj.get("status") }) return _obj diff --git a/revengai/models/timestamp_model.py b/revengai/models/timestamp_model.py index baf83f6..435950b 100644 --- a/revengai/models/timestamp_model.py +++ b/revengai/models/timestamp_model.py @@ -25,10 +25,10 @@ class TimestampModel(BaseModel): """ TimestampModel """ # noqa: E501 - pe_timestamp: StrictInt - export_timestamp: StrictInt debug_timestamp: StrictInt - __properties: ClassVar[List[str]] = ["pe_timestamp", "export_timestamp", "debug_timestamp"] + export_timestamp: StrictInt + pe_timestamp: StrictInt + __properties: ClassVar[List[str]] = ["debug_timestamp", "export_timestamp", "pe_timestamp"] model_config = ConfigDict( populate_by_name=True, @@ -81,9 +81,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "pe_timestamp": obj.get("pe_timestamp"), + "debug_timestamp": obj.get("debug_timestamp"), "export_timestamp": obj.get("export_timestamp"), - "debug_timestamp": obj.get("debug_timestamp") + "pe_timestamp": obj.get("pe_timestamp") }) return _obj diff --git a/revengai/models/ttps.py b/revengai/models/ttps.py index 376fd58..6eb67c6 100644 --- a/revengai/models/ttps.py +++ b/revengai/models/ttps.py @@ -26,9 +26,9 @@ class TTPS(BaseModel): """ TTPS """ # noqa: E501 - success: StrictBool data: TTPSData - __properties: ClassVar[List[str]] = ["success", "data"] + success: StrictBool + __properties: ClassVar[List[str]] = ["data", "success"] model_config = ConfigDict( populate_by_name=True, @@ -84,8 +84,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "success": obj.get("success"), - "data": TTPSData.from_dict(obj["data"]) if obj.get("data") is not None else None + "data": TTPSData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "success": obj.get("success") }) return _obj diff --git a/revengai/models/ttps_element.py b/revengai/models/ttps_element.py index 3963da7..391a9e8 100644 --- a/revengai/models/ttps_element.py +++ b/revengai/models/ttps_element.py @@ -27,11 +27,11 @@ class TTPSElement(BaseModel): """ TTPSElement """ # noqa: E501 - name: StrictStr attack: List[TTPSAttack] + name: StrictStr occurrences: List[TTPSOccurance] score: StrictInt - __properties: ClassVar[List[str]] = ["name", "attack", "occurrences", "score"] + __properties: ClassVar[List[str]] = ["attack", "name", "occurrences", "score"] model_config = ConfigDict( populate_by_name=True, @@ -98,8 +98,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "attack": [TTPSAttack.from_dict(_item) for _item in obj["attack"]] if obj.get("attack") is not None else None, + "name": obj.get("name"), "occurrences": [TTPSOccurance.from_dict(_item) for _item in obj["occurrences"]] if obj.get("occurrences") is not None else None, "score": obj.get("score") }) diff --git a/revengai/models/ttps_occurance.py b/revengai/models/ttps_occurance.py index 223a088..5782fbc 100644 --- a/revengai/models/ttps_occurance.py +++ b/revengai/models/ttps_occurance.py @@ -25,9 +25,9 @@ class TTPSOccurance(BaseModel): """ TTPSOccurance """ # noqa: E501 - ppid: StrictInt pid: StrictInt - __properties: ClassVar[List[str]] = ["ppid", "pid"] + ppid: StrictInt + __properties: ClassVar[List[str]] = ["pid", "ppid"] model_config = ConfigDict( populate_by_name=True, @@ -80,8 +80,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "ppid": obj.get("ppid"), - "pid": obj.get("pid") + "pid": obj.get("pid"), + "ppid": obj.get("ppid") }) return _obj diff --git a/revengai/models/type_definition.py b/revengai/models/type_definition.py index 7a53e51..e5c8823 100644 --- a/revengai/models/type_definition.py +++ b/revengai/models/type_definition.py @@ -25,11 +25,11 @@ class TypeDefinition(BaseModel): """ TypeDefinition """ # noqa: E501 + artifact_type: Optional[StrictStr] = Field(default=None, description="Type of artifact the type definition is associated with") last_change: Optional[StrictStr] = None name: StrictStr = Field(description="Name of the type definition") type: StrictStr = Field(description="Underlying type of the type definition") - artifact_type: Optional[StrictStr] = Field(default=None, description="Type of artifact the type definition is associated with") - __properties: ClassVar[List[str]] = ["last_change", "name", "type", "artifact_type"] + __properties: ClassVar[List[str]] = ["artifact_type", "last_change", "name", "type"] model_config = ConfigDict( populate_by_name=True, @@ -87,10 +87,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "artifact_type": obj.get("artifact_type"), "last_change": obj.get("last_change"), "name": obj.get("name"), - "type": obj.get("type"), - "artifact_type": obj.get("artifact_type") + "type": obj.get("type") }) return _obj diff --git a/revengai/models/update_function_data_types.py b/revengai/models/update_function_data_types.py index 0984093..354b958 100644 --- a/revengai/models/update_function_data_types.py +++ b/revengai/models/update_function_data_types.py @@ -26,9 +26,9 @@ class UpdateFunctionDataTypes(BaseModel): """ UpdateFunctionDataTypes """ # noqa: E501 - data_types_version: StrictInt = Field(description="Version of the function data types, used to check this update is not overwriting a newer one") data_types: FunctionInfoInput = Field(description="Function data types information to update") - __properties: ClassVar[List[str]] = ["data_types_version", "data_types"] + data_types_version: StrictInt = Field(description="Version of the function data types, used to check this update is not overwriting a newer one") + __properties: ClassVar[List[str]] = ["data_types", "data_types_version"] model_config = ConfigDict( populate_by_name=True, @@ -84,8 +84,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "data_types_version": obj.get("data_types_version"), - "data_types": FunctionInfoInput.from_dict(obj["data_types"]) if obj.get("data_types") is not None else None + "data_types": FunctionInfoInput.from_dict(obj["data_types"]) if obj.get("data_types") is not None else None, + "data_types_version": obj.get("data_types_version") }) return _obj diff --git a/revengai/models/upload_response.py b/revengai/models/upload_response.py index f2b3e7f..99de094 100644 --- a/revengai/models/upload_response.py +++ b/revengai/models/upload_response.py @@ -26,10 +26,10 @@ class UploadResponse(BaseModel): """ UploadResponse """ # noqa: E501 - sha_256_hash: StrictStr file_type: UploadFileType filename: StrictStr - __properties: ClassVar[List[str]] = ["sha_256_hash", "file_type", "filename"] + sha_256_hash: StrictStr + __properties: ClassVar[List[str]] = ["file_type", "filename", "sha_256_hash"] model_config = ConfigDict( populate_by_name=True, @@ -82,9 +82,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "sha_256_hash": obj.get("sha_256_hash"), "file_type": obj.get("file_type"), - "filename": obj.get("filename") + "filename": obj.get("filename"), + "sha_256_hash": obj.get("sha_256_hash") }) return _obj diff --git a/revengai/models/vulnerability.py b/revengai/models/vulnerability.py index f91e5e3..acee73e 100644 --- a/revengai/models/vulnerability.py +++ b/revengai/models/vulnerability.py @@ -25,18 +25,18 @@ class Vulnerability(BaseModel): """ Vulnerability """ # noqa: E501 - vendor: StrictStr - product: StrictStr - version: StrictStr cve_number: StrictStr - severity: StrictStr - source: StrictStr - cvss_version: StrictStr cvss_vector: StrictStr + cvss_version: StrictStr + is_unknown: Optional[StrictBool] = False + product: StrictStr remarks: StrictStr score: Union[StrictFloat, StrictInt] - is_unknown: Optional[StrictBool] = False - __properties: ClassVar[List[str]] = ["vendor", "product", "version", "cve_number", "severity", "source", "cvss_version", "cvss_vector", "remarks", "score", "is_unknown"] + severity: StrictStr + source: StrictStr + vendor: StrictStr + version: StrictStr + __properties: ClassVar[List[str]] = ["cve_number", "cvss_vector", "cvss_version", "is_unknown", "product", "remarks", "score", "severity", "source", "vendor", "version"] @field_validator('severity') def severity_validate_enum(cls, value): @@ -96,17 +96,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "vendor": obj.get("vendor"), - "product": obj.get("product"), - "version": obj.get("version"), "cve_number": obj.get("cve_number"), - "severity": obj.get("severity"), - "source": obj.get("source"), - "cvss_version": obj.get("cvss_version"), "cvss_vector": obj.get("cvss_vector"), + "cvss_version": obj.get("cvss_version"), + "is_unknown": obj.get("is_unknown") if obj.get("is_unknown") is not None else False, + "product": obj.get("product"), "remarks": obj.get("remarks"), "score": obj.get("score"), - "is_unknown": obj.get("is_unknown") if obj.get("is_unknown") is not None else False + "severity": obj.get("severity"), + "source": obj.get("source"), + "vendor": obj.get("vendor"), + "version": obj.get("version") }) return _obj diff --git a/revengai/models/xref_from_response.py b/revengai/models/xref_from_response.py index 71fd222..a569ed8 100644 --- a/revengai/models/xref_from_response.py +++ b/revengai/models/xref_from_response.py @@ -26,16 +26,16 @@ class XrefFromResponse(BaseModel): """ XrefFromResponse """ # noqa: E501 - value: Optional[StrictStr] - is_scalar: Optional[StrictBool] = None is_call: Optional[StrictBool] = None is_data: Optional[StrictBool] = None + is_scalar: Optional[StrictBool] = None is_string: Optional[StrictBool] = None + orig_str_encoding: Optional[StrictStr] = None raw_data: Optional[StrictStr] = None segment: Optional[SegmentInfo] = None - orig_str_encoding: Optional[StrictStr] = None + value: Optional[StrictStr] xref_to: Optional[StrictStr] - __properties: ClassVar[List[str]] = ["value", "is_scalar", "is_call", "is_data", "is_string", "raw_data", "segment", "orig_str_encoding", "xref_to"] + __properties: ClassVar[List[str]] = ["is_call", "is_data", "is_scalar", "is_string", "orig_str_encoding", "raw_data", "segment", "value", "xref_to"] model_config = ConfigDict( populate_by_name=True, @@ -79,16 +79,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of segment if self.segment: _dict['segment'] = self.segment.to_dict() - # set to None if value (nullable) is None - # and model_fields_set contains the field - if self.value is None and "value" in self.model_fields_set: - _dict['value'] = None - - # set to None if is_scalar (nullable) is None - # and model_fields_set contains the field - if self.is_scalar is None and "is_scalar" in self.model_fields_set: - _dict['is_scalar'] = None - # set to None if is_call (nullable) is None # and model_fields_set contains the field if self.is_call is None and "is_call" in self.model_fields_set: @@ -99,11 +89,21 @@ def to_dict(self) -> Dict[str, Any]: if self.is_data is None and "is_data" in self.model_fields_set: _dict['is_data'] = None + # set to None if is_scalar (nullable) is None + # and model_fields_set contains the field + if self.is_scalar is None and "is_scalar" in self.model_fields_set: + _dict['is_scalar'] = None + # set to None if is_string (nullable) is None # and model_fields_set contains the field if self.is_string is None and "is_string" in self.model_fields_set: _dict['is_string'] = None + # set to None if orig_str_encoding (nullable) is None + # and model_fields_set contains the field + if self.orig_str_encoding is None and "orig_str_encoding" in self.model_fields_set: + _dict['orig_str_encoding'] = None + # set to None if raw_data (nullable) is None # and model_fields_set contains the field if self.raw_data is None and "raw_data" in self.model_fields_set: @@ -114,10 +114,10 @@ def to_dict(self) -> Dict[str, Any]: if self.segment is None and "segment" in self.model_fields_set: _dict['segment'] = None - # set to None if orig_str_encoding (nullable) is None + # set to None if value (nullable) is None # and model_fields_set contains the field - if self.orig_str_encoding is None and "orig_str_encoding" in self.model_fields_set: - _dict['orig_str_encoding'] = None + if self.value is None and "value" in self.model_fields_set: + _dict['value'] = None # set to None if xref_to (nullable) is None # and model_fields_set contains the field @@ -136,14 +136,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "value": obj.get("value"), - "is_scalar": obj.get("is_scalar"), "is_call": obj.get("is_call"), "is_data": obj.get("is_data"), + "is_scalar": obj.get("is_scalar"), "is_string": obj.get("is_string"), + "orig_str_encoding": obj.get("orig_str_encoding"), "raw_data": obj.get("raw_data"), "segment": SegmentInfo.from_dict(obj["segment"]) if obj.get("segment") is not None else None, - "orig_str_encoding": obj.get("orig_str_encoding"), + "value": obj.get("value"), "xref_to": obj.get("xref_to") }) return _obj diff --git a/revengai/models/xref_response.py b/revengai/models/xref_response.py index 78b4087..6a0f9bf 100644 --- a/revengai/models/xref_response.py +++ b/revengai/models/xref_response.py @@ -27,9 +27,9 @@ class XrefResponse(BaseModel): """ XrefResponse """ # noqa: E501 - xref_to_list: List[XrefToResponse] xref_from_list: List[XrefFromResponse] - __properties: ClassVar[List[str]] = ["xref_to_list", "xref_from_list"] + xref_to_list: List[XrefToResponse] + __properties: ClassVar[List[str]] = ["xref_from_list", "xref_to_list"] model_config = ConfigDict( populate_by_name=True, @@ -70,13 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in xref_to_list (list) - _items = [] - if self.xref_to_list: - for _item_xref_to_list in self.xref_to_list: - if _item_xref_to_list: - _items.append(_item_xref_to_list.to_dict()) - _dict['xref_to_list'] = _items # override the default output from pydantic by calling `to_dict()` of each item in xref_from_list (list) _items = [] if self.xref_from_list: @@ -84,6 +77,13 @@ def to_dict(self) -> Dict[str, Any]: if _item_xref_from_list: _items.append(_item_xref_from_list.to_dict()) _dict['xref_from_list'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in xref_to_list (list) + _items = [] + if self.xref_to_list: + for _item_xref_to_list in self.xref_to_list: + if _item_xref_to_list: + _items.append(_item_xref_to_list.to_dict()) + _dict['xref_to_list'] = _items return _dict @classmethod @@ -96,8 +96,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "xref_to_list": [XrefToResponse.from_dict(_item) for _item in obj["xref_to_list"]] if obj.get("xref_to_list") is not None else None, - "xref_from_list": [XrefFromResponse.from_dict(_item) for _item in obj["xref_from_list"]] if obj.get("xref_from_list") is not None else None + "xref_from_list": [XrefFromResponse.from_dict(_item) for _item in obj["xref_from_list"]] if obj.get("xref_from_list") is not None else None, + "xref_to_list": [XrefToResponse.from_dict(_item) for _item in obj["xref_to_list"]] if obj.get("xref_to_list") is not None else None }) return _obj diff --git a/revengai/models/xref_to_response.py b/revengai/models/xref_to_response.py index 253563a..763c963 100644 --- a/revengai/models/xref_to_response.py +++ b/revengai/models/xref_to_response.py @@ -26,16 +26,16 @@ class XrefToResponse(BaseModel): """ XrefToResponse """ # noqa: E501 - value: Optional[StrictStr] - is_scalar: Optional[StrictBool] = None is_call: Optional[StrictBool] = None is_data: Optional[StrictBool] = None + is_scalar: Optional[StrictBool] = None is_string: Optional[StrictBool] = None + orig_str_encoding: Optional[StrictStr] = None raw_data: Optional[StrictStr] = None segment: Optional[SegmentInfo] = None - orig_str_encoding: Optional[StrictStr] = None + value: Optional[StrictStr] xref_from: Optional[StrictStr] - __properties: ClassVar[List[str]] = ["value", "is_scalar", "is_call", "is_data", "is_string", "raw_data", "segment", "orig_str_encoding", "xref_from"] + __properties: ClassVar[List[str]] = ["is_call", "is_data", "is_scalar", "is_string", "orig_str_encoding", "raw_data", "segment", "value", "xref_from"] model_config = ConfigDict( populate_by_name=True, @@ -79,16 +79,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of segment if self.segment: _dict['segment'] = self.segment.to_dict() - # set to None if value (nullable) is None - # and model_fields_set contains the field - if self.value is None and "value" in self.model_fields_set: - _dict['value'] = None - - # set to None if is_scalar (nullable) is None - # and model_fields_set contains the field - if self.is_scalar is None and "is_scalar" in self.model_fields_set: - _dict['is_scalar'] = None - # set to None if is_call (nullable) is None # and model_fields_set contains the field if self.is_call is None and "is_call" in self.model_fields_set: @@ -99,11 +89,21 @@ def to_dict(self) -> Dict[str, Any]: if self.is_data is None and "is_data" in self.model_fields_set: _dict['is_data'] = None + # set to None if is_scalar (nullable) is None + # and model_fields_set contains the field + if self.is_scalar is None and "is_scalar" in self.model_fields_set: + _dict['is_scalar'] = None + # set to None if is_string (nullable) is None # and model_fields_set contains the field if self.is_string is None and "is_string" in self.model_fields_set: _dict['is_string'] = None + # set to None if orig_str_encoding (nullable) is None + # and model_fields_set contains the field + if self.orig_str_encoding is None and "orig_str_encoding" in self.model_fields_set: + _dict['orig_str_encoding'] = None + # set to None if raw_data (nullable) is None # and model_fields_set contains the field if self.raw_data is None and "raw_data" in self.model_fields_set: @@ -114,10 +114,10 @@ def to_dict(self) -> Dict[str, Any]: if self.segment is None and "segment" in self.model_fields_set: _dict['segment'] = None - # set to None if orig_str_encoding (nullable) is None + # set to None if value (nullable) is None # and model_fields_set contains the field - if self.orig_str_encoding is None and "orig_str_encoding" in self.model_fields_set: - _dict['orig_str_encoding'] = None + if self.value is None and "value" in self.model_fields_set: + _dict['value'] = None # set to None if xref_from (nullable) is None # and model_fields_set contains the field @@ -136,14 +136,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "value": obj.get("value"), - "is_scalar": obj.get("is_scalar"), "is_call": obj.get("is_call"), "is_data": obj.get("is_data"), + "is_scalar": obj.get("is_scalar"), "is_string": obj.get("is_string"), + "orig_str_encoding": obj.get("orig_str_encoding"), "raw_data": obj.get("raw_data"), "segment": SegmentInfo.from_dict(obj["segment"]) if obj.get("segment") is not None else None, - "orig_str_encoding": obj.get("orig_str_encoding"), + "value": obj.get("value"), "xref_from": obj.get("xref_from") }) return _obj diff --git a/test/test_analyses_core_api.py b/test/test_analyses_core_api.py index 68e2e05..acc8153 100644 --- a/test/test_analyses_core_api.py +++ b/test/test_analyses_core_api.py @@ -102,6 +102,13 @@ def test_lookup_binary_id(self) -> None: """ pass + def test_put_analysis_strings(self) -> None: + """Test case for put_analysis_strings + + Add strings to the analysis + """ + pass + def test_requeue_analysis(self) -> None: """Test case for requeue_analysis diff --git a/test/test_analysis_bulk_add_tags_request.py b/test/test_analysis_bulk_add_tags_request.py index d302b5c..64010e2 100644 --- a/test/test_analysis_bulk_add_tags_request.py +++ b/test/test_analysis_bulk_add_tags_request.py @@ -34,21 +34,21 @@ def make_instance(self, include_optional) -> AnalysisBulkAddTagsRequest: model = AnalysisBulkAddTagsRequest() if include_optional: return AnalysisBulkAddTagsRequest( - tags = [ - '' - ], analysis_ids = [ 56 + ], + tags = [ + '' ] ) else: return AnalysisBulkAddTagsRequest( - tags = [ - '' - ], analysis_ids = [ 56 ], + tags = [ + '' + ], ) """ diff --git a/test/test_analysis_bulk_add_tags_response.py b/test/test_analysis_bulk_add_tags_response.py index 838651e..536799e 100644 --- a/test/test_analysis_bulk_add_tags_response.py +++ b/test/test_analysis_bulk_add_tags_response.py @@ -37,8 +37,8 @@ def make_instance(self, include_optional) -> AnalysisBulkAddTagsResponse: results = [ revengai.models.analysis_bulk_add_tags_response_item.AnalysisBulkAddTagsResponseItem( analysis_id = 56, - message = '', - error = '', ) + error = '', + message = '', ) ] ) else: @@ -46,8 +46,8 @@ def make_instance(self, include_optional) -> AnalysisBulkAddTagsResponse: results = [ revengai.models.analysis_bulk_add_tags_response_item.AnalysisBulkAddTagsResponseItem( analysis_id = 56, - message = '', - error = '', ) + error = '', + message = '', ) ], ) """ diff --git a/test/test_analysis_bulk_add_tags_response_item.py b/test/test_analysis_bulk_add_tags_response_item.py index 23a9179..a6f228d 100644 --- a/test/test_analysis_bulk_add_tags_response_item.py +++ b/test/test_analysis_bulk_add_tags_response_item.py @@ -35,8 +35,8 @@ def make_instance(self, include_optional) -> AnalysisBulkAddTagsResponseItem: if include_optional: return AnalysisBulkAddTagsResponseItem( analysis_id = 56, - message = '', - error = '' + error = '', + message = '' ) else: return AnalysisBulkAddTagsResponseItem( diff --git a/test/test_analysis_config.py b/test/test_analysis_config.py index 22102c4..b3614e9 100644 --- a/test/test_analysis_config.py +++ b/test/test_analysis_config.py @@ -34,16 +34,16 @@ def make_instance(self, include_optional) -> AnalysisConfig: model = AnalysisConfig() if include_optional: return AnalysisConfig( - scrape_third_party_config = revengai.models.scrape_third_party_config.ScrapeThirdPartyConfig( - enabled = True, ), + advanced_analysis = True, + generate_capabilities = True, generate_cves = True, generate_sbom = True, - generate_capabilities = True, no_cache = True, - advanced_analysis = True, sandbox_config = revengai.models.sandbox_options.SandboxOptions( - enabled = True, - command_line_args = '', ) + command_line_args = '', + enabled = True, ), + scrape_third_party_config = revengai.models.scrape_third_party_config.ScrapeThirdPartyConfig( + enabled = True, ) ) else: return AnalysisConfig( diff --git a/test/test_analysis_create_request.py b/test/test_analysis_create_request.py index 444fa34..396111c 100644 --- a/test/test_analysis_create_request.py +++ b/test/test_analysis_create_request.py @@ -34,40 +34,40 @@ def make_instance(self, include_optional) -> AnalysisCreateRequest: model = AnalysisCreateRequest() if include_optional: return AnalysisCreateRequest( + analysis_config = revengai.models.analysis_config.AnalysisConfig( + advanced_analysis = True, + generate_capabilities = True, + generate_cves = True, + generate_sbom = True, + no_cache = True, + sandbox_config = revengai.models.sandbox_options.SandboxOptions( + command_line_args = '', + enabled = True, ), + scrape_third_party_config = revengai.models.scrape_third_party_config.ScrapeThirdPartyConfig( + enabled = True, ), ), + analysis_scope = 'PRIVATE', + auto_run_agents = revengai.models.auto_run_agents.AutoRunAgents( + triage = True, ), + binary_config = revengai.models.binary_config.BinaryConfig( + file_format = 'pe', + isa = 'x86', + platform = 'linux', ), + debug_hash = '', filename = '', sha_256_hash = '', - tags = [ - revengai.models.tag.Tag( - name = '', ) - ], - analysis_scope = 'PRIVATE', symbols = revengai.models.symbols.Symbols( base_address = 56, function_boundaries = [ revengai.models.function_boundary.FunctionBoundary( - mangled_name = '', - start_address = 56, end_address = 56, - include_in_analysis = True, ) + include_in_analysis = True, + mangled_name = '', + start_address = 56, ) ], ), - debug_hash = '', - analysis_config = revengai.models.analysis_config.AnalysisConfig( - scrape_third_party_config = revengai.models.scrape_third_party_config.ScrapeThirdPartyConfig( - enabled = True, ), - generate_cves = True, - generate_sbom = True, - generate_capabilities = True, - no_cache = True, - advanced_analysis = True, - sandbox_config = revengai.models.sandbox_options.SandboxOptions( - enabled = True, - command_line_args = '', ), ), - binary_config = revengai.models.binary_config.BinaryConfig( - isa = 'x86', - platform = 'linux', - file_format = 'pe', ), - auto_run_agents = revengai.models.auto_run_agents.AutoRunAgents( - triage = True, ) + tags = [ + revengai.models.tag.Tag( + name = '', ) + ] ) else: return AnalysisCreateRequest( diff --git a/test/test_analysis_detail_response.py b/test/test_analysis_detail_response.py index 5b57d1d..3f37686 100644 --- a/test/test_analysis_detail_response.py +++ b/test/test_analysis_detail_response.py @@ -40,6 +40,8 @@ def make_instance(self, include_optional) -> AnalysisDetailResponse: analysis_id = 56, analysis_scope = '', architecture = '', + auto_run_agents = revengai.models.auto_run_agents.AutoRunAgents( + triage = True, ), binary_dynamic = True, binary_format = '', binary_name = '', @@ -52,9 +54,7 @@ def make_instance(self, include_optional) -> AnalysisDetailResponse: sbom = { 'key' : null }, - sha_256_hash = '', - auto_run_agents = revengai.models.auto_run_agents.AutoRunAgents( - triage = True, ) + sha_256_hash = '' ) else: return AnalysisDetailResponse( @@ -64,6 +64,8 @@ def make_instance(self, include_optional) -> AnalysisDetailResponse: analysis_id = 56, analysis_scope = '', architecture = '', + auto_run_agents = revengai.models.auto_run_agents.AutoRunAgents( + triage = True, ), binary_dynamic = True, binary_format = '', binary_name = '', @@ -74,8 +76,6 @@ def make_instance(self, include_optional) -> AnalysisDetailResponse: debug = True, model_name = '', sha_256_hash = '', - auto_run_agents = revengai.models.auto_run_agents.AutoRunAgents( - triage = True, ), ) """ diff --git a/test/test_analysis_function_matching_request.py b/test/test_analysis_function_matching_request.py index b69038e..3da0fda 100644 --- a/test/test_analysis_function_matching_request.py +++ b/test/test_analysis_function_matching_request.py @@ -34,7 +34,6 @@ def make_instance(self, include_optional) -> AnalysisFunctionMatchingRequest: model = AnalysisFunctionMatchingRequest() if include_optional: return AnalysisFunctionMatchingRequest( - min_similarity = 0.0, filters = revengai.models.function_matching_filters.FunctionMatchingFilters( binary_ids = [ 56 @@ -42,20 +41,21 @@ def make_instance(self, include_optional) -> AnalysisFunctionMatchingRequest: collection_ids = [ 56 ], + debug_types = [ + 'USER' + ], function_ids = [ 56 ], user_ids = [ 56 - ], - debug_types = [ - 'USER' ], ), - results_per_function = 1.0, - page = 1.0, - page_size = 0.0, - status_only = True, + min_similarity = 0, no_cache = True, + page = 1, + page_size = 0, + results_per_function = 1, + status_only = True, use_canonical_names = True ) else: diff --git a/test/test_analysis_functions.py b/test/test_analysis_functions.py index dfbfb42..a085c1f 100644 --- a/test/test_analysis_functions.py +++ b/test/test_analysis_functions.py @@ -36,36 +36,36 @@ def make_instance(self, include_optional) -> AnalysisFunctions: return AnalysisFunctions( functions = [ revengai.models.function.Function( - function_id = 56, - function_name = '', - function_mangled_name = '', - function_vaddr = 56, - function_size = 56, debug = True, - embedding_3d = [ + embedding_1d = [ 1.337 ], - embedding_1d = [ + embedding_3d = [ 1.337 - ], ) + ], + function_id = 56, + function_mangled_name = '', + function_name = '', + function_size = 56, + function_vaddr = 56, ) ] ) else: return AnalysisFunctions( functions = [ revengai.models.function.Function( - function_id = 56, - function_name = '', - function_mangled_name = '', - function_vaddr = 56, - function_size = 56, debug = True, - embedding_3d = [ + embedding_1d = [ 1.337 ], - embedding_1d = [ + embedding_3d = [ 1.337 - ], ) + ], + function_id = 56, + function_mangled_name = '', + function_name = '', + function_size = 56, + function_vaddr = 56, ) ], ) """ diff --git a/test/test_analysis_functions_list.py b/test/test_analysis_functions_list.py index e1c3825..49bc4b2 100644 --- a/test/test_analysis_functions_list.py +++ b/test/test_analysis_functions_list.py @@ -36,36 +36,36 @@ def make_instance(self, include_optional) -> AnalysisFunctionsList: return AnalysisFunctionsList( functions = [ revengai.models.function_list_item.FunctionListItem( + debug = True, id = 56, + mangled_name = '', name = '', - name_source_type = 'SYSTEM', name_source = revengai.models.name_source_type.NameSourceType( - type = 'SYSTEM', - function_id = 56, + analysis_id = 56, binary_id = 56, - analysis_id = 56, ), - mangled_name = '', - vaddr = 56, + function_id = 56, + type = 'SYSTEM', ), + name_source_type = 'SYSTEM', size = 56, - debug = True, ) + vaddr = 56, ) ] ) else: return AnalysisFunctionsList( functions = [ revengai.models.function_list_item.FunctionListItem( + debug = True, id = 56, + mangled_name = '', name = '', - name_source_type = 'SYSTEM', name_source = revengai.models.name_source_type.NameSourceType( - type = 'SYSTEM', - function_id = 56, + analysis_id = 56, binary_id = 56, - analysis_id = 56, ), - mangled_name = '', - vaddr = 56, + function_id = 56, + type = 'SYSTEM', ), + name_source_type = 'SYSTEM', size = 56, - debug = True, ) + vaddr = 56, ) ], ) """ diff --git a/test/test_analysis_record.py b/test/test_analysis_record.py index 274c33e..ed58ff7 100644 --- a/test/test_analysis_record.py +++ b/test/test_analysis_record.py @@ -36,43 +36,43 @@ def make_instance(self, include_optional) -> AnalysisRecord: return AnalysisRecord( analysis_id = 56, analysis_scope = '', + base_address = 56, binary_id = 56, - model_id = 56, - model_name = '', - status = '', - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - is_owner = True, binary_name = '', - sha_256_hash = '', - function_boundaries_hash = '', binary_size = 56, - username = '', + creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), dynamic_execution_status = 'PENDING', dynamic_execution_task_id = 56, - base_address = 56, + function_boundaries_hash = '', + is_owner = True, + model_id = 56, + model_name = '', + sha_256_hash = '', + status = '', tags = [ revengai.models.tag_item.TagItem( + collection_id = 56, name = '', - origin = '', - collection_id = 56, ) - ] + origin = '', ) + ], + username = '' ) else: return AnalysisRecord( analysis_id = 56, analysis_scope = '', + base_address = 56, binary_id = 56, - model_id = 56, - model_name = '', - status = '', + binary_name = '', + binary_size = 56, creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + function_boundaries_hash = '', is_owner = True, - binary_name = '', + model_id = 56, + model_name = '', sha_256_hash = '', - function_boundaries_hash = '', - binary_size = 56, + status = '', username = '', - base_address = 56, ) """ diff --git a/test/test_analysis_string_input.py b/test/test_analysis_string_input.py new file mode 100644 index 0000000..b0fc9d6 --- /dev/null +++ b/test/test_analysis_string_input.py @@ -0,0 +1,55 @@ +# 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.analysis_string_input import AnalysisStringInput + +class TestAnalysisStringInput(unittest.TestCase): + """AnalysisStringInput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisStringInput: + """Test AnalysisStringInput + 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 `AnalysisStringInput` + """ + model = AnalysisStringInput() + if include_optional: + return AnalysisStringInput( + source = 'SYSTEM', + vaddr = 56, + value = '' + ) + else: + return AnalysisStringInput( + source = 'SYSTEM', + vaddr = 56, + value = '', + ) + """ + + def testAnalysisStringInput(self): + """Test AnalysisStringInput""" + # 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_analysis_strings_response.py b/test/test_analysis_strings_response.py index 33152fc..8e345e1 100644 --- a/test/test_analysis_strings_response.py +++ b/test/test_analysis_strings_response.py @@ -36,12 +36,13 @@ def make_instance(self, include_optional) -> AnalysisStringsResponse: return AnalysisStringsResponse( strings = [ revengai.models.string_functions.StringFunctions( - value = '', functions = [ revengai.models.function.Function( function_id = 56, function_vaddr = 56, ) - ], ) + ], + source = 'SYSTEM', + value = '', ) ], total_strings = 56 ) @@ -49,12 +50,13 @@ def make_instance(self, include_optional) -> AnalysisStringsResponse: return AnalysisStringsResponse( strings = [ revengai.models.string_functions.StringFunctions( - value = '', functions = [ revengai.models.function.Function( function_id = 56, function_vaddr = 56, ) - ], ) + ], + source = 'SYSTEM', + value = '', ) ], total_strings = 56, ) diff --git a/test/test_analysis_tags.py b/test/test_analysis_tags.py index f05ed90..65d7cf5 100644 --- a/test/test_analysis_tags.py +++ b/test/test_analysis_tags.py @@ -36,18 +36,18 @@ def make_instance(self, include_optional) -> AnalysisTags: return AnalysisTags( analysis_tags = [ revengai.models.tag_item.TagItem( + collection_id = 56, name = '', - origin = '', - collection_id = 56, ) + origin = '', ) ] ) else: return AnalysisTags( analysis_tags = [ revengai.models.tag_item.TagItem( + collection_id = 56, name = '', - origin = '', - collection_id = 56, ) + origin = '', ) ], ) """ diff --git a/test/test_analysis_update_request.py b/test/test_analysis_update_request.py index 712c7f4..68a3164 100644 --- a/test/test_analysis_update_request.py +++ b/test/test_analysis_update_request.py @@ -34,8 +34,8 @@ def make_instance(self, include_optional) -> AnalysisUpdateRequest: model = AnalysisUpdateRequest() if include_optional: return AnalysisUpdateRequest( - binary_name = '', - analysis_scope = 'PUBLIC' + analysis_scope = 'PUBLIC', + binary_name = '' ) else: return AnalysisUpdateRequest( diff --git a/test/test_app_api_rest_v2_functions_types_function.py b/test/test_app_api_rest_v2_functions_types_function.py index 8e620e5..9555055 100644 --- a/test/test_app_api_rest_v2_functions_types_function.py +++ b/test/test_app_api_rest_v2_functions_types_function.py @@ -34,27 +34,27 @@ def make_instance(self, include_optional) -> AppApiRestV2FunctionsTypesFunction: model = AppApiRestV2FunctionsTypesFunction() if include_optional: return AppApiRestV2FunctionsTypesFunction( - function_id = 56, - function_name = '', - function_mangled_name = '', - function_vaddr = 56, - function_size = 56, debug = True, - embedding_3d = [ + embedding_1d = [ 1.337 ], - embedding_1d = [ + embedding_3d = [ 1.337 - ] + ], + function_id = 56, + function_mangled_name = '', + function_name = '', + function_size = 56, + function_vaddr = 56 ) else: return AppApiRestV2FunctionsTypesFunction( + debug = True, function_id = 56, - function_name = '', function_mangled_name = '', - function_vaddr = 56, + function_name = '', function_size = 56, - debug = True, + function_vaddr = 56, ) """ diff --git a/test/test_argument.py b/test/test_argument.py index 6cb551c..c2f4eb4 100644 --- a/test/test_argument.py +++ b/test/test_argument.py @@ -35,17 +35,17 @@ def make_instance(self, include_optional) -> Argument: if include_optional: return Argument( last_change = '', - offset = 56, name = '', - type = '', - size = 56 + offset = 56, + size = 56, + type = '' ) else: return Argument( - offset = 56, name = '', - type = '', + offset = 56, size = 56, + type = '', ) """ diff --git a/test/test_auto_unstrip_request.py b/test/test_auto_unstrip_request.py index a309b2a..ad8272d 100644 --- a/test/test_auto_unstrip_request.py +++ b/test/test_auto_unstrip_request.py @@ -34,12 +34,12 @@ def make_instance(self, include_optional) -> AutoUnstripRequest: model = AutoUnstripRequest() if include_optional: return AutoUnstripRequest( - min_similarity = 0.0, apply = True, - confidence_threshold = 0.0, - min_group_size = 1.0, - status_only = True, + confidence_threshold = 0, + min_group_size = 1, + min_similarity = 0, no_cache = True, + status_only = True, use_canonical_names = True ) else: diff --git a/test/test_auto_unstrip_response.py b/test/test_auto_unstrip_response.py index 1e5351e..7a938d6 100644 --- a/test/test_auto_unstrip_response.py +++ b/test/test_auto_unstrip_response.py @@ -34,18 +34,18 @@ def make_instance(self, include_optional) -> AutoUnstripResponse: model = AutoUnstripResponse() if include_optional: return AutoUnstripResponse( - progress = 56, - status = '', - total_time = 56, + applied = True, + error_message = '', matches = [ revengai.models.matched_function_suggestion.MatchedFunctionSuggestion( function_id = 56, function_vaddr = 56, - suggested_name = '', - suggested_demangled_name = '', ) + suggested_demangled_name = '', + suggested_name = '', ) ], - applied = True, - error_message = '' + progress = 56, + status = '', + total_time = 56 ) else: return AutoUnstripResponse( diff --git a/test/test_base_response.py b/test/test_base_response.py index 016b552..d1d17d4 100644 --- a/test/test_base_response.py +++ b/test/test_base_response.py @@ -34,19 +34,19 @@ def make_instance(self, include_optional) -> BaseResponse: model = BaseResponse() if include_optional: return BaseResponse( - status = True, data = None, - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponse( diff --git a/test/test_base_response_additional_details_status_response.py b/test/test_base_response_additional_details_status_response.py index 192fd18..cdf92a8 100644 --- a/test/test_base_response_additional_details_status_response.py +++ b/test/test_base_response_additional_details_status_response.py @@ -34,20 +34,20 @@ def make_instance(self, include_optional) -> BaseResponseAdditionalDetailsStatus model = BaseResponseAdditionalDetailsStatusResponse() if include_optional: return BaseResponseAdditionalDetailsStatusResponse( - status = True, data = revengai.models.additional_details_status_response.AdditionalDetailsStatusResponse( status = '', ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseAdditionalDetailsStatusResponse( diff --git a/test/test_base_response_analysis_bulk_add_tags_response.py b/test/test_base_response_analysis_bulk_add_tags_response.py index 50ae691..40ab4c1 100644 --- a/test/test_base_response_analysis_bulk_add_tags_response.py +++ b/test/test_base_response_analysis_bulk_add_tags_response.py @@ -34,25 +34,25 @@ def make_instance(self, include_optional) -> BaseResponseAnalysisBulkAddTagsResp model = BaseResponseAnalysisBulkAddTagsResponse() if include_optional: return BaseResponseAnalysisBulkAddTagsResponse( - status = True, data = revengai.models.analysis_bulk_add_tags_response.AnalysisBulkAddTagsResponse( results = [ revengai.models.analysis_bulk_add_tags_response_item.AnalysisBulkAddTagsResponseItem( analysis_id = 56, - message = '', - error = '', ) + error = '', + message = '', ) ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseAnalysisBulkAddTagsResponse( diff --git a/test/test_base_response_analysis_create_response.py b/test/test_base_response_analysis_create_response.py index 0859bab..b0ade74 100644 --- a/test/test_base_response_analysis_create_response.py +++ b/test/test_base_response_analysis_create_response.py @@ -34,21 +34,21 @@ def make_instance(self, include_optional) -> BaseResponseAnalysisCreateResponse: model = BaseResponseAnalysisCreateResponse() if include_optional: return BaseResponseAnalysisCreateResponse( - status = True, data = revengai.models.analysis_create_response.AnalysisCreateResponse( analysis_id = 56, binary_id = 56, ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseAnalysisCreateResponse( diff --git a/test/test_base_response_analysis_detail_response.py b/test/test_base_response_analysis_detail_response.py index 3d27c76..46dac6a 100644 --- a/test/test_base_response_analysis_detail_response.py +++ b/test/test_base_response_analysis_detail_response.py @@ -34,7 +34,6 @@ def make_instance(self, include_optional) -> BaseResponseAnalysisDetailResponse: model = BaseResponseAnalysisDetailResponse() if include_optional: return BaseResponseAnalysisDetailResponse( - status = True, data = revengai.models.analysis_detail_response.AnalysisDetailResponse( access = revengai.models.analysis_access_info.AnalysisAccessInfo( owner = True, @@ -42,6 +41,8 @@ def make_instance(self, include_optional) -> BaseResponseAnalysisDetailResponse: analysis_id = 56, analysis_scope = '', architecture = '', + auto_run_agents = revengai.models.auto_run_agents.AutoRunAgents( + triage = True, ), binary_dynamic = True, binary_format = '', binary_name = '', @@ -54,20 +55,19 @@ def make_instance(self, include_optional) -> BaseResponseAnalysisDetailResponse: sbom = { 'key' : null }, - sha_256_hash = '', - auto_run_agents = revengai.models.auto_run_agents.AutoRunAgents( - triage = True, ), ), - message = '', + sha_256_hash = '', ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseAnalysisDetailResponse( diff --git a/test/test_base_response_analysis_function_mapping.py b/test/test_base_response_analysis_function_mapping.py index 4c5210e..092388f 100644 --- a/test/test_base_response_analysis_function_mapping.py +++ b/test/test_base_response_analysis_function_mapping.py @@ -34,7 +34,6 @@ def make_instance(self, include_optional) -> BaseResponseAnalysisFunctionMapping model = BaseResponseAnalysisFunctionMapping() if include_optional: return BaseResponseAnalysisFunctionMapping( - status = True, data = revengai.models.analysis_function_mapping.AnalysisFunctionMapping( function_maps = revengai.models.function_mapping.FunctionMapping( function_map = { @@ -46,17 +45,18 @@ def make_instance(self, include_optional) -> BaseResponseAnalysisFunctionMapping name_map = { 'key' : '' }, ), ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseAnalysisFunctionMapping( diff --git a/test/test_base_response_analysis_functions.py b/test/test_base_response_analysis_functions.py index b472c23..1df8e0d 100644 --- a/test/test_base_response_analysis_functions.py +++ b/test/test_base_response_analysis_functions.py @@ -34,34 +34,34 @@ def make_instance(self, include_optional) -> BaseResponseAnalysisFunctions: model = BaseResponseAnalysisFunctions() if include_optional: return BaseResponseAnalysisFunctions( - status = True, data = revengai.models.analysis_functions.AnalysisFunctions( functions = [ revengai.models.function.Function( - function_id = 56, - function_name = '', - function_mangled_name = '', - function_vaddr = 56, - function_size = 56, debug = True, - embedding_3d = [ + embedding_1d = [ 1.337 ], - embedding_1d = [ + embedding_3d = [ 1.337 - ], ) + ], + function_id = 56, + function_mangled_name = '', + function_name = '', + function_size = 56, + function_vaddr = 56, ) ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseAnalysisFunctions( diff --git a/test/test_base_response_analysis_functions_list.py b/test/test_base_response_analysis_functions_list.py index 943f1a5..72972aa 100644 --- a/test/test_base_response_analysis_functions_list.py +++ b/test/test_base_response_analysis_functions_list.py @@ -34,34 +34,34 @@ def make_instance(self, include_optional) -> BaseResponseAnalysisFunctionsList: model = BaseResponseAnalysisFunctionsList() if include_optional: return BaseResponseAnalysisFunctionsList( - status = True, data = revengai.models.analysis_functions_list.AnalysisFunctionsList( functions = [ revengai.models.function_list_item.FunctionListItem( + debug = True, id = 56, + mangled_name = '', name = '', - name_source_type = 'SYSTEM', name_source = revengai.models.name_source_type.NameSourceType( - type = 'SYSTEM', - function_id = 56, + analysis_id = 56, binary_id = 56, - analysis_id = 56, ), - mangled_name = '', - vaddr = 56, + function_id = 56, + type = 'SYSTEM', ), + name_source_type = 'SYSTEM', size = 56, - debug = True, ) + vaddr = 56, ) ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseAnalysisFunctionsList( diff --git a/test/test_base_response_analysis_stages_response.py b/test/test_base_response_analysis_stages_response.py index fcc9b33..cb729d3 100644 --- a/test/test_base_response_analysis_stages_response.py +++ b/test/test_base_response_analysis_stages_response.py @@ -34,7 +34,6 @@ def make_instance(self, include_optional) -> BaseResponseAnalysisStagesResponse: model = BaseResponseAnalysisStagesResponse() if include_optional: return BaseResponseAnalysisStagesResponse( - status = True, data = revengai.models.analysis_stages_response.AnalysisStagesResponse( events = [ revengai.models.stage_event.StageEvent( @@ -42,17 +41,18 @@ def make_instance(self, include_optional) -> BaseResponseAnalysisStagesResponse: status = 'QUEUED', timestamp = '', ) ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseAnalysisStagesResponse( diff --git a/test/test_base_response_analysis_strings_response.py b/test/test_base_response_analysis_strings_response.py index f61575c..5b012f7 100644 --- a/test/test_base_response_analysis_strings_response.py +++ b/test/test_base_response_analysis_strings_response.py @@ -34,29 +34,30 @@ def make_instance(self, include_optional) -> BaseResponseAnalysisStringsResponse model = BaseResponseAnalysisStringsResponse() if include_optional: return BaseResponseAnalysisStringsResponse( - status = True, data = revengai.models.analysis_strings_response.AnalysisStringsResponse( strings = [ revengai.models.string_functions.StringFunctions( - value = '', functions = [ revengai.models.function.Function( function_id = 56, function_vaddr = 56, ) - ], ) + ], + source = 'SYSTEM', + value = '', ) ], total_strings = 56, ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseAnalysisStringsResponse( diff --git a/test/test_base_response_analysis_strings_status_response.py b/test/test_base_response_analysis_strings_status_response.py index eabf640..2b19249 100644 --- a/test/test_base_response_analysis_strings_status_response.py +++ b/test/test_base_response_analysis_strings_status_response.py @@ -34,20 +34,20 @@ def make_instance(self, include_optional) -> BaseResponseAnalysisStringsStatusRe model = BaseResponseAnalysisStringsStatusResponse() if include_optional: return BaseResponseAnalysisStringsStatusResponse( - status = True, data = revengai.models.analysis_strings_status_response.AnalysisStringsStatusResponse( status = 'UNINITIALISED', ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseAnalysisStringsStatusResponse( diff --git a/test/test_base_response_analysis_tags.py b/test/test_base_response_analysis_tags.py index edcbf5e..40bde9c 100644 --- a/test/test_base_response_analysis_tags.py +++ b/test/test_base_response_analysis_tags.py @@ -34,25 +34,25 @@ def make_instance(self, include_optional) -> BaseResponseAnalysisTags: model = BaseResponseAnalysisTags() if include_optional: return BaseResponseAnalysisTags( - status = True, data = revengai.models.analysis_tags.AnalysisTags( analysis_tags = [ revengai.models.tag_item.TagItem( + collection_id = 56, name = '', - origin = '', - collection_id = 56, ) + origin = '', ) ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseAnalysisTags( diff --git a/test/test_base_response_analysis_update_tags_response.py b/test/test_base_response_analysis_update_tags_response.py index ed54d2f..55bfc87 100644 --- a/test/test_base_response_analysis_update_tags_response.py +++ b/test/test_base_response_analysis_update_tags_response.py @@ -34,24 +34,24 @@ def make_instance(self, include_optional) -> BaseResponseAnalysisUpdateTagsRespo model = BaseResponseAnalysisUpdateTagsResponse() if include_optional: return BaseResponseAnalysisUpdateTagsResponse( - status = True, data = revengai.models.analysis_update_tags_response.AnalysisUpdateTagsResponse( tags = [ revengai.models.tag_response.TagResponse( name = '', origin = '', ) ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseAnalysisUpdateTagsResponse( diff --git a/test/test_base_response_basic.py b/test/test_base_response_basic.py index c47b674..0c44ae5 100644 --- a/test/test_base_response_basic.py +++ b/test/test_base_response_basic.py @@ -34,36 +34,36 @@ def make_instance(self, include_optional) -> BaseResponseBasic: model = BaseResponseBasic() if include_optional: return BaseResponseBasic( - status = True, data = revengai.models.basic.Basic( + analysis_scope = '', + base_address = 56, binary_id = 56, binary_name = '', binary_size = 56, + binary_uuid = '', creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - sha_256_hash = '', - model_name = '', - model_id = 56, - owner_username = '', - is_system = True, - analysis_scope = '', - is_owner = True, debug = True, function_count = 56, is_advanced = True, - base_address = 56, - binary_uuid = '', - sequencer_version = '', ), - message = '', + is_owner = True, + is_system = True, + model_id = 56, + model_name = '', + owner_username = '', + sequencer_version = '', + sha_256_hash = '', ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseBasic( diff --git a/test/test_base_response_binaries_related_status_response.py b/test/test_base_response_binaries_related_status_response.py index ac809da..9ff3894 100644 --- a/test/test_base_response_binaries_related_status_response.py +++ b/test/test_base_response_binaries_related_status_response.py @@ -34,20 +34,20 @@ def make_instance(self, include_optional) -> BaseResponseBinariesRelatedStatusRe model = BaseResponseBinariesRelatedStatusResponse() if include_optional: return BaseResponseBinariesRelatedStatusResponse( - status = True, data = revengai.models.binaries_related_status_response.BinariesRelatedStatusResponse( status = '', ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseBinariesRelatedStatusResponse( diff --git a/test/test_base_response_binary_additional_response.py b/test/test_base_response_binary_additional_response.py index b84af61..335009c 100644 --- a/test/test_base_response_binary_additional_response.py +++ b/test/test_base_response_binary_additional_response.py @@ -34,215 +34,215 @@ def make_instance(self, include_optional) -> BaseResponseBinaryAdditionalRespons model = BaseResponseBinaryAdditionalResponse() if include_optional: return BaseResponseBinaryAdditionalResponse( - status = True, data = revengai.models.binary_additional_response.BinaryAdditionalResponse( binary_id = 56, + creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), details = revengai.models.binary_additional_details_data_response.BinaryAdditionalDetailsDataResponse( + elf = revengai.models.elf_model.ELFModel( + architecture = '', + build_id = '', + debug_info = { + 'key' : null + }, + dynamic_entries = [ + revengai.models.elf_dynamic_entry.ElfDynamicEntry( + tag = '', + value = 56, ) + ], + dynamic_symbols = [ + revengai.models.elf_symbol.ELFSymbol( + binding = '', + name = '', + section_index = 56, + size = 56, + type = '', + value = 56, + visibility = '', ) + ], + endianness = '', + entry_point = 56, + entry_point_bytes = '', + export_hash = '', + exported_functions = [ + '' + ], + file_type = '', + import_hash = '', + imports = revengai.models.elf_import_model.ELFImportModel( + imports = [ + '' + ], + number_of_imports = 56, ), + notes = [ + { + 'key' : null + } + ], + relocations = [ + revengai.models.elf_relocation.ELFRelocation( + addend = 56, + address = 56, + is_dynamic = True, + is_pltgot = True, + size = 56, + symbol_name = '', + type = '', ) + ], + sections = [ + revengai.models.elf_section.ELFSection( + alignment = 56, + entropy = 1.337, + file_offset = 56, + flags = '', + flags_raw = 56, + name = '', + raw_size = 56, + type = '', + virtual_address = 56, + virtual_size = 56, ) + ], + security = revengai.models.elf_security.ELFSecurity( + canary = True, + nx = True, + pie = True, + relo = True, + stripped = True, ), + segments = [ + revengai.models.elf_segment.ELFSegment( + alignment = 56, + file_offset = 56, + flags = '', + flags_raw = 56, + physical_address = 56, + physical_size = 56, + type = '', + virtual_address = 56, + virtual_size = 56, ) + ], + symbols = [ + revengai.models.elf_symbol.ELFSymbol( + binding = '', + name = '', + section_index = 56, + size = 56, + type = '', + value = 56, + visibility = '', ) + ], + version_info = { + 'key' : null + }, ), file = revengai.models.file_metadata.FileMetadata( - size = 56, - friendly_size = '', entropy = 1.337, + friendly_size = '', hashes = revengai.models.file_hashes.FileHashes( md5 = '', sha1 = '', sha256 = '', - sha512 = '', sha3_224 = '', sha3_256 = '', sha3_384 = '', - sha3_512 = '', ), ), + sha3_512 = '', + sha512 = '', ), + size = 56, ), pe = revengai.models.pe_model.PEModel( - type = '', - timestamps = revengai.models.timestamp_model.TimestampModel( - pe_timestamp = 56, - export_timestamp = 56, - debug_timestamp = 56, ), architecture = '', checksum = 56, - image_base = 56, - security = revengai.models.security_model.SecurityModel( - aslr = True, - dep = True, - cfg = True, - driver_model = True, - app_container = True, - terminal_server_aware = True, - image_isolation = True, - code_integrity = True, - high_entropy = True, - seh = True, - bound_image = True, ), - version_info = { - 'key' : null - }, debug_info = revengai.models.pdb_debug_model.PDBDebugModel( debug_entries = [ revengai.models.single_pdb_entry_model.SinglePDBEntryModel( - guid = '', age = 56, + guid = '', path = '', ) ], ), - number_of_resources = 56, + debug_stripped = True, + dotnet = True, entry_point = revengai.models.entrypoint_model.EntrypointModel( address = 56, first_bytes = '', ), - signature = revengai.models.code_signature_model.CodeSignatureModel( - signed = True, - valid_signature = True, - signatures = [ - revengai.models.single_code_signature_model.SingleCodeSignatureModel( - certificates = [ - revengai.models.single_code_certificate_model.SingleCodeCertificateModel( - version = 56, - issued_on = '', - expires_on = '', - issuer_name = '', - serial_number = '', - subject_name = '', ) - ], - authenticode_digest = '', ) - ], ), - dotnet = True, - debug_stripped = True, - import_hash = '', export_hash = '', - rich_header_hash = '', - sections = revengai.models.section_model.SectionModel( - number_of_sections = 56, - sections = [ - revengai.models.single_section_model.SingleSectionModel( - name = '', - virtual_address = 56, - virtual_size = 56, - characteristics = '', - raw_size = 56, - entropy = 1.337, - sha3_256 = '', ) - ], ), - imports = revengai.models.import_model.ImportModel( - number_of_imports = 56, - imports = [ - { - 'key' : { - 'key' : 56 - } - } - ], ), exports = revengai.models.export_model.ExportModel( - number_of_exports = 56, exports = [ { 'key' : 56 } - ], ), + ], + number_of_exports = 56, ), icon_data = revengai.models.icon_model.IconModel( - content = '', ), ), - elf = revengai.models.elf_model.ELFModel( - file_type = '', - architecture = '', - endianness = '', - entry_point = 56, - entry_point_bytes = '', + content = '', ), + image_base = 56, import_hash = '', - export_hash = '', - build_id = '', - security = revengai.models.elf_security.ELFSecurity( - pie = True, - stripped = True, - canary = True, - nx = True, - relo = True, ), - sections = [ - revengai.models.elf_section.ELFSection( - name = '', - type = '', - virtual_address = 56, - virtual_size = 56, - raw_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - entropy = 1.337, - alignment = 56, ) - ], - segments = [ - revengai.models.elf_segment.ELFSegment( - type = '', - virtual_address = 56, - virtual_size = 56, - physical_address = 56, - physical_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - alignment = 56, ) - ], - symbols = [ - revengai.models.elf_symbol.ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', - binding = '', - visibility = '', - section_index = 56, ) - ], - dynamic_symbols = [ - revengai.models.elf_symbol.ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', - binding = '', - visibility = '', - section_index = 56, ) - ], - relocations = [ - revengai.models.elf_relocation.ELFRelocation( - address = 56, - type = '', - size = 56, - addend = 56, - symbol_name = '', - is_dynamic = True, - is_pltgot = True, ) - ], - imports = revengai.models.elf_import_model.ELFImportModel( - number_of_imports = 56, + imports = revengai.models.import_model.ImportModel( imports = [ - '' + { + 'key' : { + 'key' : 56 + } + } + ], + number_of_imports = 56, ), + number_of_resources = 56, + rich_header_hash = '', + sections = revengai.models.section_model.SectionModel( + number_of_sections = 56, + sections = [ + revengai.models.single_section_model.SingleSectionModel( + characteristics = '', + entropy = 1.337, + name = '', + raw_size = 56, + sha3_256 = '', + virtual_address = 56, + virtual_size = 56, ) ], ), - exported_functions = [ - '' - ], - dynamic_entries = [ - revengai.models.elf_dynamic_entry.ElfDynamicEntry( - tag = '', - value = 56, ) - ], - notes = [ - { - 'key' : null - } - ], - debug_info = { - 'key' : null - }, + security = revengai.models.security_model.SecurityModel( + app_container = True, + aslr = True, + bound_image = True, + cfg = True, + code_integrity = True, + dep = True, + driver_model = True, + high_entropy = True, + image_isolation = True, + seh = True, + terminal_server_aware = True, ), + signature = revengai.models.code_signature_model.CodeSignatureModel( + signatures = [ + revengai.models.single_code_signature_model.SingleCodeSignatureModel( + authenticode_digest = '', + certificates = [ + revengai.models.single_code_certificate_model.SingleCodeCertificateModel( + expires_on = '', + issued_on = '', + issuer_name = '', + serial_number = '', + subject_name = '', + version = 56, ) + ], ) + ], + signed = True, + valid_signature = True, ), + timestamps = revengai.models.timestamp_model.TimestampModel( + debug_timestamp = 56, + export_timestamp = 56, + pe_timestamp = 56, ), + type = '', version_info = { 'key' : null - }, ), ), - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - message = '', + }, ), ), ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseBinaryAdditionalResponse( diff --git a/test/test_base_response_binary_details_response.py b/test/test_base_response_binary_details_response.py index 1688ddf..a9c81cc 100644 --- a/test/test_base_response_binary_details_response.py +++ b/test/test_base_response_binary_details_response.py @@ -34,17 +34,18 @@ def make_instance(self, include_optional) -> BaseResponseBinaryDetailsResponse: model = BaseResponseBinaryDetailsResponse() if include_optional: return BaseResponseBinaryDetailsResponse( - status = True, data = revengai.models.binary_details_response.BinaryDetailsResponse( + class = '', arch = '', bits = 56, crc32 = '', - class = '', + debug = True, entropy = 1.337, file_size = 56, + first_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), language = '', - md5 = '', machine = '', + md5 = '', os = '', sha1 = '', sha256 = '', @@ -53,20 +54,19 @@ class = '', stripped = True, sub_sys = '', tlsh = '', - type = '', - debug = True, - first_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - message = '', + type = '', ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseBinaryDetailsResponse( diff --git a/test/test_base_response_binary_externals_response.py b/test/test_base_response_binary_externals_response.py index e148d0d..3645dce 100644 --- a/test/test_base_response_binary_externals_response.py +++ b/test/test_base_response_binary_externals_response.py @@ -34,28 +34,28 @@ def make_instance(self, include_optional) -> BaseResponseBinaryExternalsResponse model = BaseResponseBinaryExternalsResponse() if include_optional: return BaseResponseBinaryExternalsResponse( - status = True, data = revengai.models.binary_externals_response.BinaryExternalsResponse( - sha_256_hash = '', - vt = { + mb = { 'key' : null }, - vt_last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - mb = { + mb_last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + sha_256_hash = '', + vt = { 'key' : null }, - mb_last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - message = '', + vt_last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseBinaryExternalsResponse( diff --git a/test/test_base_response_binary_search_response.py b/test/test_base_response_binary_search_response.py index 226069b..d79dbb1 100644 --- a/test/test_base_response_binary_search_response.py +++ b/test/test_base_response_binary_search_response.py @@ -34,33 +34,33 @@ def make_instance(self, include_optional) -> BaseResponseBinarySearchResponse: model = BaseResponseBinarySearchResponse() if include_optional: return BaseResponseBinarySearchResponse( - status = True, data = revengai.models.binary_search_response.BinarySearchResponse( results = [ revengai.models.binary_search_result.BinarySearchResult( + analysis_id = 56, binary_id = 56, binary_name = '', - analysis_id = 56, - sha_256_hash = '', - tags = [ - '' - ], created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), model_id = 56, model_name = '', - owned_by = '', ) + owned_by = '', + sha_256_hash = '', + tags = [ + '' + ], ) ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseBinarySearchResponse( diff --git a/test/test_base_response_block_comments_generation_for_function_response.py b/test/test_base_response_block_comments_generation_for_function_response.py index acdb722..4469a3d 100644 --- a/test/test_base_response_block_comments_generation_for_function_response.py +++ b/test/test_base_response_block_comments_generation_for_function_response.py @@ -34,20 +34,20 @@ def make_instance(self, include_optional) -> BaseResponseBlockCommentsGeneration model = BaseResponseBlockCommentsGenerationForFunctionResponse() if include_optional: return BaseResponseBlockCommentsGenerationForFunctionResponse( - status = True, data = revengai.models.block_comments_generation_for_function_response.BlockCommentsGenerationForFunctionResponse( updated_blocks = 56, ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseBlockCommentsGenerationForFunctionResponse( diff --git a/test/test_base_response_block_comments_overview_generation_response.py b/test/test_base_response_block_comments_overview_generation_response.py index 5ccd572..6244525 100644 --- a/test/test_base_response_block_comments_overview_generation_response.py +++ b/test/test_base_response_block_comments_overview_generation_response.py @@ -34,19 +34,19 @@ def make_instance(self, include_optional) -> BaseResponseBlockCommentsOverviewGe model = BaseResponseBlockCommentsOverviewGenerationResponse() if include_optional: return BaseResponseBlockCommentsOverviewGenerationResponse( - status = True, data = revengai.models.block_comments_overview_generation_response.BlockCommentsOverviewGenerationResponse(), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseBlockCommentsOverviewGenerationResponse( diff --git a/test/test_base_response_bool.py b/test/test_base_response_bool.py index 36ba2fd..da4392b 100644 --- a/test/test_base_response_bool.py +++ b/test/test_base_response_bool.py @@ -34,19 +34,19 @@ def make_instance(self, include_optional) -> BaseResponseBool: model = BaseResponseBool() if include_optional: return BaseResponseBool( - status = True, data = True, - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseBool( diff --git a/test/test_base_response_callees_caller_functions_response.py b/test/test_base_response_callees_caller_functions_response.py index 435f821..2d5a0ec 100644 --- a/test/test_base_response_callees_caller_functions_response.py +++ b/test/test_base_response_callees_caller_functions_response.py @@ -34,38 +34,38 @@ def make_instance(self, include_optional) -> BaseResponseCalleesCallerFunctionsR model = BaseResponseCalleesCallerFunctionsResponse() if include_optional: return BaseResponseCalleesCallerFunctionsResponse( - status = True, data = revengai.models.callees_caller_functions_response.CalleesCallerFunctionsResponse( base_address = 56, callees = [ revengai.models.callee_function_info.CalleeFunctionInfo( - function_id = 56, - matched_function_id = 56, + callee_name = 'FUN_001e1370', + callee_vaddr = '1971056', dashboard_url = '', + function_id = 56, is_external = True, - callee_name = 'FUN_001e1370', - callee_vaddr = '1971056', ) + matched_function_id = 56, ) ], callers = [ revengai.models.caller_function_info.CallerFunctionInfo( - function_id = 56, - matched_function_id = 56, + caller_name = 'FUN_0002a5d8', + caller_vaddr = '173528', dashboard_url = '', + function_id = 56, is_external = True, - caller_name = 'FUN_0002a5d8', - caller_vaddr = '173528', ) + matched_function_id = 56, ) ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseCalleesCallerFunctionsResponse( diff --git a/test/test_base_response_capabilities.py b/test/test_base_response_capabilities.py index fc2322c..77d15bd 100644 --- a/test/test_base_response_capabilities.py +++ b/test/test_base_response_capabilities.py @@ -34,27 +34,27 @@ def make_instance(self, include_optional) -> BaseResponseCapabilities: model = BaseResponseCapabilities() if include_optional: return BaseResponseCapabilities( - status = True, data = revengai.models.capabilities.Capabilities( capabilities = [ revengai.models.capability.Capability( - function_name = '', - function_vaddr = 56, capabilities = [ '' - ], ) + ], + function_name = '', + function_vaddr = 56, ) ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseCapabilities( diff --git a/test/test_base_response_check_security_checks_task_response.py b/test/test_base_response_check_security_checks_task_response.py index 968a482..e1dcd1b 100644 --- a/test/test_base_response_check_security_checks_task_response.py +++ b/test/test_base_response_check_security_checks_task_response.py @@ -34,20 +34,20 @@ def make_instance(self, include_optional) -> BaseResponseCheckSecurityChecksTask 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 = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseCheckSecurityChecksTaskResponse( diff --git a/test/test_base_response_child_binaries_response.py b/test/test_base_response_child_binaries_response.py index d1856c8..cd7745e 100644 --- a/test/test_base_response_child_binaries_response.py +++ b/test/test_base_response_child_binaries_response.py @@ -34,31 +34,31 @@ def make_instance(self, include_optional) -> BaseResponseChildBinariesResponse: model = BaseResponseChildBinariesResponse() if include_optional: return BaseResponseChildBinariesResponse( - status = True, data = revengai.models.child_binaries_response.ChildBinariesResponse( children = [ revengai.models.relative_binary_response.RelativeBinaryResponse( - binary_id = 56, analysis_id = 56, + binary_id = 56, name = '', sha256 = '', ) ], parent = revengai.models.relative_binary_response.RelativeBinaryResponse( - binary_id = 56, analysis_id = 56, + binary_id = 56, name = '', sha256 = '', ), ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseChildBinariesResponse( diff --git a/test/test_base_response_collection_binaries_update_response.py b/test/test_base_response_collection_binaries_update_response.py index 44c9f6e..9cfb401 100644 --- a/test/test_base_response_collection_binaries_update_response.py +++ b/test/test_base_response_collection_binaries_update_response.py @@ -34,29 +34,29 @@ def make_instance(self, include_optional) -> BaseResponseCollectionBinariesUpdat model = BaseResponseCollectionBinariesUpdateResponse() if include_optional: return BaseResponseCollectionBinariesUpdateResponse( - status = True, data = revengai.models.collection_binaries_update_response.CollectionBinariesUpdateResponse( binaries = [ revengai.models.collection_binary_response.CollectionBinaryResponse( analysis_id = 56, binary_id = 56, binary_name = '', - owner_id = 56, - sha_256_hash = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - is_system_analysis = True, ) + is_system_analysis = True, + owner_id = 56, + sha_256_hash = '', ) ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseCollectionBinariesUpdateResponse( diff --git a/test/test_base_response_collection_response.py b/test/test_base_response_collection_response.py index 4e61ee2..bfc55c7 100644 --- a/test/test_base_response_collection_response.py +++ b/test/test_base_response_collection_response.py @@ -34,34 +34,34 @@ def make_instance(self, include_optional) -> BaseResponseCollectionResponse: model = BaseResponseCollectionResponse() if include_optional: return BaseResponseCollectionResponse( - status = True, data = revengai.models.collection_response.CollectionResponse( + binaries = [ + null + ], collection_id = 56, collection_name = '', - description = '', - model_id = 56, - user_id = 56, - team_id = 56, collection_scope = 'PRIVATE', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + description = '', + model_id = 56, tags = [ '' ], - binaries = [ - null - ], ), - message = '', + team_id = 56, + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + user_id = 56, ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseCollectionResponse( diff --git a/test/test_base_response_collection_search_response.py b/test/test_base_response_collection_search_response.py index 725f749..2d64b40 100644 --- a/test/test_base_response_collection_search_response.py +++ b/test/test_base_response_collection_search_response.py @@ -34,36 +34,36 @@ def make_instance(self, include_optional) -> BaseResponseCollectionSearchRespons model = BaseResponseCollectionSearchResponse() if include_optional: return BaseResponseCollectionSearchResponse( - status = True, data = revengai.models.collection_search_response.CollectionSearchResponse( results = [ revengai.models.collection_search_result.CollectionSearchResult( collection_id = 56, collection_name = '', - scope = '', - last_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + description = '', + last_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), model_id = 56, model_name = '', owned_by = '', + scope = '', + size = 56, tags = [ '' ], - size = 56, - description = '', team_id = 56, ) ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseCollectionSearchResponse( diff --git a/test/test_base_response_collection_tags_update_response.py b/test/test_base_response_collection_tags_update_response.py index 50dfff0..69723d9 100644 --- a/test/test_base_response_collection_tags_update_response.py +++ b/test/test_base_response_collection_tags_update_response.py @@ -34,22 +34,22 @@ def make_instance(self, include_optional) -> BaseResponseCollectionTagsUpdateRes model = BaseResponseCollectionTagsUpdateResponse() if include_optional: return BaseResponseCollectionTagsUpdateResponse( - status = True, data = revengai.models.collection_tags_update_response.CollectionTagsUpdateResponse( tags = [ '' ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseCollectionTagsUpdateResponse( diff --git a/test/test_base_response_comment_response.py b/test/test_base_response_comment_response.py index ed0c642..501c669 100644 --- a/test/test_base_response_comment_response.py +++ b/test/test_base_response_comment_response.py @@ -34,27 +34,27 @@ def make_instance(self, include_optional) -> BaseResponseCommentResponse: model = BaseResponseCommentResponse() if include_optional: return BaseResponseCommentResponse( - status = True, data = revengai.models.comment_response.CommentResponse( content = '', - id = 56, - user_id = 56, - resource_type = '', - resource_id = '', context = null, created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - message = '', + id = 56, + resource_id = '', + resource_type = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + user_id = 56, ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseCommentResponse( diff --git a/test/test_base_response_communities.py b/test/test_base_response_communities.py index f187767..2b7a9a1 100644 --- a/test/test_base_response_communities.py +++ b/test/test_base_response_communities.py @@ -34,14 +34,11 @@ def make_instance(self, include_optional) -> BaseResponseCommunities: model = BaseResponseCommunities() if include_optional: return BaseResponseCommunities( - status = True, data = revengai.models.communities.Communities( - total_functions = 56, - total_matched_functions = 56, direct_community_match_percentages = [ revengai.models.community_match_percentages.CommunityMatchPercentages( - binary_name = '', binary_id = 56, + binary_name = '', matched_communities_percent = 1.337, unmatched_communities_percent = 1.337, ) ], @@ -49,18 +46,21 @@ def make_instance(self, include_optional) -> BaseResponseCommunities: { 'key' : null } - ], ), - message = '', + ], + total_functions = 56, + total_matched_functions = 56, ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseCommunities( diff --git a/test/test_base_response_config_response.py b/test/test_base_response_config_response.py index 11b304c..7bd9792 100644 --- a/test/test_base_response_config_response.py +++ b/test/test_base_response_config_response.py @@ -34,27 +34,27 @@ def make_instance(self, include_optional) -> BaseResponseConfigResponse: model = BaseResponseConfigResponse() if include_optional: return BaseResponseConfigResponse( - status = True, data = revengai.models.config_response.ConfigResponse( - dashboard_url = '', - max_file_size_bytes = 56, - ai_decompiler_unsupported_languages = [ + ai_decompiler_supported_models = [ '' ], - ai_decompiler_supported_models = [ + ai_decompiler_unsupported_languages = [ '' - ], ), - message = '', + ], + dashboard_url = '', + max_file_size_bytes = 56, ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseConfigResponse( diff --git a/test/test_base_response_created.py b/test/test_base_response_created.py index 80af6c4..b91ff2a 100644 --- a/test/test_base_response_created.py +++ b/test/test_base_response_created.py @@ -34,22 +34,22 @@ def make_instance(self, include_optional) -> BaseResponseCreated: model = BaseResponseCreated() if include_optional: return BaseResponseCreated( - status = True, data = revengai.models.created.Created( analysis_id = 56, binary_id = 56, reference = '', ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseCreated( diff --git a/test/test_base_response_dict.py b/test/test_base_response_dict.py index 957e672..fc7fd38 100644 --- a/test/test_base_response_dict.py +++ b/test/test_base_response_dict.py @@ -34,21 +34,21 @@ def make_instance(self, include_optional) -> BaseResponseDict: model = BaseResponseDict() if include_optional: return BaseResponseDict( - status = True, data = { 'key' : null }, - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseDict( diff --git a/test/test_base_response_dynamic_execution_status.py b/test/test_base_response_dynamic_execution_status.py index 94ef980..62c0ef5 100644 --- a/test/test_base_response_dynamic_execution_status.py +++ b/test/test_base_response_dynamic_execution_status.py @@ -34,20 +34,20 @@ def make_instance(self, include_optional) -> BaseResponseDynamicExecutionStatus: model = BaseResponseDynamicExecutionStatus() if include_optional: return BaseResponseDynamicExecutionStatus( - status = True, data = revengai.models.dynamic_execution_status.DynamicExecutionStatus( status = '', ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseDynamicExecutionStatus( diff --git a/test/test_base_response_external_response.py b/test/test_base_response_external_response.py index d2c4684..2f954ee 100644 --- a/test/test_base_response_external_response.py +++ b/test/test_base_response_external_response.py @@ -34,24 +34,24 @@ def make_instance(self, include_optional) -> BaseResponseExternalResponse: model = BaseResponseExternalResponse() if include_optional: return BaseResponseExternalResponse( - status = True, data = revengai.models.external_response.ExternalResponse( - sha_256_hash = '', data = { 'key' : null }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - message = '', + last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + sha_256_hash = '', ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseExternalResponse( diff --git a/test/test_base_response_function_blocks_response.py b/test/test_base_response_function_blocks_response.py index a6b5d06..0bf889d 100644 --- a/test/test_base_response_function_blocks_response.py +++ b/test/test_base_response_function_blocks_response.py @@ -34,52 +34,52 @@ def make_instance(self, include_optional) -> BaseResponseFunctionBlocksResponse: model = BaseResponseFunctionBlocksResponse() if include_optional: return BaseResponseFunctionBlocksResponse( - status = True, data = revengai.models.function_blocks_response.FunctionBlocksResponse( blocks = [ revengai.models.function_block_response.FunctionBlockResponse( asm = [ '' ], - id = 56, - min_addr = 56, - max_addr = 56, + comment = '', destinations = [ revengai.models.function_block_destination_response.FunctionBlockDestinationResponse( destination_block_id = 56, flowtype = '', vaddr = '', ) ], - comment = '', ) + id = 56, + max_addr = 56, + min_addr = 56, ) ], local_variables = [ revengai.models.function_local_variable_response.FunctionLocalVariableResponse( address = '', d_type = '', - size = 56, loc = '', - name = '', ) + name = '', + size = 56, ) ], + overview_comment = '', params = [ revengai.models.function_param_response.FunctionParamResponse( - d_type = '', - loc = '', addr = '', + d_type = '', length = 56, + loc = '', name = '', ) - ], - overview_comment = '', ), - message = '', + ], ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseFunctionBlocksResponse( diff --git a/test/test_base_response_function_capability_response.py b/test/test_base_response_function_capability_response.py index 399dc0c..e2a7750 100644 --- a/test/test_base_response_function_capability_response.py +++ b/test/test_base_response_function_capability_response.py @@ -34,22 +34,22 @@ def make_instance(self, include_optional) -> BaseResponseFunctionCapabilityRespo model = BaseResponseFunctionCapabilityResponse() if include_optional: return BaseResponseFunctionCapabilityResponse( - status = True, data = revengai.models.function_capability_response.FunctionCapabilityResponse( capabilities = [ '' ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseFunctionCapabilityResponse( diff --git a/test/test_base_response_function_data_types.py b/test/test_base_response_function_data_types.py index e6fb3bb..bd23b96 100644 --- a/test/test_base_response_function_data_types.py +++ b/test/test_base_response_function_data_types.py @@ -34,55 +34,55 @@ def make_instance(self, include_optional) -> BaseResponseFunctionDataTypes: model = BaseResponseFunctionDataTypes() if include_optional: return BaseResponseFunctionDataTypes( - status = True, data = revengai.models.function_data_types.FunctionDataTypes( completed = True, - status = '', data_types = revengai.models.function_info.FunctionInfo( + func_deps = [ + null + ], func_types = revengai.models.function_type.FunctionType( - last_change = '', addr = 56, - size = 56, + artifact_type = 'Function', header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', addr = 56, - type = '', args = { 'key' : revengai.models.argument.Argument( last_change = '', - offset = 56, name = '', - type = '', - size = 56, ) - }, ), + offset = 56, + size = 56, + type = '', ) + }, + last_change = '', + name = '', + type = '', ), + last_change = '', + name = '', + size = 56, stack_vars = { 'key' : revengai.models.stack_variable.StackVariable( + addr = 56, last_change = '', - offset = 56, name = '', - type = '', + offset = 56, size = 56, - addr = 56, ) + type = '', ) }, - name = '', - type = '', - artifact_type = 'Function', ), - func_deps = [ - null - ], ), - data_types_version = 56, ), - message = '', + type = '', ), ), + data_types_version = 56, + status = '', ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseFunctionDataTypes( diff --git a/test/test_base_response_function_data_types_list.py b/test/test_base_response_function_data_types_list.py index 24303e5..7f59bd0 100644 --- a/test/test_base_response_function_data_types_list.py +++ b/test/test_base_response_function_data_types_list.py @@ -34,61 +34,61 @@ def make_instance(self, include_optional) -> BaseResponseFunctionDataTypesList: model = BaseResponseFunctionDataTypesList() if include_optional: return BaseResponseFunctionDataTypesList( - status = True, data = revengai.models.function_data_types_list.FunctionDataTypesList( - total_count = 56, - total_data_types_count = 56, items = [ revengai.models.function_data_types_list_item.FunctionDataTypesListItem( completed = True, - status = '', data_types = revengai.models.function_info.FunctionInfo( + func_deps = [ + null + ], func_types = revengai.models.function_type.FunctionType( - last_change = '', addr = 56, - size = 56, + artifact_type = 'Function', header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', addr = 56, - type = '', args = { 'key' : revengai.models.argument.Argument( last_change = '', - offset = 56, name = '', - type = '', - size = 56, ) - }, ), + offset = 56, + size = 56, + type = '', ) + }, + last_change = '', + name = '', + type = '', ), + last_change = '', + name = '', + size = 56, stack_vars = { 'key' : revengai.models.stack_variable.StackVariable( + addr = 56, last_change = '', - offset = 56, name = '', - type = '', + offset = 56, size = 56, - addr = 56, ) + type = '', ) }, - name = '', - type = '', - artifact_type = 'Function', ), - func_deps = [ - null - ], ), + type = '', ), ), data_types_version = 56, - function_id = 56, ) - ], ), - message = '', + function_id = 56, + status = '', ) + ], + total_count = 56, + total_data_types_count = 56, ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseFunctionDataTypesList( diff --git a/test/test_base_response_function_search_response.py b/test/test_base_response_function_search_response.py index a3a517f..d86dbc1 100644 --- a/test/test_base_response_function_search_response.py +++ b/test/test_base_response_function_search_response.py @@ -34,29 +34,29 @@ def make_instance(self, include_optional) -> BaseResponseFunctionSearchResponse: model = BaseResponseFunctionSearchResponse() if include_optional: return BaseResponseFunctionSearchResponse( - status = True, data = revengai.models.function_search_response.FunctionSearchResponse( results = [ revengai.models.function_search_result.FunctionSearchResult( - function_id = 56, - function_name = '', binary_name = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + function_id = 56, + function_name = '', model_id = 56, model_name = '', owned_by = '', ) ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseFunctionSearchResponse( diff --git a/test/test_base_response_function_strings_response.py b/test/test_base_response_function_strings_response.py index 98e11bc..21c14ae 100644 --- a/test/test_base_response_function_strings_response.py +++ b/test/test_base_response_function_strings_response.py @@ -34,25 +34,26 @@ def make_instance(self, include_optional) -> BaseResponseFunctionStringsResponse model = BaseResponseFunctionStringsResponse() if include_optional: return BaseResponseFunctionStringsResponse( - status = True, data = revengai.models.function_strings_response.FunctionStringsResponse( strings = [ revengai.models.function_string.FunctionString( - value = '', - vaddr = 56, ) + source = 'SYSTEM', + vaddr = 56, + value = '', ) ], total_strings = 56, ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseFunctionStringsResponse( diff --git a/test/test_base_response_function_task_response.py b/test/test_base_response_function_task_response.py index 7a73780..61f5f64 100644 --- a/test/test_base_response_function_task_response.py +++ b/test/test_base_response_function_task_response.py @@ -34,21 +34,21 @@ def make_instance(self, include_optional) -> BaseResponseFunctionTaskResponse: model = BaseResponseFunctionTaskResponse() if include_optional: return BaseResponseFunctionTaskResponse( - status = True, data = revengai.models.function_task_response.FunctionTaskResponse( - status = 'UNINITIALISED', - error_message = '', ), - message = '', + error_message = '', + status = 'UNINITIALISED', ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseFunctionTaskResponse( diff --git a/test/test_base_response_functions_detail_response.py b/test/test_base_response_functions_detail_response.py index b6c3d28..12a9048 100644 --- a/test/test_base_response_functions_detail_response.py +++ b/test/test_base_response_functions_detail_response.py @@ -34,36 +34,36 @@ def make_instance(self, include_optional) -> BaseResponseFunctionsDetailResponse model = BaseResponseFunctionsDetailResponse() if include_optional: return BaseResponseFunctionsDetailResponse( - status = True, data = revengai.models.functions_detail_response.FunctionsDetailResponse( - function_id = 56, - function_name = '', - function_name_mangled = '', - function_vaddr = 56, - function_size = 56, analysis_id = 56, binary_id = 56, binary_name = '', - sha_256_hash = '', - debug_hash = '', debug = True, - embedding_3d = [ + debug_hash = '', + embedding_1d = [ 1.337 ], - embedding_1d = [ + embedding_3d = [ 1.337 - ], ), - message = '', + ], + function_id = 56, + function_name = '', + function_name_mangled = '', + function_size = 56, + function_vaddr = 56, + sha_256_hash = '', ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseFunctionsDetailResponse( diff --git a/test/test_base_response_generate_function_data_types.py b/test/test_base_response_generate_function_data_types.py index 289395c..8079994 100644 --- a/test/test_base_response_generate_function_data_types.py +++ b/test/test_base_response_generate_function_data_types.py @@ -34,30 +34,30 @@ def make_instance(self, include_optional) -> BaseResponseGenerateFunctionDataTyp model = BaseResponseGenerateFunctionDataTypes() if include_optional: return BaseResponseGenerateFunctionDataTypes( - status = True, data = revengai.models.generate_function_data_types.GenerateFunctionDataTypes( - queued = True, - reference = '', data_types_list = revengai.models.generation_status_list.GenerationStatusList( - total_count = 56, - total_data_types_count = 56, items = [ revengai.models.function_data_types_status.FunctionDataTypesStatus( - function_id = 56, completed = True, + function_id = 56, status = '', ) - ], ), ), - message = '', + ], + total_count = 56, + total_data_types_count = 56, ), + queued = True, + reference = '', ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseGenerateFunctionDataTypes( diff --git a/test/test_base_response_generation_status_list.py b/test/test_base_response_generation_status_list.py index e7d8d98..23def32 100644 --- a/test/test_base_response_generation_status_list.py +++ b/test/test_base_response_generation_status_list.py @@ -34,27 +34,27 @@ def make_instance(self, include_optional) -> BaseResponseGenerationStatusList: model = BaseResponseGenerationStatusList() if include_optional: return BaseResponseGenerationStatusList( - status = True, data = revengai.models.generation_status_list.GenerationStatusList( - total_count = 56, - total_data_types_count = 56, items = [ revengai.models.function_data_types_status.FunctionDataTypesStatus( - function_id = 56, completed = True, + function_id = 56, status = '', ) - ], ), - message = '', + ], + total_count = 56, + total_data_types_count = 56, ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseGenerationStatusList( diff --git a/test/test_base_response_get_ai_decompilation_rating_response.py b/test/test_base_response_get_ai_decompilation_rating_response.py index 362baa7..72d7e22 100644 --- a/test/test_base_response_get_ai_decompilation_rating_response.py +++ b/test/test_base_response_get_ai_decompilation_rating_response.py @@ -34,21 +34,21 @@ def make_instance(self, include_optional) -> BaseResponseGetAiDecompilationRatin model = BaseResponseGetAiDecompilationRatingResponse() if include_optional: return BaseResponseGetAiDecompilationRatingResponse( - status = True, data = revengai.models.get_ai_decompilation_rating_response.GetAiDecompilationRatingResponse( rating = 'POSITIVE', reason = '', ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseGetAiDecompilationRatingResponse( diff --git a/test/test_base_response_get_ai_decompilation_task.py b/test/test_base_response_get_ai_decompilation_task.py index b989095..c468813 100644 --- a/test/test_base_response_get_ai_decompilation_task.py +++ b/test/test_base_response_get_ai_decompilation_task.py @@ -34,81 +34,81 @@ def make_instance(self, include_optional) -> BaseResponseGetAiDecompilationTask: model = BaseResponseGetAiDecompilationTask() if include_optional: return BaseResponseGetAiDecompilationTask( - status = True, data = revengai.models.get_ai_decompilation_task.GetAiDecompilationTask( - status = 'uninitialised', + ai_summary = '', decompilation = '', - raw_decompilation = '', function_mapping = { 'key' : revengai.models.inverse_function_map_item.InverseFunctionMapItem( - name = '', addr = null, - is_external = True, ) + is_external = True, + name = '', ) }, function_mapping_full = revengai.models.function_mapping_full.FunctionMappingFull( - inverse_string_map = { - 'key' : revengai.models.inverse_string_map_item.InverseStringMapItem( - string = '', - addr = 56, ) + fields = { + 'key' : { + 'key' : revengai.models.inverse_value.InverseValue( + value = '', ) + } }, inverse_function_map = { 'key' : revengai.models.inverse_function_map_item.InverseFunctionMapItem( - name = '', addr = null, - is_external = True, ) + is_external = True, + name = '', ) }, - unmatched_functions = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) + inverse_string_map = { + 'key' : revengai.models.inverse_string_map_item.InverseStringMapItem( + addr = 56, + string = '', ) }, - unmatched_custom_types = { + unmatched_custom_function_pointers = { 'key' : revengai.models.inverse_value.InverseValue( value = '', ) }, - unmatched_strings = { + unmatched_custom_types = { 'key' : }, - unmatched_vars = { + unmatched_enums = { 'key' : }, - unmatched_go_to_labels = { + unmatched_external_vars = { 'key' : }, - unmatched_custom_function_pointers = { + unmatched_functions = { 'key' : }, - unmatched_variadic_lists = { + unmatched_global_vars = { 'key' : }, - unmatched_enums = { + unmatched_go_to_labels = { 'key' : }, - unmatched_global_vars = { + unmatched_strings = { 'key' : }, - fields = { - 'key' : { - 'key' : - } + unmatched_variadic_lists = { + 'key' : }, - unmatched_external_vars = { + unmatched_vars = { 'key' : }, ), - summary = '', - ai_summary = '', + predicted_function_name = '', raw_ai_summary = '', - predicted_function_name = '', ), - message = '', + raw_decompilation = '', + status = 'uninitialised', + summary = '', ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseGetAiDecompilationTask( diff --git a/test/test_base_response_get_me_response.py b/test/test_base_response_get_me_response.py index 37c4a34..b7642ca 100644 --- a/test/test_base_response_get_me_response.py +++ b/test/test_base_response_get_me_response.py @@ -34,27 +34,27 @@ def make_instance(self, include_optional) -> BaseResponseGetMeResponse: model = BaseResponseGetMeResponse() if include_optional: return BaseResponseGetMeResponse( - status = True, data = revengai.models.get_me_response.GetMeResponse( - username = '', - user_id = 56, + creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + email = '', first_name = '', last_name = '', - email = '', - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + role = 'USER', tutorial_seen = True, - role = 'USER', ), - message = '', + user_id = 56, + username = '', ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseGetMeResponse( diff --git a/test/test_base_response_get_public_user_response.py b/test/test_base_response_get_public_user_response.py index 60aa2d7..18e3430 100644 --- a/test/test_base_response_get_public_user_response.py +++ b/test/test_base_response_get_public_user_response.py @@ -34,21 +34,21 @@ def make_instance(self, include_optional) -> BaseResponseGetPublicUserResponse: model = BaseResponseGetPublicUserResponse() if include_optional: return BaseResponseGetPublicUserResponse( - status = True, data = revengai.models.get_public_user_response.GetPublicUserResponse( - username = '', - user_id = 56, ), - message = '', + user_id = 56, + username = '', ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseGetPublicUserResponse( diff --git a/test/test_base_response_list_callees_caller_functions_response.py b/test/test_base_response_list_callees_caller_functions_response.py index 442dbd6..fcc4c2d 100644 --- a/test/test_base_response_list_callees_caller_functions_response.py +++ b/test/test_base_response_list_callees_caller_functions_response.py @@ -34,40 +34,40 @@ def make_instance(self, include_optional) -> BaseResponseListCalleesCallerFuncti model = BaseResponseListCalleesCallerFunctionsResponse() if include_optional: return BaseResponseListCalleesCallerFunctionsResponse( - status = True, data = [ revengai.models.callees_caller_functions_response.CalleesCallerFunctionsResponse( base_address = 56, callees = [ revengai.models.callee_function_info.CalleeFunctionInfo( - function_id = 56, - matched_function_id = 56, + callee_name = 'FUN_001e1370', + callee_vaddr = '1971056', dashboard_url = '', + function_id = 56, is_external = True, - callee_name = 'FUN_001e1370', - callee_vaddr = '1971056', ) + matched_function_id = 56, ) ], callers = [ revengai.models.caller_function_info.CallerFunctionInfo( - function_id = 56, - matched_function_id = 56, + caller_name = 'FUN_0002a5d8', + caller_vaddr = '173528', dashboard_url = '', + function_id = 56, is_external = True, - caller_name = 'FUN_0002a5d8', - caller_vaddr = '173528', ) + matched_function_id = 56, ) ], ) ], - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseListCalleesCallerFunctionsResponse( diff --git a/test/test_base_response_list_collection_results.py b/test/test_base_response_list_collection_results.py index d58ad1f..7b83b8c 100644 --- a/test/test_base_response_list_collection_results.py +++ b/test/test_base_response_list_collection_results.py @@ -34,35 +34,35 @@ def make_instance(self, include_optional) -> BaseResponseListCollectionResults: model = BaseResponseListCollectionResults() if include_optional: return BaseResponseListCollectionResults( - status = True, data = revengai.models.list_collection_results.ListCollectionResults( results = [ revengai.models.collection_list_item.CollectionListItem( + collection_id = 56, collection_name = '', - description = '', - collection_scope = '', collection_owner = '', - official_collection = True, + collection_scope = '', + collection_size = 56, collection_tags = [ '' ], - collection_size = 56, - collection_id = 56, creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + description = '', model_name = '', + official_collection = True, team_id = 56, ) ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseListCollectionResults( diff --git a/test/test_base_response_list_comment_response.py b/test/test_base_response_list_comment_response.py index 8cd92ec..9caaa06 100644 --- a/test/test_base_response_list_comment_response.py +++ b/test/test_base_response_list_comment_response.py @@ -34,29 +34,29 @@ def make_instance(self, include_optional) -> BaseResponseListCommentResponse: model = BaseResponseListCommentResponse() if include_optional: return BaseResponseListCommentResponse( - status = True, data = [ revengai.models.comment_response.CommentResponse( content = '', - id = 56, - user_id = 56, - resource_type = '', - resource_id = '', context = null, created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + id = 56, + resource_id = '', + resource_type = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + user_id = 56, ) ], - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseListCommentResponse( diff --git a/test/test_base_response_list_die_match.py b/test/test_base_response_list_die_match.py index 15e6c38..d4fbb83 100644 --- a/test/test_base_response_list_die_match.py +++ b/test/test_base_response_list_die_match.py @@ -34,25 +34,25 @@ def make_instance(self, include_optional) -> BaseResponseListDieMatch: model = BaseResponseListDieMatch() if include_optional: return BaseResponseListDieMatch( - status = True, data = [ revengai.models.die_match.DieMatch( + display = '', name = '', type = '', - display = '', version = '', ) ], - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseListDieMatch( diff --git a/test/test_base_response_list_function_name_history.py b/test/test_base_response_list_function_name_history.py index 9ff026e..7f5df8f 100644 --- a/test/test_base_response_list_function_name_history.py +++ b/test/test_base_response_list_function_name_history.py @@ -34,28 +34,28 @@ def make_instance(self, include_optional) -> BaseResponseListFunctionNameHistory model = BaseResponseListFunctionNameHistory() if include_optional: return BaseResponseListFunctionNameHistory( - status = True, data = [ revengai.models.function_name_history.FunctionNameHistory( - history_id = 56, change_made_by = '', + created_at = '', function_name = '', - mangled_name = '', + history_id = 56, is_debug = True, - source_type = 'SYSTEM', - created_at = '', ) + mangled_name = '', + source_type = 'SYSTEM', ) ], - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseListFunctionNameHistory( diff --git a/test/test_base_response_list_sbom.py b/test/test_base_response_list_sbom.py index 4ad0229..e76a3d7 100644 --- a/test/test_base_response_list_sbom.py +++ b/test/test_base_response_list_sbom.py @@ -34,29 +34,29 @@ def make_instance(self, include_optional) -> BaseResponseListSBOM: model = BaseResponseListSBOM() if include_optional: return BaseResponseListSBOM( - status = True, data = [ revengai.models.sbom.SBOM( + imported_libs = [ + '' + ], packages = [ revengai.models.sbom_package.SBOMPackage( name = '', version = '', ) - ], - imported_libs = [ - '' ], ) ], - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseListSBOM( diff --git a/test/test_base_response_list_user_activity_response.py b/test/test_base_response_list_user_activity_response.py index 223299f..ed70474 100644 --- a/test/test_base_response_list_user_activity_response.py +++ b/test/test_base_response_list_user_activity_response.py @@ -34,7 +34,6 @@ def make_instance(self, include_optional) -> BaseResponseListUserActivityRespons model = BaseResponseListUserActivityResponse() if include_optional: return BaseResponseListUserActivityResponse( - status = True, data = [ revengai.models.user_activity_response.UserActivityResponse( actions = '', @@ -44,17 +43,18 @@ def make_instance(self, include_optional) -> BaseResponseListUserActivityRespons sources = '', username = '', ) ], - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseListUserActivityResponse( diff --git a/test/test_base_response_login_response.py b/test/test_base_response_login_response.py index 027f629..a38af21 100644 --- a/test/test_base_response_login_response.py +++ b/test/test_base_response_login_response.py @@ -34,20 +34,20 @@ def make_instance(self, include_optional) -> BaseResponseLoginResponse: model = BaseResponseLoginResponse() if include_optional: return BaseResponseLoginResponse( - status = True, data = revengai.models.login_response.LoginResponse( token = '', ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseLoginResponse( diff --git a/test/test_base_response_logs.py b/test/test_base_response_logs.py index cd6618c..b66e881 100644 --- a/test/test_base_response_logs.py +++ b/test/test_base_response_logs.py @@ -34,20 +34,20 @@ def make_instance(self, include_optional) -> BaseResponseLogs: model = BaseResponseLogs() if include_optional: return BaseResponseLogs( - status = True, data = revengai.models.logs.Logs( logs = '', ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseLogs( diff --git a/test/test_base_response_models_response.py b/test/test_base_response_models_response.py index 2449058..a6c31ad 100644 --- a/test/test_base_response_models_response.py +++ b/test/test_base_response_models_response.py @@ -34,22 +34,22 @@ def make_instance(self, include_optional) -> BaseResponseModelsResponse: model = BaseResponseModelsResponse() if include_optional: return BaseResponseModelsResponse( - status = True, data = revengai.models.models_response.ModelsResponse( models = [ '' ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseModelsResponse( diff --git a/test/test_base_response_network_overview_response.py b/test/test_base_response_network_overview_response.py index 86e63c4..edf6948 100644 --- a/test/test_base_response_network_overview_response.py +++ b/test/test_base_response_network_overview_response.py @@ -34,36 +34,36 @@ def make_instance(self, include_optional) -> BaseResponseNetworkOverviewResponse model = BaseResponseNetworkOverviewResponse() if include_optional: return BaseResponseNetworkOverviewResponse( - status = True, data = revengai.models.network_overview_response.NetworkOverviewResponse( dns = [ revengai.models.network_overview_dns.NetworkOverviewDns( - host = '', - type = '', answers = [ revengai.models.network_overview_dns_answer.NetworkOverviewDnsAnswer( - type = '', - data = '', ) - ], ) + data = '', + type = '', ) + ], + host = '', + type = '', ) ], metadata = [ revengai.models.network_overview_metadata.NetworkOverviewMetadata( - host = '', - country_code = '', asn = '', + country_code = '', + host = '', type = 'metadata', ) ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseNetworkOverviewResponse( diff --git a/test/test_base_response_params.py b/test/test_base_response_params.py index 28afc91..6b4ec57 100644 --- a/test/test_base_response_params.py +++ b/test/test_base_response_params.py @@ -34,26 +34,26 @@ def make_instance(self, include_optional) -> BaseResponseParams: model = BaseResponseParams() if include_optional: return BaseResponseParams( - status = True, data = revengai.models.params.Params( - debug_hash = '', - binary_size = 56, architecture = '', - binary_type = '', - binary_format = '', binary_dynamic = True, + binary_format = '', + binary_size = 56, + binary_type = '', + debug_hash = '', model_name = '', ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseParams( diff --git a/test/test_base_response_pipeline_status_response.py b/test/test_base_response_pipeline_status_response.py index bacc197..34105b7 100644 --- a/test/test_base_response_pipeline_status_response.py +++ b/test/test_base_response_pipeline_status_response.py @@ -34,25 +34,25 @@ def make_instance(self, include_optional) -> BaseResponsePipelineStatusResponse: model = BaseResponsePipelineStatusResponse() if include_optional: return BaseResponsePipelineStatusResponse( - status = True, data = revengai.models.pipeline_status_response.PipelineStatusResponse( stages = [ revengai.models.stage_status.StageStatus( + num_ahead = 56, stage = 'ANALYSIS', - status = 'PENDING', - num_ahead = 56, ) + status = 'PENDING', ) ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponsePipelineStatusResponse( diff --git a/test/test_base_response_process_dumps.py b/test/test_base_response_process_dumps.py index af78a05..f2f48cf 100644 --- a/test/test_base_response_process_dumps.py +++ b/test/test_base_response_process_dumps.py @@ -34,32 +34,32 @@ def make_instance(self, include_optional) -> BaseResponseProcessDumps: model = BaseResponseProcessDumps() if include_optional: return BaseResponseProcessDumps( - status = True, data = revengai.models.process_dumps.ProcessDumps( - success = True, data = revengai.models.process_dumps_data.ProcessDumpsData( count = 56, dumps = [ revengai.models.process_dump.ProcessDump( - base_address = 56, actual_filename = '', - filename_friendly = '', + base_address = 56, extended_metadata = revengai.models.process_dump_metadata.ProcessDumpMetadata( sha256 = '', - type = '', - size = 56, ), ) - ], ), ), - message = '', + size = 56, + type = '', ), + filename_friendly = '', ) + ], ), + success = True, ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseProcessDumps( diff --git a/test/test_base_response_process_registry.py b/test/test_base_response_process_registry.py index 05b652c..9dea6c8 100644 --- a/test/test_base_response_process_registry.py +++ b/test/test_base_response_process_registry.py @@ -34,29 +34,29 @@ def make_instance(self, include_optional) -> BaseResponseProcessRegistry: model = BaseResponseProcessRegistry() if include_optional: return BaseResponseProcessRegistry( - status = True, data = revengai.models.process_registry.ProcessRegistry( - success = True, data = { 'key' : [ revengai.models.registry.Registry( - method = '', key = '', - value_name = '', - value = '', ) + method = '', + value = '', + value_name = '', ) ] - }, ), - message = '', + }, + success = True, ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseProcessRegistry( diff --git a/test/test_base_response_process_tree.py b/test/test_base_response_process_tree.py index 433fca1..cd41ce0 100644 --- a/test/test_base_response_process_tree.py +++ b/test/test_base_response_process_tree.py @@ -34,34 +34,34 @@ def make_instance(self, include_optional) -> BaseResponseProcessTree: model = BaseResponseProcessTree() if include_optional: return BaseResponseProcessTree( - status = True, data = revengai.models.process_tree.ProcessTree( - success = True, data = [ revengai.models.process.Process( - pid = 56, - procname = '', - executable_name = '', args = [ '' ], - ts_from = 1.337, - ts_to = 1.337, children = [ null - ], ) - ], ), - message = '', + ], + executable_name = '', + pid = 56, + procname = '', + ts_from = 1.337, + ts_to = 1.337, ) + ], + success = True, ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseProcessTree( diff --git a/test/test_base_response_queued_security_checks_task_response.py b/test/test_base_response_queued_security_checks_task_response.py index 469e315..e7555dd 100644 --- a/test/test_base_response_queued_security_checks_task_response.py +++ b/test/test_base_response_queued_security_checks_task_response.py @@ -34,20 +34,20 @@ def make_instance(self, include_optional) -> BaseResponseQueuedSecurityChecksTas 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 = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseQueuedSecurityChecksTaskResponse( diff --git a/test/test_base_response_recent.py b/test/test_base_response_recent.py index 7d7128f..4bf14f8 100644 --- a/test/test_base_response_recent.py +++ b/test/test_base_response_recent.py @@ -34,44 +34,44 @@ def make_instance(self, include_optional) -> BaseResponseRecent: model = BaseResponseRecent() if include_optional: return BaseResponseRecent( - status = True, data = revengai.models.recent.Recent( results = [ revengai.models.analysis_record.AnalysisRecord( analysis_id = 56, analysis_scope = '', + base_address = 56, binary_id = 56, - model_id = 56, - model_name = '', - status = '', - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - is_owner = True, binary_name = '', - sha_256_hash = '', - function_boundaries_hash = '', binary_size = 56, - username = '', + creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), dynamic_execution_status = 'PENDING', dynamic_execution_task_id = 56, - base_address = 56, + function_boundaries_hash = '', + is_owner = True, + model_id = 56, + model_name = '', + sha_256_hash = '', + status = '', tags = [ revengai.models.tag_item.TagItem( + collection_id = 56, name = '', - origin = '', - collection_id = 56, ) - ], ) + origin = '', ) + ], + username = '', ) ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseRecent( diff --git a/test/test_base_response_security_checks_response.py b/test/test_base_response_security_checks_response.py index 1f29ce1..ceee59a 100644 --- a/test/test_base_response_security_checks_response.py +++ b/test/test_base_response_security_checks_response.py @@ -34,32 +34,32 @@ def make_instance(self, include_optional) -> 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( + confidence = 'FALSE_POSITIVE', + description = '', function_id = 56, function_name = '', name = '', - vuln_class = 'UNSAFE_FUNCTIONS', - description = '', remediation = '', - confidence = 'FALSE_POSITIVE', - severity = 'CRITICAL', ) - ], ), - message = '', + severity = 'CRITICAL', + vuln_class = 'UNSAFE_FUNCTIONS', ) + ], + total_results = 56, ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseSecurityChecksResponse( diff --git a/test/test_base_response_status.py b/test/test_base_response_status.py index 521994f..a6bc72c 100644 --- a/test/test_base_response_status.py +++ b/test/test_base_response_status.py @@ -34,21 +34,21 @@ def make_instance(self, include_optional) -> BaseResponseStatus: model = BaseResponseStatus() if include_optional: return BaseResponseStatus( - status = True, data = revengai.models.status.Status( analysis_id = 56, analysis_status = '', ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseStatus( diff --git a/test/test_base_response_str.py b/test/test_base_response_str.py index 2a89a35..bd19d4e 100644 --- a/test/test_base_response_str.py +++ b/test/test_base_response_str.py @@ -34,19 +34,19 @@ def make_instance(self, include_optional) -> BaseResponseStr: model = BaseResponseStr() if include_optional: return BaseResponseStr( - status = True, data = '', - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseStr( diff --git a/test/test_base_response_tag_search_response.py b/test/test_base_response_tag_search_response.py index 95e9c88..5a5df90 100644 --- a/test/test_base_response_tag_search_response.py +++ b/test/test_base_response_tag_search_response.py @@ -34,24 +34,24 @@ def make_instance(self, include_optional) -> BaseResponseTagSearchResponse: model = BaseResponseTagSearchResponse() if include_optional: return BaseResponseTagSearchResponse( - status = True, data = revengai.models.tag_search_response.TagSearchResponse( results = [ revengai.models.tag_search_result.TagSearchResult( - tag_id = 56, - tag = '', ) + tag = '', + tag_id = 56, ) ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseTagSearchResponse( diff --git a/test/test_base_response_task_response.py b/test/test_base_response_task_response.py index d9be699..b26beb6 100644 --- a/test/test_base_response_task_response.py +++ b/test/test_base_response_task_response.py @@ -34,21 +34,21 @@ def make_instance(self, include_optional) -> BaseResponseTaskResponse: model = BaseResponseTaskResponse() if include_optional: return BaseResponseTaskResponse( - status = True, data = revengai.models.task_response.TaskResponse( - status = 'UNINITIALISED', - error_message = '', ), - message = '', + error_message = '', + status = 'UNINITIALISED', ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseTaskResponse( diff --git a/test/test_base_response_ttps.py b/test/test_base_response_ttps.py index 29b874f..b106ce5 100644 --- a/test/test_base_response_ttps.py +++ b/test/test_base_response_ttps.py @@ -34,37 +34,37 @@ def make_instance(self, include_optional) -> BaseResponseTTPS: model = BaseResponseTTPS() if include_optional: return BaseResponseTTPS( - status = True, data = revengai.models.ttps.TTPS( - success = True, data = revengai.models.ttps_data.TTPS_Data( score = 56, ttps = [ revengai.models.ttps_element.TTPS_Element( - name = '', attack = [ revengai.models.ttps_attack.TTPS_Attack( id = '', name = '', ) ], + name = '', occurrences = [ revengai.models.ttps_occurance.TTPS_Occurance( - ppid = 56, - pid = 56, ) + pid = 56, + ppid = 56, ) ], score = 56, ) - ], ), ), - message = '', + ], ), + success = True, ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseTTPS( diff --git a/test/test_base_response_upload_response.py b/test/test_base_response_upload_response.py index b9a562c..63facd4 100644 --- a/test/test_base_response_upload_response.py +++ b/test/test_base_response_upload_response.py @@ -34,22 +34,22 @@ def make_instance(self, include_optional) -> BaseResponseUploadResponse: model = BaseResponseUploadResponse() if include_optional: return BaseResponseUploadResponse( - status = True, data = revengai.models.upload_response.UploadResponse( - sha_256_hash = '', file_type = 'BINARY', - filename = '', ), - message = '', + filename = '', + sha_256_hash = '', ), errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseUploadResponse( diff --git a/test/test_base_response_vulnerabilities.py b/test/test_base_response_vulnerabilities.py index 5ef4cce..ac87736 100644 --- a/test/test_base_response_vulnerabilities.py +++ b/test/test_base_response_vulnerabilities.py @@ -34,33 +34,33 @@ def make_instance(self, include_optional) -> BaseResponseVulnerabilities: model = BaseResponseVulnerabilities() if include_optional: return BaseResponseVulnerabilities( - status = True, data = revengai.models.vulnerabilities.Vulnerabilities( vulnerabilities = [ revengai.models.vulnerability.Vulnerability( - vendor = '', - product = '', - version = '', cve_number = '', - severity = 'CRITICAL', - source = '', - cvss_version = '', cvss_vector = '', + cvss_version = '', + is_unknown = True, + product = '', remarks = '', score = 1.337, - is_unknown = True, ) + severity = 'CRITICAL', + source = '', + vendor = '', + version = '', ) ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseVulnerabilities( diff --git a/test/test_base_response_xref_response.py b/test/test_base_response_xref_response.py index 5a92bca..2ca0f0f 100644 --- a/test/test_base_response_xref_response.py +++ b/test/test_base_response_xref_response.py @@ -34,48 +34,48 @@ def make_instance(self, include_optional) -> BaseResponseXrefResponse: model = BaseResponseXrefResponse() if include_optional: return BaseResponseXrefResponse( - status = True, data = revengai.models.xref_response.XrefResponse( - xref_to_list = [ - revengai.models.xref_to_response.XrefToResponse( - value = '', - is_scalar = True, + xref_from_list = [ + revengai.models.xref_from_response.XrefFromResponse( is_call = True, is_data = True, + is_scalar = True, is_string = True, + orig_str_encoding = '', raw_data = '', segment = revengai.models.segment_info.SegmentInfo( + end = 56, name = '', r = True, - w = True, - x = True, start = 56, - end = 56, ), - orig_str_encoding = '', - xref_from = '', ) - ], - xref_from_list = [ - revengai.models.xref_from_response.XrefFromResponse( + w = True, + x = True, ), value = '', - is_scalar = True, + xref_to = '', ) + ], + xref_to_list = [ + revengai.models.xref_to_response.XrefToResponse( is_call = True, is_data = True, + is_scalar = True, is_string = True, - raw_data = '', orig_str_encoding = '', - xref_to = '', ) + raw_data = '', + value = '', + xref_from = '', ) ], ), - message = '', errors = [ revengai.models.error_model.ErrorModel( code = '', message = '', ) ], + message = '', meta = revengai.models.meta_model.MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ), ) + page_size = 56, ), ), + status = True ) else: return BaseResponseXrefResponse( diff --git a/test/test_basic.py b/test/test_basic.py index 94947c3..cbe6a8c 100644 --- a/test/test_basic.py +++ b/test/test_basic.py @@ -34,41 +34,41 @@ def make_instance(self, include_optional) -> Basic: model = Basic() if include_optional: return Basic( + analysis_scope = '', + base_address = 56, binary_id = 56, binary_name = '', binary_size = 56, + binary_uuid = '', creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - sha_256_hash = '', - model_name = '', - model_id = 56, - owner_username = '', - is_system = True, - analysis_scope = '', - is_owner = True, debug = True, function_count = 56, is_advanced = True, - base_address = 56, - binary_uuid = '', - sequencer_version = '' + is_owner = True, + is_system = True, + model_id = 56, + model_name = '', + owner_username = '', + sequencer_version = '', + sha_256_hash = '' ) else: return Basic( + analysis_scope = '', + base_address = 56, binary_id = 56, binary_name = '', binary_size = 56, creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - sha_256_hash = '', - model_name = '', - model_id = 56, - owner_username = '', - is_system = True, - analysis_scope = '', - is_owner = True, debug = True, function_count = 56, is_advanced = True, - base_address = 56, + is_owner = True, + is_system = True, + model_id = 56, + model_name = '', + owner_username = '', + sha_256_hash = '', ) """ diff --git a/test/test_binary_additional_details_data_response.py b/test/test_binary_additional_details_data_response.py index 3af20dc..118a809 100644 --- a/test/test_binary_additional_details_data_response.py +++ b/test/test_binary_additional_details_data_response.py @@ -34,196 +34,196 @@ def make_instance(self, include_optional) -> BinaryAdditionalDetailsDataResponse model = BinaryAdditionalDetailsDataResponse() if include_optional: return BinaryAdditionalDetailsDataResponse( + elf = revengai.models.elf_model.ELFModel( + architecture = '', + build_id = '', + debug_info = { + 'key' : null + }, + dynamic_entries = [ + revengai.models.elf_dynamic_entry.ElfDynamicEntry( + tag = '', + value = 56, ) + ], + dynamic_symbols = [ + revengai.models.elf_symbol.ELFSymbol( + binding = '', + name = '', + section_index = 56, + size = 56, + type = '', + value = 56, + visibility = '', ) + ], + endianness = '', + entry_point = 56, + entry_point_bytes = '', + export_hash = '', + exported_functions = [ + '' + ], + file_type = '', + import_hash = '', + imports = revengai.models.elf_import_model.ELFImportModel( + imports = [ + '' + ], + number_of_imports = 56, ), + notes = [ + { + 'key' : null + } + ], + relocations = [ + revengai.models.elf_relocation.ELFRelocation( + addend = 56, + address = 56, + is_dynamic = True, + is_pltgot = True, + size = 56, + symbol_name = '', + type = '', ) + ], + sections = [ + revengai.models.elf_section.ELFSection( + alignment = 56, + entropy = 1.337, + file_offset = 56, + flags = '', + flags_raw = 56, + name = '', + raw_size = 56, + type = '', + virtual_address = 56, + virtual_size = 56, ) + ], + security = revengai.models.elf_security.ELFSecurity( + canary = True, + nx = True, + pie = True, + relo = True, + stripped = True, ), + segments = [ + revengai.models.elf_segment.ELFSegment( + alignment = 56, + file_offset = 56, + flags = '', + flags_raw = 56, + physical_address = 56, + physical_size = 56, + type = '', + virtual_address = 56, + virtual_size = 56, ) + ], + symbols = [ + revengai.models.elf_symbol.ELFSymbol( + binding = '', + name = '', + section_index = 56, + size = 56, + type = '', + value = 56, + visibility = '', ) + ], + version_info = { + 'key' : null + }, ), file = revengai.models.file_metadata.FileMetadata( - size = 56, - friendly_size = '', entropy = 1.337, + friendly_size = '', hashes = revengai.models.file_hashes.FileHashes( md5 = '', sha1 = '', sha256 = '', - sha512 = '', sha3_224 = '', sha3_256 = '', sha3_384 = '', - sha3_512 = '', ), ), + sha3_512 = '', + sha512 = '', ), + size = 56, ), pe = revengai.models.pe_model.PEModel( - type = '', - timestamps = revengai.models.timestamp_model.TimestampModel( - pe_timestamp = 56, - export_timestamp = 56, - debug_timestamp = 56, ), architecture = '', checksum = 56, - image_base = 56, - security = revengai.models.security_model.SecurityModel( - aslr = True, - dep = True, - cfg = True, - driver_model = True, - app_container = True, - terminal_server_aware = True, - image_isolation = True, - code_integrity = True, - high_entropy = True, - seh = True, - bound_image = True, ), - version_info = { - 'key' : null - }, debug_info = revengai.models.pdb_debug_model.PDBDebugModel( debug_entries = [ revengai.models.single_pdb_entry_model.SinglePDBEntryModel( - guid = '', age = 56, + guid = '', path = '', ) ], ), - number_of_resources = 56, + debug_stripped = True, + dotnet = True, entry_point = revengai.models.entrypoint_model.EntrypointModel( address = 56, first_bytes = '', ), - signature = revengai.models.code_signature_model.CodeSignatureModel( - signed = True, - valid_signature = True, - signatures = [ - revengai.models.single_code_signature_model.SingleCodeSignatureModel( - certificates = [ - revengai.models.single_code_certificate_model.SingleCodeCertificateModel( - version = 56, - issued_on = '', - expires_on = '', - issuer_name = '', - serial_number = '', - subject_name = '', ) - ], - authenticode_digest = '', ) - ], ), - dotnet = True, - debug_stripped = True, - import_hash = '', export_hash = '', - rich_header_hash = '', - sections = revengai.models.section_model.SectionModel( - number_of_sections = 56, - sections = [ - revengai.models.single_section_model.SingleSectionModel( - name = '', - virtual_address = 56, - virtual_size = 56, - characteristics = '', - raw_size = 56, - entropy = 1.337, - sha3_256 = '', ) - ], ), - imports = revengai.models.import_model.ImportModel( - number_of_imports = 56, - imports = [ - { - 'key' : { - 'key' : 56 - } - } - ], ), exports = revengai.models.export_model.ExportModel( - number_of_exports = 56, exports = [ { 'key' : 56 } - ], ), + ], + number_of_exports = 56, ), icon_data = revengai.models.icon_model.IconModel( - content = '', ), ), - elf = revengai.models.elf_model.ELFModel( - file_type = '', - architecture = '', - endianness = '', - entry_point = 56, - entry_point_bytes = '', + content = '', ), + image_base = 56, import_hash = '', - export_hash = '', - build_id = '', - security = revengai.models.elf_security.ELFSecurity( - pie = True, - stripped = True, - canary = True, - nx = True, - relo = True, ), - sections = [ - revengai.models.elf_section.ELFSection( - name = '', - type = '', - virtual_address = 56, - virtual_size = 56, - raw_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - entropy = 1.337, - alignment = 56, ) - ], - segments = [ - revengai.models.elf_segment.ELFSegment( - type = '', - virtual_address = 56, - virtual_size = 56, - physical_address = 56, - physical_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - alignment = 56, ) - ], - symbols = [ - revengai.models.elf_symbol.ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', - binding = '', - visibility = '', - section_index = 56, ) - ], - dynamic_symbols = [ - revengai.models.elf_symbol.ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', - binding = '', - visibility = '', - section_index = 56, ) - ], - relocations = [ - revengai.models.elf_relocation.ELFRelocation( - address = 56, - type = '', - size = 56, - addend = 56, - symbol_name = '', - is_dynamic = True, - is_pltgot = True, ) - ], - imports = revengai.models.elf_import_model.ELFImportModel( - number_of_imports = 56, + imports = revengai.models.import_model.ImportModel( imports = [ - '' + { + 'key' : { + 'key' : 56 + } + } + ], + number_of_imports = 56, ), + number_of_resources = 56, + rich_header_hash = '', + sections = revengai.models.section_model.SectionModel( + number_of_sections = 56, + sections = [ + revengai.models.single_section_model.SingleSectionModel( + characteristics = '', + entropy = 1.337, + name = '', + raw_size = 56, + sha3_256 = '', + virtual_address = 56, + virtual_size = 56, ) ], ), - exported_functions = [ - '' - ], - dynamic_entries = [ - revengai.models.elf_dynamic_entry.ElfDynamicEntry( - tag = '', - value = 56, ) - ], - notes = [ - { - 'key' : null - } - ], - debug_info = { - 'key' : null - }, + security = revengai.models.security_model.SecurityModel( + app_container = True, + aslr = True, + bound_image = True, + cfg = True, + code_integrity = True, + dep = True, + driver_model = True, + high_entropy = True, + image_isolation = True, + seh = True, + terminal_server_aware = True, ), + signature = revengai.models.code_signature_model.CodeSignatureModel( + signatures = [ + revengai.models.single_code_signature_model.SingleCodeSignatureModel( + authenticode_digest = '', + certificates = [ + revengai.models.single_code_certificate_model.SingleCodeCertificateModel( + expires_on = '', + issued_on = '', + issuer_name = '', + serial_number = '', + subject_name = '', + version = 56, ) + ], ) + ], + signed = True, + valid_signature = True, ), + timestamps = revengai.models.timestamp_model.TimestampModel( + debug_timestamp = 56, + export_timestamp = 56, + pe_timestamp = 56, ), + type = '', version_info = { 'key' : null }, ) @@ -231,18 +231,18 @@ def make_instance(self, include_optional) -> BinaryAdditionalDetailsDataResponse else: return BinaryAdditionalDetailsDataResponse( file = revengai.models.file_metadata.FileMetadata( - size = 56, - friendly_size = '', entropy = 1.337, + friendly_size = '', hashes = revengai.models.file_hashes.FileHashes( md5 = '', sha1 = '', sha256 = '', - sha512 = '', sha3_224 = '', sha3_256 = '', sha3_384 = '', - sha3_512 = '', ), ), + sha3_512 = '', + sha512 = '', ), + size = 56, ), ) """ diff --git a/test/test_binary_additional_response.py b/test/test_binary_additional_response.py index af5a648..9c4d226 100644 --- a/test/test_binary_additional_response.py +++ b/test/test_binary_additional_response.py @@ -35,396 +35,396 @@ def make_instance(self, include_optional) -> BinaryAdditionalResponse: if include_optional: return BinaryAdditionalResponse( binary_id = 56, + creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), details = revengai.models.binary_additional_details_data_response.BinaryAdditionalDetailsDataResponse( + elf = revengai.models.elf_model.ELFModel( + architecture = '', + build_id = '', + debug_info = { + 'key' : null + }, + dynamic_entries = [ + revengai.models.elf_dynamic_entry.ElfDynamicEntry( + tag = '', + value = 56, ) + ], + dynamic_symbols = [ + revengai.models.elf_symbol.ELFSymbol( + binding = '', + name = '', + section_index = 56, + size = 56, + type = '', + value = 56, + visibility = '', ) + ], + endianness = '', + entry_point = 56, + entry_point_bytes = '', + export_hash = '', + exported_functions = [ + '' + ], + file_type = '', + import_hash = '', + imports = revengai.models.elf_import_model.ELFImportModel( + imports = [ + '' + ], + number_of_imports = 56, ), + notes = [ + { + 'key' : null + } + ], + relocations = [ + revengai.models.elf_relocation.ELFRelocation( + addend = 56, + address = 56, + is_dynamic = True, + is_pltgot = True, + size = 56, + symbol_name = '', + type = '', ) + ], + sections = [ + revengai.models.elf_section.ELFSection( + alignment = 56, + entropy = 1.337, + file_offset = 56, + flags = '', + flags_raw = 56, + name = '', + raw_size = 56, + type = '', + virtual_address = 56, + virtual_size = 56, ) + ], + security = revengai.models.elf_security.ELFSecurity( + canary = True, + nx = True, + pie = True, + relo = True, + stripped = True, ), + segments = [ + revengai.models.elf_segment.ELFSegment( + alignment = 56, + file_offset = 56, + flags = '', + flags_raw = 56, + physical_address = 56, + physical_size = 56, + type = '', + virtual_address = 56, + virtual_size = 56, ) + ], + symbols = [ + revengai.models.elf_symbol.ELFSymbol( + binding = '', + name = '', + section_index = 56, + size = 56, + type = '', + value = 56, + visibility = '', ) + ], + version_info = { + 'key' : null + }, ), file = revengai.models.file_metadata.FileMetadata( - size = 56, - friendly_size = '', entropy = 1.337, + friendly_size = '', hashes = revengai.models.file_hashes.FileHashes( md5 = '', sha1 = '', sha256 = '', - sha512 = '', sha3_224 = '', sha3_256 = '', sha3_384 = '', - sha3_512 = '', ), ), + sha3_512 = '', + sha512 = '', ), + size = 56, ), pe = revengai.models.pe_model.PEModel( - type = '', - timestamps = revengai.models.timestamp_model.TimestampModel( - pe_timestamp = 56, - export_timestamp = 56, - debug_timestamp = 56, ), architecture = '', checksum = 56, - image_base = 56, - security = revengai.models.security_model.SecurityModel( - aslr = True, - dep = True, - cfg = True, - driver_model = True, - app_container = True, - terminal_server_aware = True, - image_isolation = True, - code_integrity = True, - high_entropy = True, - seh = True, - bound_image = True, ), - version_info = { - 'key' : null - }, debug_info = revengai.models.pdb_debug_model.PDBDebugModel( debug_entries = [ revengai.models.single_pdb_entry_model.SinglePDBEntryModel( - guid = '', age = 56, + guid = '', path = '', ) ], ), - number_of_resources = 56, + debug_stripped = True, + dotnet = True, entry_point = revengai.models.entrypoint_model.EntrypointModel( address = 56, first_bytes = '', ), - signature = revengai.models.code_signature_model.CodeSignatureModel( - signed = True, - valid_signature = True, - signatures = [ - revengai.models.single_code_signature_model.SingleCodeSignatureModel( - certificates = [ - revengai.models.single_code_certificate_model.SingleCodeCertificateModel( - version = 56, - issued_on = '', - expires_on = '', - issuer_name = '', - serial_number = '', - subject_name = '', ) - ], - authenticode_digest = '', ) - ], ), - dotnet = True, - debug_stripped = True, - import_hash = '', export_hash = '', - rich_header_hash = '', - sections = revengai.models.section_model.SectionModel( - number_of_sections = 56, - sections = [ - revengai.models.single_section_model.SingleSectionModel( - name = '', - virtual_address = 56, - virtual_size = 56, - characteristics = '', - raw_size = 56, - entropy = 1.337, - sha3_256 = '', ) - ], ), + exports = revengai.models.export_model.ExportModel( + exports = [ + { + 'key' : 56 + } + ], + number_of_exports = 56, ), + icon_data = revengai.models.icon_model.IconModel( + content = '', ), + image_base = 56, + import_hash = '', imports = revengai.models.import_model.ImportModel( - number_of_imports = 56, imports = [ { 'key' : { 'key' : 56 } } + ], + number_of_imports = 56, ), + number_of_resources = 56, + rich_header_hash = '', + sections = revengai.models.section_model.SectionModel( + number_of_sections = 56, + sections = [ + revengai.models.single_section_model.SingleSectionModel( + characteristics = '', + entropy = 1.337, + name = '', + raw_size = 56, + sha3_256 = '', + virtual_address = 56, + virtual_size = 56, ) ], ), - exports = revengai.models.export_model.ExportModel( - number_of_exports = 56, - exports = [ - { - 'key' : 56 - } - ], ), - icon_data = revengai.models.icon_model.IconModel( - content = '', ), ), + security = revengai.models.security_model.SecurityModel( + app_container = True, + aslr = True, + bound_image = True, + cfg = True, + code_integrity = True, + dep = True, + driver_model = True, + high_entropy = True, + image_isolation = True, + seh = True, + terminal_server_aware = True, ), + signature = revengai.models.code_signature_model.CodeSignatureModel( + signatures = [ + revengai.models.single_code_signature_model.SingleCodeSignatureModel( + authenticode_digest = '', + certificates = [ + revengai.models.single_code_certificate_model.SingleCodeCertificateModel( + expires_on = '', + issued_on = '', + issuer_name = '', + serial_number = '', + subject_name = '', + version = 56, ) + ], ) + ], + signed = True, + valid_signature = True, ), + timestamps = revengai.models.timestamp_model.TimestampModel( + debug_timestamp = 56, + export_timestamp = 56, + pe_timestamp = 56, ), + type = '', + version_info = { + 'key' : null + }, ), ) + ) + else: + return BinaryAdditionalResponse( + binary_id = 56, + details = revengai.models.binary_additional_details_data_response.BinaryAdditionalDetailsDataResponse( elf = revengai.models.elf_model.ELFModel( - file_type = '', architecture = '', + build_id = '', + debug_info = { + 'key' : null + }, + dynamic_entries = [ + revengai.models.elf_dynamic_entry.ElfDynamicEntry( + tag = '', + value = 56, ) + ], + dynamic_symbols = [ + revengai.models.elf_symbol.ELFSymbol( + binding = '', + name = '', + section_index = 56, + size = 56, + type = '', + value = 56, + visibility = '', ) + ], endianness = '', entry_point = 56, entry_point_bytes = '', - import_hash = '', export_hash = '', - build_id = '', - security = revengai.models.elf_security.ELFSecurity( - pie = True, - stripped = True, - canary = True, - nx = True, - relo = True, ), + exported_functions = [ + '' + ], + file_type = '', + import_hash = '', + imports = revengai.models.elf_import_model.ELFImportModel( + imports = [ + '' + ], + number_of_imports = 56, ), + notes = [ + { + 'key' : null + } + ], + relocations = [ + revengai.models.elf_relocation.ELFRelocation( + addend = 56, + address = 56, + is_dynamic = True, + is_pltgot = True, + size = 56, + symbol_name = '', + type = '', ) + ], sections = [ revengai.models.elf_section.ELFSection( - name = '', - type = '', - virtual_address = 56, - virtual_size = 56, - raw_size = 56, + alignment = 56, + entropy = 1.337, file_offset = 56, flags = '', flags_raw = 56, - entropy = 1.337, - alignment = 56, ) + name = '', + raw_size = 56, + type = '', + virtual_address = 56, + virtual_size = 56, ) ], + security = revengai.models.elf_security.ELFSecurity( + canary = True, + nx = True, + pie = True, + relo = True, + stripped = True, ), segments = [ revengai.models.elf_segment.ELFSegment( - type = '', - virtual_address = 56, - virtual_size = 56, - physical_address = 56, - physical_size = 56, + alignment = 56, file_offset = 56, flags = '', flags_raw = 56, - alignment = 56, ) + physical_address = 56, + physical_size = 56, + type = '', + virtual_address = 56, + virtual_size = 56, ) ], symbols = [ revengai.models.elf_symbol.ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', binding = '', - visibility = '', - section_index = 56, ) - ], - dynamic_symbols = [ - revengai.models.elf_symbol.ELFSymbol( name = '', - value = 56, + section_index = 56, size = 56, type = '', - binding = '', - visibility = '', - section_index = 56, ) - ], - relocations = [ - revengai.models.elf_relocation.ELFRelocation( - address = 56, - type = '', - size = 56, - addend = 56, - symbol_name = '', - is_dynamic = True, - is_pltgot = True, ) - ], - imports = revengai.models.elf_import_model.ELFImportModel( - number_of_imports = 56, - imports = [ - '' - ], ), - exported_functions = [ - '' - ], - dynamic_entries = [ - revengai.models.elf_dynamic_entry.ElfDynamicEntry( - tag = '', - value = 56, ) - ], - notes = [ - { - 'key' : null - } + value = 56, + visibility = '', ) ], - debug_info = { - 'key' : null - }, version_info = { 'key' : null - }, ), ), - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') - ) - else: - return BinaryAdditionalResponse( - binary_id = 56, - details = revengai.models.binary_additional_details_data_response.BinaryAdditionalDetailsDataResponse( + }, ), file = revengai.models.file_metadata.FileMetadata( - size = 56, - friendly_size = '', entropy = 1.337, + friendly_size = '', hashes = revengai.models.file_hashes.FileHashes( md5 = '', sha1 = '', sha256 = '', - sha512 = '', sha3_224 = '', sha3_256 = '', sha3_384 = '', - sha3_512 = '', ), ), + sha3_512 = '', + sha512 = '', ), + size = 56, ), pe = revengai.models.pe_model.PEModel( - type = '', - timestamps = revengai.models.timestamp_model.TimestampModel( - pe_timestamp = 56, - export_timestamp = 56, - debug_timestamp = 56, ), architecture = '', checksum = 56, - image_base = 56, - security = revengai.models.security_model.SecurityModel( - aslr = True, - dep = True, - cfg = True, - driver_model = True, - app_container = True, - terminal_server_aware = True, - image_isolation = True, - code_integrity = True, - high_entropy = True, - seh = True, - bound_image = True, ), - version_info = { - 'key' : null - }, debug_info = revengai.models.pdb_debug_model.PDBDebugModel( debug_entries = [ revengai.models.single_pdb_entry_model.SinglePDBEntryModel( - guid = '', age = 56, + guid = '', path = '', ) ], ), - number_of_resources = 56, + debug_stripped = True, + dotnet = True, entry_point = revengai.models.entrypoint_model.EntrypointModel( address = 56, first_bytes = '', ), - signature = revengai.models.code_signature_model.CodeSignatureModel( - signed = True, - valid_signature = True, - signatures = [ - revengai.models.single_code_signature_model.SingleCodeSignatureModel( - certificates = [ - revengai.models.single_code_certificate_model.SingleCodeCertificateModel( - version = 56, - issued_on = '', - expires_on = '', - issuer_name = '', - serial_number = '', - subject_name = '', ) - ], - authenticode_digest = '', ) - ], ), - dotnet = True, - debug_stripped = True, - import_hash = '', export_hash = '', - rich_header_hash = '', - sections = revengai.models.section_model.SectionModel( - number_of_sections = 56, - sections = [ - revengai.models.single_section_model.SingleSectionModel( - name = '', - virtual_address = 56, - virtual_size = 56, - characteristics = '', - raw_size = 56, - entropy = 1.337, - sha3_256 = '', ) - ], ), - imports = revengai.models.import_model.ImportModel( - number_of_imports = 56, - imports = [ - { - 'key' : { - 'key' : 56 - } - } - ], ), exports = revengai.models.export_model.ExportModel( - number_of_exports = 56, exports = [ { 'key' : 56 } - ], ), + ], + number_of_exports = 56, ), icon_data = revengai.models.icon_model.IconModel( - content = '', ), ), - elf = revengai.models.elf_model.ELFModel( - file_type = '', - architecture = '', - endianness = '', - entry_point = 56, - entry_point_bytes = '', + content = '', ), + image_base = 56, import_hash = '', - export_hash = '', - build_id = '', - security = revengai.models.elf_security.ELFSecurity( - pie = True, - stripped = True, - canary = True, - nx = True, - relo = True, ), - sections = [ - revengai.models.elf_section.ELFSection( - name = '', - type = '', - virtual_address = 56, - virtual_size = 56, - raw_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - entropy = 1.337, - alignment = 56, ) - ], - segments = [ - revengai.models.elf_segment.ELFSegment( - type = '', - virtual_address = 56, - virtual_size = 56, - physical_address = 56, - physical_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - alignment = 56, ) - ], - symbols = [ - revengai.models.elf_symbol.ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', - binding = '', - visibility = '', - section_index = 56, ) - ], - dynamic_symbols = [ - revengai.models.elf_symbol.ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', - binding = '', - visibility = '', - section_index = 56, ) - ], - relocations = [ - revengai.models.elf_relocation.ELFRelocation( - address = 56, - type = '', - size = 56, - addend = 56, - symbol_name = '', - is_dynamic = True, - is_pltgot = True, ) - ], - imports = revengai.models.elf_import_model.ELFImportModel( - number_of_imports = 56, + imports = revengai.models.import_model.ImportModel( imports = [ - '' + { + 'key' : { + 'key' : 56 + } + } + ], + number_of_imports = 56, ), + number_of_resources = 56, + rich_header_hash = '', + sections = revengai.models.section_model.SectionModel( + number_of_sections = 56, + sections = [ + revengai.models.single_section_model.SingleSectionModel( + characteristics = '', + entropy = 1.337, + name = '', + raw_size = 56, + sha3_256 = '', + virtual_address = 56, + virtual_size = 56, ) ], ), - exported_functions = [ - '' - ], - dynamic_entries = [ - revengai.models.elf_dynamic_entry.ElfDynamicEntry( - tag = '', - value = 56, ) - ], - notes = [ - { - 'key' : null - } - ], - debug_info = { - 'key' : null - }, + security = revengai.models.security_model.SecurityModel( + app_container = True, + aslr = True, + bound_image = True, + cfg = True, + code_integrity = True, + dep = True, + driver_model = True, + high_entropy = True, + image_isolation = True, + seh = True, + terminal_server_aware = True, ), + signature = revengai.models.code_signature_model.CodeSignatureModel( + signatures = [ + revengai.models.single_code_signature_model.SingleCodeSignatureModel( + authenticode_digest = '', + certificates = [ + revengai.models.single_code_certificate_model.SingleCodeCertificateModel( + expires_on = '', + issued_on = '', + issuer_name = '', + serial_number = '', + subject_name = '', + version = 56, ) + ], ) + ], + signed = True, + valid_signature = True, ), + timestamps = revengai.models.timestamp_model.TimestampModel( + debug_timestamp = 56, + export_timestamp = 56, + pe_timestamp = 56, ), + type = '', version_info = { 'key' : null }, ), ), diff --git a/test/test_binary_config.py b/test/test_binary_config.py index 5fc53df..af0fd0b 100644 --- a/test/test_binary_config.py +++ b/test/test_binary_config.py @@ -34,9 +34,9 @@ def make_instance(self, include_optional) -> BinaryConfig: model = BinaryConfig() if include_optional: return BinaryConfig( + file_format = 'pe', isa = 'x86', - platform = 'linux', - file_format = 'pe' + platform = 'linux' ) else: return BinaryConfig( diff --git a/test/test_binary_details_response.py b/test/test_binary_details_response.py index b01dd58..afdd8fc 100644 --- a/test/test_binary_details_response.py +++ b/test/test_binary_details_response.py @@ -34,15 +34,17 @@ def make_instance(self, include_optional) -> BinaryDetailsResponse: model = BinaryDetailsResponse() if include_optional: return BinaryDetailsResponse( + var_class = '', arch = '', bits = 56, crc32 = '', - var_class = '', + debug = True, entropy = 1.337, file_size = 56, + first_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), language = '', - md5 = '', machine = '', + md5 = '', os = '', sha1 = '', sha256 = '', @@ -51,21 +53,21 @@ def make_instance(self, include_optional) -> BinaryDetailsResponse: stripped = True, sub_sys = '', tlsh = '', - type = '', - debug = True, - first_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + type = '' ) else: return BinaryDetailsResponse( + var_class = '', arch = '', bits = 56, crc32 = '', - var_class = '', + debug = True, entropy = 1.337, file_size = 56, + first_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), language = '', - md5 = '', machine = '', + md5 = '', os = '', sha1 = '', sha256 = '', @@ -75,8 +77,6 @@ def make_instance(self, include_optional) -> BinaryDetailsResponse: sub_sys = '', tlsh = '', type = '', - debug = True, - first_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) """ diff --git a/test/test_binary_externals_response.py b/test/test_binary_externals_response.py index d5bd77a..6378ed3 100644 --- a/test/test_binary_externals_response.py +++ b/test/test_binary_externals_response.py @@ -34,27 +34,27 @@ def make_instance(self, include_optional) -> BinaryExternalsResponse: model = BinaryExternalsResponse() if include_optional: return BinaryExternalsResponse( - sha_256_hash = '', - vt = { + mb = { 'key' : null }, - vt_last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - mb = { + mb_last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + sha_256_hash = '', + vt = { 'key' : null }, - mb_last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + vt_last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') ) else: return BinaryExternalsResponse( + mb = { + 'key' : null + }, + mb_last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), sha_256_hash = '', vt = { 'key' : null }, vt_last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - mb = { - 'key' : null - }, - mb_last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) """ diff --git a/test/test_binary_search_response.py b/test/test_binary_search_response.py index 10e3a15..05aaf2b 100644 --- a/test/test_binary_search_response.py +++ b/test/test_binary_search_response.py @@ -36,34 +36,34 @@ def make_instance(self, include_optional) -> BinarySearchResponse: return BinarySearchResponse( results = [ revengai.models.binary_search_result.BinarySearchResult( + analysis_id = 56, binary_id = 56, binary_name = '', - analysis_id = 56, - sha_256_hash = '', - tags = [ - '' - ], created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), model_id = 56, model_name = '', - owned_by = '', ) + owned_by = '', + sha_256_hash = '', + tags = [ + '' + ], ) ] ) else: return BinarySearchResponse( results = [ revengai.models.binary_search_result.BinarySearchResult( + analysis_id = 56, binary_id = 56, binary_name = '', - analysis_id = 56, - sha_256_hash = '', - tags = [ - '' - ], created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), model_id = 56, model_name = '', - owned_by = '', ) + owned_by = '', + sha_256_hash = '', + tags = [ + '' + ], ) ], ) """ diff --git a/test/test_binary_search_result.py b/test/test_binary_search_result.py index e3064ee..85f3301 100644 --- a/test/test_binary_search_result.py +++ b/test/test_binary_search_result.py @@ -34,31 +34,31 @@ def make_instance(self, include_optional) -> BinarySearchResult: model = BinarySearchResult() if include_optional: return BinarySearchResult( + analysis_id = 56, binary_id = 56, binary_name = '', - analysis_id = 56, - sha_256_hash = '', - tags = [ - '' - ], created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), model_id = 56, model_name = '', - owned_by = '' + owned_by = '', + sha_256_hash = '', + tags = [ + '' + ] ) else: return BinarySearchResult( + analysis_id = 56, binary_id = 56, binary_name = '', - analysis_id = 56, - sha_256_hash = '', - tags = [ - '' - ], created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), model_id = 56, model_name = '', owned_by = '', + sha_256_hash = '', + tags = [ + '' + ], ) """ diff --git a/test/test_callee_function_info.py b/test/test_callee_function_info.py index e15e1f8..90b0e76 100644 --- a/test/test_callee_function_info.py +++ b/test/test_callee_function_info.py @@ -34,20 +34,20 @@ def make_instance(self, include_optional) -> CalleeFunctionInfo: model = CalleeFunctionInfo() if include_optional: return CalleeFunctionInfo( - function_id = 56, - matched_function_id = 56, + callee_name = 'FUN_001e1370', + callee_vaddr = '1971056', dashboard_url = '', + function_id = 56, is_external = True, - callee_name = 'FUN_001e1370', - callee_vaddr = '1971056' + matched_function_id = 56 ) else: return CalleeFunctionInfo( - function_id = 56, - matched_function_id = 56, - dashboard_url = '', callee_name = 'FUN_001e1370', callee_vaddr = '1971056', + dashboard_url = '', + function_id = 56, + matched_function_id = 56, ) """ diff --git a/test/test_callees_caller_functions_response.py b/test/test_callees_caller_functions_response.py index 9a9fb1a..1c0a14d 100644 --- a/test/test_callees_caller_functions_response.py +++ b/test/test_callees_caller_functions_response.py @@ -37,21 +37,21 @@ def make_instance(self, include_optional) -> CalleesCallerFunctionsResponse: base_address = 56, callees = [ revengai.models.callee_function_info.CalleeFunctionInfo( - function_id = 56, - matched_function_id = 56, + callee_name = 'FUN_001e1370', + callee_vaddr = '1971056', dashboard_url = '', + function_id = 56, is_external = True, - callee_name = 'FUN_001e1370', - callee_vaddr = '1971056', ) + matched_function_id = 56, ) ], callers = [ revengai.models.caller_function_info.CallerFunctionInfo( - function_id = 56, - matched_function_id = 56, + caller_name = 'FUN_0002a5d8', + caller_vaddr = '173528', dashboard_url = '', + function_id = 56, is_external = True, - caller_name = 'FUN_0002a5d8', - caller_vaddr = '173528', ) + matched_function_id = 56, ) ] ) else: @@ -59,21 +59,21 @@ def make_instance(self, include_optional) -> CalleesCallerFunctionsResponse: base_address = 56, callees = [ revengai.models.callee_function_info.CalleeFunctionInfo( - function_id = 56, - matched_function_id = 56, + callee_name = 'FUN_001e1370', + callee_vaddr = '1971056', dashboard_url = '', + function_id = 56, is_external = True, - callee_name = 'FUN_001e1370', - callee_vaddr = '1971056', ) + matched_function_id = 56, ) ], callers = [ revengai.models.caller_function_info.CallerFunctionInfo( - function_id = 56, - matched_function_id = 56, + caller_name = 'FUN_0002a5d8', + caller_vaddr = '173528', dashboard_url = '', + function_id = 56, is_external = True, - caller_name = 'FUN_0002a5d8', - caller_vaddr = '173528', ) + matched_function_id = 56, ) ], ) """ diff --git a/test/test_caller_function_info.py b/test/test_caller_function_info.py index bed68ac..0399709 100644 --- a/test/test_caller_function_info.py +++ b/test/test_caller_function_info.py @@ -34,20 +34,20 @@ def make_instance(self, include_optional) -> CallerFunctionInfo: model = CallerFunctionInfo() if include_optional: return CallerFunctionInfo( - function_id = 56, - matched_function_id = 56, + caller_name = 'FUN_0002a5d8', + caller_vaddr = '173528', dashboard_url = '', + function_id = 56, is_external = True, - caller_name = 'FUN_0002a5d8', - caller_vaddr = '173528' + matched_function_id = 56 ) else: return CallerFunctionInfo( - function_id = 56, - matched_function_id = 56, - dashboard_url = '', caller_name = 'FUN_0002a5d8', caller_vaddr = '173528', + dashboard_url = '', + function_id = 56, + matched_function_id = 56, ) """ diff --git a/test/test_capabilities.py b/test/test_capabilities.py index 995193e..7d0c0ca 100644 --- a/test/test_capabilities.py +++ b/test/test_capabilities.py @@ -36,22 +36,22 @@ def make_instance(self, include_optional) -> Capabilities: return Capabilities( capabilities = [ revengai.models.capability.Capability( - function_name = '', - function_vaddr = 56, capabilities = [ '' - ], ) + ], + function_name = '', + function_vaddr = 56, ) ] ) else: return Capabilities( capabilities = [ revengai.models.capability.Capability( - function_name = '', - function_vaddr = 56, capabilities = [ '' - ], ) + ], + function_name = '', + function_vaddr = 56, ) ], ) """ diff --git a/test/test_capability.py b/test/test_capability.py index fb59671..322902a 100644 --- a/test/test_capability.py +++ b/test/test_capability.py @@ -34,19 +34,19 @@ def make_instance(self, include_optional) -> Capability: model = Capability() if include_optional: return Capability( - function_name = '', - function_vaddr = 56, capabilities = [ '' - ] + ], + function_name = '', + function_vaddr = 56 ) else: return Capability( - function_name = '', - function_vaddr = 56, capabilities = [ '' ], + function_name = '', + function_vaddr = 56, ) """ diff --git a/test/test_child_binaries_response.py b/test/test_child_binaries_response.py index 0061697..f872663 100644 --- a/test/test_child_binaries_response.py +++ b/test/test_child_binaries_response.py @@ -36,14 +36,14 @@ def make_instance(self, include_optional) -> ChildBinariesResponse: return ChildBinariesResponse( children = [ revengai.models.relative_binary_response.RelativeBinaryResponse( - binary_id = 56, analysis_id = 56, + binary_id = 56, name = '', sha256 = '', ) ], parent = revengai.models.relative_binary_response.RelativeBinaryResponse( - binary_id = 56, analysis_id = 56, + binary_id = 56, name = '', sha256 = '', ) ) @@ -51,8 +51,8 @@ def make_instance(self, include_optional) -> ChildBinariesResponse: return ChildBinariesResponse( children = [ revengai.models.relative_binary_response.RelativeBinaryResponse( - binary_id = 56, analysis_id = 56, + binary_id = 56, name = '', sha256 = '', ) ], diff --git a/test/test_code_signature_model.py b/test/test_code_signature_model.py index 407464e..00cc2c9 100644 --- a/test/test_code_signature_model.py +++ b/test/test_code_signature_model.py @@ -34,39 +34,39 @@ def make_instance(self, include_optional) -> CodeSignatureModel: model = CodeSignatureModel() if include_optional: return CodeSignatureModel( - signed = True, - valid_signature = True, signatures = [ revengai.models.single_code_signature_model.SingleCodeSignatureModel( + authenticode_digest = '', certificates = [ revengai.models.single_code_certificate_model.SingleCodeCertificateModel( - version = 56, - issued_on = '', expires_on = '', + issued_on = '', issuer_name = '', serial_number = '', - subject_name = '', ) - ], - authenticode_digest = '', ) - ] + subject_name = '', + version = 56, ) + ], ) + ], + signed = True, + valid_signature = True ) else: return CodeSignatureModel( - signed = True, - valid_signature = True, signatures = [ revengai.models.single_code_signature_model.SingleCodeSignatureModel( + authenticode_digest = '', certificates = [ revengai.models.single_code_certificate_model.SingleCodeCertificateModel( - version = 56, - issued_on = '', expires_on = '', + issued_on = '', issuer_name = '', serial_number = '', - subject_name = '', ) - ], - authenticode_digest = '', ) + subject_name = '', + version = 56, ) + ], ) ], + signed = True, + valid_signature = True, ) """ diff --git a/test/test_collection_binaries_update_response.py b/test/test_collection_binaries_update_response.py index 6ffc379..d89b063 100644 --- a/test/test_collection_binaries_update_response.py +++ b/test/test_collection_binaries_update_response.py @@ -39,10 +39,10 @@ def make_instance(self, include_optional) -> CollectionBinariesUpdateResponse: analysis_id = 56, binary_id = 56, binary_name = '', - owner_id = 56, - sha_256_hash = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - is_system_analysis = True, ) + is_system_analysis = True, + owner_id = 56, + sha_256_hash = '', ) ] ) else: @@ -52,10 +52,10 @@ def make_instance(self, include_optional) -> CollectionBinariesUpdateResponse: analysis_id = 56, binary_id = 56, binary_name = '', - owner_id = 56, - sha_256_hash = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - is_system_analysis = True, ) + is_system_analysis = True, + owner_id = 56, + sha_256_hash = '', ) ], ) """ diff --git a/test/test_collection_binary_response.py b/test/test_collection_binary_response.py index ff141b2..fab87d5 100644 --- a/test/test_collection_binary_response.py +++ b/test/test_collection_binary_response.py @@ -37,20 +37,20 @@ def make_instance(self, include_optional) -> CollectionBinaryResponse: analysis_id = 56, binary_id = 56, binary_name = '', - owner_id = 56, - sha_256_hash = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - is_system_analysis = True + is_system_analysis = True, + owner_id = 56, + sha_256_hash = '' ) else: return CollectionBinaryResponse( analysis_id = 56, binary_id = 56, binary_name = '', - owner_id = 56, - sha_256_hash = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), is_system_analysis = True, + owner_id = 56, + sha_256_hash = '', ) """ diff --git a/test/test_collection_create_request.py b/test/test_collection_create_request.py index a4038d5..a992d16 100644 --- a/test/test_collection_create_request.py +++ b/test/test_collection_create_request.py @@ -34,16 +34,16 @@ def make_instance(self, include_optional) -> CollectionCreateRequest: model = CollectionCreateRequest() if include_optional: return CollectionCreateRequest( + binaries = [ + 56 + ], collection_name = '', - description = '', collection_scope = 'PRIVATE', + description = '', + model_id = 56, tags = [ '' - ], - binaries = [ - 56 - ], - model_id = 56 + ] ) else: return CollectionCreateRequest( diff --git a/test/test_collection_list_item.py b/test/test_collection_list_item.py index d54239a..48c8cc9 100644 --- a/test/test_collection_list_item.py +++ b/test/test_collection_list_item.py @@ -34,31 +34,31 @@ def make_instance(self, include_optional) -> CollectionListItem: model = CollectionListItem() if include_optional: return CollectionListItem( + collection_id = 56, collection_name = '', - description = '', - collection_scope = '', collection_owner = '', - official_collection = True, + collection_scope = '', + collection_size = 56, collection_tags = [ '' ], - collection_size = 56, - collection_id = 56, creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + description = '', model_name = '', + official_collection = True, team_id = 56 ) else: return CollectionListItem( + collection_id = 56, collection_name = '', - description = '', - collection_scope = '', collection_owner = '', - official_collection = True, + collection_scope = '', collection_size = 56, - collection_id = 56, creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + description = '', model_name = '', + official_collection = True, ) """ diff --git a/test/test_collection_response.py b/test/test_collection_response.py index fe46fb0..27927d6 100644 --- a/test/test_collection_response.py +++ b/test/test_collection_response.py @@ -34,32 +34,32 @@ def make_instance(self, include_optional) -> CollectionResponse: model = CollectionResponse() if include_optional: return CollectionResponse( + binaries = [ + null + ], collection_id = 56, collection_name = '', - description = '', - model_id = 56, - user_id = 56, - team_id = 56, collection_scope = 'PRIVATE', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + description = '', + model_id = 56, tags = [ '' ], - binaries = [ - null - ] + team_id = 56, + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + user_id = 56 ) else: return CollectionResponse( collection_id = 56, collection_name = '', - description = '', - model_id = 56, - user_id = 56, collection_scope = 'PRIVATE', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + description = '', + model_id = 56, updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + user_id = 56, ) """ diff --git a/test/test_collection_response_binaries_inner.py b/test/test_collection_response_binaries_inner.py index d86e085..9f27a66 100644 --- a/test/test_collection_response_binaries_inner.py +++ b/test/test_collection_response_binaries_inner.py @@ -37,20 +37,20 @@ def make_instance(self, include_optional) -> CollectionResponseBinariesInner: analysis_id = 56, binary_id = 56, binary_name = '', - owner_id = 56, - sha_256_hash = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - is_system_analysis = True + is_system_analysis = True, + owner_id = 56, + sha_256_hash = '' ) else: return CollectionResponseBinariesInner( analysis_id = 56, binary_id = 56, binary_name = '', - owner_id = 56, - sha_256_hash = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), is_system_analysis = True, + owner_id = 56, + sha_256_hash = '', ) """ diff --git a/test/test_collection_search_response.py b/test/test_collection_search_response.py index 01359ba..5cfc86c 100644 --- a/test/test_collection_search_response.py +++ b/test/test_collection_search_response.py @@ -38,17 +38,17 @@ def make_instance(self, include_optional) -> CollectionSearchResponse: revengai.models.collection_search_result.CollectionSearchResult( collection_id = 56, collection_name = '', - scope = '', - last_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + description = '', + last_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), model_id = 56, model_name = '', owned_by = '', + scope = '', + size = 56, tags = [ '' ], - size = 56, - description = '', team_id = 56, ) ] ) @@ -58,17 +58,17 @@ def make_instance(self, include_optional) -> CollectionSearchResponse: revengai.models.collection_search_result.CollectionSearchResult( collection_id = 56, collection_name = '', - scope = '', - last_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + description = '', + last_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), model_id = 56, model_name = '', owned_by = '', + scope = '', + size = 56, tags = [ '' ], - size = 56, - description = '', team_id = 56, ) ], ) diff --git a/test/test_collection_search_result.py b/test/test_collection_search_result.py index 8ff149a..edc3e7d 100644 --- a/test/test_collection_search_result.py +++ b/test/test_collection_search_result.py @@ -36,30 +36,30 @@ def make_instance(self, include_optional) -> CollectionSearchResult: return CollectionSearchResult( collection_id = 56, collection_name = '', - scope = '', - last_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + description = '', + last_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), model_id = 56, model_name = '', owned_by = '', + scope = '', + size = 56, tags = [ '' ], - size = 56, - description = '', team_id = 56 ) else: return CollectionSearchResult( collection_id = 56, collection_name = '', - scope = '', - last_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + description = '', + last_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), model_id = 56, model_name = '', owned_by = '', - description = '', + scope = '', ) """ diff --git a/test/test_collection_update_request.py b/test/test_collection_update_request.py index 99152dc..e4acfef 100644 --- a/test/test_collection_update_request.py +++ b/test/test_collection_update_request.py @@ -35,8 +35,8 @@ def make_instance(self, include_optional) -> CollectionUpdateRequest: if include_optional: return CollectionUpdateRequest( collection_name = '', - description = '', - collection_scope = 'PRIVATE' + collection_scope = 'PRIVATE', + description = '' ) else: return CollectionUpdateRequest( diff --git a/test/test_comment_response.py b/test/test_comment_response.py index 7b6a56d..d0d78f7 100644 --- a/test/test_comment_response.py +++ b/test/test_comment_response.py @@ -35,23 +35,23 @@ def make_instance(self, include_optional) -> CommentResponse: if include_optional: return CommentResponse( content = '', - id = 56, - user_id = 56, - resource_type = '', - resource_id = '', context = None, created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + id = 56, + resource_id = '', + resource_type = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + user_id = 56 ) else: return CommentResponse( content = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), id = 56, - user_id = 56, - resource_type = '', resource_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + resource_type = '', updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + user_id = 56, ) """ diff --git a/test/test_communities.py b/test/test_communities.py index c9c095a..72d03ff 100644 --- a/test/test_communities.py +++ b/test/test_communities.py @@ -34,12 +34,10 @@ def make_instance(self, include_optional) -> Communities: model = Communities() if include_optional: return Communities( - total_functions = 56, - total_matched_functions = 56, direct_community_match_percentages = [ revengai.models.community_match_percentages.CommunityMatchPercentages( - binary_name = '', binary_id = 56, + binary_name = '', matched_communities_percent = 1.337, unmatched_communities_percent = 1.337, ) ], @@ -47,16 +45,16 @@ def make_instance(self, include_optional) -> Communities: { 'key' : null } - ] + ], + total_functions = 56, + total_matched_functions = 56 ) else: return Communities( - total_functions = 56, - total_matched_functions = 56, direct_community_match_percentages = [ revengai.models.community_match_percentages.CommunityMatchPercentages( - binary_name = '', binary_id = 56, + binary_name = '', matched_communities_percent = 1.337, unmatched_communities_percent = 1.337, ) ], @@ -65,6 +63,8 @@ def make_instance(self, include_optional) -> Communities: 'key' : null } ], + total_functions = 56, + total_matched_functions = 56, ) """ diff --git a/test/test_community_match_percentages.py b/test/test_community_match_percentages.py index 432765f..164ef12 100644 --- a/test/test_community_match_percentages.py +++ b/test/test_community_match_percentages.py @@ -34,15 +34,15 @@ def make_instance(self, include_optional) -> CommunityMatchPercentages: model = CommunityMatchPercentages() if include_optional: return CommunityMatchPercentages( - binary_name = '', binary_id = 56, + binary_name = '', matched_communities_percent = 1.337, unmatched_communities_percent = 1.337 ) else: return CommunityMatchPercentages( - binary_name = '', binary_id = 56, + binary_name = '', matched_communities_percent = 1.337, unmatched_communities_percent = 1.337, ) diff --git a/test/test_config_response.py b/test/test_config_response.py index bc21e78..b577ab1 100644 --- a/test/test_config_response.py +++ b/test/test_config_response.py @@ -34,24 +34,24 @@ def make_instance(self, include_optional) -> ConfigResponse: model = ConfigResponse() if include_optional: return ConfigResponse( - dashboard_url = '', - max_file_size_bytes = 56, - ai_decompiler_unsupported_languages = [ + ai_decompiler_supported_models = [ '' ], - ai_decompiler_supported_models = [ + ai_decompiler_unsupported_languages = [ '' - ] + ], + dashboard_url = '', + max_file_size_bytes = 56 ) else: return ConfigResponse( - max_file_size_bytes = 56, - ai_decompiler_unsupported_languages = [ + ai_decompiler_supported_models = [ '' ], - ai_decompiler_supported_models = [ + ai_decompiler_unsupported_languages = [ '' ], + max_file_size_bytes = 56, ) """ diff --git a/test/test_context.py b/test/test_context.py index 19304c5..8b5e386 100644 --- a/test/test_context.py +++ b/test/test_context.py @@ -34,13 +34,13 @@ def make_instance(self, include_optional) -> Context: model = Context() if include_optional: return Context( - start_line = 56, - end_line = 56 + end_line = 56, + start_line = 56 ) else: return Context( - start_line = 56, end_line = 56, + start_line = 56, ) """ diff --git a/test/test_decompilation_comment_context.py b/test/test_decompilation_comment_context.py index 03989a8..303355b 100644 --- a/test/test_decompilation_comment_context.py +++ b/test/test_decompilation_comment_context.py @@ -34,13 +34,13 @@ def make_instance(self, include_optional) -> DecompilationCommentContext: model = DecompilationCommentContext() if include_optional: return DecompilationCommentContext( - start_line = 56, - end_line = 56 + end_line = 56, + start_line = 56 ) else: return DecompilationCommentContext( - start_line = 56, end_line = 56, + start_line = 56, ) """ diff --git a/test/test_die_match.py b/test/test_die_match.py index ce64f1e..9c74590 100644 --- a/test/test_die_match.py +++ b/test/test_die_match.py @@ -34,16 +34,16 @@ def make_instance(self, include_optional) -> DieMatch: model = DieMatch() if include_optional: return DieMatch( + display = '', name = '', type = '', - display = '', version = '' ) else: return DieMatch( + display = '', name = '', type = '', - display = '', version = '', ) """ diff --git a/test/test_elf_import_model.py b/test/test_elf_import_model.py index ae78ad0..70e5981 100644 --- a/test/test_elf_import_model.py +++ b/test/test_elf_import_model.py @@ -34,17 +34,17 @@ def make_instance(self, include_optional) -> ELFImportModel: model = ELFImportModel() if include_optional: return ELFImportModel( - number_of_imports = 56, imports = [ '' - ] + ], + number_of_imports = 56 ) else: return ELFImportModel( - number_of_imports = 56, imports = [ '' ], + number_of_imports = 56, ) """ diff --git a/test/test_elf_model.py b/test/test_elf_model.py index 3ce97b3..1acf0ae 100644 --- a/test/test_elf_model.py +++ b/test/test_elf_model.py @@ -34,192 +34,192 @@ def make_instance(self, include_optional) -> ELFModel: model = ELFModel() if include_optional: return ELFModel( - file_type = '', architecture = '', + build_id = '', + debug_info = { + 'key' : null + }, + dynamic_entries = [ + revengai.models.elf_dynamic_entry.ElfDynamicEntry( + tag = '', + value = 56, ) + ], + dynamic_symbols = [ + revengai.models.elf_symbol.ELFSymbol( + binding = '', + name = '', + section_index = 56, + size = 56, + type = '', + value = 56, + visibility = '', ) + ], endianness = '', entry_point = 56, entry_point_bytes = '', - import_hash = '', export_hash = '', - build_id = '', - security = revengai.models.elf_security.ELFSecurity( - pie = True, - stripped = True, - canary = True, - nx = True, - relo = True, ), + exported_functions = [ + '' + ], + file_type = '', + import_hash = '', + imports = revengai.models.elf_import_model.ELFImportModel( + imports = [ + '' + ], + number_of_imports = 56, ), + notes = [ + { + 'key' : null + } + ], + relocations = [ + revengai.models.elf_relocation.ELFRelocation( + addend = 56, + address = 56, + is_dynamic = True, + is_pltgot = True, + size = 56, + symbol_name = '', + type = '', ) + ], sections = [ revengai.models.elf_section.ELFSection( - name = '', - type = '', - virtual_address = 56, - virtual_size = 56, - raw_size = 56, + alignment = 56, + entropy = 1.337, file_offset = 56, flags = '', flags_raw = 56, - entropy = 1.337, - alignment = 56, ) + name = '', + raw_size = 56, + type = '', + virtual_address = 56, + virtual_size = 56, ) ], + security = revengai.models.elf_security.ELFSecurity( + canary = True, + nx = True, + pie = True, + relo = True, + stripped = True, ), segments = [ revengai.models.elf_segment.ELFSegment( - type = '', - virtual_address = 56, - virtual_size = 56, - physical_address = 56, - physical_size = 56, + alignment = 56, file_offset = 56, flags = '', flags_raw = 56, - alignment = 56, ) + physical_address = 56, + physical_size = 56, + type = '', + virtual_address = 56, + virtual_size = 56, ) ], symbols = [ revengai.models.elf_symbol.ELFSymbol( + binding = '', name = '', - value = 56, + section_index = 56, size = 56, type = '', - binding = '', - visibility = '', - section_index = 56, ) + value = 56, + visibility = '', ) + ], + version_info = { + 'key' : null + } + ) + else: + return ELFModel( + architecture = '', + build_id = '', + debug_info = { + 'key' : null + }, + dynamic_entries = [ + revengai.models.elf_dynamic_entry.ElfDynamicEntry( + tag = '', + value = 56, ) ], dynamic_symbols = [ revengai.models.elf_symbol.ELFSymbol( + binding = '', name = '', - value = 56, + section_index = 56, size = 56, type = '', - binding = '', - visibility = '', - section_index = 56, ) + value = 56, + visibility = '', ) ], - relocations = [ - revengai.models.elf_relocation.ELFRelocation( - address = 56, - type = '', - size = 56, - addend = 56, - symbol_name = '', - is_dynamic = True, - is_pltgot = True, ) + endianness = '', + entry_point = 56, + entry_point_bytes = '', + export_hash = '', + exported_functions = [ + '' ], + file_type = '', + import_hash = '', imports = revengai.models.elf_import_model.ELFImportModel( - number_of_imports = 56, imports = [ '' - ], ), - exported_functions = [ - '' - ], - dynamic_entries = [ - revengai.models.elf_dynamic_entry.ElfDynamicEntry( - tag = '', - value = 56, ) - ], + ], + number_of_imports = 56, ), notes = [ { 'key' : null } ], - debug_info = { - 'key' : null - }, - version_info = { - 'key' : null - } - ) - else: - return ELFModel( - file_type = '', - architecture = '', - endianness = '', - entry_point = 56, - entry_point_bytes = '', - import_hash = '', - export_hash = '', - build_id = '', - security = revengai.models.elf_security.ELFSecurity( - pie = True, - stripped = True, - canary = True, - nx = True, - relo = True, ), + relocations = [ + revengai.models.elf_relocation.ELFRelocation( + addend = 56, + address = 56, + is_dynamic = True, + is_pltgot = True, + size = 56, + symbol_name = '', + type = '', ) + ], sections = [ revengai.models.elf_section.ELFSection( - name = '', - type = '', - virtual_address = 56, - virtual_size = 56, - raw_size = 56, + alignment = 56, + entropy = 1.337, file_offset = 56, flags = '', flags_raw = 56, - entropy = 1.337, - alignment = 56, ) + name = '', + raw_size = 56, + type = '', + virtual_address = 56, + virtual_size = 56, ) ], + security = revengai.models.elf_security.ELFSecurity( + canary = True, + nx = True, + pie = True, + relo = True, + stripped = True, ), segments = [ revengai.models.elf_segment.ELFSegment( - type = '', - virtual_address = 56, - virtual_size = 56, - physical_address = 56, - physical_size = 56, + alignment = 56, file_offset = 56, flags = '', flags_raw = 56, - alignment = 56, ) + physical_address = 56, + physical_size = 56, + type = '', + virtual_address = 56, + virtual_size = 56, ) ], symbols = [ revengai.models.elf_symbol.ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', binding = '', - visibility = '', - section_index = 56, ) - ], - dynamic_symbols = [ - revengai.models.elf_symbol.ELFSymbol( name = '', - value = 56, + section_index = 56, size = 56, type = '', - binding = '', - visibility = '', - section_index = 56, ) - ], - relocations = [ - revengai.models.elf_relocation.ELFRelocation( - address = 56, - type = '', - size = 56, - addend = 56, - symbol_name = '', - is_dynamic = True, - is_pltgot = True, ) - ], - imports = revengai.models.elf_import_model.ELFImportModel( - number_of_imports = 56, - imports = [ - '' - ], ), - exported_functions = [ - '' - ], - dynamic_entries = [ - revengai.models.elf_dynamic_entry.ElfDynamicEntry( - tag = '', - value = 56, ) - ], - notes = [ - { - 'key' : null - } + value = 56, + visibility = '', ) ], - debug_info = { - 'key' : null - }, version_info = { 'key' : null }, diff --git a/test/test_elf_relocation.py b/test/test_elf_relocation.py index 8bd6edc..9cc740a 100644 --- a/test/test_elf_relocation.py +++ b/test/test_elf_relocation.py @@ -34,23 +34,23 @@ def make_instance(self, include_optional) -> ELFRelocation: model = ELFRelocation() if include_optional: return ELFRelocation( + addend = 56, address = 56, - type = '', + is_dynamic = True, + is_pltgot = True, size = 56, - addend = 56, symbol_name = '', - is_dynamic = True, - is_pltgot = True + type = '' ) else: return ELFRelocation( - address = 56, - type = '', - size = 56, addend = 56, - symbol_name = '', + address = 56, is_dynamic = True, is_pltgot = True, + size = 56, + symbol_name = '', + type = '', ) """ diff --git a/test/test_elf_section.py b/test/test_elf_section.py index f173191..81ff066 100644 --- a/test/test_elf_section.py +++ b/test/test_elf_section.py @@ -34,29 +34,29 @@ def make_instance(self, include_optional) -> ELFSection: model = ELFSection() if include_optional: return ELFSection( - name = '', - type = '', - virtual_address = 56, - virtual_size = 56, - raw_size = 56, + alignment = 56, + entropy = 1.337, file_offset = 56, flags = '', flags_raw = 56, - entropy = 1.337, - alignment = 56 + name = '', + raw_size = 56, + type = '', + virtual_address = 56, + virtual_size = 56 ) else: return ELFSection( + alignment = 56, + entropy = 1.337, + file_offset = 56, + flags = '', + flags_raw = 56, name = '', + raw_size = 56, type = '', virtual_address = 56, virtual_size = 56, - raw_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - entropy = 1.337, - alignment = 56, ) """ diff --git a/test/test_elf_security.py b/test/test_elf_security.py index 29db706..b425842 100644 --- a/test/test_elf_security.py +++ b/test/test_elf_security.py @@ -34,19 +34,19 @@ def make_instance(self, include_optional) -> ELFSecurity: model = ELFSecurity() if include_optional: return ELFSecurity( - pie = True, - stripped = True, canary = True, nx = True, - relo = True + pie = True, + relo = True, + stripped = True ) else: return ELFSecurity( - pie = True, - stripped = True, canary = True, nx = True, + pie = True, relo = True, + stripped = True, ) """ diff --git a/test/test_elf_segment.py b/test/test_elf_segment.py index 572022c..29d15b4 100644 --- a/test/test_elf_segment.py +++ b/test/test_elf_segment.py @@ -34,27 +34,27 @@ def make_instance(self, include_optional) -> ELFSegment: model = ELFSegment() if include_optional: return ELFSegment( - type = '', - virtual_address = 56, - virtual_size = 56, - physical_address = 56, - physical_size = 56, + alignment = 56, file_offset = 56, flags = '', flags_raw = 56, - alignment = 56 + physical_address = 56, + physical_size = 56, + type = '', + virtual_address = 56, + virtual_size = 56 ) else: return ELFSegment( - type = '', - virtual_address = 56, - virtual_size = 56, - physical_address = 56, - physical_size = 56, + alignment = 56, file_offset = 56, flags = '', flags_raw = 56, - alignment = 56, + physical_address = 56, + physical_size = 56, + type = '', + virtual_address = 56, + virtual_size = 56, ) """ diff --git a/test/test_elf_symbol.py b/test/test_elf_symbol.py index 3f8e04d..49f8916 100644 --- a/test/test_elf_symbol.py +++ b/test/test_elf_symbol.py @@ -34,23 +34,23 @@ def make_instance(self, include_optional) -> ELFSymbol: model = ELFSymbol() if include_optional: return ELFSymbol( + binding = '', name = '', - value = 56, + section_index = 56, size = 56, type = '', - binding = '', - visibility = '', - section_index = 56 + value = 56, + visibility = '' ) else: return ELFSymbol( + binding = '', name = '', - value = 56, + section_index = 56, size = 56, type = '', - binding = '', + value = 56, visibility = '', - section_index = 56, ) """ diff --git a/test/test_enumeration.py b/test/test_enumeration.py index 3fe35b1..a2b60e5 100644 --- a/test/test_enumeration.py +++ b/test/test_enumeration.py @@ -34,19 +34,19 @@ def make_instance(self, include_optional) -> Enumeration: model = Enumeration() if include_optional: return Enumeration( + artifact_type = '', last_change = '', - name = '', members = { 'key' : 56 }, - artifact_type = '' + name = '' ) else: return Enumeration( - name = '', members = { 'key' : 56 }, + name = '', ) """ diff --git a/test/test_export_model.py b/test/test_export_model.py index c494d77..fe75896 100644 --- a/test/test_export_model.py +++ b/test/test_export_model.py @@ -34,21 +34,21 @@ def make_instance(self, include_optional) -> ExportModel: model = ExportModel() if include_optional: return ExportModel( - number_of_exports = 56, exports = [ { 'key' : 56 } - ] + ], + number_of_exports = 56 ) else: return ExportModel( - number_of_exports = 56, exports = [ { 'key' : 56 } ], + number_of_exports = 56, ) """ diff --git a/test/test_external_response.py b/test/test_external_response.py index df1ed78..c5f1a50 100644 --- a/test/test_external_response.py +++ b/test/test_external_response.py @@ -34,19 +34,19 @@ def make_instance(self, include_optional) -> ExternalResponse: model = ExternalResponse() if include_optional: return ExternalResponse( - sha_256_hash = '', data = { 'key' : null }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + sha_256_hash = '' ) else: return ExternalResponse( - sha_256_hash = '', data = { 'key' : null }, last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + sha_256_hash = '', ) """ diff --git a/test/test_file_hashes.py b/test/test_file_hashes.py index 79417bf..c9501b4 100644 --- a/test/test_file_hashes.py +++ b/test/test_file_hashes.py @@ -37,22 +37,22 @@ def make_instance(self, include_optional) -> FileHashes: md5 = '', sha1 = '', sha256 = '', - sha512 = '', sha3_224 = '', sha3_256 = '', sha3_384 = '', - sha3_512 = '' + sha3_512 = '', + sha512 = '' ) else: return FileHashes( md5 = '', sha1 = '', sha256 = '', - sha512 = '', sha3_224 = '', sha3_256 = '', sha3_384 = '', sha3_512 = '', + sha512 = '', ) """ diff --git a/test/test_file_metadata.py b/test/test_file_metadata.py index 2bff97a..ed94ac1 100644 --- a/test/test_file_metadata.py +++ b/test/test_file_metadata.py @@ -34,33 +34,33 @@ def make_instance(self, include_optional) -> FileMetadata: model = FileMetadata() if include_optional: return FileMetadata( - size = 56, - friendly_size = '', entropy = 1.337, + friendly_size = '', hashes = revengai.models.file_hashes.FileHashes( md5 = '', sha1 = '', sha256 = '', - sha512 = '', sha3_224 = '', sha3_256 = '', sha3_384 = '', - sha3_512 = '', ) + sha3_512 = '', + sha512 = '', ), + size = 56 ) else: return FileMetadata( - size = 56, - friendly_size = '', entropy = 1.337, + friendly_size = '', hashes = revengai.models.file_hashes.FileHashes( md5 = '', sha1 = '', sha256 = '', - sha512 = '', sha3_224 = '', sha3_256 = '', sha3_384 = '', - sha3_512 = '', ), + sha3_512 = '', + sha512 = '', ), + size = 56, ) """ diff --git a/test/test_function_block_response.py b/test/test_function_block_response.py index 7caaaa4..f149c9c 100644 --- a/test/test_function_block_response.py +++ b/test/test_function_block_response.py @@ -37,31 +37,31 @@ def make_instance(self, include_optional) -> FunctionBlockResponse: asm = [ '' ], - id = 56, - min_addr = 56, - max_addr = 56, + comment = '', destinations = [ revengai.models.function_block_destination_response.FunctionBlockDestinationResponse( destination_block_id = 56, flowtype = '', vaddr = '', ) ], - comment = '' + id = 56, + max_addr = 56, + min_addr = 56 ) else: return FunctionBlockResponse( asm = [ '' ], - id = 56, - min_addr = 56, - max_addr = 56, destinations = [ revengai.models.function_block_destination_response.FunctionBlockDestinationResponse( destination_block_id = 56, flowtype = '', vaddr = '', ) ], + id = 56, + max_addr = 56, + min_addr = 56, ) """ diff --git a/test/test_function_blocks_response.py b/test/test_function_blocks_response.py index 6041528..7f0a7c1 100644 --- a/test/test_function_blocks_response.py +++ b/test/test_function_blocks_response.py @@ -39,34 +39,34 @@ def make_instance(self, include_optional) -> FunctionBlocksResponse: asm = [ '' ], - id = 56, - min_addr = 56, - max_addr = 56, + comment = '', destinations = [ revengai.models.function_block_destination_response.FunctionBlockDestinationResponse( destination_block_id = 56, flowtype = '', vaddr = '', ) ], - comment = '', ) + id = 56, + max_addr = 56, + min_addr = 56, ) ], local_variables = [ revengai.models.function_local_variable_response.FunctionLocalVariableResponse( address = '', d_type = '', - size = 56, loc = '', - name = '', ) + name = '', + size = 56, ) ], + overview_comment = '', params = [ revengai.models.function_param_response.FunctionParamResponse( - d_type = '', - loc = '', addr = '', + d_type = '', length = 56, + loc = '', name = '', ) - ], - overview_comment = '' + ] ) else: return FunctionBlocksResponse( @@ -75,34 +75,34 @@ def make_instance(self, include_optional) -> FunctionBlocksResponse: asm = [ '' ], - id = 56, - min_addr = 56, - max_addr = 56, + comment = '', destinations = [ revengai.models.function_block_destination_response.FunctionBlockDestinationResponse( destination_block_id = 56, flowtype = '', vaddr = '', ) ], - comment = '', ) + id = 56, + max_addr = 56, + min_addr = 56, ) ], local_variables = [ revengai.models.function_local_variable_response.FunctionLocalVariableResponse( address = '', d_type = '', - size = 56, loc = '', - name = '', ) + name = '', + size = 56, ) ], + overview_comment = '', params = [ revengai.models.function_param_response.FunctionParamResponse( - d_type = '', - loc = '', addr = '', + d_type = '', length = 56, + loc = '', name = '', ) ], - overview_comment = '', ) """ diff --git a/test/test_function_boundary.py b/test/test_function_boundary.py index ef68688..c27c823 100644 --- a/test/test_function_boundary.py +++ b/test/test_function_boundary.py @@ -34,16 +34,16 @@ def make_instance(self, include_optional) -> FunctionBoundary: model = FunctionBoundary() if include_optional: return FunctionBoundary( - mangled_name = '', - start_address = 56, end_address = 56, - include_in_analysis = True + include_in_analysis = True, + mangled_name = '', + start_address = 56 ) else: return FunctionBoundary( + end_address = 56, mangled_name = '', start_address = 56, - end_address = 56, ) """ diff --git a/test/test_function_comment_create_request.py b/test/test_function_comment_create_request.py index 4ddcda3..d06d99c 100644 --- a/test/test_function_comment_create_request.py +++ b/test/test_function_comment_create_request.py @@ -36,8 +36,8 @@ def make_instance(self, include_optional) -> FunctionCommentCreateRequest: return FunctionCommentCreateRequest( content = '', context = revengai.models.decompilation_comment_context.DecompilationCommentContext( - start_line = 56, - end_line = 56, ) + end_line = 56, + start_line = 56, ) ) else: return FunctionCommentCreateRequest( diff --git a/test/test_function_data_types.py b/test/test_function_data_types.py index 50a333f..7506c81 100644 --- a/test/test_function_data_types.py +++ b/test/test_function_data_types.py @@ -35,41 +35,41 @@ def make_instance(self, include_optional) -> FunctionDataTypes: if include_optional: return FunctionDataTypes( completed = True, - status = '', data_types = revengai.models.function_info.FunctionInfo( + func_deps = [ + null + ], func_types = revengai.models.function_type.FunctionType( - last_change = '', addr = 56, - size = 56, + artifact_type = 'Function', header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', addr = 56, - type = '', args = { 'key' : revengai.models.argument.Argument( last_change = '', - offset = 56, name = '', - type = '', - size = 56, ) - }, ), + offset = 56, + size = 56, + type = '', ) + }, + last_change = '', + name = '', + type = '', ), + last_change = '', + name = '', + size = 56, stack_vars = { 'key' : revengai.models.stack_variable.StackVariable( + addr = 56, last_change = '', - offset = 56, name = '', - type = '', + offset = 56, size = 56, - addr = 56, ) + type = '', ) }, - name = '', - type = '', - artifact_type = 'Function', ), - func_deps = [ - null - ], ), - data_types_version = 56 + type = '', ), ), + data_types_version = 56, + status = '' ) else: return FunctionDataTypes( diff --git a/test/test_function_data_types_list.py b/test/test_function_data_types_list.py index c93ebb9..ac47070 100644 --- a/test/test_function_data_types_list.py +++ b/test/test_function_data_types_list.py @@ -34,90 +34,90 @@ def make_instance(self, include_optional) -> FunctionDataTypesList: model = FunctionDataTypesList() if include_optional: return FunctionDataTypesList( - total_count = 56, - total_data_types_count = 56, items = [ revengai.models.function_data_types_list_item.FunctionDataTypesListItem( completed = True, - status = '', data_types = revengai.models.function_info.FunctionInfo( + func_deps = [ + null + ], func_types = revengai.models.function_type.FunctionType( - last_change = '', addr = 56, - size = 56, + artifact_type = 'Function', header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', addr = 56, - type = '', args = { 'key' : revengai.models.argument.Argument( last_change = '', - offset = 56, name = '', - type = '', - size = 56, ) - }, ), + offset = 56, + size = 56, + type = '', ) + }, + last_change = '', + name = '', + type = '', ), + last_change = '', + name = '', + size = 56, stack_vars = { 'key' : revengai.models.stack_variable.StackVariable( + addr = 56, last_change = '', - offset = 56, name = '', - type = '', + offset = 56, size = 56, - addr = 56, ) + type = '', ) }, - name = '', - type = '', - artifact_type = 'Function', ), - func_deps = [ - null - ], ), + type = '', ), ), data_types_version = 56, - function_id = 56, ) - ] + function_id = 56, + status = '', ) + ], + total_count = 56, + total_data_types_count = 56 ) else: return FunctionDataTypesList( items = [ revengai.models.function_data_types_list_item.FunctionDataTypesListItem( completed = True, - status = '', data_types = revengai.models.function_info.FunctionInfo( + func_deps = [ + null + ], func_types = revengai.models.function_type.FunctionType( - last_change = '', addr = 56, - size = 56, + artifact_type = 'Function', header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', addr = 56, - type = '', args = { 'key' : revengai.models.argument.Argument( last_change = '', - offset = 56, name = '', - type = '', - size = 56, ) - }, ), + offset = 56, + size = 56, + type = '', ) + }, + last_change = '', + name = '', + type = '', ), + last_change = '', + name = '', + size = 56, stack_vars = { 'key' : revengai.models.stack_variable.StackVariable( + addr = 56, last_change = '', - offset = 56, name = '', - type = '', + offset = 56, size = 56, - addr = 56, ) + type = '', ) }, - name = '', - type = '', - artifact_type = 'Function', ), - func_deps = [ - null - ], ), + type = '', ), ), data_types_version = 56, - function_id = 56, ) + function_id = 56, + status = '', ) ], ) """ diff --git a/test/test_function_data_types_list_item.py b/test/test_function_data_types_list_item.py index 755c5c0..65315be 100644 --- a/test/test_function_data_types_list_item.py +++ b/test/test_function_data_types_list_item.py @@ -35,48 +35,48 @@ def make_instance(self, include_optional) -> FunctionDataTypesListItem: if include_optional: return FunctionDataTypesListItem( completed = True, - status = '', data_types = revengai.models.function_info.FunctionInfo( + func_deps = [ + null + ], func_types = revengai.models.function_type.FunctionType( - last_change = '', addr = 56, - size = 56, + artifact_type = 'Function', header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', addr = 56, - type = '', args = { 'key' : revengai.models.argument.Argument( last_change = '', - offset = 56, name = '', - type = '', - size = 56, ) - }, ), + offset = 56, + size = 56, + type = '', ) + }, + last_change = '', + name = '', + type = '', ), + last_change = '', + name = '', + size = 56, stack_vars = { 'key' : revengai.models.stack_variable.StackVariable( + addr = 56, last_change = '', - offset = 56, name = '', - type = '', + offset = 56, size = 56, - addr = 56, ) + type = '', ) }, - name = '', - type = '', - artifact_type = 'Function', ), - func_deps = [ - null - ], ), + type = '', ), ), data_types_version = 56, - function_id = 56 + function_id = 56, + status = '' ) else: return FunctionDataTypesListItem( completed = True, - status = '', function_id = 56, + status = '', ) """ diff --git a/test/test_function_data_types_status.py b/test/test_function_data_types_status.py index 7f31511..a6fe30b 100644 --- a/test/test_function_data_types_status.py +++ b/test/test_function_data_types_status.py @@ -34,14 +34,14 @@ def make_instance(self, include_optional) -> FunctionDataTypesStatus: model = FunctionDataTypesStatus() if include_optional: return FunctionDataTypesStatus( - function_id = 56, completed = True, + function_id = 56, status = '' ) else: return FunctionDataTypesStatus( - function_id = 56, completed = True, + function_id = 56, status = '', ) """ diff --git a/test/test_function_header.py b/test/test_function_header.py index a6561c4..854d9c9 100644 --- a/test/test_function_header.py +++ b/test/test_function_header.py @@ -34,32 +34,32 @@ def make_instance(self, include_optional) -> FunctionHeader: model = FunctionHeader() if include_optional: return FunctionHeader( - last_change = '', - name = '', addr = 56, - type = '', args = { 'key' : revengai.models.argument.Argument( last_change = '', - offset = 56, name = '', - type = '', - size = 56, ) - } + offset = 56, + size = 56, + type = '', ) + }, + last_change = '', + name = '', + type = '' ) else: return FunctionHeader( - name = '', addr = 56, - type = '', args = { 'key' : revengai.models.argument.Argument( last_change = '', - offset = 56, name = '', - type = '', - size = 56, ) + offset = 56, + size = 56, + type = '', ) }, + name = '', + type = '', ) """ diff --git a/test/test_function_info_input.py b/test/test_function_info_input.py index 9b201ee..ebb14d4 100644 --- a/test/test_function_info_input.py +++ b/test/test_function_info_input.py @@ -34,38 +34,38 @@ def make_instance(self, include_optional) -> FunctionInfoInput: model = FunctionInfoInput() if include_optional: return FunctionInfoInput( + func_deps = [ + null + ], func_types = revengai.models.function_type.FunctionType( - last_change = '', addr = 56, - size = 56, + artifact_type = 'Function', header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', addr = 56, - type = '', args = { 'key' : revengai.models.argument.Argument( last_change = '', - offset = 56, name = '', - type = '', - size = 56, ) - }, ), + offset = 56, + size = 56, + type = '', ) + }, + last_change = '', + name = '', + type = '', ), + last_change = '', + name = '', + size = 56, stack_vars = { 'key' : revengai.models.stack_variable.StackVariable( + addr = 56, last_change = '', - offset = 56, name = '', - type = '', + offset = 56, size = 56, - addr = 56, ) + type = '', ) }, - name = '', - type = '', - artifact_type = 'Function', ), - func_deps = [ - null - ] + type = '', ) ) else: return FunctionInfoInput( diff --git a/test/test_function_info_input_func_deps_inner.py b/test/test_function_info_input_func_deps_inner.py index 77a91e5..6cdb19c 100644 --- a/test/test_function_info_input_func_deps_inner.py +++ b/test/test_function_info_input_func_deps_inner.py @@ -34,23 +34,23 @@ def make_instance(self, include_optional) -> FunctionInfoInputFuncDepsInner: model = FunctionInfoInputFuncDepsInner() if include_optional: return FunctionInfoInputFuncDepsInner( + artifact_type = '', last_change = '', - name = '', - size = 56, members = { 'key' : 56 }, - artifact_type = '', + name = '', + size = 56, type = '', addr = 56 ) else: return FunctionInfoInputFuncDepsInner( - name = '', - size = 56, members = { 'key' : 56 }, + name = '', + size = 56, type = '', addr = 56, ) diff --git a/test/test_function_info_output.py b/test/test_function_info_output.py index 2349de1..0397c5b 100644 --- a/test/test_function_info_output.py +++ b/test/test_function_info_output.py @@ -34,38 +34,38 @@ def make_instance(self, include_optional) -> FunctionInfoOutput: model = FunctionInfoOutput() if include_optional: return FunctionInfoOutput( + func_deps = [ + null + ], func_types = revengai.models.function_type.FunctionType( - last_change = '', addr = 56, - size = 56, + artifact_type = 'Function', header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', addr = 56, - type = '', args = { 'key' : revengai.models.argument.Argument( last_change = '', - offset = 56, name = '', - type = '', - size = 56, ) - }, ), + offset = 56, + size = 56, + type = '', ) + }, + last_change = '', + name = '', + type = '', ), + last_change = '', + name = '', + size = 56, stack_vars = { 'key' : revengai.models.stack_variable.StackVariable( + addr = 56, last_change = '', - offset = 56, name = '', - type = '', + offset = 56, size = 56, - addr = 56, ) + type = '', ) }, - name = '', - type = '', - artifact_type = 'Function', ), - func_deps = [ - null - ] + type = '', ) ) else: return FunctionInfoOutput( diff --git a/test/test_function_list_item.py b/test/test_function_list_item.py index 8021b52..6f53523 100644 --- a/test/test_function_list_item.py +++ b/test/test_function_list_item.py @@ -34,33 +34,33 @@ def make_instance(self, include_optional) -> FunctionListItem: model = FunctionListItem() if include_optional: return FunctionListItem( + debug = True, id = 56, + mangled_name = '', name = '', - name_source_type = 'SYSTEM', name_source = revengai.models.name_source_type.NameSourceType( - type = 'SYSTEM', - function_id = 56, + analysis_id = 56, binary_id = 56, - analysis_id = 56, ), - mangled_name = '', - vaddr = 56, + function_id = 56, + type = 'SYSTEM', ), + name_source_type = 'SYSTEM', size = 56, - debug = True + vaddr = 56 ) else: return FunctionListItem( + debug = True, id = 56, + mangled_name = '', name = '', - name_source_type = 'SYSTEM', name_source = revengai.models.name_source_type.NameSourceType( - type = 'SYSTEM', - function_id = 56, + analysis_id = 56, binary_id = 56, - analysis_id = 56, ), - mangled_name = '', - vaddr = 56, + function_id = 56, + type = 'SYSTEM', ), + name_source_type = 'SYSTEM', size = 56, - debug = True, + vaddr = 56, ) """ diff --git a/test/test_function_local_variable_response.py b/test/test_function_local_variable_response.py index 6ed0cd4..4a60665 100644 --- a/test/test_function_local_variable_response.py +++ b/test/test_function_local_variable_response.py @@ -36,17 +36,17 @@ def make_instance(self, include_optional) -> FunctionLocalVariableResponse: return FunctionLocalVariableResponse( address = '', d_type = '', - size = 56, loc = '', - name = '' + name = '', + size = 56 ) else: return FunctionLocalVariableResponse( address = '', d_type = '', - size = 56, loc = '', name = '', + size = 56, ) """ diff --git a/test/test_function_mapping_full.py b/test/test_function_mapping_full.py index 19102b7..6a6e210 100644 --- a/test/test_function_mapping_full.py +++ b/test/test_function_mapping_full.py @@ -34,18 +34,24 @@ def make_instance(self, include_optional) -> FunctionMappingFull: model = FunctionMappingFull() if include_optional: return FunctionMappingFull( - inverse_string_map = { - 'key' : revengai.models.inverse_string_map_item.InverseStringMapItem( - string = '', - addr = 56, ) + fields = { + 'key' : { + 'key' : revengai.models.inverse_value.InverseValue( + value = '', ) + } }, inverse_function_map = { 'key' : revengai.models.inverse_function_map_item.InverseFunctionMapItem( - name = '', addr = null, - is_external = True, ) + is_external = True, + name = '', ) }, - unmatched_functions = { + inverse_string_map = { + 'key' : revengai.models.inverse_string_map_item.InverseStringMapItem( + addr = 56, + string = '', ) + }, + unmatched_custom_function_pointers = { 'key' : revengai.models.inverse_value.InverseValue( value = '', ) }, @@ -53,59 +59,59 @@ def make_instance(self, include_optional) -> FunctionMappingFull: 'key' : revengai.models.inverse_value.InverseValue( value = '', ) }, - unmatched_strings = { + unmatched_enums = { 'key' : revengai.models.inverse_value.InverseValue( value = '', ) }, - unmatched_vars = { + unmatched_external_vars = { 'key' : revengai.models.inverse_value.InverseValue( value = '', ) }, - unmatched_go_to_labels = { + unmatched_functions = { 'key' : revengai.models.inverse_value.InverseValue( value = '', ) }, - unmatched_custom_function_pointers = { + unmatched_global_vars = { 'key' : revengai.models.inverse_value.InverseValue( value = '', ) }, - unmatched_variadic_lists = { + unmatched_go_to_labels = { 'key' : revengai.models.inverse_value.InverseValue( value = '', ) }, - unmatched_enums = { + unmatched_strings = { 'key' : revengai.models.inverse_value.InverseValue( value = '', ) }, - unmatched_global_vars = { + unmatched_variadic_lists = { 'key' : revengai.models.inverse_value.InverseValue( value = '', ) }, - fields = { - 'key' : { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - } - }, - unmatched_external_vars = { + unmatched_vars = { 'key' : revengai.models.inverse_value.InverseValue( value = '', ) } ) else: return FunctionMappingFull( - inverse_string_map = { - 'key' : revengai.models.inverse_string_map_item.InverseStringMapItem( - string = '', - addr = 56, ) + fields = { + 'key' : { + 'key' : revengai.models.inverse_value.InverseValue( + value = '', ) + } }, inverse_function_map = { 'key' : revengai.models.inverse_function_map_item.InverseFunctionMapItem( - name = '', addr = null, - is_external = True, ) + is_external = True, + name = '', ) }, - unmatched_functions = { + inverse_string_map = { + 'key' : revengai.models.inverse_string_map_item.InverseStringMapItem( + addr = 56, + string = '', ) + }, + unmatched_custom_function_pointers = { 'key' : revengai.models.inverse_value.InverseValue( value = '', ) }, @@ -113,40 +119,34 @@ def make_instance(self, include_optional) -> FunctionMappingFull: 'key' : revengai.models.inverse_value.InverseValue( value = '', ) }, - unmatched_strings = { + unmatched_enums = { 'key' : revengai.models.inverse_value.InverseValue( value = '', ) }, - unmatched_vars = { + unmatched_functions = { 'key' : revengai.models.inverse_value.InverseValue( value = '', ) }, - unmatched_go_to_labels = { + unmatched_global_vars = { 'key' : revengai.models.inverse_value.InverseValue( value = '', ) }, - unmatched_custom_function_pointers = { + unmatched_go_to_labels = { 'key' : revengai.models.inverse_value.InverseValue( value = '', ) }, - unmatched_variadic_lists = { + unmatched_strings = { 'key' : revengai.models.inverse_value.InverseValue( value = '', ) }, - unmatched_enums = { + unmatched_variadic_lists = { 'key' : revengai.models.inverse_value.InverseValue( value = '', ) }, - unmatched_global_vars = { + unmatched_vars = { 'key' : revengai.models.inverse_value.InverseValue( value = '', ) }, - fields = { - 'key' : { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - } - }, ) """ diff --git a/test/test_function_match.py b/test/test_function_match.py index bf03963..513e3ee 100644 --- a/test/test_function_match.py +++ b/test/test_function_match.py @@ -34,25 +34,25 @@ def make_instance(self, include_optional) -> FunctionMatch: model = FunctionMatch() if include_optional: return FunctionMatch( + confidences = [ + revengai.models.name_confidence.NameConfidence( + confidence = 0, + name = '', ) + ], function_id = 56, matched_functions = [ revengai.models.matched_function.MatchedFunction( - function_id = 56, + analysis_id = 56, binary_id = 56, + binary_name = '', + confidence = 1.337, + debug = True, + function_id = 56, function_name = '', function_vaddr = 56, mangled_name = '', - debug = True, - binary_name = '', sha_256_hash = '', - analysis_id = 56, - similarity = 1.337, - confidence = 1.337, ) - ], - confidences = [ - revengai.models.name_confidence.NameConfidence( - name = '', - confidence = 0.0, ) + similarity = 1.337, ) ] ) else: @@ -60,17 +60,17 @@ def make_instance(self, include_optional) -> FunctionMatch: function_id = 56, matched_functions = [ revengai.models.matched_function.MatchedFunction( - function_id = 56, + analysis_id = 56, binary_id = 56, + binary_name = '', + confidence = 1.337, + debug = True, + function_id = 56, function_name = '', function_vaddr = 56, mangled_name = '', - debug = True, - binary_name = '', sha_256_hash = '', - analysis_id = 56, - similarity = 1.337, - confidence = 1.337, ) + similarity = 1.337, ) ], ) """ diff --git a/test/test_function_matching_filters.py b/test/test_function_matching_filters.py index dc4d51f..07ecb8a 100644 --- a/test/test_function_matching_filters.py +++ b/test/test_function_matching_filters.py @@ -40,14 +40,14 @@ def make_instance(self, include_optional) -> FunctionMatchingFilters: collection_ids = [ 56 ], + debug_types = [ + 'USER' + ], function_ids = [ 56 ], user_ids = [ 56 - ], - debug_types = [ - 'USER' ] ) else: diff --git a/test/test_function_matching_request.py b/test/test_function_matching_request.py index 740498b..034b9f6 100644 --- a/test/test_function_matching_request.py +++ b/test/test_function_matching_request.py @@ -34,11 +34,6 @@ def make_instance(self, include_optional) -> FunctionMatchingRequest: model = FunctionMatchingRequest() if include_optional: return FunctionMatchingRequest( - model_id = 56, - function_ids = [ - 56 - ], - min_similarity = 0.0, filters = revengai.models.function_matching_filters.FunctionMatchingFilters( binary_ids = [ 56 @@ -46,28 +41,33 @@ def make_instance(self, include_optional) -> FunctionMatchingRequest: collection_ids = [ 56 ], + debug_types = [ + 'USER' + ], function_ids = [ 56 ], user_ids = [ 56 - ], - debug_types = [ - 'USER' ], ), - results_per_function = 1.0, - page = 1.0, - page_size = 0.0, - status_only = True, + function_ids = [ + 56 + ], + min_similarity = 0, + model_id = 56, no_cache = True, + page = 1, + page_size = 0, + results_per_function = 1, + status_only = True, use_canonical_names = True ) else: return FunctionMatchingRequest( - model_id = 56, function_ids = [ 56 ], + model_id = 56, ) """ diff --git a/test/test_function_matching_response.py b/test/test_function_matching_response.py index 9438150..bf7afc6 100644 --- a/test/test_function_matching_response.py +++ b/test/test_function_matching_response.py @@ -34,37 +34,37 @@ def make_instance(self, include_optional) -> FunctionMatchingResponse: model = FunctionMatchingResponse() if include_optional: return FunctionMatchingResponse( - progress = 56, - status = '', - total_time = 56, - error_message = '', current_page = 56, - total_pages = 56, + error_message = '', matches = [ revengai.models.function_match.FunctionMatch( + confidences = [ + revengai.models.name_confidence.NameConfidence( + confidence = 0, + name = '', ) + ], function_id = 56, matched_functions = [ revengai.models.matched_function.MatchedFunction( - function_id = 56, + analysis_id = 56, binary_id = 56, + binary_name = '', + confidence = 1.337, + debug = True, + function_id = 56, function_name = '', function_vaddr = 56, mangled_name = '', - debug = True, - binary_name = '', sha_256_hash = '', - analysis_id = 56, - similarity = 1.337, - confidence = 1.337, ) - ], - confidences = [ - revengai.models.name_confidence.NameConfidence( - name = '', - confidence = 0.0, ) + similarity = 1.337, ) ], ) ], - num_matches = 56, num_debug_matches = 56, + num_matches = 56, + progress = 56, + status = '', + total_pages = 56, + total_time = 56, updated_at = '' ) else: diff --git a/test/test_function_name_history.py b/test/test_function_name_history.py index 419ae0a..bbb2de5 100644 --- a/test/test_function_name_history.py +++ b/test/test_function_name_history.py @@ -34,23 +34,23 @@ def make_instance(self, include_optional) -> FunctionNameHistory: model = FunctionNameHistory() if include_optional: return FunctionNameHistory( - history_id = 56, change_made_by = '', + created_at = '', function_name = '', - mangled_name = '', + history_id = 56, is_debug = True, - source_type = 'SYSTEM', - created_at = '' + mangled_name = '', + source_type = 'SYSTEM' ) else: return FunctionNameHistory( - history_id = 56, change_made_by = '', + created_at = '', function_name = '', - mangled_name = '', + history_id = 56, is_debug = True, + mangled_name = '', source_type = 'SYSTEM', - created_at = '', ) """ diff --git a/test/test_function_param_response.py b/test/test_function_param_response.py index 08a73e6..2def49b 100644 --- a/test/test_function_param_response.py +++ b/test/test_function_param_response.py @@ -34,18 +34,18 @@ def make_instance(self, include_optional) -> FunctionParamResponse: model = FunctionParamResponse() if include_optional: return FunctionParamResponse( - d_type = '', - loc = '', addr = '', + d_type = '', length = 56, + loc = '', name = '' ) else: return FunctionParamResponse( - d_type = '', - loc = '', addr = '', + d_type = '', length = 56, + loc = '', name = '', ) """ diff --git a/test/test_function_rename.py b/test/test_function_rename.py index ca3d1d5..920668d 100644 --- a/test/test_function_rename.py +++ b/test/test_function_rename.py @@ -34,13 +34,13 @@ def make_instance(self, include_optional) -> FunctionRename: model = FunctionRename() if include_optional: return FunctionRename( - new_name = '', - new_mangled_name = '' + new_mangled_name = '', + new_name = '' ) else: return FunctionRename( - new_name = '', new_mangled_name = '', + new_name = '', ) """ diff --git a/test/test_function_rename_map.py b/test/test_function_rename_map.py index 8367a7a..5ef27ae 100644 --- a/test/test_function_rename_map.py +++ b/test/test_function_rename_map.py @@ -35,14 +35,14 @@ def make_instance(self, include_optional) -> FunctionRenameMap: if include_optional: return FunctionRenameMap( function_id = 56, - new_name = '', - new_mangled_name = '' + new_mangled_name = '', + new_name = '' ) else: return FunctionRenameMap( function_id = 56, - new_name = '', new_mangled_name = '', + new_name = '', ) """ diff --git a/test/test_function_search_response.py b/test/test_function_search_response.py index aae9fbf..6312a17 100644 --- a/test/test_function_search_response.py +++ b/test/test_function_search_response.py @@ -36,10 +36,10 @@ def make_instance(self, include_optional) -> FunctionSearchResponse: return FunctionSearchResponse( results = [ revengai.models.function_search_result.FunctionSearchResult( - function_id = 56, - function_name = '', binary_name = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + function_id = 56, + function_name = '', model_id = 56, model_name = '', owned_by = '', ) @@ -49,10 +49,10 @@ def make_instance(self, include_optional) -> FunctionSearchResponse: return FunctionSearchResponse( results = [ revengai.models.function_search_result.FunctionSearchResult( - function_id = 56, - function_name = '', binary_name = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + function_id = 56, + function_name = '', model_id = 56, model_name = '', owned_by = '', ) diff --git a/test/test_function_search_result.py b/test/test_function_search_result.py index d368844..8d26661 100644 --- a/test/test_function_search_result.py +++ b/test/test_function_search_result.py @@ -34,20 +34,20 @@ def make_instance(self, include_optional) -> FunctionSearchResult: model = FunctionSearchResult() if include_optional: return FunctionSearchResult( - function_id = 56, - function_name = '', binary_name = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + function_id = 56, + function_name = '', model_id = 56, model_name = '', owned_by = '' ) else: return FunctionSearchResult( - function_id = 56, - function_name = '', binary_name = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + function_id = 56, + function_name = '', model_id = 56, model_name = '', owned_by = '', diff --git a/test/test_function_string.py b/test/test_function_string.py index 47d739b..1f6b00e 100644 --- a/test/test_function_string.py +++ b/test/test_function_string.py @@ -34,13 +34,14 @@ def make_instance(self, include_optional) -> FunctionString: model = FunctionString() if include_optional: return FunctionString( - value = '', - vaddr = 56 + source = 'SYSTEM', + vaddr = 56, + value = '' ) else: return FunctionString( - value = '', vaddr = 56, + value = '', ) """ diff --git a/test/test_function_strings_response.py b/test/test_function_strings_response.py index ecdb5cc..13c86a9 100644 --- a/test/test_function_strings_response.py +++ b/test/test_function_strings_response.py @@ -36,8 +36,9 @@ def make_instance(self, include_optional) -> FunctionStringsResponse: return FunctionStringsResponse( strings = [ revengai.models.function_string.FunctionString( - value = '', - vaddr = 56, ) + source = 'SYSTEM', + vaddr = 56, + value = '', ) ], total_strings = 56 ) @@ -45,8 +46,9 @@ def make_instance(self, include_optional) -> FunctionStringsResponse: return FunctionStringsResponse( strings = [ revengai.models.function_string.FunctionString( - value = '', - vaddr = 56, ) + source = 'SYSTEM', + vaddr = 56, + value = '', ) ], total_strings = 56, ) diff --git a/test/test_function_task_response.py b/test/test_function_task_response.py index 937286f..6839555 100644 --- a/test/test_function_task_response.py +++ b/test/test_function_task_response.py @@ -34,8 +34,8 @@ def make_instance(self, include_optional) -> FunctionTaskResponse: model = FunctionTaskResponse() if include_optional: return FunctionTaskResponse( - status = 'UNINITIALISED', - error_message = '' + error_message = '', + status = 'UNINITIALISED' ) else: return FunctionTaskResponse( diff --git a/test/test_function_type_input.py b/test/test_function_type_input.py index a7eb2a8..01e1c10 100644 --- a/test/test_function_type_input.py +++ b/test/test_function_type_input.py @@ -34,53 +34,53 @@ def make_instance(self, include_optional) -> FunctionTypeInput: model = FunctionTypeInput() if include_optional: return FunctionTypeInput( - last_change = '', addr = 56, - size = 56, + artifact_type = 'Function', header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', addr = 56, - type = '', args = { 'key' : revengai.models.argument.Argument( last_change = '', - offset = 56, name = '', - type = '', - size = 56, ) - }, ), + offset = 56, + size = 56, + type = '', ) + }, + last_change = '', + name = '', + type = '', ), + last_change = '', + name = '', + size = 56, stack_vars = { 'key' : revengai.models.stack_variable.StackVariable( + addr = 56, last_change = '', - offset = 56, name = '', - type = '', + offset = 56, size = 56, - addr = 56, ) + type = '', ) }, - name = '', - type = '', - artifact_type = 'Function' + type = '' ) else: return FunctionTypeInput( addr = 56, - size = 56, header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', addr = 56, - type = '', args = { 'key' : revengai.models.argument.Argument( last_change = '', - offset = 56, name = '', - type = '', - size = 56, ) - }, ), + offset = 56, + size = 56, + type = '', ) + }, + last_change = '', + name = '', + type = '', ), name = '', + size = 56, type = '', ) """ diff --git a/test/test_function_type_output.py b/test/test_function_type_output.py index d128f5f..016ec1b 100644 --- a/test/test_function_type_output.py +++ b/test/test_function_type_output.py @@ -34,53 +34,53 @@ def make_instance(self, include_optional) -> FunctionTypeOutput: model = FunctionTypeOutput() if include_optional: return FunctionTypeOutput( - last_change = '', addr = 56, - size = 56, + artifact_type = 'Function', header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', addr = 56, - type = '', args = { 'key' : revengai.models.argument.Argument( last_change = '', - offset = 56, name = '', - type = '', - size = 56, ) - }, ), + offset = 56, + size = 56, + type = '', ) + }, + last_change = '', + name = '', + type = '', ), + last_change = '', + name = '', + size = 56, stack_vars = { 'key' : revengai.models.stack_variable.StackVariable( + addr = 56, last_change = '', - offset = 56, name = '', - type = '', + offset = 56, size = 56, - addr = 56, ) + type = '', ) }, - name = '', - type = '', - artifact_type = 'Function' + type = '' ) else: return FunctionTypeOutput( addr = 56, - size = 56, header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', addr = 56, - type = '', args = { 'key' : revengai.models.argument.Argument( last_change = '', - offset = 56, name = '', - type = '', - size = 56, ) - }, ), + offset = 56, + size = 56, + type = '', ) + }, + last_change = '', + name = '', + type = '', ), name = '', + size = 56, type = '', ) """ diff --git a/test/test_functions_detail_response.py b/test/test_functions_detail_response.py index 9ca05ba..8767fbf 100644 --- a/test/test_functions_detail_response.py +++ b/test/test_functions_detail_response.py @@ -34,37 +34,37 @@ def make_instance(self, include_optional) -> FunctionsDetailResponse: model = FunctionsDetailResponse() if include_optional: return FunctionsDetailResponse( - function_id = 56, - function_name = '', - function_name_mangled = '', - function_vaddr = 56, - function_size = 56, analysis_id = 56, binary_id = 56, binary_name = '', - sha_256_hash = '', - debug_hash = '', debug = True, - embedding_3d = [ + debug_hash = '', + embedding_1d = [ 1.337 ], - embedding_1d = [ + embedding_3d = [ 1.337 - ] - ) - else: - return FunctionsDetailResponse( + ], function_id = 56, function_name = '', function_name_mangled = '', - function_vaddr = 56, function_size = 56, + function_vaddr = 56, + sha_256_hash = '' + ) + else: + return FunctionsDetailResponse( analysis_id = 56, binary_id = 56, binary_name = '', - sha_256_hash = '', - debug_hash = '', debug = True, + debug_hash = '', + function_id = 56, + function_name = '', + function_name_mangled = '', + function_size = 56, + function_vaddr = 56, + sha_256_hash = '', ) """ diff --git a/test/test_functions_list_rename.py b/test/test_functions_list_rename.py index 552d2f6..54e936e 100644 --- a/test/test_functions_list_rename.py +++ b/test/test_functions_list_rename.py @@ -37,8 +37,8 @@ def make_instance(self, include_optional) -> FunctionsListRename: functions = [ revengai.models.function_rename_map.FunctionRenameMap( function_id = 56, - new_name = '', - new_mangled_name = '', ) + new_mangled_name = '', + new_name = '', ) ] ) else: @@ -46,8 +46,8 @@ def make_instance(self, include_optional) -> FunctionsListRename: functions = [ revengai.models.function_rename_map.FunctionRenameMap( function_id = 56, - new_name = '', - new_mangled_name = '', ) + new_mangled_name = '', + new_name = '', ) ], ) """ diff --git a/test/test_generate_function_data_types.py b/test/test_generate_function_data_types.py index 4c6c1b2..7a20161 100644 --- a/test/test_generate_function_data_types.py +++ b/test/test_generate_function_data_types.py @@ -34,31 +34,31 @@ def make_instance(self, include_optional) -> GenerateFunctionDataTypes: model = GenerateFunctionDataTypes() if include_optional: return GenerateFunctionDataTypes( - queued = True, - reference = '', data_types_list = revengai.models.generation_status_list.GenerationStatusList( - total_count = 56, - total_data_types_count = 56, items = [ revengai.models.function_data_types_status.FunctionDataTypesStatus( - function_id = 56, completed = True, + function_id = 56, status = '', ) - ], ) + ], + total_count = 56, + total_data_types_count = 56, ), + queued = True, + reference = '' ) else: return GenerateFunctionDataTypes( - queued = True, - reference = '', data_types_list = revengai.models.generation_status_list.GenerationStatusList( - total_count = 56, - total_data_types_count = 56, items = [ revengai.models.function_data_types_status.FunctionDataTypesStatus( - function_id = 56, completed = True, + function_id = 56, status = '', ) - ], ), + ], + total_count = 56, + total_data_types_count = 56, ), + queued = True, + reference = '', ) """ diff --git a/test/test_generation_status_list.py b/test/test_generation_status_list.py index 52b716a..5ae1de6 100644 --- a/test/test_generation_status_list.py +++ b/test/test_generation_status_list.py @@ -34,21 +34,21 @@ def make_instance(self, include_optional) -> GenerationStatusList: model = GenerationStatusList() if include_optional: return GenerationStatusList( - total_count = 56, - total_data_types_count = 56, items = [ revengai.models.function_data_types_status.FunctionDataTypesStatus( - function_id = 56, completed = True, + function_id = 56, status = '', ) - ] + ], + total_count = 56, + total_data_types_count = 56 ) else: return GenerationStatusList( items = [ revengai.models.function_data_types_status.FunctionDataTypesStatus( - function_id = 56, completed = True, + function_id = 56, status = '', ) ], ) diff --git a/test/test_get_ai_decompilation_task.py b/test/test_get_ai_decompilation_task.py index 55c434d..8f01002 100644 --- a/test/test_get_ai_decompilation_task.py +++ b/test/test_get_ai_decompilation_task.py @@ -34,129 +34,129 @@ def make_instance(self, include_optional) -> GetAiDecompilationTask: model = GetAiDecompilationTask() if include_optional: return GetAiDecompilationTask( - status = 'uninitialised', + ai_summary = '', decompilation = '', - raw_decompilation = '', function_mapping = { 'key' : revengai.models.inverse_function_map_item.InverseFunctionMapItem( - name = '', addr = null, - is_external = True, ) + is_external = True, + name = '', ) }, function_mapping_full = revengai.models.function_mapping_full.FunctionMappingFull( - inverse_string_map = { - 'key' : revengai.models.inverse_string_map_item.InverseStringMapItem( - string = '', - addr = 56, ) + fields = { + 'key' : { + 'key' : revengai.models.inverse_value.InverseValue( + value = '', ) + } }, inverse_function_map = { 'key' : revengai.models.inverse_function_map_item.InverseFunctionMapItem( - name = '', addr = null, - is_external = True, ) + is_external = True, + name = '', ) }, - unmatched_functions = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) + inverse_string_map = { + 'key' : revengai.models.inverse_string_map_item.InverseStringMapItem( + addr = 56, + string = '', ) }, - unmatched_custom_types = { + unmatched_custom_function_pointers = { 'key' : revengai.models.inverse_value.InverseValue( value = '', ) }, - unmatched_strings = { + unmatched_custom_types = { 'key' : }, - unmatched_vars = { + unmatched_enums = { 'key' : }, - unmatched_go_to_labels = { + unmatched_external_vars = { 'key' : }, - unmatched_custom_function_pointers = { + unmatched_functions = { 'key' : }, - unmatched_variadic_lists = { + unmatched_global_vars = { 'key' : }, - unmatched_enums = { + unmatched_go_to_labels = { 'key' : }, - unmatched_global_vars = { + unmatched_strings = { 'key' : }, - fields = { - 'key' : { - 'key' : - } + unmatched_variadic_lists = { + 'key' : }, - unmatched_external_vars = { + unmatched_vars = { 'key' : }, ), - summary = '', - ai_summary = '', + predicted_function_name = '', raw_ai_summary = '', - predicted_function_name = '' + raw_decompilation = '', + status = 'uninitialised', + summary = '' ) else: return GetAiDecompilationTask( - status = 'uninitialised', decompilation = '', - raw_decompilation = '', function_mapping = { 'key' : revengai.models.inverse_function_map_item.InverseFunctionMapItem( - name = '', addr = null, - is_external = True, ) + is_external = True, + name = '', ) }, function_mapping_full = revengai.models.function_mapping_full.FunctionMappingFull( - inverse_string_map = { - 'key' : revengai.models.inverse_string_map_item.InverseStringMapItem( - string = '', - addr = 56, ) + fields = { + 'key' : { + 'key' : revengai.models.inverse_value.InverseValue( + value = '', ) + } }, inverse_function_map = { 'key' : revengai.models.inverse_function_map_item.InverseFunctionMapItem( - name = '', addr = null, - is_external = True, ) + is_external = True, + name = '', ) }, - unmatched_functions = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) + inverse_string_map = { + 'key' : revengai.models.inverse_string_map_item.InverseStringMapItem( + addr = 56, + string = '', ) }, - unmatched_custom_types = { + unmatched_custom_function_pointers = { 'key' : revengai.models.inverse_value.InverseValue( value = '', ) }, - unmatched_strings = { + unmatched_custom_types = { 'key' : }, - unmatched_vars = { + unmatched_enums = { 'key' : }, - unmatched_go_to_labels = { + unmatched_external_vars = { 'key' : }, - unmatched_custom_function_pointers = { + unmatched_functions = { 'key' : }, - unmatched_variadic_lists = { + unmatched_global_vars = { 'key' : }, - unmatched_enums = { + unmatched_go_to_labels = { 'key' : }, - unmatched_global_vars = { + unmatched_strings = { 'key' : }, - fields = { - 'key' : { - 'key' : - } + unmatched_variadic_lists = { + 'key' : }, - unmatched_external_vars = { + unmatched_vars = { 'key' : }, ), + raw_decompilation = '', + status = 'uninitialised', ) """ diff --git a/test/test_get_me_response.py b/test/test_get_me_response.py index 4c4869d..f44f9f4 100644 --- a/test/test_get_me_response.py +++ b/test/test_get_me_response.py @@ -34,25 +34,25 @@ def make_instance(self, include_optional) -> GetMeResponse: model = GetMeResponse() if include_optional: return GetMeResponse( - username = '', - user_id = 56, + creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + email = '', first_name = '', last_name = '', - email = '', - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + role = 'USER', tutorial_seen = True, - role = 'USER' + user_id = 56, + username = '' ) else: return GetMeResponse( - username = '', - user_id = 56, + creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + email = '', first_name = '', last_name = '', - email = '', - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - tutorial_seen = True, role = 'USER', + tutorial_seen = True, + user_id = 56, + username = '', ) """ diff --git a/test/test_get_public_user_response.py b/test/test_get_public_user_response.py index 45746c4..4fedec9 100644 --- a/test/test_get_public_user_response.py +++ b/test/test_get_public_user_response.py @@ -34,13 +34,13 @@ def make_instance(self, include_optional) -> GetPublicUserResponse: model = GetPublicUserResponse() if include_optional: return GetPublicUserResponse( - username = '', - user_id = 56 + user_id = 56, + username = '' ) else: return GetPublicUserResponse( - username = '', user_id = 56, + username = '', ) """ diff --git a/test/test_global_variable.py b/test/test_global_variable.py index 42444fe..b07db0c 100644 --- a/test/test_global_variable.py +++ b/test/test_global_variable.py @@ -34,19 +34,19 @@ def make_instance(self, include_optional) -> GlobalVariable: model = GlobalVariable() if include_optional: return GlobalVariable( - last_change = '', addr = 56, + artifact_type = '', + last_change = '', name = '', - type = '', size = 56, - artifact_type = '' + type = '' ) else: return GlobalVariable( addr = 56, name = '', - type = '', size = 56, + type = '', ) """ diff --git a/test/test_import_model.py b/test/test_import_model.py index dc81a83..1b4a384 100644 --- a/test/test_import_model.py +++ b/test/test_import_model.py @@ -34,18 +34,17 @@ def make_instance(self, include_optional) -> ImportModel: model = ImportModel() if include_optional: return ImportModel( - number_of_imports = 56, imports = [ { 'key' : { 'key' : 56 } } - ] + ], + number_of_imports = 56 ) else: return ImportModel( - number_of_imports = 56, imports = [ { 'key' : { @@ -53,6 +52,7 @@ def make_instance(self, include_optional) -> ImportModel: } } ], + number_of_imports = 56, ) """ diff --git a/test/test_inverse_function_map_item.py b/test/test_inverse_function_map_item.py index e441e47..a0aee22 100644 --- a/test/test_inverse_function_map_item.py +++ b/test/test_inverse_function_map_item.py @@ -34,14 +34,14 @@ def make_instance(self, include_optional) -> InverseFunctionMapItem: model = InverseFunctionMapItem() if include_optional: return InverseFunctionMapItem( - name = '', addr = None, - is_external = True + is_external = True, + name = '' ) else: return InverseFunctionMapItem( - name = '', addr = None, + name = '', ) """ diff --git a/test/test_inverse_string_map_item.py b/test/test_inverse_string_map_item.py index b777536..9e95687 100644 --- a/test/test_inverse_string_map_item.py +++ b/test/test_inverse_string_map_item.py @@ -34,13 +34,13 @@ def make_instance(self, include_optional) -> InverseStringMapItem: model = InverseStringMapItem() if include_optional: return InverseStringMapItem( - string = '', - addr = 56 + addr = 56, + string = '' ) else: return InverseStringMapItem( - string = '', addr = 56, + string = '', ) """ diff --git a/test/test_list_collection_results.py b/test/test_list_collection_results.py index 8b97802..b0e697a 100644 --- a/test/test_list_collection_results.py +++ b/test/test_list_collection_results.py @@ -36,18 +36,18 @@ def make_instance(self, include_optional) -> ListCollectionResults: return ListCollectionResults( results = [ revengai.models.collection_list_item.CollectionListItem( + collection_id = 56, collection_name = '', - description = '', - collection_scope = '', collection_owner = '', - official_collection = True, + collection_scope = '', + collection_size = 56, collection_tags = [ '' ], - collection_size = 56, - collection_id = 56, creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + description = '', model_name = '', + official_collection = True, team_id = 56, ) ] ) @@ -55,18 +55,18 @@ def make_instance(self, include_optional) -> ListCollectionResults: return ListCollectionResults( results = [ revengai.models.collection_list_item.CollectionListItem( + collection_id = 56, collection_name = '', - description = '', - collection_scope = '', collection_owner = '', - official_collection = True, + collection_scope = '', + collection_size = 56, collection_tags = [ '' ], - collection_size = 56, - collection_id = 56, creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + description = '', model_name = '', + official_collection = True, team_id = 56, ) ], ) diff --git a/test/test_login_request.py b/test/test_login_request.py index ab86cac..155270d 100644 --- a/test/test_login_request.py +++ b/test/test_login_request.py @@ -34,13 +34,13 @@ def make_instance(self, include_optional) -> LoginRequest: model = LoginRequest() if include_optional: return LoginRequest( - username = '0', - password = '0123456789' + password = '0123456789', + username = '0' ) else: return LoginRequest( - username = '0', password = '0123456789', + username = '0', ) """ diff --git a/test/test_matched_function.py b/test/test_matched_function.py index b1777b4..10413f9 100644 --- a/test/test_matched_function.py +++ b/test/test_matched_function.py @@ -34,29 +34,29 @@ def make_instance(self, include_optional) -> MatchedFunction: model = MatchedFunction() if include_optional: return MatchedFunction( - function_id = 56, + analysis_id = 56, binary_id = 56, + binary_name = '', + confidence = 1.337, + debug = True, + function_id = 56, function_name = '', function_vaddr = 56, mangled_name = '', - debug = True, - binary_name = '', sha_256_hash = '', - analysis_id = 56, - similarity = 1.337, - confidence = 1.337 + similarity = 1.337 ) else: return MatchedFunction( - function_id = 56, + analysis_id = 56, binary_id = 56, + binary_name = '', + debug = True, + function_id = 56, function_name = '', function_vaddr = 56, mangled_name = '', - debug = True, - binary_name = '', sha_256_hash = '', - analysis_id = 56, ) """ diff --git a/test/test_matched_function_suggestion.py b/test/test_matched_function_suggestion.py index d47c1ba..dcbf1b9 100644 --- a/test/test_matched_function_suggestion.py +++ b/test/test_matched_function_suggestion.py @@ -36,8 +36,8 @@ def make_instance(self, include_optional) -> MatchedFunctionSuggestion: return MatchedFunctionSuggestion( function_id = 56, function_vaddr = 56, - suggested_name = '', - suggested_demangled_name = '' + suggested_demangled_name = '', + suggested_name = '' ) else: return MatchedFunctionSuggestion( diff --git a/test/test_meta_model.py b/test/test_meta_model.py index 0edf0e1..b5b016b 100644 --- a/test/test_meta_model.py +++ b/test/test_meta_model.py @@ -35,9 +35,9 @@ def make_instance(self, include_optional) -> MetaModel: if include_optional: return MetaModel( pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True, ) + page_size = 56, ) ) else: return MetaModel( diff --git a/test/test_name_confidence.py b/test/test_name_confidence.py index 9567d7f..096af30 100644 --- a/test/test_name_confidence.py +++ b/test/test_name_confidence.py @@ -34,13 +34,13 @@ def make_instance(self, include_optional) -> NameConfidence: model = NameConfidence() if include_optional: return NameConfidence( - name = '', - confidence = 0.0 + confidence = 0, + name = '' ) else: return NameConfidence( + confidence = 0, name = '', - confidence = 0.0, ) """ diff --git a/test/test_name_source_type.py b/test/test_name_source_type.py index 32d23e6..57afa69 100644 --- a/test/test_name_source_type.py +++ b/test/test_name_source_type.py @@ -34,10 +34,10 @@ def make_instance(self, include_optional) -> NameSourceType: model = NameSourceType() if include_optional: return NameSourceType( - type = 'SYSTEM', - function_id = 56, + analysis_id = 56, binary_id = 56, - analysis_id = 56 + function_id = 56, + type = 'SYSTEM' ) else: return NameSourceType( diff --git a/test/test_network_overview_dns.py b/test/test_network_overview_dns.py index e95aab6..c48d489 100644 --- a/test/test_network_overview_dns.py +++ b/test/test_network_overview_dns.py @@ -34,23 +34,23 @@ def make_instance(self, include_optional) -> NetworkOverviewDns: model = NetworkOverviewDns() if include_optional: return NetworkOverviewDns( - host = '', - type = '', answers = [ revengai.models.network_overview_dns_answer.NetworkOverviewDnsAnswer( - type = '', - data = '', ) - ] + data = '', + type = '', ) + ], + host = '', + type = '' ) else: return NetworkOverviewDns( - host = '', - type = '', answers = [ revengai.models.network_overview_dns_answer.NetworkOverviewDnsAnswer( - type = '', - data = '', ) + data = '', + type = '', ) ], + host = '', + type = '', ) """ diff --git a/test/test_network_overview_dns_answer.py b/test/test_network_overview_dns_answer.py index aa41fca..02eede5 100644 --- a/test/test_network_overview_dns_answer.py +++ b/test/test_network_overview_dns_answer.py @@ -34,13 +34,13 @@ def make_instance(self, include_optional) -> NetworkOverviewDnsAnswer: model = NetworkOverviewDnsAnswer() if include_optional: return NetworkOverviewDnsAnswer( - type = '', - data = '' + data = '', + type = '' ) else: return NetworkOverviewDnsAnswer( - type = '', data = '', + type = '', ) """ diff --git a/test/test_network_overview_metadata.py b/test/test_network_overview_metadata.py index a5e1398..7556f10 100644 --- a/test/test_network_overview_metadata.py +++ b/test/test_network_overview_metadata.py @@ -34,16 +34,16 @@ def make_instance(self, include_optional) -> NetworkOverviewMetadata: model = NetworkOverviewMetadata() if include_optional: return NetworkOverviewMetadata( - host = '', - country_code = '', asn = '', + country_code = '', + host = '', type = 'metadata' ) else: return NetworkOverviewMetadata( - host = '', - country_code = '', asn = '', + country_code = '', + host = '', type = 'metadata', ) """ diff --git a/test/test_network_overview_response.py b/test/test_network_overview_response.py index 26d555f..ca80a29 100644 --- a/test/test_network_overview_response.py +++ b/test/test_network_overview_response.py @@ -36,19 +36,19 @@ def make_instance(self, include_optional) -> NetworkOverviewResponse: return NetworkOverviewResponse( dns = [ revengai.models.network_overview_dns.NetworkOverviewDns( - host = '', - type = '', answers = [ revengai.models.network_overview_dns_answer.NetworkOverviewDnsAnswer( - type = '', - data = '', ) - ], ) + data = '', + type = '', ) + ], + host = '', + type = '', ) ], metadata = [ revengai.models.network_overview_metadata.NetworkOverviewMetadata( - host = '', - country_code = '', asn = '', + country_code = '', + host = '', type = 'metadata', ) ] ) @@ -56,19 +56,19 @@ def make_instance(self, include_optional) -> NetworkOverviewResponse: return NetworkOverviewResponse( dns = [ revengai.models.network_overview_dns.NetworkOverviewDns( - host = '', - type = '', answers = [ revengai.models.network_overview_dns_answer.NetworkOverviewDnsAnswer( - type = '', - data = '', ) - ], ) + data = '', + type = '', ) + ], + host = '', + type = '', ) ], metadata = [ revengai.models.network_overview_metadata.NetworkOverviewMetadata( - host = '', - country_code = '', asn = '', + country_code = '', + host = '', type = 'metadata', ) ], ) diff --git a/test/test_pagination_model.py b/test/test_pagination_model.py index 49e999f..2b5e75d 100644 --- a/test/test_pagination_model.py +++ b/test/test_pagination_model.py @@ -34,15 +34,15 @@ def make_instance(self, include_optional) -> PaginationModel: model = PaginationModel() if include_optional: return PaginationModel( - page_size = 56, + has_next_page = True, page_number = 56, - has_next_page = True + page_size = 56 ) else: return PaginationModel( - page_size = 56, - page_number = 56, has_next_page = True, + page_number = 56, + page_size = 56, ) """ diff --git a/test/test_params.py b/test/test_params.py index a973fac..e6a1ef0 100644 --- a/test/test_params.py +++ b/test/test_params.py @@ -34,22 +34,22 @@ def make_instance(self, include_optional) -> Params: model = Params() if include_optional: return Params( - debug_hash = '', - binary_size = 56, architecture = '', - binary_type = '', - binary_format = '', binary_dynamic = True, + binary_format = '', + binary_size = 56, + binary_type = '', + debug_hash = '', model_name = '' ) else: return Params( - debug_hash = '', - binary_size = 56, architecture = '', - binary_type = '', - binary_format = '', binary_dynamic = True, + binary_format = '', + binary_size = 56, + binary_type = '', + debug_hash = '', model_name = '', ) """ diff --git a/test/test_pdb_debug_model.py b/test/test_pdb_debug_model.py index 34009c7..fd71c12 100644 --- a/test/test_pdb_debug_model.py +++ b/test/test_pdb_debug_model.py @@ -36,8 +36,8 @@ def make_instance(self, include_optional) -> PDBDebugModel: return PDBDebugModel( debug_entries = [ revengai.models.single_pdb_entry_model.SinglePDBEntryModel( - guid = '', age = 56, + guid = '', path = '', ) ] ) @@ -45,8 +45,8 @@ def make_instance(self, include_optional) -> PDBDebugModel: return PDBDebugModel( debug_entries = [ revengai.models.single_pdb_entry_model.SinglePDBEntryModel( - guid = '', age = 56, + guid = '', path = '', ) ], ) diff --git a/test/test_pe_model.py b/test/test_pe_model.py index 97978b2..4f2cc61 100644 --- a/test/test_pe_model.py +++ b/test/test_pe_model.py @@ -34,179 +34,179 @@ def make_instance(self, include_optional) -> PEModel: model = PEModel() if include_optional: return PEModel( - type = '', - timestamps = revengai.models.timestamp_model.TimestampModel( - pe_timestamp = 56, - export_timestamp = 56, - debug_timestamp = 56, ), architecture = '', checksum = 56, - image_base = 56, - security = revengai.models.security_model.SecurityModel( - aslr = True, - dep = True, - cfg = True, - driver_model = True, - app_container = True, - terminal_server_aware = True, - image_isolation = True, - code_integrity = True, - high_entropy = True, - seh = True, - bound_image = True, ), - version_info = { - 'key' : null - }, debug_info = revengai.models.pdb_debug_model.PDBDebugModel( debug_entries = [ revengai.models.single_pdb_entry_model.SinglePDBEntryModel( - guid = '', age = 56, + guid = '', path = '', ) ], ), - number_of_resources = 56, + debug_stripped = True, + dotnet = True, entry_point = revengai.models.entrypoint_model.EntrypointModel( address = 56, first_bytes = '', ), - signature = revengai.models.code_signature_model.CodeSignatureModel( - signed = True, - valid_signature = True, - signatures = [ - revengai.models.single_code_signature_model.SingleCodeSignatureModel( - certificates = [ - revengai.models.single_code_certificate_model.SingleCodeCertificateModel( - version = 56, - issued_on = '', - expires_on = '', - issuer_name = '', - serial_number = '', - subject_name = '', ) - ], - authenticode_digest = '', ) - ], ), - dotnet = True, - debug_stripped = True, - import_hash = '', export_hash = '', - rich_header_hash = '', - sections = revengai.models.section_model.SectionModel( - number_of_sections = 56, - sections = [ - revengai.models.single_section_model.SingleSectionModel( - name = '', - virtual_address = 56, - virtual_size = 56, - characteristics = '', - raw_size = 56, - entropy = 1.337, - sha3_256 = '', ) - ], ), + exports = revengai.models.export_model.ExportModel( + exports = [ + { + 'key' : 56 + } + ], + number_of_exports = 56, ), + icon_data = revengai.models.icon_model.IconModel( + content = '', ), + image_base = 56, + import_hash = '', imports = revengai.models.import_model.ImportModel( - number_of_imports = 56, imports = [ { 'key' : { 'key' : 56 } } + ], + number_of_imports = 56, ), + number_of_resources = 56, + rich_header_hash = '', + sections = revengai.models.section_model.SectionModel( + number_of_sections = 56, + sections = [ + revengai.models.single_section_model.SingleSectionModel( + characteristics = '', + entropy = 1.337, + name = '', + raw_size = 56, + sha3_256 = '', + virtual_address = 56, + virtual_size = 56, ) ], ), - exports = revengai.models.export_model.ExportModel( - number_of_exports = 56, - exports = [ - { - 'key' : 56 - } - ], ), - icon_data = revengai.models.icon_model.IconModel( - content = '', ) - ) - else: - return PEModel( - type = '', - timestamps = revengai.models.timestamp_model.TimestampModel( - pe_timestamp = 56, - export_timestamp = 56, - debug_timestamp = 56, ), - architecture = '', - checksum = 56, - image_base = 56, security = revengai.models.security_model.SecurityModel( + app_container = True, aslr = True, - dep = True, + bound_image = True, cfg = True, - driver_model = True, - app_container = True, - terminal_server_aware = True, - image_isolation = True, code_integrity = True, + dep = True, + driver_model = True, high_entropy = True, + image_isolation = True, seh = True, - bound_image = True, ), + terminal_server_aware = True, ), + signature = revengai.models.code_signature_model.CodeSignatureModel( + signatures = [ + revengai.models.single_code_signature_model.SingleCodeSignatureModel( + authenticode_digest = '', + certificates = [ + revengai.models.single_code_certificate_model.SingleCodeCertificateModel( + expires_on = '', + issued_on = '', + issuer_name = '', + serial_number = '', + subject_name = '', + version = 56, ) + ], ) + ], + signed = True, + valid_signature = True, ), + timestamps = revengai.models.timestamp_model.TimestampModel( + debug_timestamp = 56, + export_timestamp = 56, + pe_timestamp = 56, ), + type = '', version_info = { 'key' : null - }, + } + ) + else: + return PEModel( + architecture = '', + checksum = 56, debug_info = revengai.models.pdb_debug_model.PDBDebugModel( debug_entries = [ revengai.models.single_pdb_entry_model.SinglePDBEntryModel( - guid = '', age = 56, + guid = '', path = '', ) ], ), - number_of_resources = 56, + debug_stripped = True, + dotnet = True, entry_point = revengai.models.entrypoint_model.EntrypointModel( address = 56, first_bytes = '', ), - signature = revengai.models.code_signature_model.CodeSignatureModel( - signed = True, - valid_signature = True, - signatures = [ - revengai.models.single_code_signature_model.SingleCodeSignatureModel( - certificates = [ - revengai.models.single_code_certificate_model.SingleCodeCertificateModel( - version = 56, - issued_on = '', - expires_on = '', - issuer_name = '', - serial_number = '', - subject_name = '', ) - ], - authenticode_digest = '', ) - ], ), - dotnet = True, - debug_stripped = True, - import_hash = '', export_hash = '', - rich_header_hash = '', - sections = revengai.models.section_model.SectionModel( - number_of_sections = 56, - sections = [ - revengai.models.single_section_model.SingleSectionModel( - name = '', - virtual_address = 56, - virtual_size = 56, - characteristics = '', - raw_size = 56, - entropy = 1.337, - sha3_256 = '', ) - ], ), + exports = revengai.models.export_model.ExportModel( + exports = [ + { + 'key' : 56 + } + ], + number_of_exports = 56, ), + icon_data = revengai.models.icon_model.IconModel( + content = '', ), + image_base = 56, + import_hash = '', imports = revengai.models.import_model.ImportModel( - number_of_imports = 56, imports = [ { 'key' : { 'key' : 56 } } + ], + number_of_imports = 56, ), + number_of_resources = 56, + rich_header_hash = '', + sections = revengai.models.section_model.SectionModel( + number_of_sections = 56, + sections = [ + revengai.models.single_section_model.SingleSectionModel( + characteristics = '', + entropy = 1.337, + name = '', + raw_size = 56, + sha3_256 = '', + virtual_address = 56, + virtual_size = 56, ) ], ), - exports = revengai.models.export_model.ExportModel( - number_of_exports = 56, - exports = [ - { - 'key' : 56 - } - ], ), - icon_data = revengai.models.icon_model.IconModel( - content = '', ), + security = revengai.models.security_model.SecurityModel( + app_container = True, + aslr = True, + bound_image = True, + cfg = True, + code_integrity = True, + dep = True, + driver_model = True, + high_entropy = True, + image_isolation = True, + seh = True, + terminal_server_aware = True, ), + signature = revengai.models.code_signature_model.CodeSignatureModel( + signatures = [ + revengai.models.single_code_signature_model.SingleCodeSignatureModel( + authenticode_digest = '', + certificates = [ + revengai.models.single_code_certificate_model.SingleCodeCertificateModel( + expires_on = '', + issued_on = '', + issuer_name = '', + serial_number = '', + subject_name = '', + version = 56, ) + ], ) + ], + signed = True, + valid_signature = True, ), + timestamps = revengai.models.timestamp_model.TimestampModel( + debug_timestamp = 56, + export_timestamp = 56, + pe_timestamp = 56, ), + type = '', + version_info = { + 'key' : null + }, ) """ diff --git a/test/test_pipeline_status_response.py b/test/test_pipeline_status_response.py index 5e651cf..33808ff 100644 --- a/test/test_pipeline_status_response.py +++ b/test/test_pipeline_status_response.py @@ -36,18 +36,18 @@ def make_instance(self, include_optional) -> PipelineStatusResponse: return PipelineStatusResponse( stages = [ revengai.models.stage_status.StageStatus( + num_ahead = 56, stage = 'ANALYSIS', - status = 'PENDING', - num_ahead = 56, ) + status = 'PENDING', ) ] ) else: return PipelineStatusResponse( stages = [ revengai.models.stage_status.StageStatus( + num_ahead = 56, stage = 'ANALYSIS', - status = 'PENDING', - num_ahead = 56, ) + status = 'PENDING', ) ], ) """ diff --git a/test/test_process.py b/test/test_process.py index 335fac4..17551ce 100644 --- a/test/test_process.py +++ b/test/test_process.py @@ -34,31 +34,31 @@ def make_instance(self, include_optional) -> Process: model = Process() if include_optional: return Process( - pid = 56, - procname = '', - executable_name = '', args = [ '' ], - ts_from = 1.337, - ts_to = 1.337, children = [ null - ] + ], + executable_name = '', + pid = 56, + procname = '', + ts_from = 1.337, + ts_to = 1.337 ) else: return Process( - pid = 56, - procname = '', - executable_name = '', args = [ '' ], - ts_from = 1.337, - ts_to = 1.337, children = [ null ], + executable_name = '', + pid = 56, + procname = '', + ts_from = 1.337, + ts_to = 1.337, ) """ diff --git a/test/test_process_dump.py b/test/test_process_dump.py index 2ce7e9f..fe24156 100644 --- a/test/test_process_dump.py +++ b/test/test_process_dump.py @@ -34,23 +34,23 @@ def make_instance(self, include_optional) -> ProcessDump: model = ProcessDump() if include_optional: return ProcessDump( - base_address = 56, actual_filename = '', - filename_friendly = '', + base_address = 56, extended_metadata = revengai.models.process_dump_metadata.ProcessDumpMetadata( sha256 = '', - type = '', - size = 56, ) + size = 56, + type = '', ), + filename_friendly = '' ) else: return ProcessDump( - base_address = 56, actual_filename = '', - filename_friendly = '', + base_address = 56, extended_metadata = revengai.models.process_dump_metadata.ProcessDumpMetadata( sha256 = '', - type = '', - size = 56, ), + size = 56, + type = '', ), + filename_friendly = '', ) """ diff --git a/test/test_process_dump_metadata.py b/test/test_process_dump_metadata.py index b103c91..6ef9901 100644 --- a/test/test_process_dump_metadata.py +++ b/test/test_process_dump_metadata.py @@ -35,14 +35,14 @@ def make_instance(self, include_optional) -> ProcessDumpMetadata: if include_optional: return ProcessDumpMetadata( sha256 = '', - type = '', - size = 56 + size = 56, + type = '' ) else: return ProcessDumpMetadata( sha256 = '', - type = '', size = 56, + type = '', ) """ diff --git a/test/test_process_dumps.py b/test/test_process_dumps.py index 6cbeed8..e6f2526 100644 --- a/test/test_process_dumps.py +++ b/test/test_process_dumps.py @@ -34,35 +34,35 @@ def make_instance(self, include_optional) -> ProcessDumps: model = ProcessDumps() if include_optional: return ProcessDumps( - success = True, data = revengai.models.process_dumps_data.ProcessDumpsData( count = 56, dumps = [ revengai.models.process_dump.ProcessDump( - base_address = 56, actual_filename = '', - filename_friendly = '', + base_address = 56, extended_metadata = revengai.models.process_dump_metadata.ProcessDumpMetadata( sha256 = '', - type = '', - size = 56, ), ) - ], ) + size = 56, + type = '', ), + filename_friendly = '', ) + ], ), + success = True ) else: return ProcessDumps( - success = True, data = revengai.models.process_dumps_data.ProcessDumpsData( count = 56, dumps = [ revengai.models.process_dump.ProcessDump( - base_address = 56, actual_filename = '', - filename_friendly = '', + base_address = 56, extended_metadata = revengai.models.process_dump_metadata.ProcessDumpMetadata( sha256 = '', - type = '', - size = 56, ), ) + size = 56, + type = '', ), + filename_friendly = '', ) ], ), + success = True, ) """ diff --git a/test/test_process_dumps_data.py b/test/test_process_dumps_data.py index efd35f8..f16017f 100644 --- a/test/test_process_dumps_data.py +++ b/test/test_process_dumps_data.py @@ -37,13 +37,13 @@ def make_instance(self, include_optional) -> ProcessDumpsData: count = 56, dumps = [ revengai.models.process_dump.ProcessDump( - base_address = 56, actual_filename = '', - filename_friendly = '', + base_address = 56, extended_metadata = revengai.models.process_dump_metadata.ProcessDumpMetadata( sha256 = '', - type = '', - size = 56, ), ) + size = 56, + type = '', ), + filename_friendly = '', ) ] ) else: @@ -51,13 +51,13 @@ def make_instance(self, include_optional) -> ProcessDumpsData: count = 56, dumps = [ revengai.models.process_dump.ProcessDump( - base_address = 56, actual_filename = '', - filename_friendly = '', + base_address = 56, extended_metadata = revengai.models.process_dump_metadata.ProcessDumpMetadata( sha256 = '', - type = '', - size = 56, ), ) + size = 56, + type = '', ), + filename_friendly = '', ) ], ) """ diff --git a/test/test_process_registry.py b/test/test_process_registry.py index cedd706..dc5aa75 100644 --- a/test/test_process_registry.py +++ b/test/test_process_registry.py @@ -34,29 +34,29 @@ def make_instance(self, include_optional) -> ProcessRegistry: model = ProcessRegistry() if include_optional: return ProcessRegistry( - success = True, data = { 'key' : [ revengai.models.registry.Registry( - method = '', key = '', - value_name = '', - value = '', ) + method = '', + value = '', + value_name = '', ) ] - } + }, + success = True ) else: return ProcessRegistry( - success = True, data = { 'key' : [ revengai.models.registry.Registry( - method = '', key = '', - value_name = '', - value = '', ) + method = '', + value = '', + value_name = '', ) ] }, + success = True, ) """ diff --git a/test/test_process_tree.py b/test/test_process_tree.py index 507d715..c83ce69 100644 --- a/test/test_process_tree.py +++ b/test/test_process_tree.py @@ -34,39 +34,39 @@ def make_instance(self, include_optional) -> ProcessTree: model = ProcessTree() if include_optional: return ProcessTree( - success = True, data = [ revengai.models.process.Process( - pid = 56, - procname = '', - executable_name = '', args = [ '' ], - ts_from = 1.337, - ts_to = 1.337, children = [ null - ], ) - ] + ], + executable_name = '', + pid = 56, + procname = '', + ts_from = 1.337, + ts_to = 1.337, ) + ], + success = True ) else: return ProcessTree( - success = True, data = [ revengai.models.process.Process( - pid = 56, - procname = '', - executable_name = '', args = [ '' ], - ts_from = 1.337, - ts_to = 1.337, children = [ null - ], ) + ], + executable_name = '', + pid = 56, + procname = '', + ts_from = 1.337, + ts_to = 1.337, ) ], + success = True, ) """ diff --git a/test/test_put_analysis_strings_request.py b/test/test_put_analysis_strings_request.py new file mode 100644 index 0000000..3b2fe75 --- /dev/null +++ b/test/test_put_analysis_strings_request.py @@ -0,0 +1,61 @@ +# 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.put_analysis_strings_request import PutAnalysisStringsRequest + +class TestPutAnalysisStringsRequest(unittest.TestCase): + """PutAnalysisStringsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PutAnalysisStringsRequest: + """Test PutAnalysisStringsRequest + 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 `PutAnalysisStringsRequest` + """ + model = PutAnalysisStringsRequest() + if include_optional: + return PutAnalysisStringsRequest( + strings = [ + revengai.models.analysis_string_input.AnalysisStringInput( + source = 'SYSTEM', + vaddr = 56, + value = '', ) + ] + ) + else: + return PutAnalysisStringsRequest( + strings = [ + revengai.models.analysis_string_input.AnalysisStringInput( + source = 'SYSTEM', + vaddr = 56, + value = '', ) + ], + ) + """ + + def testPutAnalysisStringsRequest(self): + """Test PutAnalysisStringsRequest""" + # 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_re_analysis_form.py b/test/test_re_analysis_form.py index ddb04d9..d3782d6 100644 --- a/test/test_re_analysis_form.py +++ b/test/test_re_analysis_form.py @@ -34,14 +34,14 @@ def make_instance(self, include_optional) -> ReAnalysisForm: model = ReAnalysisForm() if include_optional: return ReAnalysisForm( - tags = [ - '' - ], command_line_args = '', - priority = 56, essential = True, model_name = '', - no_cache = True + no_cache = True, + priority = 56, + tags = [ + '' + ] ) else: return ReAnalysisForm( diff --git a/test/test_recent.py b/test/test_recent.py index 4cbf4db..49c4ad9 100644 --- a/test/test_recent.py +++ b/test/test_recent.py @@ -38,26 +38,26 @@ def make_instance(self, include_optional) -> Recent: revengai.models.analysis_record.AnalysisRecord( analysis_id = 56, analysis_scope = '', + base_address = 56, binary_id = 56, - model_id = 56, - model_name = '', - status = '', - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - is_owner = True, binary_name = '', - sha_256_hash = '', - function_boundaries_hash = '', binary_size = 56, - username = '', + creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), dynamic_execution_status = 'PENDING', dynamic_execution_task_id = 56, - base_address = 56, + function_boundaries_hash = '', + is_owner = True, + model_id = 56, + model_name = '', + sha_256_hash = '', + status = '', tags = [ revengai.models.tag_item.TagItem( + collection_id = 56, name = '', - origin = '', - collection_id = 56, ) - ], ) + origin = '', ) + ], + username = '', ) ] ) else: @@ -66,26 +66,26 @@ def make_instance(self, include_optional) -> Recent: revengai.models.analysis_record.AnalysisRecord( analysis_id = 56, analysis_scope = '', + base_address = 56, binary_id = 56, - model_id = 56, - model_name = '', - status = '', - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - is_owner = True, binary_name = '', - sha_256_hash = '', - function_boundaries_hash = '', binary_size = 56, - username = '', + creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), dynamic_execution_status = 'PENDING', dynamic_execution_task_id = 56, - base_address = 56, + function_boundaries_hash = '', + is_owner = True, + model_id = 56, + model_name = '', + sha_256_hash = '', + status = '', tags = [ revengai.models.tag_item.TagItem( + collection_id = 56, name = '', - origin = '', - collection_id = 56, ) - ], ) + origin = '', ) + ], + username = '', ) ], ) """ diff --git a/test/test_registry.py b/test/test_registry.py index 741c2a6..1f48d04 100644 --- a/test/test_registry.py +++ b/test/test_registry.py @@ -34,17 +34,17 @@ def make_instance(self, include_optional) -> Registry: model = Registry() if include_optional: return Registry( - method = '', key = '', - value_name = '', - value = '' + method = '', + value = '', + value_name = '' ) else: return Registry( - method = '', key = '', - value_name = '', + method = '', value = '', + value_name = '', ) """ diff --git a/test/test_relative_binary_response.py b/test/test_relative_binary_response.py index 7666c16..8e8f1aa 100644 --- a/test/test_relative_binary_response.py +++ b/test/test_relative_binary_response.py @@ -34,8 +34,8 @@ def make_instance(self, include_optional) -> RelativeBinaryResponse: model = RelativeBinaryResponse() if include_optional: return RelativeBinaryResponse( - binary_id = 56, analysis_id = 56, + binary_id = 56, name = '', sha256 = '' ) diff --git a/test/test_sandbox_options.py b/test/test_sandbox_options.py index d222b06..aee5697 100644 --- a/test/test_sandbox_options.py +++ b/test/test_sandbox_options.py @@ -34,8 +34,8 @@ def make_instance(self, include_optional) -> SandboxOptions: model = SandboxOptions() if include_optional: return SandboxOptions( - enabled = True, - command_line_args = '' + command_line_args = '', + enabled = True ) else: return SandboxOptions( diff --git a/test/test_sbom.py b/test/test_sbom.py index cac747b..f15afcc 100644 --- a/test/test_sbom.py +++ b/test/test_sbom.py @@ -34,25 +34,25 @@ def make_instance(self, include_optional) -> SBOM: model = SBOM() if include_optional: return SBOM( + imported_libs = [ + '' + ], packages = [ revengai.models.sbom_package.SBOMPackage( name = '', version = '', ) - ], - imported_libs = [ - '' ] ) else: return SBOM( + imported_libs = [ + '' + ], packages = [ revengai.models.sbom_package.SBOMPackage( name = '', version = '', ) ], - imported_libs = [ - '' - ], ) """ diff --git a/test/test_section_model.py b/test/test_section_model.py index d6927c9..b0c5717 100644 --- a/test/test_section_model.py +++ b/test/test_section_model.py @@ -37,13 +37,13 @@ def make_instance(self, include_optional) -> SectionModel: number_of_sections = 56, sections = [ revengai.models.single_section_model.SingleSectionModel( - name = '', - virtual_address = 56, - virtual_size = 56, characteristics = '', - raw_size = 56, entropy = 1.337, - sha3_256 = '', ) + name = '', + raw_size = 56, + sha3_256 = '', + virtual_address = 56, + virtual_size = 56, ) ] ) else: @@ -51,13 +51,13 @@ def make_instance(self, include_optional) -> SectionModel: number_of_sections = 56, sections = [ revengai.models.single_section_model.SingleSectionModel( - name = '', - virtual_address = 56, - virtual_size = 56, characteristics = '', - raw_size = 56, entropy = 1.337, - sha3_256 = '', ) + name = '', + raw_size = 56, + sha3_256 = '', + virtual_address = 56, + virtual_size = 56, ) ], ) """ diff --git a/test/test_security_checks_response.py b/test/test_security_checks_response.py index b14c9c6..d41a17a 100644 --- a/test/test_security_checks_response.py +++ b/test/test_security_checks_response.py @@ -35,34 +35,34 @@ def make_instance(self, include_optional) -> SecurityChecksResponse: if include_optional: return SecurityChecksResponse( binary_id = 56, - total_results = 56, results = [ revengai.models.security_checks_result.SecurityChecksResult( + confidence = 'FALSE_POSITIVE', + description = '', function_id = 56, function_name = '', name = '', - vuln_class = 'UNSAFE_FUNCTIONS', - description = '', remediation = '', - confidence = 'FALSE_POSITIVE', - severity = 'CRITICAL', ) - ] + severity = 'CRITICAL', + vuln_class = 'UNSAFE_FUNCTIONS', ) + ], + total_results = 56 ) else: return SecurityChecksResponse( binary_id = 56, - total_results = 56, results = [ revengai.models.security_checks_result.SecurityChecksResult( + confidence = 'FALSE_POSITIVE', + description = '', function_id = 56, function_name = '', name = '', - vuln_class = 'UNSAFE_FUNCTIONS', - description = '', remediation = '', - confidence = 'FALSE_POSITIVE', - severity = 'CRITICAL', ) + severity = 'CRITICAL', + vuln_class = 'UNSAFE_FUNCTIONS', ) ], + total_results = 56, ) """ diff --git a/test/test_security_checks_result.py b/test/test_security_checks_result.py index 564c88d..fabbf45 100644 --- a/test/test_security_checks_result.py +++ b/test/test_security_checks_result.py @@ -34,25 +34,25 @@ def make_instance(self, include_optional) -> SecurityChecksResult: model = SecurityChecksResult() if include_optional: return SecurityChecksResult( + confidence = 'FALSE_POSITIVE', + description = '', function_id = 56, function_name = '', name = '', - vuln_class = 'UNSAFE_FUNCTIONS', - description = '', remediation = '', - confidence = 'FALSE_POSITIVE', - severity = 'CRITICAL' + severity = 'CRITICAL', + vuln_class = 'UNSAFE_FUNCTIONS' ) else: return SecurityChecksResult( + confidence = 'FALSE_POSITIVE', + description = '', function_id = 56, function_name = '', name = '', - vuln_class = 'UNSAFE_FUNCTIONS', - description = '', remediation = '', - confidence = 'FALSE_POSITIVE', severity = 'CRITICAL', + vuln_class = 'UNSAFE_FUNCTIONS', ) """ diff --git a/test/test_security_model.py b/test/test_security_model.py index 54110d4..4b05dfe 100644 --- a/test/test_security_model.py +++ b/test/test_security_model.py @@ -34,31 +34,31 @@ def make_instance(self, include_optional) -> SecurityModel: model = SecurityModel() if include_optional: return SecurityModel( + app_container = True, aslr = True, - dep = True, + bound_image = True, cfg = True, - driver_model = True, - app_container = True, - terminal_server_aware = True, - image_isolation = True, code_integrity = True, + dep = True, + driver_model = True, high_entropy = True, + image_isolation = True, seh = True, - bound_image = True + terminal_server_aware = True ) else: return SecurityModel( + app_container = True, aslr = True, - dep = True, + bound_image = True, cfg = True, - driver_model = True, - app_container = True, - terminal_server_aware = True, - image_isolation = True, code_integrity = True, + dep = True, + driver_model = True, high_entropy = True, + image_isolation = True, seh = True, - bound_image = True, + terminal_server_aware = True, ) """ diff --git a/test/test_segment_info.py b/test/test_segment_info.py index 1b3919a..135801c 100644 --- a/test/test_segment_info.py +++ b/test/test_segment_info.py @@ -34,12 +34,12 @@ def make_instance(self, include_optional) -> SegmentInfo: model = SegmentInfo() if include_optional: return SegmentInfo( + end = 56, name = '', r = True, - w = True, - x = True, start = 56, - end = 56 + w = True, + x = True ) else: return SegmentInfo( diff --git a/test/test_single_code_certificate_model.py b/test/test_single_code_certificate_model.py index 65f0074..2a419dd 100644 --- a/test/test_single_code_certificate_model.py +++ b/test/test_single_code_certificate_model.py @@ -34,21 +34,21 @@ def make_instance(self, include_optional) -> SingleCodeCertificateModel: model = SingleCodeCertificateModel() if include_optional: return SingleCodeCertificateModel( - version = 56, - issued_on = '', expires_on = '', + issued_on = '', issuer_name = '', serial_number = '', - subject_name = '' + subject_name = '', + version = 56 ) else: return SingleCodeCertificateModel( - version = 56, - issued_on = '', expires_on = '', + issued_on = '', issuer_name = '', serial_number = '', subject_name = '', + version = 56, ) """ diff --git a/test/test_single_code_signature_model.py b/test/test_single_code_signature_model.py index 1d964ac..72f72cb 100644 --- a/test/test_single_code_signature_model.py +++ b/test/test_single_code_signature_model.py @@ -34,29 +34,29 @@ def make_instance(self, include_optional) -> SingleCodeSignatureModel: model = SingleCodeSignatureModel() if include_optional: return SingleCodeSignatureModel( + authenticode_digest = '', certificates = [ revengai.models.single_code_certificate_model.SingleCodeCertificateModel( - version = 56, - issued_on = '', expires_on = '', + issued_on = '', issuer_name = '', serial_number = '', - subject_name = '', ) - ], - authenticode_digest = '' + subject_name = '', + version = 56, ) + ] ) else: return SingleCodeSignatureModel( + authenticode_digest = '', certificates = [ revengai.models.single_code_certificate_model.SingleCodeCertificateModel( - version = 56, - issued_on = '', expires_on = '', + issued_on = '', issuer_name = '', serial_number = '', - subject_name = '', ) + subject_name = '', + version = 56, ) ], - authenticode_digest = '', ) """ diff --git a/test/test_single_pdb_entry_model.py b/test/test_single_pdb_entry_model.py index 4a8bc2c..c8b6da8 100644 --- a/test/test_single_pdb_entry_model.py +++ b/test/test_single_pdb_entry_model.py @@ -34,14 +34,14 @@ def make_instance(self, include_optional) -> SinglePDBEntryModel: model = SinglePDBEntryModel() if include_optional: return SinglePDBEntryModel( - guid = '', age = 56, + guid = '', path = '' ) else: return SinglePDBEntryModel( - guid = '', age = 56, + guid = '', path = '', ) """ diff --git a/test/test_single_section_model.py b/test/test_single_section_model.py index b829934..471f188 100644 --- a/test/test_single_section_model.py +++ b/test/test_single_section_model.py @@ -34,23 +34,23 @@ def make_instance(self, include_optional) -> SingleSectionModel: model = SingleSectionModel() if include_optional: return SingleSectionModel( - name = '', - virtual_address = 56, - virtual_size = 56, characteristics = '', - raw_size = 56, entropy = 1.337, - sha3_256 = '' + name = '', + raw_size = 56, + sha3_256 = '', + virtual_address = 56, + virtual_size = 56 ) else: return SingleSectionModel( - name = '', - virtual_address = 56, - virtual_size = 56, characteristics = '', - raw_size = 56, entropy = 1.337, + name = '', + raw_size = 56, sha3_256 = '', + virtual_address = 56, + virtual_size = 56, ) """ diff --git a/test/test_stack_variable.py b/test/test_stack_variable.py index f34dd80..768880d 100644 --- a/test/test_stack_variable.py +++ b/test/test_stack_variable.py @@ -34,20 +34,20 @@ def make_instance(self, include_optional) -> StackVariable: model = StackVariable() if include_optional: return StackVariable( + addr = 56, last_change = '', - offset = 56, name = '', - type = '', + offset = 56, size = 56, - addr = 56 + type = '' ) else: return StackVariable( - offset = 56, + addr = 56, name = '', - type = '', + offset = 56, size = 56, - addr = 56, + type = '', ) """ diff --git a/test/test_stage_status.py b/test/test_stage_status.py index 04e0fb0..eccce09 100644 --- a/test/test_stage_status.py +++ b/test/test_stage_status.py @@ -34,15 +34,15 @@ def make_instance(self, include_optional) -> StageStatus: model = StageStatus() if include_optional: return StageStatus( + num_ahead = 56, stage = 'ANALYSIS', - status = 'PENDING', - num_ahead = 56 + status = 'PENDING' ) else: return StageStatus( + num_ahead = 56, stage = 'ANALYSIS', status = 'PENDING', - num_ahead = 56, ) """ diff --git a/test/test_string_functions.py b/test/test_string_functions.py index 44a89ba..f27f0bb 100644 --- a/test/test_string_functions.py +++ b/test/test_string_functions.py @@ -34,21 +34,22 @@ def make_instance(self, include_optional) -> StringFunctions: model = StringFunctions() if include_optional: return StringFunctions( - value = '', functions = [ revengai.models.function.Function( function_id = 56, function_vaddr = 56, ) - ] + ], + source = 'SYSTEM', + value = '' ) else: return StringFunctions( - value = '', functions = [ revengai.models.function.Function( function_id = 56, function_vaddr = 56, ) ], + value = '', ) """ diff --git a/test/test_string_source.py b/test/test_string_source.py new file mode 100644 index 0000000..925e709 --- /dev/null +++ b/test/test_string_source.py @@ -0,0 +1,32 @@ +# 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.string_source import StringSource + +class TestStringSource(unittest.TestCase): + """StringSource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStringSource(self): + """Test StringSource""" + # inst = StringSource() + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_structure.py b/test/test_structure.py index 08abb59..8f46f26 100644 --- a/test/test_structure.py +++ b/test/test_structure.py @@ -34,30 +34,30 @@ def make_instance(self, include_optional) -> Structure: model = Structure() if include_optional: return Structure( + artifact_type = '', last_change = '', - name = '', - size = 56, members = { 'key' : revengai.models.structure_member.StructureMember( last_change = '', name = '', offset = 56, - type = '', - size = 56, ) + size = 56, + type = '', ) }, - artifact_type = '' + name = '', + size = 56 ) else: return Structure( - name = '', members = { 'key' : revengai.models.structure_member.StructureMember( last_change = '', name = '', offset = 56, - type = '', - size = 56, ) + size = 56, + type = '', ) }, + name = '', ) """ diff --git a/test/test_structure_member.py b/test/test_structure_member.py index 40ab63b..be75210 100644 --- a/test/test_structure_member.py +++ b/test/test_structure_member.py @@ -37,15 +37,15 @@ def make_instance(self, include_optional) -> StructureMember: last_change = '', name = '', offset = 56, - type = '', - size = 56 + size = 56, + type = '' ) else: return StructureMember( name = '', offset = 56, - type = '', size = 56, + type = '', ) """ diff --git a/test/test_symbols.py b/test/test_symbols.py index c4220fa..8b42be7 100644 --- a/test/test_symbols.py +++ b/test/test_symbols.py @@ -37,10 +37,10 @@ def make_instance(self, include_optional) -> Symbols: base_address = 56, function_boundaries = [ revengai.models.function_boundary.FunctionBoundary( - mangled_name = '', - start_address = 56, end_address = 56, - include_in_analysis = True, ) + include_in_analysis = True, + mangled_name = '', + start_address = 56, ) ] ) else: diff --git a/test/test_tag_item.py b/test/test_tag_item.py index 7018f26..228861f 100644 --- a/test/test_tag_item.py +++ b/test/test_tag_item.py @@ -34,9 +34,9 @@ def make_instance(self, include_optional) -> TagItem: model = TagItem() if include_optional: return TagItem( + collection_id = 56, name = '', - origin = '', - collection_id = 56 + origin = '' ) else: return TagItem( diff --git a/test/test_tag_search_response.py b/test/test_tag_search_response.py index 19741d5..d4650ca 100644 --- a/test/test_tag_search_response.py +++ b/test/test_tag_search_response.py @@ -36,16 +36,16 @@ def make_instance(self, include_optional) -> TagSearchResponse: return TagSearchResponse( results = [ revengai.models.tag_search_result.TagSearchResult( - tag_id = 56, - tag = '', ) + tag = '', + tag_id = 56, ) ] ) else: return TagSearchResponse( results = [ revengai.models.tag_search_result.TagSearchResult( - tag_id = 56, - tag = '', ) + tag = '', + tag_id = 56, ) ], ) """ diff --git a/test/test_tag_search_result.py b/test/test_tag_search_result.py index 6a7b653..f7b29da 100644 --- a/test/test_tag_search_result.py +++ b/test/test_tag_search_result.py @@ -34,13 +34,13 @@ def make_instance(self, include_optional) -> TagSearchResult: model = TagSearchResult() if include_optional: return TagSearchResult( - tag_id = 56, - tag = '' + tag = '', + tag_id = 56 ) else: return TagSearchResult( - tag_id = 56, tag = '', + tag_id = 56, ) """ diff --git a/test/test_task_response.py b/test/test_task_response.py index 86000ee..5df24b1 100644 --- a/test/test_task_response.py +++ b/test/test_task_response.py @@ -34,8 +34,8 @@ def make_instance(self, include_optional) -> TaskResponse: model = TaskResponse() if include_optional: return TaskResponse( - status = 'UNINITIALISED', - error_message = '' + error_message = '', + status = 'UNINITIALISED' ) else: return TaskResponse( diff --git a/test/test_timestamp_model.py b/test/test_timestamp_model.py index fa5ab83..755c924 100644 --- a/test/test_timestamp_model.py +++ b/test/test_timestamp_model.py @@ -34,15 +34,15 @@ def make_instance(self, include_optional) -> TimestampModel: model = TimestampModel() if include_optional: return TimestampModel( - pe_timestamp = 56, + debug_timestamp = 56, export_timestamp = 56, - debug_timestamp = 56 + pe_timestamp = 56 ) else: return TimestampModel( - pe_timestamp = 56, - export_timestamp = 56, debug_timestamp = 56, + export_timestamp = 56, + pe_timestamp = 56, ) """ diff --git a/test/test_ttps.py b/test/test_ttps.py index f10dd4b..a602467 100644 --- a/test/test_ttps.py +++ b/test/test_ttps.py @@ -34,45 +34,45 @@ def make_instance(self, include_optional) -> TTPS: model = TTPS() if include_optional: return TTPS( - success = True, data = revengai.models.ttps_data.TTPS_Data( score = 56, ttps = [ revengai.models.ttps_element.TTPS_Element( - name = '', attack = [ revengai.models.ttps_attack.TTPS_Attack( id = '', name = '', ) ], + name = '', occurrences = [ revengai.models.ttps_occurance.TTPS_Occurance( - ppid = 56, - pid = 56, ) + pid = 56, + ppid = 56, ) ], score = 56, ) - ], ) + ], ), + success = True ) else: return TTPS( - success = True, data = revengai.models.ttps_data.TTPS_Data( score = 56, ttps = [ revengai.models.ttps_element.TTPS_Element( - name = '', attack = [ revengai.models.ttps_attack.TTPS_Attack( id = '', name = '', ) ], + name = '', occurrences = [ revengai.models.ttps_occurance.TTPS_Occurance( - ppid = 56, - pid = 56, ) + pid = 56, + ppid = 56, ) ], score = 56, ) ], ), + success = True, ) """ diff --git a/test/test_ttps_data.py b/test/test_ttps_data.py index 8f42cde..8a7d78a 100644 --- a/test/test_ttps_data.py +++ b/test/test_ttps_data.py @@ -37,16 +37,16 @@ def make_instance(self, include_optional) -> TTPSData: score = 56, ttps = [ revengai.models.ttps_element.TTPS_Element( - name = '', attack = [ revengai.models.ttps_attack.TTPS_Attack( id = '', name = '', ) ], + name = '', occurrences = [ revengai.models.ttps_occurance.TTPS_Occurance( - ppid = 56, - pid = 56, ) + pid = 56, + ppid = 56, ) ], score = 56, ) ] @@ -56,16 +56,16 @@ def make_instance(self, include_optional) -> TTPSData: score = 56, ttps = [ revengai.models.ttps_element.TTPS_Element( - name = '', attack = [ revengai.models.ttps_attack.TTPS_Attack( id = '', name = '', ) ], + name = '', occurrences = [ revengai.models.ttps_occurance.TTPS_Occurance( - ppid = 56, - pid = 56, ) + pid = 56, + ppid = 56, ) ], score = 56, ) ], diff --git a/test/test_ttps_element.py b/test/test_ttps_element.py index 4031185..d6d2338 100644 --- a/test/test_ttps_element.py +++ b/test/test_ttps_element.py @@ -34,31 +34,31 @@ def make_instance(self, include_optional) -> TTPSElement: model = TTPSElement() if include_optional: return TTPSElement( - name = '', attack = [ revengai.models.ttps_attack.TTPS_Attack( id = '', name = '', ) ], + name = '', occurrences = [ revengai.models.ttps_occurance.TTPS_Occurance( - ppid = 56, - pid = 56, ) + pid = 56, + ppid = 56, ) ], score = 56 ) else: return TTPSElement( - name = '', attack = [ revengai.models.ttps_attack.TTPS_Attack( id = '', name = '', ) ], + name = '', occurrences = [ revengai.models.ttps_occurance.TTPS_Occurance( - ppid = 56, - pid = 56, ) + pid = 56, + ppid = 56, ) ], score = 56, ) diff --git a/test/test_ttps_occurance.py b/test/test_ttps_occurance.py index 6fd3506..6ca74a9 100644 --- a/test/test_ttps_occurance.py +++ b/test/test_ttps_occurance.py @@ -34,13 +34,13 @@ def make_instance(self, include_optional) -> TTPSOccurance: model = TTPSOccurance() if include_optional: return TTPSOccurance( - ppid = 56, - pid = 56 + pid = 56, + ppid = 56 ) else: return TTPSOccurance( - ppid = 56, pid = 56, + ppid = 56, ) """ diff --git a/test/test_type_definition.py b/test/test_type_definition.py index d036156..9da81a4 100644 --- a/test/test_type_definition.py +++ b/test/test_type_definition.py @@ -34,10 +34,10 @@ def make_instance(self, include_optional) -> TypeDefinition: model = TypeDefinition() if include_optional: return TypeDefinition( + artifact_type = '', last_change = '', name = '', - type = '', - artifact_type = '' + type = '' ) else: return TypeDefinition( diff --git a/test/test_update_function_data_types.py b/test/test_update_function_data_types.py index fc1d902..6168c8a 100644 --- a/test/test_update_function_data_types.py +++ b/test/test_update_function_data_types.py @@ -34,77 +34,77 @@ def make_instance(self, include_optional) -> UpdateFunctionDataTypes: model = UpdateFunctionDataTypes() if include_optional: return UpdateFunctionDataTypes( - data_types_version = 56, data_types = revengai.models.function_info.FunctionInfo( + func_deps = [ + null + ], func_types = revengai.models.function_type.FunctionType( - last_change = '', addr = 56, - size = 56, + artifact_type = 'Function', header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', addr = 56, - type = '', args = { 'key' : revengai.models.argument.Argument( last_change = '', - offset = 56, name = '', - type = '', - size = 56, ) - }, ), + offset = 56, + size = 56, + type = '', ) + }, + last_change = '', + name = '', + type = '', ), + last_change = '', + name = '', + size = 56, stack_vars = { 'key' : revengai.models.stack_variable.StackVariable( + addr = 56, last_change = '', - offset = 56, name = '', - type = '', + offset = 56, size = 56, - addr = 56, ) + type = '', ) }, - name = '', - type = '', - artifact_type = 'Function', ), - func_deps = [ - null - ], ) + type = '', ), ), + data_types_version = 56 ) else: return UpdateFunctionDataTypes( - data_types_version = 56, data_types = revengai.models.function_info.FunctionInfo( + func_deps = [ + null + ], func_types = revengai.models.function_type.FunctionType( - last_change = '', addr = 56, - size = 56, + artifact_type = 'Function', header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', addr = 56, - type = '', args = { 'key' : revengai.models.argument.Argument( last_change = '', - offset = 56, name = '', - type = '', - size = 56, ) - }, ), + offset = 56, + size = 56, + type = '', ) + }, + last_change = '', + name = '', + type = '', ), + last_change = '', + name = '', + size = 56, stack_vars = { 'key' : revengai.models.stack_variable.StackVariable( + addr = 56, last_change = '', - offset = 56, name = '', - type = '', + offset = 56, size = 56, - addr = 56, ) + type = '', ) }, - name = '', - type = '', - artifact_type = 'Function', ), - func_deps = [ - null - ], ), + type = '', ), ), + data_types_version = 56, ) """ diff --git a/test/test_upload_response.py b/test/test_upload_response.py index 9e0d221..9a6c6a0 100644 --- a/test/test_upload_response.py +++ b/test/test_upload_response.py @@ -34,15 +34,15 @@ def make_instance(self, include_optional) -> UploadResponse: model = UploadResponse() if include_optional: return UploadResponse( - sha_256_hash = '', file_type = 'BINARY', - filename = '' + filename = '', + sha_256_hash = '' ) else: return UploadResponse( - sha_256_hash = '', file_type = 'BINARY', filename = '', + sha_256_hash = '', ) """ diff --git a/test/test_vulnerabilities.py b/test/test_vulnerabilities.py index 0d679ae..3f7302b 100644 --- a/test/test_vulnerabilities.py +++ b/test/test_vulnerabilities.py @@ -36,34 +36,34 @@ def make_instance(self, include_optional) -> Vulnerabilities: return Vulnerabilities( vulnerabilities = [ revengai.models.vulnerability.Vulnerability( - vendor = '', - product = '', - version = '', cve_number = '', - severity = 'CRITICAL', - source = '', - cvss_version = '', cvss_vector = '', + cvss_version = '', + is_unknown = True, + product = '', remarks = '', score = 1.337, - is_unknown = True, ) + severity = 'CRITICAL', + source = '', + vendor = '', + version = '', ) ] ) else: return Vulnerabilities( vulnerabilities = [ revengai.models.vulnerability.Vulnerability( - vendor = '', - product = '', - version = '', cve_number = '', - severity = 'CRITICAL', - source = '', - cvss_version = '', cvss_vector = '', + cvss_version = '', + is_unknown = True, + product = '', remarks = '', score = 1.337, - is_unknown = True, ) + severity = 'CRITICAL', + source = '', + vendor = '', + version = '', ) ], ) """ diff --git a/test/test_vulnerability.py b/test/test_vulnerability.py index 9e088ff..0685f18 100644 --- a/test/test_vulnerability.py +++ b/test/test_vulnerability.py @@ -34,30 +34,30 @@ def make_instance(self, include_optional) -> Vulnerability: model = Vulnerability() if include_optional: return Vulnerability( - vendor = '', - product = '', - version = '', cve_number = '', - severity = 'CRITICAL', - source = '', - cvss_version = '', cvss_vector = '', + cvss_version = '', + is_unknown = True, + product = '', remarks = '', score = 1.337, - is_unknown = True + severity = 'CRITICAL', + source = '', + vendor = '', + version = '' ) else: return Vulnerability( - vendor = '', - product = '', - version = '', cve_number = '', - severity = 'CRITICAL', - source = '', - cvss_version = '', cvss_vector = '', + cvss_version = '', + product = '', remarks = '', score = 1.337, + severity = 'CRITICAL', + source = '', + vendor = '', + version = '', ) """ diff --git a/test/test_xref_from_response.py b/test/test_xref_from_response.py index 1217476..7c8b901 100644 --- a/test/test_xref_from_response.py +++ b/test/test_xref_from_response.py @@ -34,20 +34,20 @@ def make_instance(self, include_optional) -> XrefFromResponse: model = XrefFromResponse() if include_optional: return XrefFromResponse( - value = '', - is_scalar = True, is_call = True, is_data = True, + is_scalar = True, is_string = True, + orig_str_encoding = '', raw_data = '', segment = revengai.models.segment_info.SegmentInfo( + end = 56, name = '', r = True, - w = True, - x = True, start = 56, - end = 56, ), - orig_str_encoding = '', + w = True, + x = True, ), + value = '', xref_to = '' ) else: diff --git a/test/test_xref_response.py b/test/test_xref_response.py index 47da47e..5a5bb74 100644 --- a/test/test_xref_response.py +++ b/test/test_xref_response.py @@ -34,80 +34,80 @@ def make_instance(self, include_optional) -> XrefResponse: model = XrefResponse() if include_optional: return XrefResponse( - xref_to_list = [ - revengai.models.xref_to_response.XrefToResponse( - value = '', - is_scalar = True, + xref_from_list = [ + revengai.models.xref_from_response.XrefFromResponse( is_call = True, is_data = True, + is_scalar = True, is_string = True, + orig_str_encoding = '', raw_data = '', segment = revengai.models.segment_info.SegmentInfo( + end = 56, name = '', r = True, - w = True, - x = True, start = 56, - end = 56, ), - orig_str_encoding = '', - xref_from = '', ) - ], - xref_from_list = [ - revengai.models.xref_from_response.XrefFromResponse( + w = True, + x = True, ), value = '', - is_scalar = True, + xref_to = '', ) + ], + xref_to_list = [ + revengai.models.xref_to_response.XrefToResponse( is_call = True, is_data = True, + is_scalar = True, is_string = True, + orig_str_encoding = '', raw_data = '', segment = revengai.models.segment_info.SegmentInfo( + end = 56, name = '', r = True, - w = True, - x = True, start = 56, - end = 56, ), - orig_str_encoding = '', - xref_to = '', ) + w = True, + x = True, ), + value = '', + xref_from = '', ) ] ) else: return XrefResponse( - xref_to_list = [ - revengai.models.xref_to_response.XrefToResponse( - value = '', - is_scalar = True, + xref_from_list = [ + revengai.models.xref_from_response.XrefFromResponse( is_call = True, is_data = True, + is_scalar = True, is_string = True, + orig_str_encoding = '', raw_data = '', segment = revengai.models.segment_info.SegmentInfo( + end = 56, name = '', r = True, - w = True, - x = True, start = 56, - end = 56, ), - orig_str_encoding = '', - xref_from = '', ) - ], - xref_from_list = [ - revengai.models.xref_from_response.XrefFromResponse( + w = True, + x = True, ), value = '', - is_scalar = True, + xref_to = '', ) + ], + xref_to_list = [ + revengai.models.xref_to_response.XrefToResponse( is_call = True, is_data = True, + is_scalar = True, is_string = True, + orig_str_encoding = '', raw_data = '', segment = revengai.models.segment_info.SegmentInfo( + end = 56, name = '', r = True, - w = True, - x = True, start = 56, - end = 56, ), - orig_str_encoding = '', - xref_to = '', ) + w = True, + x = True, ), + value = '', + xref_from = '', ) ], ) """ diff --git a/test/test_xref_to_response.py b/test/test_xref_to_response.py index 79e94ba..a6961cb 100644 --- a/test/test_xref_to_response.py +++ b/test/test_xref_to_response.py @@ -34,20 +34,20 @@ def make_instance(self, include_optional) -> XrefToResponse: model = XrefToResponse() if include_optional: return XrefToResponse( - value = '', - is_scalar = True, is_call = True, is_data = True, + is_scalar = True, is_string = True, + orig_str_encoding = '', raw_data = '', segment = revengai.models.segment_info.SegmentInfo( + end = 56, name = '', r = True, - w = True, - x = True, start = 56, - end = 56, ), - orig_str_encoding = '', + w = True, + x = True, ), + value = '', xref_from = '' ) else: