revengai 1.73.0__py3-none-any.whl → 1.78.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of revengai might be problematic. Click here for more details.
- revengai/__init__.py +10 -359
- revengai/api/__init__.py +2 -35
- revengai/api/analyses_comments_api.py +0 -1
- revengai/api/analyses_core_api.py +0 -1
- revengai/api/analyses_dynamic_execution_api.py +0 -1
- revengai/api/analyses_results_metadata_api.py +0 -1
- revengai/api/analyses_security_checks_api.py +0 -1
- revengai/api/authentication_users_api.py +0 -1
- revengai/api/binaries_api.py +0 -1
- revengai/api/collections_api.py +0 -1
- revengai/api/confidence_api.py +0 -1
- revengai/api/default_api.py +317 -0
- revengai/api/external_sources_api.py +0 -1
- revengai/api/firmware_api.py +0 -1
- revengai/api/functions_ai_decompilation_api.py +0 -1
- revengai/api/functions_block_comments_api.py +0 -1
- revengai/api/functions_core_api.py +0 -1
- revengai/api/functions_data_types_api.py +0 -1
- revengai/api/functions_decompilation_api.py +0 -1
- revengai/api/functions_renaming_history_api.py +0 -1
- revengai/api/functions_threat_score_api.py +0 -1
- revengai/api/models_api.py +0 -1
- revengai/api/search_api.py +0 -1
- revengai/api_client.py +5 -6
- revengai/configuration.py +2 -3
- revengai/exceptions.py +0 -1
- revengai/models/__init__.py +4 -324
- revengai/models/addr.py +0 -1
- revengai/models/ai_decompilation_rating.py +0 -1
- revengai/models/ai_unstrip_request.py +0 -1
- revengai/models/analysis_access_info.py +0 -1
- revengai/models/analysis_config.py +0 -1
- revengai/models/analysis_create_request.py +0 -1
- revengai/models/analysis_create_response.py +0 -1
- revengai/models/analysis_detail_response.py +0 -1
- revengai/models/analysis_function_mapping.py +90 -0
- revengai/models/analysis_functions.py +0 -1
- revengai/models/analysis_record.py +0 -1
- revengai/models/analysis_scope.py +0 -1
- revengai/models/analysis_strings_response.py +0 -1
- revengai/models/analysis_tags.py +0 -1
- revengai/models/analysis_threat_score_data.py +0 -1
- revengai/models/analysis_update_request.py +0 -1
- revengai/models/analysis_update_tags_request.py +0 -1
- revengai/models/analysis_update_tags_response.py +0 -1
- revengai/models/ann_function.py +0 -1
- revengai/models/app_api_rest_v2_analyses_enums_dynamic_execution_status.py +0 -1
- revengai/models/app_api_rest_v2_analyses_enums_order_by.py +0 -1
- revengai/models/app_api_rest_v2_analyses_responses_tag_item.py +0 -1
- revengai/models/app_api_rest_v2_collections_enums_order_by.py +0 -1
- revengai/models/app_api_rest_v2_functions_responses_function.py +0 -1
- revengai/models/app_api_rest_v2_functions_types_function.py +0 -1
- revengai/models/app_services_binary_ann_schema_tag_item.py +0 -1
- revengai/models/app_services_dynamic_execution_schemas_dynamic_execution_status.py +0 -1
- revengai/models/argument.py +0 -1
- revengai/models/auto_unstrip_by_group_response.py +0 -1
- revengai/models/auto_unstrip_request.py +0 -1
- revengai/models/auto_unstrip_response.py +0 -1
- revengai/models/base_response.py +0 -1
- revengai/models/base_response_analysis_create_response.py +0 -1
- revengai/models/base_response_analysis_detail_response.py +0 -1
- revengai/models/base_response_analysis_function_mapping.py +125 -0
- revengai/models/base_response_analysis_functions.py +0 -1
- revengai/models/base_response_analysis_strings_response.py +0 -1
- revengai/models/base_response_analysis_tags.py +0 -1
- revengai/models/base_response_analysis_threat_score_data.py +0 -1
- revengai/models/base_response_analysis_update_tags_response.py +0 -1
- revengai/models/base_response_basic.py +0 -1
- revengai/models/base_response_binary_additional_response.py +0 -1
- revengai/models/base_response_binary_ann_list_response.py +0 -1
- revengai/models/base_response_binary_details_response.py +0 -1
- revengai/models/base_response_binary_externals_response.py +0 -1
- revengai/models/base_response_binary_search_response.py +0 -1
- revengai/models/base_response_block_comments_generation_for_function_response.py +0 -1
- revengai/models/base_response_block_comments_overview_generation_response.py +0 -1
- revengai/models/base_response_bool.py +0 -1
- revengai/models/base_response_box_plot_confidence.py +0 -1
- revengai/models/base_response_callees_caller_functions_response.py +0 -1
- revengai/models/base_response_capabilities.py +0 -1
- revengai/models/base_response_check_security_checks_task_response.py +0 -1
- revengai/models/base_response_child_binaries_response.py +0 -1
- revengai/models/base_response_collection_binaries_update_response.py +0 -1
- revengai/models/base_response_collection_response.py +0 -1
- revengai/models/base_response_collection_search_response.py +0 -1
- revengai/models/base_response_collection_tags_update_response.py +0 -1
- revengai/models/base_response_comment_response.py +0 -1
- revengai/models/base_response_communities.py +0 -1
- revengai/models/base_response_created.py +0 -1
- revengai/models/base_response_decompilation_response.py +0 -1
- revengai/models/base_response_dict.py +0 -1
- revengai/models/base_response_dynamic_execution_status.py +0 -1
- revengai/models/base_response_external_response.py +0 -1
- revengai/models/base_response_function_analysis_threat_score_data.py +0 -1
- revengai/models/base_response_function_blocks_response.py +0 -1
- revengai/models/base_response_function_capability_response.py +0 -1
- revengai/models/base_response_function_data_types.py +0 -1
- revengai/models/base_response_function_data_types_list.py +0 -1
- revengai/models/base_response_function_search_response.py +0 -1
- revengai/models/base_response_function_strings_response.py +0 -1
- revengai/models/base_response_function_task_response.py +0 -1
- revengai/models/base_response_function_threat_score.py +0 -1
- revengai/models/base_response_functions_detail_response.py +0 -1
- revengai/models/base_response_generate_function_data_types.py +0 -1
- revengai/models/base_response_generation_status_list.py +0 -1
- revengai/models/base_response_get_ai_decompilation_rating_response.py +0 -1
- revengai/models/base_response_get_ai_decompilation_task.py +0 -1
- revengai/models/base_response_get_public_user_response.py +0 -1
- revengai/models/base_response_get_user_response.py +0 -1
- revengai/models/base_response_list_collection_results.py +0 -1
- revengai/models/base_response_list_comment_response.py +0 -1
- revengai/models/base_response_list_die_match.py +0 -1
- revengai/models/base_response_list_function_box_plot_confidence.py +0 -1
- revengai/models/base_response_list_function_name_history.py +0 -1
- revengai/models/base_response_list_sbom.py +0 -1
- revengai/models/base_response_list_similar_functions_response.py +0 -1
- revengai/models/base_response_list_tag_origin_box_plot_confidence.py +0 -1
- revengai/models/base_response_list_user_activity_response.py +0 -1
- revengai/models/base_response_login_response.py +0 -1
- revengai/models/base_response_logs.py +0 -1
- revengai/models/base_response_models_response.py +0 -1
- revengai/models/base_response_nearest_neighbor_analysis.py +0 -1
- revengai/models/base_response_network_overview_response.py +0 -1
- revengai/models/base_response_params.py +0 -1
- revengai/models/base_response_process_dumps.py +0 -1
- revengai/models/base_response_process_registry.py +0 -1
- revengai/models/base_response_process_tree.py +0 -1
- revengai/models/base_response_queued_security_checks_task_response.py +0 -1
- revengai/models/base_response_recent.py +0 -1
- revengai/models/base_response_security_checks_response.py +0 -1
- revengai/models/base_response_status.py +0 -1
- revengai/models/base_response_str.py +0 -1
- revengai/models/base_response_symbols_info.py +0 -1
- revengai/models/base_response_tag_search_response.py +0 -1
- revengai/models/base_response_task_response.py +0 -1
- revengai/models/base_response_ttps.py +0 -1
- revengai/models/base_response_upload_response.py +0 -1
- revengai/models/base_response_vulnerabilities.py +0 -1
- revengai/models/basic.py +0 -1
- revengai/models/binary_additional_details_data_response.py +0 -1
- revengai/models/binary_additional_response.py +0 -1
- revengai/models/binary_ann_form.py +0 -1
- revengai/models/binary_ann_list_response.py +0 -1
- revengai/models/binary_config.py +0 -1
- revengai/models/binary_details_response.py +0 -1
- revengai/models/binary_externals_response.py +0 -1
- revengai/models/binary_search_response.py +0 -1
- revengai/models/binary_search_result.py +0 -1
- revengai/models/binary_task_status.py +0 -1
- revengai/models/block.py +0 -1
- revengai/models/block_comments_generation_for_function_response.py +0 -1
- revengai/models/boundary.py +0 -1
- revengai/models/box_plot_confidence.py +0 -1
- revengai/models/callee_function_info.py +0 -1
- revengai/models/callees_caller_functions_response.py +3 -4
- revengai/models/caller_function_info.py +0 -1
- revengai/models/capabilities.py +0 -1
- revengai/models/capability.py +0 -1
- revengai/models/check_security_checks_task_response.py +0 -1
- revengai/models/child_binaries_response.py +0 -1
- revengai/models/code_signature_model.py +0 -1
- revengai/models/collection_binaries_update_request.py +0 -1
- revengai/models/collection_binaries_update_response.py +0 -1
- revengai/models/collection_binary_response.py +0 -1
- revengai/models/collection_create_request.py +0 -1
- revengai/models/collection_list_item.py +0 -1
- revengai/models/collection_response.py +0 -1
- revengai/models/collection_response_binaries_inner.py +0 -1
- revengai/models/collection_scope.py +0 -1
- revengai/models/collection_search_response.py +0 -1
- revengai/models/collection_search_result.py +0 -1
- revengai/models/collection_tags_update_request.py +0 -1
- revengai/models/collection_tags_update_response.py +0 -1
- revengai/models/collection_update_request.py +0 -1
- revengai/models/comment_base.py +0 -1
- revengai/models/comment_response.py +0 -1
- revengai/models/comment_update_request.py +0 -1
- revengai/models/communities.py +0 -1
- revengai/models/community_match_percentages.py +0 -1
- revengai/models/confidence_type.py +0 -1
- revengai/models/context.py +0 -1
- revengai/models/created.py +0 -1
- revengai/models/decompilation_comment_context.py +0 -1
- revengai/models/decompilation_response.py +0 -1
- revengai/models/die_match.py +0 -1
- revengai/models/dynamic_execution_status_input.py +0 -1
- revengai/models/elf_dynamic_entry.py +0 -1
- revengai/models/elf_import_model.py +0 -1
- revengai/models/elf_model.py +0 -1
- revengai/models/elf_relocation.py +0 -1
- revengai/models/elf_section.py +0 -1
- revengai/models/elf_security.py +0 -1
- revengai/models/elf_segment.py +0 -1
- revengai/models/elf_symbol.py +0 -1
- revengai/models/entrypoint_model.py +0 -1
- revengai/models/enumeration.py +0 -1
- revengai/models/error_model.py +0 -1
- revengai/models/export_model.py +0 -1
- revengai/models/exported_binary_ann_result.py +0 -1
- revengai/models/external_response.py +0 -1
- revengai/models/file_format.py +0 -1
- revengai/models/file_hashes.py +0 -1
- revengai/models/file_metadata.py +0 -1
- revengai/models/filters.py +0 -1
- revengai/models/function_analysis_threat_score_data.py +0 -1
- revengai/models/function_block_destination_response.py +0 -1
- revengai/models/function_block_response.py +0 -1
- revengai/models/function_blocks_response.py +0 -1
- revengai/models/function_boundary.py +0 -1
- revengai/models/function_box_plot_confidence.py +0 -1
- revengai/models/function_capability_response.py +0 -1
- revengai/models/function_comment_create_request.py +0 -1
- revengai/models/function_data_types.py +0 -1
- revengai/models/function_data_types_list.py +0 -1
- revengai/models/function_data_types_list_item.py +0 -1
- revengai/models/function_data_types_params.py +0 -1
- revengai/models/function_data_types_status.py +0 -1
- revengai/models/function_header.py +0 -1
- revengai/models/function_info_input.py +0 -1
- revengai/models/function_info_input_func_deps_inner.py +0 -1
- revengai/models/function_info_output.py +0 -1
- revengai/models/function_local_variable_response.py +0 -1
- revengai/models/function_mapping.py +88 -0
- revengai/models/function_mapping_full.py +0 -1
- revengai/models/function_name_confidence_body.py +0 -1
- revengai/models/function_name_history.py +0 -1
- revengai/models/function_name_input.py +0 -1
- revengai/models/function_param_response.py +0 -1
- revengai/models/function_rename.py +0 -1
- revengai/models/function_rename_map.py +0 -1
- revengai/models/function_search_response.py +0 -1
- revengai/models/function_search_result.py +0 -1
- revengai/models/function_string.py +0 -1
- revengai/models/function_strings_response.py +0 -1
- revengai/models/function_task_response.py +0 -1
- revengai/models/function_task_status.py +0 -1
- revengai/models/function_threat_score.py +0 -1
- revengai/models/function_type_input.py +0 -1
- revengai/models/function_type_output.py +0 -1
- revengai/models/functions_detail_response.py +0 -1
- revengai/models/functions_list_rename.py +0 -1
- revengai/models/generate_function_data_types.py +0 -1
- revengai/models/generation_status_list.py +0 -1
- revengai/models/get_ai_decompilation_rating_response.py +0 -1
- revengai/models/get_ai_decompilation_task.py +0 -1
- revengai/models/get_public_user_response.py +0 -1
- revengai/models/get_user_response.py +0 -1
- revengai/models/global_variable.py +0 -1
- revengai/models/icon_model.py +0 -1
- revengai/models/import_model.py +0 -1
- revengai/models/inverse_function_map_item.py +0 -1
- revengai/models/inverse_string_map_item.py +0 -1
- revengai/models/inverse_value.py +0 -1
- revengai/models/isa.py +0 -1
- revengai/models/list_collection_results.py +0 -1
- revengai/models/login_request.py +0 -1
- revengai/models/login_response.py +0 -1
- revengai/models/logs.py +0 -1
- revengai/models/matched_function_group.py +0 -1
- revengai/models/matched_function_suggestion.py +0 -1
- revengai/models/meta_model.py +0 -1
- revengai/models/model_name.py +0 -1
- revengai/models/models_response.py +0 -1
- revengai/models/nearest_neighbor.py +0 -1
- revengai/models/network_overview_dns.py +0 -1
- revengai/models/network_overview_dns_answer.py +0 -1
- revengai/models/network_overview_metadata.py +0 -1
- revengai/models/network_overview_response.py +0 -1
- revengai/models/order.py +0 -1
- revengai/models/origin.py +0 -1
- revengai/models/pagination_model.py +0 -1
- revengai/models/params.py +0 -1
- revengai/models/pdb_debug_model.py +0 -1
- revengai/models/pe_model.py +0 -1
- revengai/models/platform.py +0 -1
- revengai/models/process.py +0 -1
- revengai/models/process_dump.py +0 -1
- revengai/models/process_dump_metadata.py +0 -1
- revengai/models/process_dumps.py +0 -1
- revengai/models/process_dumps_data.py +0 -1
- revengai/models/process_registry.py +0 -1
- revengai/models/process_tree.py +0 -1
- revengai/models/queued_security_checks_task_response.py +0 -1
- revengai/models/re_analysis_form.py +0 -1
- revengai/models/recent.py +0 -1
- revengai/models/registry.py +0 -1
- revengai/models/relative_binary_response.py +0 -1
- revengai/models/sandbox_options.py +0 -1
- revengai/models/sbom.py +0 -1
- revengai/models/sbom_package.py +0 -1
- revengai/models/scrape_third_party_config.py +0 -1
- revengai/models/search_binary_ids.py +0 -1
- revengai/models/search_function_ids.py +0 -1
- revengai/models/section_model.py +0 -1
- revengai/models/security_checks_response.py +0 -1
- revengai/models/security_checks_result.py +0 -1
- revengai/models/security_model.py +0 -1
- revengai/models/severity_type.py +0 -1
- revengai/models/similar_functions_response.py +0 -1
- revengai/models/single_code_certificate_model.py +0 -1
- revengai/models/single_code_signature_model.py +0 -1
- revengai/models/single_pdb_entry_model.py +0 -1
- revengai/models/single_section_model.py +0 -1
- revengai/models/stack_variable.py +0 -1
- revengai/models/status_input.py +0 -1
- revengai/models/status_output.py +0 -1
- revengai/models/string_functions.py +0 -1
- revengai/models/structure.py +0 -1
- revengai/models/structure_member.py +0 -1
- revengai/models/symbols.py +2 -3
- revengai/models/symbols_info.py +0 -1
- revengai/models/tag.py +0 -1
- revengai/models/tag_confidence_body.py +0 -1
- revengai/models/tag_origin_box_plot_confidence.py +0 -1
- revengai/models/tag_response.py +0 -1
- revengai/models/tag_search_response.py +0 -1
- revengai/models/tag_search_result.py +0 -1
- revengai/models/tags.py +0 -1
- revengai/models/task_response.py +0 -1
- revengai/models/task_status.py +0 -1
- revengai/models/threat_score_function_body.py +0 -1
- revengai/models/timestamp_model.py +0 -1
- revengai/models/ttps.py +0 -1
- revengai/models/ttps_attack.py +0 -1
- revengai/models/ttps_data.py +0 -1
- revengai/models/ttps_element.py +0 -1
- revengai/models/ttps_occurance.py +0 -1
- revengai/models/type_definition.py +0 -1
- revengai/models/unstrip_request.py +0 -1
- revengai/models/update_function_data_types.py +0 -1
- revengai/models/upload_file_type.py +0 -1
- revengai/models/upload_response.py +0 -1
- revengai/models/upsert_ai_decomplation_rating_request.py +0 -1
- revengai/models/user_activity_response.py +0 -1
- revengai/models/vulnerabilities.py +0 -1
- revengai/models/vulnerability.py +0 -1
- revengai/models/vulnerability_type.py +0 -1
- revengai/models/workspace.py +0 -1
- revengai/rest.py +0 -1
- {revengai-1.73.0.dist-info → revengai-1.78.1.dist-info}/METADATA +5 -1
- revengai-1.78.1.dist-info/RECORD +343 -0
- revengai-1.73.0.dist-info/RECORD +0 -339
- {revengai-1.73.0.dist-info → revengai-1.78.1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
RevEng.AI API
|
|
5
|
+
|
|
6
|
+
RevEng.AI is Similarity Search Engine for executable binaries
|
|
7
|
+
|
|
8
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
9
|
+
|
|
10
|
+
Do not edit the class manually.
|
|
11
|
+
""" # noqa: E501
|
|
12
|
+
|
|
13
|
+
import warnings
|
|
14
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
15
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
16
|
+
from typing_extensions import Annotated
|
|
17
|
+
|
|
18
|
+
from pydantic import Field, StrictInt, StrictStr
|
|
19
|
+
from typing import Optional
|
|
20
|
+
from typing_extensions import Annotated
|
|
21
|
+
from revengai.models.base_response_analysis_function_mapping import BaseResponseAnalysisFunctionMapping
|
|
22
|
+
|
|
23
|
+
from revengai.api_client import ApiClient, RequestSerialized
|
|
24
|
+
from revengai.api_response import ApiResponse
|
|
25
|
+
from revengai.rest import RESTResponseType
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class DefaultApi:
|
|
29
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
30
|
+
Ref: https://openapi-generator.tech
|
|
31
|
+
|
|
32
|
+
Do not edit the class manually.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
def __init__(self, api_client=None) -> None:
|
|
36
|
+
if api_client is None:
|
|
37
|
+
api_client = ApiClient.get_default()
|
|
38
|
+
self.api_client = api_client
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
@validate_call
|
|
42
|
+
def get_analysis_function_map(
|
|
43
|
+
self,
|
|
44
|
+
analysis_id: StrictInt,
|
|
45
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
|
46
|
+
_request_timeout: Union[
|
|
47
|
+
None,
|
|
48
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
49
|
+
Tuple[
|
|
50
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
52
|
+
]
|
|
53
|
+
] = None,
|
|
54
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
55
|
+
_content_type: Optional[StrictStr] = None,
|
|
56
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
57
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
58
|
+
) -> BaseResponseAnalysisFunctionMapping:
|
|
59
|
+
"""Get Analysis Function Map
|
|
60
|
+
|
|
61
|
+
Returns the a map of function ids to function addresses for the analysis, and it's inverse.
|
|
62
|
+
|
|
63
|
+
:param analysis_id: (required)
|
|
64
|
+
:type analysis_id: int
|
|
65
|
+
:param authorization: API Key bearer token
|
|
66
|
+
:type authorization: str
|
|
67
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
68
|
+
number provided, it will be total request
|
|
69
|
+
timeout. It can also be a pair (tuple) of
|
|
70
|
+
(connection, read) timeouts.
|
|
71
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
72
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
73
|
+
request; this effectively ignores the
|
|
74
|
+
authentication in the spec for a single request.
|
|
75
|
+
:type _request_auth: dict, optional
|
|
76
|
+
:param _content_type: force content-type for the request.
|
|
77
|
+
:type _content_type: str, Optional
|
|
78
|
+
:param _headers: set to override the headers for a single
|
|
79
|
+
request; this effectively ignores the headers
|
|
80
|
+
in the spec for a single request.
|
|
81
|
+
:type _headers: dict, optional
|
|
82
|
+
:param _host_index: set to override the host_index for a single
|
|
83
|
+
request; this effectively ignores the host_index
|
|
84
|
+
in the spec for a single request.
|
|
85
|
+
:type _host_index: int, optional
|
|
86
|
+
:return: Returns the result object.
|
|
87
|
+
""" # noqa: E501
|
|
88
|
+
|
|
89
|
+
_param = self._get_analysis_function_map_serialize(
|
|
90
|
+
analysis_id=analysis_id,
|
|
91
|
+
authorization=authorization,
|
|
92
|
+
_request_auth=_request_auth,
|
|
93
|
+
_content_type=_content_type,
|
|
94
|
+
_headers=_headers,
|
|
95
|
+
_host_index=_host_index
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
99
|
+
'200': "BaseResponseAnalysisFunctionMapping",
|
|
100
|
+
'422': "BaseResponse",
|
|
101
|
+
}
|
|
102
|
+
response_data = self.api_client.call_api(
|
|
103
|
+
*_param,
|
|
104
|
+
_request_timeout=_request_timeout
|
|
105
|
+
)
|
|
106
|
+
response_data.read()
|
|
107
|
+
return self.api_client.response_deserialize(
|
|
108
|
+
response_data=response_data,
|
|
109
|
+
response_types_map=_response_types_map,
|
|
110
|
+
).data
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
@validate_call
|
|
114
|
+
def get_analysis_function_map_with_http_info(
|
|
115
|
+
self,
|
|
116
|
+
analysis_id: StrictInt,
|
|
117
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
|
118
|
+
_request_timeout: Union[
|
|
119
|
+
None,
|
|
120
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
121
|
+
Tuple[
|
|
122
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
123
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
124
|
+
]
|
|
125
|
+
] = None,
|
|
126
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
127
|
+
_content_type: Optional[StrictStr] = None,
|
|
128
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
129
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
130
|
+
) -> ApiResponse[BaseResponseAnalysisFunctionMapping]:
|
|
131
|
+
"""Get Analysis Function Map
|
|
132
|
+
|
|
133
|
+
Returns the a map of function ids to function addresses for the analysis, and it's inverse.
|
|
134
|
+
|
|
135
|
+
:param analysis_id: (required)
|
|
136
|
+
:type analysis_id: int
|
|
137
|
+
:param authorization: API Key bearer token
|
|
138
|
+
:type authorization: str
|
|
139
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
140
|
+
number provided, it will be total request
|
|
141
|
+
timeout. It can also be a pair (tuple) of
|
|
142
|
+
(connection, read) timeouts.
|
|
143
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
144
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
145
|
+
request; this effectively ignores the
|
|
146
|
+
authentication in the spec for a single request.
|
|
147
|
+
:type _request_auth: dict, optional
|
|
148
|
+
:param _content_type: force content-type for the request.
|
|
149
|
+
:type _content_type: str, Optional
|
|
150
|
+
:param _headers: set to override the headers for a single
|
|
151
|
+
request; this effectively ignores the headers
|
|
152
|
+
in the spec for a single request.
|
|
153
|
+
:type _headers: dict, optional
|
|
154
|
+
:param _host_index: set to override the host_index for a single
|
|
155
|
+
request; this effectively ignores the host_index
|
|
156
|
+
in the spec for a single request.
|
|
157
|
+
:type _host_index: int, optional
|
|
158
|
+
:return: Returns the result object.
|
|
159
|
+
""" # noqa: E501
|
|
160
|
+
|
|
161
|
+
_param = self._get_analysis_function_map_serialize(
|
|
162
|
+
analysis_id=analysis_id,
|
|
163
|
+
authorization=authorization,
|
|
164
|
+
_request_auth=_request_auth,
|
|
165
|
+
_content_type=_content_type,
|
|
166
|
+
_headers=_headers,
|
|
167
|
+
_host_index=_host_index
|
|
168
|
+
)
|
|
169
|
+
|
|
170
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
171
|
+
'200': "BaseResponseAnalysisFunctionMapping",
|
|
172
|
+
'422': "BaseResponse",
|
|
173
|
+
}
|
|
174
|
+
response_data = self.api_client.call_api(
|
|
175
|
+
*_param,
|
|
176
|
+
_request_timeout=_request_timeout
|
|
177
|
+
)
|
|
178
|
+
response_data.read()
|
|
179
|
+
return self.api_client.response_deserialize(
|
|
180
|
+
response_data=response_data,
|
|
181
|
+
response_types_map=_response_types_map,
|
|
182
|
+
)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
@validate_call
|
|
186
|
+
def get_analysis_function_map_without_preload_content(
|
|
187
|
+
self,
|
|
188
|
+
analysis_id: StrictInt,
|
|
189
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
|
190
|
+
_request_timeout: Union[
|
|
191
|
+
None,
|
|
192
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
193
|
+
Tuple[
|
|
194
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
195
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
196
|
+
]
|
|
197
|
+
] = None,
|
|
198
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
199
|
+
_content_type: Optional[StrictStr] = None,
|
|
200
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
201
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
202
|
+
) -> RESTResponseType:
|
|
203
|
+
"""Get Analysis Function Map
|
|
204
|
+
|
|
205
|
+
Returns the a map of function ids to function addresses for the analysis, and it's inverse.
|
|
206
|
+
|
|
207
|
+
:param analysis_id: (required)
|
|
208
|
+
:type analysis_id: int
|
|
209
|
+
:param authorization: API Key bearer token
|
|
210
|
+
:type authorization: str
|
|
211
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
212
|
+
number provided, it will be total request
|
|
213
|
+
timeout. It can also be a pair (tuple) of
|
|
214
|
+
(connection, read) timeouts.
|
|
215
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
216
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
217
|
+
request; this effectively ignores the
|
|
218
|
+
authentication in the spec for a single request.
|
|
219
|
+
:type _request_auth: dict, optional
|
|
220
|
+
:param _content_type: force content-type for the request.
|
|
221
|
+
:type _content_type: str, Optional
|
|
222
|
+
:param _headers: set to override the headers for a single
|
|
223
|
+
request; this effectively ignores the headers
|
|
224
|
+
in the spec for a single request.
|
|
225
|
+
:type _headers: dict, optional
|
|
226
|
+
:param _host_index: set to override the host_index for a single
|
|
227
|
+
request; this effectively ignores the host_index
|
|
228
|
+
in the spec for a single request.
|
|
229
|
+
:type _host_index: int, optional
|
|
230
|
+
:return: Returns the result object.
|
|
231
|
+
""" # noqa: E501
|
|
232
|
+
|
|
233
|
+
_param = self._get_analysis_function_map_serialize(
|
|
234
|
+
analysis_id=analysis_id,
|
|
235
|
+
authorization=authorization,
|
|
236
|
+
_request_auth=_request_auth,
|
|
237
|
+
_content_type=_content_type,
|
|
238
|
+
_headers=_headers,
|
|
239
|
+
_host_index=_host_index
|
|
240
|
+
)
|
|
241
|
+
|
|
242
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
243
|
+
'200': "BaseResponseAnalysisFunctionMapping",
|
|
244
|
+
'422': "BaseResponse",
|
|
245
|
+
}
|
|
246
|
+
response_data = self.api_client.call_api(
|
|
247
|
+
*_param,
|
|
248
|
+
_request_timeout=_request_timeout
|
|
249
|
+
)
|
|
250
|
+
return response_data.response
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
def _get_analysis_function_map_serialize(
|
|
254
|
+
self,
|
|
255
|
+
analysis_id,
|
|
256
|
+
authorization,
|
|
257
|
+
_request_auth,
|
|
258
|
+
_content_type,
|
|
259
|
+
_headers,
|
|
260
|
+
_host_index,
|
|
261
|
+
) -> RequestSerialized:
|
|
262
|
+
|
|
263
|
+
_host = None
|
|
264
|
+
|
|
265
|
+
_collection_formats: Dict[str, str] = {
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
_path_params: Dict[str, str] = {}
|
|
269
|
+
_query_params: List[Tuple[str, str]] = []
|
|
270
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
271
|
+
_form_params: List[Tuple[str, str]] = []
|
|
272
|
+
_files: Dict[
|
|
273
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
274
|
+
] = {}
|
|
275
|
+
_body_params: Optional[bytes] = None
|
|
276
|
+
|
|
277
|
+
# process the path parameters
|
|
278
|
+
if analysis_id is not None:
|
|
279
|
+
_path_params['analysis_id'] = analysis_id
|
|
280
|
+
# process the query parameters
|
|
281
|
+
# process the header parameters
|
|
282
|
+
if authorization is not None:
|
|
283
|
+
_header_params['authorization'] = authorization
|
|
284
|
+
# process the form parameters
|
|
285
|
+
# process the body parameter
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
# set the HTTP header `Accept`
|
|
289
|
+
if 'Accept' not in _header_params:
|
|
290
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
291
|
+
[
|
|
292
|
+
'application/json'
|
|
293
|
+
]
|
|
294
|
+
)
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
# authentication setting
|
|
298
|
+
_auth_settings: List[str] = [
|
|
299
|
+
'APIKey'
|
|
300
|
+
]
|
|
301
|
+
|
|
302
|
+
return self.api_client.param_serialize(
|
|
303
|
+
method='GET',
|
|
304
|
+
resource_path='/v2/analyses/{analysis_id}/func_maps',
|
|
305
|
+
path_params=_path_params,
|
|
306
|
+
query_params=_query_params,
|
|
307
|
+
header_params=_header_params,
|
|
308
|
+
body=_body_params,
|
|
309
|
+
post_params=_form_params,
|
|
310
|
+
files=_files,
|
|
311
|
+
auth_settings=_auth_settings,
|
|
312
|
+
collection_formats=_collection_formats,
|
|
313
|
+
_host=_host,
|
|
314
|
+
_request_auth=_request_auth
|
|
315
|
+
)
|
|
316
|
+
|
|
317
|
+
|
revengai/api/firmware_api.py
CHANGED
revengai/api/models_api.py
CHANGED
revengai/api/search_api.py
CHANGED
revengai/api_client.py
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
RevEng.AI is Similarity Search Engine for executable binaries
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: v1.73.0
|
|
9
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
9
|
|
|
11
10
|
Do not edit the class manually.
|
|
@@ -91,7 +90,7 @@ class ApiClient:
|
|
|
91
90
|
self.default_headers[header_name] = header_value
|
|
92
91
|
self.cookie = cookie
|
|
93
92
|
# Set default User-Agent.
|
|
94
|
-
self.user_agent = 'OpenAPI-Generator/v1.
|
|
93
|
+
self.user_agent = 'OpenAPI-Generator/v1.78.1/python'
|
|
95
94
|
self.client_side_validation = configuration.client_side_validation
|
|
96
95
|
|
|
97
96
|
def __enter__(self):
|
|
@@ -460,13 +459,13 @@ class ApiClient:
|
|
|
460
459
|
|
|
461
460
|
if klass in self.PRIMITIVE_TYPES:
|
|
462
461
|
return self.__deserialize_primitive(data, klass)
|
|
463
|
-
elif klass
|
|
462
|
+
elif klass is object:
|
|
464
463
|
return self.__deserialize_object(data)
|
|
465
|
-
elif klass
|
|
464
|
+
elif klass is datetime.date:
|
|
466
465
|
return self.__deserialize_date(data)
|
|
467
|
-
elif klass
|
|
466
|
+
elif klass is datetime.datetime:
|
|
468
467
|
return self.__deserialize_datetime(data)
|
|
469
|
-
elif klass
|
|
468
|
+
elif klass is decimal.Decimal:
|
|
470
469
|
return decimal.Decimal(data)
|
|
471
470
|
elif issubclass(klass, Enum):
|
|
472
471
|
return self.__deserialize_enum(data, klass)
|
revengai/configuration.py
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
RevEng.AI is Similarity Search Engine for executable binaries
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: v1.73.0
|
|
9
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
9
|
|
|
11
10
|
Do not edit the class manually.
|
|
@@ -530,8 +529,8 @@ conf = revengai.Configuration(
|
|
|
530
529
|
return "Python SDK Debug Report:\n"\
|
|
531
530
|
"OS: {env}\n"\
|
|
532
531
|
"Python Version: {pyversion}\n"\
|
|
533
|
-
"Version of the API: v1.
|
|
534
|
-
"SDK Package Version: v1.
|
|
532
|
+
"Version of the API: v1.78.1\n"\
|
|
533
|
+
"SDK Package Version: v1.78.1".\
|
|
535
534
|
format(env=sys.platform, pyversion=sys.version)
|
|
536
535
|
|
|
537
536
|
def get_host_settings(self) -> List[HostSetting]:
|